public class FlowDescriptor extends RSVPConstruct
Represents a Flow Descriptor construct, as defined in RFC 2205.
If the INTEGRITY object is present, it must immediately follow the common header. The STYLE object followed by the flow descriptor list must occur at the end of the message, and objects within the flow descriptor list must follow the BNF given below. There are no other requirements on transmission order, although the above order is recommended.
The NHOP (i.e., the RSVP_HOP) object contains the IP address of the interface through which the Resv message was sent and the LIH for the logical interface on which the reservation is required.
The appearance of a RESV_CONFIRM object signals a request for a reservation confirmation and carries the IP address of the receiver to which the ResvConf should be sent. Any number of POLICY_DATA objects may appear.
The BNF above defines a flow descriptor list as simply a list of flow descriptors. The following style-dependent rules specify in more detail the composition of a valid flow descriptor list for each of the reservation styles.
Each elementary FF style request is defined by a single (FLOWSPEC, FILTER_SPEC) pair, and multiple such requests may be packed into the flow descriptor list of a single Resv message. A FLOWSPEC object can be omitted if it is identical to the most recent such object that appeared in the list; the first FF flow descriptor must contain a FLOWSPEC.
bytes, length
Constructor and Description |
---|
FlowDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] bytes,
int offset)
Decode the Element based on the bytes passed, starting in the offset position
|
void |
encode()
Generic method to encode an RSVP element
|
getBytes, getLength, setBytes, setLength
public void encode() throws RSVPProtocolViolationException
RSVPElement
RSVPProtocolViolationException
public void decode(byte[] bytes, int offset) throws RSVPProtocolViolationException
RSVPConstruct
decode
in class RSVPConstruct
RSVPProtocolViolationException
Copyright © 2016. All rights reserved.