Skip to main content
networking

Packet

A packet is a unit of data transmitted over a network. Each packet contains a header (source/destination addresses, protocol info, sequence numbers) and a payload (the actual data). IP packets are limited by MTU – typically 1500 bytes on Ethernet. Larger messages are split into multiple packets.

Definition

A packet is the fundamental transmission unit in IP networking. When an application sends data, the operating system's network stack breaks it into packets that can traverse routers independently. Each packet has an IP header (20+ bytes) containing source and destination IP addresses, TTL, protocol number, and identification fields. The payload carries the transport layer segment (TCP or UDP header + application data). Packets may arrive out of order, be duplicated, or be lost – TCP handles reordering and retransmission at the transport layer while UDP leaves this to the application. Routers forward packets independently based on destination IP, making packet-switched networks more resilient than circuit-switched alternatives.

Examples

  • tcpdump -c 10 -i eth0 captures 10 packets
  • Wireshark shows packet headers decoded by layer
  • ping sends ICMP echo request packets and measures RTT

Related Protocols

Related Terms