IPv4 Header, IPv6, and TCP/UDP Header Flashcards
How many fields for the IPv4 Header
10 fields?
What is the version field?
Version/IHL - identifies the field of IP used. IPv4 or IPv6.
0100
0110
- IHL is necessary to indicate the total length of the header. Identifies the length of the header in 4-byte increments
List the fields?
What is the DSCP Field
DSCP/ECN Field - priority of a packet. Used for QoS. (Streaming voice and video)
ECN Field - cool! Provides end-to-end notification of network congestion without dropping packets.
Next Line - Line 2
What is the identification field?
If a packet is fragmented due to being too large, this field is used to identify which packet the fragment belongs to.
- All fragments of the same packet will have their own IPv4 header, with the same value in this field.
What is the total length field
Indicates total length of the packet - L3 header plus layer 4 segment)
- minimum value of 20 bytes with no encapsulated data.
What is the IHL Field?
This is meant to go in the beginning. IHL field has a minimum value of 5 (=20 bytes) and max value of 15 (15x4 =60 bytes).
- Remember, it identifies the header in 4 byte increments
What is the fragment Offset Field
- Used to indicate the position of the fragment within the original, unfragmented IP packet.
What is the Flags field?
Used to control/identify fragments
- Bit 0, always set to 0
- Bit 1: Don’t fragment (DF)
- Bit 2 - More fragments (MF), set to 1 if there are more fragments in the packet, set to 0 for the last fragment.
New Line - Line 3
What is the Time-to-live field?
Used to prevent infinite loops. A route will drop a packet with a TTL of 0. Each time the packet arrives at the router, the router decreases the TTL by 1.
What is the Header Checksum Field?
Checks for errors in the IPv4 packet.
What is the protocol field?
Indicates the protocol of the encapsulated L4PDU. (TCP/UDP/ICMP/OSPF)
What is the source IP field?
32 bit
What is the Destination IP field?
32 bit
What is the Options Field?
If the IHL is greater than 5, it means that options are present.