[ns] Queue in Bytes
Adnan Huremovic
adnan.huremovic at bhtelecom.ba
Thu Mar 23 23:42:56 PST 2006
Hello,
Do you know what is the size of queue when specified in packets? For example, if I put
$ns duplex-link $n4 $n5 2Mb 20ms DropTail
$ns queue-limit $n4 $n5 48
and have in the same time connections with different packet sizes (1000 i 1040 Bytes). What is the size of my queue in bytes?
Thanks, Adnan
----- Original Message -----
From: "Soo-Hyun Choi" <s.choi at computer.org>
To: "Ethan Giordano" <giordano at cis.udel.edu>
Cc: <Ns-users at ISI.EDU>
Sent: Friday, March 24, 2006 12:42 AM
Subject: Re: [ns] Queue in Bytes
>
> On 3/23/06, Ethan Giordano <giordano at cis.udel.edu> wrote:
>>
>> I'm trying to set the queues in my simulation to be measured in bytes
>> rather than in # of packets. The following does not seem to work, can
>> anyone suggest the correct method? The line to set drop-front queuing
>> works as intended, except from analyzing my traces, it does not appear
>> that the queue sizing lines are working.
>>
>> # Get the queue object
>> set dt [[$ns link $a $b] queue]
>> # Set the queue-in-bytes flag to true
>> $dt set qib_ 1
>
> Change the above line as:
> $dt set queue_in_bytes_ 1
>
>> # Set the queue bytes
>> $dt set qlim_ 50000
>> # Set the queue to be drop-front
>> $dt set drop_front_ 1
>>
>> Thanks,
>>
>> ~Ethan
>>
>>
>
>
>
More information about the Ns-users
mailing list