Packet
A packet is a section of data that has been divided into several pieces for easier transfer and is later reassembled with its counterparts to form a whole. Learn how packets work, what they contain, and why they are the basic unit of network communication.
What is a packet?
A packet is a small, formatted unit of data sent across a network. When a device sends a file, web page, or message, the data is broken into many packets. Each packet travels independently to the destination, where the pieces are put back together in the right order. The internet and most modern networks are built on this approach.
How does a packet work?
A packet has two main parts:
- Header: control information, such as the source and destination IP addresses, the protocol, a sequence number, and a time-to-live value that stops packets from looping forever.
- Payload: the actual piece of data being carried.
Some protocols also add a trailer with error-checking information. As a packet moves through the network, routers read its header to decide where to send it next. At the destination, the transport protocol, such as TCP, uses sequence numbers to reassemble the data and requests any missing packets again.
Packet vs. frame and segment
The names depend on the layer. At the transport layer, TCP data units are called segments (UDP ones are datagrams). At the network layer, they are packets. At the data link layer, they are frames, which wrap packets for travel across one local link. In everyday use, "packet" is often used for all of them.
Why does a packet matter?
Packets make networks efficient and resilient: many conversations share the same links, and traffic can route around failures. Packets are also what security tools inspect. Firewalls filter them, intrusion detection systems analyze them, and packet captures help diagnose problems. Unencrypted packets can be read by anyone on the path, which is why encryption matters.
Frequently asked questions
What is a packet?
A packet is a section of data divided from a larger message for easier transfer, later reassembled with its counterparts to form a whole.
What is in a packet header?
Information needed to deliver the packet, such as the source and destination addresses, protocol, sequence information, and a time-to-live value.
What is packet loss?
Packet loss happens when packets fail to reach their destination, often because of congestion or faulty equipment, which can slow or disrupt connections.
Manage every connection from one place
Centralize RDP, SSH, VNC, web, and cloud console connections in one app.
Related terms
Packet switched network
A packet-switched network is a communications network that allows packets to be routed separately to a single destination.
Read now →Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP) is a communication standard for establishing and maintaining a two-way delivery stream of octets between two endpoints on a shared network.
Read now →Fragmentation
Fragmentation is the dispersed storage of data, as opposed to contiguous storage.
Read now →