[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Questions about CBQ.cc
Hi,
I have a few questions of CBQ.cc while reading the code. Could anyone
explain te following method to me? Thanks in advance..
CBQ.cc
// toplevel_departure: called only using TL link sharing on departure
void
CBQueue::toplevel_departure(CBQClass *cl, double now)
{
if (toplevel_ >= last_lender_->level_) {
if ((cl->qmon_->pkts() <= 1) ||
last_lender_->undertime_ > now) {
toplevel_ = MAXLEVEL;
} else {
toplevel_ = last_lender_->level_;
}
}
}
Questions:
1. what does 'TL' stand for?
2. what is the meaning of 'last_lender_' and 'last_lender_->level_'?
3. cl->qmon->pkt()<= 1: does this mean that while no packet exists in the
CBQ class?
regards,
Curtis
=============================
Chuang-Yueh (Curtis) Chen
PhD student in Networking Technology
Electronic and Electrical School
University of Birmingham
E-mail: [email protected]
[email protected]
Fax: +44-121-4144291