|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Thread Sim_entity FnbSCFQScheduler RED ARED
public class ARED
This class implements the Adaptative Random Early Detection (ARED) policy for the management of network buffers at routers. Its basic functionality is as follows:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ARED(String name,
double baudRate,
double max_p,
int max_buf_size,
double queue_weight,
boolean stats)
Creates a new Adaptative Random Early Detection (ARED) policy. |
Method Summary | |
---|---|
protected void |
initialize()
This function initializes the parameters of the buffers policies |
boolean |
setBaudRate(double rate)
Sets the baud rate that this scheduler will be sending packets at. |
void |
setThresholds()
Sets the this class and RED thresholds. |
void |
updateAREDParameters()
This function updates the value of max_p, which is the maximum dropping probability for a packet. |
Methods inherited from class RED |
---|
avgQueueSize, deque, enque, getAvg, getMaxP, getMaxTh, getMinTh, setMaxP, setMaxTh, setMinTh, setQueueWeight, updateStats |
Methods inherited from class Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ARED(String name, double baudRate, double max_p, int max_buf_size, double queue_weight, boolean stats) throws Exception
name
- Name of this schedulerbaudRate
- baud rate in bits/s of the port that is using
this scheduler.max_p
- the maximum dropping probability for an incoming packetmax_buf_size
- maximum buffer size for routersqueue_weight
- this parameter reflects how important is the last
measurement of the buffer size on the calculation of the average buffer sizestats
- whether we want to record some stats or not
Exception
- This happens when the baud rate <= 0Method Detail |
---|
public void updateAREDParameters()
public void setThresholds()
RED
thresholds.
protected void initialize()
initialize
in class RED
public boolean setBaudRate(double rate)
setBaudRate
in interface PacketScheduler
setBaudRate
in class RED
rate
- the baud rate of this scheduler (in bits/s)
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |