TCP Flashcards

1
Q

UDP
User Data Cram Protocol

A

A connectionless protocol. You just set a destination and send data. Does not use handshake

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

Socket

A

The instantiation of an end-point in a potential TCP connection

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

Instantiation

A

The actual implementation of something defined elsewhere

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

TCP Socket States
(Most common)

A
  1. Listen
  2. SYN_SENT
  3. SYN_RECEIVED
  4. Established
  5. FIN_WAIT
  6. CLOSE_WAIT
  7. CLOSED
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Listen

A

A TCP Socket is ready and listening for incoming connections
(Only seen on the server side)

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

SYN_SENT

A

A synchronization request has been sent, but the connection hasn’t been established yet
(Seen on client side)

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

SYN_RECEIVED

A

A socket previously in a Listen state has received a synchronization request and sent a SYN/ACK back
(Seen on server side)

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

Established

A

The TCP connection is in working order and both sides are free to send each other data
(Seen on both sides)

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

FIN_WAIT

A

A FIN has has been sent, but the corresponding ACK from the other end hasn’t been received yet

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

CLOSE_WAIT

A

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

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

CLOSED

A

The connection has been fully terminated and that no further communicate is possible

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

Connection-oriented protocol

A

Establishes a connection and uses this to ensure that all data has been properly transmitted

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

3 kinds of ports

A
  1. System ports
  2. User ports
  3. Ephemeral ports
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Firewall

A

A device that blocks traffic that meets certain criteria

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