public abstract class NetQuotationIPv4 extends PCEPObject
Represents a PCEP NET-QUOTATION object as defined in GEYSERS D4.1
From GEYSERS D4.1 Section 6.3.2.1 Assisted unicast replies
A PCRep for assisted unicast connections provides a network quotation for each pair of end points or each time-slot (used in case of advance reservation service) included in the PCReq. This information is included in the NET-QUOTATION object (Object-Class and Object-Type to be defined). It should be noted that the path-list object is not included in assisted unicast replies, and no ERO is returned. The format of a NET-QUOTATION-ENDPOINTS-IPV4 object is the following: 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | // Quotation 1 // | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | // ... // | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | // Quotation N // | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ That way, each End-point pair block is reduced to 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Source IPv4 address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Destination IPv4 address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Cost | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Quotation block Format for IPv4
Modifier and Type | Class and Description |
---|---|
static class |
NetQuotationIPv4.EPQuotationIPv4 |
Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res
Constructor and Description |
---|
NetQuotationIPv4() |
NetQuotationIPv4(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
void |
decode()
Decode the object.
|
void |
encode()
Encode the object.
|
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 NetQuotationIPv4()
public NetQuotationIPv4(byte[] bytes, int offset) throws MalformedPCEPObjectException
MalformedPCEPObjectException
public void encode()
PCEPObject
encode
in interface PCEPElement
encode
in class PCEPObject
public void decode() throws MalformedPCEPObjectException
PCEPObject
decode
in class PCEPObject
MalformedPCEPObjectException
Copyright © 2016. All rights reserved.