LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   how to implement leach in ns2.34 in fedora13 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/how-to-implement-leach-in-ns2-34-in-fedora13-907076/)

charanya 10-08-2011 04:21 AM

how to implement leach in ns2.34 in fedora13
 
hi

can u please guide me in implementing LEACH in ns2.34 (fedora-13)

please.....

Charanya.

knudfl 10-08-2011 11:15 AM

Welcome to LQ.

# yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

cd ns-allinone-2.34/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ &&
export CC=gcc34 CXX=g++34 && ./install

And LEACH, post # 5 here
http://www.linuxquestions.org/questi...2-34-a-870368/

..

charanya 10-09-2011 01:17 AM

Path problem
 
Thank you for the reply mail..
In the procedure for installing of LEACH

/opt/ns-allinone-2.34/ns-2.34 but my path is cd usr/local/ns-allinone-2.34/ns-2.34/

while proceeding with the step - "leach-setup.sh"

i found some error in Location

charanya 10-09-2011 03:32 AM

problem in Makefile
 
Sorry to disturbe u again

i have done all the steps.. But i was not able to change the makefile due to deny in the permission...

pl guide me in solving the problem..

ButterflyMelissa 10-09-2011 03:42 AM

(answer deleted - oops, I was in the wrong thread...)

jdkaye 10-09-2011 04:09 AM

You left out the "/" at the beginning of "usr/local/ns-allinone-2.34/ns-2.34/" Is that what you mean?
ciao,
jdk

knudfl 10-09-2011 05:12 AM

The MayTamer instructions : Her path is /opt/.
http://www.linuxquestions.org/questi...34-a-870368/#5
If you use /opt/ , do 'su -', for editing the Makefile.



..

charanya 10-09-2011 10:05 AM

NS crash
 
my ns get crashed after "make clean" while trying to implement the Leach on ns2.34(fedora13)

kindly help me..

knudfl 10-09-2011 02:58 PM

1 Attachment(s)
Known issues: There is one: ns-allinone-2.34/ns-2.34/trace/cmu-trace.h

See posts # 29, # 47, # 49 in the "Instuction thread"
http://www.linuxquestions.org/questi...368/page2.html

The correct cmu-trace.h : post #49.
..

charanya 10-09-2011 03:33 PM

error after Make
 
trace/trace.cc: In static member function ‘static int Trace::get_seqno(Packet*)’:
trace/trace.cc:190: error: ‘access’ is not a member of ‘hdr_cmn’
trace/trace.cc:196: error: ‘packet_t’ was not declared in this scope
trace/trace.cc:196: error: expected ‘;’ before ‘t’
trace/trace.cc:200: error: ‘t’ was not declared in this scope
trace/trace.cc:200: error: ‘PT_UDP’ was not declared in this scope
trace/trace.cc:200: error: ‘PT_EXP’ was not declared in this scope
trace/trace.cc:201: error: ‘PT_PARETO’ was not declared in this scope
trace/trace.cc:203: error: ‘PT_RAP_DATA’ was not declared in this scope
trace/trace.cc:203: error: ‘PT_RAP_ACK’ was not declared in this scope
trace/trace.cc:205: error: ‘PT_HTTP’ was not declared in this scope
trace/trace.cc:205: error: ‘PT_FTP’ was not declared in this scope
trace/trace.cc:206: error: ‘PT_XCP’ was not declared in this scope
trace/trace.cc:208: error: ‘PT_TFRC’ was not declared in this scope
trace/trace.cc:210: error: ‘PT_TFRC_ACK’ was not declared in this scope
trace/trace.cc:190: warning: unused variable ‘th’
trace/trace.cc: In member function ‘virtual void Trace::format(int, int, int, Packet*)’:
trace/trace.cc:221: error: ‘access’ is not a member of ‘hdr_cmn’
trace/trace.cc:229: error: ‘packet_t’ was not declared in this scope
trace/trace.cc:229: error: expected ‘;’ before ‘t’
trace/trace.cc:230: error: ‘packet_info’ was not declared in this scope
trace/trace.cc:230: error: ‘t’ was not declared in this scope
trace/trace.cc:290: error: ‘PT_SCTP’ was not declared in this scope
trace/trace.cc: In member function ‘virtual void DequeTrace::recv(Packet*, Handler*)’:
trace/trace.cc:510: error: ‘access’ is not a member of ‘hdr_cmn’
trace/trace.cc:515: error: ‘packet_t’ was not declared in this scope
trace/trace.cc:515: error: expected ‘;’ before ‘t’
trace/trace.cc:516: error: ‘packet_info’ was not declared in this scope
trace/trace.cc:516: error: ‘t’ was not declared in this scope
make: *** [trace/trace.o] Error 1

I get this error while i give "make"

pl help me in clearing this error..

please..

knudfl 10-09-2011 05:39 PM

1 Attachment(s)
Fedora 13 :
gcc --version : 4.4.5 ; g++ --version : 4.4.5 20101112 (Red Hat 4.4.5-2)
Be absolutely sure, that you are using this version.

Suggest : Start from scratch in /home/<name>/ns-allinone-2.34/ .
And use the script "leach-HOME-setup234.sh" : Then all "file changes"
will work automatically. No manual changing Makefile etc. etc.
( Except cmu-trace.h : Use the file from post #9 ).

./configure && make clean && make ; su ; make install && exit && ./test : LEACH works.
..

John VV 10-09-2011 06:08 PM

charanya also be aware that fedora 13 IS PAST it's End Of Life - it is no longer supported
Fedora 13 has NOT had a update in 5 months and NEVER will !

fedora 15 is the current and in a few weeks fedora 16 will be current

it is strongly advised that if you are going to use fedora then you STAY current

fedora releases a new version every 6 months .

charanya 10-10-2011 07:25 AM

thanks a lot knudfl...

ur guidance was soo helpful for me to complete the implementation of leach...

thanks for sparing time for my queries..

:hattip:

ayaan 12-20-2011 05:53 AM

hi
i am using fedora-9 and i want to implement leach protocol in ns2.34 can u plz help me in providing the code and for generating tcl scripts

knudfl 12-20-2011 07:58 AM

Post # 14, @ ayaan : Welcome to LQ.

Code and instructions, as mentioned above in post #7
http://www.linuxquestions.org/questi...34-a-870368/#5 by @MayTamer

And please read all the above posts carefully.
Especially posts #9, #11 : Except the Fedora 13 stuff.


Fedora requirements : # yum install \
libX11-devel libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel \
gcc-c++ compat-gcc-34-c++ make automake autoconf libtool

Good luck.


P.S. : Tcl code is not something, that you generate.
It is plain text : Use and read some examples,
then you will hopefully find out how to write your own example.tcl .
NS2 tcl template http://www.linuxquestions.org/questi...33-a-731678/#2
> http://www.linuxquestions.org/questi...blem-726993/#4
And / or read the tcl documentation : http://www.tcl.tk/doc/
+ http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm

.

anitha.r.u 03-09-2012 03:20 AM

How to install leach in feroda
 
can u guide me how to install leach protocol in fedora. I am in new user in this tool.

knudfl 03-09-2012 03:33 AM

Post # 16, @ anitha.r.u

Your other thread is about ns-2.27. This thread is about ns-2.34 + Fedora.
Just read all the above 15 posts carefully, and you are supposed to succeed.

...... Please ask, if you have specific issues.

.

swtjeeva 09-04-2012 11:30 AM

Quote:

Originally Posted by knudfl (Post 4493194)
Welcome to LQ.

# yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

cd ns-allinone-2.34/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ &&
export CC=gcc34 CXX=g++34 && ./install

And LEACH, post # 5 here
http://www.linuxquestions.org/questi...2-34-a-870368/

..


Am new to linux and ns2.....
Can u pls explain me briefly..,how to execute these commands....???? Pls
"cd ns-allinone-2.34/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ &&
export CC=gcc34 CXX=g++34 && ./install"

knudfl 09-04-2012 12:48 PM

# 18

It's either one command at a time :
1) cd ns-allinone-2.34/tk8.4.18/
2) wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
3) patch -p0 < tk-8.4-lastevent.patch
4) cd ../
5) export CC=gcc34 CXX=g++34
6) ./install

Or : All of it as one command :
Code:

cd ns-allinone-2.34/tk8.4.18/ && wget ftpftp://ftp.swin.edu.au/gentoo-portage/dev-lang/tk/files/tk-8.4-lastevent.patch://ftp.swin.edu.au/gentoo-portage/dev-lang/tk/files/tk-8.4-lastevent.patch && patch -p0 < tk-8.4-lastevent.patch && cd ../ && export CC=gcc34 CXX=g++34 && ./install

Pavith 02-14-2013 02:21 AM

Quote:

Originally Posted by knudfl (Post 4493194)
Welcome to LQ.

# yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel


..

i m getting this error on executing the above lines:

Loaded plugins: langpacks, presto, refresh-packagekit
http://linuxdownload.adobe.com/linux...ta/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host"
Trying other mirror.
http://linuxdownload.adobe.com/linux...ta/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: adobe-linux-i386. Please verify its path and try again

knudfl 02-14-2013 03:19 AM

# 20
Quote:

Cannot retrieve repository metadata (repomd.xml) for repository: adobe-linux-i386
The URL seems not to be valid any more.
cd /etc/yum.repos.d/
... Then remove or hide the corrupt repo :
# rm adobe-linux-i386.repo

Pavith 02-14-2013 03:52 AM

i removed it.. and tried the same procedure again..
got this:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

knudfl 02-14-2013 05:40 AM

# 22 . http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

Which Fedora ? Version and "arch", please.

Version : $ cat /etc/redhat-release

Architecture : $ uname -m

-

Pavith 02-18-2013 03:20 AM

[root@localhost ~]# cat /etc/redhat-release
Fedora release 16 (Verne)
[root@localhost ~]# uname -m
i686

thank u again!! :):)

Pavith 02-18-2013 03:44 AM

:doh: i tried reinstalling ns 2.34 in the same system.. so i deleted the previous ns allinone folder..
then i downloaded ns2.34, extracted it in /opt.
gave install command.. got the following error!!

Quote:

tools/ranvar.cc
tools/ranvar.cc: In member function ‘virtual double GammaRandomVariable::value()’:
tools/ranvar.cc:219:70: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly [-fpermissive]
tools/ranvar.cc:219:70: error: for a function-style cast, remove the redundant ‘::GammaRandomVariable’ [-fpermissive]
make: *** [tools/ranvar.o] Error 1
Ns make failed!


knudfl 02-18-2013 03:53 AM

# 25 .

The default install directory is /home/<name>/ns2/ .

And the install command is :
$ export CC=gcc34 CXX=g++34 && ./install

About your error : Looks like g++ was used. Must be g++34.

-

Pavith 02-18-2013 04:02 AM

============================================================
* Testing for Darwin (OS X) environment
============================================================
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Testing for FreeBSD environment
============================================================
FreeBSD not detected
============================================================
* Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking if malloc debugging is wanted... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) libraries , headers
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for float.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strcasecmp... (cached) yes
creating ./config.status
creating Makefile
creating autoconf.h
autoconf.h is unchanged
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c dialog.c
dialog.c: In function ‘make_msg_box’:
dialog.c:780:5: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:677:18: note: expected ‘size_t * __restrict__’ but argument is of type ‘char *’
dialog.c:780:5: error: too few arguments to function ‘getline’
/usr/include/stdio.h:677:18: note: declared here
dialog.c: In function ‘getline’:
dialog.c:893:7: error: argument ‘lptr’ doesn’t match prototype
/usr/include/stdio.h:677:18: error: prototype declaration
dialog.c:899:1: error: number of arguments doesn’t match prototype
/usr/include/stdio.h:677:18: error: prototype declaration
make: *** [dialog.o] Error 1
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g -c -o ctangle.o ctangle.c
ctangle.w:75:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
common.w:1409:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
gcc -g -o ctangle ctangle.o common.o
gcc -g -c -o cweave.o cweave.c
cweave.w:79:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
gcc -g -o cweave cweave.o common.o
ln: failed to create symbolic link `cweave': File exists
ln: failed to create symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
gcc34 -g -I/usr/local/sgb/include test_io.c gb_io.o -o test_io
make: gcc34: Command not found
make: *** [test_io] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
gcc -I../include -L../lib -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o -lm -lgb
gcc -I../include -L../lib -DFBSD -o ../bin/sgb2alt sgb2alt.o -lm -lgb
gcc -I../include -L../lib -DFBSD -o ../bin/edriver edriver.o eval.o -lm -lgb
gt-itm has been installed successfully.
gcc -I../include -L../lib -o ../bin/sgb2comns sgb2comns.o -lm -lgb
gcc -I../include -L../lib -o ../bin/sgb2hierns sgb2hierns.o -lm -lgb
gcc -I../include -L../lib -o ../bin/sgb2ns sgb2ns.o -lm -lgb
sgb2ns has been installed successfully.
============================================================
* Build zlib
============================================================
Building static library libz.a version 1.2.3 with gcc34.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
WARNING: snprintf() not found, falling back to sprintf(). zlib
can build but will be open to possible buffer-overflow security
vulnerabilities.
Checking for return value of sprintf()... No.
WARNING: apparently sprintf() does not return a value. zlib
can build but will be open to possible string-format security
vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
make: Nothing to be done for `all'.
Zlib has been installed successfully.
============================================================
* Build tcl8.4.18
============================================================
configure: WARNING: unrecognized options: --enable-gcc
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc34
checking whether the C compiler works... no
configure: error: in `/root/Desktop/ns-allinone-2.34/tcl8.4.18/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
tcl8.4.18 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.



i m sorry, :(
i realise that u r spending time for me.. Thank u lots.. u r really helpful!!

Gratitude :)

knudfl 02-18-2013 08:41 AM

# 27 .
Quote:

checking for gcc... gcc34
checking whether the C compiler works... no
configure: error: in `/root/Desktop/ns-allinone-2.34/tcl8.4.18/unix':
configure: error: C compiler cannot create executables
* Seems like you forgot to install the gcc packages : gcc-c++, compat-gcc-34-c++.

Please read post # 2 : # yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

-

DeepaliDeshpande 07-08-2013 04:27 AM

Hi Knfudl
I have seen that u have help many for leach implementation.
Please help me also to find remaining energy using stats.tcl
and also let me know how leach.energy file is created. Its really very urgent
Thank u

gunjan9876 07-31-2013 02:53 AM

newbie in ns2.34
 
Hello sir,

I am trying to install LEACH in ns2.34 (Ubuntu 12.04, gcc-4.6)but i am getting the following error


"cp: cannot create regular file `/opt/ns-allinone-2.34/ns-2.34': No such file or directory "

whereas my path is "home/bhargavi/ns-allinone-2.34/..."

Please guide me ...

knudfl 07-31-2013 03:40 AM

Post #30, @gunjan9876 : Welcome to LQ.

Please read posts #9, #11 : Use the script "leach-HOME-setup234.sh"
.. to setup /home/<name>/ns-allinone-2.34/ .
Post #9 : Please use the new file ns-2.34/trace/cmu-trace.h

Compilers for Ubuntu 12.04, 32bits:i686 , post # 47 here
http://www.linuxquestions.org/questi...532/page4.html
( You can check if you have the recommended architecture "i686"
with the command $ uname -m <Enter> ).

-

gunjan9876 08-04-2013 04:29 AM

Post#31, @knudfl

Thanks for replying...it helped me
i followed d steps ....but now when i run ./test command it gives me following error:

bash: ./test : Permission denied

Please sugggest me what to do...

the output of the command "uname -m" is i686

knudfl 08-04-2013 06:29 AM

# 32 .

"./test : Permission denied" : 'test' may not be set as executable.

How to run a shell (bash) script in Ubuntu : $ bash test

Or make the script executable : $ chmod +x test
... Then you can do $ ./test

-

gunjan9876 08-04-2013 10:22 AM

Quote:

Originally Posted by knudfl (Post 5002576)
# 32 .

"./test : Permission denied" : 'test' may not be set as executable.

How to run a shell (bash) script in Ubuntu : $ bash test

Or make the script executable : $ chmod +x test
... Then you can do $ ./test

-


It worked...
Thank you.!!! ...

Shivjay 08-08-2013 04:35 AM

Dear Users,
I have already patch leach in my ns-2.34 over fedora-16. But got this error.
see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

warning: no class variable Phy/WirelessPhy::alive_

Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...
bash-4.2$

Another thing wgen i run ./test file i got learch.tr also and got result files and all file looks like actual result file.
conditions.txt leach.data leach.out leach save 3 startup.energy
leach4 leach.energy leach.save1 Result1 TDMAschedule.0.txt
leach.alive leach.err leach.save2 Result.out

But when i read leach.tr then i got some unexpected result that's trace formate given below:
:
:
:
s 0.000079542 _90_ AGT --- 0 tcp 12345 [0 5a000000 0 0] ------- [90:0 2147483647:0 32 0] [0 0] 0 0
s 0.000093514 _47_ AGT --- 1 tcp 14132 [0 2f000000 0 0] ------- [47:0 2147483647:0 32 0] [0 0] 0 0
s 0.000123542 _87_ AGT --- 2 tcp 14136 [0 57000000 0 0] ------- [87:0 2147483647:0 32 0] [0 0] 0 0
s 0.000139659 _8_ AGT --- 3 tcp 56 [0 8000000 0 0] ------- [8:0 2147483647:0 32 0] [0 0] 0 0
s 0.000155049 _97_ AGT --- 4 tcp 14137 [0 61000000 0 0] ------- [97:0 2147483647:0 32 0] [0 0] 0 0
s 0.000165083 _21_ AGT --- 5 tcp 12594 [0 15000000 0 0] ------- [21:0 2147483647:0 32 0] [0 0] 0 0
s 0.000181912 _23_ AGT --- 6 tcp 13106 [0 17000000 0 0] ------- [23:0 2147483647:0 32 0] [0 0] 0 0
s 0.000195106 _38_ AGT --- 7 tcp 14387 [0 26000000 0 0] ------- [38:0 2147483647:0 32 0] [0 0] 0 0
s 0.000211702 _13_ AGT --- 8 tcp 13105 [0 d000000 0 0] ------- [13:0 2147483647:0 32 0] [0 0] 0 0
s 0.004872214 _71_ AGT --- 808333344 audio 740307255 [0 47000000 0 0] ------- [71:0 2147483647:0 32 0]
s 0.004874591 _31_ AGT --- 808333344 audio 740307251 [0 1f000000 0 0] ------- [31:0 2147483647:0 32 0]
s 0.004958706 _37_ AGT --- 808333344 audio 740308787 [0 25000000 0 0] ------- [37:0 2147483647:0 32 0]
s 0.005046812 _5_ AGT --- 808463920 audio 539762741 [0 5000000 0 0] ------- [5:0 2147483647:0 32 0]
s 0.005048750 _15_ AGT --- 808333344 audio 740308273 [0 f000000 0 0] ------- [15:0 2147483647:0 32 0]
:
:
:
:
:
:
s 0.014223985 _77_ AGT --- 808333344 audio 740308791 [0 4d000000 0 0] ------- [77:0 2147483647:0 32 0]
s 0.014230481 _55_ AGT --- 808333344 audio 740308277 [0 37000000 0 0] ------- [55:0 2147483647:0 32 0]
s 0.014384279 _45_ AGT --- 808333344 audio 740308276 [0 2d000000 0 0] ------- [45:0 2147483647:0 32 0]
s 0.014451525 _3_ AGT --- 808463920 audio 539762739 [0 3000000 0 0] ------- [3:0 2147483647:0 32 0]
s 0.014565483 _70_ AGT --- 808333344 audio 740306999 [0 46000000 0 0] ------- [70:0 2147483647:0 32 0]
r 0.099049563 _7_ AGT --- 0 tcp 12345 [0 5a000000 ffff0008 0] ------- [90:0 2147483647:0 32 0] [0 0] 1 0
r 0.099049568 _77_ AGT --- 0 tcp 12345 [0 5a000000 ffff0008 0] ------- [90:0 2147483647:0 32 0] [0 0] 1 0
r 0.099049572 _8_ AGT --- 0 tcp 12345 [0 5a000000 ffff0008 0] ------- [90:0 2147483647:0 32 0] [0 0] 1 0
r 0.099049581 _81_ AGT --- 0 tcp 12345 [0 5a000000 ffff0008 0] ------- [90:0 2147483647:0 32 0] [0 0] 1 0
r 0.099049582 _29_ AGT --- 0 tcp 12345 [0 5a000000 ffff0008 0] ------- [90:0 2147483647:0 32 0] [0 0] 1 0:
:
:
:
:
:
:
:
Please give me some idea about what is this problem and why this is?
How can i remove this in my ns-2.34

Thanks in Advance...

knudfl 08-10-2013 04:09 AM

# 35 .

Ref. your text here http://network-simulator-ns-2.7690.n...28.html#a27460
Quote : ""I have already patch leach routing protocol in my ns-2.34 ...
fedora and make some changes according to my requirement.""

Which changes would that be ? And where does the "audio" come from ?
Code:

s 0.004872214 _71_ AGT --- 808333344 audio 740307255 [0 47000000 0 0] ------- [71:0 2147483647:0 32 0]
s 0.004874591 _31_ AGT --- 808333344 audio 740307251 [0 1f000000 0 0] ------- [31:0 2147483647:0 32 0]
s 0.004958706 _37_ AGT --- 808333344 audio 740308787 [0 25000000 0 0] ------- [37:0 2147483647:0 32 0]
s 0.005046812 _5_ AGT --- 808463920 audio 539762741 [0 5000000 0 0] ------- [5:0 2147483647:0 32 0]
s 0.005048750 _15_ AGT --- 808333344 audio 740308273 [0 f000000 0 0] ------- [15:0 2147483647:0 32 0]
:
:
s 0.014223985 _77_ AGT --- 808333344 audio 740308791 [0 4d000000 0 0] ------- [77:0 2147483647:0 32 0]
s 0.014230481 _55_ AGT --- 808333344 audio 740308277 [0 37000000 0 0] ------- [55:0 2147483647:0 32 0]

Example "a normal leach.tr" https://docs.google.com/file/d/0B7S2...it?usp=sharing

Errors / problems ? I don't see any.
If you want a default LEACH setup, you can just set up another ns-allinone-2.34/
in a new directory. You can have as many ns-allinone as you want at the same time.
( But do not add any path text to .bashrc ).

The suggested latest leach patching is exidus-pegasis_ns-234-leach.tar.gz
https://docs.google.com/file/d/0B7S2...it?usp=sharing
Info #289 http://www.linuxquestions.org/questi...68/page20.html
And : http://www.linuxquestions.org/questions/tags/pegasis/

-

Bader Sadij 11-24-2013 01:14 AM

Avoid NS
 
I strongly suggest you drop NS and move to a different simulator. I have tried working on NS 2 for the last six months and have completely given up. After resolving one bug I find that I have to spend my time in resolving a new one.
All my time is spent in understanding NS 2 rather than on working on my new algorithm :(

knudfl 11-24-2013 08:51 AM

Post # 37, @Bader Sadij : Welcome to LQ.

As you can see from the the other "3,000" ns2 posts,
bugs are a rare situation.
One or two of the additional protocol patches have bugs.

The most common issues are caused by using the wrong compiler.
ns-2.35 : Use gcc / g++ version 4.4* .
ns-2.26 ... 2.34 : Use gcc/g++ version 4.1.2, or 3.4.6 .
One of those versions are available for all common Linux OS.

-


All times are GMT -5. The time now is 01:35 AM.