Hello,

I get this error but I don't know how to solve it. In my script, I
create 2 wired nodes, then 13 wireless nodes, then 2 base stations.
And in NAM I get this message:

Skipping duplicate node 15 definition.
Skipping duplicate node 16 definition.

I turn off adhoc routing in wired nodes, turn wireless routing on for
wireless nodes, then turn on wired routing for BS. Below is a
extraction of my script:

===== BEGIN quote =====
#
#create wired nodes
#
set W(0) [$ns_ node]
set W(1) [$ns_ node]

#$W(0) set X_ 0
#$W(0) set Y_ 900
#$ns_ initial_node_pos $W(0) 30

#$W(1) set X_ 750
#$W(1) set Y_ 750
#$ns_ initial_node_pos $W(1) 30

#
# configure mobile nodes
#
$ns_ node-config -adhocRouting $opt(adhocRouting) \
                 -llType $opt(ll) \
                 -macType $opt(mac) \
                 -ifqType $opt(ifq) \
                 -ifqLen $opt(ifqlen) \
                 -antType $opt(ant) \
                 -propType $opt(prop) \
                 -phyType $opt(netif) \
                 -channelType $opt(chan) \
                 -topoInstance $topo \
                 -wiredRouting OFF \
                 -agentTrace ON \
                 -routerTrace ON \
                 -macTrace OFF

for {set i 0} {$i < $opt(nn)} {incr i} {
    set node_($i) [$ns_ node]
}

# configure for base-station node
$ns_ node-config -wiredRouting ON

for {set i 0} {$i < $opt(bn)} {incr i} {
    set BS($i) [$ns_ node]
    $BS($i) random-motion 0 ;#<hainam> don't know why, is it enabled by default?
}

$BS(0) set X_ 0
$BS(0) set Y_ 750
$ns_ initial_node_pos $BS(0) 30

$BS(1) set X_ 600
$BS(1) set Y_ 900
$ns_ initial_node_pos $BS(1) 30
===== END quote =====

It's more strange when I comment out those two lines at the end, error
don't exist any longer.

===== BEGIN quote =====
$BS(0) set X_ 0
$BS(0) set Y_ 750
#$ns_ initial_node_pos $BS(0) 30

$BS(1) set X_ 600
$BS(1) set Y_ 900
#$ns_ initial_node_pos $BS(1) 30
===== END quote =====

And in both cases, two wired nodes and two base stations are put at
the same position!

Any suggestions ?

Thanks in advance,

-- 
Hai-Nam NGUYEN
http://www.jcisio.com

Reply via email to