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

[ns] =?utf-8?B?562U5aSNOiBbbnNdIHdoYXQncyB0aGUgbWVhbmluZyBvZiAic2V0IHdhZGRyIg==?==?utf-8?B?IChwY2Yp?=



thank u very much. but i still not know the detail.
as u know, there r two times to set the mobilenodes in that pcftest.tcl.
the first is :
"#create wireless nodes
$ns_ node-config -wiredrouting -OFF

for {set j 0} { $j < $opt(nn)} {incr j} {
	set node_($j) [$ns_ node [lindex $waddr [expr $j+1]] ]
..."
there set node_(0) get the [1.0.1] from waddr, is it right? what does the [1.0.1] means if it not means the position of node_(0)?

the second position define the mobilenodes is:
"#initial node position
for {set i 0} {$i < $num_cbr} {incr i} {
$ns_initial_node_pos $node_($i) [expr 20+0.12*$i]
$node_($i) set X_ [expr 100-4*$i]
$node_($i) set Y_ [expr 100+4*$i]
..."
i think here is the right place to set the position of mobilenodes.

i am doubt about that.
u help is greeted. thank u very much!



Best Regard

JIN Xiaohui
tel: 029-8201002
National Key Lab. of Integrated Service Network
Xidian univ. 710071, P.R.China 

-----原始邮件-----
发件人: Anders Lindgren [mailto:[email protected]]
发送时间: 2001年9月20日 16:06
收件人: JIN Xiaohui
抄送: ns
主题: 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