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

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

public class OUNI_N
extends OUNIModule

Class OUNI_N.

 ========================
 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.

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

Nested Class Summary
 class OUNI_N.ClientInfo
          Class ClientInfo A ClientInfo class has informations of the OUNI_C which is connected to the OUNI_N, and it is recorded at the OUNIClientTblae.
 
Field Summary
 java.util.Hashtable ConnectionTable
          Field ConnectionTable - Connection Talbe
 java.util.Vector MessageQueue
          Field MessageQueue - Message Queue
 java.util.Hashtable OUNIClientTable
          Field OUNIClientTable - O-UNI Client Table
 
Fields inherited from class gov.nist.antd.mpls.signaling.ouni.OUNIModule
NodeID, sCRLDPInfo
 
Constructor Summary
OUNI_N(S_CRLDP crldp)
          Constructor OUNI_N
 
Method Summary
 OUNIConnection establishTransportNetworkPath(MPLSSignalingInfo sinfo, CRLDPControlBlock cb)
          Method establishTransportNetworkPath Reference : (7), (8) This function is called by the CRLDPControlBlock( - labelRequestProc()) to establish a optical connection between the Egress OXC and the Egress LSR...
 int getInterfaceID(int ipaddr)
          Method getInterfaceID This function is called by the CRLDPControlBlock( - labelMappingProc())
 void initOUNIClient(OUNI_C client)
          Initializes the OUNI client.
 void MessageQueueSorting()
          Method MessageQueueSorting
 void push(ProtocolMessage message, OUNIModule fromClient)
          Method push This function handles a OUNI message that is sent by the OUNI_C
 void sendOUNIMessage()
          Method sendOUNIMessage
 boolean sendOUNIMessage(ProtocolMessage message)
          sendOUNIMessage OUNI message forwarding functions...
 
Methods inherited from class gov.nist.antd.mpls.signaling.ouni.OUNIModule
getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUNIClientTable

public java.util.Hashtable OUNIClientTable
Field OUNIClientTable - O-UNI Client Table


ConnectionTable

public java.util.Hashtable ConnectionTable
Field ConnectionTable - Connection Talbe


MessageQueue

public java.util.Vector MessageQueue
Field MessageQueue - Message Queue

Constructor Detail

OUNI_N

public OUNI_N(S_CRLDP crldp)
Constructor OUNI_N

Parameters:
crldp - - XXX
Method Detail

initOUNIClient

public void initOUNIClient(OUNI_C client)
Initializes the OUNI client. This function is called by the OUNI_C to register the Client informations...

Parameters:
client - - The Client that has to be initialized.

push

public void push(ProtocolMessage message,
                 OUNIModule fromClient)
Method push This function handles a OUNI message that is sent by the OUNI_C

Parameters:
message - - XXX
fromClient - - XXX

establishTransportNetworkPath

public OUNIConnection establishTransportNetworkPath(MPLSSignalingInfo sinfo,
                                                    CRLDPControlBlock cb)
Method establishTransportNetworkPath Reference : (7), (8) This function is called by the CRLDPControlBlock( - labelRequestProc()) to establish a optical connection between the Egress OXC and the Egress LSR...

Parameters:
sinfo -
cb -
Returns:
OUNIConnection

getInterfaceID

public int getInterfaceID(int ipaddr)
Method getInterfaceID This function is called by the CRLDPControlBlock( - labelMappingProc())

Parameters:
ipaddr -
Returns:
int - Interface ID

sendOUNIMessage

public boolean sendOUNIMessage(ProtocolMessage message)
sendOUNIMessage OUNI message forwarding functions...

Overrides:
sendOUNIMessage in class OUNIModule
Parameters:
message - The message that has to be send.
Returns:
boolean

MessageQueueSorting

public void MessageQueueSorting()
Method MessageQueueSorting


sendOUNIMessage

public void sendOUNIMessage()
Method sendOUNIMessage