TCP/IP Stack
Cheat sheet · https://pcornel.dk/topic.php?topic=3063
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 interfaceGet-NetAdapter— adapters, status and link speedGet-NetRoute -AddressFamily IPv4— routes and metricsTest-NetConnection <host> -Port <p>— ping, route and TCP port testipconfig /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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Winsock/socket | Application networking API/state | not route proof |
| TCP | Connection-oriented transport state | handshake state narrows boundary |
| UDP | Datagram transport | no connection state expected |
| Filtering | WFP/firewall policy path | can drop after route selection |
| Adapter | Packet egress/ingress point | wire 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