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

[ns] Contributions to the diffserv



Hi,
 
Actually, I need to make some change in the Nortels Diffserv Module. What I need to implement is to keep a counter of packets arrivals, Counter for packet drops, and drop a packet respect to a ratio. Actually like this, If some one can tell me where should I put these, and the following also
 
B(t) set of backlogged classes at time t
Ai: Counter of packet arrivals in class i
Di: Counter of packet drops in class i
Ki: Some Const.
For each Packet Arrival in class i;
Ai++;
Packe drop from class j at time t;
j=arg( min(i E B(t)) Di/(AiKi)  ) ;
Dj++;
 
I checked dsred.cc dsred.h dsredq.h dsredq.cc etc.. may be I couldnt catch it but I dont know Where to put these, So I need a quick help.
Thank you For your Attention