AS & A Level Computer Science · Area 1 · AS Level content

Networks including the internet

A network is a set of devices connected so that they can share data and hardware, and the internet is the largest network of all, built from LANs joined by links owned by telecommunications companies. This topic covers the hardware of a LAN, client-server and peer-to-peer models, the four topologies and how a packet crosses each one, wired and wireless media, cloud computing and bit streaming, and the addressing that makes the internet work: IPv4, IPv6, subnetting, URLs and DNS. Marks are usually lost by confusing a switch with a router, by describing the internet and the World Wide Web as the same thing, or by writing an IPv6 address in the wrong format.

Not started

Syllabus coverage

  • The characteristics of a LAN (local area network) and a WAN (wide area network)
  • The client-server and peer-to-peer models of networked computers, including the roles of the different computers and subnetwork models, and the benefits and drawbacks of each
  • Thin-client and thick-client, the differences between them, and justifying the use of a model for a given situation
  • The bus, star, mesh and hybrid topologies, and how packets are transmitted between two hosts for a given topology
  • Justifying the use of a topology for a given situation
  • Cloud computing, including the use of public and private clouds, and its benefits and drawbacks
  • The differences between, and the implications of the use of, wireless and wired networks
  • The characteristics of copper cable, fibre-optic cable, radio waves (including WiFi), microwaves and satellites
  • The purpose and benefits of networking devices, including the hardware used to support a LAN: switch, server, Network Interface Card (NIC), Wireless Network Interface Card (WNIC), Wireless Access Point (WAP), cables, bridge and repeater
  • The role and function of a router in a network
  • Ethernet, and how collisions are detected and avoided, including Carrier Sense Multiple Access / Collision Detection (CSMA / CD)
  • Bit streaming: the real-time and on-demand methods, and the importance of bit rate and broadband speed
  • The differences between the World Wide Web (WWW) and the internet, and the hardware used to support the internet: modems, PSTN (Public Switched Telephone Network), dedicated lines and cell phone networks
  • The use of IP addresses in the transmission of data over the internet: the format of IPv4 and IPv6 addresses, subnetting, and how an IP address is associated with a device; how a URL locates a resource on the WWW and the role of the Domain Name Service (DNS), including public and private IP addresses, and static and dynamic IP addresses

Part of the AS & A Level Computer Science syllabus 9618.

The TCP/IP layer stackData moves down the stack; each layer adds its own header.HTTP travels inside TCP, inside IP, inside an Ethernet frame.ApplicationHTTPTransportTCPNetworkIPLinkEthernetencapsulationDATATCPDATAIPTCPDATAETHIPTCPDATATRL
The four-layer TCP/IP stack: each layer adds its own header as data moves down towards the link, and removes it as data moves back up.

Networks, LANs and WANs

Two or more devices connected so that they can share data and hardware form a network. The point of a network is sharing: one printer, one central store of files and one internet connection can serve many users, and any user can reach data held on another machine without walking to it.

A local area network (LAN) covers a small geographical area - a single building, or the buildings on one site, such as a school, an office or a home. The hardware is normally owned and managed by the organisation itself, so it chooses its own cabling, its own switches and its own security. Because the distances are short, a LAN runs at high data rates - switched Ethernet at 1 Gbps to the desktop is ordinary - and the latency is very low.

A wide area network (WAN) covers a large geographical area, from a city to the whole world, and its purpose is to connect LANs that are far apart. The links between the sites generally belong to a telecommunications company and are leased by the organisation, because laying your own cable across a country is not realistic.

Bandwidth costs more, latency is higher and the design is more complex, with routers at each site deciding how traffic passes between them. The internet is the largest WAN in existence.

The distinction between the two is scale and ownership rather than technology. Both move packets between hosts, both use IP addresses and both are built from switches, routers and links; what changes is the distance, who owns the links, and how much bandwidth you get for the money.

  • Share hardware: one printer or one large storage array can serve the whole site.
  • Share data: files are held centrally, so everyone works from the same version and one backup covers them all.
  • Communicate: email, messaging and video calls run over the same connection.
  • Central management: user accounts, security settings and software updates are applied once, at the server.
  • Cheaper per user: fewer devices and fewer internet connections are needed than for standalone machines.
  • Remote access: staff can reach the network from home over a WAN link.
FeatureLANWAN
Area coveredOne building or one siteA city, a country or the world
Who owns the linksThe organisationA telecommunications provider, leased by the organisation
Typical data rate100 Mbps to 10 GbpsA few Mbps to a few Gbps, shared and more expensive
LatencyVery low, usually under a millisecondHigher and more variable
Typical hardwareSwitch, NIC, WAP, cablingRouter, modem, dedicated line, satellite or cell link
ExampleThe network in a schoolA bank connecting its branches; the internet
A WAN is LANs joined together. Describe it as several LANs connected by links owned by a third party, not as a different kind of network.

The hardware that supports a LAN

There are seven devices to know for a LAN, plus the cable that joins them, and every question about them is really asking the same two things: what does the device do to the data, and what does it base its decisions on?

A network interface card (NIC) is the hardware inside a device that connects it to the network. It holds the device's MAC address, which is fixed when the card is made, and it converts data from the parallel form used inside the computer into the serial signals the medium carries.

A wired NIC has an RJ45 socket for a twisted-pair cable. A wireless NIC (WNIC) has a radio transceiver and an aerial instead, and connects to a wireless access point.

A switch sits at the centre of a star topology. It learns the MAC address on each port by reading the source address of every frame that arrives, then forwards each frame out of the one port where the destination is known to be. That is a large improvement on a shared segment, where every frame reaches every host: each switch port is its own collision domain, full duplex becomes possible, and local traffic stays off the rest of the network.

A server is a computer whose job is to provide a service to the other machines - files, printing, email, web pages, DHCP addresses or DNS lookups. It is built with more memory, faster storage and often duplicate disks and power supplies, because many users depend on it. Its weakness is that it is a single point of failure, so important servers are duplicated or clustered.

A wireless access point (WAP) joins wireless devices to the wired LAN. It contains a radio transceiver and an aerial, and it bridges frames between the radio network and the cable, handling authentication and encryption with WPA2 or WPA3 as it does so. Access points are placed so that their coverage overlaps slightly, which lets a device move through the building without losing the connection.

A bridge joins two segments of the same LAN. It reads the MAC address of each frame, learns which addresses lie on which side, and forwards a frame across only when the destination is on the other side; frames for devices on the same side are filtered out.

That filtering cuts traffic and turns one large collision domain into two smaller ones. A switch does the same job with many ports, so a bridge now usually links two switches, or joins two buildings over a wireless link.

A repeater regenerates a digital signal so that a cable can run further than the medium allows. It does not simply amplify, which would amplify the noise as well: it reads the incoming bits and transmits clean copies of them. It makes no decision about addresses, so every bit that arrives is sent out again.

The cable itself is the medium: unshielded twisted pair (UTP) to the desk, and fibre-optic cable for the backbone between switches or between buildings.

DeviceWhat it doesWhy it is used
NICConnects a device to the medium, holds the MAC address, converts data into signalsEvery device needs one to attach to a wired LAN
WNICRadio transceiver and aerial, connects a device to a wireless LANGives a device wireless access with no cable
SwitchLearns MAC addresses and forwards each frame only to the correct portReduces collisions, increases throughput, separates collision domains
ServerProvides a shared service such as files, printing, DHCP or DNSCentral storage, central control and central backup
WAPBridges wireless devices onto the wired LAN and handles encryptionGives wireless coverage over a wired backbone
BridgeForwards frames between two LAN segments only when the destination is on the other sideReduces traffic and splits a large collision domain
RepeaterRegenerates the digital signal to extend the cable runPushes a signal beyond the normal distance limit
CableCarries the signal: copper for the desk run, fibre for the backboneProvides the physical path between devices
Two addresses, two devices. A switch forwards on the MAC address inside the LAN; a router forwards on the IP address between networks. Saying that a switch routes packets is an immediate lost mark.

Routers, Ethernet and collisions

A router connects networks to one another, and its job is to get a packet to a network it is not directly attached to. Each of its interfaces has its own IP address.

When a packet arrives, the router reads the destination IP address, looks it up in its routing table, and forwards the packet out of the interface that leads to the best next hop. The table can be configured by hand or learned automatically from other routers.

For a LAN, the router is the default gateway: any packet whose destination is not on the local subnet is sent to it. The router also performs network address translation (NAT), which lets many devices with private addresses share one public address, and a home router adds a switch, a wireless access point, a DHCP server and a firewall in the same box.

Ethernet is the family of standards (IEEE 802.3) that defines how a wired LAN sends data: the frame format, the addressing, the cabling and the speeds, which run from 10 Mbps to 100 Gbps and beyond. A frame carries the destination MAC address, the source MAC address, a type field, the data (usually 46 to 1500 bytes) and a frame check sequence, a checksum used to detect corruption in transit.

A MAC address is 48 bits long, written as six pairs of hexadecimal digits such as 00:1A:2B:3C:4D:5E. The first three pairs identify the manufacturer and the last three are unique to the card, so no two NICs should share one. It is a physical address: it stays the same wherever the device goes.

A collision happens when two hosts on a shared segment transmit at the same time. The two signals add together on the cable, both frames are corrupted, and both transmissions are wasted. The rules that recover from this are carrier sense multiple access with collision detection (CSMA/CD): a host listens before it sends, keeps listening while it sends, and backs off for a random time if it hears a collision.

On a modern switched network each device has its own pair of wires to the switch and can transmit and receive at the same time, so collisions cannot occur and CSMA/CD is not needed. Wireless networks cannot detect a collision while they are transmitting, so they use CSMA/CA, carrier sense multiple access with collision avoidance: a station waits a random time after the medium becomes free, and expects an acknowledgement, which avoids most collisions instead of detecting them.

StepWhat the host does
Carrier senseListens to the medium and waits until no other station is transmitting
Multiple accessAny station may transmit when the medium is free, which is why two can start at once
Transmit and monitorSends the frame and continues to compare the signal on the medium with what it is sending
Collision detectedStops transmitting and sends a short jam signal so that every station notices the collision
Random back-offWaits for a random period chosen from a range that doubles after each failed attempt
RetryReturns to carrier sense and tries again; after repeated failures the frame is abandoned
The order matters: listen, transmit, detect, jam, back off, retry. The random back-off is the step weaker answers leave out, and it is the step that stops the same two hosts colliding again the instant the cable clears.

Client-server, peer-to-peer, thin and thick clients

In the client-server model one or more computers are dedicated servers and the rest are clients. The server holds the data and provides the service; the client sends a request and presents the result. The roles are fixed and they are different: the server runs the service and enforces the rules, and the client runs the interface and asks for things.

Servers usually have a fixed, well-known IP address, sit in a locked room with backup power, and are run by a specialist. Clients are the ordinary desktops, laptops and phones, and they can be configured to find their services automatically, taking their own address from DHCP and the server's name from DNS.

In a peer-to-peer (P2P) network every computer can act as both client and server: each one can share its own files and printers and can use anything shared by any other. There is no central store and no central administrator, which makes a small network cheap and quick to set up and means nobody has to buy a server. The price is that there is no central control, no central backup and no consistent security policy, and a machine can only be used while it is switched on.

A large network is usually split into subnetworks (subnets), each a smaller network with its own range of addresses, joined to the rest by routers. The roles are repeated inside each subnet: a file server for the admin staff, a different server for students, a switch in each room and a router between them. Splitting the network keeps broadcast traffic inside one subnet, lets each subnet have its own security rules, and stops a fault in one part from flooding the rest.

A thin client is a low-power terminal with little processing power, memory or storage. It does almost nothing itself: the application runs on a server and only screen, keyboard and mouse traffic crosses the network. A thick client is an ordinary PC that runs the application and stores its files locally, using the network mainly for shared storage and services.

The difference that earns marks is where the processing and the data sit. A thin client is cheap to buy, quiet, low on power and easy to replace, and because the data never leaves the server it is easier to secure and to back up; but it is useless without a working network and a powerful server, and it is a poor choice for video editing or computer-aided design. A thick client keeps working when the network fails, handles graphics well and spreads the processing load, but it costs more per seat, its software must be updated machine by machine, and its data is spread across many devices.

FeatureThin clientThick client
ProcessingDone on the serverDone on the local machine
StorageFiles held on the serverFiles held locally, with shared storage on the network
Cost per seatLow to buy, low powerHigher to buy, more maintenance
ManagementSoftware installed and updated once, on the serverEvery machine updated separately
Dependence on the networkTotal: no link, no workLimited: keeps working offline
SuitsCall centres, exam halls, reception desks, record look-upDesign, video editing, engineering, any heavy local processing
Justify by naming the workload. A reception desk looking up records needs almost no local processing and a lot of central control, so thin; a video editor needs the opposite, so thick.

Topologies, and how a packet travels across each one

A topology is the arrangement of the devices and the links between them. There are four in this syllabus, and each one changes both how a packet reaches its destination and what happens when something fails.

In a bus, every device taps into one shared backbone cable, terminated at both ends so the signal does not reflect back. When a host transmits, the frame travels along the whole cable and every device receives it; each NIC compares the destination MAC address with its own, and only the matching one accepts the frame.

The cable is shared, so only one host can transmit at a time and CSMA/CD is needed. A bus uses very little cable and no central device, but a break in the backbone or a missing terminator stops the whole network, every device competes for the same bandwidth, and a fault is hard to find because there is no centre to test from.

In a star, every device has its own cable to a central switch. The switch reads the destination MAC address and sends the frame out of that one port only, so a star is fast and a single faulty cable affects a single device.

If the central switch fails, the whole network fails, and more cable is needed because every device needs its own run back to the centre. Nearly every office and school LAN is a star, often a star of stars with switches chained together.

In a mesh, each node is connected to several others, or in a full mesh to every other node; a full mesh of n nodes needs n(n-1)/2 links. With several routes between any two points there is no single point of failure, because traffic can go another way when a link or a node fails.

The cost is the number of links and ports, which rises very quickly with the number of nodes, plus the complexity of configuring the routing. Mesh and partial mesh are used for WAN backbones, for joining a few critical sites, and for wireless mesh networks.

A hybrid combines the others, and it is what most real networks are. A school might have a star in each block, the stars joined by a fibre backbone in a ring or mesh, with a wireless network on top for laptops and phones. The internet itself is a mesh of networks with many different shapes inside.

To say how a packet reaches another host, follow it device by device. The sending host builds the packet, and its NIC puts it into a frame addressed to the next device on the path.

On a star, that next device is the switch, which looks up the destination MAC address and forwards the frame out of the right port; on a bus the frame is broadcast along the backbone and only the destination accepts it. If the destination is on another network, the frame goes to the default gateway, and from there each router forwards the packet by its IP address until the packet reaches the destination network, where the final router delivers it to the host.

TopologyHow the packet reaches the other hostStrengthWeakness
BusBroadcast along the shared backbone; every host reads the frame and only the destination accepts itCheap, little cable, no central deviceOne break stops the network; heavy contention; hard to troubleshoot
StarSwitch reads the destination MAC address and forwards it out of that one portFault isolation, high throughput, easy to extendCentral switch is a single point of failure; more cable
MeshRouted hop by hop along one of several available pathsRedundant paths, no single point of failureMany links and ports, high cost, complex routing
HybridStar inside each block, then routed across the backboneMatches the shape of the organisation; scalableMore complex to design and manage
When a question says for a given topology, do not describe packets in general: name the first device that receives the frame and the address it uses to decide where to send it.

Wired and wireless media

The medium is what carries the signal, and every medium trades one advantage for another. Learn each one with a strength and a limitation, because compare and justify questions always want both.

Copper cable carries data as electrical pulses. Twisted pair, the ordinary network cable with an RJ45 plug, is cheap, flexible and easy to terminate, and it can carry power as well as data, which is how an access point in a ceiling is fed.

The weaknesses of twisted pair are distance, since a standard Ethernet run is limited to about 100 metres, and interference: electrical noise from motors, power cables and fluorescent lights induces a current in the wire, and signals in neighbouring pairs interfere with each other as crosstalk. Coaxial cable has a single core inside a shield, so it resists interference better and is used for cable broadband.

Fibre-optic cable carries data as pulses of light along a glass core. It has enormous bandwidth, runs for kilometres rather than metres, is completely immune to electrical interference, is hard to tap without disturbing the light, and carries no electrical hazard.

Fibre costs more, the cable is fragile, joining two fibres needs a skilled technician with a fusion splicer, and every device on the end needs an optical transceiver. It is the standard choice for backbones, between buildings and for long WAN links.

Radio waves, including WiFi, carry data through the air. WiFi uses the 2.4 GHz and 5 GHz bands, and 6 GHz on newer equipment, under the IEEE 802.11 standards; those bands are unlicensed, so a network can be installed without buying a licence. Radio gives mobility, needs no cable to each device and is quick to extend, but the signal weakens with distance and with walls and metal, the air is shared so every device on an access point competes for the same bandwidth, it suffers interference from other networks, microwave ovens and Bluetooth, and anyone in range can try to listen, so WPA2 or WPA3 encryption is essential.

Microwaves are used for point-to-point terrestrial links, with a dish at each end aimed at the other. The link must be line of sight: the dishes sit on masts or roofs, and anything in the path, including a new building or a mature tree, breaks it.

A microwave link carries high bandwidth over tens of kilometres and is far cheaper and quicker to install than digging a trench for fibre, which is why it is used between two sites of one organisation, or across a river or a valley. Heavy rain degrades it.

Satellites use a dish pointed at a satellite in orbit. A geostationary satellite sits about 36 000 km above the equator and stays over the same point, so the dish does not have to track it, and one satellite covers a large area including places no cable reaches.

The penalty for a satellite link is latency: the signal travels up and back, giving a round trip of roughly half a second, which is painful for video calls and impossible for fast online games. Low Earth orbit constellations such as Starlink fly a few hundred kilometres up and give much lower latency, but they need hundreds of satellites and a dish that tracks them.

The implications of wired against wireless come down to five things: mobility, since only wireless lets a device move; installation, since wireless avoids the cost and disruption of cabling while a cable is faster and more reliable; bandwidth, since a cable gives each device a dedicated connection while wireless shares the air; interference and security, since radio can be blocked, overheard and attacked from outside the building; and latency, which is more variable over radio.

MediumSignalTypical useStrengthLimitation
Copper (twisted pair)Electrical pulsesDesk connections in a LANCheap, easy to install, can carry powerAbout 100 m limit, interference and crosstalk, lower bandwidth
Fibre-opticPulses of lightBackbones, building-to-building, WAN linksVery high bandwidth, long distance, immune to interference, hard to tapExpensive, fragile, needs skilled jointing and transceivers
Radio / WiFiRadio wavesLaptops, phones, tablets in a WLANMobility, no cabling, quick to add devicesShared bandwidth, interference, attenuated by walls, needs encryption
MicrowaveHigh-frequency radio, line of sightPoint-to-point links between sitesHigh bandwidth, cheap and quick compared with trenchingNeeds clear line of sight, affected by rain and new obstructions
SatelliteRadio to and from orbitRemote areas, ships, backup linksCovers anywhere, no ground infrastructure to the siteHigh latency on geostationary links, expensive, weather affected
A media answer that stops at the description scores about half. Finish with the consequence for the user - faster, cheaper, mobile or more secure - and say for whom.

Cloud computing and bit streaming

Cloud computing means using computing resources - storage, processing power and software - provided by a third party over the internet, on demand and paid for as they are used. The organisation does not own the hardware; it rents capacity, and the provider is responsible for the building, the power, the cooling and the maintenance.

A public cloud is owned by a provider and its resources are shared between many customers, each kept logically separate. Because the provider buys at huge scale, the cost per hour is low, capacity can be added in minutes, and there is nothing to maintain on site. The trade-offs are that the data is held by someone else, under their security and in their jurisdiction, that performance depends on the internet link, and that the bill continues for as long as the service is used.

A private cloud is dedicated to one organisation, either in its own data centre or hosted for it alone. It gives control over where the data sits, how it is secured and how the hardware is configured, which matters for regulated records such as medical or financial data.

A private cloud costs more, because the hardware and the staff are paid for whether the system is busy or idle, and it scales only as fast as new equipment can be bought. Many organisations run a hybrid of the two: sensitive records in a private cloud, and public cloud capacity for a website that must survive a sudden surge in demand.

Bit streaming is playing media while it is still being downloaded, instead of waiting for the whole file. The player keeps a few seconds of the stream in a buffer ahead of playback, so that a short slowdown on the network does not interrupt the sound or the picture.

Real-time streaming is live: the data is generated as it is sent, as in a live match, a video call or a radio broadcast. There is nothing to buffer ahead, because the next second of the event has not happened yet, so the stream needs a steady bit rate and low, consistent latency; if the connection falls below the bit rate the picture stalls and then jumps forward.

On-demand streaming plays media that is already stored, such as a catch-up programme or a film. The viewer can start at any point, pause and skip, and because the rest of the file already exists the player can buffer much further ahead, which hides short drops in speed.

The bit rate is the number of bits per second the stream needs, and the broadband speed must be comfortably above it. A 5 Mbps stream cannot run on a 4 Mbps connection at all, and on a connection that only just exceeds it any competing traffic causes buffering. When the available speed falls, adaptive streaming drops to a lower bit rate and quality instead of stopping, which is why a weak connection gives a soft, blocky picture.

FeatureReal-time streamingOn-demand streaming
Source of the mediaGenerated and sent liveStored on a server, ready to send
Where playback can startOnly at the live pointAt any point the viewer chooses
BufferingMinimal, since there is nothing yet to bufferCan buffer a long way ahead
Latency requirementLow and consistentLess critical
If the bit rate is not metPlayback stalls, then jumps forwardPlayback pauses to refill the buffer
ExampleA live football match; a video callA catch-up programme; a film on demand
Put a number on it. Saying 'you need a fast connection' scores nothing; saying the connection speed must exceed the stream's bit rate, with headroom for other traffic, scores the mark.

The internet, the World Wide Web and the hardware behind them

The internet is the global network of interconnected networks. It is infrastructure: submarine cables, fibre in the ground, routers in exchanges and the internet exchange points where networks meet, all running the same suite of protocols, chiefly TCP/IP. It exists whether or not anybody is browsing.

The World Wide Web is one service that runs on the internet: the collection of web pages and other resources, identified by URLs, requested with HTTP or HTTPS and displayed by a browser. Email, file transfer, voice calls and streaming are other services on the same internet. So the internet is the road network and the web is one kind of traffic on it: you can be connected to the internet without opening a web page, but you cannot open a web page without the internet.

A modem (modulator-demodulator) converts between the digital data of the computer and the signal the line can carry. On an ordinary telephone line it turns the data into sound frequencies the line will pass; on a cable television network it does the equivalent job for the cable; on fibre, an optical network terminal converts between light and electrical signals. Without it the digital data would not survive the journey to the exchange.

The public switched telephone network (PSTN) is the world's telephone system, a circuit-switched network built to carry voices. Dial-up internet used it directly: the modem called a number, the connection held the line open, and the speed was very low. ADSL reuses the same copper pair for data at higher speeds while leaving the voice service usable, by carrying the data on frequencies the voice does not occupy.

A dedicated line (leased line) is a permanent point-to-point connection rented from a provider. It is private to the customer, always on, and normally offers the same speed in both directions - symmetric bandwidth - with a guaranteed service level. It is the most expensive option, and it is used by businesses, schools and hospitals that cannot tolerate a shared or variable link.

A cell phone network carries data over radio links between a mobile device and the nearest base station, handing the connection from one cell to the next as the user moves. It provides internet access where there is no cable at all, which makes it the connection for phones and tablets and a useful backup link for a business, but coverage, speed and latency vary with position and with the load on the cell.

Data crosses all of these links by packet switching. A message is split into packets, each with a header holding the source and destination IP addresses, a sequence number and a time to live.

Each packet is routed independently, so two packets from the same file may take different routes and arrive out of order, and the destination reassembles them by sequence number. That is what makes the internet resilient: if a router or a link fails, packets go another way, whereas a circuit-switched network such as the PSTN must set up and reserve a path before any data moves.

HardwareFunction
ModemConverts digital data to and from the signal the line carries
PSTN lineCircuit-switched telephone line, used by dial-up and, with ADSL, for broadband over copper
Dedicated linePermanent, private, symmetric leased connection between two sites
Cell phone networkRadio links to base stations, giving mobile data access with handover between cells
If asked for the difference between the internet and the WWW, give the contrast in one line: the internet is the infrastructure of networks, the web is a service of pages and resources carried on it.

IP addresses, URLs and DNS

An IP address is the logical address of a device on a network. Routers use it to decide where a packet goes: the MAC address only matters inside one LAN segment, while the IP address is what carries a packet across the internet.

An IPv4 address is 32 bits long, written as four decimal numbers separated by dots, each from 0 to 255, for example 192.168.10.25. The four groups are called octets because each one is a byte. Thirty-two bits give about 4.3 billion possible addresses, and they have effectively run out, which is why IPv6 exists.

An IPv6 address is 128 bits long, written as eight groups of four hexadecimal digits separated by colons, for example 2001:0db8:85a3:0000:0000:8a2e:0370:7334. Leading zeros in a group may be dropped, and one run of zero groups may be replaced by a double colon, so that address can be shortened to 2001:db8:85a3::8a2e:370:7334. The address space is so large that exhaustion is not a practical concern, and every device can have a globally unique address.

Subnetting means splitting one network into smaller subnetworks. A subnet mask marks which bits of the address identify the network and which identify the host: with 255.255.255.0 the first 24 bits are the network and the last 8 are the host, giving 254 usable addresses once the network and broadcast addresses are excluded. Subnetting keeps broadcast traffic inside a subnet, lets each subnet have its own security rules, makes addressing easier to manage and uses the available addresses more efficiently.

An IP address is associated with a device in one of two ways. It can be set by hand, which gives a static address, or it can be issued automatically by a DHCP server, which gives a dynamic address leased for a period and then returned to the pool. Inside the LAN, ARP finds the MAC address that belongs to an IP address, so that the frame can be addressed to the right NIC.

Servers, printers and routers are usually given static addresses, because other devices must find them at a known address and a changing address would break a DNS record or a firewall rule. Ordinary client machines are usually dynamic, because that needs no configuration, stops two devices being given the same address by mistake, and reuses the address of a machine that has been switched off.

A public IP address is globally unique and routable on the internet; it is the address the rest of the world uses to reach a network. A private IP address comes from a reserved range - 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255 and 192.168.0.0 to 192.168.255.255 - and is not routed on the internet, so the same addresses can be reused in every home and office. NAT on the router rewrites the private source address into the public one on the way out and matches the replies back to the right device.

The security implication is that a device with only a private address cannot be contacted directly from the internet, because no route to it exists: an attacker has to get past the router first, and NAT incidentally hides the internal layout of the network. That is a genuine reduction in exposure, but it is not protection. NAT is not a firewall, and it does nothing about malware that opens the connection outwards, or about a port that has been deliberately forwarded to an internal server.

A uniform resource locator (URL) is the address of a resource on the web. It gives the scheme, which is the protocol to use (https), the domain name of the server (www.example.com), an optional port, and the path and file name of the resource (/revision/networks.html), followed by an optional query string. The browser must have the domain name turned into an IP address before it can send the request.

The domain name service (DNS) does that translation, using a distributed hierarchical database. A resolver asks a root server, which points it to the name server for the top-level domain such as .com or .uk; that server points to the authoritative name server for the domain, which returns the record - an A record for an IPv4 address or an AAAA record for an IPv6 address. The answer is cached for a time to live, so the next request for the same name is answered without repeating the whole lookup.

  • IPv4: 32 bits, four decimal octets, dots, for example 10.0.0.7.
  • IPv6: 128 bits, eight hexadecimal groups, colons, for example 2001:db8::1.
  • Private ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, which are never routed on the internet.
  • Static address: configured by hand, used for servers, printers and routers.
  • Dynamic address: leased by DHCP, used for ordinary client devices.
  • DNS records: A for IPv4, AAAA for IPv6, MX for mail servers, CNAME for an alias.
FeatureIPv4IPv6
Length32 bits128 bits
Written asFour decimal numbers, 0 to 255, separated by dotsEight groups of four hexadecimal digits, separated by colons
Example192.168.10.252001:0db8:85a3:0000:0000:8a2e:0370:7334
Number of addressesAbout 4.3 billion, now exhaustedEnough that every device can have a unique address
Header and routingHeader includes a checksumSimpler fixed header, no NAT normally needed
Get the format exactly right: 32 bits, four decimal octets and dots for IPv4; 128 bits, eight hexadecimal groups and colons for IPv6. Writing an IPv6 address with dots loses the mark.

Key terms you must be able to define

Local area network (LAN)
A network covering a small geographical area, usually one site, whose hardware is owned and managed by the organisation. It offers high data rates and low latency over its own cabling or wireless access points.
Wide area network (WAN)
A network covering a large geographical area that connects LANs, using links leased from a telecommunications provider. Bandwidth is more expensive and latency higher than on a LAN; the internet is the largest WAN.
Client-server model
A network model in which dedicated servers provide services and hold the data while clients request and display them. Roles are fixed, so control, security and backup are centralised, at the cost of a server to buy and maintain.
Peer-to-peer (P2P)
A network model in which every computer can act as both client and server, sharing its own files and printers directly with the others. Cheap and quick to set up, with no central control, backup or security policy.
Thin client
A low-power terminal with little processing power, memory or storage that runs applications on a server, sending only screen and input data across the network. Cheap and centrally managed, but useless without a working network.
Thick client
A conventional computer that runs applications and stores files locally, using the network mainly for shared storage and services. Keeps working offline and suits heavy processing, but costs more per seat and is harder to manage.
Star topology
A topology in which every device has its own link to a central switch, which forwards each frame only to the destination port. One faulty cable affects one device, but the central switch is a single point of failure.
Mesh topology
A topology in which nodes are connected to several others, or in a full mesh to every other node, needing n(n-1)/2 links. The redundant paths remove any single point of failure, at high cost in links and ports.
Router
A device that connects networks and forwards packets between them, reading the destination IP address and choosing the next hop from its routing table. On a LAN it acts as the default gateway and usually performs NAT.
CSMA/CD
Carrier sense multiple access with collision detection: the set of rules used on a shared Ethernet segment. A host listens before transmitting, monitors while it transmits, and on detecting a collision sends a jam signal and waits a random back-off before retrying.
IP address
The logical address of a device on a network, used by routers to deliver packets between networks. IPv4 addresses are 32 bits written as four decimal octets; IPv6 addresses are 128 bits written as eight hexadecimal groups.
Subnetting
Dividing one network into smaller subnetworks by means of a subnet mask, which marks the network bits and the host bits. It contains broadcast traffic, allows separate security rules and uses addresses more efficiently.
Uniform resource locator (URL)
The address of a resource on the web: the scheme or protocol, the domain name of the server, an optional port, and the path and file name of the resource, with an optional query string.
Domain name service (DNS)
A distributed hierarchical database that translates a domain name into an IP address, by asking a root server, then the top-level domain server, then the authoritative name server for the domain, and caching the answer.

Applied to real systems

9618 sets its questions inside systems you already use - a phone, a school network, a supermarket till, a website, a bank. These show how to apply the theory to a context you have not seen before, then you write your own.

A switched Ethernet star: the school LAN

A school LAN is a star, and usually a star of stars: each classroom has a small switch, each of those is cabled back to a core switch in a comms room, and the core switch connects to the router that leads to the internet provider. Every device has a wired NIC or a WNIC, the access points in the ceilings are fed by cable and bridge the wireless devices onto the same network, and the servers hold files and user accounts. It shows the syllabus hardware working together, and it shows why the design is a hybrid in practice: stars inside the building, joined by a fibre backbone.

Public cloud: Amazon Web Services

A company that runs a shopping website can rent servers, storage and databases from Amazon Web Services instead of buying them. Capacity is added for a busy season and removed afterwards, and the provider maintains the hardware, the power and the network. It shows the public cloud model exactly: shared infrastructure, pay for what is used, no capital cost, but a hard dependency on the internet link and on somebody else's security and pricing.

DNS in action: resolving a name

When a browser is asked for www.example.com, the resolver first checks its cache, then asks a root server, which refers it to the .com name servers, which refer it to the authoritative name server for example.com, which returns the A record containing the IPv4 address. The answer is cached for its time to live, so the next request is answered immediately. It shows why DNS is described as a distributed hierarchical database rather than a single list of names.

Satellite internet: Starlink

Starlink provides broadband through a constellation of satellites in low Earth orbit, a few hundred kilometres up, with a dish that tracks whichever satellite is in view. Because the satellites are close, the round-trip delay is far lower than the half second typical of a geostationary link, so video calls work. It shows satellite as a WAN medium: coverage where no cable reaches, at the cost of expensive equipment and a shared, weather-sensitive radio link.

Bit streaming: live and on-demand television

The same broadcaster can stream a live match and the same match from its catch-up service. The live stream is generated as it is watched, so the player can only buffer a second or two and the picture stalls if the connection falls below the bit rate; the catch-up stream is a stored file, so the player can buffer far ahead, and the viewer can pause and skip. It shows the practical difference between real-time and on-demand streaming, and why broadband speed matters more for the live case.

Flashcards

Click a card to flip it. Mark honestly — the tracker uses this.

Q1Give three characteristics that distinguish a WAN from a LAN.
A WAN covers a large geographical area, connects LANs, and uses links leased from a telecommunications provider rather than links the organisation owns. Bandwidth is more expensive, latency is higher and the design is more complex. The internet is the largest WAN.
Q2What does a router do with a packet that arrives at one of its interfaces?
It reads the destination IP address, looks that address up in its routing table, and forwards the packet out of the interface that leads to the best next hop. On a LAN it acts as the default gateway and usually performs NAT.
Q3Write out the steps of CSMA/CD.
Carrier sense (listen until the medium is idle), transmit while continuing to monitor, detect a collision when the signal differs from what is being sent, send a jam signal, wait a random back-off period, then retry, with the back-off range doubling after repeated collisions.
Q4Why does a mesh topology have no single point of failure?
Every node is connected to several others, so there are multiple routes between any two points; if a link or a node fails, traffic is routed another way. The cost is the number of links, which is n(n-1)/2 for a full mesh.
Q5Distinguish a thin client from a thick client.
A thin client has little processing power, memory or storage and runs applications on a server, sending only screen and input data over the network. A thick client runs applications and stores files locally. Thin is cheaper and centrally managed but depends completely on the network; thick works offline and suits heavy processing.
Q6Give one benefit and one drawback of a public cloud compared with a private cloud.
Benefit: no capital cost and capacity can be scaled up or down in minutes, with the provider maintaining the hardware. Drawback: the data is held by a third party under their security and jurisdiction, and performance and availability depend on the internet link.
Q7How is an IPv4 address written?
As 32 bits in four decimal numbers from 0 to 255, separated by dots, for example 192.168.10.25. Each group is one octet, one byte.
Q8How is an IPv6 address written?
As 128 bits in eight groups of four hexadecimal digits separated by colons, for example 2001:0db8:85a3:0000:0000:8a2e:0370:7334. Leading zeros in a group can be dropped and one run of zero groups can be replaced by a double colon.
Q9What is subnetting, and why is it used?
Dividing one network into smaller subnetworks by using a subnet mask to mark the network bits and the host bits. It keeps broadcast traffic inside a subnet, allows each subnet its own security rules, and uses the available addresses more efficiently.
Q10What is the difference between a static and a dynamic IP address?
A static address is configured by hand and never changes; it is used for servers, printers and routers that other devices must find at a known address. A dynamic address is leased by a DHCP server for a period and then returned to the pool; it is used for ordinary client devices.
Q11What does DNS do?
It translates a domain name into an IP address. The resolver asks a root server, which refers it to the top-level domain server, which refers it to the authoritative name server for the domain, which returns the A or AAAA record. The answer is cached for its time to live.
Q12What is the difference between real-time and on-demand bit streaming?
Real-time streaming is live, so the data is generated as it is sent, there is nothing to buffer ahead, and low latency and a steady bit rate are essential. On-demand streaming plays stored media, so the viewer can start anywhere and the player can buffer far ahead to ride out short drops in speed.
0 of 12 marked as known

Exam-style questions

8 questions, 28 marks. Write your answer, then reveal the mark scheme and tick each point you actually made. Answering honestly here is what makes the rest of the site useful.

StateAO11 mark
State the number of bits in an IPv4 address.

Mark scheme — tick each point you actually made

Examiner tip: One mark, one number. Do not add the IPv6 figure - a second, different number can only lose the mark.
DefineAO12 marks
Define the terms bit rate and buffer as they are used in bit streaming.

Mark scheme — tick each point you actually made

Examiner tip: Both definitions must be about the stream, not about the file. 'A buffer is a storage area' on its own is too vague to score.
DescribeAO13 marks
Describe how CSMA/CD detects and deals with a collision on an Ethernet network.

Mark scheme — tick each point you actually made

Examiner tip: The third mark is for the random back-off. Answers that say 'it tries again' without saying 'after a random delay' stop at two marks.
ExplainAO23 marks
A school is wiring a new building. Explain why a star topology is more suitable than a bus topology for the network in the building.

Mark scheme — tick each point you actually made

Examiner tip: Each point needs a feature of the star and the consequence that follows from it. Naming the feature alone is description, not explanation.
CompareAO24 marks
A chain of travel agents is choosing between thin clients and thick clients for its branch computers. Compare the two models for this situation.

Mark scheme — tick each point you actually made

Examiner tip: Compare means both sides on the same point, not a list about one model and then a list about the other. Pair the points: cost against cost, dependency against dependency.
ExplainAO24 marks
Explain how an IP address is used to transmit a request from a client computer to a web server that is on a different network.

Mark scheme — tick each point you actually made

Examiner tip: Follow one packet from the client to the server and name the device at each step. Saying 'the internet sends it' without a router and a routing table scores nothing.
DiscussAO25 marks
A small business is considering moving its file storage and its office software to a public cloud. Discuss the benefits and drawbacks of doing this.

Mark scheme — tick each point you actually made

Examiner tip: A discussion needs both directions and a closing judgement. Three benefits with no drawback cannot pass the middle of the mark range however well they are written.
EvaluateAO26 marks
A hospital is adding a new building on a site 2 km from its main site. The new building must be connected to the main network. Evaluate the use of a fibre-optic cable link against the use of a microwave link for this connection.

Mark scheme — tick each point you actually made

Examiner tip: Evaluate needs a decision with a reason tied to the context. Naming the hospital and its imaging data in the final sentence is what separates six marks from four.

Exam technique for this topic

  • For any justify question, give a benefit and a cost and then choose. 'It is faster' is not a justification; 'it is faster, and that matters more than the cabling cost because the design team moves large files all day' is.
  • Learn which address each device uses: a switch and a bridge decide on the MAC address, a router decides on the IP address, and a repeater decides nothing. Most lost marks in this topic come from swapping switch and router.
  • Write CSMA/CD as a numbered sequence and always finish with the random back-off. If the question asks how collisions are avoided rather than detected, say that each switch port is its own collision domain and that full duplex is used.
  • Quote the numbers: 32-bit IPv4 in four decimal octets, 128-bit IPv6 in eight hexadecimal groups, Ethernet is IEEE 802.3 and WiFi is IEEE 802.11, a full mesh of n nodes has n(n-1)/2 links.
  • Keep the internet and the World Wide Web apart in every sentence you write. The internet is the infrastructure of interconnected networks; the WWW is the service of pages, URLs and HTTP carried on it.

Why students lose marks here

A student wroteA student wrote: 'A switch and a router do the same job, because both of them send data to the correct computer.'
Why it loses marksThey work at different levels and use different addresses. A switch forwards frames inside one LAN using MAC addresses and never changes the IP packet; a router forwards packets between different networks using IP addresses and routing tables. If the question asks what connects a LAN to the internet, 'switch' scores nothing.
The answer that scoresA switch connects the devices within one LAN. It learns which MAC address is on each port and forwards each frame out of the port where the destination is, so traffic does not reach every device. It does not change the IP packet and cannot pass data between two different networks. A router connects different networks, and each of its interfaces has an IP address. It reads the destination IP address of each packet, looks it up in its routing table and forwards the packet to the best next hop, which is how a LAN reaches the internet through the default gateway. A home router usually contains a switch and an access point as well, which is why the two are confused.
A student wroteA student wrote: 'The internet and the world wide web are the same thing - the web is just another name for the internet.'
Why it loses marksThis cannot answer a question that asks for the difference, and it misleads the rest of the answer, because email and video calls are on the internet but not on the web. The internet is infrastructure; the web is one service running on it.
The answer that scoresThe internet is the global infrastructure: the interconnected networks, submarine cables, routers and exchange points that carry data using TCP/IP. The World Wide Web is one service that uses that infrastructure - the collection of web pages and resources, addressed by URLs and fetched with HTTP or HTTPS by a browser. Email, file transfer, voice calls and streaming are other services on the same internet. A device can be connected to the internet without anyone opening a web page, but a web page cannot be delivered without an internet connection.
A student wroteA student wrote: 'IPv6 is 64 bits long and uses hexadecimal, which is why it is faster than IPv4.'
Why it loses marksTwo errors in one sentence. IPv6 is 128 bits, not 64, and its purpose is a far larger address space, not speed. A longer address does not make data travel faster; if anything it adds a little overhead.
The answer that scoresAn IPv4 address is 32 bits, written as four decimal numbers from 0 to 255 separated by dots, giving about 4.3 billion addresses. An IPv6 address is 128 bits, written as eight groups of four hexadecimal digits separated by colons, giving an address space large enough for every device to have a globally unique address, which removes the need for NAT. IPv6 also has a simpler fixed header, which can make routing slightly more efficient, but the reason for the change is the exhaustion of IPv4 addresses, not speed.
A student wroteA student wrote: 'When two computers collide, they both just send the frame again straight away.'
Why it loses marksRetrying immediately produces another collision with the same host, and the network can lock up. The mark is for the jam signal and for a random back-off, with the delay range increasing after repeated attempts.
The answer that scoresEach host senses the medium before transmitting and only starts when it is idle, but two hosts can still begin at the same moment. While transmitting, each host compares the signal on the cable with what it is sending; when the two differ, it knows a collision has occurred. It stops transmitting, sends a short jam signal so that all stations detect the collision, and then waits for a random period chosen from a range of time slots before it senses the medium and tries again. If it collides again the range doubles, which spreads the competing hosts out and makes repeated collisions unlikely.
A student wroteA student wrote: 'A private IP address makes the device secure, because nobody on the internet can see it.'
Why it loses marksNAT does keep unsolicited inbound connections away, but it is not a firewall. It does not stop malware that makes an outbound connection, it does not protect against an attacker already inside the network, and a forwarded port exposes the device completely.
The answer that scoresA private address comes from a reserved range such as 192.168.0.0/16 and is not routed on the internet, so no host outside can address the device directly; the router's NAT translates the private address to the public one and matches the replies. That removes a large class of unsolicited inbound attacks and hides the internal layout of the network. It is not, however, a security control in its own right: outbound connections are still allowed, a port forward deliberately exposes an internal server, and anyone who gains access to the LAN can reach the device. A firewall and up-to-date software are still needed.