Network models and physical signals
A network carries application bytes through devices that make different decisions. Confusing those decisions makes a broken cable, a full queue and a failed service look like the same fault. We will define the packet path, compare layer models, wrap the request in headers and compute the cost of its physical transmission.
#Section 1Networking foundations and packet switching
A computer network connects endpoints and forwarding devices through shared protocols. Finch’s college browser owns the request’s meaning; switches and routers carry its bytes.
LAN, MAN, WAN, Internet and intranet
A LAN connects a local site, a MAN spans a metropolitan area, and a WAN connects more distant sites. Distance alone does not determine the forwarding protocol. An intranet serves an administrative community, while the Internet interconnects independently administered networks. Finch reaches its gateway locally before crossing the wider routed path.
Topology, client-server and peer-to-peer
A topology records available connections. A star shares a central switch, a bus shares a medium, a ring connects neighbouring stations, and a mesh offers several paths. Losing the star’s central switch disconnects clients even if the remote service is healthy. Physical redundancy helps only when forwarding can use the surviving path.
Client-server assigns a service provider and requester; peer-to-peer lets participants serve as well as request. Those roles do not determine the transport. Circuit switching reserves capacity before transmission, while packet switching shares links among bursts. Datagram forwarding chooses a next hop independently for each packet; a virtual circuit retains a logical path established beforehand.
Store-and-forward, delay and delivered rate
A store-and-forward device receives the bounded packet before sending it onward. Each hop can add processing, queueing, serialization and propagation delay. For the illustrative link,
Read D as total one-link delay in milliseconds, with each term naming a separate elapsed cost. Bandwidth is the link's configured bit rate; throughput is the delivered rate. RTT measures a round trip, jitter measures delay variation, and packet loss records missing delivery. The declared 40-millisecond RTT belongs to the wider path and is not twice this one-link fixture.
#Section 2OSI and TCP/IP models
A layer model assigns work to boundaries. A failed admissions-page request could begin with radio, routing, certificate, or application failure; each needs different evidence.
The OSI layers
The OSI model names application, presentation, session, transport, network, data link and physical layers. Application describes service messages. Presentation concerns representation and transformations, while session concerns the organization of an exchange. Transport connects communicating application endpoints, network forwards addressed packets, data link carries frames between neighbours, and physical transmits signals. These categories are a reasoning tool, not a requirement that every implementation have a separate process for each category.
The practical Internet stack
The TCP/IP model groups application work above transport, Internet and link functions. Teaching diagrams often separate physical signalling from link framing. HTTP and DNS sit in the application group, TCP and UDP supply transport, IP supplies Internet addressing, and Ethernet supplies local framing. QUIC implements transport functions over UDP rather than making UDP itself an ordered stream.
For Finch, HTTP names the resource, TCP connects ports, IP names the remote host, and Ethernet addresses the gateway interface. ARP helps connect the IP next-hop decision to a local link address and does not fit neatly into a strict single-layer label. A router can contain transport or application features while still performing IP forwarding. Classify the action under discussion rather than the product box.
The cost of layering is extra headers, state and work at boundaries. Its benefit is replacing one part without rewriting every other part. The same HTTP handler can run over different local media; a functioning Ethernet link still does not prove the server accepted the request. In an interview, start with the failure observation, identify the boundary it tests, and explain which boundaries remain untested.
#Section 3Encapsulation and decapsulation
Encapsulation adds a lower layer's control wrapper; decapsulation interprets and removes it. A header can be control information at one layer and payload at another.
The application passes bytes to TCP. TCP supplies ports, sequence information and its checksum; IP supplies addresses and forwarding fields; Ethernet supplies local MAC addresses and a frame check. Signals carry the resulting bits. At the server, processing climbs those boundaries in reverse, checking each layer before delivering the permitted bytes upward.
With the declared no-option headers, the IP packet budget is 1,500 bytes. Subtracting 20 IP-header bytes and 20 TCP-header bytes gives
Read P as the TCP payload capacity of this particular packet layout. TCP can split one application write across several segments or combine several writes; this capacity is not an HTTP message boundary. Options, encryption and other wrappers change the available application space.
At the gateway, the incoming Ethernet wrapper ends. The router examines the IP destination and builds a different outgoing frame for its next neighbour. Ordinarily the end-to-end IP addresses remain, while TTL changes; Finch's NAT gateway also rewrites the source address and port under its translation rule. Link addresses therefore answer a different question from host addresses and transport ports.
The edge case is a path whose next link cannot carry the packet. A switch does not automatically invent smaller Ethernet frames that preserve every higher-layer boundary. Packet sizing and path MTU discovery need the relevant IP and transport rules, which return in Part IV. Confusing frame size with IP payload capacity hides both the overhead and the failure boundary.
#Section 4Physical signals, media and duplex
The physical layer represents bits using timed electrical, optical, or radio symbols. A cable carries signals, not software packet objects.
Bit rate, baud rate and channel limits
Bit rate counts bits per second, while baud rate counts symbols per second. A symbol alphabet can represent several bits in one symbol, but the receiver must still distinguish the states despite attenuation, distortion and noise. Attenuation reduces strength, distortion changes shape, and noise adds unwanted variation. A carrier can remain detectable while its error rate prevents useful communication.
The illustrative channel has bandwidth B of 1,000,000 hertz and linear signal-to-noise ratio S of 15. Shannon's ideal bound gives
Read C as ideal channel capacity, not an Ethernet performance measurement. Nyquist's noiseless model with four distinguishable levels M gives bits per second under those different assumptions. Neither formula replaces measured error behaviour or a protocol's framing costs.
Twisted pair, coaxial cable, fibre and wireless
Twisted pair and coaxial cable carry electrical signals with different interference and installation properties. Fibre carries light and changes the distance and equipment trade-off. Wireless shares radio spectrum and must contend with interference and competing stations. The media choice changes a physical cost without changing what the HTTP method means.
Simplex sends in one direction, half duplex takes turns, and full duplex permits simultaneous directions. Modern switched Ethernet commonly uses full duplex, so its host link does not follow the older shared-medium collision procedure. For Finch's declared packet, serialization is seconds, while propagation is seconds. Packet length changes the first cost; distance changes the second.