TCP Socket States Flashcards

1
Q

LISTEN

A

A TCP socket is ready and is listening for incoming connections. Server-side only.

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

SYN_SENT

A

A synchronization request has been sent, but the connection hasn’t been established yet. Client-side only

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

SYN_RECEIVED

A

A socket previously in a LISTEN state has received a synchronization request and has sent a SYN/ACK back. Server-side only

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

ESTABLISHED

A

The TCP connection is in working order and both sides are free to send each other data. Seen on both Client and Server.

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

FIN_WAIT

A

A FIN has been sent, but the corresponding ACK from the other end has not been received yet.

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

CLOSE_WAIT

A

The connection has been closed at the TCP layer, but the application that opened the socket hasn’t released it’s hold on the socket yet.

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

CLOSED

A

The connection has been fully terminated and no further communication is possible

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