S3U

Science / Networking / Grade 5 / sn593

Put a Packet Message Back in Order

Use numbered paper pieces to model ordering and missing information.

All worksheets
5 questions0m 0s
Learn the skill

A message can be divided into smaller pieces. This paper model labels each piece with a message and position, and states the total separately. Use position rather than arrival order. Real network protocols have different fields and guarantees; this is not a literal packet format.

Worked example

Pieces 2, 1 and 3 arrive in that order. Reconstruct positions 1, 2, 3. A second copy of piece 2 does not replace missing piece 3.

Arrival: M/3 LIBRARY, M/1 MEET, M/2 AT THE. Reconstructed: M/1 MEET, M/2 AT THE, M/3 LIBRARY.
Message labels and positions matter; arrival order can differ.

Message M: Three Pieces

Message M has three numbered pieces: M/1 says MEET, M/2 says AT THE, and M/3 says LIBRARY. They arrive M/3, M/1, M/2. Each label identifies both message and position. A card from another message must not be inserted just because its number fits.

Question 1 Which piece belongs first?
Question 2 What is the reconstructed message?
Question 3 How many different positions are needed?
Question 4 If the received labels are M/1, M/2, M/2, which position is missing?
Question 5 Can N/3 replace the missing M/3?