Transport Layer Flashcards

1
Q

What is UDP?

A

User Datagram Protocol: Connectionless (“send and forget”), no acks.

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

What is TCP?

A

Transmission Control Protocol: Connection-oriented, reliable
Client-server use sockets to create enpoints.
Provides control flow and retransmission

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

What is the 3-way handshake of TCP connection establishment?

A
  1. SYN - Open connection with random sequence number (client)
  2. SYN-ACK - Server confirms connection.
  3. ACK - Connection confirmed by client.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why are sequence numbers used for TCP packets?

A

To detect and identify repeat and lost packets.

Discard and transmit respectively.

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

What is the process for TCP video streaming?

A

Connection opens.
Video data sent to client.
Client stores data in buffer (fast links can buffer ahead of playback) for playback.
If the link is slow, the video “buffers”, not suitable for live streaming.

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

What is the process of UDP live streaming?

A

UDP packets sent to client at fixed transmission rate.

No buffering, if packets are lost, glitches appear in video rather than pausing (buffering).

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

What are sockets?

A

Communication enpoints for TCP connections.
They contain a port and IP address.
Can be used to uniquely identify applications in subsequent data transmissions.

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

How do TCP and UDP handle flow control?

A

UDP does not handle flow control.

TCP provides flow and congestion control.

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

What is the Sliding Window Protocol?

A

Controls the sending rate of segments depending on the available buffer size of the receiver in order to prevent time being wasted by having to retransmit segments.

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

What is the process for the Sliding Window Protocol?

A
  1. Sender sends segment with sequene numbe and starts timer.
  2. Receiver responds with ack, window size and next expected sequence number.
  3. If windowSize == 0, sender can send 1-byte probe to get new window advertisment.
  4. Otherwise, sender sends next segment/s according to window size and sequence number.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What 2 windows are used for TCP congestion control?

A

Congestion Window

Receiver Window

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