21.2. Message structure

COPS is a binary protocol whose messages consist of the COPS header followed by typed objects. The COPS header (Figure 21.2) consists of the following fields:

  • Version – indicates the COPS version number (its default is 1).

  • Flags – denotes certain message flags. The only one currently defined is 0x1, which indicates whether the message was solicited by another COPS message.

  • OP code – denotes the COPS operation. Table 21.1 lists the defined COPS operation codes.

  • Client type – identifies the policy client and determines the interpretation of the accompanying typed objects, with the exception of a Keep-Alive message that always has client type set to zero.

  • Message length – denotes the octet length of the message.

Figure 21.2. COPS header.
Table 21.1. COPS operation codes.
ValueShortWhereNameDescription
1REQPEP → PDPRequestRequests a decision from a PDP and establishes a client handle that identifies the specific state associated with this PEP
2DECPDP → PEPDecisionReturns one or more decisions as a response to a request
3RPTPEP → PDPReport stateReports back to the PDP the PEP's success or failure in carrying out the PDP's decision, or reports a change in state
4DRQPEP → PDPDelete request stateIndicates to the PDP that the state associated with the client handle is no longer relevant
5SSQPDP → PEPSynchronize state requestIndicates that the remote PDP wishes the PEP to ...

Get The IMS: IP Multimedia Concepts And Services, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.