Transport Layer Flashcards

1
Q

What is a TCP(Transmission Control Protocol)?

A

TCP provides reliable, ordered, and error-checked delivery of bytes between applications.

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

What is a UDP(User Datagram Protocol)?

A

Quick, connectionless communication

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

What is Multiplexing and Demultiplexing?

A

Multiplexing (at sender)- how servers handle data from multiple sockets, Multiplexers add the transport header.

Demultiplexers(at receiver)- use header info to deliver segments to the correct socket

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

What is a UDP checksum?

A

Used to detects errors (e.g., flipped bits)

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

What is the Stop and Wait protocol

A

When the sender sends a packet, and then waits for the receiver to respond, this means that we can have a one-bit sequence number.

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

What’s the difference between the demultiplexing process in UDP vs TCP?

A

UDP only looks at the destination port

TCP looks at a combination of the source IP addr. and port number dest. IP addr. and port number.

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

Name 3 uses of UDP

A
  • SNMP
  • Streaming Multimedia
  • DNS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is it possible to have a UDP connection that’s reliable?

A

Yes, this can be implemented in the application layer

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

What’s rdt1.0?

A

Reliable transfer over a reliable channel

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

What’s rdt2.0?

A

Transfer with bit errors. Repeats transfer to recover these errors after getting control messages(ACKs, NACKs).

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

How does rdt2.0 handle ACK/NACK corruption/duplication?

A

Stop and Wait protocol is implemented, this is where the sender adds a sequence number to each packet and waits for the receiver response.

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

What is a Pipeline protocol?

A

Sender allows multiple packets to be sent, they don’t have to be acknowledged packets. e.g. Go Back N, Selective Repeat

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

What’s the difference between Selective repeat and the Go-Back-N protocols?

A

In Selective repeat the rcvr sends an individual ack for each packet and the sndr has a timer for each unacked packet.
MEANWHILE…
In Go-Back-N the rcvr sends a cumulative ack and has a timer for the oldest unacked packet.

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

What is a method of increasing utilization?

A

Pipelining

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

Does TCP use cumulative or individual acknowledgements?

A

Cumulative, similar to GBN

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

Why does TCP use a 3 way handshake instead of a 2 way handshake?

A
  • Message loss

- Variable delays

17
Q

Whats Flow Control?

A

The sender won’t overrun the receiver’s buffers by transmitting too much, too fast.

18
Q

How does the receiver in flow control advertise free space?

A

Including the rwnd value in the TCP header.

19
Q

What are the 4 costs of congestion?

A

(1) Lost packets
(2) Long delays
(3) Unneeded retransmission
(4) Upstream transmission capacity is wasted

20
Q

WHat’s congestion control?

A

This is when too many sources are sending too much too fast for the network to handle. Congestion control is different to flow control.

21
Q

What are the 2 approaches to congestion control?

A
  • End to end congestion control

- Network assisted congestion control

22
Q

How does TCP sender deal with perceived end to end congestion?

A

Using the TCP slow start algorithm.

23
Q

What is TCP slow start?

A

When connection begins, the sender increases rate exponentially until loss event. Once loss event occurs, increase congestion window per ACK message received.

24
Q

How is loss detected in the TCP congestion control process?

A

1 Timeout

25
Q

How does TCP react to loss in the congestion control process?

A
  • TCP RENO cuts congestion window in half

- TCP TAHOE sets congestion window to 1

26
Q

What is the TCP fairness goal?

A

if K TCP sessions share the same bottleneck link of bandwidth R, each should have a rate of R/K (router capacity)

27
Q

Why do multimedia apps usually use UDP instead of TCP?

A

They don’t want rate throttled by TCP congestion control.

28
Q

What does the transport layer do?

A

Provides process-process data transfer