[ns] 802.11 collisions

Marco Fiore fl0wer at virgilio.it
Tue Apr 5 06:53:15 PDT 2005


Answers inline.

>does anybody know how to measure collisions and % collisions from an NS2
>trace file?

The way I would do it is by adding these variables to the 802.11 code, and
updating them directly in the C++ class. It implies some C++ writing, but
it's the easiest and safest way. Look into mac/mac-802_11.cc for the collision
handling routine, and then update your variables at every collision.

>And, what at wich layer are IFQ packets (transport, network, etc..)

IFQ is the interface queue, located between Link Layer and MAC layer. Look
at the ns user manula for details.

Regards,

Marco Fiore




More information about the Ns-users mailing list