|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.nist.antd.diffserv.SimplePacketQueue
|
+--gov.nist.antd.mpls.mgmt.mpls_interface.MPLSQueue
This abstract class inherits the SimplePacketQueue, and is used to implement various MPLS queues (e.g. TropTail, RED, RIO). It contains various information for the packet processing in the MPLS-queue. It also contains variables of queue statics for the performance of the queuing function.
This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Field Summary | |
double |
BitRate
Field BitRate - Bit rate |
int |
BufferSize
Field BufferSize - Buffer size |
boolean |
debug
Field debug - Debug flag |
int |
dequeueCount
Field dequeueCount - Dequeued packet count |
double |
dropBytes
Field dropBytes - Dropped packet bytes count |
int |
dropCount
Field dropCount - Packet drop count |
java.lang.String |
HostID
Field HostID - Host ID |
double |
incomingBytes
Field incomingBytes - Incoming packet bytes count |
int |
incomingCount
Field incomingCount - Incoming packet Count |
boolean |
isActive
Field isActive - Flag for activation |
boolean |
isWFQ
Field isWFQ - WFQ flag |
Host |
localHost
Field localHost - Local Host object |
MPLSInterfaceInfo |
mplsInterfaceInfo
Field mplsInterfaceInfo - MPLS Interface Information |
double |
nextEFt
Field nextEFt - Next EFt |
double |
outgoingBytes
Field outgoingBytes - Outgoing Packet bytes |
int |
outgoingCount
Field outgoingCount - Outgoing packet count |
double |
prevdropBytes
Field prevdropBytes - Previous dropped packet bytes |
int |
prevdropCount
Field prevdropCount - Previous dropped packet count |
double |
prevEFt
Field prevEFt - Prevous EFt |
double |
previncomingBytes
Field previncomingBytes - Previous incoming packet bytes count |
int |
previncomingCount
Field previncomingCount - Previous incoming packet count |
double |
prevoutgoingBytes
Field prevoutgoingBytes - Previous outgoing packet bytes |
int |
prevoutgoingCount
Field prevoutgoingCount - Previous outgoing packet count |
int |
Priority
Field Priority - Queue Priority |
double |
Rx
Field Rx - Receive Rate |
MPLSPacketScheduler |
Scheduler
Field Scheduler - Packet Scheduler object |
(package private) double |
SumOfWeight
Field SumOfWeight - XXX |
double |
totalQueueingDelay
Field totalQueueingDelay - Total queueing delay |
double |
Weight
Field Weight - WFQ's weight value |
| Fields inherited from class gov.nist.antd.diffserv.SimplePacketQueue |
|
| Constructor Summary | |
MPLSQueue()
Constructor MPLSQueue |
|
| Method Summary | |
void |
calculatEFtForWFQ(ProtocolMessage message)
Weighted Fair Queue Scheduling. |
boolean |
configWFQParms(double pdr,
double Rate)
Method configWFQParms Set the WFQ parameters with PDR and rate |
boolean |
configWFQParms(double pdr,
double cdr,
double C,
double sW)
Method configWFQParms Set the WFQ parameters |
MessageWrapper |
dequeue()
Dequeues the queue. |
void |
displayQueueInfo()
Method displayQueueInfo |
boolean |
enqueue(ProtocolMessage message,
ProtocolSession fromSession)
Enqueue the given message. |
double |
getAvgQueueingDelay()
Method getAvgQueueingDelay Get the Average Queueing delay |
double |
getDropPacketBytes()
Method getDropPacketBytes Get the dropped packet bytes |
int |
getDropPacketCount()
Method getDropPacketCount Get the Dropped packet count |
double |
getIncomingPacketBytes()
Method getIncomingPacketBytes Get the incoming packet bytes count |
int |
getIncomingPacketCount()
Method getIncomingPacketCount Get the incoming packet count |
double |
getOutgoingPacketBytes()
Method getOutgoingPacketBytes Get the outgoing packet bytes count |
int |
getOutgoingPacketCount()
Method getOutgoingPacketCount Get the outgoing packet count |
void |
init(MPLSInterfaceInfo minfo)
Initializes the queue. |
void |
setBitRate(double bitrate)
Method setBitRate Set Bitrate |
void |
setBufferSize(int size)
Method setBufferSize Set the buffersize |
void |
setPriorityWeight(int priority,
double weight)
Method setPriorityWeight Set the priority and weight value |
void |
setScheduler(MPLSPacketScheduler scheduler)
Method setScheduler Set Scheduler to this queue |
void |
setupWFQParms(double C,
double W,
double sW)
Method setupWFQParms |
java.lang.String |
toString()
Method toString |
| Methods inherited from class gov.nist.antd.diffserv.SimplePacketQueue |
getAvailableQLength, getFirstPacket, getMaxSize, getQLength, init, isEmpty, isFull, reset, setMaxSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public MPLSInterfaceInfo mplsInterfaceInfo
public Host localHost
public java.lang.String HostID
public boolean isActive
public boolean debug
public int BufferSize
public double BitRate
public int Priority
public boolean isWFQ
public double Weight
public double prevEFt
public double nextEFt
public double Rx
public MPLSPacketScheduler Scheduler
public int incomingCount
public double incomingBytes
public int previncomingCount
public double previncomingBytes
public int dropCount
public double dropBytes
public int prevdropCount
public double prevdropBytes
public int outgoingCount
public double outgoingBytes
public int prevoutgoingCount
public double prevoutgoingBytes
public int dequeueCount
public double totalQueueingDelay
double SumOfWeight
| Constructor Detail |
public MPLSQueue()
| Method Detail |
public void init(MPLSInterfaceInfo minfo)
minfo - the MPLSInterfaceInfopublic void setScheduler(MPLSPacketScheduler scheduler)
scheduler - public void setBufferSize(int size)
size - public void setBitRate(double bitrate)
bitrate -
public void setPriorityWeight(int priority,
double weight)
priority - weight -
public boolean enqueue(ProtocolMessage message,
ProtocolSession fromSession)
enqueue in class SimplePacketQueuemessage - The message to enqueuefromSession - The originating session
public MessageWrapper dequeue()
dequeue in class SimplePacketQueue
public void setupWFQParms(double C,
double W,
double sW)
C - - aggregated bandwidthW - - Weight for the QueuesW - - Sum of weights
public boolean configWFQParms(double pdr,
double cdr,
double C,
double sW)
pdr - - Peak Data Ratecdr - - Committed Data RateC - - Aggregated bandwidthsW - - Sum of weights
public boolean configWFQParms(double pdr,
double Rate)
pdr - - Peak Data RateRate -
public void calculatEFtForWFQ(ProtocolMessage message)
message - public int getIncomingPacketCount()
public double getIncomingPacketBytes()
public int getDropPacketCount()
public double getDropPacketBytes()
public int getOutgoingPacketCount()
public double getOutgoingPacketBytes()
public double getAvgQueueingDelay()
public void displayQueueInfo()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||