Transport Layer Flashcards

1
Q

What is a socket and how is it defined?

A

A socket is an interface between the application and the transport layer. It is identified by other processes with:

  • IP Address
  • Port nr.
  • Transport Protocol
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe the process of the TCP handshake.

A
  1. ) SYN with rand (sequence) nr. x
  2. ) SYN ACK x++ and rand (sequence) nr. y
  3. ) ACK x++ and y++
  4. ) Send and receive data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a “Fast Open” handshake? How is it implemented?

A

After the first 3-way-handshake the client can ask for a TCP Cookie. Afterwards it doesn’t have to do the 3-way-handshake again for a new TCP session.
This can be added as TCP Option to the TCP Header

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

Which 2 methods can be used to terminate a TCP connection?

A
  • FIN (Control Bit)

- RST (Control Bit)

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

Describe the process of terminating a TCP connection (nicely).

A
  1. ) Client -> Server FIN
  2. ) Server -> Client ACK
  3. ) Server -> Client FIN
  4. ) Client -> Server ACK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What “data flow” mechanism uses TCP?

A

Sliding window with buffer. Buffer size is sent with the “Window” in TCP Header. Sequence nr. are used to identify the correct flow of segments.

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

How big is the MSS (Maximum Segment Size) of TCP and can we reduce fragmentation with it?

A

MSS is derived from the MTU of Link layer. MSS = MTU - IP header length - TCP Header length. Avoids fragmentation on our end but fragmentation can happen because some routers may have a lower MTU than we have

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

Describe the UDP Header.

A

Have a look at the slides.

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

What is the (biggest) problem of UDP?

A

It is used for DDoS attacks. If the attacker uses a protocol which allows him to send a small request that leads to a bigger response he can amplify the attack.

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

How is a UDP response reassembled to its request?

A

It is not. UDP doesn’t care about that. If a protocol needs to that (e.g. DNS) the protocol has to have the information on itself.

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

Why does DNS use UDP?

A

DNS only needs to transmit little data. So we want them to transmit fast and without much overhead. UDP is perfect for that and to reassemble response and request, DNS provides an option for that.

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