LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   trace file issue in leach+ns2 (https://www.linuxquestions.org/questions/programming-9/trace-file-issue-in-leach-ns2-4175604186/)

rc49 04-19-2017 01:45 PM

trace file issue in leach+ns2
 
i have installed leach on ns2.35 on ubuntu14.04 machine via following steps mentioned in link below

http://www.nsnam.com/2015/05/leach-p...in-ns2-ns.html

and installed successfully(no error in leach.err). when i run leach_test (having node movement file and cbr connection pattern file in tcl) trace file doest not contain whole packet trace.

simulation is of 100 seconds and trace file contains only few miliseconds of trace. not even a single destination is receiving packet. even sources are not sending all packets. I set max packet limit 100

traffic type is cbr but trace file shows packet type audio. I explore every file of leach but not able to fix it. here is some lines of trace file for reference purpose
Code:

s 0.003342763 _18_ AGT  --- 808333344 audio 740309041 [0 12000000 0 0] ------- [18:0 -1:0 32 0]
s 0.003387681 _28_ AGT  --- 808333344 audio 740309042 [0 1c000000 0 0] ------- [28:0 -1:0 32 0]
s 0.003549504 _25_ AGT  --- 808333344 audio 740308274 [0 19000000 0 0] ------- [25:0 -1:0 32 0]
s 0.003769373 _45_ AGT  --- 808333344 audio 740308276 [0 2d000000 0 0] ------- [45:0 -1:0 32 0]
s 0.003860259 _30_ AGT  --- 808333344 audio 740306995 [0 1e000000 0 0] ------- [30:0 -1:0 32 0]
s 0.004011724 _29_ AGT  --- 808333344 audio 740309298 [0 1d000000 0 0] ------- [29:0 -1:0 32 0]

any help will be apreciated!!

knudfl 04-19-2017 03:01 PM

http://www.nsnam.com/2015/05/leach-p...in-ns2-ns.html :
Also published as 'leach_ns235-Jun2015.patch' http://www.linuxquestions.org/questi...4175556129/#11


Quote:

when i run leach_test (having node movement file and cbr connection pattern file in tcl)
Not quite clear what you mean : Did you write a new file.tcl ?


Quote:

simulation is of 100 seconds and trace file contains only few miliseconds of trace
Be aware that the "100 seconds" or whatever setting is maximum time.
»» # stop is the time to stop the simulation if it is still running ««


-

rc49 04-20-2017 03:23 AM

Quote:

Originally Posted by knudfl (Post 5699395)
Did you write a new file.tcl ?
-

No, I dont write new tcl file. I run same wireless.tcl(nsallinone2.35/ns2.35) as instructed on pradeep kumar blog. I just added cbr connection pattern file and changed scenario file. both files are located in ns-allinone2.35/ns2.35/mit/uAmps/sims.

I also searched for it on google, but regarding leach trace file i didnt get enough stuff. generally students are more concern with energy but i need to calculate throughput, PDR etc,,,so i need trace file.

leach.err does not contain any error. But leach.out contains numerous warnings!!!
please find wireless.tcl leach.test leach.tr leach.out on link below for reference purpose

https://drive.google.com/drive/folde...U0?usp=sharing

knudfl 04-20-2017 03:50 AM

Re #3.


The important files are {the cbr connection pattern file and scenario file} : File names, please.

About wireless.tcl : More or less the same for ~18 .. 20 years :
'wireless.tcl' Copyright (c) 1997 Regents of the University of California.
'wireless.tcl' : Used with Leach since ~2000 (ns2b1*), ~2004 (ns-2.27).



-

rc49 04-20-2017 04:39 AM

Quote:

Originally Posted by knudfl (Post 5699604)
Re #3.
The important files
-

cbr file https://drive.google.com/file/d/0B3n...ew?usp=sharing
scenario file https://drive.google.com/file/d/0B3n...ew?usp=sharing

knudfl 04-20-2017 11:37 AM

I made three different test runs ... like this :

1. The default ./leach_test, with default settings, default files: leach.tr = 96.5kB (1-leach.tr).

2. With wireless.tcl (2-wireless.tcl) edited to your files (cbr*, scen*), and nn=51 .
Result : leach.tr = 132.3kB (2-leach.tr).

3. As 2. but with leach_test (2-leach_test): line 35 nn=51,
line 17 topology_file="mit/uAMPS/sims/50nodes.txt"
( A new file 50nodes.txt was created with a genscen-50 script.)
Result : leach.tr = 34.7kB (3-leach.tr)


-

rc49 04-20-2017 12:20 PM

Quote:

Originally Posted by knudfl (Post 5699789)
I made three different test runs ... like this :

1-leach.tr, 2-leach.tr, 3-leach.tr

-

are these files are similar to previous trace file leach.tr? (that i attached earlier in #3)

knudfl 04-20-2017 02:04 PM

Re #7.

1-leach.tr, 2-leach.tr, 3-leach.tr are the renamed leach.tr from each of the three tests.
As they are all created in ns-2.35/, renaming was a necessity.
Else the file would be replaced with the next leach.tr .

rc49 04-20-2017 06:13 PM

Quote:

renamed files -
If trace file is similar then problem is still same...traffic is cbr but in trace file y audio is get printed!!!
Could you please attach these files???AS i m not able to see the exact difference.
I m not able to conclude Whether problem relies in my installation or in my script!!!!!???

knudfl 04-20-2017 06:44 PM

Re #9.

The files are too big to be attached.

I will upload a package.tar.gz, and show a link in a new post ... tomorrow.

rc49 04-21-2017 03:01 AM

Quote:

Originally Posted by knudfl (Post 5699951)
Re #9.

The files are too big to be attached.

I will upload a package.tar.gz, and show a link in a new post ... tomorrow.


it will be grateful!!
thank you sir,,,for giving your valuable time

knudfl 04-21-2017 01:37 PM

Re #10.

The package leach_test_ns-2.35_20Apr17.tar.gz was uploaded ...
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Not quite sure it was done like #6. I got interrupted and forgot the sequences.
I also started a second test ( 3-runs_2/ ) : Included in the package.


-

knudfl 04-21-2017 05:54 PM

Re #12.

The leach version for ns-2.34 : A similar leach.tr

leach_test_ns-2.34_22Apr17.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing

knudfl 04-22-2017 06:04 AM

@rc49 / @chopra_ramneet

Ref. http://network-simulator-ns-2.7690.n...81.html#a31482

Subject : "destination is not receiving any data packet"

You can also try asking at https://stackoverflow.com/questions/tagged/ns2

Tagging with e.g. ns2, leach in stackoverflow goes this way : [Tag:ns2] [Tag:leach]


-

rc49 04-22-2017 01:11 PM

Quote:

Originally Posted by knudfl (Post 5700586)

thankyou sir
chopra_ramneet is me :)
actually i m posting issue on every blog known to me for past few days,,looking for the SOLUTION!!!!


All times are GMT -5. The time now is 09:05 PM.