|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jtc.QDisc | +--jtc.REDQDisc
This class represents a Random Early Detect queueing discipline, the RED (random early detection) queuing discipline which gently starts dropping packets before the queue fills up.
Field Summary | |
protected int |
avpkt
avarage package size (in Bytes) |
protected long |
bandwidth
bandwidth in bytes per second |
protected int |
burst
burst in packages |
protected boolean |
ecn
ecn flag (ecn=exlpicit congestion notification) If set, packets in this qdisc will get their ecn bits set, if the qdisc is congested. |
protected long |
limit
limit in bytes |
protected long |
max
max-bytes |
protected long |
min
min-bytes |
protected float |
probability
dropping probability |
Fields inherited from class jtc.QDisc |
device,
estInterval,
estTimer,
ingress,
majorHandle,
minorHandle,
parent |
Constructor Summary | |
REDQDisc(long limit,
long min,
long max,
int avpkt,
int burst,
java.lang.String device)
Constructs a red qdisc as the root qdisc of the given device |
|
REDQDisc(long limit,
long min,
long max,
int avpkt,
int burst,
TCClass parent,
short majorHandle)
Constructs a red qdisc |
Method Summary | |
void |
setBandwidth(long bandwidth)
Set the bandwidth. |
void |
setECN()
Tell the qdisc to set the ecn bits in the packages, if qdisc congested. |
void |
setProbability(float probability)
Set the dropping probability. |
java.lang.String |
toString()
Get a string representation of the object. |
Methods inherited from class jtc.QDisc |
getDevice,
getTC,
newFilterMinor |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected long limit
protected long min
protected long max
protected int avpkt
protected int burst
protected float probability
protected boolean ecn
protected long bandwidth
Constructor Detail |
public REDQDisc(long limit, long min, long max, int avpkt, int burst, java.lang.String device)
limit
- limit in bytesmin
- min-bytesmax
- max-bytesavpkt
- avarage package size (in Bytes)burst
- burst in packagesdevice
- the device the qdisc is attached topublic REDQDisc(long limit, long min, long max, int avpkt, int burst, TCClass parent, short majorHandle)
limit
- limit in bytesmin
- min-bytesmax
- max-bytesavpkt
- avarage package size (in Bytes)burst
- burst in packagesparent
- the parent class of the qdiscmajorHandle
- the major handle the qdisc shall be idenfied byMethod Detail |
public void setProbability(float probability)
probability
- dropping probabilitypublic void setECN()
public void setBandwidth(long bandwidth)
bandwidth
- public java.lang.String toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |