LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2012, 05:01 AM   #1
azsuselinux
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Rep: Reputation: Disabled
TCP-freeze patch installation problem in ns2- 2.34


hello,

my ns2 is working fine but im facing problem in installing tcp-freeze patch in ns2 ,i have used command :
$ ./configure --with-ns=/usr/src/ns-2.34
or
$ ./configure --with-ns-allinone=/usr/src/ns-allinone-2.34

but getting error : configure:error:ns-allinone path /usr/src/ns-allinone-2.34 is not valid

help needed!

thanks
 
Old 06-12-2012, 06:58 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

nsfreezetcp-1.0.tar.gz http://www.nicta.com.au/people/mehanio/freezetcp
The file README :
Quote:
.. the path to the ns-2 source tree, e.g.
$ ./configure --with-ns=/usr/src/ns-2.33
The example ( e.g. ) is only valid with an installed ns-allinone-2.34 in /usr/src/.
( Not a good example, as all ns2 usually should be located in /home/<user-name> ).


Another example. It's working !
cd nsfreezetcp-1.0/ && tar xvf ns-allinone-2.34.tar.gz
cd ns-allinone-2.34/ && ./install
cd ../nsfreezetcp-1.0/ &&
./configure \
--with-ns-allinone=ns-allinone-2.34/ --with-ns=ns-allinone-2.34/ns-2.34/ \
--with-tcl=ns-allinone-2.34/tcl8.4.18 --with-tk=ns-allinone-2.34/tk8.4.18 \
--with-otcl=ns-allinone-2.34/otcl-1.13/ --with-tclcl=ns-allinone-2.34/tclcl-1.19/


Good luck !

.

Last edited by knudfl; 06-12-2012 at 07:13 AM.
 
Old 08-28-2012, 02:53 AM   #3
azsuselinux
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
thanks knudfl for ur help

i have tried these commands but saying :

configure:error nsallinone path ns-allinone-2.34/ is not valid
 
Old 08-28-2012, 05:09 AM   #4
azsuselinux
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
thanks knudfl for ur help but im still facing problem and error coming is indicated below:

[anum@localhost nsfreezetcp-1.0]$ ./configure \--with-ns-allinone=ns-allinone-2.34/ --with-ns=ns-allinone-2.34/ns-2.34/ \--with-tcl=ns-allinone-2.34/tcl8.4.18 --with-tk=ns-allinone-2.34/tk8.4.18 \--with-otcl=ns-allinone-2.34/otcl-1.13/ --with-tclcl=ns-allinone-2.34/tclcl-1.19/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: error: ns-allinone path ns-allinone-2.34/ is not valid
[anum@localhost nsfreezetcp-1.0]$
 
Old 08-28-2012, 07:15 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Which OS are you using ? ?
Like Ubuntu 10.10, Ubuntu 12.04, Fedora 17, CentOS 6, etc. etc.


Before you start with nsfreezetcp-1.0 :
A lot of "ns-allinone-2.34 headers" are required in nsfreezetcp-1.0/src/.
I have copied all the headers into nsfreezetcp-1.0/src/
and packed a new "nsfreezetcp-1.0-ns234-1.tar.gz" :
https://docs.google.com/open?id=0B7S...FZhVXNESzVsQUU


Ubuntu example ..
Code:
cd nsfreezetcp-1.0/ && tar xvf ns-allinone-2.34.tar.gz && cd ns-allinone-2.34/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install && cd ../nsfreezetcp-1.0/ && ./configure --with-ns-allinone=ns-allinone-2.34/ --with-ns=ns-allinone-2.34/ns-2.34/ --with-tcl=ns-allinone-2.34/tcl8.4.18 --with-tk=ns-allinone-2.34/tk8.4.18 --with-otcl=ns-allinone-2.34/otcl-1.13/ --with-tclcl=ns-allinone-2.34/tclcl-1.19/
make : No errors.

.
 
Old 09-10-2012, 04:59 AM   #6
azsuselinux
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
i have been able to install tcp-freeze patch but if im using it in my tcl file it gvng error at tht line and how to check whether tht patch installed working fine or not ??
 
Old 09-10-2012, 09:28 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #6
Quote:
in my tcl file
Which tcl file ? ?


Testing ns tcp-freeze :
cd nsfreezetcp-1.0/samples/ && ns tcpvsfreeze.tcl
... and wait : The time is set to 1,500 seconds.

Result : A huge trace file, 'out.tr' 1.8 GB !

( I tried changing to 100 in line 52, tcpvsfreeze.tcl, then out.tr is 155 MB.
And : 10 seconds, out.tr is 14.5 MB.)

Using the trace file : 'perl exponential.pl'
.. Will create two output files : link_1_1_0, predict_1_1_0

Other example "perl command" :
perl exponential.pl uptime=1 downtime=1 finish=3000 pred=0 ZWA_ahead=1.50000 NZWA_after=0.0001 seed=1347258208 link_file=link2 predictor_file=predict2

.

Last edited by knudfl; 09-10-2012 at 09:45 AM.
 
Old 09-17-2012, 03:18 PM   #8
azsuselinux
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
im using red hat 5.1.19.6 and ns-2.34

while executing tcpvsfreeze.tcl (file that is in samples file with freeze tcp ) I get the error :

couldn't load file "../src/.libs/libnsfreezetcp.so": ../src/.libs/libnsfreezetcp.so: cannot open shared object file: No such file or directory

and when I give the full path error comes :

couldn't load file "..": /lib64/..: cannot read file data: Is a directory

and in source folder theres no file with extension .so , so I tried with other extensions like .la but still same problem persists
 
Old 09-17-2012, 03:59 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 8

The command 'cat /etc/redhat-release' will reply with version.
( 5.1.19.6 is a nash version.)

And please also show the reply from the command 'uname -m'.
( Replies are i686 for 32bits OS or x86_64 for 64bits OS.)

Are you quite sure that the libraries in ///src/.libs/ were built ?
( .libs/ is a hidden folder.)

Did you do # yum install kernel kernel-devel
.. before building "tcp-freeze" ? And rebooted ?

.
 
1 members found this post helpful.
Old 09-18-2012, 07:40 AM   #10
azsuselinux
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
its Red Hat Enterprise Linux Server release 5.4(Tikanga)

its 64 bits OS(x86_64)

and after running "yum install kernel kernel-devel" reply came :
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package kernel-devel available.
Nothing to do

and how to check that libraries in ///src/.libs were built?
and what is nash version?
 
Old 09-18-2012, 11:22 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 10
Quote:
This system is not registered with RHN.
RHEL 5 is usable with a license / subscription. Else not.

You can migrate Redhat EL 5.4 to the identical free version = CentOS 5.8
http://wiki.centos.org/HowTos/MigrationGuide
§ "Migration an existing system from RHEL5 to CentOS 5"


Checking what's in ///src/.libs : ls -la src/.libs/

.

Last edited by knudfl; 09-18-2012 at 11:25 AM.
 
Old 10-26-2012, 12:30 PM   #12
azsuselinux
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
thanks knudfl for your help.
I have done with tcp freeze installation ,now I want perl file to calculate throughput of trace file which is generated from wireless nodes and they have mobility also .

help needed!
 
Old 10-26-2012, 03:15 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 12

? May be you can use a file like throughput.pl ? Or part of it.
http://stuweb.ee.mtu.edu/~ljialian/C.../throughput.pl

Using : $ perl throughput.pl out.tr 1 > throughput.pl-out
 
Old 11-15-2012, 02:21 AM   #14
azsuselinux
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
knudfl i want to ask that ,im doing simulation of wireless scenario using AODV but im facing problem that wen i link down between node 0 and node 1 and node 0 and node 2 i can still see the packets received by node 1 and two and im using this command :

$ns rtmodel-at 5.000 down $node_(0) $node_(1)
$ns rtmodel-at 7.000 down $node_(0) $node_(2)

im getting the trace file :

r 4.999488714 _1_ AGT --- 670 tcp 1040 [13a 1 0 800] ------- [0:0 1:0 30 1] [335 0] 1 0
s 4.999488714 _1_ AGT --- 672 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [335 0] 0 0
r 4.999488714 _1_ RTR --- 672 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [335 0] 0 0
s 4.999488714 _1_ RTR --- 672 ack 40 [0 0 0 0] ------- [1:0 0:0 30 0] [335 0] 0 0
v 5 link-down 1 0
v 5 link-down 0 1
r 5.001714058 _0_ AGT --- 636 ack 40 [13a 0 1 800] ------- [1:0 0:0 30 0] [317 0] 1 0
s 5.001714058 _0_ AGT --- 673 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [337 0] 0 0
r 5.001714058 _0_ RTR --- 673 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [337 0] 0 0
s 5.001714058 _0_ RTR --- 673 tcp 1040 [0 0 0 0] ------- [0:0 1:0 30 1] [337 0] 0 0
r 5.011719401 _1_ AGT --- 671 tcp 1040 [13a 1 0 800] ------- [0:0 1:0 30 1] [336 0] 1 0
s 5.011719401 _1_ AGT --- 674 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [336 0] 0 0
r 5.011719401 _1_ RTR --- 674 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [336 0] 0 0
s 5.011719401 _1_ RTR --- 674 ack 40 [0 0 0 0] ------- [1:0 0:0 30 0] [336 0] 0 0


r 6.988358019 _1_ RTR --- 1002 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [500 0] 0 0
s 6.988358019 _1_ RTR --- 1002 ack 40 [0 0 0 0] ------- [1:0 0:0 30 0] [500 0] 0 0
r 6.998243810 _1_ AGT --- 1000 tcp 1040 [13a 1 0 800] ------- [0:0 1:0 30 1] [501 0] 1 0
s 6.998243810 _1_ AGT --- 1003 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [501 0] 0 0
r 6.998243810 _1_ RTR --- 1003 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [501 0] 0 0
s 6.998243810 _1_ RTR --- 1003 ack 40 [0 0 0 0] ------- [1:0 0:0 30 0] [501 0] 0 0
v 7 link-down 2 0
v 7 link-down 0 2
r 7.000249154 _0_ AGT --- 969 ack 40 [13a 0 1 800] ------- [1:0 0:0 30 0] [482 0] 1 0
s 7.000249154 _0_ AGT --- 1004 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [502 0] 0 0
r 7.000249154 _0_ RTR --- 1004 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [502 0] 0 0
s 7.000249154 _0_ RTR --- 1004 tcp 1040 [0 0 0 0] ------- [0:0 1:0 30 1] [502 0] 0 0
r 7.002354945 _0_ AGT --- 970 ack 40 [13a 0 1 800] ------- [1:0 0:0 30 0] [483 0] 1 0
s 7.002354945 _0_ AGT --- 1005 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [503 0] 0 0
r 7.002354945 _0_ RTR --- 1005 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [503 0] 0 0
s 7.002354945 _0_ RTR --- 1005 tcp 1040 [0 0 0 0] ------- [0:0 1:0 30 1] [503 0] 0 0
r 7.012300289 _1_ AGT --- 1004 tcp 1040 [13a 1 0 800] ------- [0:0 1:0 30 1] [502 0] 1 0
s 7.012300289 _1_ AGT --- 1006 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [502 0] 0 0
r 7.012300289 _1_ RTR --- 1006 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [502 0] 0 0
s 7.012300289 _1_ RTR --- 1006 ack 40 [0 0 0 0] ------- [1:0 0:0 30 0] [502 0] 0 0



really want help regarding this issue !

Last edited by azsuselinux; 11-16-2012 at 09:32 AM.
 
  


Reply

Tags
ns2, nsfreezetcp, tcp-freeze



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
NS2.26/TCP installation error? japz20 Linux - Newbie 6 01-16-2013 03:27 AM
problem in displaying throughput in crcn patch in ns2 humairaafzal73 Linux - Software 0 02-07-2012 04:37 AM
Question regarding TCP coding and TCP header in ns2 bsyew Linux - Newbie 0 04-13-2011 12:08 PM
problem in installing working NS2 and ATM patch kshitiz Linux - Software 2 03-02-2011 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration