|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.comp.Extension
drcl.comp.tool.CountMonitor2
drcl.net.tool.TrafficMonitor2
This component monitors the incoming traffic and outputs its throughput and
packet loss rate. The implementation is moved to CountMonitor2 for
general applications. This component remains for backward compatibility.
This component works the same as TrafficMonitor except that it also
calculates packet loss rate in the current window, provided that the packets
contain correct ordering information. It calculates the loss rate by summing
up the "gaps" found between the ordering information in the packets in the
current window. The calculation may not be correct if packets may arrive out
of order in different windows.
Same as TrafficMonitor, this component is configured by two
parameters: the window size (default one second) and the output interval
(default 0.5 second).
It can operate in the "byte" mode, the "packet" mode, or both.
The throughput events are exported at either the bytecount@
port or the pktcount@ port, and the loss rate exported at either
the byteloss@ port or the pktloss@ port, both in
percentage(%).
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
static java.lang.String |
BYTE_COUNT_EVENT
Name of the byte-mode throughput events. |
static java.lang.String |
BYTE_COUNT_PORT_ID
ID of the port to export the byte-mode throughput events. |
static java.lang.String |
BYTE_LOSS_EVENT
Name of the byte-mode packet-loss-rate events. |
static java.lang.String |
BYTE_LOSS_PORT_ID
ID of the port to export the byte-mode packet-loss-rate events. |
static java.lang.String |
PKT_COUNT_EVENT
Name of the packet-mode throughput events. |
static java.lang.String |
PKT_COUNT_PORT_ID
ID of the port to export the packet-mode throughput events. |
static java.lang.String |
PKT_LOSS_EVENT
Name of the packet-mode packet-loss-rate events. |
static java.lang.String |
PKT_LOSS_PORT_ID
ID of the port to export the packet-mode packet-loss-rate events. |
| Fields inherited from class drcl.comp.tool.CountMonitor2 |
OBJ_COUNT_PORT_ID, OBJ_LOSS_PORT_ID, SIZE_COUNT_PORT_ID, SIZE_LOSS_PORT_ID |
| Constructor Summary | |
TrafficMonitor2()
|
|
TrafficMonitor2(java.lang.String id_)
|
|
| Methods inherited from class drcl.comp.tool.CountMonitor2 |
configure, duplicate, getOutputInterval, getWindowSize, info, isObjModeEnabled, isSizeModeEnabled, reset, setEventNames, setObjectEventNames, setObjModeEnabled, setOutputInterval, setSizeEventNames, setSizeModeEnabled, setWindowSize |
| Methods inherited from class drcl.comp.Extension |
isExtensionEnabled, setExtensionEnabled |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String PKT_COUNT_PORT_ID
public static final java.lang.String PKT_LOSS_PORT_ID
public static final java.lang.String BYTE_COUNT_PORT_ID
public static final java.lang.String BYTE_LOSS_PORT_ID
public static final java.lang.String PKT_COUNT_EVENT
public static final java.lang.String PKT_LOSS_EVENT
public static final java.lang.String BYTE_COUNT_EVENT
public static final java.lang.String BYTE_LOSS_EVENT
| Constructor Detail |
public TrafficMonitor2()
public TrafficMonitor2(java.lang.String id_)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||