Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Amara emails a school report of bytes. The network cuts it into packets, and the payload of each packet holds at most bytes.
Data is broken down into packets. Each packet has a header (destination address, packet number, originator's address), a payload (the data) and a trailer (marks the end). In packet switching, each packet could take a different route, a router controls the route, packets may arrive out of order, and they are reordered once the last one has arrived. The number of packets is the file size divided by the payload size, rounded up.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Given. File size bytes. Payload at most bytes.
Step 1. Divide. . This is not a whole number, so round up: packets.
Step 2. The last packet. Seven full packets carry bytes. The last packet carries bytes.
Step 3. The address. The packet header holds the destination address. Each router reads it to choose where to send the packet next.
Check. . All the bytes are sent.
Watch out. Rounding down to packets would lose the last bytes.
Answer: (a) packets. (b) bytes. (c) The header, which holds the destination address.
Log in to join the discussion.
Loading…