IPv4 Example

IPv4 + TCP

Inspect an IPv4 packet carrying a TCP segment. Learn how the protocol field indicates TCP (6) and observe the encapsulation of a TCP header within the IPv4 payload.

Hex Data

45 00 00 28 00 01 00 00 40 06 00 00 C0 A8 01 02 C0 A8 01 01 00 14 01 BB 00 00 00 01 00 00 00 00 50 02 20 00 00 00 00 00
Note: Protocol field = 6 (TCP), followed by TCP header
Load in Visualizer
encapsulationtcp

Field Breakdown

Version
IP version (always 4 for IPv4)
69
IHL
Internet Header Length in 32-bit words (minimum 5)
69
DSCP
Differentiated Services Code Point (QoS)
0b000000
ECN
Explicit Congestion Notification
0b00
Total Length
Total length of IP packet in bytes (header + data)
40
Identification
Unique identifier for fragmentation reassembly
0x0001
Flags
Control flags (Reserved, DF, MF)
0b000
Fragment Offset
Position of fragment in original datagram (in 8-byte blocks)
0
TTL
Time To Live (hop limit)
64
Protocol
Protocol used in data portion
6
TCP
Header Checksum
Checksum of IP header only
0x0000
Source IP
Source IP address
0x-3F57FEFE
Destination IP
Destination IP address
0x-3F57FEFF

About IPv4

Internet Protocol version 4 (RFC 791)

Fields: 13
Endianness: big
Specification: RFC 791