Actually my question is:
In my tcl file after i load the 802_11EXT parameters then how do i access
those parameters later? e.g.

#802.11p default parameters
#Phy/WirelessPhyExt  parameters are described

Mac/802_11Ext set CWMin_                        15
Mac/802_11Ext set CWMax_                        1023
Mac/802_11Ext set SlotTime_                     0.000013
Mac/802_11Ext set SIFS_                         0.000032
Mac/802_11Ext set ShortRetryLimit_              7
Mac/802_11Ext set LongRetryLimit_               4
Mac/802_11Ext set HeaderDuration_               0.000040
Mac/802_11Ext set SymbolDuration_               0.000008
Mac/802_11Ext set BasicModulationScheme_        0
Mac/802_11Ext set use_802_11a_flag_             true
Mac/802_11Ext set RTSThreshold_                 2346
Mac/802_11Ext set MAC_DBG                       0

# e.g. later in the code if i have to print the value Pt_ then how do i do
it?
# puts "$CWMin_"; # doesn't work

Regards,
Pratik Joshi

On Sun, Nov 30, 2014 at 5:26 PM, Pratik Joshi <pratik.joshi...@gmail.com>
wrote:

> Thanks Knudfl for the reply. The default one in the original file
> (ns-allinone-2.34/ns-2.34/tcl/ex/802.11/IEEE802-11p.tcl is:
> Mac/802_11Ext set CWMin_                        15
> Mac/802_11Ext set CWMax_                        1023
>
> But i would like to change it to 0-15 from my tcl script and not change
> these values from the original file. But before that when i am simulating
> VANET then is this the same contention window range with which the packets
> are being sent? or do these CW range means something different?
>
> Regards,
> Pratik Joshi
>
> On Sat, Nov 29, 2014 at 3:15 PM, knudfl <knu...@ofir.dk> wrote:
>
>>
>> > @pratikjoshi
>> > IEEE802.11
>>
>> ? Change "contention window" from what to what  ? ?
>>
>> Some documentation ...
>> . http://www.isi.edu/nsnam/ns/doc/node193.html
>> .
>> http://www.crhc.illinois.edu/wireless/assignments/simulations/slabc1.html
>> .
>>
>> http://www.ijoar.org/journals/IJOAREC/papers/Implementation-of-Dedicated-Short-Range-Communication-%28DSRC%29-IEEE80211p-in-NS2-and-Its-Performance-Analysis-over-IEEE802-11.pdf
>>
>> . https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=all&q=IEEE802-11p.tcl
>> .
>>
>> https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=en&q=ns2+Contention+window
>>
>> -
>>
>>
>>
>> --
>> View this message in context:
>> http://network-simulator-ns-2.7690.n7.nabble.com/How-to-maniulate-IEEE802-11p-parameters-from-IEEE802-11p-tcl-tp29408p29410.html
>> Sent from the ns-users mailing list archive at Nabble.com.
>>
>>
>
>
> --
> *Regards,*
> *Pratik*
>



-- 
*Regards,*
*Pratik*

Reply via email to