TCP Connection Lifecycle — Concept Check
Questions on TCP Connection Lifecycle. The full TCP connection lifecycle — establishment (3-way handshake), data transfer with sequence numbers and acknowledgements, flow control, and graceful teardown (4-way FIN handshake) — underpins every reliable network communication.
Questions in this quiz
8 questions on TCP Connection Lifecycle — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A server experiences slow connections and `netstat` shows many sockets in TIME_WAIT. What is likely happening?
- AThe server's bandwidth is exhausted.
- BThe server is under a DDoS attack.
- CThe server's CPU is overloaded.
- DThe server is handling many short-lived connections.
2.During a TCP connection teardown, a client sends a FIN and receives an ACK. What state does it enter next?
- ACLOSED
- BTIME_WAIT
- CLAST_ACK
- DFIN_WAIT_2
3.A TCP connection is established, but the server does not acknowledge data sent by the client. What might be the cause?
- AThe server's IP address changed.
- BThe server's sequence numbers are incorrect.
- CThe server's receive window is full.
- DThe server is in TIME_WAIT state.
4.A client sends a SYN, receives a SYN-ACK, but does not send an ACK back. What happens to the connection?
- AThe connection is established.
- BThe connection remains half-open.
- CThe connection is closed immediately.
- DThe connection is reset.
5.What is the purpose of the 3-way handshake in TCP?
- ATo establish connection and exchange initial sequence numbers.
- BTo synchronize clocks between client and server.
- CTo close the connection gracefully.
- DTo encrypt data before transmission.
6.A TCP connection is in ESTABLISHED state. What must happen before it can enter TIME_WAIT?
- AThe client must send a FIN and receive a FIN-ACK.
- BThe client must send a RST.
- CThe server must send a FIN and receive an ACK.
- DBoth client and server must send FIN and receive ACKs.
7.A TCP connection uses sequence numbers for reliable delivery. What happens if a segment is lost?
- AThe receiver requests a new sequence number.
- BThe receiver sends a duplicate ACK immediately.
- CThe sender retransmits after a timeout.
- DThe connection is reset.
8.A server shows many connections in FIN_WAIT_1. What does this indicate?
- AThe server is experiencing packet loss.
- BThe server is passively closing connections.
- CThe server is actively closing many connections.
- DThe server is establishing new connections.