[ns] dropping pkt,please help urgent
süss lieb
suesslieb at yahoo.de
Thu Jul 28 09:56:57 PDT 2005
Hi,
I`m using the DSDV routing protocol.
The Basestation and the mobile node is in the same
subnet. I simulate wired-cum-wirless consist of
- 9 wired node
- 2 basis station BS(0) and BS(1)
- 4 mobile node connect to BS(0)
# set up for hierarchical routing
$ns node-config -addressType hierarchical
AddrParams set domain_num_ 3
lappend cluster_num 9 1 1
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 1 1 1 1 1 1 1 1 1 5 1
AddrParams set nodes_num_ $eilastlevel
1-why I get message:
warning: Route to base_stn not known: dropping pkt
warning: Route to base_stn not known: dropping pkt
warning: Route to base_stn not known: dropping pkt
warning: Route to base_stn not known: dropping pkt
.....
2-and same nodes cannot send,where is problem or
error?
please help me
more details:
# set up for hierarchical routing
$ns node-config -addressType hierarchical
AddrParams set domain_num_ 3
lappend cluster_num 9 1 1
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 1 1 1 1 1 1 1 1 1 5 1
AddrParams set nodes_num_ $eilastlevel
$ns use-newtrace
set tracefd [open $opt(tr) w]
$ns trace-all $tracefd
set namtracefd [open $opt(namtr) w]
$ns namtrace-all-wireless $namtracefd $opt(x)
$opt(y)
set topo [new Topography]
$topo load_flatgrid $opt(x) $opt(y)
# god needs to know the number of all wireless
interfaces
create-god [expr $opt(nn) + $num_bs_nodes]
#create wired nodes
set temp {0.0.0 0.1.0 0.2.0 0.3.0 0.4.0 0.5.0 0.6.0
0.7.0 0.8.0}
for {set i 0} {$i < $num_wired_nodes} {incr i} {
set host($i) [$ns node [lindex $temp $i]]
$host($i) color blue
$host($i) shape box
$host($i) set X_ [expr ($i * 100) ]
$host($i) set Y_ [expr ($i * 100) ]
$host($i) set Z_ 0.0
}
$ns node-config -adhocRouting $opt(adhocRouting) \
-llType $opt(ll) \
-macType $opt(mac) \
-ifqType $opt(ifq) \
-ifqLen $opt(ifqlen) \
-antType $opt(ant) \
-propInstance [new $opt(prop)] \
-phyType $opt(netif) \
-channel [new $opt(chan)] \
-topoInstance $topo \
-wiredRouting ON \
-agentTrace ON \
-routerTrace OFF\
-macTrace OFF
$ns node-config -movementTrace OFF
set temp {1.0.0 1.0.1 1.0.2 1.0.3 1.0.4}
set BS(0) [$ns node [lindex $temp 0]]
set BS(1) [$ns node 2.0.0]
$BS(0) random-motion 0
$BS(1) random-motion 0
$BS(0) shape hexagon
$BS(0) color red
$BS(1) shape hexagon
$BS(1) color red
$BS(0) set X_ 300.0
$BS(0) set Y_ 200.0
$BS(0) set Z_ 0.0
$BS(1) set X_ 450.0
$BS(1) set Y_ 400.0
$BS(1) set Z_ 0.0
#configure for mobilenodes
$ns node-config -wiredRouting OFF
for {set j 1} {$j < $opt(nn)+1} {incr j} {
set mobile($j) [ $ns node [lindex $temp \[expr $j]] ]
mobile($j) base-station [AddrParams addr2id [$BS(0)
node-addr]]
puts "mobile($j) = [$mobile($j) node-addr] =
[AddrParams addr2id [$mobile($j) node-addr]]"
}
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
More information about the Ns-users
mailing list