Hi,

Emulating a real card on NS is pretty hard actually since in
real-life, the WLAN card would change dynamically it's transmission
power and RX/CS Thresholds during an association with an access point.
Let's assume that you got the different parameters then you could use
them within NS by altering values in a TCL script like:

Phy/WirelessPhy set CPThresh_
Phy/WirelessPhy set CSThresh_
Phy/WirelessPhy set RXThresh_
Phy/WirelessPhy set Rb_
Phy/WirelessPhy set Pt_
Phy/WirelessPhy set freq_

These parameters are implementation-dependent (Phy/Wireless in our
case). You have to make sure which model your real WLAN card uses and
check if it really complies with the model implemented in NS (it will
hardly match).

To get those values from a real card you should check first if its
driver exports them. Try looking inside /proc or use the
iw{list|config|priv|...} commands to see if you can get that
information. It depends heavily on the hardware and the driver.

Regards,
Ilyes Gouta.

On 4/29/06, hamid reza <[EMAIL PROTECTED]> wrote:
> Thanks For your response,
> and sorry if i send this email to you personally.
> I asked this question on NS Users Room and it seems
> You have a good information about it.
> My Question :
> We have a tech spec for special WLAN Card.
> How can I convert its specifications to NS2
> Parameters?
> Example How can I retrieve CSThresh_ and Pt_ and ...
> From a spec tech on special WLAN Card.
>
> Best Regards
> Hamid Reza
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

Reply via email to