TCP Flashcards

1
Q

What are the three steps involved in TCP?

A
  1. Connection Establishment
  2. Data transfer
  3. Connection Termination
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is another term for the connection establishment in TCP?

A

Three-way handshake.

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

What is passive open?

A

Server binding to and listening at a port to open up for connections.

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

What must server have done before client can connect with server?

A

passive open.

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

When can client perform an active open with a server?

A

After server has performed a passive open.

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

What is the first step of the three way handshake when establishing client server connection?

A

Client sets the segment sequence number to a random value A and sends a SYN to the server.

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

What is the second step of the three way handshake when establishing client server connection?

A

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.

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

What is the third step of the three way handshake when establishing client server connection?

A

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.

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

What do the 1 and 2 steps of the connection handshake establish?

A

Connection parameter (sequence number) for one direction and acknowledge it.

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

What do the 2 and 3 steps of the connection handshake establish?

A

Connection parameter (sequence number) for other direction and acknowledge it.

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

What type of handshake is involved four client server connection termination?

A

Four-way handshake with each side of the connection terminating independently.

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

What is the first step in the four-way connection termination handshake?

A

One endpoint sends a FIN packet to the other endpoint.

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

What is the second step in the four-way connection termination handshake?

A

The endpoint receiving the initial FIN packet responds with an ACK.

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

What is the third step in the four-way connection termination handshake?

A

The endpoint receiving the initial FIN packet sends a FIN packet.

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

What is the fourth step in the four-way connection termination handshake?

A

Endpoint that sent the initial FIN packet responds with an ACK then waits for timeout before closing connection.

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

What are five key features of data transfer in TCP?

A
  1. Data transfer is ordered.
  2. Retransmission of packets.
  3. Error free data transfer.
  4. Flow control.
  5. Congestion control.
17
Q

What does ordered data transfer mean?

A

Destination host rearranges data according to sequence number.

18
Q

What does retransmission of packets mean?

A

Any cumulative stream not acknowledged is retransmitted.

19
Q

What does error free data transfer mean?

A

Duplicate packets are discarded, and packets are retransmitted when needed. Means that data is transferred error free.

20
Q

What does flow control mean for data transfer?

A

The limit placed on the rate a sender transfers data to guarantee reliable delivery.

21
Q

What does congestion control mean for data transfer?

A

Controlling the rate of packets entering the network to avoid congestion collapse. Prevents senders from overwhelming the network.