IP Headers Flashcards
Version
Identifies the versio of IP used (4 bits)
IPv4
IPv6
IHL (Internet Header Length)
4 bits
Min value = 5 (5 x 4 bytes = 20 bytes with an empty options field)
Max value = 15 (15 x 4 bytes = 60 bytes)
Options
variable in length, and necessary to indicate the total length of the header. (0 - 320 bits)
Specifies the length of the header in 4-byte increments.
If the value in this field is 5 then:
5 x 4 bytes = 20 bytes
DSCP (Differentiated Services Code Point)
Length: 6 bits
Used for QoS (Quality of Service)
Used to prioritize delay-sensitive data
ECN (Explicit Congestion Notification)
Length 2 bits
Provides end-to-end notification of network congestion without dropping packets
Total Length
Indicates the total length of the packet (L3 Header + L4 Segment)
Lenght: 16 bits
Identification
Length: 16 bits
If a packet is fragmented due to being too large this field will be used to identify which packet the frame belongs to.
All fragments of the same packet will have their own IPv4 header with the same value in this field
Flags
Used to control/identify fragments
Bit 0 Reserved, always set to 0
Bit 1 Dont Fragment
Bit 2 More Fragments
Fragment Offset
Used to indicate the position of the fragment within the original unfragmented IP packet
Length: 13 bits
Allows fragments to be reassembled in the correct order even if they arrive out of order.
TTL (Time to Live)
A router will drop a TTL of 0
Used to prevent infinite loops
Protocol
Indicates the protocol
TCP (6) / UDP (17) / ICMP (1) / OSPF (89)
Header Checksum
Checks for errors in IPv4 header