[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Enque function in dsredq.cc
Hi All,
in dsredq.cc
in redQueue::enque
if the avg queue is greater than the max threshold and ECN is on should
the packet be marked as the code does or should it be dropped
//now determining whether to drop the packet or not
u = Random::uniform(0.0, 1.0);
//drop it
if (u <= pa) {
if (ecn) return PKT_MARKED;
return PKT_EDROPPED;
}
} else { //if avg queue is greater than max. threshold
qParam_[prec].edv_.count = 0;
if (ecn) return PKT_MARKED;
return PKT_DROPPED;
thanks for your help
Ashraf