TCP Vegas implementation in NS3

358 views
Skip to first unread message

Ashwin

unread,
Jun 14, 2010, 7:25:25 AM6/14/10
to ns-3-users
Hi,

I want to implement TCP Vegas in NS3. I found the implementation code
already uploaded on NS3-users google group i.e. over here. The
implementation code seems perfect.
These files are
1. tcp-socket-impl.cc.diff
2. tcp-socket-impl.h.diff
I changed tcp-socket-impl.cc and tcp-socket-impl.h accordingly in the
NS3 folder. It builds up successfully. But when I run any simulation
for TCP it gives error. It is giving error for all example files
( exmaples/tutorial/fifth.cc etc..) I could not understand why it is
giving an error. If anyone is facing the same problem or have solved
the issue, please let me know. Any kind of suggestion will be very
helpful.


Regards,
Ashwin


Following is the error :
Waf: Entering directory `/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/
ns-3.8/build'
Waf: Leaving directory `/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/
ns-3.8/build'
'build' finished successfully (0.649s)
*** glibc detected *** /home/ashwin/Desktop/NS3.8/ns-allinone-3.8/
ns-3.8/build/debug/examples/tcp/tcp-large-transfer: free(): invalid
next size (fast): 0x08939118 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0x4e3bff1]
/lib/tls/i686/cmov/libc.so.6[0x4e3d6f2]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x4e4079d]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0x87046f1]
/usr/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d)
[0x86e235d]
/usr/lib/libstdc++.so.
6(_ZNSt19basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev+0xb5)
[0x86e03f5]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/
libns3.so(_ZNK3ns312ArrayMatcher14StringToUint32ESsPj+0xa3)[0xecf2db]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/
libns3.so(_ZNK3ns312ArrayMatcher7MatchesEj+0xdf6)[0xecee86]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/
libns3.so(_ZN3ns38Resolver14DoArrayResolveESsRKNS_17ObjectVectorValueE
+0x2c4)[0xed18c0]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/
libns3.so(_ZN3ns38Resolver9DoResolveESsNS_3PtrINS_6ObjectEEE+0x196f)
[0xed1493]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/
libns3.so(_ZN3ns38Resolver7ResolveENS_3PtrINS_6ObjectEEE+0x54)
[0xecf72c]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/
libns3.so(_ZN3ns310ConfigImpl13LookupMatchesESs+0x284)[0xed2d1c]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/
libns3.so(_ZN3ns310ConfigImpl21ConnectWithoutContextESsRKNS_12CallbackBaseE
+0xac)[0xed20d2]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/
libns3.so(_ZN3ns36Config21ConnectWithoutContextESsRKNS_12CallbackBaseE
+0x41)[0xed320f]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/examples/
tcp/tcp-large-transfer[0x804e4bb]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x4de7b56]
/home/ashwin/Desktop/NS3.8/ns-allinone-3.8/ns-3.8/build/debug/examples/
tcp/tcp-large-transfer[0x804dad1]
======= Memory map: ========
00110000-00117000 r-xp 00000000 08:05 1262482 /lib/tls/i686/cmov/
librt-2.10.1.so
00117000-00118000 r--p 00006000 08:05 1262482 /lib/tls/i686/cmov/
librt-2.10.1.so
00118000-00119000 rw-p 00007000 08:05 1262482 /lib/tls/i686/cmov/
librt-2.10.1.so
00119000-00134000 r-xp 00000000 08:05 760 /usr/lib/
libatk-1.0.so.0.2809.1
00134000-00135000 r--p 0001b000 08:05 760 /usr/lib/
libatk-1.0.so.0.2809.1
00135000-00136000 rw-p 0001c000 08:05 760 /usr/lib/
libatk-1.0.so.0.2809.1
00136000-0015d000 r-xp 00000000 08:05 2555 /usr/lib/
libpangoft2-1.0.so.0.2600.0
0015d000-0015e000 r--p 00027000 08:05 2555 /usr/lib/
libpangoft2-1.0.so.0.2600.0
0015e000-0015f000 rw-p 00028000 08:05 2555 /usr/lib/
libpangoft2-1.0.so.0.2600.0
0015f000-00177000 r-xp 00000000 08:05 3203 /usr/lib/
libgdk_pixbuf-2.0.so.0.1800.3
00177000-00178000 r--p 00017000 08:05 3203 /usr/lib/
libgdk_pixbuf-2.0.so.0.1800.3
00178000-00179000 rw-p 00018000 08:05 3203 /usr/lib/
libgdk_pixbuf-2.0.so.0.1800.3
00179000-00184000 r-xp 00000000 08:05 2554 /usr/lib/
libpangocairo-1.0.so.0.2600.0
00184000-00185000 r--p 0000a000 08:05 2554 /usr/lib/
libpangocairo-1.0.so.0.2600.0
00185000-00186000 rw-p 0000b000 08:05 2554 /usr/lib/
libpangocairo-1.0.so.0.2600.0
00186000-00219000 r-xp 00000000 08:05 758 /usr/lib/
libgio-2.0.so.0.2200.2
00219000-0021a000 r--p 00092000 08:05 758 /usr/lib/
libgio-2.0.so.0.2200.2
0021a000-0021b000 rw-p 00093000 08:05 758 /usr/lib/
libgio-2.0.so.0.2200.2
0021b000-0021c000 rw-p 00000000 00:00 0
0021c000-00247000 r-xp 00000000 08:05 7865 /usr/lib/
libfontconfig.so.1.3.0
00247000-00248000 r--p 0002a000 08:05 7865 /usr/lib/
libfontconfig.so.1.3.0
00248000-00249000 rw-p 0002b000 08:05 7865 /usr/lib/
libfontconfig.so.1.3.0
00249000-0024c000 r-xp 00000000 08:05 756 /usr/lib/
libgmodule-2.0.so.0.2200.2
0024c000-0024d000 r--p 00002000 08:05 756 /usr/lib/
libgmodule-2.0.so.0.2200.2
0024d000-0024e000 rw-p 00003000 08:05 756 /usr/lib/
libgmodule-2.0.so.0.2200.2
0024f000-002e1000 r-xp 00000000 08:05 3202 /usr/lib/libgdk-
x11-2.0.so.0.1800.3
002e1000-002e3000 r--p 00092000 08:05 3202 /usr/lib/libgdk-
x11-2.0.so.0.1800.3
002e3000-002e4000 rw-p 00094000 08:05 3202 /usr/lib/libgdk-
x11-2.0.so.0.1800.3
002e4000-00368000 r-xp 00000000 08:05 2388 /usr/lib/libcairo.so.
2.10800.8
00368000-0036a000 r--p 00083000 08:05 2388 /usr/lib/libcairo.so.
2.10800.8
0036a000-0036b000 rw-p 00085000 08:05 2388 /usr/lib/libcairo.so.
2.10800.8
0036b000-003b1000 r-xp 00000000 08:05 2553 /usr/lib/
libpango-1.0.so.0.2600.0
003b1000-003b2000 r--p 00045000 08:05 2553 /usr/lib/
libpango-1.0.so.0.2600.0
003b2000-003b3000 rw-p 00046000 08:05 2553 /usr/lib/
libpango-1.0.so.0.2600.0
003b3000-003ef000 r-xp 00000000 08:05 755 /usr/lib/
libgobject-2.0.so.0.2200.2
003ef000-003f0000 r--p 0003b000 08:05 755 /usr/lib/
libgobject-2.0.so.0.2200.2
003f0000-003f1000 rw-p 0003c000 08:05 755 /usr/lib/
libgobject-2.0.so.0.2200.2
003f1000-003f3000 r-xp 00000000 08:05 7064 /usr/lib/
libXcomposite.so.1.0.0
003f3000-003f4000 r--p 00001000 08:05 7064 /usr/lib/
libXcomposite.so.1.0.0
003f4000-003f5000 rw-p 00002000 08:05 7064 /usr/lib/
libXcomposite.so.1.0.0
003f5000-003f7000 r-xp 00000000 08:05 7611 /usr/lib/
libXdamage.so.1.1.0
003f7000-003f8000 rw-p 00001000 08:05 7611 /usr/lib/
libXdamage.so.1.1.0
003f8000-003fc000 r-xp 00000000 08:05 3678 /usr/lib/libXfixes.so.
3.1.0
003fc000-003fd000 r--p 00003000 08:05 3678 /usr/lib/libXfixes.so.
3.1.0
003fd000-003fe000 rw-p 00004000 08:05 3678 /usr/lib/libXfixes.so.
3.1.0
003fe000-00406000 r-xp 00000000 08:05 2386 /usr/lib/
libXrender.so.1.3.0
00406000-00407000 r--p 00007000 08:05 2386 /usr/lib/
libXrender.so.1.3.0
00407000-00408000 rw-p 00008000 08:05 2386 /usr/lib/
libXrender.so.1.3.0
00409000-0040a000 r-xp 00000000 00:00 0 [vdso]
0040a000-007c2000 r-xp 00000000 08:05 3201 /usr/lib/libgtk-
x11-2.0.so.0.1800.3
007c2000-007c3000 ---p 003b8000 08:05 3201 /usr/lib/libgtk-
x11-2.0.so.0.1800.3
007c3000-007c7000 r--p 003b8000 08:05 3201 /usr/lib/libgtk-
x11-2.0.so.0.1800.3
007c7000-007c9000 rw-p 003bc000 08:05 3201 /usr/lib/libgtk-
x11-2.0.so.0.1800.3
007c9000-007cb000 rw-p 00000000 00:00 0
007cb000-007ef000 r-xp 00000000 08:05 1262470 /lib/tls/i686/cmov/
libm-2.10.1.so
007ef000-007f0000 r--p 00023000 08:05 1262470 /lib/tls/i686/cmov/
libm-2.10.1.so
007f0000-007f1000 rw-p 00024000 08:05 1262470 /lib/tls/i686/cmov/
libm-2.10.1.so
007f1000-0080d000 r-xp 00000000 08:05 1245190 /lib/libgcc_s.so.1
0080d000-0080e000 r--p 0001b000 08:05 1245190 /lib/libgcc_s.so.1
0080e000-0080f000 rw-p 0001c000 08:05 1245190 /lib/libgcc_s.so.1
0080f000-00811000 r-xp 00000000 08:05 7625 /usr/lib/
libXinerama.so.1.0.0
00811000-00812000 rw-p 00001000 08:05 7625 /usr/lib/
libXinerama.so.1.0.0
00813000-0082e000 r-xp 00000000 08:05 1245198 /lib/ld-2.10.1.so
0082e000-0082f000 r--p 0001a000 08:05 1245198 /lib/ld-2.10.1.so
0082f000-00830000 rw-p 0001b000 08:05 1245198 /lib/ld-2.10.1.so
00830000-01a97000 r-xp 00000000 08:05 338437 /home/ashwin/Desktop/
NS3.8/ns-allinone-3.8/ns-3.8/build/debug/libns3.so
01a97000-01abc000 r--p 01267000 08:05 338437 /home/ashwin/Desktop/
NS3.8/ns-allinone-3.8/ns-3.8/build/debug/libns3.so
01abc000-01af0000 rw-p 0128c000 08:05 338437 /home/ashwin/Desktop/
NS3.8/ns-allinone-3.8/ns-3.8/build/debug/libns3.so
01af0000-01af4000 rw-p 00000000 00:00 0
01af4000-01b6e000 r-xp 00000000 08:05 777 /usr/lib/
libfreetype.so.6.3.20
01b6e000-01b72000 r--p 00079000 08:05 777 /usr/lib/
libfreetype.so.6.3.20
01b72000-01b73000 rw-p 0007d000 08:05 777 /usr/lib/
libfreetype.so.6.3.20
01b73000-01c9d000 r-xp 00000000 08:05 787 /usr/lib/libX11.so.
6.2.0
01c9d000-01c9e000 ---p 0012a000 08:05 787 /usr/lib/libX11.so.
6.2.0
01c9e000-01c9f000 r--p 0012a000 08:05 787 /usr/lib/libX11.so.
6.2.0
01c9f000-01ca1000 rw-p 0012b000 08:05 787 /usr/lib/libX11.so.
6.2.0
01ca1000-01ca2000 rw-p 00000000 00:00 0
01ca2000-01ca4000 r-xp 00000000 08:05 1262469 /lib/tls/i686/cmov/
libdl-2.10.1.so
01ca4000-01ca5000 r--p 00001000 08:05 1262469 /lib/tls/i686/cmov/
libdl-2.10.1.so
01ca5000-01ca6000 rw-p 00002000 08:05 1262469 /lib/tls/i686/cmov/
libdl-2.10.1.so
01ca6000-01cb6000 r-xp 00000000 08:05 1262481 /lib/tls/i686/cmov/
libresolv-2.10.1.soCommand ['/home/ashwin/Desktop/NS3.8/ns-
allinone-3.8/ns-3.8/build/debug/examples/tcp/tcp-large-transfer']
terminated with signal SIGIOT. Run it under a debugger to get more
information (./waf --run <program> --command-template="gdb --args %s
<args>").

Juan Pablo Poujade

unread,
Jun 14, 2010, 9:53:08 AM6/14/10
to ns-3-...@googlegroups.com
Hi Ashwin, 

I believe I made that implementation of TCP Vegas. Although  I haven't had any problems when I used them in my simulations, you should take into account that those files are not the best way to implement a TCP version and integrate it to NS-3. They are just a few modifications on the native TCP implementation (Tahoe)

Let me know if I can help you.

Juan Pablo Poujade


2010/6/14 Ashwin <jiwane...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


Ashwin

unread,
Jun 15, 2010, 5:24:58 AM6/15/10
to ns-3-users
Hi Juan,

Thank you for your reply. I re-edited native TCP Tahoe implementation
with your modifications, but I am still getting the same error. It is
not working for any simulation. It would be helpful if you could give
me those edited files to see where and what I am doing wrong.

Also, have you separately implemented TCP-Vegas in NS3?

Regards,
Ashwin

On Jun 14, 6:53 pm, Juan Pablo Poujade <jppouj...@gmail.com> wrote:
> Hi Ashwin,
>
> I believe I made that implementation of TCP Vegas. Although  I haven't had
> any problems when I used them in my simulations, you should take into
> account that those files are not the best way to implement a TCP version and
> integrate it to NS-3. They are just a few modifications on the native TCP
> implementation (Tahoe)
>
> Let me know if I can help you.
>
> Juan Pablo Poujade
>
> 2010/6/14 Ashwin <jiwaneash...@gmail.com>
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages