How can I do congestion control for a UDP protocol?

后端 未结 5 1491
深忆病人
深忆病人 2021-02-05 17:29

I have a custom UDP protocol with multiple senders/receivers designed to send large files around as fast as possible. It is client/server based.

How can I detect conge

5条回答
  •  没有蜡笔的小新
    2021-02-05 18:24

    Latency is a good way to detect congestion. If your latency starts going up, then you should probably slow down. A lost packet is the equivalent to latency = infinity. But you can never be sure if a packet was lost or is just very slow, so you should have a timeout to "detect" lost packets.

提交回复
热议问题