public class GeneralizedEndPoints extends EndPoints
Base abstract class for representing Generalized EndPoints Object.
It will follow draft-ietf-pce-gmpls-pcep-extensions-01 and GEYSERS network service paradigms
ESTE LO HE REPETIDO PARA CADA SERVICIO DE CONECTIVIDAD GEYSERS The END-POINTS object is used in a PCReq message to specify the source IP address and the destination IP address of the path for which a path computation is requested. The P flag of the END-POINTS object MUST be set. If the END-POINTS object is received with the P flag cleared, the receiving peer MUST send a PCErr message with Error-Type=10 and Error-value=1. The corresponding path computation request MUST be cancelled by the PCE without further notification. A new Object Type is defined to address the following possibilities: o Different endpoint types. o Label restrictions on the endpoint. o Specification of unnumbered endpoints type as seen in GMPLS networks. The Object is encoded as follow: 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved | endpoint type | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ~ TLVs ~ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Reserved bits should be set to 0 when a message is sent and ignored when the message is received the endpoint type is defined as follow: Value Type Meaning 0 Point-to-Point 1 Point-to-Multipoint New leaves to add 2 Old leaves to remove 3 Old leaves whose path can be modified/reoptimized 4 Old leaves whose path must be left unchanged In GEYSERS the endpoint type field in the END-POINTS object will indicate the paradigm type (assisted unicast, restricted anycast, full anycast) while the TLV type could indicate IPv4, IPv6, NSAP, storage description, server description or application description.
Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res
Constructor and Description |
---|
GeneralizedEndPoints() |
GeneralizedEndPoints(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
void |
decode()
Decode Generalized EndPoint object
|
void |
encode()
Encode Generalized EndPoint Object
|
AssistedUnicastEndpoints |
getAssistedUnicastEndpoints() |
int |
getGeneralizedEndPointsType() |
P2MPEndpoints |
getP2MPEndpoints() |
P2PEndpoints |
getP2PEndpoints() |
void |
setAssistedUnicastEndpoints(AssistedUnicastEndpoints AssistedUnicastEndpoints) |
void |
setGeneralizedEndPointsType(int generalizedendpointType) |
void |
setP2MPEndpoints(P2MPEndpoints P2PMEndpoints) |
void |
setP2PEndpoints(P2PEndpoints P2PEndpoints) |
String |
toString() |
decode, decodeHeader, encode_header, equals, getBytes, getLength, getObject_bytes, getObjectClass, getObjectClass, getObjectLength, getObjectType, getOT, getRes, hashCode, isIbit, isPbit, setIbit, setObject_bytes, setObjectClass, setObjectLength, setOT, setPbit, setRes, supportedObject
public GeneralizedEndPoints()
public GeneralizedEndPoints(byte[] bytes, int offset) throws MalformedPCEPObjectException, PCEPProtocolViolationException
public void encode()
encode
in interface PCEPElement
encode
in class PCEPObject
public void decode() throws MalformedPCEPObjectException
decode
in class PCEPObject
MalformedPCEPObjectException
public int getGeneralizedEndPointsType()
public void setGeneralizedEndPointsType(int generalizedendpointType)
public P2PEndpoints getP2PEndpoints()
public void setP2PEndpoints(P2PEndpoints P2PEndpoints)
public P2MPEndpoints getP2MPEndpoints()
public void setP2MPEndpoints(P2MPEndpoints P2PMEndpoints)
public AssistedUnicastEndpoints getAssistedUnicastEndpoints()
public void setAssistedUnicastEndpoints(AssistedUnicastEndpoints AssistedUnicastEndpoints)
Copyright © 2016. All rights reserved.