Subject: [manet] Anybody has solution for Classfier::no slot{} problem

From: shivamurti <[email-masked]>
Date: Mon, 7 May 2007 09:47:29 +0100 (BST)

Hi all,
 I am implementing a new VANET protocol in ns2. My
configuration in TCL scripts is to establish
connectivity between base-station and mobile
nodes(using VANET protocol). 
    
TCL script i executed as follows:

global opt
set val(chan)       Channel/WirelessChannel     ;#
channel type
set val(prop)       Propagation/FreeSpace       ;#
radio-propagation model
set val(ant)        Antenna/OmniAntenna         ;#
antenna type
set val(ll)         LL                          ;#
link layer type
set val(ifq)        Queue/DropTail/PriQueue     ;#
interface queue type
set val(ifqlen)     50                          ;# max
packet in ifq
set val(netif)      Phy/WirelessPhy             ;#
network interface type
set val(mac)        Mac/802_11                  ;# MAC
type
set val(rp)         DumbAgent                   ;#
routing (none)

set opt(x) 1000
set opt(y) 1000
set opt(nn) 2
set num_base_stations   1

set opt(sc) "/home/Shiva/Desktop/scenario2.tcl"

set opt(tracefile)      sumo.tr
set opt(namfile)        sumo

set opt(stop)           10

proc finish {} {
	global ns_ fd1
	global ns_ fd2
        global ns_ tracefd
        global opt	
	$ns_ flush-trace
	close $fd1
	close $fd2
        close tracefd
	exec nam $opt(namfile).nam &
}

set ns_ [new Simulator]

$ns_ node-config -AdderessType hierarchical

AddrParams set domain_num_ 2   
lappend cluster_num 1 1  
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 1 1 2 
AddrParams set nodes_num_ $eilastlevel

set tracefd [open test.tr w]
set vanetfd [new Trace/Generic]
$tracefd attach $vanetfd

set fd1 [open $opt(tracefile) w]
$ns_ trace-all $fd1

set fd2 [open $opt(namfile).nam w]
$ns_ namtrace-all-wireless $fd2 $opt(x) $opt(y)

set topo   [new Topography]                     ;#
create the topology
$topo load_flatgrid $opt(x) $opt(y)
create-god  [expr num_base_stations + $opt(nn)]

set temp {0.0.0 0.0.1}

for {set i 0} {$i < $opt(nn)} {incr i} {
   set W($i) [$node [lindex $temp $i]]
}

$ns_ node-config -adhocRouting $val(rp) \
    -llType $val(ll) \
    -macType $val(mac) \
    -ifqType $val(ifq) \
    -ifqLen $val(ifqlen) \
    -antType $val(ant) \
    -propType $val(prop) \
    -phyType $val(netif) \
    -channel [new $val(chan)] \
    -topoInstance $topo \
    -wiredRouting ON \
    -agentTrace ON \
    -routerTrace OFF \
    -macTrace OFF \
    -movementTrace OFF

set temp {1.0.0 1.0.1 1.0.2}

set BS(0) [$node $temp 0]
$BS(0) random-motion 0 

$BS(0) set X_ 1.000000
$BS(0) set Y_ 2.000000
$BS(0) set Z_ 0.000000 

$ns_ node-config -wiredRouting OFF

for {set i 0} {$i < $opt(nn)} {incr i} {
set node($i) [$ns_ node [lindex $temp expr[$i+1]]]
$node base-station [AddrParams addr2id[$BS(0)
node-addr]]
set p($i) new [Agent/vanetNEW [lindex $temp
expr[$i+1]]]
$ns_ attach-agent $node $p($i)
$p($i) log-target $vanetfd
}

source $opt(sc)

for {set i 0} {$i < opt(nn)} {incr i}
$ns_ at 0.0 "$p($i) start"
}

$ns_ run

when I execute above script it gives followign error
message:

Classifier:: no slot{} //default tcl/lib/ns-lib.tcl
0 mask
0 offset
_05 classifier/port
etc...
Hope I receive some solutions to this mail.

Thanks
-Shivamurti.

      ___________________________________________________________ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

_______________________________________________
manet mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/manet