[ns] Help: Received Power Level of a Packet at MAC Layer in MANETs
Sorav Bansal
soravban@in.ibm.com
Tue Apr 16 05:15:49 2002
The receive power of a packet p is stored in the variable
p->txinfo_.RxPr
You could either print this variable anywhere in the code using the printf
statement. If you want a cleaner solution, you will have to figure out
exactly where the packet is being traced (i guess it should be in
cmu-trace.cc) and then include this variable in the trace info
hope this info is useful.
--sorav
Ankit Agarwal
<ankit_agarwal@ To: ns-users@ISI.EDU
yahoo.com> cc:
Sent by: Subject: [ns] Help: Received Power Level of a
ns-users-admin@ Packet at MAC Layer in MANETs
ISI.EDU
04/16/02 01:34
AM
Please respond
to Ankit
Agarwal
Hi All,
I am new to NS2 and am currently running simulations
of wireless mobile ad hoc networks (MANETs) based on
the 802.11 MAC protocol.
I would like to get a trace of the received power
level of every packet at the MAC layer (802.11) of
each node.
I tried turning the MAC layer tracing on but that
doesn't trace the received power level.
Can someone suggest some way for me to get this trace?
I looked at the code and I can see that the 802.11
layer is aware of the received power level of a packet
but I can't think of a way to trace the value.
Any help or suggestions would be appreciated.
Thanks,
Ankit.
=====
"Tough times do not last, only tough people do."
"A ship in the harbor is safe...but thats not what ships were made for."
"Do, or do not. There is no try." (Yoda)
Ankit Agarwal
5000 Oak Street, #815, Kansas City, MO 64112.
Telephone: (816) 531-4186. Email: ankit_agarwal@yahoo.com
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/