[ns] code for calculating performance metrics

2009-07-30 Thread priyanka ramani


 hello everybody

am using NS2 4 my thesis and simulating a wireless n/w... i need to compare 
performance metrics lik ( throughput,routing load, packet delay) for dsr and 
aodv... and i dont have idea for calculating these could anyone plz, help 
me in sharing me the sample code for these that retriving the datas from trace 
files..

thank u in advance,
regards,
 
Priyanka 







From: "ns-users-requ...@isi.edu" 
To: ns-users@ISI.EDU
Sent: Thursday, 30 July, 2009 5:31:16 AM
Subject: Ns-users Digest, Vol 67, Issue 29

Send Ns-users mailing list submissions to
    ns-users@isi.edu

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
    ns-users-requ...@isi.edu

You can reach the person managing the list at
    ns-users-ow...@isi.edu

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


Today's Topics:

  1. Re: Qos in routing protocol for ad hoc (qweq adcsad)
  2. Priority Controll and different package size (Tom G)
  3. Mobile node not handing over in mobile ip scenario
      (Oladapo Oluwadiya)
  4. Re: awk scripts for calculating delay,    throughput and packet
      loss in wireless networks (S.M. Fahim Al-Faruqui)
  5. UWB + OLSR wirless network - A working combination.
      (2...@email.it)


--

Message: 1
Date: Wed, 29 Jul 2009 01:00:20 -0700 (PDT)
From: qweq adcsad 
Subject: Re: [ns] Qos in routing protocol for ad hoc
To: ns-users@ISI.EDU, Yota Alexiou 
Message-ID: <278170.90930...@web62408.mail.re1.yahoo.com>
Content-Type: text/plain; charset=us-ascii



1)At first  be specific. Determine which Link Metric is in ur consideration.

2)Then look for the suitable routing protocol that deals with those link metric 
in contributed code for NS2 .

3) If it is available, move forward;
                        else write codes and incorporate it NS2 :(


--- On Tue, 7/28/09, Yota Alexiou  wrote:

> From: Yota Alexiou 
> Subject: [ns] Qos in routing protocol for ad hoc
> To: ns-users@ISI.EDU
> Date: Tuesday, July 28, 2009, 1:48 PM
> 
> 
> Hello!I am doing my thesis on qos in routing for ad hoc
> networks!Has anyone got the qos version for AODV routing
> protocol or any other routing protocol that supports qos
> implemented in ns2??I would be really grateful if anyone
> could help me beacuse I m running out of
> time!!Pleaase!!!
> 
> Thank you in advance!! 
> 
> _
> Show them the way! Add maps and directions to your party
> invites. 
> http://www.microsoft.com/windows/windowslive/products/events.aspx
> 


      



--

Message: 2
Date: Wed, 29 Jul 2009 08:26:14 + (GMT)
From: Tom G 
Subject: [ns] Priority Controll and different package size
To: ns users 
Message-ID: <426274.54281...@web24714.mail.ird.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

Hi ns2 users

0                4
\                /
  2--->3
/                \
1                5

I send audio data from Node 0 to Node 4. The Link between Node 2 and Node 3 
should be scientific overloaded. Therefor there is further UDP Traffic from 
Node 1 to Node 5.
The Audio Signals are realised with a RTP Agent and a RealAudio Application

And here is my question:
Why does my Priority control not work? (It's in the Funktion 
"attach-expoo-traffic")
I guess I forgot something but I don't know what.

Further my next problem?
How can I change the RTP package size of my audio signals?

Following my code:

proc record {} {
    global ns sink4 sink5 f0 f1 f3 lf monFile ;#qmon samples
    #Get an instance of the simulator
    #Set the time after which the procedure should be called again
    set time 0.025
    #How many bytes have been received by the traffic sinks?
    set bw0 [$sink4 set bytes_]
    set bw1 [$sink5 set bytes_]
    #Get the current time
    set now [$ns now]
    #Calculate the bandwidth (in MBit/s) and write it to the files
    puts $f0 "$now [expr $bw0/$time*8/100]"
    puts $f1 "$now [expr $bw1/$time*8/100]"
    puts $f3 "$now [expr ($bw0+$bw1)/$time*8/100]"
    #Reset the bytes_ values on the traffic sinks
    $sink4 set bytes_ 0
    $sink5 set bytes_ 0
    #Re-schedule the procedure
    $ns at [expr $now+$time] "record"
}

proc record1 {qmon samples} {
    global ns monFile 
    set throughput [expr [$qmon set bdepartures_]*3.2/1.9]
    set byteint [$qmon get-bytes-integrator]
    if {[$samples cnt] != 0} {
        set mean [$samples mean]
    } else {
        set mean 0
    }
    puts $monFile "[$ns now] $throughput [$qmon set bdrops_] [$byteint set 
sum_] $mean"
    $qmon reset
    $samples reset
    $ns at [expr [$ns now]+0.025] "record1 $qmon $samples"
}

proc attach-expoo-traffic { node si

[ns] awk script error

2009-07-30 Thread Oladapo Oluwadiya

hello ,

i am having error for this line command %g\n",

pkt_id,time,pkt_id,recv[pkt_id]-send[pkt_id]) when i run the awk script.

the error is: backslash not last character on line

Pls help






  


  


[ns] what is this error "segmentation fault (core dumped)"

2009-07-30 Thread soheila rahmani

Hi friends
i write a wireless network with 6node. i have an error
"segmentation fault (core dumped)"
if i reduce distance betwen node 5 and 6 this error dosen't show but i saw
in nam,  packets send from node 4 to 6 and dosen't send to node 5!! why ?

my topoloy :
 node1--node2- node3-node4--node5---node6


[ns] Hashing in AODV - need help

2009-07-30 Thread S.M. Fahim Al-Faruqui

Dear ns-users,

Hope you are well.

How can I implement hashing function/technique in AODV?
Each mobile nodes has some data say some interger numbers. I have to
implement hashing to search local database in each wireless nodes to find a
specific data (for example, a number).

Please advise what sort of coding required to do this and which file(s)
those coding shoud be added.

I desparately need this advise. Haven't found anything at the Internet so
far for this.
Please help me ns-users !!

Regards.


Re: [ns] MIH for heterogeneous network

2009-07-30 Thread RobiN





From: RobiN 
Subject: Re: [ns] MIH for heterogeneous network
To: "zhujian" 
Date: Wednesday, July 29, 2009, 2:14 PM

Hi, can you tell the detail of project you are working ? 
I also work on heterogenous network ( Umts - WiMAX ) but I'm trying with MIP,I 
guess these MIH and MIP have similar function in heterogenous 
networkregards,Robin Ahmad
--- On Tue, 7/28/09, zhujian  wrote:

From: zhujian 
Subject: [ns] MIH for heterogeneous network
To: ns-users@ISI.EDU
Date: Tuesday, July 28, 2009, 4:15 AM


Hi:

         ALL!

         Is there anybody studying the model of MIH for heterogeneous
network provided by NIST. I have studied the model
 for about one month, but
there are still some problem I can’t find the answer. I need some friends
to discuss.

         If you are, pls reply to me. Thank you!

 

祝 建建 |  Zhu Jian Jian

- 

Master 

School of Information Science and Technology

Southwest Jiaotong University

Chengdu, Sichuan 610031 P.R. China

Phone:13540654875

 




  


  

[ns] ns-2 for WiMAX source code available

2009-07-30 Thread Erich Izdepski

All-

The source code for the ns-2 release 2.6 for WiMAX System model (latest)
is available. See this post for details.

 

http://community.4gdeveloper.com/projects/community/boards/show/11

 

Erich Izdepski

sent from my super-computer

703.906.5752

Clearwire

 



[ns] Access to mac layer from above

2009-07-30 Thread ori and mish bgu

Hi Guys

I am currently running a wireless simulation with few (4-8) nodes.
In order to gather statistics and analyse my simulation better I want to
access all the mac layers
of all the wireless nodes, do some calculations (average and std) and print
the resulting data in the nam window.

>From where can I access all the macs ?

>From my understanding it's God that created all the mobilenodes, maybe can I
add a function there ?
The God object contains pointers to all mobilenodes, but I don't know how to
access the mac layer with this pointer,
maybe I'm totally miss something here, it would be nice if you could help me
out here.

And another thingy,.. how can I print to the console in nam ?
(from the code itself - C++ and from the Tcl) :)

Thanks
Michael


Re: [ns] NS-2 on Virtual Ubuntu over Windows Vista using VMWare Player

2009-07-30 Thread Cesar Cardenas

Dear all,
I am trying to install NS-2.34 on Virtual Ubuntu 9.04 over Windows Vista
using VMWare Player 2.5.2. Looking in the ns-users list I found the
following question similar to my results but for above settings:

http://mailman.isi.edu/pipermail/ns-users/2006-November/057983.html

I tried the allinone version of ns-2.34

I would appreciate if you could point me to a possible solution so I could
install NS-2.34 in the environment I described.

Waiting for your comments, please accept my best regards,
Cesar


[ns] adding a new field

2009-07-30 Thread najwa al_mawajdeh


hi every body ,

did any body try to add a new field to the RREQ or RREP in AODV OR MADOV

thanks

Najwa 





_
With Windows Live, you can organize, edit, and share your photos.
http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx


[ns] proper implementation of a new protocol with all mobile nodes

2009-07-30 Thread Marshall K Riley

I am working on a new message authentication protocol for vehicular ad-hoc
networks (VANETs).  I am relatively new to utilizing NS-2, a few months of
working with it off and on.  My whole simulation will consist of mobile
nodes and use one of the routing algorithms designed for them (i.e. DSR,
DSDV, AODV, etc.).  I thought I was going along the correct route of
creating my protocol as a new Agent and then using the OTcl portion to
handle routing, link layer, MAC layer, etc. by using the node-config
options.  As of late I am doubting this because, for the DSR example, I
see more and more examples referring to the actual DSRAgent code to
utilize the DSR routing algorithm.
So I guess one of my questions is, which should I be using?  I know there
are changes in the way NS-2 handles node creation but I don't know if the
reason why I see the conflicting examples is because of that or because of
another reason.  Am I wrong in thinking my protocol should be at the Agent
level as opposed to the Application level?  I am wanting to control when a
packet is broadcast/unicast and its contents.

Marshall