TCP: Timeout Estimation, Flow Control, and Connection Management

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

What does TCP use to estimate its timeout interval?

TimeoutInterval = EstimatedRTT + 4 × DevRTT

2
New cards

How does TCP indicate that it has not received an expected segment?

TCP uses duplicate acknowledgments to indicate the absence of an expected segment.

3
New cards

How can TCP detect packet loss before a timeout occurs?

TCP can detect packet loss early by using duplicate acknowledgments.

4
New cards

What is flow control in TCP?

Flow control is a mechanism that prevents a sender from overwhelming a receiver by managing the rate of data transmission based on the receiver's buffer capacity.

5
New cards

What happens when data arrives at a full TCP receive buffer?

If the receive buffer is full, TCP will stop accepting new segments until there is space available.

6
New cards

What does the receive window (rwnd) represent in TCP?

The receive window (rwnd) represents the amount of available space in the receiver's buffer.

7
New cards

How does TCP maintain flow control on the sender side?

The sender tracks the amount of unacknowledged data and ensures it does not exceed the receive window size indicated by the receiver.

8
New cards

What are the two relevant variables maintained by the receiver for flow control?

The receiver maintains LastByteRead and LastByteRcvd.

9
New cards

What does rwnd equal when calculating flow control?

rwnd equals RcvBuffer minus the difference between LastByteRcvd and LastByteRead.

10
New cards

What does a receiver do when its buffer is full and rwnd equals 0?

The receiver sets rwnd to 0 in the header of the last segment sent, indicating no space is available.

11
New cards

How does TCP inform the sender when there is space in the receiver's buffer?

The receiver periodically acknowledges segments with a non-zero rwnd value once space becomes available.

12
New cards

What is the purpose of the SYN segment in TCP connection establishment?

The SYN segment initiates a TCP connection and contains the initial sequence number.

13
New cards

What are the three steps in establishing a TCP connection?

1. Client sends a SYN segment. 2. Server replies with a SYN/ACK segment. 3. Client sends an ACK segment.

14
New cards

What is the role of the FIN segment in closing a TCP connection?

The FIN segment indicates that a host wants to terminate the connection.

15
New cards

What happens when a client sends a FIN segment to the server?

The server acknowledges the FIN, then sends its own FIN segment, followed by an ACK from the client.

16
New cards

What does the RST segment indicate in TCP?

The RST segment indicates that a connection cannot be established or has been reset.

17
New cards

What is the significance of the ACK number in TCP segments?

The ACK number indicates the next expected byte from the other side of the connection.

18
New cards

What is the difference between flow control and congestion control in TCP?

Flow control manages the rate of data transmission based on the receiver's buffer capacity, while congestion control manages the rate based on network conditions.

19
New cards

What happens if a client tries to connect to a closed port?

The server will respond with a TCP RST segment to inform the client that the port is not open.