|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.Net.droptailQueue
A simple FIFO packet queue.
| Field Summary | |
int |
pktCount
auxiliary monitoring variable |
int |
pktDropCount
auxiliary monitoring variable |
boolean |
pktDropped
|
| Constructor Summary | |
droptailQueue()
|
|
droptailQueue(NIC nic)
Called by NIC if DML attribute interface.queue is omitted; then droptailQueue is the default packetQueue installed. |
|
| Method Summary | |
void |
config(NIC nic,
com.renesys.raceway.DML.Configuration cfg)
Does not accept any user-defined Configuration, required by interface packetQueue. |
boolean |
enqueue(ProtocolMessage msg)
Logical model: The Buffer holds N bits max; bits go out one by one at the NIC bitrate. |
long |
getNumberOfBitsInQueue()
Returns queue size in bits at the moment of calling. |
void |
init()
Required by interface packetQueue. |
void |
setMonitor(PacketQueueMonitor mon)
Set reference to a correctly configured class implementing the Java interface PacketQueueMonitor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean pktDropped
public int pktCount
public int pktDropCount
| Constructor Detail |
public droptailQueue()
public droptailQueue(NIC nic)
| Method Detail |
public void config(NIC nic,
com.renesys.raceway.DML.Configuration cfg)
config in interface packetQueuepublic void init()
init in interface packetQueuepublic void setMonitor(PacketQueueMonitor mon)
public boolean enqueue(ProtocolMessage msg)
Fairness among competing flows is an entirely separate issue; without buffering and write-behind interleaving, latecomers will be delayed by early arrivals, even if they were written "simultaneously" by different traffic sources and should therefore compete for timeslots.
If the buffer is full (that is, the number of bytes that have already been transmitted in this timeslot would fill the configured buffer size), then drop the packet rather than scheduling it.
Return true if a packet is successfully enqueued, or false if the queue rejects the packet.
enqueue in interface packetQueuepublic long getNumberOfBitsInQueue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||