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.

cost 1cost 9cost 3cost 2cost 3

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

Node A→Node C→Node D→Node E
data packet is at=Node Aforwarded next to=Node Cdestination address=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.

1 / 4

Step through the trace — every value is the lesson’s, not run by the page.

Step 1 of 4: 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..

Watch out: A router does not carry the data all the way. It only decides where the data goes next.

Computer Science · Networks

Which way should the data go?

Back to the made-up network. Data must get from A to E. Which route does routing prefer? Fill in the missing steps.

  1. List every route from A to E: A–B–E and A–C–D–E.You need all of them on the table before you can compare anything.
  2. Route A–B–E: add its links, 1 + 9 = 10.A route's cost is the sum of all its links.
  3. missing step
Which line is step 3?

Computer Science · Networks

Which idea is closest to yours?

A new made-up example. Between two nodes there are three routes. Route X is one link costing 12. Route Y is two links costing 1 and 14. Route Z is three links costing 4, 3 and 3.

Which route does routing prefer, and why? Pick the idea closest to what you think.
How sure are you?

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?

Computer Science · Networks

Your turn: a fresh network

Made-up links and costs. P–Q: 2. Q–T: 7. P–R: 3. R–S: 2. S–T: 5. P–U: 4. U–T: 3. The three routes from P to T are P–Q–T, P–R–S–T and P–U–T.

Data must travel from P to T. Work out the total cost of each route, say which route is preferred and why, then explain why data could still be sent another way if the link U–T failed. [6 marks]

0 words · your answer stays on this page and is not sent anywhere.

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

1Routing selects the path data takes from its source to its destination.
2Each link in a network diagram has a cost, and a lower cost marks a more preferable link.
3A route's total cost is the sum of every link cost along that route.
4The route with the lowest total cost is the preferred route, not the one with the fewest links or one cheap link.
5If a link fails or becomes congested, data can use an alternative route with a higher total cost.

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?
The process of selecting a path for data to travel across a network from its source to its destination.
What is a router?
A device that forwards data packets between networks.
How does a router decide where a packet goes next?
It uses the destination address carried in the data packet.
What is a routing cost?
A value assigned to each link between nodes; a lower cost marks a more preferable link.
Name two factors a routing cost can reflect.
Any two of: distance, time delay, available bandwidth, congestion on a link.
How do you find the total cost of a route?
Add the costs of all the links along that route.
Several routes join two nodes. How do you choose one?
Work out each route's total, compare the totals and pick the lowest as the preferred route.
In a network diagram, what do the nodes and the links stand for?
The nodes are the points data passes through; the links join them, and each is labelled with its cost.
Does the route with the fewest links always win?
No. The lowest total cost wins, however many links the route has.
Does a route that contains the cheapest single link always win?
No. Every link on the route counts towards the total, including expensive ones.
A link on the preferred route fails. What can data do?
Be sent along an alternative route, even if that route has a higher total cost.

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 posted

More Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

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.