IPv4 Header, IPv6, and TCP/UDP Header Flashcards

1
Q

How many fields for the IPv4 Header

A

10 fields?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the version field?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

List the fields?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the DSCP Field

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Next Line - Line 2
What is the identification field?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the total length field

A

Indicates total length of the packet - L3 header plus layer 4 segment)
- minimum value of 20 bytes with no encapsulated data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the IHL Field?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the fragment Offset Field

A
  • Used to indicate the position of the fragment within the original, unfragmented IP packet.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the Flags field?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

New Line - Line 3
What is the Time-to-live field?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the Header Checksum Field?

A

Checks for errors in the IPv4 packet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the protocol field?

A

Indicates the protocol of the encapsulated L4PDU. (TCP/UDP/ICMP/OSPF)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the source IP field?

A

32 bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the Destination IP field?

A

32 bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the Options Field?

A

If the IHL is greater than 5, it means that options are present.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

New Section - TCP/UDP

16
Q

TCP Header

A

A bunch of fields

17
Q

What is the source Port

A

Specifies the port number of the sender

18
Q

What is the destination port

A

Specifies the port number of the receiver

19
Q

What is the sequence number field

A

Sequencing and reliable communication (3-way handshake),

20
Q

What is the ACK number field

A

Used by the receiver to request the next TCP segment.

21
Q

What is the DO field

A

Indicates length of the TCP header.

22
Q

What is the RSV field

A

Reserved field

23
Q

What are the flag fields?

A

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!

24
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.
25
What is the checksum
Check to see if the TCP header is ok or not.
26
What is the urgent point
Used to indicate where the urgent data ends.
27
28
29
30
31