[Contents] [Prev] [Next] [Index] [Report an Error]


Statistics Profiles

Statistics profiles enable you to gather statistics for the rate at which packets are forwarded out of a queue and for the rate at which committed, conformed, or exceeded packets are dropped. Statistics profiles also enable you to use events to monitor the rate statistics. You can then use show commands to view the results of the statistics gathering.

You can create up to 250 statistics profiles on the E-series router. The profiles are referenced by a queue rule within a QoS profile.

When you create a statistics profile, you specify the time period over which statistics are gathered. To gather event statistics, you configure the thresholds for triggering rate-event reporting.

Rate Statistics

You can configure the E-series router to gather statistics for the rate at which queues forward and drop packets.

Queue rate statistics measure the forwarding and drop rates of each queue in bits per second. All bytes in the Layer 2 encapsulation are included in the rate calculation. For example, rates for a queue on Ethernet include the Ethernet and VLAN encapsulations.

For ATM modules, you can optionally configure queue statistics and queue rates to include the cell encapsulation and padding. Cell encapsulation and padding are referred to as the cell tax. The QoS shaping mode that you set on ATM line modules determines whether queue rate statistics include cell tax.

To configure the router to gather rate statistics on a queue, you create the statistics profile and configure the rate period for the profile. You then reference the statistics profile in a QoS profile, and attach the QoS profile to an interface. Finally, you use the show egress-queue rates command to display statistics that have been gathered.

To gather rate statistics, perform the following steps:

  1. Configure the statistics profile.
  2. host1(config)#statistics-profile statpro-5
    
    host1(config-statistics-profile)#rate-period 45
    
    host1(config-statistics-profile)#exit
    
    
    
  3. Reference the statistics profile by a QoS profile.
  4. host1(config)#qos-profile qospro-3
    
    host1(config-qos-profile)#ip queue traffic-class tc1 scheduler-profile sp1 
    statistics-profile statpro-5 
    
    
    
  5. Attach the QoS profile to the appropriate interface.
  6. host1(config)#interface gigabitEthernet 1/0
    
    host1(config-subif)#qos-profile qospro-3
    
    host1(config-subif)#exit
    
    
    
  7. (Optional) Display the rate statistics.
  8. host1#show egress-queue rates
    

Event Statistics

You can configure the E-series router to count the number of times that forwarding or drop rates exceed a specific threshold. Events can be useful when you are monitoring service level agreements. For example, you might count the number of times that the drop rate of a queue is nonzero.

To configure the router to count rate events on a queue, you create the statistics profile and configure the event thresholds for the profile. You then reference the statistics profile in a QoS profile, and attach the QoS profile to an interface. Finally, you use the show egress-queue events command to display the event statistics that you have gathered.

To count rate events, perform the following steps:

  1. Configure the statistics profile.
  2. host1(config)#statistics-profile statpro-1
    
    host1(config-statistics-profile)#rate-period 30
    
    host1(config-statistics-profile)#forwarding-rate-threshold 10000000
    
    host1(config-statistics-profile)#committed-drop-threshold 2000000
    
    host1(config-statistics-profile)#conformed-drop-threshold 4000000
    
    host1(config-statistics-profile)#exceeded-drop-threshold 6000000
    
    host1(config-statistics-profile)#exit
    
    
    
  3. Reference the statistics profile by a QoS profile.
  4. host1(config)#qos-profile qospro-1
    
    host1(config-qos-profile)#ip queue traffic-class tc1 scheduler-profile sp1 
    statistics-profile statpro-1 
    
    
    
  5. Attach the QoS profile to the appropriate interface.
  6. host1(config)#interface gigabitEthernet 1/0
    
    host1(config-subif)#qos-profile qospro-1
    
    host1(config-subif)#exit
    
    
    
  7. (Optional) Display the rate statistics.
  8. host1#show egress-queue events 
    

Memory and Processor Use

The E-series router uses shared processing and memory when it gathers egress queue rate statistics and events. If sufficient memory is not available, the statistics gathering is temporarily disabled and the queues are considered to be in failover mode until memory becomes available.

The router displays a CLI message whenever queues are put into failover mode and when they recover from failover mode. The show egress-queue command displays the number of queues that are disabled due to no resources.

NOTE: When an extremely large number of statistics is being gathered over a short period of time, the router might release the processor to perform more important tasks. This can result in longer rate periods than you have configured. For example, if you've configured 10,000 queues to gather statistics every second on a line card, the router might actually lengthen the rate to 2 seconds or more.


Configuring Statistics Profiles

To configure a statistics profile, perform the following steps:

  1. Create a statistics profile, and enter Statistics Profile Configuration mode.
  2. host1(config)#statistics-profile statpro-1 
    
    host1(config-statistics-profile)#
    
    
    
  3. (Optional) Set the time period for calculating queue rate statistics.
  4. host1(config-statistics-profile)#rate-period 30
    
    
    
  5. (Optional) Set the threshold for logging events. You can set thresholds for committed drop, conformed drop, exceeded drop, and forwarding rate events.
  6. host1(config-statistics-profile)#committed-drop-threshold 50000
    

committed-drop-threshold
    conformed-drop-threshold
    exceeded-drop-threshold

forwarding-rate-threshold

rate-period

statistics-profile


[Contents] [Prev] [Next] [Index] [Report an Error]