AS Level 9618 · Paper 1 · Chapter 2

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.

14 sections Syllabus 2.1 7 interactive tools

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.

2.1

Why We Network Computers

Networks Including the Internet

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.

What gets shared
  • 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
What becomes possible
  • 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
The trade-off worth remembering
Networking is never free. It introduces new costs (cabling, switches, routers), new failure points (a broken cable or dead switch can take down every connected device) and new security risks (a single infected machine can now spread to others). Every "advantage of networking" question is really asking you to weigh that shared capability against those new risks.
2.1

LAN vs WAN

Networks Including the Internet

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.

LAN, Local Area Network
  • 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
WAN, Wide Area Network
  • 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
Exam technique
The single distinguishing factor between a LAN and a WAN is geographical scale and who owns the connecting infrastructure, not the number of devices connected. A school with 500 computers on one campus is still a LAN. Two branch offices connected by a single leased line become a WAN the moment that link crosses public infrastructure the organisation does not own.
2.1

Client-Server vs Peer-to-Peer

Networks Including the Internet

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.

Client-server model
  • 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
Peer-to-peer (P2P) model
  • 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.

Exam technique: justifying a model
"Justify" questions want you to connect a specific requirement in the scenario to a specific property of the model. For a school with 2,000 students needing centrally managed accounts and shared files, justify client-server: centralised security and data management make it far easier to control access for that many users, and the extra cost of server hardware is worth it at that scale. For four friends sharing music files at home, justify peer-to-peer: no ongoing server cost or management overhead is needed for such a small, low-security-risk network.
2.1

Thin-Client vs Thick-Client

Networks Including the Internet

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.

FeatureThin clientThick client
ProcessingDone almost entirely on the serverDone locally on the device itself
Local storageMinimal or noneSubstantial local storage
Hardware costLow, it is a simple terminalHigher, it needs a full set of components
Network dependencyCannot function without a network connectionCan continue working offline
MaintenanceCentralised and easy, update the server onceEach device must be maintained separately
Typical exampleA Chromebook, or a call-centre terminalA standard desktop PC or laptop
Why an organisation would choose thin clients
Thin clients push the cost and complexity onto a small number of powerful, centrally maintained servers instead of many separately maintained desktops. That trade only makes sense with a reliable, fast network connection, since a thin client is genuinely useless the moment that connection drops.
2.1

Network Topologies

Networks Including the Internet

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.

Interactive tool
Watch a packet travel across each topology
Choose a topology, then press Play to see exactly how a packet gets from one host to another, and what the diagram reveals about that topology's biggest weakness.
Cable / link Travelling packet Destination host
Bus
  • 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
Star
  • 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
Mesh
  • 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
Hybrid
  • 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
Exam technique: justifying a topology
Always tie your justification to a concrete consequence in the scenario. For a small business that cannot tolerate any downtime, justify a star topology over bus: a single cable fault only removes one workstation, rather than the whole office losing connectivity as it would on a bus. For a data centre where uptime is critical and budget allows it, justify mesh: multiple paths between any two devices mean the network keeps functioning even if several links fail simultaneously.
2.1

Cloud Computing

Networks Including the Internet

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.

Benefits of cloud computing
  • 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
Drawbacks of cloud computing
  • 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
2.1

Transmission Media: Wired vs Wireless

Networks Including the Internet

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.

MediumTypical speedEffective distanceInterferenceCommon use
Copper cable (UTP/STP)Up to 10 Gbps~100mSusceptible to electromagnetic interference (EMI)Standard LAN cabling
Fibre-optic cableUp to 100 TbpsHundreds of kmImmune to EMI, carries light not electricityNetwork backbones, ISP links
Radio waves (WiFi)Up to ~9.6 Gbps (WiFi 6)~100m indoorsHigh, walls and other devices interfereWireless LAN
MicrowavesGbps rangeLine of sight requiredWeather-dependent (rain fade)Point-to-point links between buildings
SatelliteMbps to GbpsGlobal coverageHigh latency due to signal travel distanceRemote/rural areas, GPS

Wired vs wireless: the underlying trade-off

Wired networks
  • 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
Wireless networks
  • 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
2.1

LAN Hardware & the Router

Networks Including the Internet

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.

DeviceWhat 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
SwitchConnects 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
BridgeConnects two separate network segments together and filters traffic between them based on MAC address, reducing unnecessary traffic
RepeaterAmplifies and regenerates a weakening signal so it can travel further without becoming corrupted
ServerA dedicated, typically more powerful computer that provides a specific service (files, email, web pages) to client devices on request
CablesThe 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.

Switch vs router: the question examiners love
A switch forwards traffic within one LAN using MAC addresses. A router forwards traffic between different networks using IP addresses. Your home "router" is usually actually a combined device, a router, switch and WAP all in one box, which is exactly why the distinction gets tested: you need to be able to name the specific job each part is doing.
2.1

Ethernet & CSMA/CD

Networks Including the Internet

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

  1. Carrier sense: before transmitting, a device listens to the shared medium to check whether it is currently idle.
  2. Multiple access: the medium is shared, so several devices are able to attempt transmission independently.
  3. Transmit: if the channel appears idle, the device begins sending its frame.
  4. Collision detection: if two devices happen to transmit at the same moment, their signals collide and corrupt each other, both devices detect this.
  5. 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.
  6. 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.
Interactive tool
CSMA/CD collision, animated
Two devices sense the channel idle and transmit at the same instant. Press Play to watch the collision get detected and resolved.
Press Play to begin.
Exam technique
Do not confuse collision detection (CSMA/CD, used on wired Ethernet, where a device can listen to its own transmission and notice corruption) with collision avoidance schemes used on some wireless networks. If asked to describe CSMA/CD, always include all three ideas in your answer: sensing the channel first, detecting a collision if one occurs, and backing off for a random time before retrying.
2.1

Bit Streaming

Networks Including the Internet

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.

Real-time streaming
  • 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
On-demand streaming
  • 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.

Interactive tool
Broadband speed vs. video bit rate
Drag the slider to change your broadband speed relative to the video's bit rate, and watch what happens to the playback buffer.
Playback buffer0%
2.1

The Internet vs. the World Wide Web

Networks Including the Internet

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 internet
  • 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
The World Wide Web (WWW)
  • 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
A useful analogy
Think of the internet as the road network, the physical infrastructure connecting every city. The World Wide Web is then just one kind of vehicle that uses those roads, alongside other vehicles like email and video calls. The roads existed and continue to exist independently of any one type of traffic travelling on them.
2.1

IP Addressing & Subnetting

Networks Including the Internet

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.

IPv4
  • 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
IPv6
  • 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 typeDescription
Public IPGlobally unique across the entire internet, assigned to you by your ISP, this is the address the rest of the internet sees you as
Private IPUsed only within a LAN, not routable on the public internet, many different LANs can reuse the same private ranges without conflict
Static IPFixed, does not change between sessions, used for servers and other devices that need a consistent, predictable address
Dynamic IPReassigned each session by DHCP, may change over time, used for most ordinary client devices
Public vs private: the security implication
A private IP address is not directly reachable from the internet at all, a router performs Network Address Translation (NAT) to let many private devices share one public address. This is an incidental security benefit: an attacker outside your network cannot directly address a device sitting behind a private IP. A public IP address, being globally reachable, is a much more direct target and needs its own protection (a firewall, for instance).

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.

Interactive tool
Network portion vs. host portion, visualised
Pick a subnet mask and see exactly which bits of the IP address identify the subnet (indigo) and which identify the individual host (amber).
Why bother subnetting?
Subnetting improves security (a compromised device on one subnet cannot directly reach every device on the whole network), reduces broadcast traffic (broadcasts stay confined to their own subnet instead of flooding the entire organisation), and makes IP address management easier by grouping devices logically, for example by department or floor.
2.1

URLs & DNS

Networks Including the Internet

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.

https://www.painlessprogramming.com/chapter1/index.html   Protocol: https Domain: www.painlessprogramming.com Path: /chapter1/index.html

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.

Interactive tool
DNS resolution, step by step
Press Play to follow one request for painlessprogramming.com from your browser all the way to the web server and back.
Press Play to begin.
Exam technique
If asked to describe the role of DNS, the key idea to include is translation: DNS converts a human-readable domain name into the numeric IP address that routers actually use to direct packets. Mentioning that this lookup is cached (by your browser, operating system, or router) so repeated visits to the same site do not need a fresh lookup every time is a strong way to earn extra marks.
✓

Practice Questions

Exam technique

Try each of these before reading the model answer. They are written in the same style as Cambridge 9618 Paper 1 questions.

2 marks
Q1. A company has offices in five different countries, all connected together so staff can share files and video-call between sites. State, with a reason, whether this network is a LAN or a WAN.
Answer

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.

3 marks
Q2. A small design studio with three employees wants to share files between their laptops without buying a dedicated server. Justify which network model, client-server or peer-to-peer, suits them best.
Answer

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.

2 marks
Q3. Explain one advantage and one disadvantage of connecting devices in a star topology rather than a bus topology.
Answer

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.

2 marks
Q4. State the difference between the internet and the World Wide Web.
Answer

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.

3 marks
Q5. Two devices on an Ethernet network transmit at the same instant and their signals collide. Describe what happens next.
Answer

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.

4 marks
Q6. A home network uses the private IP range 192.168.1.x with a subnet mask of 255.255.255.0. Explain what the subnet mask is doing, and why the router needs to perform Network Address Translation (NAT).
Answer

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.

Stop wrestling with confusion.
Join thousands of students mastering Computer Science without the academic jargon.
Explore all AS Level notes
AS Level 9618 · Paper 1 · Chapter 2

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.

14 sections Syllabus 2.1 7 interactive tools

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.

2.1

Why We Network Computers

Networks Including the Internet

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.

What gets shared
  • 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
What becomes possible
  • 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
The trade-off worth remembering
Networking is never free. It introduces new costs (cabling, switches, routers), new failure points (a broken cable or dead switch can take down every connected device) and new security risks (a single infected machine can now spread to others). Every "advantage of networking" question is really asking you to weigh that shared capability against those new risks.
2.1

LAN vs WAN

Networks Including the Internet

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.

LAN, Local Area Network
  • 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
WAN, Wide Area Network
  • 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
Exam technique
The single distinguishing factor between a LAN and a WAN is geographical scale and who owns the connecting infrastructure, not the number of devices connected. A school with 500 computers on one campus is still a LAN. Two branch offices connected by a single leased line become a WAN the moment that link crosses public infrastructure the organisation does not own.
2.1

Client-Server vs Peer-to-Peer

Networks Including the Internet

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.

Client-server model
  • 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
Peer-to-peer (P2P) model
  • 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.

Exam technique: justifying a model
"Justify" questions want you to connect a specific requirement in the scenario to a specific property of the model. For a school with 2,000 students needing centrally managed accounts and shared files, justify client-server: centralised security and data management make it far easier to control access for that many users, and the extra cost of server hardware is worth it at that scale. For four friends sharing music files at home, justify peer-to-peer: no ongoing server cost or management overhead is needed for such a small, low-security-risk network.
2.1

Thin-Client vs Thick-Client

Networks Including the Internet

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.

FeatureThin clientThick client
ProcessingDone almost entirely on the serverDone locally on the device itself
Local storageMinimal or noneSubstantial local storage
Hardware costLow, it is a simple terminalHigher, it needs a full set of components
Network dependencyCannot function without a network connectionCan continue working offline
MaintenanceCentralised and easy, update the server onceEach device must be maintained separately
Typical exampleA Chromebook, or a call-centre terminalA standard desktop PC or laptop
Why an organisation would choose thin clients
Thin clients push the cost and complexity onto a small number of powerful, centrally maintained servers instead of many separately maintained desktops. That trade only makes sense with a reliable, fast network connection, since a thin client is genuinely useless the moment that connection drops.
2.1

Network Topologies

Networks Including the Internet

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.

Interactive tool
Watch a packet travel across each topology
Choose a topology, then press Play to see exactly how a packet gets from one host to another, and what the diagram reveals about that topology's biggest weakness.
Cable / link Travelling packet Destination host
Bus
  • 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
Star
  • 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
Mesh
  • 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
Hybrid
  • 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
Exam technique: justifying a topology
Always tie your justification to a concrete consequence in the scenario. For a small business that cannot tolerate any downtime, justify a star topology over bus: a single cable fault only removes one workstation, rather than the whole office losing connectivity as it would on a bus. For a data centre where uptime is critical and budget allows it, justify mesh: multiple paths between any two devices mean the network keeps functioning even if several links fail simultaneously.
2.1

Cloud Computing

Networks Including the Internet

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.

Benefits of cloud computing
  • 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
Drawbacks of cloud computing
  • 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
2.1

Transmission Media: Wired vs Wireless

Networks Including the Internet

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.

MediumTypical speedEffective distanceInterferenceCommon use
Copper cable (UTP/STP)Up to 10 Gbps~100mSusceptible to electromagnetic interference (EMI)Standard LAN cabling
Fibre-optic cableUp to 100 TbpsHundreds of kmImmune to EMI, carries light not electricityNetwork backbones, ISP links
Radio waves (WiFi)Up to ~9.6 Gbps (WiFi 6)~100m indoorsHigh, walls and other devices interfereWireless LAN
MicrowavesGbps rangeLine of sight requiredWeather-dependent (rain fade)Point-to-point links between buildings
SatelliteMbps to GbpsGlobal coverageHigh latency due to signal travel distanceRemote/rural areas, GPS

Wired vs wireless: the underlying trade-off

Wired networks
  • 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
Wireless networks
  • 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
2.1

LAN Hardware & the Router

Networks Including the Internet

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.

DeviceWhat 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
SwitchConnects 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
BridgeConnects two separate network segments together and filters traffic between them based on MAC address, reducing unnecessary traffic
RepeaterAmplifies and regenerates a weakening signal so it can travel further without becoming corrupted
ServerA dedicated, typically more powerful computer that provides a specific service (files, email, web pages) to client devices on request
CablesThe 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.

Switch vs router: the question examiners love
A switch forwards traffic within one LAN using MAC addresses. A router forwards traffic between different networks using IP addresses. Your home "router" is usually actually a combined device, a router, switch and WAP all in one box, which is exactly why the distinction gets tested: you need to be able to name the specific job each part is doing.
2.1

Ethernet & CSMA/CD

Networks Including the Internet

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

  1. Carrier sense: before transmitting, a device listens to the shared medium to check whether it is currently idle.
  2. Multiple access: the medium is shared, so several devices are able to attempt transmission independently.
  3. Transmit: if the channel appears idle, the device begins sending its frame.
  4. Collision detection: if two devices happen to transmit at the same moment, their signals collide and corrupt each other, both devices detect this.
  5. 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.
  6. 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.
Interactive tool
CSMA/CD collision, animated
Two devices sense the channel idle and transmit at the same instant. Press Play to watch the collision get detected and resolved.
Press Play to begin.
Exam technique
Do not confuse collision detection (CSMA/CD, used on wired Ethernet, where a device can listen to its own transmission and notice corruption) with collision avoidance schemes used on some wireless networks. If asked to describe CSMA/CD, always include all three ideas in your answer: sensing the channel first, detecting a collision if one occurs, and backing off for a random time before retrying.
2.1

Bit Streaming

Networks Including the Internet

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.

Real-time streaming
  • 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
On-demand streaming
  • 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.

Interactive tool
Broadband speed vs. video bit rate
Drag the slider to change your broadband speed relative to the video's bit rate, and watch what happens to the playback buffer.
Playback buffer0%
2.1

The Internet vs. the World Wide Web

Networks Including the Internet

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 internet
  • 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
The World Wide Web (WWW)
  • 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
A useful analogy
Think of the internet as the road network, the physical infrastructure connecting every city. The World Wide Web is then just one kind of vehicle that uses those roads, alongside other vehicles like email and video calls. The roads existed and continue to exist independently of any one type of traffic travelling on them.
2.1

IP Addressing & Subnetting

Networks Including the Internet

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.

IPv4
  • 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
IPv6
  • 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 typeDescription
Public IPGlobally unique across the entire internet, assigned to you by your ISP, this is the address the rest of the internet sees you as
Private IPUsed only within a LAN, not routable on the public internet, many different LANs can reuse the same private ranges without conflict
Static IPFixed, does not change between sessions, used for servers and other devices that need a consistent, predictable address
Dynamic IPReassigned each session by DHCP, may change over time, used for most ordinary client devices
Public vs private: the security implication
A private IP address is not directly reachable from the internet at all, a router performs Network Address Translation (NAT) to let many private devices share one public address. This is an incidental security benefit: an attacker outside your network cannot directly address a device sitting behind a private IP. A public IP address, being globally reachable, is a much more direct target and needs its own protection (a firewall, for instance).

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.

Interactive tool
Network portion vs. host portion, visualised
Pick a subnet mask and see exactly which bits of the IP address identify the subnet (indigo) and which identify the individual host (amber).
Why bother subnetting?
Subnetting improves security (a compromised device on one subnet cannot directly reach every device on the whole network), reduces broadcast traffic (broadcasts stay confined to their own subnet instead of flooding the entire organisation), and makes IP address management easier by grouping devices logically, for example by department or floor.
2.1

URLs & DNS

Networks Including the Internet

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.

https://www.painlessprogramming.com/chapter1/index.html   Protocol: https Domain: www.painlessprogramming.com Path: /chapter1/index.html

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.

Interactive tool
DNS resolution, step by step
Press Play to follow one request for painlessprogramming.com from your browser all the way to the web server and back.
Press Play to begin.
Exam technique
If asked to describe the role of DNS, the key idea to include is translation: DNS converts a human-readable domain name into the numeric IP address that routers actually use to direct packets. Mentioning that this lookup is cached (by your browser, operating system, or router) so repeated visits to the same site do not need a fresh lookup every time is a strong way to earn extra marks.
✓

Practice Questions

Exam technique

Try each of these before reading the model answer. They are written in the same style as Cambridge 9618 Paper 1 questions.

2 marks
Q1. A company has offices in five different countries, all connected together so staff can share files and video-call between sites. State, with a reason, whether this network is a LAN or a WAN.
Answer

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.

3 marks
Q2. A small design studio with three employees wants to share files between their laptops without buying a dedicated server. Justify which network model, client-server or peer-to-peer, suits them best.
Answer

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.

2 marks
Q3. Explain one advantage and one disadvantage of connecting devices in a star topology rather than a bus topology.
Answer

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.

2 marks
Q4. State the difference between the internet and the World Wide Web.
Answer

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.

3 marks
Q5. Two devices on an Ethernet network transmit at the same instant and their signals collide. Describe what happens next.
Answer

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.

4 marks
Q6. A home network uses the private IP range 192.168.1.x with a subnet mask of 255.255.255.0. Explain what the subnet mask is doing, and why the router needs to perform Network Address Translation (NAT).
Answer

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.

Stop wrestling with confusion.
Join thousands of students mastering Computer Science without the academic jargon.
Explore all AS Level notes

Stop wrestling with confusion.

Join thousands of students mastering Computer Science without the academic jargon.

From syntax to systems. We break down the hardest ideas in computer science so you can actually build things.

© 2026 Painless Programming. Built for students.
Scroll to Top
Enable Notifications OK No thanks