Dear all,
 
I'm trying to test the following scenario and I would appreciate your feedback.
 
I have three wireless nodes in a row, 0, 1 and 2. Each node supports multiple
interfaces, but for this scenario the nodes are configured with one interface
communicating over 802.15.4. A cbr connection is set between 0 and 2, so that
packets would flow between 0->1 and 1->2.
 
When I configure all the nodes with the following code, the network communicates
as expected.
 
for {set i 0} {$i < 3 } {incr i} {
 $ns_ add-channel 0 $chan_(0) # associate channel with interface 0
 [$node_($m) set netif_(0)] set Pt_ 0.003162
 [$node_($m) set netif_(0)] set freq_ 2.45e+9
 set dist(-90dbm) 1e-12
    
 [$node_($m) set netif_(0)] set CPThresh_ 10.0
 [$node_($m) set netif_(0)] set CSThresh_ $dist(-90dbm)
 [$node_($m) set netif_(0)] set RXThresh_ $dist(-90dbm)
 [$node_($m) set netif_(0)] set channel_number_ 20 # freq 2.45e+9 is on channel 
20 

}
 
However, when I configure nodes 0 and 2 to use the same frequency but node 1 to 
use
a different frequency, the network still operates and gives exactly the same 
results as previously.
 
 $ns_ add-channel 0 $chan_(0) # this is configured for each node
 
 # $m = 0,1,2
 [$node_($m) set netif_(0)] set Pt_ 0.003162
 set dist(-90dbm) 1e-12
    
 [$node_($m) set netif_(0)] set CPThresh_ 10.0
 [$node_($m) set netif_(0)] set CSThresh_ $dist(-90dbm)
 [$node_($m) set netif_(0)] set RXThresh_ $dist(-90dbm)
 #
 
 [$node_(0) set netif_(0)] set freq_ 2.45e+9
 [$node_(0) set netif_(0)] set channel_number_ 20
  
 [$node_(1) set netif_(0)] set freq_ 2.48e+9
 [$node_(1) set netif_(0)] set channel_number_ 26
  
 [$node_(2) set netif_(0)] set freq_ 2.45e+9
 [$node_(2) set netif_(0)] set channel_number_ 20
  
  
Since node 1 is set on a different frequency I would expect that the nodes 
could 
not communicate.
Is this a bug or am I doing something wrong?
 
Thank you in advance,
Lup. 



      

Reply via email to