public class InterfaceSwitchingCapabilityDescriptor extends OSPFSubTLV
The Interface Switching Capability Descriptor is a sub-TLV (of type 15) of the Link TLV. The length is the length of value field in octets. The format of the value field is as shown below
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Switching Cap | Encoding | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Max LSP Bandwidth at priority 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Max LSP Bandwidth at priority 1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Max LSP Bandwidth at priority 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Max LSP Bandwidth at priority 3 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Max LSP Bandwidth at priority 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Max LSP Bandwidth at priority 5 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Max LSP Bandwidth at priority 6 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Max LSP Bandwidth at priority 7 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Switching Capability-specific information | | (variable) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The Switching Capability (Switching Cap) field contains one of the following values: 1 Packet-Switch Capable-1 (PSC-1) 2 Packet-Switch Capable-2 (PSC-2) 3 Packet-Switch Capable-3 (PSC-3) 4 Packet-Switch Capable-4 (PSC-4) 51 Layer-2 Switch Capable (L2SC) 100 Time-Division-Multiplex Capable (TDM) 150 Lambda-Switch Capable (LSC) 200 Fiber-Switch Capable (FSC) The Encoding field contains one of the values specified in Section 3.1.1 of [GMPLS-SIG]. Maximum LSP Bandwidth is encoded as a list of eight 4 octet fields in the IEEE floating point format [IEEE], with priority 0 first and priority 7 last. The units are bytes (not bits!) per second. The content of the Switching Capability specific information field depends on the value of the Switching Capability field. When the Switching Capability field is PSC-1, PSC-2, PSC-3, or PSC-4, the Switching Capability specific information field includes Minimum LSP Bandwidth, Interface MTU, and padding.0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Minimum LSP Bandwidth | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Interface MTU | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+The Minimum LSP Bandwidth is encoded in a 4 octets field in the IEEE floating point format. The units are bytes (not bits!) per second. The Interface MTU is encoded as a 2 octets integer. The padding is 2 octets, and is used to make the Interface Switching Capability Descriptor sub-TLV 32-bits aligned. It SHOULD be set to zero by the sender and SHOULD be ignored by the receiver. When the Switching Capability field is L2SC, there is no Switching Capability specific information field present. When the Switching Capability field is TDM, the Switching Capability specific information field includes Minimum LSP Bandwidth, an indication whether the interface supports Standard or Arbitrary SONET/SDH, and padding.0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Minimum LSP Bandwidth | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Indication | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+The Minimum LSP Bandwidth is encoded in a 4 octets field in the IEEE floating point format. The units are bytes (not bits!) per second. The indication whether the interface supports Standard or Arbitrary SONET/SDH is encoded as 1 octet. The value of this octet is 0 if the interface supports Standard SONET/SDH, and 1 if the interface supports Arbitrary SONET/SDH. The padding is 3 octets, and is used to make the Interface Switching Capability Descriptor sub-TLV 32-bits aligned. It SHOULD be set to zero by the sender and SHOULD be ignored by the receiver. When the Switching Capability field is LSC, there is no Switching Capability specific information field present. To support interfaces that have more than one Interface Switching Capability Descriptor (see Section "Interface Switching Capability Descriptor" of [GMPLS-ROUTING]) the Interface Switching Capability Descriptor sub-TLV may occur more than once within the Link TLV.
log, tlv_bytes, TLVType, TotalTLVLength
Constructor and Description |
---|
InterfaceSwitchingCapabilityDescriptor()
Default Constructor
|
InterfaceSwitchingCapabilityDescriptor(byte[] bytes,
int offset)
Contruct from a byte array and a given offset
|
Modifier and Type | Method and Description |
---|---|
protected void |
decode()
Decode the Interface Switching Capability Descriptor
|
void |
encode()
Encode a InterfaceSwitchingCapabilityDescriptor
|
boolean |
equals(Object obj) |
int |
getEncoding() |
long[] |
getMax_LSP_BW() |
long |
getMax_LSP_BW(int i) |
int |
getSwitchingCap() |
SwitchingCapabilitySpecificInformation |
getSwitchingCapabilitySpecificInformation() |
void |
setEncoding(int encoding) |
void |
setMax_LSP_BW(int i,
long maxLSPBW) |
void |
setMax_LSP_BW(long[] max_LSP_BW) |
void |
setSwitchingCap(int switchingCap) |
void |
setSwitchingCapabilitySpecificInformation(SwitchingCapabilitySpecificInformation switchingCapabilitySpecificInformation) |
String |
toString() |
encodeHeader, getTlv_bytes, getTLVLength, getTLVType, getTLVValueLength, getTotalTLVLength, getTotalTLVLength, getType, hashCode, setTlv_bytes, setTLVType, setTLVValueLength
public InterfaceSwitchingCapabilityDescriptor()
public InterfaceSwitchingCapabilityDescriptor(byte[] bytes, int offset) throws MalformedOSPFSubTLVException
bytes
- offset
- MalformedOSPFSubTLVException
public void encode()
encode
in class OSPFSubTLV
protected void decode() throws MalformedOSPFSubTLVException
decode
in class OSPFSubTLV
MalformedOSPFSubTLVException
public int getSwitchingCap()
public void setSwitchingCap(int switchingCap)
public int getEncoding()
public void setEncoding(int encoding)
public long[] getMax_LSP_BW()
public void setMax_LSP_BW(long[] max_LSP_BW)
public long getMax_LSP_BW(int i)
public void setMax_LSP_BW(int i, long maxLSPBW)
public SwitchingCapabilitySpecificInformation getSwitchingCapabilitySpecificInformation()
public void setSwitchingCapabilitySpecificInformation(SwitchingCapabilitySpecificInformation switchingCapabilitySpecificInformation)
public boolean equals(Object obj)
equals
in class OSPFSubTLV
Copyright © 2016. All rights reserved.