How can I do congestion control for a UDP protocol?

后端 未结 5 1397
深忆病人
深忆病人 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:20

    Flow control is an inherently difficult problem because all you really know is when you sent a packet and when you received a packet. Things like latency, loss, and even speed are all statistics that you have to calculate and interpret.

    The following article discusses these statistics and their meaning in depth: DEI Tech Note 0021: Loss, Latency, and Speed

    Finding a good solution has been the subject of much research and much commercial endeavor. Different algorithms (TCP, UDT, Multipurpose Transaction Protocol, etc.) use different methods and make different assumptions, all trying to figure out what is going on in the network based on the very sparse data available.

提交回复
热议问题