5.2 IPv4 Packet Flashcards
IPv4 PACKET HEADER
The IPv4 packet header is used to ensure that this packet is delivered to its next stop on the way to its destination end device.
An IPv4 packet header consists of fields containing important information about the packet. These fields contain binary numbers which are examined by the Layer 3 process.
IPv4 PACKET HEADER FIELDS
1 VERSION
2 INTERNET HEADER LENGHT
3 Differentiated Services or DiffServ
4 TOTAL LENGHT
5 IDENTIFICATION
6 FLAG
7 FRAGMENT OFFSET
8 TIME TO LIVE
9 PROTOCOL
10 HEADER CHECKSUM
11 SOURCE IP ADDRESS
12 DESTINATION IP ADDRESS
VERSION
Version - Contains a 4-bit binary value set to 0100 that identifies this as an IPv4 packet.
DIFFERENTIATED SERVICES or DIFFSERV
Differentiated Services or DiffServ (DS) - Formerly called the type of service (ToS) field, the DS field is an 8-bit field used to determine the priority of each packet.
The six most significant bits of the DiffServ field are the differentiated services code point (DSCP) bits and the last two bits are the explicit congestion notification (ECN) bits.
TIME TO LIVE
Time to Live (TTL) – TTL contains an 8-bit binary value that is used to limit the lifetime of a packet.
The source device of the IPv4 packet sets the initial TTL value. It is decreased by one each time the packet is processed by a router.
If the TTL field decrements to zero, the router discards the packet and sends an Internet Control Message Protocol (ICMP) Time Exceeded message to the source IP address.
Because the router decrements the TTL of each packet, the router must also recalculate the Header Checksum.
PROTOCOL
Protocol – This field is used to identify the next level protocol.
This 8-bit binary value indicates the data payload type that the packet is carrying, which enables the network layer to pass the data to the appropriate upper-layer protocol.
Common values include ICMP (1), TCP (6), and UDP (17).
HEADER CHECKSUM
Header Checksum – This is used to detect corruption in the IPv4 header.
SOURCE IPv4 ADDRESS
Source IPv4 Address – This contains a 32-bit binary value that represents the source IPv4 address of the packet. The source IPv4 address is always a unicast address.
DESTINATION IPv4 ADDRESS
Destination IPv4 Address – This contains a 32-bit binary value that represents the destination IPv4 address of the packet.
The destination IPv4 address is a unicast, multicast, or broadcast address.
The Internet Header Length (IHL), Total Length, and Header Checksum fields are used to identify and validate the packet.
Other fields are used to reorder a fragmented packet.
Specifically, the IPv4 packet uses Identification, Flags, and Fragment Offset fields to keep track of the fragments. A router may have to fragment an IPv4 packet when forwarding it from one medium to another with a smaller MTU.
The Options and Padding fields are rarely used and are beyond the scope of this module.