Skip to content

Side 55

Computer
Networks

A study of how data moves between machines. Computer networks turn messages into packets, packets into link transmissions, and local connections into routed end-to-end communication.

packet→link→route→transport→application
06network layers
05routing ideas
05reliability questions
55Side

Networks divide messages into transferable units.

Packetization allows many flows to share links while keeping forwarding decisions local.

01 · Message

What does the application want to send?

Bytes, stream, request?

Applications generate data without needing to know every physical hop.

02 · Segment

How is end-to-end data divided?

Transport layer.

Transport protocols add ports, sequencing and reliability behavior.

03 · Packet

What network-level unit is routed?

IP header + payload.

Packets carry source/destination addressing and move independently through routers.

04 · Frame

How does one local link carry the packet?

Link-layer encapsulation.

Frames change as packets cross different local networks.

05 · Reassembly

How does the receiver reconstruct data?

Ordering + integrity.

Higher layers rebuild the application’s intended data stream or message.

Routers decide where packets go next.

Routing protocols build forwarding information from local and network-wide knowledge.

Address

Identify network location.

IP addresses support hierarchical routing across interconnected networks.

Forward

Choose next hop.

Routers match packet destinations against forwarding tables.

Metric

Compare candidate paths.

Cost can reflect hop count, policy, bandwidth or other routing attributes.

Converge

Adapt after topology changes.

Routing systems need time to learn failures and settle on new paths.

Policy

Routing is not only shortest path.

Between autonomous systems, business and security policy influence which routes are accepted and advertised.

Transport protocols create end-to-end behavior.

The network can deliver packets independently; transport protocols decide whether applications see reliable streams, datagrams or controlled congestion.

FeatureTCPUDPQuestion
ConnectionConnection-orientedConnectionlessDoes the application need session state?
ReliabilityRetransmits lost dataNo built-in retransmissionWho handles loss?
OrderingOrdered byte streamIndependent datagramsDoes order matter?
Congestion controlBuilt inApplication responsibilityHow is network overload managed?
OverheadHigherLowerWhat trade-off between control and simplicity?
Reliable transport does not make the network lossless.

It detects missing data and recovers through retransmission and control.

Applications build protocols on top of transport.

Naming, requests, responses and state live above the packet-routing substrate.

DNS

Name → address.

The Domain Name System distributes hierarchical naming across many servers and caches.

HTTP

Request / response for web resources.

HTTP defines application semantics while transport handles delivery.

TLS

Authenticate and encrypt sessions.

TLS protects application data against eavesdropping and tampering when configured correctly.

Email

Store-and-forward messaging.

Different protocols handle submission, transfer and mailbox retrieval.

Streaming

Deliver time-sensitive media.

Applications buffer and adapt quality to changing throughput and delay.

API

Machine-to-machine application contract.

Network APIs layer data formats and operations over transport protocols.

Networks are designed around partial failure.

Links drop packets, routes change, names expire and endpoints disappear; resilient communication depends on detection, redundancy and bounded trust.

Checksums

Detect corruption in transmitted data.

Retransmission

Recover from lost packets when reliability is required.

Redundant paths

Allow routing around failed links or nodes.

Timeouts

Prevent applications from waiting indefinitely on failed peers.

Authentication

Verify identity before trusting a peer or endpoint.

Segmentation

Limit reach and blast radius by separating networks and privileges.

A website is slow but bandwidth is high.

Inspect latency, DNS resolution, connection setup, server processing, packet loss and application round trips rather than assuming the bottleneck is link capacity.

One network path fails.

Routing can select an alternate path if topology and policy provide one, but reconvergence takes time and may temporarily drop packets.

A connection is encrypted.

Encryption protects data in transit; it does not prove the endpoint itself is trustworthy or secure.

Computer Networking: A Top-Down ApproachKurose & Ross · protocol layers
Computer NetworksAndrew Tanenbaum · broad foundation
TCP/IP IllustratedStevens · protocol behavior
High Performance Browser NetworkingIlya Grigorik · latency and web transport