Bug 2256

Summary: TcpTxBuffer should be able to tell BytesInFlight
Product: ns-3 Reporter: natale.patriciello
Component: tcpAssignee: natale.patriciello
Status: RESOLVED FIXED    
Severity: critical CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: PC   
OS: Linux   

Description natale.patriciello 2016-01-09 12:41:22 UTC
Forked from bug 2247.

Some history:

TcpTxBuffer returns chunks of (previously stored) data, and can do that until the data is discarded through a call to DiscardUpTo. Until now, TcpSocketBase was the class which dealed with sequence number calculation. However, TcpTxBuffer could help in telling the amount of bytes in flight, e.g. the bytes requested by TcpSocketBase, but not yet discarded.
Comment 1 natale.patriciello 2016-01-09 12:43:05 UTC
The proposed patch is here:

https://github.com/kronat/ns-3-dev-git/commit/f8e8b063d1e76b5d532df9d7a84fc591ea6198b7

and this is the test case: 

https://github.com/kronat/ns-3-dev-git/commit/e7f2ca469357c492ff2811d953c4fb4b122eb1e0

This allow to use, in the future, the TcpTxBuffer as a scoreboard for saving important information (as packet status, or SACK information).

Please, test if you can!

Nat
Comment 2 natale.patriciello 2016-05-22 16:20:49 UTC
Updated: 

https://codereview.appspot.com/299130043/
Comment 3 natale.patriciello 2017-02-03 08:04:37 UTC
fixed in 12634:93a74b47e438