Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Feb 2010 11:11:50 -0500
From:      Karim Fodil-Lemelin <kfl@xiplink.com>
To:        freebsd-net@freebsd.org
Subject:   Different SYN retransmit backoff between active and passive connections
Message-ID:  <4B7037C6.7000308@xiplink.com>

next in thread | raw e-mail | index | archive | help
Greetings,

When doing an active connect and assuming that SYN packets are lost. The 
next retransmit timeout will trigger retransmissions of the SYN 
according to this code (in tcp_timer_rexmt):

rexmt = TCP_REXMTVAL(tp) * tcp_syn_backoff[tp->t_rxtshift];


Now, when doing passive connections the syncache handles sending the 
SYN-ACK and assuming again the SYN-ACK is lost the next retransmit 
timeout will be calculated using this code:

sc->sc_rxttime = ticks + TCPTV_RTOBASE * (tcp_backoff[sc->sc_rxmits]);

Is there a reason why FreeBSD is not using the tcp_syn_backoff array in 
syncache_timeout?

Regards,

Karim.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B7037C6.7000308>