|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.queue.QLogic
drcl.inet.core.queue.SRED
The Stabalized Random Early Detection queue logic. The codes are ported from Parks'(parks@ee.eng.ohio-state.edu) ns-2 codes, which were based on T.J. Ott, T.V. Lakshman, L.H. Wong, "SRED: Stabilized RED", IEEE INFOCOM, 1999.
| Field Summary | |
protected boolean |
mark
The mark flag, true for marking CE bit instead of early dropping. |
| Fields inherited from class drcl.comp.queue.QLogic |
capacity, DEFAULT_ADVICE, EVENT_QSIZE, host, qlen, qsize, qSizePort |
| Constructor Summary | |
SRED()
|
|
SRED(Component host_)
|
|
SRED(Component host_,
java.lang.String qpid_)
|
|
| Method Summary | |
java.lang.String |
adviceOn(java.lang.Object obj_,
int psize_)
Advices the host component for deciding whether or not to drop the (arriving) object. |
int |
classify(Packet pkt_)
Returns the class the packet belongs to. |
void |
duplicate(java.lang.Object source_)
Duplicates the content of the source object to this object. |
PktClassifier |
getClassifier()
|
double |
getReplaceProb()
Returns the replacement probability. |
long |
getSeed()
|
double |
getSREDMaxProb()
Returns the maximum dropping probability. |
java.lang.String |
info(java.lang.String prefix_)
Prints the content (states) of this queue management instance. |
boolean |
isMarkEnabled()
|
void |
reset()
Resets this object to the initial state. |
void |
setClassifier(PktClassifier c_)
|
void |
setMarkEnabled(boolean enabled_)
If enabled, SRED marks the congestion bit of, instead of advising to drop, packets. |
void |
setRandomNumberGenerator(RandomNumberGenerator ug_)
|
void |
setRandomNumberGenerator(RandomNumberGenerator ug_,
long seed_)
|
void |
setReplaceProb(double p)
Sets the replacement probability. |
void |
setSeed(long seed_)
|
void |
setSREDMaxProb(double p)
Sets the maximum dropping probability. |
void |
setSREDParam(double replacep_,
double maxp_)
|
| Methods inherited from class drcl.comp.queue.QLogic |
dequeueHandler, dropHandler, enqueueHandler, getCapacity, getCurrentQLength, getCurrentQSize, getHost, info, isEmpty, isFull, set, setCapacity, setHost, setQSizePort |
| Methods inherited from class drcl.DrclObj |
clone, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean mark
| Constructor Detail |
public SRED()
public SRED(Component host_)
public SRED(Component host_,
java.lang.String qpid_)
| Method Detail |
public void duplicate(java.lang.Object source_)
QLogicsource_.
Subclasses must call super.duplicate() when
overriding this method.
duplicate in interface ObjectDuplicableduplicate in class QLogicpublic void reset()
QLogicsuper.reset() when
overriding this method.
reset in class QLogicpublic java.lang.String info(java.lang.String prefix_)
QLogic
info in class QLogicprefix_ - prefix of each line in the printout.
public java.lang.String adviceOn(java.lang.Object obj_,
int psize_)
QLogic
adviceOn in class QLogicpublic int classify(Packet pkt_)
PktClassifier
classify in interface PktClassifierpublic void setClassifier(PktClassifier c_)
public PktClassifier getClassifier()
public void setReplaceProb(double p)
public double getReplaceProb()
public void setSREDMaxProb(double p)
public double getSREDMaxProb()
public void setSREDParam(double replacep_,
double maxp_)
public void setMarkEnabled(boolean enabled_)
public boolean isMarkEnabled()
public void setSeed(long seed_)
public long getSeed()
public void setRandomNumberGenerator(RandomNumberGenerator ug_)
public void setRandomNumberGenerator(RandomNumberGenerator ug_,
long seed_)
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||