congestion control (tcp) Flashcards

1
Q

what is congestion control

A
  • ensure the routers and links dont get overwhelmed with too much data
  • provide fair amount of resources to each user
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

2 types of congestion control

A

1) reservation based:
- end host asks network for capacity
- routers along flow path get allocated resources
- resource is not availible ->flow is rejected

2) feedback based:
- end host does not ask for capacity and just starts sending
- gets feedback from network and adjusts send rate

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

what is congestion window

A
  • to avoid congestion
  • increases slowly
  • decreases fast
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how to calc the effective window

A

eff win = (max win - (last byte sent - last byte acked))

basicly the max window minus the amount of data in flight

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

AMID

A
  • algo to inc dec the congestion window
  • inc win by 1 for each RTT
  • divide win by 2 when timeout occures or packet is lost
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how to tell if a packet is lost

A

supose packet is lost, and receiver gets the next packet. it still expects the lost one so it sends another ACK for it. once the sender gets 3 dup acks it re transmits the packet

or if the sender waits too long for an ack it will resend the packet.

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