Week 13 - TCP (transport layer protocol) Flashcards

1
Q

Is TCP simplex, half-duplex, or full-duplex

A

full-duplex

Segment sequence numbers are independent in each direction.

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

In a TCP segment, what does the sequence number refer to?

A

The first byte of data in the segment.

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

What is the checksum for in a TCP segment?

A

Ensures entire TCP segment is not corrupt.

Calculated only at receiver unlike network layer IP datagram.

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

How is TCP flow control implemented?

A

TCP sender has receive window (rwnd) variable

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

Is TCP connection or connectionless?

A

connection - reliability

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

How is TCP error control implemented? (4 mechanisms)

A

Acknowledgements
Sequence numbers
Retransmission
Checksum

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

What does the value in the acknowledgment field in a TCP segment define?

A

The byte number of the next byte a party expects to receive.

The ACK number is cumulative

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

What are the 2 types of retransmission in TCP?

A

Timeout

Three Duplicate ACK segments

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

How does TCP detect congestion?

A

By observing the cause of retransmission.

  1. Timeout indicates strong congestion
  2. Three duplicate ACKS indicates weak congestion
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the TCP congestion window?

A

It’s similar to rwnd but this time it’s not about the receiver buffer but rather the congestion perceived by the sender based on retransmission.

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

What is MSS?

A

Maximum TCP segment payload size. It’s similar to MTU which is correlated to data-link layer frame.

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

How does the TCP congestion control algorithm work?

AKA how is the cwnd adjusted (MSS)?

A

Uses 2 components:

  1. Slow start (exponential) doubles per RTT and continues until ssthresh reached. Whenever a timeout or 3dupACKs occurs, the ssthresh is half of the current cwnd
  2. cwnd increases linearly beyond the ssthresh.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly