Re: [ns] MAC layer implementation

2013-05-28 Thread Saravanan Kandasamy

Dear Gomathi,

Your question is not clear. What neighbor you are looking for? If you
are looking for routing neighbours you can only do in routing layer.
If you are looking for Radio Range or Carrier Sense neightbour you can
do either using
a) routing.cc - this approach has been recently elaborated, kindly
check the NS2 messages archive ,or
b) channel.cc - WirelessChannel::getAffectedNodes() would be of your
interest. Do take note, if you use this approach, you would need to
modify the square radio range to a circular radio range to better
exhibit the transmission property of radio of a wireless node.

Dont think you could do MAC layer in the present form, as the
neighbour management is only done in routing layer.

Good Luck.

rgds
Saravanan K


On Mon, May 27, 2013 at 4:13 AM, Gomathi Rajamanickam
gomathi250...@gmail.com wrote:

 Hi,
 I am doing my project in MAC layer. I want to form a neighbor table for
 each node in MAC layer. Please any one help me how to form neighbor list in
 MAC layer?

 Regards,
  R. Gomathi



Re: [ns] Collision measurement

2013-05-28 Thread Saravanan Kandasamy

Pedro,

The tracefile will be useful for you.
Good Luck.

rgds
Saravanan K

On Fri, May 24, 2013 at 6:15 AM, pedro chaparro pdr...@gmail.com wrote:

 Hi All, there is some way to measure the number of collisions in a wireless
 802.11 scenario?

 --
 Pedro Alonso Chaparro Valero RD Engineer
 Ciudad Politecnica de la InnovaciĆ³n
 iTEAM - Mobile Communications Group
 Polytechnic University of Valencia
 C\ Camino de Vera S/N, Edificio 8G
 46022 Valencia, Spain



[ns] regarding implementation of queuing mechanisms FIFO, PQ and WFQ in NS2

2013-05-28 Thread shubh

respected sir/ma'am
 I want to implement FIFO(first in first out), PQ(priority queue) WFQ(
weighted fair queue) mechanisms in NS2. Basically my work is to show
comparison among these three mechanisms.I m using NS2.35 on ubuntu.
But not getting any idea. What steps should I follow to implement
this. Kindly help me.

- SHUBHANGI RASTOGI



Re: [ns] Queue Delay

2013-05-28 Thread Saravanan Kandasamy

Hi,

Tried to read on queue monitor in NS2 manual or internet. Some of
the below can be solved by using it.

Good Luck

rgds
Saravanan Kandasamy

On Sun, May 19, 2013 at 8:18 PM, Sai Bhyravajosyula sbhyr...@asu.edu wrote:

 Hello All

 I have a question regarding queue delay.

 Is there any way in NS2 to know the number of packets present in the queue
 of a
 particular node.

 And also how to calculate what is the time taken to empty the queue if it
 is full.

 Please let me know if any one has any idea about the above two.

 Thanks


 --
 Bhyravajosyula Sai Vishnu Kiran
 MS in Computer Science
 mail-id:  sbhyr...@asu.edu



[ns] help-to create a table for maintaining neighbor list

2013-05-28 Thread Gomathi Rajamanickam

Sir,
 I am an M.tech student. Your posts are very much helpful for a beginner
like me in NS2. As a part of my project,I have to maintain all the neighbor
nodes of all nodes in the network. Since I have to maintain neighbor node
corresponding to each node, I gave a two dimensional array for that. I am
working in AODV protocol. Whenever the insert function of recvHello() is
called my function add() will also be called. But it is showing errors.
Sir, is it possible to give two dimensional arrays with type nsaddr_t in
NS2? Could you please help me to solve this problem? Thanks for your
valuable time.

Regards, Sony