IPv4 Packet Header

  • Every packet traveling across a network starts with something essential: its header.
    Before any data can move from one device to another, routers need instructions.
    Those instructions are stored inside the IPv4 Packet Header, right at the beginning of the packet.

    IPv4 packet header diagram showing each field including version, header length, DSCP, ECN, TTL, protocol, and source and destination IP addresses.

    Figure 1 – IPv4 Packet Header Structure

    This small section of information guides the router on how to handle the packet.
    It tells the router where the packet came from, where it should go, how long it can stay, and how to check for any corruption during its journey.

    When you open Wireshark or troubleshoot a network, you’re constantly looking at these headers.
    Without them, data wouldn’t reach its destination or might loop forever in the network.

    Why the IPv4 Header Matters

    Each field inside the IPv4 header has a clear, technical purpose.
    Some are used by routers to forward packets, others to detect errors or handle congestion.
    And even though the header looks complex, you’ll see that only a few fields truly matter in real-world troubleshooting.

    Now that you understand why the header exists, let’s explore its structure field by field.

    This will make it much easier to read and interpret IPv4 packets later in Wireshark.

    Answer the question below