📄 rfc2748.txt
字号:
Interface has the same formats as the In-Interface Object.
This Interface object is also used to identify the outgoing
(forwarding) interface via its ifindex. The ifindex may be used to
differentiate between sub-interfaces and unnumbered interfaces (see
RSVP's LIH for an example). When SNMP is supported by the PEP, this
ifindex integer MUST correspond to the same integer value for the
interface in the SNMP MIB-II interface index table.
Note: The ifindex specified in the Out-Interface is typically
relative to the flow of the underlying protocol messages. The ifindex
is the one on which a protocol message is about to be forwarded.
C-Num = 4
C-Type = 1, IPv4 Address + Interface
Same C-Type format as the In-Interface object. The IPv4 address
specifies the IP address to which the outgoing message is going. The
ifindex is used to refer to the MIB-II defined local outgoing
interface on the PEP.
Durham, et al. Standards Track [Page 11]
RFC 2748 COPS January 2000
C-Type = 2, IPv6 Address + Interface
Same C-Type format as the In-Interface object. For this type of the
interface object, the IPv6 address specifies the IP address to which
the outgoing message is going. The ifindex is used to refer to the
MIB-II defined local outgoing interface on the PEP.
2.2.5 Reason Object (Reason)
This object specifies the reason why the request state was deleted.
It appears in the delete request (DRQ) message. The Reason Sub-code
field is reserved for more detailed client-specific reason codes
defined in the corresponding documents.
C-Num = 5, C-Type = 1
0 1 2 3
+--------------+--------------+--------------+--------------+
| Reason-Code | Reason Sub-code |
+--------------+--------------+--------------+--------------+
Reason Code:
1 = Unspecified
2 = Management
3 = Preempted (Another request state takes precedence)
4 = Tear (Used to communicate a signaled state removal)
5 = Timeout (Local state has timed-out)
6 = Route Change (Change invalidates request state)
7 = Insufficient Resources (No local resource available)
8 = PDP's Directive (PDP decision caused the delete)
9 = Unsupported decision (PDP decision not supported)
10= Synchronize Handle Unknown
11= Transient Handle (stateless event)
12= Malformed Decision (could not recover)
13= Unknown COPS Object from PDP:
Sub-code (octet 2) contains unknown object's C-Num
and (octet 3) contains unknown object's C-Type.
2.2.6 Decision Object (Decision)
Decision made by the PDP. Appears in replies. The specific non-
mandatory decision objects required in a decision to a particular
request depend on the type of client.
Durham, et al. Standards Track [Page 12]
RFC 2748 COPS January 2000
C-Num = 6
C-Type = 1, Decision Flags (Mandatory)
0 1 2 3
+--------------+--------------+--------------+--------------+
| Command-Code | Flags |
+--------------+--------------+--------------+--------------+
Commands:
0 = NULL Decision (No configuration data available)
1 = Install (Admit request/Install configuration)
2 = Remove (Remove request/Remove configuration)
Flags:
0x01 = Trigger Error (Trigger error message if set)
Note: Trigger Error is applicable to client-types that
are capable of sending error notifications for signaled
messages.
Flag values not applicable to a given context's R-Type or
client-type MUST be ignored by the PEP.
C-Type = 2, Stateless Data
This type of decision object carries additional stateless
information that can be applied by the PEP locally. It is a
variable length object and its internal format SHOULD be
specified in the relevant COPS extension document for the given
client-type. This object is optional in Decision messages and is
interpreted relative to a given context.
It is expected that even outsourcing PEPs will be able to make
some simple stateless policy decisions locally in their LPDP. As
this set is well known and implemented ubiquitously, PDPs are
aware of it as well (either universally, through configuration,
or using the Client-Open message). The PDP may also include this
information in its decision, and the PEP MUST apply it to the
resource allocation event that generated the request.
C-Type = 3, Replacement Data
This type of decision object carries replacement data that is to
replace existing data in a signaled message. It is a variable
length object and its internal format SHOULD be specified in the
relevant COPS extension document for the given client-type. It is
optional in Decision messages and is interpreted relative to a
given context.
Durham, et al. Standards Track [Page 13]
RFC 2748 COPS January 2000
C-Type = 4, Client Specific Decision Data
Additional decision types can be introduced using the Client
Specific Decision Data Object. It is a variable length object and
its internal format SHOULD be specified in the relevant COPS
extension document for the given client-type. It is optional in
Decision messages and is interpreted relative to a given context.
C-Type = 5, Named Decision Data
Named configuration information is encapsulated in this version
of the decision object in response to configuration requests. It
is a variable length object and its internal format SHOULD be
specified in the relevant COPS extension document for the given
client-type. It is optional in Decision messages and is
interpreted relative to both a given context and decision flags.
2.2.7 LPDP Decision Object (LPDPDecision)
Decision made by the PEP's local policy decision point (LPDP). May
appear in requests. These objects correspond to and are formatted the
same as the client specific decision objects defined above.
C-Num = 7
C-Type = (same C-Type as for Decision objects)
2.2.8 Error Object (Error)
This object is used to identify a particular COPS protocol error.
The error sub-code field contains additional detailed client specific
error codes. The appropriate Error Sub-codes for a particular
client-type SHOULD be specified in the relevant COPS extensions
document.
C-Num = 8, C-Type = 1
0 1 2 3
+--------------+--------------+--------------+--------------+
| Error-Code | Error Sub-code |
+--------------+--------------+--------------+--------------+
Error-Code:
1 = Bad handle
2 = Invalid handle reference
3 = Bad message format (Malformed Message)
4 = Unable to process (server gives up on query)
Durham, et al. Standards Track [Page 14]
RFC 2748 COPS January 2000
5 = Mandatory client-specific info missing
6 = Unsupported client-type
7 = Mandatory COPS object missing
8 = Client Failure
9 = Communication Failure
10= Unspecified
11= Shutting down
12= Redirect to Preferred Server
13= Unknown COPS Object:
Sub-code (octet 2) contains unknown object's C-Num
and (octet 3) contains unknown object's C-Type.
14= Authentication Failure
15= Authentication Required
2.2.9 Client Specific Information Object (ClientSI)
The various types of this object are required for requests, and used
in reports and opens when required. It contains client-type specific
information.
C-Num = 9,
C-Type = 1, Signaled ClientSI.
Variable-length field. All objects/attributes specific to a client's
signaling protocol or internal state are encapsulated within one or
more signaled Client Specific Information Objects. The format of the
data encapsulated in the ClientSI object is determined by the
client-type.
C-Type = 2, Named ClientSI.
Variable-length field. Contains named configuration information
useful for relaying specific information about the PEP, a request, or
configured state to the PDP server.
2.2.10 Keep-Alive Timer Object (KATimer)
Times are encoded as 2 octet integer values and are in units of
seconds. The timer value is treated as a delta.
C-Num = 10,
C-Type = 1, Keep-alive timer value
Durham, et al. Standards Track [Page 15]
RFC 2748 COPS January 2000
Timer object used to specify the maximum time interval over which a
COPS message MUST be sent or received. The range of finite timeouts
is 1 to 65535 seconds represented as an unsigned two-octet integer.
The value of zero implies infinity.
0 1 2 3
+--------------+--------------+--------------+--------------+
| ////////////// | KA Timer Value |
+--------------+--------------+--------------+--------------+
2.2.11 PEP Identification Object (PEPID)
The PEP Identification Object is used to identify the PEP client to
the remote PDP. It is required for Client-Open messages.
C-Num = 11, C-Type = 1
Variable-length field. It is a NULL terminated ASCII string that is
also zero padded to a 32-bit word boundary (so the object length is a
multiple of 4 octets). The PEPID MUST contain an ASCII string that
uniquely identifies the PEP within the policy domain in a manner that
is persistent across PEP reboots. For example, it may be the PEP's
statically assigned IP address or DNS name. This identifier may
safely be used by a PDP as a handle for identifying the PEP in its
policy rules.
2.2.12 Report-Type Object (Report-Type)
The Type of Report on the request state associated with a handle:
C-Num = 12, C-Type = 1
0 1 2 3
+--------------+--------------+--------------+--------------+
| Report-Type | ///////////// |
+--------------+--------------+--------------+--------------+
Report-Type:
1 = Success : Decision was successful at the PEP
2 = Failure : Decision could not be completed by PEP
3 = Accounting: Accounting update for an installed state
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -