Example 1 — Count the packets and fill the headers
Show the steps and the answer
Divide: 6,000 ÷ 1,500 = 4 packets.
Each packet carries at most 1,500 bytes of the message, so the message has to be shared across 4.
Give each header the source address, the destination address and a sequence number from 1 to 4.
Routers use the destination address to forward the packet; the receiver uses the numbers to rebuild the message.
Put bytes 1-1,500 in packet 1, bytes 1,501-3,000 in packet 2, bytes 3,001-4,500 in packet 3 and bytes 4,501-6,000 in packet 4.
Each payload is one slice of the message, and its sequence number records which slice it is.
Answer: 4 packets. Each header holds the source address, the destination address and a sequence number from 1 to 4.
Takeaway: Divide the message size by the payload size to count packets; the header carries the addresses and the order.