LinuxQuestions.org
Review your favorite Linux distribution.
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 01-20-2017, 11:13 AM   #31
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,316
Blog Entries: 13

Rep: Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372

Quote:
Originally Posted by ammuammu View Post
i have made the tcl code but trace file out05 06 07 08 is empty.crcn patched with ns2.
ammuammu, welcome to LQ.

Please note that you have resurrected a year old thread and your comment or question does not appear to make sense.

Please review the links for new users:
Welcome to LQ
Project tools FAQ

To aid you with enhancing your comment and question. If this is relevant to the original thread, then please elaborate better.

If this is a new issue, then suggest you start a new thread with a proper title and helpful details to enable others to be able to assist you.

Remember to show the details of your work and describe your situation clearly.
 
Old 08-15-2017, 06:45 AM   #32
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 24

Rep: Reputation: Disabled
Unhappy @ Knudfl

Hi knudfl,

I hope you are well.

I want to simulate protocol TORA in ns2.35 (ubuntu 12.04). then i made all necessary changes in the files: imep.cc,tora.cc & tora.h.
AND the simulation is done without problems.But the trace file (.tr) contains IMEP and the TORA protocol is just figure in these lines:
"T 127.936679222 _0_ tora enq 0-> 2
T 127.944998637 _1_ tora sendQRY 1677721
.... "
So I don't know how I will calculate the PDR, the delay,... .Since in place of TORA finds IMEP in trace file .

Please heelp me...

Thanks in advance
Attached Files
File Type: txt 1_out.tr.txt (133.1 KB, 5 views)
 
Old 08-15-2017, 08:14 AM   #33
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Ref. #32 : tora_ns235-1.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Your simulation file is unknown !
Tora examples : Tora-examples_2017.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Examples
$ ns235-tora-64 simple-T-wireless.tcl , creates simple.tr
$ awk -f PDR.awk simple.tr
cbr s:7 r:1, r/s Ratio:0.1429, f:0

$ ns235-tora-64 JoeNaoum-Sawaya-T.tcl , creates trace2.tr
$ awk -f PDR.awk trace2.tr
cbr s:37883 r:12013, r/s Ratio:0.3171, f:976

$ ns235-tora-64 to-Clustering-moc_v1.tcl , creates out.tr
$ awk -f PDR.awk out.tr
cbr s:1641 r:1479, r/s Ratio:0.9013, f:236

$ ns235-tora-64 TORA-10nodes.tcl , creates nn10.tr
$ awk -f PDR.awk nn10.tr
cbr s:152 r:151, r/s Ratio:0.9934, f:204
$ awk -f Avg_Del.awk nn10.tr
avgDelay[ms] overall: 36028.3
$ awk -f delay_alterado_einar.awk nn10.tr
10.175

"Top 20 awk scripts" : awk-ns2-first.17.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
All ns2 scripts : awk#perl#python__scripts-06.2017.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-

Last edited by knudfl; 08-15-2017 at 08:52 AM.
 
Old 08-15-2017, 09:54 AM   #34
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 24

Rep: Reputation: Disabled
#Re 33

Thank you knudful

I don't know why the file is unkown. it is an trace file of an example of Tora.
I'll test the patch of TORA. Because with the simulation examples always it gives me the IMEP protocol in the trace file.

Please, you can send me an example of a generic trace file (.tr) generated of the TORA protocol !!!!!

the following lines are an example of trace file (1_out.tr) generated by un example of TORA:

T 1.000000000 _0_ tora enq 0->5
T 1.000000000 _0_ tora sendQRY 5
s 1.000000000 _0_ RTR --- 2 IMEP 38 [0 0 0 0] ------- [0:255 -1:255 1 0] [- - O 0x0012]
s 1.000275000 _0_ MAC --- 2 IMEP 96 [0 ffffffff 0 800] ------- [0:255 -1:255 1 0] [- - O 0x0012]
r 1.001043471 _1_ MAC --- 2 IMEP 38 [0 ffffffff 0 800] ------- [0:255 -1:255 1 0] [- - O 0x0012]
r 1.001043745 _2_ MAC --- 2 IMEP 38 [0 ffffffff 0 800] ------- [0:255 -1:255 1 0] [- - O 0x0012]
T 1.015000000 _0_ tora enq 0->5
T 1.030000000 _0_ tora enq 0->5
T 1.045000000 _0_ tora enq 0->5
T 1.060000000 _0_ tora enq 0->5
T 1.075000000 _0_ tora enq 0->5
T 1.090000000 _0_ tora enq 0->5
s 1.100000000 _1_ RTR --- 11 IMEP 34 [0 0 0 0] ------- [1:255 -1:255 1 0] [- H - 0x000e]
s 1.100115000 _1_ MAC --- 11 IMEP 92 [0 ffffffff 1 800] ------- [1:255 -1:255 1 0] [- H - 0x000e]
r 1.100851333 _2_ MAC --- 11 IMEP 34 [0 ffffffff 1 800] ------- [1:255 -1:255 1 0] [- H - 0x000e]
r 1.100851471 _0_ MAC --- 11 IMEP 34 [0 ffffffff 1 800] ------- [1:255 -1:255 1 0] [- H - 0x000e]
r 1.100851745 _3_ MAC --- 11 IMEP 34 [0 ffffffff 1 800] ------- [1:255 -1:255 1 0] [- H - 0x000e]
T 1.100876471 _0_ QRY 5 for 1 (rtreq set)
T 1.100876471 _0_ tora sendQRY 5
......

Waiting for your reply... Thank you
 
Old 08-15-2017, 10:09 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Re. #34.
Quote:
I don't know why the file is unkown
Unknown is when you are not telling us the file name.
1) Please specify the file name.
2) If not usable, then please use some of the other ~20 examples !


-
 
Old 08-15-2017, 10:33 AM   #36
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 24

Rep: Reputation: Disabled
@35

I have tested the different example and i have the same result comapred with you.

The example tested is:
$ ns235-tora-64 JoeNaoum-Sawaya-T.tcl , creates trace2.tr
$ awk -f PDR.awk trace2.tr
cbr s:37883 r:12013, r/s Ratio:0.3171, f:976

But i don't know why i have IMEP with AGT and different packet send and received in trace file ???
what is the IMEP ?

Below an extract of the trace file (trace2.tr) generated from the TCL file:JoeNaoum-Sawaya-T.tcl
s 1.000000000 _0_ RTR --- 0 IMEP 24 [0 0 0 0] ------- [0:255 -1:255 1 0] [- - - 0x0004]
s 1.100000000 _1_ RTR --- 15 IMEP 34 [0 0 0 0] ------- [1:255 -1:255 1 0] [- H - 0x000e]
s 1.152636616 _2_ RTR --- 24 IMEP 38 [0 0 0 0] ------- [2:255 -1:255 1 0] [- H - 0x0012]
s 1.160028584 _4_ RTR --- 32 IMEP 42 [0 0 0 0] ------- [4:255 -1:255 1 0] [- H - 0x0016]
s 1.174676985 _7_ RTR --- 40 IMEP 46 [0 0 0 0] ------- [7:255 -1:255 1 0] [- H - 0x001a]
s 1.182512844 _3_ RTR --- 48 IMEP 50 [0 0 0 0] ------- [3:255 -1:255 1 0] [- H - 0x001e]
s 1.195333822 _6_ RTR --- 56 IMEP 54 [0 0 0 0] ------- [6:255 -1:255 1 0] [- H - 0x0022]
s 1.200000000 _2_ RTR --- 64 IMEP 46 [0 0 0 0] ------- [2:255 -1:255 1 0] [- H - 0x001a]
s 1.232864328 _5_ RTR --- 71 IMEP 58 [0 0 0 0] ------- [5:255 -1:255 1 0] [- H - 0x0026]
s 1.267511191 _0_ RTR --- 79 IMEP 58 [0 0 0 0] ------- [0:255 -1:255 1 0] [- H - 0x0026]
s 1.300000000 _3_ RTR --- 80 IMEP 38 [0 0 0 0] ------- [3:255 -1:255 1 0] [- H - 0x0012]
s 1.315426108 _1_ RTR --- 88 IMEP 58 [0 0 0 0] ------- [1:255 -1:255 1 0] [- H - 0x0026]
s 1.360823759 _4_ RTR --- 89 IMEP 46 [0 0 0 0] ------- [4:255 -1:255 1 0] [- H - 0x001a]
s 1.385562057 _7_ RTR --- 90 IMEP 42 [0 0 0 0] ------- [7:255 -1:255 1 0] [- H - 0x0016]
s 1.400000000 _0_ AGT --- 91 cbr 512 [0 0 0 0] ------- [0:0 1:0 32 0] [0] 0 0
s 1.400000000 _0_ RTR --- 91 cbr 532 [0 0 0 0] ------- [0:0 1:0 32 1] [0] 0 0
r 1.405124950 _1_ AGT --- 91 cbr 532 [13a 1 0 800] ------- [0:0 1:0 32 1] [0] 1 0
s 1.406826667 _0_ AGT --- 99 cbr 512 [0 0 0 0] ------- [0:0 1:0 32 0] [1] 0 0
s 1.406826667 _0_ RTR --- 99 cbr 532 [0 0 0 0] ------- [0:0 1:0 32 1] [1] 0 0
r 1.409703317 _1_ AGT --- 99 cbr 532 [13a 1 0 800] ------- [0:0 1:0 32 1] [1] 1 0
s 1.413653333 _0_ AGT --- 100 cbr 512 [0 0 0 0] ------- [0:0 1:0 32 0] [2] 0 0
.......
T 39.036065680 _4_ tora sendQRY 33554439
T 39.036065680 _4_ QRY 67108871 for 1 (rtreq set)
T 39.036065680 _4_ tora sendQRY 67108871
T 39.036065775 _6_ QRY 100663301 for 1 (rtreq set)
T 39.036065775 _6_ tora sendQRY 100663301
......
s 79.998506667 _6_ RTR --- 561991 cbr 532 [0 0 0 0] ------- [6:0 7:0 32 7] [7324] 0 0
D 79.998531667 _6_ IFQ --- 561991 cbr 532 [0 7 6 800] ------- [6:0 7:0 32 7] [7324] 0 0
s 79.999573333 _4_ AGT --- 561993 cbr 512 [0 0 0 0] ------- [4:0 5:0 32 0] [8789] 0 0
s 79.999573333 _4_ RTR --- 561993 cbr 532 [0 0 0 0] ------- [4:0 5:0 32 5] [8789] 0 0
 
Old 08-15-2017, 03:50 PM   #37
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Re #36 : IMEP

imep.cc http://www.netlab.ecnu.edu.cn/softwa...s/imep_8cc.htm
imep : ns-2.35/imep/

Tracefile http://nsnam.sourceforge.net/wiki/in..._Trace_Formats
→ → IMEP Trace , line 205 and line 306.
 
  


Reply

Tags
ns2, tora


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sir, While installing ns2.34 on fedora 16 got the error : trace/cmu-trace.cc 1327:22 jeevanpinto Linux - Newbie 2 06-28-2012 03:35 AM
nam not working ns2.33 fabe856 Linux - Software 3 04-20-2012 01:03 PM
[SOLVED] ns2 nam not working in fedora 14 mujtiba Linux - Newbie 7 05-24-2011 07:30 AM
[SOLVED] NS2 Nam Issue atb2010 Linux - Newbie 2 03-17-2011 09:52 AM
nam window is not display in ns2 pratapmeher Linux - Newbie 7 10-21-2010 02:08 AM

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

All times are GMT -5. The time now is 04:02 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