gov.nist.antd.restoration01
Class Restoration01

java.lang.Object
  |
  +--SSF.OS.ProtocolSession
        |
        +--gov.nist.antd.mpls.mgmt.traffic_eng.FaultManager
              |
              +--gov.nist.antd.restoration01.Restoration01
All Implemented Interfaces:
Callback, com.renesys.raceway.DML.Configurable

public class Restoration01
extends FaultManager
implements Callback

Restoration01

 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
, borchert , Chul Kim

Nested Class Summary
 class Restoration01.BackupProcess
          Class - BackupProcess Handle the backup path find and switch over active LSP's traffic to the backup LSP
 
Field Summary
static int ActivePathRecover
           
 boolean BackupCheckON
           
 java.util.Vector BackupProcessList
           
 S_CRLDP crldp
           
 MPLSForwarding forwarding
           
 MPLSForwardingTable forwardingtable
           
 java.lang.String ID
           
 MPLSInterfaceMgmt interfacemgmt
           
 boolean isFaultManagerEnable
           
 boolean isLogON
           
 MPLSMonitor monitor
           
 MPLSMgmt mplsmgmt
           
static int Notifications
           
 java.io.File RestorationDir
           
 java.lang.String RestorationDirName
           
static int RestorationFail
           
static int RestorationUsingBackupPath
           
 
Fields inherited from class gov.nist.antd.mpls.mgmt.traffic_eng.FaultManager
LossOfSignal
 
Fields inherited from class SSF.OS.ProtocolSession
name, use
 
Constructor Summary
Restoration01()
          Constructor
 
Method Summary
 void callback(EventMessage msg)
          This method implements the handler for the processing of the given type of message.
 void config(com.renesys.raceway.DML.Configuration cfg)
          Configure
 void init()
          Initialize Call initFaultManager() after 4 simulation time(sec)
 void initFaultManager()
          Called bythe Init() method Configure each member var, and create log file
 void interfaceErrorReport(java.lang.String nodeid, int interfaceid, int interfacetype, int errortype, int errorfiberid, int errorlambdaid)
          interfaceErrorReport Called by the NIC object to notify the fault and deliver fault information
 void interfaceRecoverReport(java.lang.String nodeid, int interfaceid, int interfacetype, int errortype, int recoverfiberid, int recoverlambdaid)
          Method interfaceRecoverReport Recovery Report function from the NIC
 void LSRTypeBackup(int ingresslsrid, int locallspid, MPLSSignalingInfo sigInfo, boolean fromOAM)
          Method LSRTypeBackup Create Backup Handler to take over Backup process
 boolean push(ProtocolMessage message, ProtocolSession fromSession)
          Method push
 void receiveErrorReportFromIngress(int ingresslsrid, int locallspid, MPLSSignalingInfo sigInfo, boolean fromOAM)
          Method receiveErrorReportFromIngress Called when the Ingress Node recieves the Error Report
 void receiveResourceCheck(ResourceCheckMessage message)
          Method receiveResourceCheck Handles the Resource check message
 void removeResourceCheckInfo(Restoration01.BackupProcess bp)
          Method removeResourceCheckInfo Remove the Backup Process from the list
 
Methods inherited from class SSF.OS.ProtocolSession
close, closed, debugIdentifier, inGraph, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ActivePathRecover

public static final int ActivePathRecover
See Also:
Constant Field Values

RestorationUsingBackupPath

public static final int RestorationUsingBackupPath
See Also:
Constant Field Values

RestorationFail

public static final int RestorationFail
See Also:
Constant Field Values

Notifications

public static final int Notifications
See Also:
Constant Field Values

ID

public java.lang.String ID

isFaultManagerEnable

public boolean isFaultManagerEnable

mplsmgmt

public MPLSMgmt mplsmgmt

crldp

public S_CRLDP crldp

interfacemgmt

public MPLSInterfaceMgmt interfacemgmt

forwardingtable

public MPLSForwardingTable forwardingtable

forwarding

public MPLSForwarding forwarding

monitor

public MPLSMonitor monitor

RestorationDirName

public java.lang.String RestorationDirName

RestorationDir

public java.io.File RestorationDir

isLogON

public boolean isLogON

BackupCheckON

public boolean BackupCheckON

BackupProcessList

public java.util.Vector BackupProcessList
Constructor Detail

Restoration01

public Restoration01()
Constructor

Method Detail

config

public void config(com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
Configure

Specified by:
config in interface com.renesys.raceway.DML.Configurable
Overrides:
config in class ProtocolSession
com.renesys.raceway.DML.configException

init

public void init()
          throws ProtocolException
Initialize Call initFaultManager() after 4 simulation time(sec)

Overrides:
init in class ProtocolSession
ProtocolException

initFaultManager

public void initFaultManager()
Called bythe Init() method Configure each member var, and create log file


interfaceErrorReport

public void interfaceErrorReport(java.lang.String nodeid,
                                 int interfaceid,
                                 int interfacetype,
                                 int errortype,
                                 int errorfiberid,
                                 int errorlambdaid)
interfaceErrorReport Called by the NIC object to notify the fault and deliver fault information

Specified by:
interfaceErrorReport in class FaultManager
Parameters:
nodeid - - Error Node ID
interfaceid - - Interface ID
interfacetype - - Interface Type
errortype - - Error Type
errorfiberid - - Error Fiber ID
errorlambdaid - - Error Lambda ID

interfaceRecoverReport

public void interfaceRecoverReport(java.lang.String nodeid,
                                   int interfaceid,
                                   int interfacetype,
                                   int errortype,
                                   int recoverfiberid,
                                   int recoverlambdaid)
Method interfaceRecoverReport Recovery Report function from the NIC

Specified by:
interfaceRecoverReport in class FaultManager
Parameters:
nodeid -
interfaceid -
interfacetype -
errortype -
recoverfiberid -
recoverlambdaid -

receiveErrorReportFromIngress

public void receiveErrorReportFromIngress(int ingresslsrid,
                                          int locallspid,
                                          MPLSSignalingInfo sigInfo,
                                          boolean fromOAM)
Method receiveErrorReportFromIngress Called when the Ingress Node recieves the Error Report

Specified by:
receiveErrorReportFromIngress in class FaultManager
Parameters:
ingresslsrid - - Ingress LSR ID
locallspid - - Local LSP ID
sigInfo - - Signaling Information

LSRTypeBackup

public void LSRTypeBackup(int ingresslsrid,
                          int locallspid,
                          MPLSSignalingInfo sigInfo,
                          boolean fromOAM)
Method LSRTypeBackup Create Backup Handler to take over Backup process

Parameters:
ingresslsrid - - Ingress LSR ID
locallspid - - Local LSP ID
sigInfo - - Signaling Information

push

public boolean push(ProtocolMessage message,
                    ProtocolSession fromSession)
             throws ProtocolException
Method push

Specified by:
push in class ProtocolSession
ProtocolException

receiveResourceCheck

public void receiveResourceCheck(ResourceCheckMessage message)
Method receiveResourceCheck Handles the Resource check message

Specified by:
receiveResourceCheck in class FaultManager

removeResourceCheckInfo

public void removeResourceCheckInfo(Restoration01.BackupProcess bp)
Method removeResourceCheckInfo Remove the Backup Process from the list


callback

public void callback(EventMessage msg)
Description copied from interface: Callback
This method implements the handler for the processing of the given type of message.

Specified by:
callback in interface Callback
Parameters:
msg - The message that contains the data.