LAR Patch

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

LAR Patch

muaz

Dear NS Users,

I am working on testing some of Location-Based routing protocols
performance over highway VANETs, so I appreciate your help in guiding me to
a patch of LAR protocol for ns2.33 or ns2.34. Thanks in advance.

--
Best Regards,
Mouaz Chamieh,
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
> @muaz
> LAR Patch
> .. a patch of LAR protocol for ns2.33 or ns2.34


"toilers-LAR-DREAM-2.32.patch" http://www.prism.gatech.edu/~gtg975v/ns/
http://www.prism.gatech.edu/~gtg975v/ns/toilers-LAR-DREAM-2.32.patch

Files for ns-2.33 were created from "toilers-LAR-DREAM-2.32.patch" to ...
toilers-LAR-DREAM-ns233-patching.tar.gz
https://docs.google.com/file/d/0B7S255p3kFXNM2JwbktMSGxoUkE/edit?usp=sharing
Using : cd ns-allinone-2.33/ ; tar xvf toilers-LAR-DREAM-ns233-patching.tar.gz

LAR examples : "lar-examples0713.tar.bz2"
https://docs.google.com/file/d/0B7S255p3kFXNWUtPWG5BekFNMFU/edit?usp=sharing

LAR info "2013" http://www.linuxquestions.org/questions/tags/lar/

-
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

billyfuad
This post has NOT been accepted by the mailing list yet.
hello @knudfl i wanna try to patch LAR routing protocol on ns 2.33, I was follow your tutorial before and i was follow the link about how to patch LAR, but I still confused with your instructions. Would you please give me more obvious installation step for patching LAR?

Big thanks.

Regards,
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
> @ billyfuad
> how to patch LAR

Which Linux OS are you using ?
a) Please show the output from the command $ uname -m <Enter>
b) OS name and version.

-
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

billyfuad
This post has NOT been accepted by the mailing list yet.
> master @knudfl

the output of $ uname -m is x86_64

linux ubuntu 12.04 LTS

Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
This post was updated on .
> @billyfuad
> Ubuntu 12.04 - x86_64
OK, the LAR patching and the simulations are working with Ubuntu 12.04-x86_64.

How to build ns-2.33 + toilers-LAR-DREAM :
$ sudo apt-get install \
g++ g++-4.4 autoconf automake make patch libtool libxmu-dev xgraph nam

$ cd ns-allinone-2.33/
$ tar xvf toilers-LAR-DREAM-ns233-patching.tar.gz
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
$ cd ns-2.33/
$ cp ns ns-lar
$ sudo cp ns-lar /usr/local/bin/
.. That's it. Don't do anything else. Like adding a *PATH text to .bashrc : Not required.

* Run the simulations in the directory lar-examples/
( "lar-examples/" can have any location in /home/<name>/ )
$ ns-lar ARP_TCP-box.tcl

-
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

billyfuad
This post has NOT been accepted by the mailing list yet.
This post was updated on .
> @knudfl

after I run $ tar xvf toilers-LAR-DREAM-ns233-patching.tar.gz
shows the messages bellow:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

how to fix it?

sorry for my ignorance, master. I'm nubie

BIG THANKS
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
> @billyfuad
> gzip: stdin: not in gzip format

Well, then delete the `toilers-LAR-DREAM-ns233-patching.tar.gz´, that you downloaded.
And get a new one from ..
https://drive.google.com/file/d/0B7S255p3kFXNM2JwbktMSGxoUkE/edit?usp=sharing

-
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

billyfuad
This post has NOT been accepted by the mailing list yet.
> master @knudfl

your tutorial about how to patching Location Aided Routing Protocol (LAR) in NS-2.33 its SOLVED!!!

is it the same way if I would use NS-2.34?

THANK'S A BUNCH MASTER !
TERIMA KASIH
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
This post was updated on .
> @billyfuad
> Location Aided Routing Protocol (LAR)
> is it the same way if I would use NS-2.34 ?

`ns-2.34´ : You can try out the patch, (experimental-)toilers-lar-dream_ns234.patch
https://drive.google.com/file/d/0B7S255p3kFXNaHY3WnNodERZQUU/edit?usp=sharing

Not all the simulations seem to work OK today. You may have noticed that with the ns233 build ?
I am getting errors with box-Helen.tcl on both ns-2.33 and ns-2.34.
Could happen that the original ns-2.32 solution is the best one for a 64bits OS ?
( The three patches are all adding the same code lines to the ns2 cmu-trace.*,
that is actually the only real code added to the original ns2 files.)

Building ns-2.34 + LAR :
$ tar xvf ns-allinone-2.34.tar.gz
$ patch -p1 < toilers-lar-dream_ns234.patch
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
$ cd ns-2.34/ && cp ns ns234-lar && sudo cp ns234-lar /usr/local/bin/

-

Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

billyfuad
This post has NOT been accepted by the mailing list yet.
> @knudfl
> LAR ns 2.33

master, i've found some errors when i running LAR patch on ns 2.33 that you gave to me. But if I used the existing routing protocols like AODV and DSDV, theres no problem with it.
(I run that patch for zigbee simulation)

here's the TCL for zigbee
https://drive.google.com/file/d/0B_mjg76roz4CbWZxTERSRzVsZW8/edit?usp=sharing

and the errors show bellow:

num_nodes is set 21

    (_o14 cmd line 1)
    invoked from within
"_o14 cmd addr"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o14" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o14 addr"
    ("eval" body line 1)
    invoked from within
"eval $node addr $args"
    ("default" arm line 2)
    invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
    (procedure "_o3" line 14)
    (Simulator create-wireless-node line 14)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns_ node"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
        set node_($i) [$ns_ node]
        $node_($i) random-motion 0 ;# disable random motion
}"
    (file "tes.tcl" line 94)


hope you can help me.
Thanks Master.
 
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
This post was updated on .
> @billyfuad
> tes.tcl , Zigbee / 802_15_4

1) Your link is for 'tes.tcl' only.
Please provide "kordinat_20_20.scn" too.

2) Please have a look into ``dream.tcl´´ to know how "Dream" is added :
Line 114 :  add-packet-header Dream
Etc. etc. lines with "Dream".

-
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
This post was updated on .
> @billyfuad
> Zigbee / 802_15_4

Here is my sketch for a Zigbee file with *)"Agent/Dream" :  wpan_demo1__Dream.tcl
https://drive.google.com/file/d/0B7S255p3kFXNVTBaWmdGNTVHWTA/edit?usp=sharing
It's the default ns-2.xx/tcl/ex/wpan_demo1.tcl + the 88 lines (edited) `Dream´ stuff from dream.tcl .
... You will also need the file ns-2.xx/tcl/ex/wpan_demo1.scn .

*) Agent/Dream : Line 279.

Try "2" :  wpan_demo1__Dream2.tcl
https://drive.google.com/file/d/0B7S255p3kFXNVTBaWmdGNTVHWTA/edit?usp=sharing
... which also uses the file "mob.2", from the lar-examples.

-
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

billyfuad
This post has NOT been accepted by the mailing list yet.
> @knudfl
> tes.tcl , Zigbee 802.15.4

sorry sir I forgot to share the scn files.
here's https://drive.google.com/file/d/0B_mjg76roz4CWW9GU2VQNDZNTk0/edit?usp=sharing

thanks
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
> @billyfuad
> tes.tcl

OK, got the file `kordinat_20_20.scn´.
Other missing file(s) : tess.awk , and maybe energy.awk if different from the default energy.awk.

"tes.tcl" :  Nice 802.15.4 example , no ``Dream´´.


? Did the "wpan_demo1__Dream*.tcl" examples do anything that you could use ?

-

Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

justisiaaa
This post has NOT been accepted by the mailing list yet.
This post was updated on .
> @knudfl
> Network simulator, zigbee

hai master, i've been following the simulation that @billyfuad gave to you (https://drive.google.com/file/d/0B_mjg76roz4CbWZxTERSRzVsZW8/edit?usp=sharing), I used AODV and DSDV routing protocols, when I ran (tes.tcl) it works but the problem is the awk can not give the right calculation. I only got the energy consumption (from energy.awk), but the result of delay and throughput are zero (from throughput.awk and awk_delay.awk).

would you please fix it, or explain what's wrong with the tcl or awk?
thanks before for helping..
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
> @justisiaaa
> zigbee

You don't tell which "throughput.awk" and "awk_delay.awk" scripts it's about.
The "tes.tcl" connected awk files are included in `802.15.4-zigbee_05.2014.tar.gz´ →
https://drive.google.com/file/d/0B7S255p3kFXNLVZyMEU0YnBNZkU/edit?usp=sharing

The package `awk_scripts-04.2014.tar.bz2´ may contain something that you can use →
https://drive.google.com/file/d/0B7S255p3kFXNOEw1OTlLUzV4V2s/edit?usp=sharing
→ 50+ awk etc. script examples.

-
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

justisiaaa
This post has NOT been accepted by the mailing list yet.
> knudfl
> zigbee

master, sorry for forgetting put the throughput. awk and awk_delay.awk.
but i've tried ur instruction to use the awk files that u gave and when I ran it still can not worked, it said "fatal: division by zero" . I dont know why, do I have to add some coding for those awk files? or there's some error on the tcl?
Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

knudfl
This post was updated on .
> @justisiaaa
> awk scripts.

Assume `aodv20.tr´ from $ ns tes.tcl , with » set val(rp) AODV «.

$ awk -f Throughput2007.awk aodv20.tr
Average Throughput[kbps] = 68.94                 StartTime=63.20        StopTime=99.80
Average Throughput[kbps] = 68.94                 StartTime=63.20        StopTime=99.80

$ awk -f thpt.awk aodv20.tr
Throughput of flow -1 = 0 bps

$ awk -f genthroughput.awk ../aodv20.tr
Average Throughput[kbps] = -0.00      StartTime=400.00       StopTime=0.00


Delay : $ awk -f tess.awk aodv20.tr
==> Average delay 2 =  0 s
                     =  0 ms

Reply | Threaded
Open this post in threaded view
|

Re: LAR Patch

justisiaaa
This post has NOT been accepted by the mailing list yet.
> knudfl
> awk script

ok master, it works running with those script. thanks anyway. but, if it possible if the delay result is zero? is there any mistake or what?
and if I want to calculate the routing overhead, do you have another awk script? the awk script that u gave before contain just 1 awk script for routing overhead and it can not give the result..
12