TCP/IP Note 3. Transport Layer (3) -- TCP timeout retransmission Algorithm

Source: Internet
Author: User

TCP/IP Note 3. Transport Layer (3) -- TCP timeout retransmission algorithm TCP sets a timer for each packet segment sent by TCP. As long as the retransmission time set by the timer is reached but no confirmation has been received, it is necessary to re-transmit this packet segment 1. average round-trip latency RTT round-trip latency: the time when a packet segment is sent and the time when the corresponding validation packet segment is received. The difference between the two time ranges is the average round-trip latency of the packet segment. new_RTTs = a * (old_RTTs) + (1-a) * (New RTT sample) 0 <= a <1a: (1) If a is very close to 1, it indicates that the newly calculated average round-trip latency RTT is not much changed compared with the original value, the new round-trip latency sample has little impact (the RTT value is updated slowly ). (2) If a is selected, it means that the average round-trip latency of the weighted round-trip RTT is greatly affected by the new round-trip latency sample (the RTT value is updated quickly ). (3) The typical a value is 7/82. timeout retransmission RTO (retransmission time-out) RTO = RTTs + 4 * RTTdnew_RTTd = (1-B) * old_RTTd + B * | RTTs-RTT | B :( 1) B <1 (2) Recommended Value: B = 0.25

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.