RED Operation
Time-averaged queue occupancy measure is based on an exponentially-weighted moving average (EWMA):
- avg = (1-w) * avg + w * (new sample)
- w is “weight” (gain constant), ~0.002
Two thresholds:
- minth: min threshold to initiate random drop/mark
- maxth: max threshold to use random drop/mark