TCP Flashcards
What are the three steps involved in TCP?
- Connection Establishment
- Data transfer
- Connection Termination
What is another term for the connection establishment in TCP?
Three-way handshake.
What is passive open?
Server binding to and listening at a port to open up for connections.
What must server have done before client can connect with server?
passive open.
When can client perform an active open with a server?
After server has performed a passive open.
What is the first step of the three way handshake when establishing client server connection?
Client sets the segment sequence number to a random value A and sends a SYN to the server.
What is the second step of the three way handshake when establishing client server connection?
Server sets the acknowledgement number to one more than the received sequence number (A + 1). Sequence number for packet is set to a random number (B), and SYN-ACK acknowledgement is sent to client.
What is the third step of the three way handshake when establishing client server connection?
Client sets the sequence number to the received acknowledgement value (A + 1), acknowledgement number is set to one more than the received sequence number (B + 1) and ACK is sent back to server.
What do the 1 and 2 steps of the connection handshake establish?
Connection parameter (sequence number) for one direction and acknowledge it.
What do the 2 and 3 steps of the connection handshake establish?
Connection parameter (sequence number) for other direction and acknowledge it.
What type of handshake is involved four client server connection termination?
Four-way handshake with each side of the connection terminating independently.
What is the first step in the four-way connection termination handshake?
One endpoint sends a FIN packet to the other endpoint.
What is the second step in the four-way connection termination handshake?
The endpoint receiving the initial FIN packet responds with an ACK.
What is the third step in the four-way connection termination handshake?
The endpoint receiving the initial FIN packet sends a FIN packet.
What is the fourth step in the four-way connection termination handshake?
Endpoint that sent the initial FIN packet responds with an ACK then waits for timeout before closing connection.