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
2
Q
What is the purpose of flow control?
A
Prevents sender from overwhelming the receiver by limiting unacknowledged data using sliding window protocol.
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.
4
Q
What are cumulative acknowledgements in TCP?
A
Each ACK confirms receipt of all previous bytes up to a sequence number.
5
Q
How does TCP handle retransmitting and retransmitting?
A
Uses timeouts and automatic repeat requests