6-Congestion control & streaming Flashcards

1
Q

..deals with handling bandwidth constraints on links

A

Resource control

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

Goal: “Fill the pipes without overflowing them”

A

Congestion control (remember the sink analogy)

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

Throughput that is less than the bottleneck link

A

Congestion collapse

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

Increase in load -> decrease in work

A

Collapse

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

Causes of collapse

A

1) Spurious re-transmission

2) Undelivered packets

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

Have better timers and use TCP congestion control

A

Solution to Spurious re-transmission

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

Apply congestion control to all traffic

A

Solution to Undelivered packets

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

Possible causes of congestion collapse

A

1) Spurious re-transmissions of packets in flight

2) Undelivered packets that consume resources in the network but achieve no useful work

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

2 main goals of congestion control:

A

1) Use network resources efficiently
2) Preserve fair allocation of resources for all senders
3) avoid congestion collapse

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

2 approaches to congestion control

A

1) End to End: Network provides no explicit feedback to the senders on when they should slow down their rates. No feedback from network (TCP)
Instead Congestion inferred by packet loss and delay
2) Network -Assisted: Routers provide feedback
-> set bit
-> explicit rates

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

TCP Congestion control

A

Senders continue to increase their rates until they see packet drops in the network. (Also known as AIMD)

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

TCP interprets packet loss as congestion and

A

slows down

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

TCP Congestion control

A

Increase algorithm: sender must test the network to determine if the network can sustain a higher sending rate
Decrease algorithm: Senders react to congestion to achieve optimal loss rates, delays and sending rates

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

Two approaches to adjusting rates

A

1) Window- based (AIMD) or additive increase/multiplicative decrease (Most common approach)
2) Rate-based: sender monitors the loss rate and uses a timer to modulate the transmission rate.

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

Main two goals of TCP congestion control

A

1) Efficiency: network resources are used well.

2) Fairness: every sender gets their “fair share” of the network resources.

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

RTT: 100 ms
Packet: 1kb (1 byte = 8 bits)
Window size: 10 packets

A

100 ms = .1 secs
10 packets/.1 secs = 100 packets/sec
1 kb = 1024 * 8 = 8192 * 100 = 819,200 or ~800,00 bps

17
Q

AIMD: Converge to fairness & efficiency

A

Phase plot

18
Q

AIMD (TCP Congestion Control)

A

TCP “Sawtooth” Distributed, fair, efficient

19
Q

TCP throughput collapse problem. A drastic reduction in application throughput that results when servers using TCP all simultaneously request data.

A

TCP “Incast” problem

20
Q

Common request pattern in data centers where a client or application may have many parallel threads and no forward progress can be made until all the responses for those threads are satisfied.

A

Barrier Synchroniztion

  • Micro sec granularity
  • ACKS for every other packet
21
Q

Possible Solutions to TCP “Incast” problem?

A

1) Finer granularity timers

2) fewer acknowledgements (acknowledge every other packet)

22
Q

Challenges of multimedia streaming

A

1) Large Volume of data
2) Data volume varies over time
3) Users have a low tolerance for delay variation
4) Low tolerance for delay, period.
* Some loss is acceptable

23
Q

Digitizing Audio & Video:
Speech
8000 samples/sec
8 bits/sample

A

Rate: 64 kbps

8000 samples/sec * 8 bits/sample = 64000 bits/sec = 64kb/sec or 64 kbps

24
Q

Image compression->spatial redundancy

Compression across images -> temporal redundancy

A

Video Compression (common video compression format is called mpeg)

25
Q

Server stores audio/video files
Client requests and plays as they download
-> Playing at the right time is key
The solution is ->

A

Streaming Video

Solution is : playout buffer

26
Q

Which pathologies can streaming audio/video tolerate?

A

1) Loss

2) Delay

27
Q

TCP is not a good fit for congestion control for streaming video/audio

A
  • Not reliable delivery
  • slowing down upon packet loss
  • Protocol overhead
28
Q

UDP is a better fit for congestion control for streaming video/audio

A

No re-transmission

No sending rate

29
Q

What are some QOS for streaming audio/video

A

1) Mark the packets as a higher priority

2) Schedule the higher marked priority