0
0
Computer Networksknowledge~5 mins

TCP connection termination (four-way handshake) in Computer Networks - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the TCP four-way handshake?
The TCP four-way handshake is used to properly close a TCP connection between two devices, ensuring that both sides have finished sending data and can safely terminate the connection.
Click to reveal answer
beginner
Name the four steps involved in the TCP connection termination process.
The four steps are: 1) FIN sent by the side that wants to close, 2) ACK sent by the other side to acknowledge the FIN, 3) FIN sent by the other side to close its side, 4) ACK sent by the first side to acknowledge the second FIN.
Click to reveal answer
intermediate
Why does TCP use a four-way handshake instead of a simpler method to close connections?
Because TCP connections are full-duplex, each side can send data independently. The four-way handshake allows each side to close its sending channel separately, ensuring no data is lost.
Click to reveal answer
beginner
What does the FIN flag indicate in a TCP segment?
The FIN flag indicates that the sender has finished sending data and wants to close its side of the connection.
Click to reveal answer
intermediate
What state does a TCP connection enter after sending a FIN and before receiving the final ACK?
It enters the FIN_WAIT_1 state, waiting for an acknowledgment from the other side.
Click to reveal answer
Which TCP flag is used to initiate connection termination?
AACK
BSYN
CRST
DFIN
How many steps are there in the TCP connection termination process?
A2
B4
C5
D3
What does the ACK flag do during TCP connection termination?
AAcknowledges receipt of FIN
BStarts the connection
CResets the connection
DSends data
Why can't TCP close the connection with just one FIN and one ACK?
ABecause TCP is half-duplex
BBecause SYN must be sent first
CBecause both sides must close independently
DBecause ACK is not reliable
After the first FIN is sent and acknowledged, what does the other side do next?
ASends its own FIN
BSends data
CCloses the connection immediately
DSends a RST
Explain the TCP four-way handshake process for connection termination in your own words.
Think about how each side tells the other it is done sending data.
You got /4 concepts.
    Why is it important for TCP to have a four-step process to close a connection instead of just one step?
    Consider how data flows in both directions.
    You got /3 concepts.