0% found this document useful (0 votes)
53 views

IP Header: Type of Service (TOS) Total Length

The document provides details about the structure of an IP packet header including explanations of fields like version, header length, total length, fragmentation offset, protocol, and checksum. It notes some common IP protocols and refers to RFC 791 for the full IP specification.

Uploaded by

sandu405
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

IP Header: Type of Service (TOS) Total Length

The document provides details about the structure of an IP packet header including explanations of fields like version, header length, total length, fragmentation offset, protocol, and checksum. It notes some common IP protocols and refers to RFC 791 for the full IP specification.

Uploaded by

sandu405
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Byte

Offset

IP Header
0

1
IHL (Header
Length)

Version

2
Type of Service (TOS)

Total Length
IP Flags
x D M

Identification

Time To Live (TTL)

Fragment Offset

Protocol

Header Checksum

IHL
(Internet
Header
Length)

12

Source Address

16

Destination Address

20

IP Options (optional, not common)

Bit

Nibble

Byte

1
8 9 0
Word

2
0

Version

Protocol

Fragment Offset

Version of IP Protocol. 4 and


6 are valid. This diagram
represents version 4
structure only.

IP Protocol ID. Including (but


not limited to):

Fragment offset from start of


IP datagram. Measured in 8
byte (2 words, 64 bits)
increments. If IP datagram is
fragmented, fragment size
(Total Length) must be a
multiple of 8 bytes.

1
2
6
9

ICMP
IGMP
TCP
IGRP

17
47
50
51

UDP
GRE
ESP
AH

57
88
89
115

SKIP
EIGRP
OSPF
L2TP

Header Length
Number of 32-bit words in
TCP header, minimum value
of 5. Multiply by 4 to get byte
count.

20
Bytes

Total Length
Total length of IP datagram,
or IP fragment if fragmented.
Measured in Bytes.

Header Checksum
Checksum of entire IP
header

IP Flags
x D M
x 0x80 reserved (evil bit)
D 0x40 Do Not Fragment
M 0x20 More Fragments
follow
RFC 791
Please refer to RFC 791 for
the complete Internet
Protocol (IP) Specification.
Copyright 2004 - Matt Baxter - [email protected]

3
0

You might also like