gov.nist.antd.mpls.signaling.ouni
Class OUNI_C

java.lang.Object
  |
  +--gov.nist.antd.mpls.signaling.ouni.OUNIModule
        |
        +--gov.nist.antd.mpls.signaling.ouni.OUNI_C

public class OUNI_C
extends OUNIModule

Class OUNI_C

 ========================
 Concept of OUNI_C/OUNI_N
 ========================

 +----------------------------+                      +----------------------------+
 | LSR                        |                      | OXC                        |
 | +------------------------+ |                      | +------------------------+ |
 | | CR-LDP                 | |                      | | CR-LDP                 | |
 | | - General Signaling    | |                      | | - General Signaling    | |
 | |   functions            | |                      | |   functions            | |
 | | +--------------------+ | |                      | | +--------------------+ | |
 | | | OUNI_C (a)         | | |    exchange OUNI     | | | OUNI_N (b)         | | |
 | | |  - ConnectionTable | | |       messages       | | |  - ConnectionTable | | |
 | | |  - OUN_N info      |..............................|  - OUNI_C table    | | |
 | | |  - Interface Infos | | |                      | | |  - Interface Infos | | |
 | | +--------------------+ | |                      | | +--------------------+ | |
 | +------------------------+ |                      | +------------------------+ |
 | .......................... |                      | .......................... |
 | +-----+           +------+ |                      | +------+          +------+ |
 | | NIC |.......... | ONIC +==========================+ ONIC |......... | ONIC | |
 | +-----+           +------+ |                      | +------+          +------+ |
 +----------------------(c)---+                      +----(d)---------------------+

                        LSR Domain <--- | ---> Optical Domain...

 ==================
 OUNI Label Request
 ==================

           Ingress LSR                              Ingress OXC
         +------------------------+              +------------------------------------------+
         | CR-LDP                 |              | CR-LDP                   (5) send a      |
         |    (2) creates a       | (3) sends    | (4) creates a             LabelRequest   |
         |        OUNIConnection  |    a OUNI    |  OUNIConnection+-------+  message to the |
         |    +----------------+  |    message   | +--------------+-+     |  egress LSR to  |
         |    | OUNIConnection |+ | to establish | | OUNIConnection |+    |  establish a LSP|
         |    | - ConnectionID |..................>| - ConnectionID ||  +-+------------+    |(6)general Label 
         |    +----------------+| |   a Optical  | +----------------+|  | CRLDPControl |    | Request Procedure
  (1)    |     +----------------+ |      path    |  +----------------+  |  Block       |---------------------->
  OUNI   |           |            | (Label       |          |           +--------------+    |    Label Request 
  Request|   +-------+------+     |     Request) |  +-------+------+                        |    message
     ----+-->| OUNI-C       |     |              |  | OUNI-N       |                        |
         |   | - Connection +=====|==============|==+ - Connection |                        |
         |   |   Table      |     |              |  |   Table      |                        |
         |   +--------------+     |              |  +--------------+                        |
         |                        |              |                                          |
         +------------------------+              +------------------------------------------+

                          LSR Domain <--- | ---> Optical Domain...
                       Egress OXC                                                      Egress LSR
                     +------------------------------------------+                    +------------------------+
                     | CR-LDP                                   |                    | CR-LDP                 |
                     |  (7) create a OUNIConnection             |                    |    (9) creates a       | 
                     |             +----------+                 | (8) sends a OUNI   |        OUNIConnection  | 
                     |             |       +--+-------------+   |     message to     |    +----------------+  | 
                     |             |       | OUNIConnection |+  |     establish      |    | OUNIConnection |+ | 
 6)general Label     | +-----------+--+    | - ConnectionID |............................>| - ConnectionID || |
   Request Procedure | | CRLDPControl |    +----------------+|  |     a Optical      |    +----------------+| |  
 --------------------->| Block        |     +----------------+  |     path           |     +----------------+ |  
  Label Request      | +--------------+            |            |  (Label Request)   |           |            | 
  message            |                     +-------+------+     |                    |   +-------+------+     |  
                     |                     | OUNI-N       |     |                    |   | OUNI-C       |     |   
                     |                     | - Connection +=====|====================|===+ - Connection |     |    
                     |                     |   Table      |     |                    |   |   Table      |     | 
                     |                     +--------------+     |                    |   +--------------+     |
                     |                                          |                    |                        |   
                     +------------------------------------------+                    +------------------------+    

                                                    ...Optical Domain <--- | ---> LSR Domain
 ==================
 OUNI Label Mapping
 ==================

                       Egress OXC                                                      Egress LSR
                     +------------------------------------------+                    +------------------------+
                     | CR-LDP  (12) Label Mapping between the   |                    | CR-LDP                 |
                     |              EgressOXC and Egress LSR    |                    |  (10) EgressLSR Label  | 
                     |             +----------+                 | (11) sends a OUNI  |    mapping procedure   | 
                     |             |       +--+-------------+   |     message to     |    +----------------+  | 
                     |             |       | OUNIConnection |+  |     allocate       |    | OUNIConnection |+ | 
 (13)general Label   | +-----------+--+    | - ConnectionID |<............................| - ConnectionID || |
   Mapping Procedure | | CRLDPControl |    +----------------+|  |     resource into  |    +----------------+| |  
 <---------------------+ Block        |     +----------------+  |     a Optical path |     +----------------+ |  
  Label Mapping      | +--------------+            |            |   (Label Mapping)  |           |            | 
  message            |                     +-------+------+     |                    |   +-------+------+     |  
                     |                     | OUNI-N       |     |                    |   | OUNI-C       |     |   
                     |                     | - Connection +=====|====================|===+ - Connection |     |    
                     |                     |   Table      |     |                    |   |   Table      |     | 
                     |                     +--------------+     |                    |   +--------------+     |
                     |                                          |                    |                        |   
                     +------------------------------------------+                    +------------------------+    

                                                    ...Optical Domain <--- | ---> LSR Domain

           Ingress LSR                              Ingress OXC
         +------------------------+              +------------------------------------------+
         | CR-LDP                 |              | CR-LDP                                   |
         |(17) Label Mapping,     | (16) sends   |                                          |
         |established Optical Path|    a OUNI    |                +-------+                 |
         |    +----------------+  |    message   | +--------------+-+     | (14) Label      |
         |    | OUNIConnection |+ | to allocate  | | OUNIConnection |+    |      Mapping    |
         |    | - ConnectionID |<..................| - ConnectionID ||  +-+------------+    |(13)general Label 
         |    +----------------+| |  resource    | +----------------+|  | CRLDPControl |    | Mapping Procedure
         |     +----------------+ |              |  +----------------+  |  Block       |<----------------------
         |           |            | (Label       |          |           +--------------+    |    Label Mapping 
         |   +-------+------+     |     Mapping) |  +-------+------+                        |    message
         |   | OUNI-C       |     |              |  | OUNI-N       |(15) get Incoming Label |
         |   | - Connection +=====|==============|==+ - Connection |  and send it to the    |
         |   |   Table      |     |              |  |   Table      |  Ingress LSR           |
         |   +--------------+     |              |  +--------------+                        |
         |                        |              |                                          |
         +------------------------+              +------------------------------------------+

                          LSR Domain <--- | ---> Optical Domain...
 

 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.

Version:
1.1

 -------------------------------------------------------------------------
VERSION CONTROL

Name - YYYY/MM/DD - VERSION - ACTION
lim - 1.0 - Source created
borchert - 2002/03/20 - 1.1 - Resorted Package Structure in final position.
borchert - 2002/03/21 - Cleaned up import statements.
borchert - 2002/03/27 - Changed attribute references to changed classes.
rouil - 2002/03/28 - Updated import statement.
chul - 2002/04/04 - Updated commnets chul - 2002/08/22 - Add debug Information

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

Field Summary
private  MPLSInterface clientIntf
          Field clientIntf - reference : (c)
private  int connectionIDGenerator
          Connection ID Generator
 java.util.Hashtable ConnectionTable
          Connection Table reference : (a) , OUNIConnection.java
private  java.lang.String modName
          Debug information
private  java.util.Vector msgQueue
          Message queue
 OUNI_N OUNIServer
          OUNI Server - reference : (b)
private  double propagationDelay
          FPropagation Delay
private  MPLSInterface serverIntf
          Server Interface - reference : (d)
 
Fields inherited from class gov.nist.antd.mpls.signaling.ouni.OUNIModule
debug, localNode, NodeID, sigProtocol
 
Constructor Summary
OUNI_C(ProtocolGraph localNode, PeerLSRInfo pinfo)
          Creates an OUNI_C instance.
 
Method Summary
 void addToOUNIServer()
          Initialize the O-UNI client
 void establishTransportNetworkPath(ProtocolMessage msg)
          Method establishTransportNetworkPath Reference : (1), (2) Called by the IngressLSR(CRLDP/RSVP-TE) to eastablish a Optical Path This is the first called function in the OUNI procedure.
 MPLSInterface getClientIntf()
          Retrieve the Client Interface
 int getClientIPAddr()
          Return the IP address of the client.
private  long getConnectionID()
          Generate Connection ID between O-UNI Server and O-UNI Client
 double getPropDelay()
          Retrieve the Propagation Delay
 MPLSInterface getServerIntf()
          Retrieve the Server Interface
 int getServerIPAddr()
          Determine the server ip address.
 void push(ProtocolMessage message, OUNIModule fromServer)
          Method push
 void pushFromConnection(ProtocolMessage message)
          OUNI message forwarding functions.
private  void sendOUNIMessage()
          Method sendOUNIMessage Deliver the O-UNI message to O-UNI Server
 
Methods inherited from class gov.nist.antd.mpls.signaling.ouni.OUNIModule
getIPAddrList, getSigProtocolType, getTePath, getTime, labelMappingProc, startMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionIDGenerator

private int connectionIDGenerator
Connection ID Generator


propagationDelay

private double propagationDelay
FPropagation Delay


modName

private java.lang.String modName
Debug information


OUNIServer

public OUNI_N OUNIServer
OUNI Server - reference : (b)


clientIntf

private MPLSInterface clientIntf
Field clientIntf - reference : (c)


serverIntf

private MPLSInterface serverIntf
Server Interface - reference : (d)


ConnectionTable

public java.util.Hashtable ConnectionTable
Connection Table reference : (a) , OUNIConnection.java


msgQueue

private java.util.Vector msgQueue
Message queue

Constructor Detail

OUNI_C

public OUNI_C(ProtocolGraph localNode,
              PeerLSRInfo pinfo)
Creates an OUNI_C instance.

Parameters:
localNode - Local Node
pinfo - - Peer LSR Information
Method Detail

getClientIPAddr

public int getClientIPAddr()
Return the IP address of the client.

Returns:
int The clients ip address

getServerIPAddr

public int getServerIPAddr()
Determine the server ip address.

Returns:
the ip address.

getClientIntf

public MPLSInterface getClientIntf()
Retrieve the Client Interface

Returns:
Interface object

getServerIntf

public MPLSInterface getServerIntf()
Retrieve the Server Interface

Returns:
Interface object

getPropDelay

public double getPropDelay()
Retrieve the Propagation Delay

Returns:
double

addToOUNIServer

public void addToOUNIServer()
Initialize the O-UNI client


getConnectionID

private long getConnectionID()
Generate Connection ID between O-UNI Server and O-UNI Client

Returns:
long

establishTransportNetworkPath

public void establishTransportNetworkPath(ProtocolMessage msg)
Method establishTransportNetworkPath Reference : (1), (2) Called by the IngressLSR(CRLDP/RSVP-TE) to eastablish a Optical Path This is the first called function in the OUNI procedure.

Parameters:
msg - Signaling Message

push

public void push(ProtocolMessage message,
                 OUNIModule fromServer)
Method push

Parameters:
message -
fromServer -

pushFromConnection

public void pushFromConnection(ProtocolMessage message)
OUNI message forwarding functions. Call sendOUNIMessage() method

Specified by:
pushFromConnection in class OUNIModule
Parameters:
message - Signaling Message

sendOUNIMessage

private void sendOUNIMessage()
Method sendOUNIMessage Deliver the O-UNI message to O-UNI Server