29 double notifyProb = 0;
37 if ((len < maxLen) && (len >= thrLen) ) {
38 notifyProb = 1 / (maxLen - thrLen) * (len - thrLen);
41 const double rand = dblrand();
42 if(rand < notifyProb){
virtual void onPolicyInit()
queueType getType() const
Define_Module(REDUpstreamNotifier)
virtual bool run(RMTQueue *queue)
const cPacket * getLastPDU() const
virtual unsigned int getSeqNum() const
int getThreshLength() const
simsignal_t sigStatUpstreamNotifierSeqNum
void notifySenderOfCongestion(const cPacket *pdu)