How to simulate TCP-Reno ,TCP-Tahoe (Congestion control)?

894 views
Skip to first unread message

wic shil

unread,
Jul 14, 2014, 12:58:16 PM7/14/14
to ns-3-...@googlegroups.com
Hello all members,
i'm new in network simulator (ns-3),i have tried some basic  c++ scripts for simulation like first.cc with success (i mean ns3 was installed successfully) .
The main problem is how to simulate some congestion control protocols like TCP-Reno,TCp-Tahoe,....:
i tried to use tcp-reno.cc by moving it to scratch folder and run it using Waf usng this command "./waf --run tcp-reno
" but i'm having errors:

../scratch/tcp-reno.cc:24:22: fatal error: tcp-reno.h: No such file or directory
compilation terminated.
Waf: Leaving directory `/ns3/ns-3-allinone/ns-3-dev/build'
Build failed
 -> task in 'tcp-reno' failed (exit status 1): 
{task 165437132: cxx tcp-reno.cc -> tcp-reno.cc.3.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I.', '-I..', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-I/usr/include/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', '../scratch/tcp-reno.cc', '-c', '-o', 'scratch/tcp-reno.cc.3.o']




please i need your help.
and thanks in advance..

Tom Henderson

unread,
Jul 14, 2014, 1:30:00 PM7/14/14
to ns-3-...@googlegroups.com
On 07/14/2014 09:58 AM, wic shil wrote:
> Hello all members,
> i'm new in network simulator (ns-3),i have tried some basic c++ scripts
> for simulation like first.cc with success (i mean ns3 was installed
> successfully) .
> The main problem is how to simulate some congestion control protocols
> like TCP-Reno,TCp-Tahoe,....:
> i tried to use tcp-reno.cc by moving it to scratch folder and run it
> using Waf usng this command "./waf --run tcp-reno
> " but i'm having errors:
>
> ../scratch/tcp-reno.cc:24:22: fatal error: tcp-reno.h: No such file or
> directory
> compilation terminated.

Moving tcp-reno.cc to scratch/ will not work; scratch/ is intended for
user programs, while tcp-reno.cc is a model that is designed to live in
the src/internet module.

there is an example program that allows users to experiment with TCP
variants. It can be found in examples/tcp/tcp-variants-comparison.cc.

./waf --run "tcp-variants-comparison --help"

will show you the command line options to control the configuration.

- Tom

wic shil

unread,
Jul 14, 2014, 9:39:08 PM7/14/14
to ns-3-...@googlegroups.com
Thanks Tom.
Message has been deleted

sobiyam...@gmail.com

unread,
Apr 1, 2018, 5:03:11 AM4/1/18
to ns-3-users
Hello all members,
I am having the same problem please can you suggest how you solved it..please it's urgent.
Reply all
Reply to author
Forward
0 new messages