Level 6 · Chapter 1
Networking
A full stack in its own right — from a socket call down to a physical adapter — sitting on top of everything covered so far.
Every level up to this point has treated the machine as a mostly self-contained system. Modern Windows barely functions that way in practice: authentication against a domain controller, Windows Update, cloud-connected applications, and remote management all lean on the network constantly, often invisibly. This level is that stack, top to bottom.
A pipeline, like everything else in this course
Networking follows the same layered pattern as storage and I/O more generally: application-level APIs at the top, protocol implementation in the middle, driver and hardware layers at the bottom, all routed through the same I/O system covered earlier. Reading top to bottom, roughly the order this level goes in:
- Name resolution & the DNS Client — often the very first thing that has to happen before a connection can even begin.
- The TCP/IP stack — protocol state, retransmission, and routing.
- Winsock, AFD, and kernel boundaries — where application-level sockets actually meet kernel-mode transport.
- NDIS and network adapters — the driver model that reaches actual hardware.
- Filtering & firewalling and WFP & BFE, a deep dive — where Windows (and third-party security products) can inspect and control traffic anywhere along this path.
Why "just a network problem" is rarely the full story
Networking on Windows is deeply intertwined with the rest of the OS in ways that make "it's a network issue" an often-incomplete diagnosis: DNS resolution problems can look like application bugs; a slow connection can be a routing decision, a retransmission storm, or a firewall callout doing deep inspection; a service that can't reach a resource might be failing a security access check at the socket level rather than experiencing any real connectivity problem at all. The networking stack participates in, and is shaped by, essentially every other level in this course.
A worked example: connecting to a website
What looks like one action — typing a URL and pressing enter — actually crosses this entire level: DNS resolution turns the hostname into an address (possibly served instantly from cache, possibly requiring a fresh query with real latency); the browser opens a socket through Winsock; the TCP/IP stack establishes a connection, complete with its own state machine; WFP-based filtering may inspect or block the traffic at several points along the way; and eventually NDIS hands frames to the actual network adapter. A "slow website" complaint could genuinely originate at any one of these layers, and distinguishing which one is often the entire diagnostic task.
A common mistake
Treating networking as an isolated subsystem, cleanly separable from "the rest of Windows," undersells how much cross-cutting participation is actually involved — services, security, drivers, and user-mode APIs are all active participants in every network operation, not passive bystanders. A networking problem investigated purely at the protocol level, ignoring the security and driver layers that also touch every packet, will frequently miss the actual cause.
Where this connects
- The I/O system supplies the general request-routing machinery networking is built on.
- Access checks & the Security Reference Monitor governs whether a given process is even allowed to open a socket or reach a given resource in the first place.