A Level · Topic 14.2
A-Level Computer Science 9618 / Topic 14 / A2

One path or many?

A traditional phone call books a whole path through the network for as long as you talk, even while you are silent. The internet does the opposite: it chops data into packets and lets every packet find its own way. This lesson compares the two methods, explains what a router does with each packet, and shows where each method fits.

The key idea

In circuit switching a dedicated path (circuit) between sender and receiver is set up before any data is sent; all the data follows that path, in order, and the bandwidth is reserved until the circuit is released. In packet switching the message is split into packets, each with a header holding the source and destination IP addresses and a sequence number. Each packet is routed independently: every router reads the destination address and uses its routing table to forward the packet to the next hop, so packets may take different routes and arrive out of order. The receiver reassembles them using the sequence numbers. Links are shared by everyone, so packet switching uses the network far more efficiently.

circuit switching packet switching ABAB 1 2 3 one dedicated path reservedfor the whole call each packet routed separately;links shared by everyone
Fig. 1: circuit switching reserves one path (orange) for the whole call; in packet switching each numbered packet may take a different route
Section 01

Circuit switching.

In the lab, switch to "Circuit or packet": in the top network one route is reserved and every piece of data follows it.

BenefitsDrawbacks
data arrives in the order it was sent, so no reassembly is neededtime is needed to set up the circuit before any data can be sent
the whole bandwidth of the circuit is available, at a constant rate with little delay: good for real-time voice and videobandwidth is wasted while no data is being sent (e.g. silence in a call), because nobody else can use the circuit
no other users share the circuit, so performance does not fall when the network is busyif any link in the circuit fails, the connection is lost and must be set up again
no packet headers or reordering, so less processing at each enda limited number of circuits: when they are all in use, new connections are refused ("line busy"); dedicated lines are expensive
Examiner trap

"Circuit switching is faster" is not enough. Say why: once set up, the bandwidth is dedicated, so the data arrives at a constant rate, in order, without queuing at routers.

Section 02

Packet switching and the router.

In this lab, send a message and watch it split into packets. Click a router to make it busy: the packets re-route around it and arrive out of order.

Worked example Put the packets back together
A message is split into packets numbered 1 to 5. They arrive in the order 2, 5, 1, 4. What does the receiving computer do?
  1. It reads the sequence number in each packet header and holds the packets in a buffer.
  2. The header says there are 5 packets, but packet 3 has not arrived.
  3. After waiting, the receiver requests packet 3 to be sent again.
  4. When packet 3 arrives, the packets are reassembled in the order 1, 2, 3, 4, 5 to rebuild the message.
Answer: Buffer and reorder the packets by sequence number, request the missing packet 3, then reassemble 1 to 5
Your turn
Why do two packets from the same message sometimes take different routes across the internet?
Examiner trap

A router does not read the whole message, and it does not reassemble the packets. It looks only at the destination IP address of each packet; reassembly happens at the destination computer.

Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

What happens before any data is sent using circuit switching?

Quick check+10 XP

In the packet lab, what happens when a router on the route is made busy?

Quick check+10 XP

How does the receiver rebuild a message sent using packet switching?

Quick check+10 XP

Which is a drawback of circuit switching?

Section 03

Which one when?

Exam questions give a scenario and ask you to justify one method. Learn the comparison as pairs.

Circuit switchingPacket switching
Routeone dedicated path, set up firstno set-up; each packet routed separately
Bandwidthreserved for one connection, wasted when idleshared by all users, so used efficiently
Order of arrivalalways in ordermay arrive out of order; reassembled by sequence number
Delayconstant, low once set upvaries with congestion; packets can be delayed or lost
If a link failsthe connection is lostpackets are re-routed round the failure
Securitydata follows one path, harder to intercept in many placespackets pass through many routers; encryption is needed for sensitive data
Applicable totraditional telephone calls, dedicated leased linesthe internet: web pages, email, file transfer, streaming, VoIP calls
Your turn
A company sends large files and emails between its offices all day, but traffic is very uneven. Circuit or packet switching? Give a reason.
Examiner trap

Modern internet phone calls (VoIP) use packet switching, not circuit switching. They cope with variable delay by buffering, and quality drops when the network is congested.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to A Level Paper 3 and Paper 4 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

What is the function of a router in packet switching?

Exam style+20 XP

Why does packet switching make more efficient use of a network than circuit switching?

Exam style+20 XP

Which item is NOT normally in a packet header?

Exam style+20 XP

Why does a packet carry a hop limit?

Skill unlocked

Circuit and packet switching, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
Circuit switching and packet switching: how each works, benefits and drawbacks, where each is applicable, and the function of a router.