apache / nuttx

Apache NuttX is a mature, real-time embedded operating system (RTOS)
https://nuttx.apache.org/
Apache License 2.0
2.87k stars 1.17k forks source link

TCP retransmition is not correct #13161

Open ChenChuang-23 opened 2 months ago

ChenChuang-23 commented 2 months ago

Description / Steps to reproduce the issue

tcp retransmission has an exponential regression mechanism. For example, if no ack is received for 1.5 seconds, the first retransmission will be sent. If no ack is received, the second retransmission will be generated after 3s. If an ack is received, the exponential retreat timer resets. But timing doesn't work that way. After receiving an ack for the first retransmission, no reset was performed. The tcp interval becomes larger when the subsequent transmission becomes retransmission.

On which OS does this issue occur?

[Linux]

What is the version of your OS?

ubuntu22.04

NuttX Version

unkown

Issue Architecture

[arm]

Issue Area

[Networking]

Verification

acassis commented 2 months ago

@wengzhe please take a look

wengzhe commented 2 months ago

@Meissi-jian Do you have any idea about this? I saw you were modifying retransmission these days https://github.com/apache/nuttx/pull/13120