Kamran Mushtaq
Back to Networking
Networking

Packet (TCP/IP)

Added: June 19, 2026

Definition

A Packet is the Protocol Data Unit (PDU) at the Network Layer (Layer 3), formed when a TCP segment or UDP datagram is combined with an IP header.

What Problem It Solves

It enables data to be routed across multiple networks using logical addressing (IP addresses), ensuring the data can travel from the source host to the destination host.

What Happens If Not Used

Without packets, data could not be routed between different networks, meaning communication would be limited only to local networks.

Easy Wording

A packet is data wrapped with IP information so it can travel across different networks.

Layman Example

It’s like putting a letter (segment/datagram) into an envelope with full delivery address so it can be sent across cities or countries.

Technical Example

At Layer 3 (IP):

  • A TCP segment or UDP datagram is received
  • An IP header is added containing:
  • Source IP address
  • Destination IP address
  • TTL (Time to Live)
  • Fragmentation info The result is called an IP Packet, which routers use to forward data across networks.