[ns] the link between node and assigned queue for that node

2008-02-26 Thread Semra YILMAZ

Dear ns-users,
I want to check the queue occupancy while a packet loss occurs, but i could not 
find any relation between node and assigned queue for that node in the source 
code. Does anybody know where (in which file) this link is created in the 
source code.
 
Best regards,
Semra
##
Dikkat:

Bu elektronik posta mesaji kisisel ve ozeldir. Eger size 
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. 
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, 
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki 
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi 
gorusu olmak zorunda degildir.

##
Attention: 

This e-mail message is privileged and confidential. If you are 
not the intended recipient please delete the message and notify 
the sender. E-mails to and from the company are monitored for 
operational reasons and in accordance with lawful business practices. 
Any views or opinions presented are solely those of the author and 
do not necessarily represent the views of the company.

##



[ns] IP Simulations in ns2

2008-02-26 Thread Mukul Shukla

  
Dear ns users,

I want some help regarding the simulation of IP network protocols e.g. ICMP, 
CIDR, NAT etc. Why doesn't ns2 support IP simulations? If need to add the 
support for these protocols where should I start?

Kindly help.

Mukul Shukla
INDIA


[ns] ad hoc networks

2008-02-26 Thread azg

Hi, please, has anybody used ns2 for ad hoc networks?? It seems I have a 
problem with positioning... in the code below initial_node_position launch 
the following error 
=== -bash-3.00$ 
ns ex3.tcl num_nodes is set 3 INITIALIZE THE LIST xListHead

(_o3 cmd line 1)
invoked from within
"_o3 cmd initial_node_position _o14 20"
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 "_o3" line 2)
(SplitObject unknown line 2)
invoked from within
"$ns initial_node_position $node(0) 20"
(file "ex3.tcl" line 78)
-bash-3.00$
=

And the tcl code is this:

# Create simulator
set ns [new Simulator]

# Create a topology in a 670m x 670m area
set topo [new Topography]
$topo load_flatgrid 670 670

# ns trace and nam trace
$ns trace-all [open ns.tr w]
$ns namtrace-all-wireless [open ns.nam w] 670 670

# Create God
set god [create-god 3]

# Define how to create a mobile node
$ns node-config \
-adhocRouting DSR \
-llType LL \
-macType Mac/802_11 \
-ifqLen 50 \
-ifqType Queue/DropTail/PriQueue \
-phyType Phy/WirelessPhy \
-antType Antenna/OmniAntenna \
-propType Propagation/TwoRayGround \
-channel [new Channel/WirelessChannel] \
-topoInstance $topo \
-agentTrace ON \
-routerTrace OFF \
-macTrace OFF \
-movementTrace OFF

# Create mobile nodes
for {set i 0} {$i<3} {incr i} {
set node($i) [$ns node]
# disable random motion for static network
$node($i) random-motion 0
}

# Define movement model (if applicable)
#source movement-scenario-files
# Define traffic model (if applicable)
#source traffic-scenario-files

$node(0) set X_ 83.4
$node(0) set Y_ 239.4
$node(0) set Z_ 0.0
$node(1) set X_ 257.1
$node(1) set Y_ 345.4
$node(1) set Z_ 0.0
$node(2) set X_ 591.3
$node(2) set Y_ 199.4
$node(2) set Z_ 0.0
$ns at 33.0 "$node(0) setdest 89.7 283.5 19.2"
$ns at 51.0 "$node(1) setdest 221.8 80.9 14.9"
$ns at 50.0 "$node(2) setdest 369.5 170.5 3.4"



set udp_(0) [new Agent/UDP]
$ns attach-agent $node(0) $udp_(0)
set null_(0) [new Agent/Null]
$ns attach-agent $node(2) $null_(0)
set cbr_(0) [new Application/Traffic/CBR]
$cbr_(0) set packetSize_ 1000
$cbr_(0) set interval_ 4.0
$cbr_(0) set random_ 1
$cbr_(0) set maxpkts_ 1
$cbr_(0) attach-agent $udp_(0)
$ns connect $udp_(0) $null_(0)
$ns at 20.0 "$cbr_(0) start"


# Define node initial position in nam
#for {set i 0} {$i < 3} {incr i} {
#$ns initial_node_position $node($i) 20
#}

$ns initial_node_position $node(0) 20
$ns initial_node_position $node(1) 20
$ns initial_node_position $node(2) 20

# Tell ns/nam the simulation stop time
$ns at 100.0 "$ns nam-end-wireless 100.0"
$ns at 100.0 "$ns halt"
# Start your simulation
$ns run
=

Any suggestion is more than welcome,
Thanks,
Adriano

This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.



[ns] problem with target_

2008-02-26 Thread Janine Kniess




Janine Kniess




Re: [ns] repeat simulation

2008-02-26 Thread Samer Bali

Hi Basim,

Let me simplify this issue as following:
Suppose that I want to run a simulation experiment only once. To do so I
should type the following 15 commands:

(1) nsuwb pl.tcl regular uwb AODV 1 f 11 1
(2) grep -e "s -t " /root/results/pl/regular/uwb/AODV/uwb-AODV-1-11-1.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-sent.tr
(3) grep -e "tcp -Il 1064"
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-sent.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-sentdata.tr
(4) grep -e "-It AODV "
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-sent.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp1.tr
(5) grep -F -f /root/simulation/trace/grepfiles/frs1.txt
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp1.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp2.tr
(6) grep -F -f /root/simulation/trace/grepfiles/frd1.txt
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp2.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-sentAODV.tr
(7) grep -e "r -t " /root/results/pl/regular/uwb/AODV/uwb-AODV-1-11-1.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp1.tr
(8) grep -e "tcp -Il 1084"
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp1.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp2.tr
(9) grep -e "-Nl AGT "
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp2.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-recvdata.tr
(10) grep -e "d -t " /root/results/pl/regular/uwb/AODV/uwb-AODV-1-11-1.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp1.tr
(11) grep -e "tcp -Il "
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp1.tr >
/root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-dropped.tr
(12) rm /root/results/pl/regular/uwb/AODV/uwb-AODV-1-11-1.tr
(13) rm /root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-sent.tr
(14) rm /root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp1.tr
(15) rm /root/results/pl/regular/uwb/AODV/f1/uwb-AODV-1-11-1-temp2.tr

The first command run the simulation and it results in one trace file
"uwb-AODV-1-11-1.tr" (NOTE: I renamed my ns-2 simulator name, so I typed
"nsuwb" instead of "ns" because I used a version that support UWB networks).
Now to obtain information about throughput, routing overhead, ...etc, I
found it is better to filter the original trace file and replace it with 4
small files. This is done with commands (2) to (11). Then I deleted the
unwanted files from my system with commands (12) to (15).

Note: the first five parameters (regular uwb AODV 1 f) are specified in my
code in the file "run_pl". The 6th and 7th (11 1) parameters are added by "
gen_pl.tcl". The 6th parameter specifies the distance between nodes (in the
above example it is 11m), while the 7th parameter determines the seed of the
simulation. In my network scenario, I varied the distance between nodes from
1 to 30m with a step of 1. For each distance value I repeated the simulation
50 times.

So imagine this, to run 30X50 simulation, I should write 30X50X15 commands
which is of course unfeasible to do manually!!! So I chose to generate these
commands automatically using "gen_pl.tcl". These commands will be listed in
the file "run_pl_sim".

To sum up, the file "run_pl" will use the file "gen_pl.tcl" to generate a
file called "run_pl_sim" in which 30X50 simulation runs will be listed, in
addition to some commands to extract 4 trace files from the original trace
file for each simulation run. Then the file "run_pl_sim" will be executed.

Then, In MATLAB, run the file "info_pl" with the same 5 parameters as in
"run_pl" file. This will extract the useful information from the trace
files. Here, every 4 trace files that represents one simulation run is
replaced by one file with only one line (containing information such as
number of sent packets, dropped packets, received packet, connection time,
...etc). Therefore, the 6000 trace files will be replaced by 30X50 = 1500
files.

Then, In MATLAB also, run the file "analyse_pl" with the same 5 parameters
as in "run_pl" file. This will calculate throughput, routing overhead,
...etc, for each file of the 1500 files. the file "analyse_pl" will
generates two files, one file contains 30X50 = 1500 lines (no average is
provided), and the other file contains the average of every 50 simulation
corresponding to a certain distance between nodes, that is, the second file
contains 30 lines, each line contains the average throughput, average
routing overhead, ...etc.

As I said before, I wrote this code for my own use. I did not write enough
documentation so that other people can use it. But I hope that this email
gives some hints for those who want to understand this code. 

Also, I think one will get more hints when he understand the network
scenario simulated by this code. For more information about the network
scenario (node mobility, traffic, . etc.) see the following paper:
S. Bali, J. Steuer and K. Jobmann, "Performance of Three Rout

[ns] Regarding wireless simulation

2008-02-26 Thread jayachandra gullapalli

Hi,
 
I am working on simulations with wireless adhoc networks, I need to configure 
nodes with different sets of energies? How should I write a script to configure 
nodes with different energies?
 
Thanks,
Jayachandra.


  Download prohibited? No problem. CHAT from any browser, without download. 
Go to http://in.messenger.yahoo.com/webmessengerpromo.php/


[ns] Analysis of Energy Parameters for Wireless Nodes from trace file

2008-02-26 Thread Siddharth Rane

hi,
   
  I'm working on the energy efficiency of protocols in MANETs. Can anyone 
please tell me on how to analyse the energy parameters from the trace file. I 
tried using NAM, but the energy data seems to be missing from the NAM file. 
Please advice.
   
  Regards
   
  Siddharth

   
-
 Get the freedom to save as many mails as you wish. Click here to know how.


[ns] Performance change due to change data order in packets header: Could anybody explain???

2008-02-26 Thread Ghada Al-Mashaqbeh

Hi all,
   
  I have modified AODV protocol to support other routing metric than hop-count, 
at the final stages of performance testing I have realized the following:
   
  I have added new fields to RREQ and RREP packets, lets say I have added three 
quantities of type double (x, y, z) to the RREQ to allow intermediate nodes to 
calculate the new  route metric. What I have realized that the protocol 
performance will be different for the following two cases:
  -- if I have added these values as an array to the RREQ header (i.e.double  
new_metric[3]), 
  -- if I add them as a three elements (i.e. double x, double y, double z).
   
  Also if only one element of the array is filled (i.e. new_metric[0], for 
example) the performance will be different from having all array elements are 
filled.
   
  I am measuring the total network throughput, the results are different for 
different RREQ format elements arrangements.
   
  Can any body explain this to me? what is happening here?
   
  Thanks,
   
  Ghada

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.


[ns] DMAC and NAV Implementation

2008-02-26 Thread Stankiewicz Bredkjaer


Hi,

I've already read the Archives, 
but all provided links about Directional MAC
and Network Allocation Vector (NAV) don't work anymore.
Therefore i would be pleased if someone could show me where to find an ns-2 
implementation of
the DMAC (directional-MAC) protocol, the directional antenna and/or the 
Directional Network Allocation Vector(DNAV).

Thanks.

Stan.

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.


[ns] about Zigbee routing module

2008-02-26 Thread 鲁德来


Dear Friends:
 Here, I am wondering on your 802.15.4 module.
 
 That is when I want to assign a tree address to the joining device, we 
will get into the  "void SSCS802_15_4::MLME_ASSOCIATE_indication"
function, here I want to to assign the address by calling the zbr agent 
function .
 I am wondering how you can call the zbr agent function and variables ?that 
is how we should do "zbr = getZBRLink(mac->index_);" to get the local routing 
agent pointer in sscs.cc file?
 
 your reply will be really appreciated, thanks alot in advance!
 
yours, Delai Lu
_
MSN圣诞礼物火热登场,免费发放中,快来领取吧!
http://im.live.cn/emoticons/?ID=18

[ns] help me regarging handoff simulation plz

2008-02-26 Thread rashi saxena

hello all

   i want to simulate soft handoff of cellular network by using ns-2 but i 
don't have any idea abt that plz tellme is their any script available or not?i 
have to simulate call blocking and call dropping probability of soft handoff of 
CDMA and GSM network

plz help me out

plz.i'll be thankful to u


Rashi Saxena
India


[ns] Routing protocols on multiple interface (MW-Node or not?)

2008-02-26 Thread Razvan Stanica


Hello all,

I am trying to simulate mobile nodes with multiple interface and using
 different routing protocols for each interface. I have applied the
 MW-Node patch from here:
http://www.q2s.ntnu.no/~paquerea/ns.html
However, from the provided documentation I understood that the existing
 protocols don't work with this patch and they have to be adapted. I
 haven't made any changes in the C++ libraries until now and I am afraid I
 would do some fatal mistake. Does anyone have an example of a protocol
 adapted for MW-Node or at least some guidelines? Or does anyone knows
 a different patch that might provide multiple interface with different
 routing protocols?

Thank you,

Razvan.

   
-
 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 


[ns] ADTFRC MODULE FOR NS2

2008-02-26 Thread abhijit subramanya

HI all

i am looking for the ADTFRC code for ns2 .
please mail me the code if you guyz have it or provide me the email ids of
some people who would have implemented it.
thanks.


Re: [ns] repeat simulation

2008-02-26 Thread Samer Bali

Hi Basim,

Yes, you are right. The file "gen_pl.tcl" generates a file called
"run_pl_sim" in which 30X50 simulation runs (using the file "pl.tcl" and the
default values listed in the file "defaults-802.15.4a.tcl") will be listed,
i.e., there is 30 simulation experiments, and each experiment is repeated 50
times. 

Also the file "run_pl_sim" will contain some commands to extract 4 trace
files from the original trace file for each simulation run (using the files
frd1.txt, frd3.txt, frd8.txt, frs1.txt, frs3.txt, and frs8.txt). 

When the file "run_pl_sim" is executed , there will be 30X50X4 = 6000 trace
files.

(*) What should I do with these 6000 trace files?
In MATLAB, run the file "info_pl.m" with the same 5 parameters as in
"run_pl" file (see file 'instructions-before-using-codes.txt'). This will
extract the useful information from the trace files. The 6000 trace files
will be replaced by 30X50 files.
(NOTE: "run_pl" and "info_pl" can be executed simultaneously to save time)

(*) What should I do with the 1500 information files?
In MATLAB, run the file "analyse_pl.m" with the same 5 parameters as in
"run_pl" file. This will tabulate the results obtained from 1500 files into
one file only.

(*) What should I do with this one file?
In MATLAB, run the file "plot_pl_avg.m" to obtain various plots and graphs.

Hope this help.

Best wishes,
Samer

-Original Message-
From: Basim Javed [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 26, 2008 11:35 AM
To: Samer Bali
Subject: Re: [ns] repeat simulation

Hello Samer

its a nice effort.
after having an overview, I think u wrote your code in tcl. right?

would u kindly guide me, as also I want to run many simulations:

whats the high level view of your approach? what i mean is:

BIG PICTURE
loop:

initialize NS
create a scenario
run the simulation
get the results processed
terminate NS

end loop:

Also could you plz specify how are u getting the throughput stuff by
processing the out.tr files by something like perl...? How do u
average out the throughput for different runs, as I guess, you would
get different separate out.tr files?

thanks many.
basim
On Tue, Feb 26, 2008 at 10:55 AM, Samer Bali <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> I wrote a code to calculate many parameters: packet delivery ratio,
> normalized throughput, routing overhead ratio, end2end delay, hop count
and
> connection time. Furthermore, this code is suitable in case you want to
> repeat your simulation experiment many times to take the average of them.
> This code is freely available and you can download it from the following
> link between '(' and  ')':
>
> (
>
http://www.ikt.uni-hannover.de/fileadmin/institut/mitarbeiter/bali/pl-sim-1.
> 1.zip )
>
> There is a text file that explains how to use the code. However, I wrote
> this code for my own use and for my specific scenario.
>
> Best Regards,
> Samer
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of amel ksentini
> Sent: Monday, February 25, 2008 11:13 AM
> To: ns-users@ISI.EDU
> Subject: [ns] repeat simulation
>
>
> hi everybody
> how can i repeat a simulation in a script?
> is there a proc to implement in the script ti do so?
> thanks
>
>



Re: [ns] repeat simulation

2008-02-26 Thread Samer Bali

Hi,

I wrote a code to calculate many parameters: packet delivery ratio,
normalized throughput, routing overhead ratio, end2end delay, hop count and
connection time. Furthermore, this code is suitable in case you want to
repeat your simulation experiment many times to take the average of them.
This code is freely available and you can download it from the following
link between '(' and  ')':

(
http://www.ikt.uni-hannover.de/fileadmin/institut/mitarbeiter/bali/pl-sim-1.
1.zip )

There is a text file that explains how to use the code. However, I wrote
this code for my own use and for my specific scenario.

Best Regards,
Samer

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of amel ksentini
Sent: Monday, February 25, 2008 11:13 AM
To: ns-users@ISI.EDU
Subject: [ns] repeat simulation


hi everybody
how can i repeat a simulation in a script?
is there a proc to implement in the script ti do so?
thanks



[ns] about call the routing agent in mac layer in wireless node

2008-02-26 Thread 鲁德来


Dear all: I want to define a ZBRP *zbr in constructor of sscs, so I can 
call the zbr function freely. in node config -adhocrouting aodv \   
-mac mac802.15.4 \ how can I do that, because the zbr agent has been 
constructed when node was making in [ns node] thanks alot in advance yours suser
_
MSN圣诞礼物火热登场,免费发放中,快来领取吧!
http://im.live.cn/emoticons/?ID=18