GCSE · Computer Science · Eduqas · Spec C500QS
Routing and routing costs
Your message must cross a network, and there may be several ways across. Who decides which way it goes?
Computer Science · Structure
A made-up network: nodes joined by links, each link with a cost
Every node and every cost here is made up. Tap a node to see the links that meet there.
Tap any part of the diagram to see what it does.
Computer Science · Networks
One data packet, node by node
Same made-up network. Nodes B, C and D are routers here. Send one data packet from A towards E and watch what each router reads.
At each stop, what does the router look at to decide where the data goes next?
Message: One data packet, addressed to E
Output
Step 1: The data packet carries its destination address. A reads it and forwards the data to C. Why C and not B? Hold that thought: the next block shows how the choice is made.
Step through the trace — every value is the lesson’s, not run by the page.
Predict, then check
Back to the very first made-up network. The lowest-cost route was A–C–D–E, total 8.
The link between C and D fails. What happens to data that was going from A to E?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Every link has a price. Data takes the cheapest journey that is actually open.
What you need to know
- Routing is how a path gets selected for data to travel from its source to its destination across a network.
- A router forwards data packets between networks, using the destination address in each packet to decide where to send it next.
- Draw a network as nodes joined by links, with each link labelled with its cost.
- A routing cost is a value given to a link, and a lower cost marks a more preferable link.
Have a goYour friend says, "A link costing 9 beats a link costing 2, because 9 is the bigger number." Are they right?
No. The cost-2 link is more preferable.
A cost is a price you want low: a lower cost marks a more preferable link.
- A cost can reflect things like distance, time delay, available bandwidth or congestion on that link.
- The total cost of a route is the sum of the costs of all the links along it.
Have a goA route has three links, costing 2, 5 and 1. What is its total cost?
8
Add every link on the route (2 + 5 + 1); one link on its own does not set the total.
- With more than one route between two nodes, work out each total, compare them, and the lowest total is the preferred route.
Have a goThree routes between the same two nodes total 14, 9 and 12. Which is the preferred route?
The route that totals 9.
The preferred route is the one with the lowest total, so the biggest total never wins.
- If a link fails or becomes congested, data can go along an alternative route, even one with a higher total cost.
The big picture
Routing is how a path gets picked for data to travel from its source to its destination. Each link carries a routing cost, a route's total cost is the sum of its links, and the lowest total is preferred. If a link fails, data can take a costlier route instead.
Key points
Worked example
Problem
A made-up network has these links and costs: X–Y 4, Y–Z 6, X–W 2, W–V 3, V–Z 2 and X–V 4. Find the preferred route from X to Z.
⚠ Watch out
Choosing the route with the fewest links, or the one that contains the single cheapest link, instead of adding every link cost on each route and comparing the totals.
Memory hook
Think of a journey with a price on every leg. Add up the legs for each trip, pick the cheapest total, and if one leg is closed, take the next-cheapest trip that is open.
Check yourself
Route 1 has links costing 4 and 5. Route 2 has links costing 2, 2 and 3. Route 3 is one link costing 8. Which is preferred?
Flashcards
(11)What is routing?
What is a router?
How does a router decide where a packet goes next?
What is a routing cost?
Name two factors a routing cost can reflect.
How do you find the total cost of a route?
Several routes join two nodes. How do you choose one?
In a network diagram, what do the nodes and the links stand for?
Does the route with the fewest links always win?
Does a route that contains the cheapest single link always win?
A link on the preferred route fails. What can data do?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Eduqas GCSE Computer Science topics
How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 30 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.