Configuring the SRC Client
The JUNOSe software has an embedded client that interacts with the Juniper Networks SRC software, enabling the SRC software to manage the router's policy and QoS configuration.
The connection between the router and the SRC software uses the Common Open Policy Service (COPS) protocol and is fully compliant with the COPS usage for policy provisioning (COPS-PR) specification. The router's SRC client functions as the COPS client, or policy enforcement point (PEP). The SRC software functions as the COPS server, or policy decision point (PDP).
Table 10 provides common terms used in the COPS environment.
The JUNOSe software's COPS-PR implementation uses the outsourcing model that is described in RFC 3084. In this model, the PEP delegates responsibility to the PDP to make provisioning decisions on the PEP's behalf.
The provisioning is event-driven and is based on policy requests rather than on an action taken by an administratorthe provisioning is initiated when the PDP receives external requests and PEP events. Provisioning can be performed in bulk (for example, an entire QoS configuration) or in smaller segments (for example, updating a marking filter). The following list shows the interaction between the PEP and the PDP during the COPS-PR operation.
- PEP starts the COPS-PR connection with the PDP.
- PDP requests synchronization.
- PEP sends all currently provisioned policies to PDP.
- PEP requests provisioning of an interface from the PDP.
- PDP determines policies and sends provisioning data to the PEP.
- PEP provisions the policies.
The information exchange between the PDP and PEP consists of data that is modeled in Policy Information Bases (PIBs) and is encoded using the standard ASN.1 basic encoding rules (BERs). The JUNOSe software's COPS-PR support uses a proprietary PIB. The proprietary PIB consists of a series of tables designed to replicate and enhance the XDR functionality that is supported in previous JUNOSe software releases, including the proprietary accounting and address assignment mechanisms. The XDR-encoded commands for the SRC software continue to be supported.
The proprietary PIB provides the Policy Manager and QoS Manager functionality shown in the following lists.
- Committed access rate
- Packet filtering
- Policy routing
- QoS classification and marking
- Rate limiting
- Traffic class
You can configure SRC clients on a per-virtual-router basis. To configure the SRC client:
- Enable the SRC client. With the CLI sscc enable command you can specify either BER-encoded information exchange for COPS-PR or XDR exchange for COPS.
host1(config)#sscc enable cops-pr- Specify the IP addresses of up to three service activation engines (SAEs) (primary, secondary, and tertiary). You can optionally specify the port on which the SAEs listen for activity.
host1(config)#sscc primary addresshost1(config)#sscc secondary address 192.168.12.1 port 3288- (Optional) Enable policy and QoS configuration support for IPv6 interfaces.
host1(config)#sscc protocol ipv6- (Optional) Specify on which router the TCP/COPS connection is to be established.
host1(config)#sscc transportRouter chicago- (Optional) Specify a fixed source address for the TCP/COPS connection created for an SRC client session.
host1(config)#sscc sourceAddress 10.9.123.8- (Optional) Specify a fixed source interface for the TCP/COPS connection.
host1(config)#sscc sourceInterface atm 3/0- (Optional) Specify the delay period during which the SRC client waits for a response from the SAE.
host1(config)#sscc retryTimer 120sscc address
- Use to configure the SRC client with the IP addresses of the SAEs and the ports on which the SAEs listen for activity.
- You can specify primary, secondary, and tertiary SAEs, and the port numbers on which each listens for activity. By default, the SAE listens on port 3288.
- Example
host1(config)#sscc primary address 192.168.128.10 port 3288Use the no version to remove a specific SAE (primary, secondary, or tertiary) from the list of SAEs. sscc enable
- Use to enable the SRC client's COPS support in the router.
- Use with the cops-pr keyword to enable COPS-PR support; omit the cops-pr keyword to enable XDR-based COPS support.
- Example
host1(config)#sscc enable cops-prUse the no version to disable the feature. sscc protocol ipv6
- Use to configure IPv6 support on the SRC client. IPv6 support enables policy and QoS configuration on IPv6 interfaces. The IPv6 support is in addition to the default IPv4 support.
- The SRC client does not support IPv6 policy and QoS configuration when in the XDR mode.
- Example
host1(config)#sscc protocol ipv6Use the no version to disable IPv6 support on the SRC client. sscc retryTimer
- Use to specify the delay period (in the range 5300 seconds) during which the SRC client waits for a response from the SAE.
- If only a primary SAE is configured, the client resends the request to the primary SAE.
- The client attempts to connect to a tertiary SAE only if both the primary and secondary SAEs are unavailable. For example, if the client is connected to the secondary SAE when the delay period expires, the client first tries to connect to the primary SAE before trying the tertiary SAE. The client waits for the length of the delay period before each attempt.
- Example
host1(config)#sscc retryTimer 90Use the no version to restore the default value, 90 seconds. sscc sourceAddress
- Use to specify a fixed source address for the TCP/COPS connection created for an SRC client session. This is the local address.
- If you do not specify a source address, the TCP/COPS connection is not bound to a specific source (that is, local) address.
- Example
host1(config)#sscc sourceAddress 10.9.123.8Use the no version to remove the specified address. sscc sourceInterface
- Use to specify a fixed source interface for the TCP/COPS connection created for an SRC client session. This is a local interface.
- You may need to set a source interface in cases where a firewall, access control list, or policy configuration exists; and it is important to know what the interface is, or you need to set the interface independently from other protocols that have conflicting requirements.
- If you do not specify a source interface, the TCP/COPS connection is not bound to a specific source (that is, local) interface.
- Example
host1(config)#sscc sourceInterface atm 3/0Use the no version to remove the source interface. sscc transportRouter
- Use to specify on which router the TCP/COPS connection is to be established.
- The router can be the same as or different from the router the SRC client session is created in and associated with.
- If you do not specify the transport router for an SRC client session, the transport router defaults to the router associated with the session.
- Example
host1(config)#sscc transportRouter chicagoUse the no version to remove the specified SRC client transport router.