Pcornel
Windows · Windows Networking

TCP/IP Stack

Cheat sheet · https://pcornel.dk/topic.php?topic=3063

Back to the Topic

Answer

The Windows TCP/IP Stack is the kernel networking path that implements IP, TCP, UDP and related transport/network functions between sockets, filtering layers, route/neighbor state and network adapters.

Remember

  • A listening socket proves a local endpoint is bound, not that remote clients can reach it.
  • TCP connection state is protocol evidence; it does not identify every upstream cause by itself.
  • UDP is connectionless, so absence of TCP-like session state is expected.
  • Windows Filtering Platform/firewall can affect flows even when route and neighbor state are healthy.
  • Resetting the stack can remove evidence and should follow diagnosis, not replace it.

First checks

  • Get-NetIPConfiguration — addresses, gateway and DNS per interface
  • Get-NetAdapter — adapters, status and link speed
  • Get-NetRoute -AddressFamily IPv4 — routes and metrics
  • Test-NetConnection <host> -Port <p> — ping, route and TCP port test
  • ipconfig /all — full IP configuration

Verify in this order

application → Winsock → TCP/IP stack → NDIS → adapter

Where it usually breaks

First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.

Windows Networking → TCP/IP Stack reference map

BoundaryMeaningEvidence limit
Winsock/socketApplication networking API/statenot route proof
TCPConnection-oriented transport statehandshake state narrows boundary
UDPDatagram transportno connection state expected
FilteringWFP/firewall policy pathcan drop after route selection
AdapterPacket egress/ingress pointwire evidence may still be needed

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3063

Confirmation

Confirm action

Continue?