#17 TcpAgent t_backoff_ fix

closed-fixed
nobody
ns-2 (14)
1
2010-04-02
2010-02-12
No

During long simulations (30-60 minutes), ns would sometimes abort with the message "TcpAgent: negative RTO!". The problem was that TcpAgent::t_backoff_ was overflowing and becoming negative, since it was doubled each time a backoff was triggered but maxrto_ prevented the time between doublings from growing beyond 60 seconds. This patch causes t_backoff_ not to be increased when a further increase would have no effect on rtt_timeout(). The behavior of TcpAgent doesn't change, except that now it doesn't crash during very lengthy backoff.

Discussion

  • Michele Weigle

    Michele Weigle - 2010-02-12

    TcpAgent t_backoff_

     
  • Michele Weigle

    Michele Weigle - 2010-02-12
    • labels: --> ns-2
     
  • Tom Henderson

    Tom Henderson - 2010-04-02
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks