Leach.err is empty

25 views
Skip to first unread message

ELKAMEL RABIAA

unread,
Nov 13, 2018, 8:06:23 PM11/13/18
to Network Simulator 2 (NS2)
Hello
I have an problem in leach i find as result an empty file leach.err however in leach result the file alive node  leach.energy  contains des values 

knudfl

unread,
Nov 14, 2018, 5:56:41 AM11/14/18
to Network Simulator 2 (NS2)
Leach :    Please always specify any of the (three) most used options / origins :

1.  Mannasim  Leach
2.  ns-2.34/mit/   Leach ...  Typical size → leach.err 69B , leach.energy 110kB. 
( 3.  ns-2.35/mit   Leach ... faulty version.)

The MIT leach,  leach.err is not an important file.  Text only if fatal setup errors. Else :
mac/chanel.cc: INITIALIZE THE LIST xListHead
SORTING LISTS
...DONE!
... The important file is usually ns-2.34/mit/leach_sims/leach.out

Which simulation command was used ?
»» .. problem in leach i find as result an empty file leach.err however in leach result the file alive node  leach.energy  contains des values «« :
.... Tells little or nothing without knowing the simulation setup / the simulation command.
? What do you mean with "the file alive node leach.energy  contains des values"  mean ? ?
.... Please rephrase.

ELKAMEL RABIAA

unread,
Nov 14, 2018, 11:07:52 AM11/14/18
to Network Simulator 2 (NS2)
Good evening sir
I used the 3 option  witch is "The important file is usually ns-2.34/mit/leach_sims/leach.out"

and as a result is
ns: 
[code omitted because of length]
: invalid command name "Queue/CoDel"
    while executing
"Queue/CoDel set curq_ 0.0"
leach.out

knudfl

unread,
Nov 14, 2018, 11:56:00 AM11/14/18
to Network Simulator 2 (NS2)
»» I used the 3 option «« :
Please show the commands,  and describe the three setups.
And explain how you got "Codel" involved.
I.e.  [code omitted because of length]  indicates that you are using an ns2 with some leftover from a previous Codel patching.

I.e. i.e. there is no Queue/CoDel in a default ns-2.34 or ns-2.35.
Neither in a "mannasim ns-2.35".

ELKAMEL RABIAA

unread,
Nov 14, 2018, 12:36:03 PM11/14/18
to Network Simulator 2 (NS2)
sorry for the wrong explanation
I have more details The steps followed
1- I install ns2.35 under ubuntu 12.04
2- Then I downloaded leach-pegasisns2.34 which I found in your group
3 - a file ns2.34 is created under ns-allinone-2.35
4 for run leach I move under the following path /ns-allinone-2.35/ns-2.34/mit/sims/leach_simulations/leach$
5 I type .//leach-test 


Thanks a lot for your help

knudfl

unread,
Nov 14, 2018, 1:07:31 PM11/14/18
to Network Simulator 2 (NS2)
No ns-2.35 should be or can be used for Leach.

Ubuntu 12.04 : You cannot build Leach in this OS.

Ubuntu 12.04 : You can install leach-pegasis-ns_2.34-ubuntu10_i386.deb

And unpack "leach-test__Ubuntu1204.tar.gz" in home/name/
to have "home/name/9tmp/ns-allinone-2.34/ns-2.34/{ mit/, test }

Edit the usual ~13 files to your name / your path.
Then run './test' in home/name/ns-allinone-2.34/ns-2.34/

ELKAMEL RABIAA

unread,
Nov 14, 2018, 2:18:03 PM11/14/18
to Network Simulator 2 (NS2)

please sir can you tell me how to install   "leach-test__Ubuntu1204.tar.gz" in home/name/ in ubuntu 12.04  and  it possible to  keep the ns2.35 which I already installed thanks

knudfl

unread,
Nov 14, 2018, 4:09:23 PM11/14/18
to Network Simulator 2 (NS2)
How to unpack a tar file in home/name/ :
tar xvf leach-test__Ubuntu1204.tar.gz

You can keep / store an unlimited number of ns-allinone-2.xx , see ns2-INFO.txt

My current setup → see "usr.local.bin-08.18.txt"
I.e. all executable "ns-<protocol-name>" are in /usr/local/bin/.
usr.local.bin-08.18.txt
ns2-INFO.txt
Reply all
Reply to author
Forward
0 new messages