Hi all, is there anybody that knows about the fast scheduling in EURANE? I
got a ploblem when i run a simulation using MAX C/I and FCDS.The simulation
is run well when the UEs is 5,but when i increase the number of UEs to
10,the problem is come out ,simulation is stop and print:"couldn't schedule
timer"
Anybody who knows why?? Please help me !
thanx in advance,waiting for ur reply....


this is the tcl script:i run it under ns-2.26 + cygwin+eurane1.09

---------------------------------------------------------------------------------------

global ns

set ns [new Simulator]

set f [open out.tr w]


proc finish {} {
    global ns
    global f
    $ns flush-trace
    close $f
    puts " Simulation ended."
    exit 0
}

$ns set debug_ 0

$ns set hsdschEnabled_ 1
$ns set hsdsch_rlc_set_ 0
$ns set hsdsch_rlc_nif_ 0

Mac/Hsdpa set scheduler_type_ 3
Mac/Hsdpa set alpha_ 0.999

$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

for { set i 1 } { $i < 11 } { incr i 1 } {
set ue($i) [$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

for { set i 1 } { $i < 11 } { incr i 1 } {
set k [expr $i - 1]
set tcp($i) [new Agent/TCP]
$tcp($i) set windowInit_ 10
$tcp($i) set window_ 16
$tcp($i) set packetSize_ 1024
$tcp($i) set fid_ $k
$tcp($i) set prio_ 2

$ns attach-agent $node2 $tcp($i)
set sink($i) [new Agent/TCPSink]
$ns attach-agent $ue($i) $sink($i)
$ns connect $tcp($i) $sink($i)

}
for { set i 1 } { $i < 11 } { incr i 1 } {
set ftp($i) [new Application/FTP]
$ftp($i) attach-agent $tcp($i)
}

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

$ns create-hsdsch $ue(1) $sink(1)
for { set i 2 } { $i < 11 } { incr i 1 } {
$ns attach-hsdsch $ue($i) $sink($i)
}


for { set i 1 } { $i < 11 } { incr i 1 } {
set k [expr $i - 1]
$bs setErrorTrace $k "UE[expr $i]_trace_file"
}

$bs loadSnrBlerMatrix "SNRBLERMatrix"



for { set i 1 } { $i < 11 } { incr i 1 } {
$ue($i) trace-inlink-tcp $f 2

}


for { set i 1 } { $i < 11 } { incr i 1 } {
$ns at 0.0 "$ftp($i) start"
}
for { set i 1 } { $i < 11 } { incr i 1 } {
$ns at 100.0 "$ftp($i) stop"
}
$ns at 100.401 "finish"

puts " Simulation is running ... please wait ..."
$ns run

Reply via email to