Linux: network: tcp:tcp_retries2 如果TCP出现重传,什么时候做reset?

tcp_retries2 - INTEGER
This value influences the timeout of an alive TCP connection, when RTO retransmissions remain unacknowledged. Given a value of N, a hypothetical TCP connection following exponential backoff with an initial RTO of TCP_RTO_MIN would retransmit N times before killing the connection at the (N+1)th RTO.
The default value of 15 yields a hypothetical timeout of 924.6 seconds and is a lower bound for the effective timeout. TCP will effectively time out at the first RTO which exceeds the hypothetical timeout.
RFC 1122 recommends at least 100 seconds for the timeout, which corresponds to a value of at least 8.

这里是说,当RTO重传一直收不到回应,这个参数会影响一个TCP的超时时间。这个参数是一个次数,当然重传的次数多了就是超时时间长,如果重传次数少了,超时时间就短。理论上讲,如果是默认值15次,可能是925.6秒(15分钟)之后才会超时,超时才会导致TCP断链。而RFC1122里,建议是至少100秒超时,对应8次。

最近遇到的一个问题,网络配置问题,可能导致RTT非常的大,即使再大,可能也超不过这个15分钟,所以也不会导致断链重连。
在这里插入图片描述

相关推荐

  1. TCP机制总结

    2023-12-20 05:28:02       32 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-20 05:28:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-20 05:28:02       100 阅读
  3. 在Django里面运行非项目文件

    2023-12-20 05:28:02       82 阅读
  4. Python语言-面向对象

    2023-12-20 05:28:02       91 阅读

热门阅读

  1. 【算法小题 go程序版】递归练习 -- 猴子吃桃问题

    2023-12-20 05:28:02       57 阅读
  2. 链式表的实现

    2023-12-20 05:28:02       53 阅读
  3. Docker使用7-Use Docker Compose

    2023-12-20 05:28:02       83 阅读
  4. 【嵌入式面试】嵌入式经典面试题汇总(C语言)

    2023-12-20 05:28:02       48 阅读
  5. Python基础dict字典定义与函数

    2023-12-20 05:28:02       60 阅读
  6. 【SpringBoot实战】基于MybatisPlus实现基本增删改查

    2023-12-20 05:28:02       71 阅读
  7. 【安全】audispd调研

    2023-12-20 05:28:02       60 阅读
  8. C#连接数据库40错误

    2023-12-20 05:28:02       55 阅读