[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] what's the meaning of "set waddr" (pcf)



Hi,

On Thu, 20 Sep 2001, JIN Xiaohui wrote:

> sir, i am reading the 802.11 pcf implementation example tcl.
> there is a line contains:
> #address for the wireless domain....
> set waddr {1.0.0, 1.0.1, 1.0.2, 1.0.3,.....1.0.51, 1.0.52}
> 
> i cannot find the "set waddr" command in ns document, what is the
> meaning? and what is the 1.0.0? is it the address of mobile node? why
> all the second number are always 0?

This line just creates a large array of addresses on the form 1.0.x with x
ranging from 0 to 52 (must be a better way to do this in tcl,
but......). This array is then used to assign addresses to the nodes in
the wireless domain.

> 
> by the way, the pcf implementation is downloaded from
> http://www.sm.luth.se/~dugdale/index/software.shtml is there somebody
> had install and run it correctly? 

Yes :)

> can u give me a example parameters?
> i dont know how to set the interval_, superframe. when i run " ns
> pcftest.tcl 10 8 210 3.75ms temp 300", it display so many error
> messages. no matter how to change the value of superframe. thank u

What kind of error messages do you get?
Anyway, you give the arguments in the wrong order... Should be 
ns pcftest.tcl 10 8 0.00375 210 temp.tr.gz 300
to run the simulation you wanted (I guess 3.75ms should work instead of
0.00375, but I haven't used it...).
If you want to see some performance difference between nodes that are
polled and those that are not (especially at this rather high data rate),
you should probably set the superframe to less than 300.

Hope that helps.

/Anders