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

[altq 96] Re: When a class is delayed (undertime)




>> Q1: in rmc_update_class_util() of file altq_rmclass.c line 1371
>>   pkt_time = pktlen * cl->ns_per_byte_;
>> ......
>> 1371:   /* set next idle to make avgidle 0 */
>> 1372:   pkt_time += (1 - RM_POWER) * avgidle >> RM_FILTER_GAIN;
>> 1373:   TV_ADD_DELTA(&ifd->ifnow_, pkt_time, &cl->undertime_);
>> It adds the pkt_time to ifd->ifnow_. The time added to ifd->ifnow should be
>> waiting time but not
>> interpacket time. But pkt_time is estimated interpacket time.

The variable name "pkt_time" isn't suitable but it includes waiting
time.  Also, this algorithm has already changed as Fulvio suggested...

I think I already answered Q2 and Q3 in the previous replies.

-Kenjiro