STUDY GUIDE · 3 INTERACTIVE LABS · ABOUT 12 MIN

Loading this page took hundreds of small envelopes.

The internet doesn't send files whole. It chops them into packets, wraps each in layers of addressing, and routes them independently across dozens of machines, then reassembles them in order. This guide opens the envelopes.

SPEED-OF-LIGHT PING · LONDON TO…
56 msphysical minimum (fibre)
93 mstypical real ping
New York is about 5,570 km away. Light in fibre travels at about 200,000 km/s, two-thirds of its speed in a vacuum, so a round trip can never beat 55.7 ms. Real routes are longer and add router delays.

What is a computer network?

A computer network is a set of devices connected so they can exchange data. The internet is a network of networks, held together by shared protocols, chiefly TCP/IP, which define how data is addressed, split into packets, routed and reassembled.

Networking is organised in layers. Each layer solves one problem and relies on the layer below: Wi-Fi doesn't need to know about web pages, and a browser doesn't need to know about radio waves.

RouterForwards packets between networks using IP addresses.
SwitchConnects devices on one local network using MAC addresses.
DNSTurns names like example.com into IP addresses.
TLSEncrypts traffic: the 'S' in HTTPS.
LAB 1 · ENCAPSULATION

Wrap a web request, layer by layer

On the way out, each layer adds its own header, like putting a letter in an envelope, then in a parcel, then on a lorry. The receiver unwraps them in reverse.

HTTP DATA (PAYLOAD)GET /index.html Host: example.com
LAYER 5 · APPLICATION · PDU: MESSAGEThe browser writes an HTTP request. Application protocols like HTTP, DNS and SMTP define what the message means; they don't care how it travels.Size on the wire: 120 bytes of headers + data (example)
LAB 2 · IP ADDRESSES AND SUBNETS

Split an address into network and host

An IPv4 address is 32 bits. The prefix length (the /24 in CIDR notation) says how many leading bits name the network; the rest number the devices on it. Slide it and watch the split move.

192.168.1.77/24
11000000
192
10101000
168
00000001
1
01001101
77
network bitshost bits
255.255.255.0Subnet mask
192.168.1.0Network address
192.168.1.255Broadcast address
192.168.1.1First usable host
192.168.1.254Last usable host
254Usable hosts
Each extra network bit halves the number of hosts. Two addresses are always reserved: the network address (all host bits 0) and the broadcast address (all 1). /24 is the classic home or office network: 254 devices.

Core ideas at a glance

IP addressA device's network address: 32 bits in IPv4, 128 in IPv6.
PortA number that picks out which program on a device should receive the data.
TCP vs UDPTCP is reliable and ordered with retransmission; UDP is faster, with no guarantees (calls, games).
Three-way handshakeSYN, SYN-ACK, ACK: how TCP opens a connection.
DNSThe internet's phone book, mapping names to IP addresses.
NATLets many home devices share one public IP address.
Latency vs bandwidthHow long one bit takes to arrive, versus how many bits arrive per second.
RoutingChoosing a path; routers swap reachability information using protocols like BGP.

From ARPANET to 5G

1969ARPANET.The first message, between UCLA and Stanford, crashed after 'LO' of 'LOGIN'.
1974TCP/IP.Vint Cerf and Bob Kahn designed the protocols that still run the internet.
1983Internet's birthday.ARPANET switched to TCP/IP on 1 January. DNS followed the same year.
1989World Wide Web.Tim Berners-Lee at CERN proposed HTTP, HTML and URLs.
1997Wi-Fi.The first IEEE 802.11 standard: 2 Mbit/s.
20195G.Mobile networks aiming for millisecond latency and gigabit speeds.

Further reading

Computer Networking: A Top-Down ApproachKurose & Ross · the most-used textbook
Computer NetworksTanenbaum & Wetherall · the classic bottom-up approach
TCP/IP Illustrated, Vol. 1W. Richard Stevens · packets, explained byte by byte
Test yourself: 20 networking questionsOperating systems guide

Binary in your head? That's numerical reasoning.

Our full IQ test covers numerical, logical, verbal and spatial reasoning: 60 questions, about 30 minutes.

Take the full IQ test