Re: tcp: rearm RTO timer does not comply with RFC6298

2021-01-22 Thread Pengcheng Yang
On Thu, Jan 21, 2021 at 11:51 PM Neal Cardwell wrote: > > On Thu, Jan 21, 2021 at 9:05 AM Pengcheng Yang wrote: > > > > On Thu, Jan 21, 2021 at 2:59 AM Yuchung Cheng wrote: > > > > > > On Wed, Jan 20, 2021 at 6:59 AM Neal Cardwell > > > wrote: > > > > > > > > On Wed, Jan 20, 2021 at 5:50 AM P

Re: tcp: rearm RTO timer does not comply with RFC6298

2021-01-21 Thread Pengcheng Yang
On Thu, Jan 21, 2021 at 2:59 AM Yuchung Cheng wrote: > > On Wed, Jan 20, 2021 at 6:59 AM Neal Cardwell wrote: > > > > On Wed, Jan 20, 2021 at 5:50 AM Pengcheng Yang wrote: > > > > > > hi, > > > > > > I have a doubt about tcp_rearm_rto(). > > > > > > Early TCP always rearm the RTO timer to NOW+R

tcp: rearm RTO timer does not comply with RFC6298

2021-01-20 Thread Pengcheng Yang
hi, I have a doubt about tcp_rearm_rto(). Early TCP always rearm the RTO timer to NOW+RTO when it receives an ACK that acknowledges new data. Referring to RFC6298 SECTION 5.3: "When an ACK is received that acknowledges new data, restart the retransmission timer so that it will expire after RTO s