|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.mpls.mgmt.forwarding.MPLSForwarding
Class MPLSForwarding
The MPLSForwarding calss has label swapping, poping and
forwarding functions to forwarding incoming packets to the next hop
The MPLSForwarding module could handle 3 kind of packet format.
- IP packet(SSF.OS.IpHeader.java)
Reference functions
forwardDiffServPacket() - MPLSForwarding.java
forwardUnLabeledPacket() - MPLSForwarding.java
- Labeled Packet(gov.nist.antd.mpls.mgmt.forwarding.ShimMessage.java)
Reference function
forwardLabeledPacket() - MPLSForwarding.java
- Optical Frame(gov.nist.antd.optical.OpticalFrame.java)
Reference function
forwardOpticalFrame() - MPLSForwarding.java
ForwardingTable and Forwarding functions
+----------------------+
| MPLSForwadingTable |
| (3) finds a proper |
| LSP information |
| in the table |
+------+--------+------+
(2) The MPLSForwarding module | | (4) MPLSForwardingTable returns the outgoing interface
requestes the outgoing | | and label value to the MPLSForwarding
interface and label +======+========+==========+
| MPLSForwarding |
+----------------+ | |
| IP Packet | | (5) Label swapping or |
+----------------+ (1) | Label stacking or | (6) +----------------+
or =====> | Pop operation.. | =====>| Labeled Packet |
+----------------+ | | +----------------+
| Labeled Packet | | |
+----------------+ +==========================+
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.
| Nested Class Summary | |
class |
MPLSForwarding.EgressInfo
Class EgressInfo This class models the LSP's egress information and it also supports the monitoring function |
| Field Summary | |
java.util.Vector |
EgressLSPTable
Field EgressLSPTable - Egress LSP Table |
MPLSForwardingTable |
forwardingtable
Field forwardingtable - MPLSForwarding module |
MPLSInterfaceMgmt |
interfacemgmt
Field interfacemgmt - MPLSInterfaceMgmt module |
ProtocolMonitor |
monitor
Field monitor - MPLSMonitor module |
boolean |
monitorON
Field monitorON - Monitor Flag |
MPLSMgmt |
mplsmgmt
Field mplsmgmt - MPLSMgmt modu;e |
int |
recvPktCount
Field recvPktCount - Received packet count |
| Constructor Summary | |
MPLSForwarding(MPLSMgmt info)
Constructor MPLSForwarding |
|
| Method Summary | |
boolean |
forwardDiffServPacket(ProtocolMessage message,
ProtocolSession fromSession)
Method forwardDiffServPacket Forward the packet that is related to differentiated service |
boolean |
forwardingPacket(java.util.Vector nhlfelist,
ProtocolMessage message,
ProtocolSession fromSession)
Method forwardingPacket Common method that forwards the any received packet to the proper interface |
boolean |
forwardLabeledPacket(ProtocolMessage message,
ProtocolSession fromSession)
Method forwardLabeledPacket Foward the Labeled Packet |
boolean |
forwardOpticalFrame(ProtocolMessage message,
ProtocolSession fromSession)
Method forwardOpticalFrame Forward the optical fram |
boolean |
forwardUnLabeledPacket(ProtocolMessage message,
ProtocolSession fromSession)
Method forwardUnLabeledPacket Forward the Un-labeled packet |
double |
getBlockBytes(int ingresslsrid,
int locallspid)
Method getBlockBytes Return the received block bytes |
long |
getBlockCounts(int ingresslsrid,
int locallspid)
Method getBlockCounts Return the received block count |
double |
getRecvBytes(int ingresslsrid,
int locallspid)
Method getRecvBytes Recored the received Bytes |
void |
init()
Method init |
boolean |
mplsPacketForwarding(ProtocolMessage message,
ProtocolSession fromSession)
Method mplsPacketForwarding Forward the received packet that may be Shim Message, Optical Frame or IP Message According to the packet type it calls other member function(forwardLabeledPacket, forwardOpticalFrame, or forwardUnlabeledPacket |
ProtocolMessage |
packetCopy(ProtocolMessage message)
Method packetCopy Packet copy method |
void |
removeEgressMonitor(MPLSSignalingInfo sinfo)
Method removeEgressMonitor Remove the LSP monitor at Egress LSR |
void |
setupEgressMonitor(MPLSSignalingInfo sinfo)
Method setupEgressMonitor Setup and add the LSP monitor at Egress LSR |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public MPLSMgmt mplsmgmt
public MPLSForwardingTable forwardingtable
public MPLSInterfaceMgmt interfacemgmt
public ProtocolMonitor monitor
public int recvPktCount
public boolean monitorON
public java.util.Vector EgressLSPTable
| Constructor Detail |
public MPLSForwarding(MPLSMgmt info)
info - - MPLSMgmt object| Method Detail |
public void init()
public boolean mplsPacketForwarding(ProtocolMessage message,
ProtocolSession fromSession)
message - - ProtocolMessage; ShimMessage, OpticalFrame, or IP MessagefromSession - - ProtocolSession that send this message
public boolean forwardDiffServPacket(ProtocolMessage message,
ProtocolSession fromSession)
message - - Received PacketfromSession - - Session that send the packet
public boolean forwardUnLabeledPacket(ProtocolMessage message,
ProtocolSession fromSession)
message - - Unlabeled packetfromSession - - Session that send the packet
public boolean forwardOpticalFrame(ProtocolMessage message,
ProtocolSession fromSession)
message - - optical framefromSession - - the session that send this packet
public boolean forwardLabeledPacket(ProtocolMessage message,
ProtocolSession fromSession)
message - - Labeled PacketfromSession - - Sessoin that send the packet
public boolean forwardingPacket(java.util.Vector nhlfelist,
ProtocolMessage message,
ProtocolSession fromSession)
nhlfelist - - NHLFE Listmessage - - Received MessagefromSession - - Session that send the packet
public ProtocolMessage packetCopy(ProtocolMessage message)
message - - XXX
public void setupEgressMonitor(MPLSSignalingInfo sinfo)
sinfo - - LSP Signaling informationpublic void removeEgressMonitor(MPLSSignalingInfo sinfo)
sinfo - - LSP Signaling information
public double getRecvBytes(int ingresslsrid,
int locallspid)
ingresslsrid - - Ingress LSR IDlocallspid - - Local LSP ID
public double getBlockBytes(int ingresslsrid,
int locallspid)
ingresslsrid - - Ingress LSR IDlocallspid - - Local LSP Id
public long getBlockCounts(int ingresslsrid,
int locallspid)
ingresslsrid - - Ingress LSR IDlocallspid - - Local LSP ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||