anchao commented on PR #6562: URL: https://github.com/apache/incubator-nuttx/pull/6562#issuecomment-1180223620
> > > I am sorry I do not understand what do you mean about complaining. > > > > > > I have no idea, here are tcp rto implement of LWIP for you reference: > > Do you mean it implements retransmitting everything from the beginning each time the same as the original algorithm in NuttX? There are 3 implementations of LWIP, handle with different scenarios respectively: RTO: Requeue all unacked segments for retransmission ``` /** * Requeue all unacked segments for retransmission * * Called by tcp_slowtmr() for slow retransmission. * * @param pcb the tcp_pcb for which to re-enqueue all unacked segments */ void tcp_rexmit_rto_commit(struct tcp_pcb *pcb) ``` fast retransmit: Requeue the first unacked segment for retransmission ``` /** * Requeue the first unacked segment for retransmission * * Called by tcp_receive() for fast retransmit. * * @param pcb the tcp_pcb for which to retransmit the first unacked segment */ err_t tcp_rexmit(struct tcp_pcb *pcb) ``` three dupacks received: andle retransmission after three dupacks received ``` /** * Handle retransmission after three dupacks received * * @param pcb the tcp_pcb for which to retransmit the first unacked segment */ void tcp_rexmit_fast(struct tcp_pcb *pcb) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org