gov.nist.antd.mpls.mgmt.traffic_eng
Class OAMModule.OAMProc

java.lang.Object
  |
  +--gov.nist.antd.mpls.mgmt.traffic_eng.OAMModule.OAMProc
Enclosing class:
OAMModule

public class OAMModule.OAMProc
extends java.lang.Object

Class OAMProc OAM procedure

Author:
EunHyuk Lim (ehlim@antd.nist.gov, othree28@hotmail.com)

Field Summary
 double AvgPacketDelay
          Field AvgPacketDelay - Average Packet delay
 double bandwidth
          Field bandwidth - Bandwidth
 CRLDPControlBlock ccb
          Field ccb - Control Block
 Timer ContinuityCheckTimer
          Field ContinuityCheckTimer
 java.lang.String EgressLSRID
          Field EgressLSRID - Egress LSR ID
 Timer EgressPerformanceMonitoringTimer
          Field EgressPerformanceMonitoringTimer
 double expectArriveTime
          Field expectArriveTime
 ForwardingInformation finfo
          Field finfo - ForwardingInformation(FEC, IML, Tunnel - it has incoming interface and label informations)
 MPLSInterfaceInfo ifaceinfo
          Field ifaceinfo - outGoing Interface Information
 int ingressLSRID
          Field ingressLSRID - LSP ID
 java.lang.String IngressLSRID
          Field IngressLSRID - Ingress LSR ID
 OAMModule ingressOAMInfo
          Field ingressOAMInfo
 boolean isActive
          Field isActive
 boolean isContinuityCheck
          Field isContinuityCheck
 boolean isContinuityCheckError
          Field isContinuityCheckError
 boolean isEnable
          Field isEnable
 boolean isOAMLog
          Field isOAMLog - XXX
 double jitter
          Field jitter - Jitter
 int localLSPID
          Field localLSPID - LSP ID
 double LoopBackTestEndTime
          Field LoopBackTestEndTime
 java.util.Vector LoopBackTestNodeList
          Field LoopBackTestNodeList - oopback test list
 double LoopBackTestStartTime
          Field LoopBackTestStartTime
 Timer LoopbackTestTimer
          Field LoopbackTestTimer - Loop back test Timer
 int LSRType
          Field LSRType
 double maxDelay
          Field maxDelay - Maximum end-to-end delay
 MPLSSchedulingQueueEntry msqe
          Field msqe - LSP Queue Information
 NHLFE nhlfe
          Field nhlfe - LSP Informatons(NHLFE : outInterfaceID, outLabel)
 java.io.FileWriter oamdegradelog
          Field oamdegradelog - Log File
 java.io.FileWriter oamlog
          Field oamlog - Log File
 long OAMPacketLoss
          Field OAMPacketLoss - OAM Packet loss
 java.io.FileWriter oamreport
          Field oamreport - Log File
 OAMModule owner
          Field owner - OAMModule instance
 double PacketDelay
          Field PacketDelay - End-to-end packet delay
 double PacketLossRatio
          Field PacketLossRatio - Packet loss ratio
 Timer PerformanceMonitoringTimer
          Field PerformanceMonitoringTimer
 double prevArriveTime
          Field prevArriveTime
 long prevSN
          Field prevSN
 double prevTime
          Field prevTime - time
 double receivingBlockBytes
          Field receivingBlockBytes - Received Block Bytes at the egress
 long receivingBlockCount
          Field receivingBlockCount - Received Block count at the egress
 double sendingBlockBytes
          Field sendingBlockBytes - sending Block Bytes from the ingress
 long sendingBlockCount
          Field sendingBlockCount - sending Block count from the ingress
 long SN
          Field SN - OAM Packet SequenceNumber
 double TotalPacketCount
          Field TotalPacketCount - total Packet count
 double TotalPacketDelay
          Field TotalPacketDelay - total Packet Delay
 
Constructor Summary
OAMModule.OAMProc(OAMModule oammodule, int ingresslsrid, int locallspid)
          Constructor OAMProc
 
Method Summary
 void ContinuityCheckError()
          Method ContinuityCheckError EgressLSR OAM Functions - continuity check error
 void ContinuityCheckRecover()
          Method ContinuityCheckRecover EgressLSR OAM Functions - continuity check recover
 void ContinuityCheckTimerSet()
          Method ContinuityCheckTimerSet EgressLSR OAM Functions - continuity check timer set
 void DegradeReport()
          Method DegradeReport
 void EgressPerformanceMonitoring()
          Method EgressPerformanceMonitoring EgressLSR OAM Functions - Performance monitoring
 void EgressPerformanceMonitoringTimerSet()
          Method EgressPerformanceMonitoringTimerSet EgressLSR OAM Functions - Performance monitor time set
 void ErrorReport(OAMPacket packet)
          Method ErrorReport Common Functions -- call other methods according to the Error type
 void flushFile()
          Method flushFile Flush the log to file
 void ingressErrorReport(OAMPacket packet)
          Method ingressErrorReport IngressLSR OAM Functions - Error Report
 void IngressLoopbackTestReport(OAMPacket packet)
          Method IngressLoopbackTestReport IngressLSR OAM Functions - report loopback test
 void IngressNotification(OAMPacket packet)
          Method IngressNotification
 void LoopbackReport()
          Method LoopbackReport Report lookback test
 void LoopBackTest(OAMPacket packet)
          Method LoopBackTest When Received the Loopback Test Message
 void LoopBackTestReport(OAMPacket packet)
          Method LoopBackTestReport Common Functions - core/Ingress
 void LoopbackTestStart()
          Method LoopbackTestStart Lookback Test
 void LoopbackTestTimerSet(double wtime)
          Method LoopbackTestTimerSet IngressLSR OAM Functions - Loopback test timer set
 void Notification(OAMPacket packet)
          Method Notification
 void PerformanceMonitoring(OAMPacket packet)
          Method PerformanceMonitoring Common Functions
 void PerformanceMonitoringPacketTimerSet()
          Method PerformanceMonitoringPacketTimerSet IngressLSR OAM Functions - Packet timer set
 void PerformanceMonitoringReport(OAMPacket packet)
          Method PerformanceMonitoringReport Common Functions
 void PerformanceOAMReceive(OAMPacket packet)
          Method PerformanceOAMReceive EgressLSR OAM Functions - receive the performance OAM packet
 void receiveOAMPacket(OAMPacket packet)
          Method receiveOAMPacket Recieve the OAM Packet
 void removeTimer()
          Method removeTimer Common Functions - Remove the timer
 void ReportFromTEAgent(int reporttype, NHLFE backupnhlfe, java.lang.String info)
          Method ReportFromTEAgent Write Error related information to the Log File
 void sendPerformanceMonitoringOAMPacket()
          Method sendPerformanceMonitoringOAMPacket IngressLSR OAM Functions - Send performance monitoring packet
 void setupLogFile()
          Method setupLogFile Setup Log File
 boolean setupOAMProc()
          Method setupOAMProc
 void WritePerformanceMonitoringResult(OAMPacket packet)
          Method WritePerformanceMonitoringResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IngressLSRID

public java.lang.String IngressLSRID
Field IngressLSRID - Ingress LSR ID


EgressLSRID

public java.lang.String EgressLSRID
Field EgressLSRID - Egress LSR ID


ingressLSRID

public int ingressLSRID
Field ingressLSRID - LSP ID


localLSPID

public int localLSPID
Field localLSPID - LSP ID


owner

public OAMModule owner
Field owner - OAMModule instance


ccb

public CRLDPControlBlock ccb
Field ccb - Control Block


LSRType

public int LSRType
Field LSRType


finfo

public ForwardingInformation finfo
Field finfo - ForwardingInformation(FEC, IML, Tunnel - it has incoming interface and label informations)


nhlfe

public NHLFE nhlfe
Field nhlfe - LSP Informatons(NHLFE : outInterfaceID, outLabel)


ifaceinfo

public MPLSInterfaceInfo ifaceinfo
Field ifaceinfo - outGoing Interface Information


msqe

public MPLSSchedulingQueueEntry msqe
Field msqe - LSP Queue Information


isEnable

public boolean isEnable
Field isEnable


PerformanceMonitoringTimer

public Timer PerformanceMonitoringTimer
Field PerformanceMonitoringTimer


LoopbackTestTimer

public Timer LoopbackTestTimer
Field LoopbackTestTimer - Loop back test Timer


maxDelay

public double maxDelay
Field maxDelay - Maximum end-to-end delay


SN

public long SN
Field SN - OAM Packet SequenceNumber


LoopBackTestNodeList

public java.util.Vector LoopBackTestNodeList
Field LoopBackTestNodeList - oopback test list


LoopBackTestStartTime

public double LoopBackTestStartTime
Field LoopBackTestStartTime


LoopBackTestEndTime

public double LoopBackTestEndTime
Field LoopBackTestEndTime


oamreport

public java.io.FileWriter oamreport
Field oamreport - Log File


oamlog

public java.io.FileWriter oamlog
Field oamlog - Log File


oamdegradelog

public java.io.FileWriter oamdegradelog
Field oamdegradelog - Log File


isOAMLog

public boolean isOAMLog
Field isOAMLog - XXX


ingressOAMInfo

public OAMModule ingressOAMInfo
Field ingressOAMInfo


prevArriveTime

public double prevArriveTime
Field prevArriveTime


expectArriveTime

public double expectArriveTime
Field expectArriveTime


prevSN

public long prevSN
Field prevSN


isActive

public boolean isActive
Field isActive


isContinuityCheck

public boolean isContinuityCheck
Field isContinuityCheck


isContinuityCheckError

public boolean isContinuityCheckError
Field isContinuityCheckError


ContinuityCheckTimer

public Timer ContinuityCheckTimer
Field ContinuityCheckTimer


EgressPerformanceMonitoringTimer

public Timer EgressPerformanceMonitoringTimer
Field EgressPerformanceMonitoringTimer


PacketDelay

public double PacketDelay
Field PacketDelay - End-to-end packet delay


AvgPacketDelay

public double AvgPacketDelay
Field AvgPacketDelay - Average Packet delay


bandwidth

public double bandwidth
Field bandwidth - Bandwidth


jitter

public double jitter
Field jitter - Jitter


PacketLossRatio

public double PacketLossRatio
Field PacketLossRatio - Packet loss ratio


TotalPacketDelay

public double TotalPacketDelay
Field TotalPacketDelay - total Packet Delay


TotalPacketCount

public double TotalPacketCount
Field TotalPacketCount - total Packet count


sendingBlockBytes

public double sendingBlockBytes
Field sendingBlockBytes - sending Block Bytes from the ingress


receivingBlockBytes

public double receivingBlockBytes
Field receivingBlockBytes - Received Block Bytes at the egress


sendingBlockCount

public long sendingBlockCount
Field sendingBlockCount - sending Block count from the ingress


receivingBlockCount

public long receivingBlockCount
Field receivingBlockCount - Received Block count at the egress


OAMPacketLoss

public long OAMPacketLoss
Field OAMPacketLoss - OAM Packet loss


prevTime

public double prevTime
Field prevTime - time

Constructor Detail

OAMModule.OAMProc

public OAMModule.OAMProc(OAMModule oammodule,
                         int ingresslsrid,
                         int locallspid)
Constructor OAMProc

Parameters:
oammodule - - OAM module
ingresslsrid - - Ingress LSR ID
locallspid - - Local LSP ID
Method Detail

setupOAMProc

public boolean setupOAMProc()
Method setupOAMProc

Returns:
boolean

setupLogFile

public void setupLogFile()
Method setupLogFile Setup Log File


PerformanceMonitoringPacketTimerSet

public void PerformanceMonitoringPacketTimerSet()
Method PerformanceMonitoringPacketTimerSet IngressLSR OAM Functions - Packet timer set


LoopbackTestTimerSet

public void LoopbackTestTimerSet(double wtime)
Method LoopbackTestTimerSet IngressLSR OAM Functions - Loopback test timer set

Parameters:
wtime - - XXX

sendPerformanceMonitoringOAMPacket

public void sendPerformanceMonitoringOAMPacket()
Method sendPerformanceMonitoringOAMPacket IngressLSR OAM Functions - Send performance monitoring packet


ingressErrorReport

public void ingressErrorReport(OAMPacket packet)
Method ingressErrorReport IngressLSR OAM Functions - Error Report

Parameters:
packet - - XXX

ReportFromTEAgent

public void ReportFromTEAgent(int reporttype,
                              NHLFE backupnhlfe,
                              java.lang.String info)
Method ReportFromTEAgent Write Error related information to the Log File

Parameters:
reporttype - - Report Type
backupnhlfe - - Bckup NHLFE entry
info - - Information

LoopbackTestStart

public void LoopbackTestStart()
Method LoopbackTestStart Lookback Test


LoopbackReport

public void LoopbackReport()
Method LoopbackReport Report lookback test


IngressLoopbackTestReport

public void IngressLoopbackTestReport(OAMPacket packet)
Method IngressLoopbackTestReport IngressLSR OAM Functions - report loopback test

Parameters:
packet - - XXX

WritePerformanceMonitoringResult

public void WritePerformanceMonitoringResult(OAMPacket packet)
Method WritePerformanceMonitoringResult

Parameters:
packet -

IngressNotification

public void IngressNotification(OAMPacket packet)
Method IngressNotification

Parameters:
packet -

EgressPerformanceMonitoringTimerSet

public void EgressPerformanceMonitoringTimerSet()
Method EgressPerformanceMonitoringTimerSet EgressLSR OAM Functions - Performance monitor time set


ContinuityCheckTimerSet

public void ContinuityCheckTimerSet()
Method ContinuityCheckTimerSet EgressLSR OAM Functions - continuity check timer set


ContinuityCheckError

public void ContinuityCheckError()
Method ContinuityCheckError EgressLSR OAM Functions - continuity check error


ContinuityCheckRecover

public void ContinuityCheckRecover()
Method ContinuityCheckRecover EgressLSR OAM Functions - continuity check recover


EgressPerformanceMonitoring

public void EgressPerformanceMonitoring()
Method EgressPerformanceMonitoring EgressLSR OAM Functions - Performance monitoring


PerformanceOAMReceive

public void PerformanceOAMReceive(OAMPacket packet)
Method PerformanceOAMReceive EgressLSR OAM Functions - receive the performance OAM packet

Parameters:
packet -

DegradeReport

public void DegradeReport()
Method DegradeReport


receiveOAMPacket

public void receiveOAMPacket(OAMPacket packet)
Method receiveOAMPacket Recieve the OAM Packet

Parameters:
packet -

PerformanceMonitoring

public void PerformanceMonitoring(OAMPacket packet)
Method PerformanceMonitoring Common Functions

Parameters:
packet -

PerformanceMonitoringReport

public void PerformanceMonitoringReport(OAMPacket packet)
Method PerformanceMonitoringReport Common Functions

Parameters:
packet -

LoopBackTest

public void LoopBackTest(OAMPacket packet)
Method LoopBackTest When Received the Loopback Test Message

Parameters:
packet -

LoopBackTestReport

public void LoopBackTestReport(OAMPacket packet)
Method LoopBackTestReport Common Functions - core/Ingress

Parameters:
packet -

ErrorReport

public void ErrorReport(OAMPacket packet)
Method ErrorReport Common Functions -- call other methods according to the Error type

Parameters:
packet -

Notification

public void Notification(OAMPacket packet)
Method Notification

Parameters:
packet -

removeTimer

public void removeTimer()
Method removeTimer Common Functions - Remove the timer


flushFile

public void flushFile()
Method flushFile Flush the log to file