TCP Flashcards

(28 cards)

1
Q

What type of communication does TCP provide?

A

Reliable in-order connection-oriented byte-stream service.

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

What does full duplex mean in TCP?

A

Data flows both directions simultaneously.

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

What does the TCP sequence number represent?

A

The byte offset of the first byte in the segment + ISN.

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

What does the TCP acknowledgment number represent?

A

The next expected byte (cumulative ACK).

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

What does the Window field represent?

A

Receiver’s available buffer space for flow control.

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

What is inside a TCP SYN?

A

Initial sequence number and flow control window.

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

What is inside a TCP SYNACK?

A

Receiver ISN flow control window and ACK = senderISN+1.

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

Why is 2-way handshake not used?

A

It can create half-open connections.

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

What is SampleRTT?

A

Time from segment transmission to ACK arrival.

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

Why ignore RTT from retransmitted packets?

A

Ambiguous which transmission was ACKed (Karn’s Algorithm).

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

What is the EstimatedRTT formula?

A

EstimatedRTT = (1 - α) * EstimatedRTT + α * SampleRTT.

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

What is α for RTT smoothing?

A

0.125.

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

What is the DevRTT formula?

A

DevRTT = (1 - β) * DevRTT + β * |SampleRTT - EstimatedRTT|.

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

What is β for DevRTT?

A

0.25.

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

What is the TimeoutInterval formula?

A

Timeout = EstimatedRTT + 4 * DevRTT.

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

What is TCP flow control for?

A

Prevent sender from overwhelming receiver buffer.

17
Q

What field carries flow control?

A

Advertised window.

18
Q

When does sender stop sending?

A

When in flight data ≥ advertised window.

19
Q

What is cwnd?

A

Congestion window (sender side).

20
Q

What is ssthresh?

A

Threshold between slow start and congestion avoidance.

21
Q

How does cwnd grow in Slow Start?

A

Doubles every RTT.

22
Q

When does TCP leave Slow Start?

A

When cwnd exceeds ssthresh.

23
Q

How does cwnd grow in Congestion Avoidance?

A

+1 MSS per RTT.

24
Q

What does timeout indicate?

A

Severe congestion; set cwnd to 1 MSS.

25
What does triple duplicate ACK imply?
Mild congestion; fast retransmit/fast recovery.
26
What is fast retransmit?
Retransmit lost packet after 3 duplicate ACKs.
27
How does TCP Reno reduce cwnd on triple dup ACK?
cwnd = ssthresh + 3 MSS.
28
Why does TCP CUBIC outperform Reno?
Probes near Wmax more efficiently and ramps faster.