IPv4 & UDP Packet Calculator
by michaelfm1211

Also see the accompanying IPv4 & ICMP Echo Request Calculator.

Note: these tables may not be to scale on your device. For authoritative reference, you should read the relevant RFCs.

IP Header

Version (4 bits)
4
IHL (4 bits)
5
DoS (8 bits)
00
Total Length (16 bits)
00 00
Identification (16 bits)

Flags (3 bits)
b000
Fragment Offset (13 bits)
b0000000000000
TTL (8 bits)

Protocol (8 bits)
11
Header Checksum (16 bits)
?? ??
Source Address (32 bits)

Destination Address (32 bits)

UDP Header

Source Port (16 bits)

Destination Port (16 bits)

UDP Length (16 bits)
00 08
Optional Checksum (16 bits)
?? ??
Payload Data (optional, 0-65507 bytes)
""

Hex Output

Click the container above to copy its contents.