TCP Flashcards

1
Q

Which tcp state is the following?

The default state that each connection starts in before the process of establishing begin.

A

CLOSED

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

Which tcp state is the following?

A device is waiting to receive a SYN message from a client. It has not yet sent its own SYN message.

A

LISTEN

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

Which tcp state is the following?

The device has sent a SYN message and is waiting for a matching SYN from the other device.

A

SYN-SENT

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

Which tcp state is the following?

The device has received a SYN (connection request) from its partner and sent its own SYN. It is now waiting for an ACK to its SYN in order to finish the connection setup.

A

SYN-RECEIVED

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

Which tcp state is the following?

The steady state of an open TCP connection. Both devices can exchange data freely once both devices in the connection enter this state. This will continue until they close the connection.

A

ESTABLISHED

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

Which tcp state is the following?

The device has received a closed request (FIN) from the other device. It must now wait for the application on the local device to acknowledge this request and generate a matching request.

A

CLOSE-WAIT

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

Which tcp state is the following?

A device that has already received a close request and acknowledged has sent its own FIN and is waiting for an ACK to this request.

A

LAST-ACK

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

Which tcp state is the following?

A device in this state is waiting for an ACK for a FIN it has sent, or is waiting for a connection termination request from the other device.

A

FIN-WAIT-1

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

Which tcp state is the following?

A device in this state has received an ACK for its request to terminate the connection and is now waiting for a matching FIN from the other device.

A

FIN-WAIT-2

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

Which tcp state is the following?

The device has received a FIN from the other device and has sent an ACK for it, but has not yet received an ACK for its own FIN message.

A

CLOSING

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

Which tcp state is the following?

The device has now received a FIN from the other device and acknowledged it, and sent its own FIN and received an ACK for it. We are finished, except for waiting to ensure the ACK is received and preventing potential overlap with new connections.

A

TIME-WAIT

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

In the CLOSED state, what is Passive Open

A

The server begins the process of connection setup by doing a passive open on a TCP port.

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

In the CLOSED state, what is Active Open.

A

A client begins the connection setup by sending a SYN message.

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

In the CLOSED state, in both passive open and active open. What do both do in preparation of the connection?

A

Sets up Transmission Control Block (TCB) for managing the connection.

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

After CLOSED state for Passive Open, what is the next state?

A

LISTEN state

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

After CLOSED state for Active Open, what is the next state?

A

The Active Open client transitions to a SYN-SENT state.

17
Q

Each connection is distinct, we must maintain data about each connection separately. TCP uses a special data structure called ________.

A

Transmission control block (TCB)