
Data Transmission and Packet Switching
Breaking Data into Packets
When data is sent across a network such as the internet, it is not transmitted as one large
file. Instead, it is divided into smaller parts called packets.
This is necessary because large files would be inefficient and unreliable to send as a single
unit. For example, if you send a video file, it is first split into many small packets. Each
packet is then transmitted separately.
Each packet travels across the network independently. This means packets from the same
file may take different routes and arrive at different times.
Why packets are used
Packets make data transmission faster because multiple packets can be sent at the same
time. This allows better use of available bandwidth.
Packets also improve reliability. If one packet is lost or damaged during transmission, only
that packet needs to be resent instead of the entire file. For example, when streaming a
video, if a small part is lost, only that portion is reloaded rather than restarting the whole
video.
Packets allow efficient routing. Network devices such as routers can send packets through
less congested paths. This helps avoid delays.
Packets also make it possible to send very large files without overloading the network, since
the data is handled in smaller, manageable pieces.
Structure of a Packet
Each packet has three main parts: the header, the payload, and the trailer.
Header
The header contains important control information needed to deliver the packet correctly.
This includes the destination IP address, which identifies where the packet must go. It also
includes the source IP address, which shows where the packet came from. Another key field
is the packet number, which indicates the position of the packet in the original data.
The header ensures that packets reach the correct device and can be reassembled in the
correct order. It also allows routers to decide how to forward the packet.
For example, when you send a message, each packet includes the receiver’s address so
that it arrives at the correct phone or computer.
Payload
The payload is the actual data being transmitted. This is the useful part of the packet.
For example, if you are sending an image, the payload contains a small part of that image.
Trailer
The trailer contains error detection data. This is used to check whether the packet has been
corrupted during transmission.
Errors can occur due to electrical interference or noise in communication channels. The
trailer helps the receiving device detect these errors.
If an error is detected, the packet can be requested again.
Packet Switching
Packet switching is the method used to send packets across a network.
How packet switching works
First, the data is split into packets. Each packet is given a header, payload, and trailer.