gov.nist.antd.mpls.signaling
Class PeerLSRInfo

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

public class PeerLSRInfo
extends java.lang.Object

Peer LSR Information.....

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

Field Summary
 boolean isActiveRole
          Field isActiveRole - Active Role flag
 boolean isOUNIClient
          Field isOUNIClient - OUNI client flag
 boolean isSameLayer
          Field isSameLayer - Same layer flag
 boolean isTunnel
          Field isTunnel - Tunnel flag
 java.lang.String LSRID
          Field LSRID - LSR ID
 MPLSInterfaceInfo myIface
          Field myIface - local Interface Information
 S_CRLDP peerCRLDP
          Field peerCRLDP - Peer CR-LDP object
 MPLSInterfaceInfo peerIface
          Field peerIface - Peer node's Interface information
 java.util.Vector peerIPaddrList
          Field peerIPaddrList - Peer Node's IP addresses
 java.lang.String peerLSRID
          Field peerLSRID - Peer LSR ID
 PeerLSRMgmt peerlsrmgmt
          Field peerlsrmgmt - Peer Node's LSR Management
 
Constructor Summary
PeerLSRInfo(PeerLSRMgmt lsrmgmt, MPLSInterfaceInfo myintf, ProtocolGraph peerLSR, int peerIfaceid, boolean isactive, boolean istunnel)
          Constructor PeerLSRInfo
 
Method Summary
 void addPeerInfo(int ifaceid, ProtocolGraph peerLSR, int peerIface, boolean istunnel)
          Method addPeerInfo Add peer LSR management module
 boolean isPeerLSR(int ifaceid)
          Method isPeerLSR Check whether interface is connected to the peer node
 boolean isPeerLSRIP(int ipaddr)
          Method isPeerLSRIP Check that the IP address is peer node's one
 void printInterfaceInfo()
          Method printInterfaceInfo Print Interface Information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

peerlsrmgmt

public PeerLSRMgmt peerlsrmgmt
Field peerlsrmgmt - Peer Node's LSR Management


LSRID

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


myIface

public MPLSInterfaceInfo myIface
Field myIface - local Interface Information


isActiveRole

public boolean isActiveRole
Field isActiveRole - Active Role flag


isTunnel

public boolean isTunnel
Field isTunnel - Tunnel flag


peerLSRID

public java.lang.String peerLSRID
Field peerLSRID - Peer LSR ID


peerIPaddrList

public java.util.Vector peerIPaddrList
Field peerIPaddrList - Peer Node's IP addresses


peerCRLDP

public S_CRLDP peerCRLDP
Field peerCRLDP - Peer CR-LDP object


peerIface

public MPLSInterfaceInfo peerIface
Field peerIface - Peer node's Interface information


isSameLayer

public boolean isSameLayer
Field isSameLayer - Same layer flag


isOUNIClient

public boolean isOUNIClient
Field isOUNIClient - OUNI client flag

Constructor Detail

PeerLSRInfo

public PeerLSRInfo(PeerLSRMgmt lsrmgmt,
                   MPLSInterfaceInfo myintf,
                   ProtocolGraph peerLSR,
                   int peerIfaceid,
                   boolean isactive,
                   boolean istunnel)
Constructor PeerLSRInfo

Parameters:
lsrmgmt - - Peer LSR management information
myintf - - Local Interface
peerLSR - - Peer LSR node(ProtocolGraph)
peerIfaceid - - Peer Interface ID
isactive - - True if it plays an active role
istunnel - - True if it is tunnel
Method Detail

addPeerInfo

public void addPeerInfo(int ifaceid,
                        ProtocolGraph peerLSR,
                        int peerIface,
                        boolean istunnel)
Method addPeerInfo Add peer LSR management module

Parameters:
ifaceid - - Interface ID
peerLSR - - Peer LSR Object
peerIface - - Peer Interface ID
istunnel - - True if it is tunnel

isPeerLSR

public boolean isPeerLSR(int ifaceid)
Method isPeerLSR Check whether interface is connected to the peer node

Parameters:
ifaceid - - Interface ID
Returns:
boolean - True if interface is connected to the peer node

isPeerLSRIP

public boolean isPeerLSRIP(int ipaddr)
Method isPeerLSRIP Check that the IP address is peer node's one

Parameters:
ipaddr - - IP address
Returns:
boolean - True if it is peer node's IP address

printInterfaceInfo

public void printInterfaceInfo()
Method printInterfaceInfo Print Interface Information