[ns] What this code means?

Luciana Esteves Neves Hilario lesteves at ic.uff.br
Fri Apr 7 05:39:42 PDT 2006


Thank you Sasan!
    Just one more question: how can I see the bit rate of the transmition?

regards
Luciana

----- Original Message ----- 
From: "Sasan Sahraei" <ss1 at student.cs.ucc.ie>
To: <lesteves at ic.uff.br>
Cc: <ns-users at isi.edu>
Sent: Thursday, April 06, 2006 6:40 PM
Subject: Re: [ns] What this code means?


> Hi Luciana,
>
> SharedMedia interface with parameters:
>
> extracted from the header file:
>
> double freq_;           // frequency
> double lambda_; // wavelength (m)
> double L_; // system loss factor
>
> double RXThresh_; // receive power threshold (W)
> double CSThresh_; // carrier sense threshold (W)
> double CPThresh_; // capture threshold (db)
>
> double Pt_; // transmitted signal power (W)
>
> hope this helps,
>
> Sasan
>>
>>  Hi everybody!
>>     I`m doing some tests with an old version of ns-2 (ns-allinone-2.1b3),
>>  and I don`t understand a part of tcl code and I could`n find the
>>  meaning in ns manual. I think is because this ns version is old and the
>>  manual is referring of new version. The code is following:
>>
>>  NetIf/SharedMedia set CPThresh_ 10.0
>>  NetIf/SharedMedia set CSThresh_ 1.559e-11
>>  NetIf/SharedMedia set RXThresh_ 3.652e-10
>>  NetIf/SharedMedia set Rb_ 2.0e6
>>  NetIf/SharedMedia set Pt_ 0.2818
>>  NetIf/SharedMedia set freq_ 914e+6
>>  NetIf/SharedMedia set L_ 1.0
>>
>>  I need to know the meaning of this sets (CPThresh_, CSThresh_, 
>> RXThresh_,
>>  Rb_, Pt_, freq_, L_). I found that the Network Interface called Shared
>>  Media now calls Phy/WirellesPhy.
>>  These tests are in an Ad Hoc network, with a QoS protocol.
>>
>>  Another question: the same code could generate different results if runs
>>  in differents computers?
>>
>>  I hope that someone could help me. Thanks a lot!
>>
>>  Regards
>>  Luciana
>>
>>
>
>
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.3.5/302 - Release Date: 5/4/2006
>
> 



More information about the Ns-users mailing list