2) assoPermit means whether the node should permit other nodes to 
associate with it so that it becomes their coordinator. Look at the 
802.15.4-2003 standard for details.

5) This is not how LossModel is used. Consult ns-manual for the correct 
usage. It still applies for wpan.

Bruce Who wrote:

>------------------------------------------------------------------------
>
>Hi, all:
>
>Recently I begin to learn how to use ns2 to run wpan simulations, and stumbled
>by some problems, hope someone could help me out.
>
>1)I found there are some commands like this:
>eval $ns_ attach-agent \$node_($src) \$udp_($src)
>
>why don't we just use this command?
>
>$ns_ attach-agent $node_($src) $udp_($src)
>
>2) for this command
>$node sscs startCTDevice <isFFD = 1> <assoPermit = 1> <txBeacon = 0>
><beaconOrder = 3> <SuperframeOrder = 3>
>
>what does assoPermit mean?
>
>3) I ran wpan_demo2.tcl and found that all extended addresses of nodes are
>   [0]. Is it necessary to set the address to different values by ourselves?
>
>4) I ran "nam wpan_demo2.nam" and found that data stream is only seem between
>   PANCoor(node0) and node1. But we have such statements in the wpan_demo2.tcl
>   script:
>
>   ftptraffic 0 1 $appTime1
>   ftptraffic 0 3 $appTime3
>   ftptraffic 0 5 $appTime5
>
>So why could no communications be seen between node0 and node3/node5?
>
>5) And how to set lossmodel for nodes in wpan? I tried following code, but it
>   doesn't work: 
>
>set loss_module [new ErrorModel]
>$loss_module set rate_ 0.01
>$loss_module unit pkt
>$loss_module ranvar [new RandomVariable/Uniform]
>$loss_module drop-target [new Agent/Null]
>eval $ns lossmodel $loss_module \$node_($src) \$node_($dst) 
>
>Any help would be appreciated! Thanks in advance!
>
>
>
>Best regards,
>
>Bruce Who
>
>  
>

Reply via email to