Skip to main content

Packet

In Turkish
Paket
Updated 2 min read

Share this page

Send the link, quote the definition with a link back, or show it as a card on your own site.

https://softwaredictionary.org/terms/packet

In short

A packet is a small, formatted unit of data sent across a network, made of a header with addressing information and a payload that carries the actual data.

What is a packet?

A packet is a small chunk of data that travels across a network as a single unit. Instead of sending a large file or web page in one piece, the sender splits it into many packets, sends them independently, and the receiver puts them back together. This approach, called packet switching, is the foundation of how the internet works.

Each packet has two main parts: a header and a payload. The header holds control information, such as the source and destination IP addresses, the protocol, and a time-to-live (TTL) counter that stops a packet from looping forever. The payload is the actual data being carried. Routers read the header of each packet and forward it toward its destination, and packets from the same message may take different routes.

Think of mailing a long book by putting each page in its own numbered envelope and letting the recipient reassemble them. If one envelope is lost, only that page needs to be resent. Developers encounter packets when debugging network problems with tools such as tcpdump or Wireshark, and when dealing with packet loss, which causes stuttering calls and slow connections.

The words packet, segment, datagram, and frame are often used loosely, but they describe data at different layers. A frame is the unit at the link layer (for example, Ethernet or Wi-Fi), a packet is the unit at the IP layer, and a TCP segment or UDP datagram is the unit at the transport layer, each wrapped inside the next like nested envelopes. The largest packet a link can carry, typically 1,500 bytes on Ethernet, is called the MTU (maximum transmission unit).

At a glance

A packet is a header with the addresses and a sequence number, followed by a slice of the data. A message is split into packets that routers forward one by one, sometimes along different paths, and the receiver puts them back in order.headerfrom · to · #2 of 3payload"lo, wor"RRR#1#3#2Sender"Hello, world"Receiverputs #1 #2 #3 in order
Each packet finds its own way, so they can arrive out of order or go missing; the receiver sorts them by number and asks again for any that never came.

Key takeaways

  • A packet is a small unit of data sent across a network.
  • It has a header with addressing and control information and a payload with the data.
  • Large messages are split into packets and reassembled by the receiver.
  • Routers forward each packet independently, so packets can take different paths.
  • Packet loss, often caused by congestion or weak Wi-Fi, leads to retransmissions or glitches.

Example

Inspecting packets from the command linebash
# Capture 5 packets on any interface going to or from port 443
sudo tcpdump -i any -c 5 port 443

# Show packet contents in hex and ASCII for HTTP traffic
sudo tcpdump -i any -c 3 -X port 80

# Check for packet loss: send 20 packets and read the summary
ping -c 20 example.com
# e.g. "20 packets transmitted, 19 received, 5% packet loss"

Readers ask

What is packet loss?

Packet loss happens when packets never reach their destination, often because of network congestion, faulty hardware, or a weak wireless signal. TCP detects lost packets and resends them, while real-time apps using UDP usually skip them, which causes glitches.

How big is a network packet?

On most Ethernet and home networks, the maximum packet size, called the MTU, is 1,500 bytes including headers. Larger data is split across many packets.

What is the difference between a packet and a frame?

A packet is the unit of data at the IP layer and carries IP addresses, while a frame is the unit at the link layer, such as Ethernet or Wi-Fi, and carries hardware (MAC) addresses. Each packet travels inside a new frame on every hop of its journey.

See also

Spotted a mistake or something missing on this page?Suggest an edit

Read a random page
Open today's review
Switch to the dark theme
Read this page in Türkçe

More

Settings