Bug 2362 - TCP closes the connection once it reaches the maximum value of the sequence number field
TCP closes the connection once it reaches the maximum value of the sequence n...
Status: NEW
Product: ns-3
Classification: Unclassified
Component: internet
ns-3.25
PC Linux
: P5 enhancement
Assigned To: Tommaso Pecorella
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-01 13:02 EDT by Hany
Modified: 2016-04-01 13:02 EDT (History)
2 users (show)

See Also:


Attachments
Script file to demonstrate the problem (6.43 KB, text/x-c++src)
2016-04-01 13:02 EDT, Hany
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hany 2016-04-01 13:02:10 EDT
Created attachment 2363 [details]
Script file to demonstrate the problem

Hello,

I noticed that TCP sets its FIN flag once it reaches the maximum value of the sequence number (2^32-1) instead of wrapping back again to 0 and keeping the TCP session alive. 

The problem can be demonstrated in the attached example where I have two static nodes connected with a P2P Link having a small propagation delay of 3ns and onoff application with a high data rate of 4Gbps. After 18 seconds of simulation time, the TCP sender reaches the upper bound of its sequence number and closes the connection. Here is the command line to run the script:

./waf --run "test_tcp_p2p --dataRate=4Gbps --applicationType=onoff --simulationTime=100"