TCP Flashcards

1
Q

How does TCP establish a connection?

A

3 way handshake.
SYN: Client sends SYN to start connection
SYN-ACK: Server responds with SYN-ACK
ACK: Client sends ACK

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

What is the purpose of flow control?

A

Prevents sender from overwhelming the receiver by limiting unacknowledged data using sliding window protocol.

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

How does sliding window work?

A

Sender can only send up to advertised window bytes without ACKs.
Receiver can adjust window size based on available buffer space.

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

What are cumulative acknowledgements in TCP?

A

Each ACK confirms receipt of all previous bytes up to a sequence number.

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

How does TCP handle retransmitting and retransmitting?

A

Uses timeouts and automatic repeat requests

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