Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Online Courses / University Track / Computing Foundations

Module 8 · Lesson 1 · Core

Networks and packets

Explain how a message is split into packets, sent across a network and put back together.

  • 55 minutes
  • Serves O8
  • Assumes Module 7

Phase 1: Prepare

Step 1 Warm-up recall

From Module 7: how often does each of 4 programs with 5 ms turns run?

Private: nothing you type here is sent or stored.

Step 2 Learning goal

By the end of this lesson you can:

  • define a network and a packet (Foundation);
  • calculate the number of packets for a message (Core);
  • explain how packets are reassembled (Core).

Phase 2: Teach

Step 3 A familiar example

Post a long book as separate numbered envelopes. They may arrive by different routes and in the wrong order, but the numbers let the reader put them right.

Step 4 Clear explanation

A network is a set of computers joined so they can exchange data. The internet is a network of networks. Data is sent in small pieces called packets. Each packet carries part of the message, its destination and a number that gives its place.

Message10,000 bytesSplit10 packetsTravelany routeReassembleby number
A message is split into numbered packets, which may travel by different routes and are put back in order on arrival. Invented message of 10,000 bytes.
Message size (bytes)Packet size (bytes, invented)Packets needed
10,0001,00010
25,0001,00025
2,5001,0003 (the last is part full)

The number of packets is the message size divided by the packet size, rounded up, because a part-full last packet still has to be sent. Packets may take different routes, so they can arrive out of order; the receiver uses the numbers to rebuild the message, and asks for any that are missing to be sent again. Rules that all the computers agree on, called protocols, make this work. A client asks for a service, such as a web page, and a server provides it. Packets also take time to travel; this delay is called latency. The entry on the computer gives context for the machines at each end.

Step 5 Worked example (4 marks)

A file of 7,300 bytes is sent in packets of 1,000 bytes (invented). How many packets are needed?

  1. Divide: 7,300 ÷ 1,000 = 7.3. (1 mark)
  2. Round up, because part of the last packet is needed. (1 mark)
  3. The result is 8. (1 mark)
  4. Answer: 8 packets. (1 mark)

Phase 3: Practise

Step 6 Learner practice (instant-marked)

1. A packet is:

2. Why are packets numbered?

3. A message of 25,000 bytes in 1,000-byte packets needs:

4. A message of 2,500 bytes in 1,000-byte packets needs:

Phase 4: Close

Step 7 Recap

  • Data travels in numbered packets.
  • Packets are reassembled by number.
  • Round up when counting packets.

Step 8 Exit ticket (ungraded)

How many 1,000-byte packets does a 6,200-byte message need?

Private: nothing you type here is sent or stored.

Step 9 Go further (Extension)

Describe the difference between a client and a server for a web page.

Common mistakes

MistakeWhy it fails
Rounding downThe last part still needs a packet.
Assuming packets arrive in orderThey may not.
Confusing the internet with the webThe web runs on the internet.

Limits. This is a simplified model; real networks use layers of protocols and variable packet sizes.