gov.nist.antd.diffserv
Class DiffServMonitor

java.lang.Object
  |
  +--gov.nist.antd.diffserv.DiffServMonitor

public class DiffServMonitor
extends java.lang.Object

DiffServMonitor controls the peformance monitoring of each class-type micro-flow of DiffServ packet processing.

Following performance data are provided as the result of monitoring: - bandwidth - packet delay - total byte - total packet count - packet loss ratio - jitter (delay variance) The DiffServMonitor is turned on by setting the "logfile on" in the ProtocolSession [name DiffServ use gov.nist.antd.diffServ.DiffServTrafficConditioner] of DiffServ-aware LSR. ========================= Example DML specification ========================= LSR [ id 110 graph [ ProtocolSession [name sCRLDP use gov.nist.antd.mpls_signaling.sCRLDP ] ProtocolSession [name MPLSModule use gov.nist.antd.mpls_mgmt.MPLSMgmt logfile on _find .dictionary.mplsinit ] ProtocolSession [name te-app use gov.nist.antd.ospf_te.TEPath] ProtocolSession [name ospf-te use gov.nist.antd.ospf_te.sOSPF_TE] ProtocolSession [name ip use SSF.OS.IP] ProtocolSession [name DiffServ use gov.nist.antd.DiffServ.DiffServTrafficConditioner ############ DiffServMonitor on logfile on ########### _find .dictionary.LER110_DiffServ.diffServFlow ] ProtocolSession [ name ospf use SSF.OS.OSPF.sOSPF ] ] interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ] interface [ id 1 _find .dictionary.host_LER_bitrate.bitrate ] interface [ id 2 _find .dictionary.host_LER_bitrate.bitrate ] interface [ id 3 _find .dictionary.LER_LSR_bitrate.bitrate ] ]

 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.

Author:
Young-Tak Kim
, Eun-Hyuk Lim , borchert

Field Summary
 java.io.FileWriter bandwidth
          Field bandwidth - XXX
 java.io.File DiffServHostDir
          Field DiffServHostDir - XXX
 java.lang.String DiffServHostDirName
          Field DiffServHostDirName - XXX
 java.util.Vector FlowInfoTable
          Field FlowInfoTable - XXX
(package private)  boolean isLog
          Field isLog - XXX
 java.io.FileWriter jitter
          Field jitter - XXX
 DiffServTrafficConditioner owner
          Field owner - XXX
 java.io.FileWriter packetDelay
          Field packetDelay - XXX
 java.io.FileWriter packetLossRatio
          Field packetLossRatio - XXX
 java.io.FileWriter totalByte
          Field totalByte - XXX
 java.io.FileWriter totalPacketCount
          Field totalPacketCount - XXX
 
Constructor Summary
DiffServMonitor(DiffServTrafficConditioner o)
          Constructor DiffServMonitor
 
Method Summary
 void flushFile()
          Method flushFile
 boolean registerFlowInfo(java.lang.String id, double starttime, int protocolnum, int clientip, int serverip, int serverport)
          Method registerFlowInfo XXX
 void setupMonitor()
          Method setupMonitor
 void updateFlowInfo(java.lang.String id, double recvByte, double delay, long packetloss, double lossbytes)
          Method updateFlowInfo XXX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

public DiffServTrafficConditioner owner
Field owner - XXX


FlowInfoTable

public java.util.Vector FlowInfoTable
Field FlowInfoTable - XXX


isLog

boolean isLog
Field isLog - XXX


DiffServHostDir

public java.io.File DiffServHostDir
Field DiffServHostDir - XXX


DiffServHostDirName

public java.lang.String DiffServHostDirName
Field DiffServHostDirName - XXX


bandwidth

public java.io.FileWriter bandwidth
Field bandwidth - XXX


packetDelay

public java.io.FileWriter packetDelay
Field packetDelay - XXX


totalByte

public java.io.FileWriter totalByte
Field totalByte - XXX


totalPacketCount

public java.io.FileWriter totalPacketCount
Field totalPacketCount - XXX


packetLossRatio

public java.io.FileWriter packetLossRatio
Field packetLossRatio - XXX


jitter

public java.io.FileWriter jitter
Field jitter - XXX

Constructor Detail

DiffServMonitor

public DiffServMonitor(DiffServTrafficConditioner o)
Constructor DiffServMonitor

Parameters:
o - - XXX
Method Detail

setupMonitor

public void setupMonitor()
Method setupMonitor


registerFlowInfo

public boolean registerFlowInfo(java.lang.String id,
                                double starttime,
                                int protocolnum,
                                int clientip,
                                int serverip,
                                int serverport)
Method registerFlowInfo XXX

Parameters:
id - - XXX
starttime - - XXX
protocolnum - - XXX
clientip - - XXX
serverip - - XXX
serverport - - XXX
Returns:
boolean - XXX

updateFlowInfo

public void updateFlowInfo(java.lang.String id,
                           double recvByte,
                           double delay,
                           long packetloss,
                           double lossbytes)
Method updateFlowInfo XXX

Parameters:
id - - XXX
recvByte - - XXX
delay - - XXX
packetloss - - XXX
lossbytes - - XXX

flushFile

public void flushFile()
Method flushFile