gov.nist.antd.mpls.mgmt
Class MPLSMonitor

java.lang.Object
  |
  +--gov.nist.antd.mpls.mgmt.MPLSMonitor

public class MPLSMonitor
extends java.lang.Object

Class MPLSMonitor for monitoring functions.
The Monitoring class creates several log files to record traffic monitoring result

  
   Log File Name           Contents
   -------------           -----------------
   CR-LDP_Log.txt          Path Informations of LSPs

   Bandwidth.txt           In/Out Bandwidth of NICs
   PacketBytes.txt         In/Out Packet Bytes of NICs
   PacketCounts.txt        In/Out Packet Counts of NICs

   TG_BandWidth.txt        Bandwidth monitoring result of 
                           the Traffic Generator
                           that is attached to this Node
   TG_PacketDelay.txt      End-to-end packet delay 
   TG_totalByte.txt        Packet Bytes 
   TG_packetCount.txt      Packet Counts
   TG_packetLossRatio.txt  Packet Loss Ratio 
   TG_packetJitter.txt     Jitter monitoring

   Monitoring Point

    TG_BandWidth
    TG_PacketDelay
    TG_totalByte
    TG_packetCount
    TG_packetLossRatio    +-----------------+
    TG_packetJitter       |  +-----------+  |
          |               |  | CR-LDP  ---------- CR-LDP_Log.txt
    +-----|-----+         |  +-----------+  |
    | Traffic   |         |  +-----------+  |
    | Generator |         |  | Protocol  |  |
    |           |         |  | stacks    |  |
    |           |         |  | IP, MPLS..|  |
    |           |         |  +-----------+  |
    | +-------+ |         |+---+ +---+ +---+|
    | |  NIC  +------------+NIC| |NIC| |NIC||
    | +-------+ |         |+--|+ +--|+ +--|+|
    +-----------+         +---|-----|-----|-+
                              |     |     |
                              +-----+-----+
                                    |
                              Bandwidth.txt
                              PacketBytes.txt
                              PacketCounts.txt

 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:
EunHyuk Lim (ehlim@antd.nist.gov, othree28@hotmail.com)
, borchert

Field Summary
 java.io.FileWriter bandwidth
          Field bandwidth - XXX
 java.io.FileWriter CRLDPLog
          Field CRLDPLog - XXX
 boolean isInterfaceMonitorOn
          Field isInterfaceMonitorOn - XXX
 boolean isLogOn
          Field isLogOn - XXX
 boolean isTGMonitorOn
          Field isTGMonitorOn - XXX
 java.io.FileWriter jitter
          Field jitter - XXX
 Host localHost
          Field localHost - XXX
 java.io.File LogFileDir
          Field LogFileDir - XXX
 java.lang.String LogFileDirName
          Field LogFileDirName - XXX
 MPLSMgmt mplsmgmt
          Field mplsmgmt - XXX
 java.io.FileWriter NICTrafficBPS
          Field NICTrafficBPS - XXX
 java.io.FileWriter NICTrafficBytes
          Field NICTrafficBytes - XXX
 java.io.FileWriter NICTrafficCount
          Field NICTrafficCount - XXX
 java.io.FileWriter packetDelay
          Field packetDelay - XXX
 java.io.FileWriter packetLossRatio
          Field packetLossRatio - XXX
 java.io.File TGHostDir
          Field TGHostDir - XXX
 java.lang.String TGHostDirName
          Field TGHostDirName - XXX
 java.io.FileWriter totalByte
          Field totalByte - XXX
 java.io.FileWriter totalPacketCount
          Field totalPacketCount - XXX
 java.util.Vector TrafficInfoTable
          Field TrafficInfoTable - XXX
 java.io.File TrafficMonitoringDir
          Field TrafficMonitoringDir - XXX
 java.lang.String TrafficMonitoringDirName
          Field TrafficMonitoringDirName - XXX
 
Constructor Summary
MPLSMonitor(MPLSMgmt mgmt)
          Constructor MPLSMonitor
 
Method Summary
 void flushFile()
          Method flushFile
 void init()
          Method init
 void InterfaceMonitorSetup()
          Method InterfaceMonitorSetup
 void logCRLDPInfo(java.lang.String str)
          Method logCRLDPInfo XXX
 void Monitoring()
          Method Monitoring
 void registerFlowInfo(java.lang.String id, double starttime, int protocolnum, int clientip, int serverip, int serverport)
          Method registerFlowInfo XXX
 void TGMonitorSetup()
          Method TGMonitorSetup
 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

mplsmgmt

public MPLSMgmt mplsmgmt
Field mplsmgmt - XXX


localHost

public Host localHost
Field localHost - XXX


isLogOn

public boolean isLogOn
Field isLogOn - XXX


LogFileDir

public java.io.File LogFileDir
Field LogFileDir - XXX


LogFileDirName

public java.lang.String LogFileDirName
Field LogFileDirName - XXX


isInterfaceMonitorOn

public boolean isInterfaceMonitorOn
Field isInterfaceMonitorOn - XXX


TrafficMonitoringDir

public java.io.File TrafficMonitoringDir
Field TrafficMonitoringDir - XXX


TrafficMonitoringDirName

public java.lang.String TrafficMonitoringDirName
Field TrafficMonitoringDirName - XXX


NICTrafficBPS

public java.io.FileWriter NICTrafficBPS
Field NICTrafficBPS - XXX


NICTrafficCount

public java.io.FileWriter NICTrafficCount
Field NICTrafficCount - XXX


NICTrafficBytes

public java.io.FileWriter NICTrafficBytes
Field NICTrafficBytes - XXX


TrafficInfoTable

public java.util.Vector TrafficInfoTable
Field TrafficInfoTable - XXX


isTGMonitorOn

public boolean isTGMonitorOn
Field isTGMonitorOn - XXX


TGHostDir

public java.io.File TGHostDir
Field TGHostDir - XXX


TGHostDirName

public java.lang.String TGHostDirName
Field TGHostDirName - 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


CRLDPLog

public java.io.FileWriter CRLDPLog
Field CRLDPLog - XXX

Constructor Detail

MPLSMonitor

public MPLSMonitor(MPLSMgmt mgmt)
Constructor MPLSMonitor

Parameters:
mgmt - - XXX
Method Detail

init

public void init()
Method init


InterfaceMonitorSetup

public void InterfaceMonitorSetup()
Method InterfaceMonitorSetup


TGMonitorSetup

public void TGMonitorSetup()
Method TGMonitorSetup


Monitoring

public void Monitoring()
Method Monitoring


logCRLDPInfo

public void logCRLDPInfo(java.lang.String str)
Method logCRLDPInfo XXX

Parameters:
str - - XXX

flushFile

public void flushFile()
Method flushFile


registerFlowInfo

public void 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

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