gov.nist.antd.mpls.mgmt.sig_interface
Class MPLSSignalingInterfaceMgmt

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

public class MPLSSignalingInterfaceMgmt
extends java.lang.Object

This MPLSSignalingInterfaceMgmt class provides the CR-LDP with interface functions to establish a LSP. This class recieves signaling informations(MPLSSignalingInfo class) that has Label request or mapping informations from the CR-LDP to allocates requested resources to a LSP.


 
                          +--------------------------+
                          |  MPLS Signaling Protocol |
                          |    - CR-LDP              |
                          +-----+--------------------+
                                | (Label Request/Mapping request, 
                                |  Traffic Parameters(PDR, CDR etc.),
                                |  In/Out Interface, Label)
             -------------------+---------------------------------------
                +---------------+-----------------------------------+
                |  MPLSMgmt     |                                   |
                |   +===========+============+   +----------------+ |
                |   | MPLSSignaling          |-->| MPLSForwarding | |
                |   | InerfaceMgmt           |   | Table          | |
                |   |  - Resource allocation |   +----------------+ |
                |   |  - Crestes forwarding  |                      |
                |   |     informations       |                      |
                |   +===========+============+                      |
                |               |                                   |
                |   +-----------+----------------+                  |
                |   |  MPLSInterfaceMgmt         |                  |
                |   |    - Resource Informations |                  |
                |   +----------------------------+                  |
                +---------------------------------------------------+

 When the MPLSSignalingInterfaceMgmt receives a Signaling message from the 
 CRLDP, it collects resource informations whether it is available and then it 
 performs Lable request/mapping procedure to establish a LSP.
 The Informations of the Label mapping is recorded at the MPLSForwarding 
 Table.

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

Field Summary
 MPLSForwardingTable forwardingtable
          Field forwardingtable - Forwarding Table
 MPLSInterfaceMgmt interfacemgmt
          Field interfacemgmt - Interface Management Object
 MPLSMgmt mplsmgmt
          Field mplsmgmt - MPLS Management Object
 int NodeType
          Field NodeType - Node Type
 OXCSwitch oxcswitch
          Field oxcswitch - OXC switch module
 S_CRLDP sCRLDPInfo
          Field sCRLDPInfo - CR-LDP object
 
Constructor Summary
MPLSSignalingInterfaceMgmt(MPLSMgmt mgmt)
          Constructor MPLSSignalingInterfaceMgmt
 
Method Summary
 void addMultiCastInfo(MPLSSignalingInfo sinfo)
          Method addMultiCastInfo Add multicasting information
 void addNewInterfaceTosCRLDP(MPLSInterfaceInfo sinfo)
          Method addNewInterfaceTosCRLDP Add new interface to CR-LDP
 boolean createFEC_ILM_Tunnel(MPLSSignalingInfo sinfo, NHLFE nhlfe)
          Method createFEC_ILM_Tunnel Add FEC, ILM or Tunnel information
 S_CRLDP getSCRLDP()
          Method getSCRLDP Get the CR-LDP object
 void init(int nodeType)
          Method init
 boolean isNICEnabled(NIC nic)
          Check the links of the NIC and the NIC itself if it is usable for data transfer.
 boolean LabelMapping(MPLSSignalingInfo sinfo)
          Method LabelMapping Label Mapping procedure
 boolean LabelRelease(MPLSSignalingInfo sinfo)
          Method LabelRelease Label Release procedure
 boolean OXCLabelMapping(MPLSSignalingInfo sinfo)
          Method OXCLabelMapping Label mapping procedure at the OXC
 boolean resourceCheck(MPLSSignalingInfo sinfo)
          Method resourceCheck Check whether the resource is available or not
 boolean setMPLS_LSR_LSP(MPLSSignalingInfo sinfo)
          Method setMPLS_LSR_LSP Setup LSP at LSR
 boolean setMPLS_OXC_LSP(MPLSSignalingInfo sinfo)
          Method setMPLS_OXC_LSP Setup LSP at OXC
 boolean setMPLSLSP(MPLSSignalingInfo sinfo)
          Method setMPLSLSP Setup LSP
 void setSCRLDP(S_CRLDP sinfo)
          Method setSCRLDP Set CR-LDP module
 
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 - MPLS Management Object


NodeType

public int NodeType
Field NodeType - Node Type


interfacemgmt

public MPLSInterfaceMgmt interfacemgmt
Field interfacemgmt - Interface Management Object


forwardingtable

public MPLSForwardingTable forwardingtable
Field forwardingtable - Forwarding Table


oxcswitch

public OXCSwitch oxcswitch
Field oxcswitch - OXC switch module


sCRLDPInfo

public S_CRLDP sCRLDPInfo
Field sCRLDPInfo - CR-LDP object

Constructor Detail

MPLSSignalingInterfaceMgmt

public MPLSSignalingInterfaceMgmt(MPLSMgmt mgmt)
Constructor MPLSSignalingInterfaceMgmt

Parameters:
mgmt - - MPLS Management Object
Method Detail

init

public void init(int nodeType)
Method init

Parameters:
nodeType -

setSCRLDP

public void setSCRLDP(S_CRLDP sinfo)
Method setSCRLDP Set CR-LDP module

Parameters:
sinfo - - XXX

addNewInterfaceTosCRLDP

public void addNewInterfaceTosCRLDP(MPLSInterfaceInfo sinfo)
Method addNewInterfaceTosCRLDP Add new interface to CR-LDP

Parameters:
sinfo - - XXX

setMPLSLSP

public boolean setMPLSLSP(MPLSSignalingInfo sinfo)
Method setMPLSLSP Setup LSP

Parameters:
sinfo - - LSP signaling information
Returns:
boolean - True if success

setMPLS_LSR_LSP

public boolean setMPLS_LSR_LSP(MPLSSignalingInfo sinfo)
Method setMPLS_LSR_LSP Setup LSP at LSR

Parameters:
sinfo - - LSP Signaling Information
Returns:
boolean - True if success

LabelMapping

public boolean LabelMapping(MPLSSignalingInfo sinfo)
Method LabelMapping Label Mapping procedure

Parameters:
sinfo - - LSP Signaling information
Returns:
boolean - True if success

createFEC_ILM_Tunnel

public boolean createFEC_ILM_Tunnel(MPLSSignalingInfo sinfo,
                                    NHLFE nhlfe)
Method createFEC_ILM_Tunnel Add FEC, ILM or Tunnel information

Parameters:
sinfo - - Signaling information
nhlfe - - NHLFE entry
Returns:
boolean - True if success

addMultiCastInfo

public void addMultiCastInfo(MPLSSignalingInfo sinfo)
Method addMultiCastInfo Add multicasting information

Parameters:
sinfo - - Multicasting signaling information

setMPLS_OXC_LSP

public boolean setMPLS_OXC_LSP(MPLSSignalingInfo sinfo)
Method setMPLS_OXC_LSP Setup LSP at OXC

Parameters:
sinfo - - Signaling information
Returns:
boolean - True if success

OXCLabelMapping

public boolean OXCLabelMapping(MPLSSignalingInfo sinfo)
Method OXCLabelMapping Label mapping procedure at the OXC

Parameters:
sinfo - - Signaling information
Returns:
boolean - True if success

LabelRelease

public boolean LabelRelease(MPLSSignalingInfo sinfo)
Method LabelRelease Label Release procedure

Parameters:
sinfo - - Signaling information
Returns:
boolean - True if success

resourceCheck

public boolean resourceCheck(MPLSSignalingInfo sinfo)
Method resourceCheck Check whether the resource is available or not

Parameters:
sinfo - - Signaling information
Returns:
boolean - True if there is enough resource

getSCRLDP

public S_CRLDP getSCRLDP()
Method getSCRLDP Get the CR-LDP object

Returns:
S_CRLDP

isNICEnabled

public boolean isNICEnabled(NIC nic)
Check the links of the NIC and the NIC itself if it is usable for data transfer. Thjis method checks teh nic, after that the link. Is both ok and the link is optical each fiber will be checked.

Parameters:
nic - The nic that has to be tested.
Returns:
true if the NIC is enabled, otherwise false.
Since:
1.1