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

Re: [ns] One MobileNode roaming between TWO clusters (each with oneBaseSt ation)



On Wed, 19 Dec 2001, Teong Chun Seong Kerwin wrote:


> Hi,
>    I am trying to simulate a simple case of having one mobile node roaming
> between 2 clusters within the same domain. Each cluster has a base station
> node. I configured my Base Station nodes and Mobile Node as follow:
> 
>    set temp {1.0.0 1.0.1 1.1.0}
> 
>    set BS(0) [$ns_ node [lindex $temp 0]]
>    $BS(0) random-motion 0
>    set BS(1) [$ns_ node [lindex $temp 2]]
>    $BS(1) random-motion 0
> 
>    $ns_ node-config -wiredRouting OFF
>    set node_(0) [$ns_ node [lindex $temp 1]]
>    $node_(0) base-station [AddrParams addr2id [$BS(0) node-addr]]
> 
>  My topology is as follows:
>                           ---------
>                           | Wired |
>                           | Node  |
>                           ---------
>                               |
>                               |
>                      _________|_________
>                     |                   |
>                   -------            -------
>                   | BS0 |            | BS1 |
>                   -------            -------
> 
>                 -------------        
>                 |MobileNode0|        
>                 -------------        
> 
>    My question is: if I initially configure my Mobile node to be attached to
> BS0, will it automatically switch to BS1 when it moves out of range of BS0
> into the coverage of BS1? 

Yes.
--Padma

If not, what changes do I need to make to my code?
> 
> Best Regards,
> Kerwin.
> 

-- 
------------------------------------------------ 
Be true to your work, your word, and your friend. 
--Thoreau

Padmaparna Haldar