[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Bug in tcp-full (timestamp option



hi,

in case the timestamp option is used with the TcpFull agent the
t_backoff_ counter is not
set back to 1, when a new ack is received.

I changed our local code to:

diff -u ns-2.1b7/tcp-full.cc local
--- org/tcp-full.cc     Fri Sep  1 05:04:07 2000+++ local/tcp-full.cc   
Tue Jan 23 22:44:51 2001
@@ -811,6 +811,7 @@
         hdr_flags *fh = hdr_flags::access(pkt);
         if (!fh->no_ts_) {
                 if (ts_option_) {
+                                                                      
t_backoff_ = 1;
                        recent_age_ = now();
                        recent_ = tcph->ts();
                         rtt_update(now() - tcph->ts_echo()); 

Best regards,

-- 
------------------------------------------------------------------------
Morten Schl�ger                              Tel.: ++49 (030) 314-23834
Technical University Berlin                   Fax.: ++49 (030) 314-23818
Telecommunication Networks Group (TKN)            [email protected]
Sekr. FT 5-2/Einsteinufer 25    
10587 Berlin, Germany