Hello Tom,
Here are some of the AWK scripts required for post processing. An AWK script to 
calculate average jitter is also available here. 
http://mohit.ueuo.com/AWK_Scripts.html  or on this link
http://www.mohittahiliani.741.com/AWK_Scripts.html
Hope it helps.
Regards,Mohit P. Tahiliani
--- On Sat, 8/15/09, [email protected] <[email protected]> wrote:

From: [email protected] <[email protected]>
Subject: Ns-users Digest, Vol 68, Issue 14
To: [email protected]
Date: Saturday, August 15, 2009, 5:30 AM

Send Ns-users mailing list submissions to
    [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
    http://mailman.isi.edu/mailman/listinfo/ns-users
or, via email, send a message with subject or body 'help' to
    [email protected]

You can reach the person managing the list at
    [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ns-users digest..."


Today's Topics:

   1. Re: how to calculate delay/jitter (Tom G)
   2. Random Waypoint (ori and mish bgu)
   3. Re: Random Waypoint (Erlend Larsen)
   4. mobile ipv6 simulation (Oladapo Oluwadiya)
   5. Fw: DSR (Rania Kamal)


----------------------------------------------------------------------

Message: 1
Date: Fri, 14 Aug 2009 08:14:32 +0000 (GMT)
From: Tom G <[email protected]>
Subject: Re: [ns] how to calculate delay/jitter
To: Tom G <[email protected]>, ns users <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

I solved my problem.

This script is very useful I think. 
http://hpds.ee.ncku.edu.tw/~smallko/ns2/tool_en.htm
Perhaps it could help so. with similar problems

best regards
Tom



________________________________
Von: Tom G <[email protected]>
An: ns users <[email protected]>
Gesendet: Donnerstag, den 13. August 2009, 11:33:39 Uhr
Betreff: [ns] how to calculate delay/jitter


Hi,
I've got the next question.
following topology...
n0         n4
\        /
  n2----n3
/        \
n1         n5

how can I get the delay between Node0 and Node4? Every manual I found regarding 
this is limited to the delay between a Node and its Neighbour e.g. delay 
between n2 and n3. Is there a possibility for getting the delay, or have I to 
calculate it?

Also I have to calculate / get the jitter between node0 and node4. Therefor I 
have no idea how to realize that

I hope someone could send me useful suggestion.

best regards
Tom


      

------------------------------

Message: 2
Date: Fri, 14 Aug 2009 14:03:29 +0300
From: ori and mish bgu <[email protected]>
Subject: [ns] Random Waypoint
To: [email protected]
Message-ID:
    <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Dear ns-users

I want to add random waypoint to my ad-hoc network.
I can use setdest command to move the nodes ..
but first I wanted to see some examples of different implementations for
random waypoint models.
I googled this but haven't found any scripts..  actually I found this page
http://lrcwww.epfl.ch/RandomTrip/ but the link to the ns2 code seems to be
dead.
Anyone can please share any examples ?

Thanks
Michael


------------------------------

Message: 3
Date: Fri, 14 Aug 2009 13:33:24 +0200
From: Erlend Larsen <[email protected]>
Subject: Re: [ns] Random Waypoint
To: [email protected]
Message-ID:
    <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Try this link: http://monarch.cs.rice.edu/~santa/research/mobility/

Regards,
Erlend

On Fri, Aug 14, 2009 at 13:03, ori and mish bgu<[email protected]> wrote:
>
> Dear ns-users
>
> I want to add random waypoint to my ad-hoc network.
> I can use setdest command to move the nodes ..
> but first I wanted to see some examples of different implementations for
> random waypoint models.
> I googled this but haven't found any scripts.. ?actually I found this page
> http://lrcwww.epfl.ch/RandomTrip/ but the link to the ns2 code seems to be
> dead.
> Anyone can please share any examples ?
>
> Thanks
> Michael
>



------------------------------

Message: 4
Date: Fri, 14 Aug 2009 04:50:05 -0700 (PDT)
From: Oladapo Oluwadiya <[email protected]>
Subject: [ns] mobile ipv6 simulation
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=iso-8859-1

i tried running the mobile ipv6 scenario i ran for the mobile ipv4 using the

scripts below but i got an error "segmentation fault (core dumped)"when i tried

running the simulation.what do u think is the problem

thanks





# Basic Mobile IPv6 example without using ns-topoman

# Needs proc defined in file proc-mipv6-config.tcl



Agent/MIPv6/MN set bs_forwarding_ ? ? 0

################################################################

proc log-mn-movement_no_topo { } {

??global logtimer ns

??Class LogTimer -superclass Timer

??LogTimer instproc timeout {} {

?? ? ? ? global mobile_

?? ? ? ?$mobile_ log-movement

?? ? ? ?$self sched 1

??}

??set logtimer [new LogTimer]

??$logtimer sched 1

}



################################################################

# Create Topology

################################################################

proc create-my-topo {} {

??global ns opt topo mobile_ cn_ mnn_nodes_



??# Create and define topography

??set topo ? ? ? ?[new Topography]

??# ? set prop ? ? ? ?[new $opt(prop)]

??# ? $prop topography $topo

??$topo load_flatgrid 1500 1500





??# god is a necessary object when wireless is used

??# set to a value equal to the number of mobile nodes

??create-god 5



??# Call node-config

??$ns node-config \

?? ? ? ?-addressType hierarchical \

?? ? ? ? -agentTrace ON \

?? ? ? ? -routerTrace ON



??# Set NS Addressing

??AddrParams set domain_num_ 5

??AddrParams set cluster_num_ {4 1 1 1 1}

??AddrParams set nodes_num_ {1 1 1 1 2 1 1 1 }



??# Create Nodes

??set cn_ [create-router 0.0.0]

??set router1_ [create-router 1.0.0]

??set router2_ [create-router 2.0.0]

??set router3_ [create-router 3.0.0]

??set bs1_ [create-base-station 1.1.0 1.0.0 200 200 0]

??set bs2_ [create-base-station 1.2.0 1.0.0 200 600 0]

??set bs3_ [create-base-station 1.3.0 1.0.0 600 200 0]

??set bs4_ [create-base-station 1.4.0 1.0.0 600 600 0]

??set mobile_ [create-mobile 1.1.1 1.1.0 190 190 0 1 0.01]

??$bs1_ random-motion 0

??$bs2_ random-motion 0

??$bs3_ random-motion 0

??$bs4_ random-motion 0



??# Position (fixed) for base-station nodes (HA & FA).

??$bs1_ set X_ 250.000000000000

??$bs1_ set Y_ 1050.000000000000

??$bs1_ set Z_ 0.000000000000



??$bs2_ set X_ 950.000000000000

??$bs2_ set Y_ 1050.000000000000

??$bs2_ set Z_ 0.000000000000



??$bs3_ set X_ 950.000000000000

??$bs3_ set Y_ 300.000000000000

??$bs3_ set Z_ 0.000000000000



??$bs4_ set X_ 250.000000000000

??$bs4_ set Y_ 300.000000000000

??$bs4_ set Z_ 0.000000000000









??# Create Links

??$ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail

??$ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail

??$ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail

??$ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail

??$ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail

??$ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail

??$ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail



??$ns duplex-link-op $cn_ $router1_ orient down

??$ns duplex-link-op $router1_ $router2_ orient left-down

??$ns duplex-link-op $router1_ $router3_ orient right-down

??$ns duplex-link-op $router2_ $bs1_ orient left-down

??$ns duplex-link-op $router2_ $bs2_ orient right-down

??$ns duplex-link-op $router3_ $bs3_ orient down

??$ns duplex-link-op $router3_ $bs4_ orient right-down



??# movement of the MH

??$mobile_ set Z_ 0.000000000000

??$mobile_ set Y_ 1000.000000000000

??$mobile_ set X_ 250.000000000000



??# MH starts to move towards FA1

??$ns at 10.000000000000 "$mobile_ setdest 950.000000000000

1000.000000000000 20.000000000000"

??# MH move from FA1 towards FA2

??$ns at 50.000000000000 "$mobile_ setdest 950.000000000000

350.000000000000 20.000000000000"

??# MH move from FA2 towards FA3

??$ns at 85.000000000000 "$mobile_ setdest 250.000000000000

350.000000000000 20.000000000000"





??display_ns_addr_domain

}



################################################################

# End of Simulation

################################################################

proc finish { } {

??global tracef ns namf opt mobile_ cn_



??puts "Simulation finished"

??# Dump the Binding Update List of MN and Binding Cache of HA

??[[$mobile_ set ha_] set regagent_] dump

??[$cn_ set regagent_] dump

??[$mobile_ set regagent_] dump



??$ns flush-trace

??flush $tracef

??close $tracef

??close $namf

??#puts "running nam with $opt(namfile) ... "

??#exec nam $opt(namfile) &

??exit 0

}





################################################################

# Main

################################################################

proc main { } {

?? global opt ns TOPOM namf n tracef mobile_ cn_

?? # Source Files

?? # source set-def-options.tcl

?? # set BASEDIR to your own correct path

?? source 

/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl

?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-tools.tcl

?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-topo.tcl

?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/ns-topoman.tcl

?? source 

/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-global.tcl

?? source 

/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-config.tcl

?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl







?? set NAMF out.nam

?? set TRACEF out.tr

?? set INFOF out.info



?? set opt(mactrace) ON

?? set opt(NAM) 1

?? set opt(namfile) $NAMF

?? set opt(stop) 130

?? set opt(tracefile) $TRACEF



?? #>--------------- Extract options from command line ---------------<

?? #Getopt ? ? ? ?; # Get option from the command line

?? #DisplayCommandLine



?? #>---------------------- Simulator Settings ----------------------<

?? set ns [new Simulator]



?? #>------------------------ Open trace files ----------------------<

?? exec rm -f $opt(tracefile)

?? set tracef [open $opt(tracefile) w]

?? #... dump the file

?? $ns trace-all $tracef



?? set namf [open $opt(namfile) w]

?? $ns namtrace-all $namf



?? #>------------- Protocol and Topology Settings -------------------<

?? create-my-topo

?? log-mn-movement_no_topo



?? set-cbr

?? # set-ping-int 0.1 $cn_ $mobile_ 10 $opt(stop)











?? #>----------------------- Run Simulation -------------------------<

?? $ns at $opt(stop) "finish"

?? $ns run



?? $ns dump-topology $namf

?? close $namf

?? #puts "running nam with $opt(namfile) ... "

?? #exec nam $opt(namfile) &

}



proc set-cbr { } {

?? global ns cn_ mobile_

?? set tcp1 [new Agent/TCP]

?? $ns attach-agent $cn_ $tcp1



?? set dst [new Agent/TCPSink]

?? $ns attach-agent $mobile_ $dst

?? $ns connect $tcp1 $dst



?? set ftp1 [new Application/FTP]

?? $ftp1 set packetSize_ 1040

?? $ftp1 set rate_ 100k

?? $ftp1 set interval_ 0.05

?? $ftp1 attach-agent $tcp1

?? ?$ns at 10.0 "$ftp1 start"

}



main




      

------------------------------

Message: 5
Date: Fri, 14 Aug 2009 07:23:18 -0700 (PDT)
From: Rania Kamal <[email protected]>
Subject: [ns] Fw: DSR
To: ns mail <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

hi all
did anyone know how can i get DSR code for Broch et. al., or how can i modify 
the tcl script attached according to the following simulation parameters to get 
high packet delievery ratio, around 0.8 to 0.98
?
the simulation parameters:
    * simulations are for networks of 50, 112, and 200 nodes with 802.11 
WaveLAN radios, with a nominal 250-meter range.We simulate 30 CBR traffic 
flows, originated by 22 sending nodes. Each CBR flow sends atEach simulation 
lasts for 900 seconds of simulated time. 
    * The nodes are initially placed uniformly at random in a rectangular 
region. All nodes move according to the random waypoint model, with a maximum 
velocity of 20 m/s. 
    * We simulate pause times of 0, 30, 60, and 120 seconds, the highest 
mobility cases,
    * 
    * 2 Kbps, and uses 64-byte packets.?
    * 
    * We simulate at each pause time with six different randomly generated 
motion patterns, and present the mean of each metric over these six runs. 
thanks alot



      
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dsr-p-120.tcl
Url: 
http://mailman.isi.edu/pipermail/ns-users/attachments/20090814/8e05f3cc/dsr-p-120-0001.ksh

------------------------------

_______________________________________________
Ns-users mailing list
[email protected]
http://mailman.isi.edu/mailman/listinfo/ns-users


End of Ns-users Digest, Vol 68, Issue 14
****************************************



      

Reply via email to