Data packets Flashcards
The packets of data are usually quite small, typically
64KiB,
Packet structure
A typical packet is split up into:
» a packet header
» the payload
» a trailer.
Header
IP address of
the source
device (sender)
IP address of
the destination
device (receiver)
Size of the
packet (in
bytes)
Sequence
number of
the packet
(allowing correct
reassembly)
Payload
The actual data
in the packets
(~64 KiB) – the
payload
Trailer
Method of
identifying the
end of the
packet
Some form of
error checking
to ensure
packet arrives
error-free
For each packet, the packet header consists of:
» the IP address of the sending device
» the IP address of the receiving device
» the sequence number of the packet (this is to ensure that all the packets can
be reassembled into the correct order once they reach the destination)
» packet size (this is to ensure the receiving station can check if all of the
packets have arrived intact).
Why is it important to identify the end of a packet in a packet trailer?
It ensures that packets can be separated from each other as they travel from the sending to the receiving station.
What is the role of cyclic redundancy checks (CRCs) in packet transmission?
CRCs check for transmission errors by comparing the number of 1-bits in the payload at both the sending and receiving computers.
How does a sending computer use CRCs?
The sending computer adds up all the 1-bits in the payload and stores the result as a hex value in the packet trailer before sending the packet.
What does the receiving computer do with CRCs when a packet arrives?
The receiving computer recalculates the number of 1-bits in the payload and checks this value against the one stored in the packet trailer.