Communication
Two computers on opposite sides of the planet can swap a message in a fraction of a second. This chapter is about how that actually happens: the networks data travels across, the topologies and hardware that carry it, and the addressing system that makes sure it ends up in the right place.
Every request you have ever sent online, a page load, a video call, a game move, had to physically travel across cables, radio waves and routers to reach another machine and come back. This chapter covers Cambridge 9618 syllabus section 2.1: how networks are built and connected, the topologies and hardware that move data around a LAN, how the internet itself is structured, and how IP addressing and DNS make sure your data finds its way to exactly the right computer out of billions.
Why We Network Computers
A single, isolated computer can only ever work with what is physically stored on it. The moment you connect it to even one other machine, it gains access to resources it does not own itself, and that trade-off, giving up a little independence for a lot of shared capability, is the entire reason networks exist.
A network is two or more computers connected together so they can communicate and share resources. Networking devices such as switches, routers and wireless access points exist purely to make that sharing possible, physically carrying the signals between machines and directing them to the right destination.
- Files and data, so several people can work on the same documents
- Hardware, one printer or scanner serving an entire office
- Software licences, one purchased copy usable across many machines
- Internet connections, one link shared by every device on the LAN
- Centralised backups, one place to protect everyone's data
- Communication: email, messaging, video calls
- Centralised user management, one login system for the whole organisation
- Remote access to resources from anywhere on the network
LAN vs WAN
Networks are classified first by size, because the physical distance data has to travel completely changes what hardware and infrastructure you need to move it.
- Covers a small geographical area: one building or campus
- Owned and managed entirely by the organisation that uses it
- High speed, typically 100 Mbps to 10 Gbps
- Built from owned infrastructure: Ethernet cabling, Wi-Fi access points
- Relatively low cost, since no external provider is involved
- Covers a large geographical area: a city, a country, or the whole planet
- Relies on rented telecommunications infrastructure from a third party
- Speed varies hugely depending on the connection purchased
- The internet itself is the world's largest WAN
- Higher ongoing cost, since lines are leased rather than owned
Client-Server vs Peer-to-Peer
Once you have a network, someone has to decide how the computers on it relate to each other: does one machine take charge, or does every machine treat every other machine as an equal? That decision is the network model, and it shapes everything from cost to security to how the network behaves when something fails.
- One or more dedicated servers provide services (files, email, authentication)
- Clients send requests to the server and receive a response
- Data management is centralised, one place to back up and secure
- Security policy is set and enforced in one place, easier to manage
- Scales well to large networks with many users
- The server is a single point of failure: if it goes down, its services stop for everyone
- No dedicated server, every computer (peer) is equal
- Each peer can share its own files and resources directly with others
- Cheaper to set up, no server hardware or licensing required
- Harder to manage and secure, since there is no central authority
- Each machine is responsible for its own security and backups
- Best suited to small networks, like a home with a handful of devices
Some networks combine ideas from both: a subnetwork model splits a larger network into smaller, more manageable sections (subnets), each of which might itself use a client-server or peer-to-peer arrangement internally, connected together through routers.
Thin-Client vs Thick-Client
In a client-server network, individual client machines can be built in two very different ways, depending on how much of the actual work they are trusted, or equipped, to do themselves.
| Feature | Thin client | Thick client |
|---|---|---|
| Processing | Done almost entirely on the server | Done locally on the device itself |
| Local storage | Minimal or none | Substantial local storage |
| Hardware cost | Low, it is a simple terminal | Higher, it needs a full set of components |
| Network dependency | Cannot function without a network connection | Can continue working offline |
| Maintenance | Centralised and easy, update the server once | Each device must be maintained separately |
| Typical example | A Chromebook, or a call-centre terminal | A standard desktop PC or laptop |
Network Topologies
A topology is the pattern in which devices on a network are connected to each other. It is not just a diagram, the topology a network uses directly determines how data physically travels from one host to another, and what happens to the rest of the network when one link or device fails.
- All devices connect to a single shared backbone cable, capped with terminators at each end
- Simple and cheap to install, easy to extend by adding another device to the backbone
- Every device receives every signal but ignores it unless it is the addressed recipient
- A single break anywhere in the backbone brings down the entire network
- Every device connects individually to a central switch
- If one device's cable fails, only that device loses connectivity, the rest keep working
- The central switch is a single point of failure, if it dies the whole network goes down
- Easy to add new devices, and a cable fault is easy to isolate
- Every device connects directly to every other device (a full mesh) or to several others (partial mesh)
- Highly fault tolerant, if one link fails, data is simply rerouted through another path
- Expensive and complex, cabling and configuration grow rapidly as devices are added
- Used where reliability is critical, e.g. some WAN backbones and wireless mesh routers
- Combines two or more topologies, most commonly several star clusters joined by a bus backbone
- Flexible and scalable, lets a network grow to fit a real, irregular building layout
- More complex to design, document and troubleshoot than a single pure topology
- Common in real organisations, where different departments' needs differ
Cloud Computing
Cloud computing provides on-demand access to computing resources, servers, storage, databases and software, delivered over the internet rather than run on hardware you own, typically billed on a pay-per-use basis. Instead of buying and maintaining your own server room, you rent capacity from a provider like AWS, Microsoft Azure or Google Cloud.
Public vs private cloud
A public cloud is shared infrastructure, owned and operated by a provider, that many different customers rent capacity on simultaneously, your data lives alongside other organisations' data, logically separated but on shared physical hardware. A private cloud is infrastructure owned and operated by, or exclusively for, a single organisation, keeping full control over the hardware while still gaining cloud-style flexibility.
- Access your data and applications from anywhere with an internet connection
- No large upfront hardware purchase, costs shift to ongoing operating expense
- Scalable, pay for exactly the capacity you use, and scale up or down on demand
- The provider handles maintenance, updates and hardware failures
- Automatic backups and built-in disaster recovery
- Completely dependent on having a working internet connection
- Data security concerns, your data now leaves your own premises
- Privacy implications of storing data on a third party's servers, possibly in another country
- Recurring subscription costs can exceed the cost of owning equivalent hardware over time
- Vendor lock-in makes it hard and costly to switch provider later
- Limited control over the underlying infrastructure and how it is configured
Transmission Media: Wired vs Wireless
Every network link needs a physical medium to actually carry its signal, and the choice of medium is a genuine engineering trade-off between speed, distance, cost, and how easily the signal can be disrupted.
| Medium | Typical speed | Effective distance | Interference | Common use |
|---|---|---|---|---|
| Copper cable (UTP/STP) | Up to 10 Gbps | ~100m | Susceptible to electromagnetic interference (EMI) | Standard LAN cabling |
| Fibre-optic cable | Up to 100 Tbps | Hundreds of km | Immune to EMI, carries light not electricity | Network backbones, ISP links |
| Radio waves (WiFi) | Up to ~9.6 Gbps (WiFi 6) | ~100m indoors | High, walls and other devices interfere | Wireless LAN |
| Microwaves | Gbps range | Line of sight required | Weather-dependent (rain fade) | Point-to-point links between buildings |
| Satellite | Mbps to Gbps | Global coverage | High latency due to signal travel distance | Remote/rural areas, GPS |
Wired vs wireless: the underlying trade-off
- Generally faster and more reliable, a physical cable has a consistent, predictable signal path
- More secure by default, an attacker needs physical access to the cable to intercept data
- Devices cannot move around, they are tethered to a cable
- Installation is disruptive and can be expensive in an existing building
- Devices can move freely within signal range
- Much faster and cheaper to install, no cabling required
- More vulnerable to interception, since the signal is broadcast through the air to anyone in range
- Performance degrades with distance, interference, and the number of connected devices sharing the same signal
LAN Hardware & the Router
None of the topologies in the previous section work without physical hardware to actually create and manage the connections. Each device below has a distinct, non-overlapping job, and exam questions frequently test whether you can tell them apart.
| Device | What it does |
|---|---|
| NIC (Network Interface Card) | The hardware inside a device that lets it physically connect to a network; every NIC has a unique MAC address burned in at manufacture |
| WNIC (Wireless NIC) | A NIC that connects wirelessly instead of by cable, used for WiFi connections |
| Switch | Connects multiple devices on the same LAN and forwards each frame only to the specific device it is addressed to, using MAC addresses |
| WAP (Wireless Access Point) | Broadcasts a WiFi signal so wireless devices can join the network, and connects that wireless traffic back into the wired LAN |
| Bridge | Connects two separate network segments together and filters traffic between them based on MAC address, reducing unnecessary traffic |
| Repeater | Amplifies and regenerates a weakening signal so it can travel further without becoming corrupted |
| Server | A dedicated, typically more powerful computer that provides a specific service (files, email, web pages) to client devices on request |
| Cables | The physical transmission medium, see the previous section for a comparison of copper, fibre and wireless options |
The router: connecting networks together
Every device above operates within a single LAN. A router is different: its job is to connect separate networks to each other, most commonly connecting your home or school LAN to your ISP's network, and ultimately to the internet. A router examines the destination IP address of each packet it receives and decides which network to forward it towards next, essentially acting as a junction and signpost between networks, rather than just a distribution point within one.
Ethernet & CSMA/CD
Ethernet is the standard technology for wired LANs. On a shared medium, nothing physically stops two devices from trying to transmit at exactly the same moment, and when that happens, their signals corrupt each other in a collision. Ethernet networks manage this with a protocol called CSMA/CD, Carrier Sense Multiple Access with Collision Detection.
How CSMA/CD works, step by step
- Carrier sense: before transmitting, a device listens to the shared medium to check whether it is currently idle.
- Multiple access: the medium is shared, so several devices are able to attempt transmission independently.
- Transmit: if the channel appears idle, the device begins sending its frame.
- Collision detection: if two devices happen to transmit at the same moment, their signals collide and corrupt each other, both devices detect this.
- Jam signal: both devices immediately broadcast a short jam signal, ensuring every device on the network knows a collision occurred and discards the corrupted data.
- Random backoff: each device involved waits a random amount of time before attempting to retransmit, making it unlikely they will collide again on the retry.
Bit Streaming
Bit streaming is the continuous transfer of data, most commonly audio or video, as a steady stream of bits that can start being played back before the whole file has finished downloading. This is what lets you start watching a video within a second or two, instead of waiting for a multi-gigabyte file to download completely first.
- Data is transmitted and played back simultaneously, with no long-term storage of the whole stream
- Used for live events: sports broadcasts, video calls, live-streamed gaming
- There is very little room for delay, the stream must arrive essentially as it is generated
- Content already exists in full on a server and is sent to the viewer on request
- Used for services like Netflix or YouTube, where content was recorded in advance
- The player can buffer ahead, downloading a little further into the file than the viewer has currently watched
Bit rate, broadband speed, and buffering
A video file has a bit rate, the number of bits needed per second to play it back smoothly, and a higher bit rate generally means better picture and sound quality. For playback to be smooth, your broadband connection's actual download speed must keep up with, or exceed, that bit rate. When the connection is slower than the bit rate, the player's buffer empties faster than it can refill, and playback has to pause, buffering, until enough data has arrived again.
The Internet vs. the World Wide Web
People use "the internet" and "the web" interchangeably in everyday speech, but the syllabus specifically expects you to explain why they are not the same thing. Confusing them is one of the most common ways to lose a mark on this topic, so it is worth being precise.
- The physical, global network of interconnected computers and infrastructure itself, cables, routers, satellites and the protocols (like TCP/IP) that let them communicate
- Existed before the web, and carries far more than just web traffic
- Other services run over the internet too: email, file transfer, online gaming, video calls
- Essentially the hardware and rules that make global connection possible
- A single service that runs on top of the internet: a system of linked documents (web pages) accessed via URLs and displayed in a browser
- Uses HTTP/HTTPS specifically to request and deliver those pages
- Was invented decades after the internet itself, by Tim Berners-Lee in 1989
- Is what most people mean when they casually say "the internet", but it is only one application among many that the internet carries
IP Addressing & Subnetting
For a packet to reach the right computer out of billions connected to the internet, every device needs a unique address. That is the job of an IP address, the internet's equivalent of a postal address.
- 32-bit address, written as four 8-bit numbers (octets)
- Format:
192.168.1.1, each octet ranges 0 to 255 - Provides roughly 4.3 billion unique addresses
- That address space is now essentially exhausted, there are more devices than available addresses
- Private ranges reserved for use inside LANs:
192.168.x.x,10.x.x.x
- 128-bit address, written as eight groups of 4 hexadecimal digits
- Format:
2001:0db8:85a3::0001 - Provides around 340 undecillion unique addresses, effectively unlimited for the foreseeable future
- Was created specifically to solve IPv4 address exhaustion
- Includes built-in security features not originally present in IPv4
How an IP address gets associated with a device
A device does not usually have its IP address permanently baked in. When a device joins a network, it is typically assigned an IP address automatically by a server running DHCP (Dynamic Host Configuration Protocol), which hands out an available address from its pool and keeps track of which device is using which address for as long as that device stays connected.
| IP address type | Description |
|---|---|
| Public IP | Globally unique across the entire internet, assigned to you by your ISP, this is the address the rest of the internet sees you as |
| Private IP | Used only within a LAN, not routable on the public internet, many different LANs can reuse the same private ranges without conflict |
| Static IP | Fixed, does not change between sessions, used for servers and other devices that need a consistent, predictable address |
| Dynamic IP | Reassigned each session by DHCP, may change over time, used for most ordinary client devices |
Subnetting
Subnetting divides one large network into several smaller sub-networks (subnets), using a subnet mask to split every IP address into two parts: a network portion, identifying which subnet a device belongs to, and a host portion, identifying that specific device within its subnet. Wherever the subnet mask has a 1 bit, that position belongs to the network portion, wherever it has a 0, that position belongs to the host portion.
URLs & DNS
Typing painlessprogramming.com into a browser is far easier than remembering an IP address, but underneath, computers still only route traffic using IP addresses. Two systems bridge that gap: the URL, which tells the browser what to ask for, and DNS, which translates the human-readable name into the numeric address a computer can actually use.
URL structure
A URL (Uniform Resource Locator) identifies exactly where a specific resource lives on the web.
How DNS resolves a domain name to an IP address
The Domain Name Service (DNS) works like a phonebook for the internet, it looks up the domain name you typed and returns the IP address of the server that hosts it, so your browser knows exactly where to send its request.
Practice Questions
Try each of these before reading the model answer. They are written in the same style as Cambridge 9618 Paper 1 questions.
This is a WAN. The offices are spread across multiple countries, a large geographical area, and the connection between sites relies on rented telecommunications infrastructure rather than cabling the company owns itself.
Peer-to-peer is the better choice. With only three devices, the cost and management overhead of a dedicated server is not justified. Each laptop can share its own files directly with the others, keeping costs low, and the small scale means the reduced central security and management of P2P is an acceptable trade-off.
Advantage: if one device's cable fails in a star topology, only that device is affected, the rest of the network keeps working, whereas a single cable break in a bus topology brings down the whole network. Disadvantage: a star topology depends entirely on the central switch, if it fails, every device loses connectivity at once, which is not a risk in the same way on a bus.
The internet is the underlying global physical network of interconnected devices and infrastructure. The World Wide Web is a single service that runs on top of the internet, a system of linked documents accessed by URLs over HTTP/HTTPS. The internet also carries other services besides the web, such as email.
Both devices detect the collision (collision detection). Both devices send a jam signal so every device on the network knows the transmitted data was corrupted and should be discarded. Each of the two devices then waits a random amount of time (random backoff) before attempting to retransmit, making a second simultaneous collision unlikely.
The subnet mask 255.255.255.0 marks the first three octets (192.168.1) as the network portion and the last octet as the host portion, meaning up to 254 individual devices can be uniquely identified within this one subnet. Because 192.168.1.x is a private address range, it is not routable on the public internet, so the router performs NAT to translate between the many private addresses used internally and the single public IP address the ISP has assigned, letting every device share one internet connection.
