首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TCP -当RTO太小时会发生什么?

TCP -当RTO太小时会发生什么?
EN

Stack Overflow用户
提问于 2019-02-27 08:16:57
回答 1查看 134关注 0票数 0

我正在研究TCP,我对此有疑问。假设客户端拥塞太快,服务器在RTO到期之前永远不会得到ACK。所以服务器会重新传输很多不必要的数据段。服务器如何确认这一点并将RTO设置为更大的值?

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2019-02-27 10:39:43

https://tools.ietf.org/rfc/rfc793.txt

“重新传输超时过程示例

代码语言:javascript
复制
  Measure the elapsed time between sending a data octet with a
  particular sequence number and receiving an acknowledgment that
  covers that sequence number (segments sent do not have to match
  segments received).  This measured elapsed time is the Round Trip
  Time (RTT).  Next compute a Smoothed Round Trip Time (SRTT) as:

    SRTT = ( ALPHA * SRTT ) + ((1-ALPHA) * RTT)

  and based on this, compute the retransmission timeout (RTO) as:

    RTO = min[UBOUND,max[LBOUND,(BETA*SRTT)]]

  where UBOUND is an upper bound on the timeout (e.g., 1 minute),
  LBOUND is a lower bound on the timeout (e.g., 1 second), ALPHA is
  a smoothing factor (e.g., .8 to .9), and BETA is a delay variance
  factor (e.g., 1.3 to 2.0).

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54896179

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档