LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-14-2015, 03:30 AM   #1
ladyelaine
LQ Newbie
 
Registered: Apr 2015
Posts: 10

Rep: Reputation: Disabled
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

Last edited by ladyelaine; 04-14-2015 at 08:45 AM.
 
Old 04-14-2015, 05:22 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

-
 
Old 04-14-2015, 08:21 AM   #3
ladyelaine
LQ Newbie
 
Registered: Apr 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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.
 
Old 04-14-2015, 08:33 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.



-
 
Old 04-14-2015, 08:47 AM   #5
ladyelaine
LQ Newbie
 
Registered: Apr 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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.
 
Old 04-14-2015, 08:56 AM   #6
ladyelaine
LQ Newbie
 
Registered: Apr 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
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?
 
Old 04-14-2015, 10:08 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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".)


-
 
  


Reply

Tags
eurane, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No slot error in NS2 preethisingh Linux - Networking 1 10-19-2014 04:49 AM
Installing NS2 on Linux (Fedora) for Eurane Projects Hassaan Rafi Linux - Networking 1 09-19-2011 02:43 PM
[SOLVED] Problem with "UE_trace_file" simulating hsdpa in ns2.30 + EURANE unodior Linux - Networking 2 09-19-2011 01:43 PM
How to replace the default handler with user defined handler in Linux kernel ? vl chowdary Linux - Kernel 4 04-27-2011 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration