tcp-variants-comparison example throughput

492 views
Skip to first unread message

Farzaneh Maleki

unread,
Mar 4, 2016, 12:43:52 PM3/4/16
to ns-3-users
Hello every one,

I want to compare different congestion control algorithms which are available in ns-3 like Reno, NewReno, Tahoe, etc. and compare their throughput when I change bandwidth. I started to use tcp-variants-comparison example and changing congestion control algorithm and bandwidth. I have 4 pcap files (I use wireShark to open them) and one flow monitor file (almost xml). The point is I dont know how to calculate throughput from these output files. 

May you please guide me to find out how to do it?

Cheers,

Xing Xu

unread,
Mar 5, 2016, 12:41:44 PM3/5/16
to ns-3-users
There are multiple ways. From pcap, you can use wireshark (but I don't use that), captcp, and tcptrace. Personally I'm using captcp and also tshark, e.g.,
tshark -r your_pcap_file -z conv,tcp -q  
gives you TCP throughput.

You can also use captcp to get per second throughput, and plot a figure there, using gnuplot for example:
captcp throughput -s 1 -i -f 1.1 -o one_folder your_pcap_file

I have a question for you too, how do you change TCP variant in NS3? Can you share me the code of doing that?

AChaure

unread,
Apr 2, 2016, 10:35:34 AM4/2/16
to ns-3-users
HI I am also working on transport layer protocols and its good to see you guys working on the same.

I have just started to study the tcp-variants-comparison.cc script. For the graphs which tool is good. Should I go with wireshark?

Thanks a lot.


On Friday, March 4, 2016 at 9:43:52 AM UTC-8, Farzaneh Maleki wrote:

Nat P

unread,
Apr 4, 2016, 6:58:31 AM4/4/16
to ns-3-users


Il giorno sabato 5 marzo 2016 18:41:44 UTC+1, Xing Xu ha scritto:

I have a question for you too, how do you change TCP variant in NS3? Can you share me the code of doing that?

We are currently in the process of thinking an easy interface for doing that. Please comments and partecipate in the following discussion:
https://www.nsnam.org/bugzilla/show_bug.cgi?id=2336

Nat

AChaure

unread,
Apr 7, 2016, 8:33:45 PM4/7/16
to ns-3-users
Well I tried Gnuplot for the fifth.cc file in the examples.

Now I am working on the tcp-large-transfer.cc and tcp-variants-comparison.cc. Have you guys tried those already?

Thank you so much. I will go through the link you have provided.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages