LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   NS2 eurane problem: Classfier::no-slot{} default handler (https://www.linuxquestions.org/questions/ubuntu-63/ns2-eurane-problem-classfier-no-slot%7B%7D-default-handler-4175539661/)

ladyelaine 04-14-2015 03:30 AM

NS2 eurane problem: Classfier::no-slot{} default handler
 
When I simulate one tcl script about eurane. It shows the error
Quote:

Simulation is running....please wait.....
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o79: no target for slot -1
_o79 type: Classifier/Hash/Dest
content dump:
classifier _o79
0 offset
0 shift
1073741823 mask
0 slots
-1 default
---------- Finished standard no-slot{} default handler ----------
and the code is given as follow.
Code:

remove-all-packet-headers
add-packet-header MPEG4 MAC_HS RLC LL Mac RTP TCP IP Common Flags

set ns [new Simulator]
set f [open umts1.tr w]
$ns trace-all $f
set namfile [open umts1.nam w]
$ns namtrace-all $namfile

proc finish {} {
    global ns
    global f
global namfile
    $ns flush-trace
    close $f
    close $namfile
puts "Simulation ended."
exec nam umts1.nam &
    exit 0
}

$ns node-config -UmtsNodeType rnc

set rnc [$ns create-Umtsnode]

$ns node-config -UmtsNodeType bs \
-downlinkBW 32kbs \
-downlinkTTI 10ms \
-uplinkBW 32kbs \
-uplinkTTI 10ms \
-hs_downlinkTTI 2ms \
-hs_downlinkBW 64kbs

set bs [$ns create-Umtsnode]

$ns setup-Iub $bs $rnc 622Mbit 622Mbit 15ms 15ms DummyDropTail 2000

$ns node-config -UmtsNodeType ue \
-baseStation $bs \
-radioNetworkController $rnc

set ue1 [$ns create-Umtsnode]
#set ue2 [$ns create-Umtsnode]

set sgsn0 [$ns node]
set ggsn0 [$ns node]

set node1 [$ns node]
set node2 [$ns node]

$ns duplex-link $rnc $sgsn0 622Mbit 0.4ms DropTail 1000
$ns duplex-link $sgsn0 $ggsn0 622Mbit 10ms DropTail 1000
$ns duplex-link $ggsn0 $node1 10MBit 15ms DropTail 1000
$ns duplex-link $node1 $node2 10MBit 35ms DropTail 1000
$rnc add-gateway $sgsn0

set tcp0 [new Agent/TCP]
$tcp0 set fid_ 0
$tcp0 set prio_ 2

#set tcp1 [new Agent/TCP]
#$tcp1 set fid_ 1
#$tcp1 set prio_ 2

$ns attach-agent $node2 $tcp0
#$ns attach-agent $node2 $tcp1

set ftp0 [new Application/FTP]
$ftp0 attach-agent $tcp0

#set ftp1 [new Application/FTP]
#$ftp1 attach-agent $tcp1

# Create and attach sinks
set sink0 [new Agent/TCPSink]
$sink0 set fid_ 0
$ns attach-agent $ue1 $sink0

#set sink1 [new Agent/TCPSink]
#$sink1 set fid_ 1
#$ns attach-agent $ue2 $sink1

# Connect sinks to TCP agents
$ns connect $tcp0 $sink0
#$ns connect $tcp1 $sink1

$ns node-config -llType UMTS/RLC/AM \
-downlinkBW 64kbs \
-uplinkBW 64kbs \
-downlinkTTI 20ms \
-uplinkTTI 20ms \
-hs_downlinkTTI 2ms \
-hs_downlinkkBW 64kbs

# Create HS-DSCH and attach TCP agent for ue1
$ns create-hsdsch $ue1 $sink0

# Attach TCP agent for ue2 to exsiting HS-DSCH
#$ns attach-hsdsch $ue2 $sink1

# Load input tracefile for each UE, identified by its fid_
$bs setErrorTrace 0 "UE1_trace_file"
#$bs setErrorTrace 1 "UE2_trace_file"
$bs loadSnrBlerMatrix "SNRBLERMatrix"

# Tracing for all HSDPA traffic in downtarget
$rnc trace-inlink-tcp $f 0
$bs trace-outlink $f 2

# UE1 Tracing
#$ue1 trace-inlink $f 2
#$ue1 trace-outlink $f 3
#$bs trace-inlink $f 3
#$ue1 trace-inlink-tcp $f 2

# UE2 Tracing
#$ue2 trace-inlink $f 2
#$ue2 trace-inlink $f 3
#$bs trace-inlink $f 4
#$ue2 trace-inlink-tcp $f 2


$ns at 0.0 "$ftp0 start"
#$ns at 0.002 "$ftp1 start"
$ns at 10.1 "$ftp0 stop"
puts ">>>>>>>>>>>ns reaches here."
#$ns at 10.102 "$ftp1 stop"
$ns at 10.201 "finish"

$ns run

I use ubuntu14.04(i686)+ ns2.35.
and the code is from umts.tcl in
`umts, eurane examples' umts-eurane-examples.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

knudfl 04-14-2015 05:22 AM

Please edit post #1 to CODE Tags : [code]code text[/code] .
Editing post #1 : The 'Edit' button in post #1.

And why in the first place show the code, when you could just specify a file name ?
Trouble-shooting your error :
You will have to specify your OS for every new question.
I.e. architecture (i686 or x86_64) + OS name and version.


"ex-umts-eurane.zip" : Unknown file. A link, please.

Eurane examples : umts-eurane-examples.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-

ladyelaine 04-14-2015 08:21 AM

Quote:

Originally Posted by knudfl (Post 5347139)
Please edit post #1 to CODE Tags : [code]code text[/code] .
Editing post #1 : The 'Edit' button in post #1.

And why in the first place show the code, when you could just specify a file name ?
Trouble-shooting your error :
You will have to specify your OS for every new question.
I.e. architecture (i686 or x86_64) + OS name and version.


"ex-umts-eurane.zip" : Unknown file. A link, please.

Eurane examples : umts-eurane-examples.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-

Thanks for telling me about that. I hope I have changed it to the correct format. Thanks again. Mr. Knudfl.:)

knudfl 04-14-2015 08:33 AM

Which OS are you using now ?
( See post #2 ,,, architecture (i686 or x86_64) + OS name and version ).

The error "--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---"
... is usually caused by using the wrong OS.



-

ladyelaine 04-14-2015 08:47 AM

Quote:

Originally Posted by knudfl (Post 5347206)
Which OS are you using now ?
( See post #2 ,,, architecture (i686 or x86_64) + OS name and version ).

The error "--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---"
... is usually caused by using the wrong OS.



-

I use ubuntu14.04.01+i686. :)

ladyelaine 04-14-2015 08:56 AM

I have simplified the code in post#1.
I want to keep only UE1,so I delete everything about UE2.But it shows the error as follow.
Quote:

--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o79: no target for slot -1
_o79 type: Classifier/Hash/Dest
content dump:
classifier _o79
0 offset
0 shift
1073741823 mask
0 slots
-1 default
---------- Finished standard no-slot{} default handler ----------
I have no idea about it. Can anybody help?

knudfl 04-14-2015 10:08 AM

I think your code is close to these examples :
hs-dsch.tcl, test_tcp_hsdsch.tcl, test_udp_hsdsch.tcl, umts-txsys.tcl .

* umts-eurane_examples-04.14.tar.gz :
https://drive.google.com/file/d/0B7S...ew?usp=sharing
( I added "umts-txsys.tcl".)


-


All times are GMT -5. The time now is 03:17 AM.