AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Data in packets

Week 23 · Unit 9: Cellular networks and data packets · 3 lessons
2

Routes and reassembly

Computing 5: Unit 9, pp. 119–128
GoalExplain how routers pass packets along and how the receiver puts them back in order.
New words
router · a device that reads the address on a packet and sends the packet onroute · the path that a packet takes from the sender to the receiverreassemble · to put the pieces back together in the correct orderforward · to send a packet on to the next router
Explanation

A router is a device that passes packets on. When a packet arrives, the router reads the receiver’s IP address. It checks whether that address belongs to its own network. If it does, the router delivers the packet. If not, it forwards the packet to another router. After several routers, the packet reaches the router that is joined to the right device. Packets of the same message may use different routes, because each one takes the best way at that moment. At the end, the receiving computer uses the sequence numbers to reassemble the packets in the correct order.

senderR1R2R3R4receiver12
Worked examples
Startpacket arrivesreceiver on my network?yesnodeliver the packetforward to another routerEnd
This is what a router does with each packet that arrives.
Place in arrival order1st2nd3rd4th5th
Packet number21453
After sorting12345
Packets may arrive in a different order from the order they were sent. Five packets were sent in the order 1 to 5 and arrived in the order shown. The receiver does not care about the arrival order. It sorts them by their numbers.
MomentTop routeBottom routePacket takes
nowbusyquietthe bottom route
a moment laterquietbusythe top route
The best route changes from moment to moment, because the busy and quiet places change. Two packets of one message can therefore take different ways.
Class activity

Router relay (6 players). One player is the sender, one the receiver and four are routers, standing in a diamond. The sender hands out 6 numbered paper packets, one at a time. Each router has a card marked ‘busy’ on one side and ‘quiet’ on the other, and turns it before each packet. A router passes the packet to the quiet neighbour. The receiver writes the order of arrival and then sorts the packets by their numbers. Did all the packets take the same route?

Practice
1
Six packets are sent in the order 1 to 6. They arrive in the order 3, 1, 2, 6, 4, 5. In which order does the receiver put them?
Arrival1st2nd3rd4th5th6th
Packet number312645
2
The router has two devices on its own network, 10.0.0.2 and 10.0.0.3. What does it do with a packet for 10.0.0.3, and what with a packet for 172.16.5.8?
router10.0.0.210.0.0.3other router
3
Two packets of the same message take different routes. Does packet 2 always arrive after packet 1? Explain.
4
Give two reasons why the internet sends messages as packets and not as one big piece.