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.
New Section - TCP/UDP
TCP Header
A bunch of fields
What is the source Port
Specifies the port number of the sender
What is the destination port
Specifies the port number of the receiver
What is the sequence number field
Sequencing and reliable communication (3-way handshake),
What is the ACK number field
Used by the receiver to request the next TCP segment.
What is the DO field
Indicates length of the TCP header.
What is the RSV field
Reserved field
What are the flag fields?
URG - urgent pointer. When this bit is set, it should take priority over other data.
ACK - used for the ack
PSH - push function.
RST - resets the connection
SYN - we use this for an initial three way handshake and its used to set the initial sequence
FIN - finish bit is used to end the TCP connection. TCP is full duplex, both parties have to send a fin!
What is the window
Specifies how many bytes the receiver is willing to receive. Receiver can tell the sender for example to send more data.
What is the checksum
Check to see if the TCP header is ok or not.
What is the urgent point
Used to indicate where the urgent data ends.