Guest

Cisco IOS and NX-OS Software

PXF Divert Rate Limit Enhancement on the Cisco CMTS Routers

Table Of Contents

PXF Divert Rate Limit Enhancement on the Cisco CMTS Routers

Finding Feature Information

Contents

Prerequisites for PXF DRL Enhancement

Restrictions for PXF DRL Enhancement

Information About PXF DRL Enhancement

PXF DRL Enhancement on a Cable Interface

PXF DRL Enhancement on a WAN Interface

How to Configure PXF DRL Enhancement on the Cisco CMTS Routers

Configuring Cable Divert-Rate-Limit

Configuring WAN-IP Rate and Limit

Configuring WAN Non-IP Rate and Limit

Configuring a Trusted Site

Verifying Cable and WAN-IP Dropped Packets

Verifying WAN Non-IP Dropped Packets

Verifying the Trusted-Site List

Clearing Cable or WAN-IP Statistics

Clearing WAN Non-IP Statistics

Configuration Examples for PXF DRL Enhancement

Configuring Cable Divert-Rate-Limit: Example

Configuring WAN-IP Rate and Limit: Example

Configuring WAN Non-IP Rate and Limit: Example

Configuring a Trusted Site: Example

Additional References

Related Documents

Standards

MIBs

RFCs

Technical Assistance

Command Reference

Feature Information for PXF DRL Enhancement



PXF Divert Rate Limit Enhancement on the Cisco CMTS Routers


First Published: December 18, 2008

This document describes the Parallel eXpress Forwarding (PXF) Divert Rate Limit (DRL) Enhancement on the Cisco Cable Modem Termination System (CMTS). This feature prevents congestion of the forwarding processor (FP) to the Route Processor (RP) interface, which can be caused by Denial-of-Service (DoS) attacks directed at the CMTS or by faulty hardware.

Finding Feature Information

Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the "Feature Information for PXF DRL Enhancement" section.

Use Cisco Feature Navigator to find information about platform support and Cisco IOS, Catalyst OS, and Cisco IOS XE software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.

Contents

Prerequisites for PXF DRL Enhancement

Restrictions for PXF DRL Enhancement

Information About PXF DRL Enhancement

How to Configure PXF DRL Enhancement on the Cisco CMTS Routers

Configuration Examples for PXF DRL Enhancement

Additional References

Additional References

Command Reference

Feature Information for PXF DRL Enhancement

Prerequisites for PXF DRL Enhancement

The PXF DRL Enhancement feature is supported on the Cisco CMTS routers in Cisco IOS Release 12.2(33)SCB. Table 1 shows the Cisco Cable Modem Termination System (CMTS) hardware compatibility prerequisites for this feature.

Table 1

CMTS Platform
Processor Engine
Cable Interface Line Cards

Cisco uBR10012 Universal Broadband Router

Cisco IOS Release 12.2(33)SCB

PRE2

PRE4

Cisco IOS Release 12.2(33)SCB

Cisco uBR10-MC5X20S/U/H


PXF DRL Enhancement Hardware Compatibility Matrix

Restrictions for PXF DRL Enhancement

Divert-Rate-Limit (DRL) cannot be configured on a cable bundle interface.

The trusted-site list can contain a maximum of four sites.

WAN-IP entities are identified using a hash, and hash collisions can occur between two (or more) entities.

The DRL feature is always on, and it cannot be turned off.

PXF DRL Enhancement is not applicable to Address Resolution Protocol (ARP) packets arriving from a cable interface. These packets are rate-limited by the ARP filter feature.

Information About PXF DRL Enhancement

The PXF DRL Enhancement feature prevents congestion of the FP-to-RP interface by identifying and rate-limiting entities that would otherwise cause congestion.

Diverted packets are sent from the forwarding processor to the Route Processor through the FP-to-RP interface. Congestion of this interface occurs when packets (that require diversion) arrive at the FP at a faster rate than they can be transmitted to the RP. Under congested conditions, valid packets in the FP-to-RP queues will be tail-dropped. This situation can be caused deliberately by DoS attacks directed at the CMTS, or inadvertently by faulty external hardware.

The PXF DRL Enhancement feature identifies packet streams that causes congestion on the FP-to-RP interface. Packets in the stream are dropped according to the configured rate-limiting parameters. Rate-limiting occurs before the packets are placed in the FP-to-RP queues, thereby allowing other valid packets to reach the RP.

The PXF DRL Enhancement feature applies to both cable and WAN interfaces.

PXF DRL Enhancement on a Cable Interface

The PXF DRL Enhancement feature applies to upstream packets from a cable interface. In cable, the entities must be rate-limited on a deterministic basis. Because certain entities (for example, VoIP calls) must be able to divert packets successfully, a probabilistic model cannot be used. Using this feature, all the traffic emanating from a subscriber is aggregated and limited. The subscriber is identified by the Media Access Control (MAC)-domain and service identifier (SID).

PXF DRL Enhancement on a WAN Interface

The PXF DRL Enhancement feature applies to packets from a non-cable interface (typically a Gigabit Ethernet line card.) WAN-side entities cannot be rate-limited on a deterministic basis due to the large number of entities that can exist. Therefore, a probabilistic model (that is, a hash) is used to identify packet streams. This means that not all entities will be uniquely identified.

IP packet streams are identified and rate-limited by a hash of the source IP address, the fib-root (for example, the VPN routing and forwarding [VRF] name), and the divert code. Non-IP packet streams are not expected on the WAN interface, and are therefore rate-limited on a divert code basis.

A WAN-side "trusted-site" list can be maintained, with a maximum of four trusted sites. Each entry in the "trusted-site" list contains an IP address and mask, an IP type of service (ToS) value and mask, and a VRF name. Packets matching a trusted site will not be subject to rate-limiting. In addition, packets from trusted sites will not affect the rate-limiting of packets from other entities.

How to Configure PXF DRL Enhancement on the Cisco CMTS Routers

This section describes the following required and optional procedures:

Configuring Cable Divert-Rate-Limit (required)

Configuring WAN-IP Rate and Limit (required)

Configuring WAN Non-IP Rate and Limit (required)

Configuring a Trusted Site (required)

Verifying Cable and WAN-IP Dropped Packets (optional)

Verifying WAN Non-IP Dropped Packets (optional)

Verifying the Trusted-Site List (optional)

Clearing Cable or WAN-IP Statistics (optional)

Clearing WAN Non-IP Statistics (optional)

Configuring Cable Divert-Rate-Limit

Cable-side DRL is configured on the physical cable interface. It cannot be configured on a cable bundle interface. To configure cable DRL, use the cable divert-rate-limit command.

SUMMARY STEPS

1. enable

2. configure terminal

3. interface interface

4. cable divert-rate-limit rate rate limit limit

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

Router> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 

configure terminal

Example:

Router# configure terminal

Enters global configuration mode.

Step 3 

interface interface

Example:

Router(config)# interface C5/0/0

Enters interface configuration mode for the specified interface.

interface—Specifies the name of the physical Cable interface.

Step 4 

cable divert-rate-limit rate rate limit limit

Example:

Router(config-if)# cable divert-rate-limit rate 1 limit 4

Specifies the DRL rate and limit.

rate—Specifies the divert rate in packets per second. Minimum rate is 1 packet per second. Maximum rate is 65535 packets per second. The default rate is 2000 packets per second.

limit—Specifies the number of packets to be diverted in an initial burst of packets. Minimum limit is 4 packets. Maximum limit is 4194 packets. The default limit is 2000 packets.

Configuring WAN-IP Rate and Limit

To configure DRL for WAN-side IP packet streams, use the service divert-rate-limit ip command.

SUMMARY STEPS

1. enable

2. configure terminal

3. service divert-rate-limit ip divert-code rate rate limit limit

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

Router> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 

configure terminal

Example:

Router# configure terminal

Enters global configuration mode.

Step 3 

service divert-rate-limit ip divert-code rate rate limit limit

Example:

Router(config)# service divert-rate-limit ip fib-rp-glean rate 1 limit 4

Specifies the DRL rate and limit for the WAN interface.

divert-code—Specifies the applicable divert code.

rate—Specifies the divert rate in packets per second. Minimum rate is 1 packet per second. Maximum rate is 65535 packets per second. For WAN-IP packets, the default rate is 4000 packets per second.

limit—Specifies the number of packets to be diverted in an initial burst of packets. Minimum limit is 4 packets. Maximum limit is 4194 packets. For WAN-IP packets, the default limit is 4000 packets.

Configuring WAN Non-IP Rate and Limit

To configure DRL for WAN-side non-IP packet streams, use the service divert-rate-limit non-ip command.

SUMMARY STEPS

1. enable

2. configure terminal

3. service divert-rate-limit non-ip divert-code rate rate limit limit

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

Router> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 

configure terminal

Example:

Router# configure terminal

Enters global configuration mode.

Step 3 

service divert-rate-limit non-ip divert-code rate rate limit limit

Example:

Router(config)# service divert-rate-limit non-ip cgmp rate 1 limit 4


Specifies the DRL rate and limit for the WAN interface.

divert-code—Specifies the applicable divert code.

rate—Specifies the divert rate in packets per second. Minimum rate is 1 packet per second. Maximum rate is 65535 packets per second. For WAN non-IP packets, the default rate is 2000 packets per second.

limit—Specifies the number of packets to be diverted in an initial burst of packets. Minimum limit is 4 packets. Maximum limit is 4194 packets. For WAN non-IP packets, the default limit is 2000 packets.

Configuring a Trusted Site

Each entry in the "trusted-site" list contains a source IP address and mask, an IP ToS value and mask, and a VRF name. The "trusted-site" list applies only to WAN-side IPv4 packets. A maximum of four trusted sites can be configured.

To configure a trusted-site list, use the service divert-rate-limit trusted-site command.

SUMMARY STEPS

1. enable

2. configure terminal

3. service divert-rate-limit trusted-site source-ip ip-mask tos tos-value mask tos-mask global vrf vrf-name

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

Router> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 

configure terminal

Example:

Router# configure terminal

Enters global configuration mode.

Step 3 

service divert-rate-limit trusted-site source-ip ip-mask tos tos-value mask tos-mask


service divert-rate-limit trusted-site source-ip ip-mask tos tos-value mask tos-mask global


service divert-rate-limit trusted-site source-ip ip-mask tos tos-value mask tos-mask vrf vrf-names

Example:

Router(config)# service divert-rate-limit trusted-site 64.12.13.0 255.255.0.255

tos 0xD0 mask 0xF3


Router(config)# service divert-rate-limit trusted-site 64.12.13.0 255.255.0.255

tos 0xD0 mask 0xF3 global


Router(config)# service divert-rate-limit trusted-site 64.12.13.0 255.255.0.255

tos 0xD0 mask 0xF3 vrf name1

Adds entries to the trusted-site list using the specified parameters.

Note If no VRF name is specified, the trusted site applies to all VRF and the global Internet.

source-ip—Specifies the source IP address that should be matched.

ip-mask—Specifies the mask to apply to the source IP address of the packet before testing if it matches. There are no restrictions on the mask-ip-address value.

tos tos-value—Specifies the ToS value of the trusted site. There are no restrictions on the tos-value value.

mask tos-mask—Specifies the mask to apply to the IP ToS value and the trusted-site tos value before testing whether it matches. There are no restrictions on the tos-mask value.

global—Specifies that the trusted-site is applicable to the global internet, but not to other VRF names.

vrf vrf-name—Specifies the VPN routing and forwarding (VRF) name that applies to this trusted site.

Note Only four entries are allowed in the trusted site list.

Verifying Cable and WAN-IP Dropped Packets

To verify information related to dropped packets for cable and WAN-IP packets, use the show pxf cpu statistics drl cable-wan-ip or show pxf cpu statistics drl cable-wan-ip threshold commands as shown in the following examples:

Router# show pxf cpu statistics drl cable-wan-ip
Divert-Rate-Limit Cable/WAN-IP statistics
   dropped identifier
       736 11.12.13.10 VRF: global divert_code: fib_rp_dest
       190 11.12.13.10 VRF: global divert_code: fib_limited_broadcast
      3796 Interface: Cable5/0/0  SID: 2

Router# show pxf cpu statistics drl cable-wan-ip threshold 1000
Divert-Rate-Limit Cable/WAN-IP statistics :: threshold = 1000
   dropped identifier
      3796 Interface: Cable5/0/0  SID: 2

Verifying WAN Non-IP Dropped Packets

To verify drop counters for WAN non-IP packets, use the show pxf cpu statistics drl wan-non-ip or show pxf cpu statistics drl wan-non-ip threshold commands as shown in the following examples:

Router# show pxf cpu statistics drl wan-non-ip
Divert-Rate-Limit WAN-non-IP statistics
   dropped divert_code
         5 cdp
        17 cgmp


Router# show pxf cpu statistics drl wan-non-ip threshold 10
Divert-Rate-Limit WAN-non-IP statistics :: threshold = 10
   dropped divert_code
        17 cgmp

Verifying the Trusted-Site List

To verify the trusted-site configuration, use the show pxf cpu drl-trusted-sites command as shown in the following example:

Router# show pxf cpu drl-trusted-sites
Divert-Rate-Limit Trusted-Site list
 IP-addr          IP-addr mask     ToS   ToS mask  VRF
 50.0.0.0         255.255.255.0    0x18  0xF8      global internet
 50.0.1.0         255.255.0.0      0x01  0xFF      all
 60.0.1.0         255.255.255.0    0x18  0xF8      blue

Clearing Cable or WAN-IP Statistics

To clear all the entries in the WAN-IP statistics table, use the clear pxf statistics drl cable-wan-ip command.

Clearing WAN Non-IP Statistics

To clear all the entries in the WAN non-IP statistics table, use the clear pxf statistics drl wan-non-ip command.

Configuration Examples for PXF DRL Enhancement

This section provides the following configuration examples:

Configuring Cable Divert-Rate-Limit: Example

Configuring WAN-IP Rate and Limit

Configuring WAN Non-IP Rate and Limit

Configuring a Trusted Site

Configuring Cable Divert-Rate-Limit: Example

In the following example, a cable DRL is configured.

interface C5/0/0
cable divert-rate-limit rate 1 limit 4

Configuring WAN-IP Rate and Limit: Example

In the following example, a WAN-IP rate and limit is configured.

service divert-rate-limit 
service divert-rate-limit ip 
service divert-rate-limit ip fib_rp_glean 
service divert-rate-limit ip fib_rp_glean rate
service divert-rate-limit ip fib_rp_glean rate 65530 
service divert-rate-limit ip fib_rp_glean rate 65530 limit
service divert-rate-limit ip fib_rp_glean rate 65530 limit 4194 

Configuring WAN Non-IP Rate and Limit: Example

In the following example, a WAN Non-IP rate and limit is configured.

service divert-rate-limit 
service divert-rate-limit non-ip 
service divert-rate-limit non-ip cgmp 
service divert-rate-limit non-ip cgmp rate 
service divert-rate-limit non-ip cgmp rate 65535 
service divert-rate-limit non-ip cgmp rate 65535 limit
service divert-rate-limit non-ip cgmp rate 65535 limit 4100

Configuring a Trusted Site: Example

In the following example, a trusted-site is configured.

service divert-rate-limit trusted-site 64.12.13.0 255.255.0.255
		tos 0xD0 mask 0xF3

Additional References

The following sections provide references related to the PXF Divert Rate Limit Enhancement feature.

Related Documents

Related Topic
Document Title

CMTS cable commands

Cisco IOS CMTS Cable Command Reference

Cable ARP Filtering

Cisco IOS CMTS Cable Software Configuration Guide


Standards

Standard
Title

No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.


MIBs

MIB
MIBs Link

No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature.

To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:

http://www.cisco.com/go/mibs


RFCs

RFC
Title

No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.


Technical Assistance

Description
Link

The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies.

To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds.

Access to most tools on the Cisco Support website requires a Cisco.com user ID and password.

http://www.cisco.com/techsupport


Command Reference

The following commands are introduced or modified in the feature or features documented in this module. For information about these commands, see the Cisco IOS CMTS Command Reference at http://www.cisco.com/en/US/docs/ios/cable/command/reference/cbl_book.html. For information about all Cisco IOS commands, use the Command Lookup Tool at http://tools.cisco.com/Support/CLILookup or the Cisco IOS Master Command List, All Releases, at http://www.cisco.com/en/US/docs/ios/mcl/allreleasemcl/all_book.html.

cable divert-rate-limit

service divert-rate-limit ip

service divert-rate-limit non-ip

service divert-rate-limit trusted-site

clear pxf statistics drl cable-wan-ip

clear pxf statistics drl wan-non-ip

show pxf cpu statistics

show pxf cpu drl-trusted-sites

Feature Information for PXF DRL Enhancement

Table 2 lists the features in this module and provides links to specific configuration information. Only features that were introduced or modified in Cisco IOS Release 12.2(33)SCB or a later release appear in the table.

Not all commands may be available in your Cisco IOS software release. For release information about a specific command, see the command reference documentation.

Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which Cisco IOS, Catalyst OS, and Cisco IOS XE software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.


Note Table 2 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release. Unless noted otherwise, subsequent releases of that Cisco IOS software release also support that feature.


Table 2 Feature Information for PXF DRL Enhancement 

Feature Name
Releases
Feature Information

PXF DRL Enhancement on the Cisco CMTS Routers

12.2(33)SCB

The PXF DRL Enhancement feature prevents congestion of the FP-to-RP interface by identifying and rate-limiting entities that would otherwise cause congestion.

The following sections provide information about this feature:

PXF DRL Enhancement on a Cable Interface

PXF DRL Enhancement on a WAN Interface

The following commands were introduced or modified: cable divert-rate-limit, service divert-rate-limit ip, service divert-rate-limit non-ip, service divert-rate-limit trusted-site, clear pxf statistics drl cable-wan-ip, clear pxf statistics drl wan-non-ip, show pxf cpu statistics, show pxf cpu drl-trusted-sites