A data packet is a small part of a message/data that is transmitted over a network; after transmission, all the data packets are reassembled to form the original message/data.
A packet of data contains a:
header, which contains the:
IP address of the sending and receiving device
sequence number of the packet, to ensure that all the packets can be reassembled into the correct order once they reach the destination
packet size, to ensure the receiving station can check if all packets have arrived intact.
payload, consisting of the actual data being sent in the packet
trailer, containing:
a way to identify the end of packet (essential to allow each packet to be separated from each other as they travel to receiving station)
an error checking method; cyclic redundancy checks, where all the 1-bits in the data packet payload are added and the total is stored in the packet trailer; the same calculation is repeated at the receiving station
Packet switching is a method of transmission in which a message is broken into many data packets which can then be sent along pathways independently of each other.
As these packets are sent from the sender to receiver, there are several possible routes for the packets. Each stage in the route contains a router.
A router is a device that enables data packets to be moved between different networks. They control the route a packet takes.
Packets may arrive out of order. Once the last packet has arrived, packets are reordered.
Packets get lost because they keep bouncing around from router to router and never actually reach their destination. The amount of lost packets mount up and can clog the system. Hopping prevents this.
A hop number is a number in a data packet header used to stop data packets that never reach their destination from clogging up the routes.