[ns] Node Coordinates

2013-04-17 Thread Najma Ismat

Hi,I want to print the position of nodes at the start of the simulation on the 
terminal window, can anyone guide how to do that? I have included mobility 
pattern file in my tcl script for the node placement and position.Regards,Najma 



[ns] How to get a reference of a node from AODV?‏

2013-04-17 Thread jose nmrd





Hi everyone,
here is the problem, i have added some 
code to the class Node to do some computations, i'm modifying the 
protocol AODV where i have to use the computations added in the class 
Node, but after looking at the class AODV composition there is just the 
address of the Node, not the reference to the whole structure of the 
Node. so my question is how to get the reference of the node that the 
AODV agent is associated to so that i can access the attributes and 
functions and of course my added code of the class Node? if any one can 
help, thx in advance .
Xoce. 

[ns] debugging by printf statement

2013-04-17 Thread Sahil Sharma

Hi,

I have made the changes to 802_11.cc and added printf statements to it (I
have hereby attached a copy of the file). If you want to look for the
changes I have done, you may search for [[[  printf(adaptiveListen's cw is
%d\n, rTime)   ]. But I do not see any such statement in the trace
file produced. Where can I get to see this printed output.


Please help.

-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


Re: [ns] Maximum dataRate_

2013-04-17 Thread itishi saxena

Hello Abraham,

For getting such information you need to understand trace file.

You can check how much packet have been sent in particular time interval.

Becasue trace is the output of what is happeing or how protocol is behaving in 
such settings.


I hope it will help you.

Itishi







 From: Abraham, Stephen Dawit sdabr...@illinois.edu
To: ns-users@isi.edu ns-users@ISI.EDU 
Sent: Wednesday, 17 April 2013 9:18 AM
Subject: [ns] Maximum dataRate_
 


Hello everyone,

I was wondering if I could get some help regarding the dataRate_ variable for 
wireless simulations. I am currently working with ns-2.34.

In the sendData function in mac-802_11.cc, I am manually setting the dataRate_. 
However, I am setting it to relatively large values (in the hundreds of Mbps). 
Is there a maximum limit to what I change this variable to, and how can I 
confirm the variable is properly being set? I've currently been using 
tracegraph to see the differences in results when using a small vs. a large 
dataRate_.

Any help would be appreciated. Thanks in advance.


FW: [ns] How to get a reference of a node from AODV?‏

2013-04-17 Thread jose nmrd





Hi Itishi and thanks for the reply,
i know i have to create objects to access them, but currently in the class 
AODV.cc there only one variable index of type nsaddr_t which represents the 
address of the node [nsaddr_tindex;// IP Address of 
this node] but i don't know how to get the whole structure of Node because with 
this variable index i can't access the attributes of the node. in other words 
how to access classes AODV.cc and Node.cc from one to another? just by making 
them friends? 
for example if i put: $ns node-config -adhocRouting AODV, 
if i have a node N0 i want to get access to it from the AODV attached to it. 
Thank you very much again.
Xoce.

Date: Thu, 18 Apr 2013 06:31:23 +0800
From: itish...@yahoo.com
Subject: Re: [ns] How to get a reference of a node from AODV?‏
To: jose-...@hotmail.com; ns-users@ISI.EDU

Hello Jose,

For getting access to the node attribut you have to play with node.cc inside 
common folder in ns-2.34.

It is basically how you access method of one class toanother in c++.

so you have two classes aodv.cc and node.cc

you have to create object of one of them to access methods and they have to be 
friend of each other.

I hope it will give you sufficient hint for your task.


Itishi


From: jose nmrd jose-...@hotmail.com

 To: ns-users@isi.edu ns-users@ISI.EDU 
 Sent: Wednesday, 17 April 2013 5:30 PM
 Subject: [ns] How to get a reference of a node from AODV?‏
   





Hi everyone,
here is the problem, i have added some 
code to the class Node to do some computations, i'm modifying the 
protocol AODV where i have to use the computations added in the class 
Node, but after looking at the class AODV composition there is just the 
address of the Node, not the reference to the whole structure of the 
Node. so my question is how to get the reference of the node that the 
AODV agent is associated to so that i can access the attributes and 
functions and of course my added code of the class Node? if any one can 
help, thx in advance
 .
Xoce.   


  

Re: [ns] Node Coordinates

2013-04-17 Thread Tuan LE HUU NGUYEN

On 17/04/2013 2:00 CH, Najma Ismat wrote:
 Hi,I want to print the position of nodes at the start of the simulation on 
 the terminal window, can anyone guide how to do that? I have included 
 mobility pattern file in my tcl script for the node placement and 
 position.Regards,Najma 

Hi Najma,

You can try this code in TCL script:

set posx [$node1 set X_]
puts $posx

This will print out the X component of coordinates of node. Do the same 
thing for Y and Z (replace X_ with Y_  or Z_) (but actually you don't 
need the Z).

Best regards,



[ns] Fwd: selfish node detection

2013-04-17 Thread Ramaprabha N

Hi All,
   I am using Trust aware cluster head election in manet. How
can we calculate the trust value for a node?and how can we isolate a
selfish node once it has identified? I am using NS2.34.

-- 
*---
prabha*