[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Problems with queue length



Hi all,
I have a problem. Using the following code I should create a satellite link
with a queue of 100 packets.

............
............
# link parameter
set opt(chan)		Channel/Sat
set opt(bw_down)		$DownLinkBW
set opt(bw_up)		$UpLinkBW
set opt(bw_isl)		25Mb
set opt(phy)		Phy/Sat
set opt(mac)		Mac/Sat
set opt(ifq)		Queue/DropTail
set opt(qlim)		100			<------- This is the queue dimension
set opt(ll)			LL/Sat

set linkargs "$opt(ll) $opt(ifq) $opt(qlim) $opt(mac) $opt(bw_down)
$opt(phy)"

# Satellite
set n0 [$ns satnode-polar $SatAltitude $SatInclination $SatLongitude
$SatAlpha \
						$SatPlane $linkargs $opt(chan)]

# Ground station
set n1 [$ns satnode-terminal $TerminalLatitude $TerminalLongitude]

# The link
$n1 add-gsl polar $opt(ll) $opt(ifq) $opt(qlim) $opt(mac) $opt(bw_up)
$opt(phy) \
	[$n0 set downlink_] [$n0 set uplink_]
...........
..........

But if i look at the trace file created i can see that only 50 packets are
queued.
Any idea ???
Thanks a lot
Bye

Federico Orlandini