Hello ,
I am a new NS user. I have written a tcl script which comprises of
a simple ftp application with tcp (UMTS using eurane) . I am not getting
any syntactical errors in the script but it is runnig for sometime and
giving me this error message.
"add-interface: t>2: t == 3 (t == nifs_ -1)
simulation is running .... please wait ...
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o71: no target for slot -1
_o71 type: Classifier/Hash/Dest
content dump:
classifier _o71
0 offset
0 shift
2147483647 mask
0 slots
-1 default
---------- Finished standard no-slot{} default handler ---------- "
Can anyone help me to find the mistake which is causing this error ?
the original script which i have written is .......
global ns
# Remove all headers and add only those that are required
# This significantly reduces the memory requirements for large simulations
remove-all-packet-headers
add-packet-header MPEG4 MSC-HS RLS LL Mac RTP TCP IP Common Flags
set ns [new Simulator]
set output [open out.tr w]
$ns trace-all $output
proc finish {} {
global ns
global output
$ns flush-trace
close $output
puts "Simulation ended "
exit 0
}
# Configure and create rnc
$ns node-config -UmtsNodeType rnc
set rnc [$ns create-Umtsnode]
# Configure and create bs
$ns node-config -UmtsNodeType bs \
-downlinkBW 32kbs \
-downlinkTTI 10ms \
-uplinkBW 32kbs \
-uplinkTTI 10ms \
-hs_downlinkTTI 2ms \
-hs_downlinkBW 64kbs
set bs [$ns create-Umtsnode]
# Define Iub interface between RNC and BS
$ns setup-Iub $bs $rnc 622Mbit 622Mbit 15ms 15ms DummyDropTail 2000
# Configure and create ue
$ns node-config -UmtsNodeType ue \
-baseStation $bs \
-radioNetworkController $rnc
set ue1 [$ns create-Umtsnode]
# Create sgsn and ggsn
set sgsn1 [$ns node]
set ggsn1 [$ns node]
# Create node1 and node 2 ( Fixed nodes )
set node1 [$ns node]
set node2 [$ns node]
# Connections between fixed network nodes
$ns duplex-link $rnc $sgsn1 622Mbit 0.4ms DropTail 1000
$ns duplex-link $sgsn1 $ggsn1 622Mbit 10ms DropTail 1000
$ns duplex-link $ggsn1 $node1 10Mbit 15ms DropTail 1000
$ns duplex-link $node1 $node2 10Mbit 35ms DropTail 1000
# Routing gateway
$rnc add-gateway $sgsn1
################ Set up the agents and their respective connections
####################
# Agent setup for ue
set tcp0 [new Agent/TCP]
$tcp0 set fid_ 0
$tcp0 set prio_ 2
# Attach agents to a common fixed nodes
$ns attach-agent $node2 $tcp0
# Create and connect two applications to their agent
set ftp0 [new Application/FTP]
$ftp0 attach-agent $tcp0
# Create and attach sinks
set sink0 [new Agent/TCPSink]
$sink0 set fid_ 0
$ns attach-agent $ue1 $sink0
# Connect sinks to TCP agents
$ns connect $tcp0 $sink0
$ns node-config -llType UMTS/RLC/AM \
-downlinkBW 64kbs \
-uplinkBW 64kbs \
-downlinkTTI 20ms \
-uplinkTTI 20ms \
-hs_downlinkTTI 2ms \
-hs_downlinkBW 64kbs
# Create HS-DSCH and attach TCP agent for ue1
$ns create-hsdsch $ue1 $sink0
# Loads input trace file for ue identified by its fid_
$bs setErrorTrace 0 "idealtrace"
# Load BLER lookup table from SNRBLERMatrix
$bs loadSnrBlerMatrix "SNRBLERMatrix"
# UE1 tracing
$ue1 trace-inlink $output 2
$ns at 0.0 "$ftp0 start"
$ns at 10.0 "$ftp0 stop "
$ns at 10.2 "finish"
puts " simulation is running .... please wait ... "
$ns run
______________________________________________________________________