gov.nist.antd.mpls.signaling
Class PeerLSRMgmt

java.lang.Object
  |
  +--gov.nist.antd.mpls.signaling.PeerLSRMgmt

public class PeerLSRMgmt
extends java.lang.Object

This class manages the peerLSRInfoTable in the sCR-LDP module. It has functions to find PeerLSRs and to create PeerLSRInfo to maintain peer info.

  The sCRLDP class is MPLS Signaling Protocol.
  

                                                +------------------------+                   
   (1) When the sCR-LDP is started, it creates  | PeerLSRInfo            |+                  
       a peerLSRInfoTable to maintain peer      |  - PeerLSR information ||+                 
       LSR information to support MPLS signaling|   - Interface Info     |||                 
       messages exchanging                      |   - IP address Info    |||                 
   (2) If there is no peerLSR infomation        |                        |||                                                          
       that is requested to establish a LSP,    +-----------.------------+||                                                              
       Label request will be rejected.            +---------.-------------+|                                    
                                                     +------.--------------+           
                                                            .
                             +=========================+    .
                             | sCR-LDP                 |    .              
    to/from a peerCR-LDP     |  - peerLSRInfoTable...........                      to/from a peerCR-LDP
                             |  - ControlBlockTable.......    
                             |  - Signaling functions  | .                                 
                             +=========================+ .                                     
                                                         .      
                                                +--------.---------------+                   
   (3) When the sCR-LDP receives a Label        | CRLDPControlBlock      |+                  
       request message form the peer CR-LDP,    |  - LSP information     ||+                 
       thesCR-LDP creates a CRLDPControlBlock   |  - Label Request funcs |||                 
       to establish a requested LST             |  - Label Mapping funcs |||                 
   (4) The CRLDPControlBlock has all of         |  - Notification funcs  |||                                                          
       Label Request, Mapping and Release       +------------------------+||                                                              
       functions. So It performs a LSP            +-----------------------+|                                    
       establish, management and release.            +---------------------+                                                         
 

 This class was developed at the National Institute of Standards and
 Technology by employees of the Federal Government and the Towson
 University by student 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
static int DOMAIN
          Field DOMAIN
 java.lang.String LSRID
          Field LSRID - LSR ID
 int NodeType
          Field NodeType - Node Type
 java.util.Vector peerLSRInfoTable
          Field peerLSRInfoTable - Peer LSR information Table
static int PEERTOPEER
          Field PEERTOPEER
 S_CRLDP sCRLDPProc
          Field sCRLDPProc - CR-LDP object
 
Constructor Summary
PeerLSRMgmt(S_CRLDP scrldp)
          Constructor PeerLSRMgmt
 
Method Summary
 void addPeerInfo(int ifaceid, ProtocolGraph peerLSR, int peerIface, boolean istunnel)
          Method addPeerInfo Add Peer Information to table
 int getInInterfaceID(S_CRLDP peercrldp)
          Method getInInterfaceID
 PeerLSRInfo getNextLSR(int ifaceid)
          Method getNextLSR Get the next LSR
 PeerLSRInfo getNextLSRbyIP(int ipaddr)
          Method getNextLSRbyIP Get next LSR using IP address
 java.util.Vector getOUNICleints()
          Method getOUNICleints Get OUNI Clients
 void setPeerLSRInfo_NIC(MPLSInterfaceInfo iface)
          Method setPeerLSRInfo_NIC Set Peer LSR information with NIC
 void setPeerLSRInfo_ONIC(MPLSInterfaceInfo iface)
          Method setPeerLSRInfo_ONIC Set the Peer LSR information (ONIC type)
 void setPeerLSRInfo_Tunnel(MPLSInterfaceInfo iface)
          Method setPeerLSRInfo_Tunnel Set the Peer LSR information (Tunnel Interface)
 void setPeerLSRInfo()
          Method setPeerLSRInfo Set Peer LSR Infomation
 void setPeerLSRInfo(MPLSInterfaceInfo iface)
          Method setPeerLSRInfo Set peer LSR information using the Interface Information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sCRLDPProc

public S_CRLDP sCRLDPProc
Field sCRLDPProc - CR-LDP object


NodeType

public int NodeType
Field NodeType - Node Type


peerLSRInfoTable

public java.util.Vector peerLSRInfoTable
Field peerLSRInfoTable - Peer LSR information Table


LSRID

public java.lang.String LSRID
Field LSRID - LSR ID


PEERTOPEER

public static final int PEERTOPEER
Field PEERTOPEER

See Also:
Constant Field Values

DOMAIN

public static final int DOMAIN
Field DOMAIN

See Also:
Constant Field Values
Constructor Detail

PeerLSRMgmt

public PeerLSRMgmt(S_CRLDP scrldp)
Constructor PeerLSRMgmt

Parameters:
scrldp - - CR-LDP object
Method Detail

setPeerLSRInfo

public void setPeerLSRInfo()
Method setPeerLSRInfo Set Peer LSR Infomation


setPeerLSRInfo

public void setPeerLSRInfo(MPLSInterfaceInfo iface)
Method setPeerLSRInfo Set peer LSR information using the Interface Information

Parameters:
iface - - XXX

setPeerLSRInfo_NIC

public void setPeerLSRInfo_NIC(MPLSInterfaceInfo iface)
Method setPeerLSRInfo_NIC Set Peer LSR information with NIC

Parameters:
iface - Interface Information Object

setPeerLSRInfo_Tunnel

public void setPeerLSRInfo_Tunnel(MPLSInterfaceInfo iface)
Method setPeerLSRInfo_Tunnel Set the Peer LSR information (Tunnel Interface)

Parameters:
iface - - XXX

setPeerLSRInfo_ONIC

public void setPeerLSRInfo_ONIC(MPLSInterfaceInfo iface)
Method setPeerLSRInfo_ONIC Set the Peer LSR information (ONIC type)

Parameters:
iface - - XXX

getNextLSR

public PeerLSRInfo getNextLSR(int ifaceid)
Method getNextLSR Get the next LSR

Parameters:
ifaceid - - Interface ID
Returns:
PeerLSRInfo - Peer LSR Information

getNextLSRbyIP

public PeerLSRInfo getNextLSRbyIP(int ipaddr)
Method getNextLSRbyIP Get next LSR using IP address

Parameters:
ipaddr - - IP address
Returns:
PeerLSRInfo

getInInterfaceID

public int getInInterfaceID(S_CRLDP peercrldp)
Method getInInterfaceID

Parameters:
peercrldp - - XXX
Returns:
int - XXX

addPeerInfo

public void addPeerInfo(int ifaceid,
                        ProtocolGraph peerLSR,
                        int peerIface,
                        boolean istunnel)
Method addPeerInfo Add Peer Information to table

Parameters:
ifaceid - - Interface ID
peerLSR - - Peer LSR(ProtocolGraph)
peerIface - - Peer interface id
istunnel - - True if interface is tunnel interface

getOUNICleints

public java.util.Vector getOUNICleints()
Method getOUNICleints Get OUNI Clients

Returns:
Vector