Feedback-based Speed Control Algorithm for UDP Transmission

Source: Internet
Author: User

Recently, network programming has been developed for several days, mainly based on UDP, to achieve priority, packet sorting, splitting and restructuring, retransmission, speed control, and other functions.

The speed control mechanism is similar to the negative feedback mechanism in the circuit. Unlike UDP, only some of them require reliable transmission, and most of the packets are unreliable. Therefore, mechanisms like TCP speed and slow start are not implemented. In actual implementation, the receiving end uses statistics such as the actual receiving speed to be regularly fed back to the sending end to achieve the control speed. Set an appropriate initial speed. If the packet loss rate is low, the transmission speed is faster. If the packet loss rate exceeds the permitted range, the transmission speed is reduced.

In actual tests, generally, the transmission speed can be stable near the upper limit of the network capability, and the average value can be close to 90% ~ of the network capability ~ 95%. The additional load is the regular speed feedback. The feedback period can be determined based on the actual situation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.