- Cisco Unique Device Identifier Support
- Cisco Redundancy Features
- Managing Physical Entities
Using MIBs
This chapter describes how to perform tasks on the Cisco ASR 1000 Series Routers
- Cisco Unique Device Identifier Support
- Cisco Redundancy Features
- Managing Physical Entities
- Monitoring Quality of Service
– CISCO-CLASS-BASED-QOS-MIB Overview
– Viewing QoS Configuration Settings Using the CISCO-CLASS-BASED-QOS-MIB
– Monitoring QoS Using the CISCO-CLASS-BASED-QOS-MIB
Cisco Unique Device Identifier Support
The ENTITY-MIB now supports the Cisco compliance effort for a Cisco unique device identifier (UDI) standard which is stored in IDPROM.
The Cisco UDI provides a unique identity for every Cisco product. The UDI is composed of three separate data elements which must be stored in the entPhysicalTable:
- Orderable product identifier (PID)—Product Identifier (PID). PID is the alphanumeric identifier used by customers to order Cisco products. Two examples include NM-1FE-TX or CISCO3745. PID is limited to 18 characters and must be stored in the entPhysicalModelName object.
- Version identifier (VID)—Version Identifier (VID). VID is the version of the PID. The VID indicates the number of times a product has versioned in ways that are reported to a customer. For example, the product identifier NM-1FE-TX may have a VID of V04. VID is limited to three alphanumeric characters and must be stored in the entPhysicalHardwareRev object.
- Serial number (SN)—Serial number is the 11-character identifier used to identify a specific part within a product and must be stored in the entPhysicalSerialNum object. Serial number content is defined by manufacturing part number 7018060-0000. The SN is accessed at the following website by searching on the part number 701806-0000:
https://mco.cisco.com/servlet/mco.ecm.inbiz
Serial number format is defined in four fields:
The SN label is represented as: LLLYYWWSSS.
NoteThe Version ID returns NULL for those old or existing cards whose IDPROMs do not have the Version ID field. Therefore, corresponding entPhysicalHardwareRev returns NULL for cards that do not have the Version ID field in IDPROM.
Cisco Redundancy Features
– Cisco Nonstop Forwarding and Stateful Switchover
- Software Redundancy
- Verifying Cisco ASR 1000 Series Routers Redundancy
- Related Information and Useful Links
Redundancy creates a duplication of data elements and software functions to provide an alternative in case of failure. The goal of Cisco redundancy features is to cut over without affecting the link and protocol states associated with each interface and continue packet forwarding. The state of the interfaces and subinterfaces is maintained, along with the state of line cards and various packet processing hardware.
Levels of Redundancy
This section describes the levels of redundancy supported on the Cisco ASR 1000 Series Routers and how to verify that this feature is available. Cisco ASR 1000 Series Routers support fault resistance by allowing a Cisco redundant supervisor engine (SE) to take over if the active supervisor engine fails. Redundancy prevents equipment failures from causing service outages, and supports hitless maintenance and upgrade activities. The state of the interfaces and subinterfaces are maintained along with the state of line cards and various packet processing hardware.
Redundant systems support two route processors. One acts as the active route processor while the other acts as the standby route processor.
The route processor redundancy feature provides high availability for Cisco routers by switching over to the standby route processor when one of the following conditions occur:
- Cisco IOS software failure
- Cisco ASR 1000 Series Route Processor (RP) hardware failure
- Software upgrade
- Maintenance procedure
Cisco ASR 1000 Series Routers can operate in one of two redundancy modes:
In all modes, the standby RP will take over when the active RP fails.
Route Processor Redundancy
This section describes the Route Processor Redundancy (RPR) mode for the Cisco ASR 1000 Series Routers.
When the switch is powered on, RPR runs between two Cisco supervisor engines. The supervisor engine that boots first becomes the RPR active supervisor engine.
Cisco ASR 1000 Series Routers support fault resistance by allowing a redundant supervisor engine to take over if the active supervisor engine fails.
Cisco Nonstop Forwarding and Stateful Switchover
This section describes the Cisco Nonstop Forwarding and Stateful Switchover mode. With NSF/SSO, Cisco ASR 1000 Series Routers can fail over from the active to the standby route processor almost immediately while continuing to forward packets. Cisco IOS software NSF/SSO support on this platform enables immediate failover.
In networking devices running NSF/SSO, both RPs must be running the same configuration so that the standby RP is always ready to assume control following a fault on the active RP. The configuration information is synchronized from the active RP to the standby RP at startup and each timechanges to the active RP configuration occur.
Following an initial synchronization between the two processors, NFS/SSO maintains RP state information between them, including forwarding information.
Cisco Nonstop Forwarding (NSF) works with the Stateful Switchover (SSO) to minimize the amount of time a network is unavailable to its users following a Route Processor (RP) fail-over in a router with dual RPs. NSF/SSO capability allows routers to detect a switchover and take the necessary actions to continue forwarding network traffic and to recover route information from peer devices.
Cisco NSF works with the Stateful Switchover (SSO) feature in Cisco IOS software to minimize the amount of time a network is unavailable to its users following a switchover. The main objective of Cisco NSF/SSO is to continue forwarding data packets along known routes while the routing protocol information is being restored following a route switchover.
NoteFor detailed information about the Nonstop Forwarding feature go to:
http://www.cisco.com/en/US/docs/ios/12_2s/feature/guide/fsnsf20s.html
NoteFor detailed information about the Stateful Switchover feature go to:
http://www.cisco.com/en/US/docs/ios/12_2s/feature/guide/fssso20s.html
Software Redundancy
Cisco ASR 1004 Routers having only one RP slot do not support hardware redundancy. Instead, these Routers have option of sofware redundancy by running two IOSD processes. IOSD can optionally be run in a redundant configuration. One IOSD instance is active and the other is maintained in a hot standby mode. State information is exchanged between the instances using the normal SSO support over IPC. Software redundancy option is not available and is deactivated if a second RP is added to the chassis. The active RP is responsible for controlling both the active and standby FP as well as all of the I/O (carrier) cards. If the active IOSD instance fails then the backup takes over and resynchronizes its state with the FP and I/O cards.
Verifying Cisco ASR 1000 Series Routers Redundancy
To display information about the active and standby supervisor engines installed in a Cisco ASR 1000 Series Routers, use the show redundancy command and show redundancy states command. For Router Processor in R0 slot, the value of Unit ID is 48, same as ASCII ''0'' (hex 30). The value of Unit ID is 49, ASCII ''1'' (hex 31), for Router Processor in R1 slot.
Example A-1 Displaying Redundancy States from Active Processor
Example A-2 Displaying Redundancy States from Standby Processor
Example A-3 Displaying Redundancy States for Software Redundancy - ASR 1004
Related Information and Useful Links
The following URLs provide access to helpful information about the Cisco redundancy feature:
- Detailed information about Cisco nonstop forwarding:
http://www.cisco.com/en/US/docs/ios/12_2s/feature/guide/fsnsf20s.html - Detailed information aboutthe stateful switchover feature:
http://www.cisco.com/en/US/docs/ios/12_2s/feature/guide/fssso20s.html - Detailed information about the route processor redundancy feature:
http://www.cisco.com/en/US/docs/ios/12_1/12_1ex/feature/guide/12e_rpr.html
Managing Physical Entities
This section describes how to use SNMP to manage the physical entities (components) in the router by:
– Determining the ifIndex Value for a Physical Port
– Monitoring and Configuring FRU Status
The physical entity management feature of the Cisco ASR 1000 Series Routers SNMP implementation does the following:
- Monitors and configures the status of field replaceable units (FRUs)
- Provides information about physical port to interface mappings
- Provides asset information for asset tagging
- Provides firmware and software information for chassis components
MIBs Used for Physical Entity Management
- CISCO-ENTITY-FRU-CONTROL-MIB—Contains objects used to monitor and configure the administrative and operational status of field replaceable units (FRUs), such as power supplies and line cards, that are listed in the entPhysicalTable of the ENTITY-MIB.
- CISCO-ENTITY-EXT-MIB - Contains Cisco defined extensions to the entPhysicalTable of the ENTITY-MIB to provide information for entities with an entPhysicalClass value of 'module' that have a CPU, RAM/NVRAM, and/or a configuration register.
- CISCO-ENTITY-SENSOR-MIB and ENTITY-SENSOR-MIB—Contain information about entities in the entPhysicalTable with an entPhysicalClass value of 'sensor'.
- CISCO-ENTITY-VENDORTYPE-OID-MIB—Contains the object identifiers (OIDs) for all physical entities in the router.
- ENTITY-MIB—Contains information for managing physical entities on the router. It also organizes the entities into a containment tree that depicts their hierarchy and relationship to each other. The MIB contains the following tables:
– The entPhysicalTable describes each physical component (entity) in the router. The table contains an entry for the top-level entity (the chassis) and for each entity in the chassis. Each entry provides information about that entity: its name, type, vendor, and a description, and describes how the entity fits into the hierarchy of chassis entities.
Each entity is identified by a unique index ( entPhysicalIndex ) that is used to access information about the entity in this and other MIBs.
– The entAliasMappingTable maps each physical port’s entPhysicalIndex value to its corresponding ifIndex value in the IF-MIB ifTable.
– The entPhysicalContainsTable shows the relationship between physical entities in the chassis. For each physical entity, the table lists the entPhysicalIndex for each of the entity’s child objects.
– The entPhysicalIsFRU indicates whether or not a physical entity is considered a Field Replaceable Unit (FRU). For an entity identified as FRU, the physical entity contains the following device-specific information:
- entPhysicalModelName- Product Identification (PID), same as orderable part number.
- entPhysicalHardwareRev- Version Identification (VID)
- entPhysicalSerialNum- Serial Number (SN)
- Cisco Unique Device Identifier (UDI)- Composed of PID, VID and SN, it provides a unique identity for all Cisco hardware products on which it has been enabled.
Performing Inventory Management
To obtain information about entities in the router, perform a MIB walk on the ENTITY-MIB entPhysicalTable.
As you examine sample entries in the ENTITY-MIB entPhysicalTable, consider the following:
- entPhysicalIndex—Uniquely identifies each entity in the chassis. This index is also used to access information about the entity in other MIBs.
- entPhysicalContainedIn—Indicates the entPhysicalIndex of a component’s parent entity.
- entPhysicalParentRelPos—Shows the relative position of same-type entities that have the same entPhysicalContainedIn value (for example, chassis slots, and line card ports).
Note The container is applicable if the physical entity class is capable of containing one or more removable physical entities. For example, each (empty or full) slot in a chassis is modeled as a container. All removable physical entities should be modeled within a container entity, such as field-replaceable modules, fans, or power supplies.
Sample of ENTITY-MIB entPhysicalTable Entries
The samples in this section show how information is stored in the entPhysicalTable. You can perform asset inventory by examining entPhysicalTable entries.
NoteThe sample outputs and values that appear throughout this chapter are examples of data you can view when using MIBs.
The following display shows the ENTITY-MIB entPhysicalTable sample entries for a ASR1000 SIP-10 card installed in a router chassis and four SPAs inserted into the card.
ENTITY-MIB entPhysicalTable Entries
where entPhysicalVendorType identifies the unique vendor-specific hardware type of the physical entity.
where entPhysicalContainedIn indicates the entPhysicalIndex of a component’s parent entity.
where entPhysicalClass indicates the general type of hardware device.
where entPhysicalParentRelPos indicates the relative position of this child among the other entities.
where entPhysicalName provides the textual name of the physical entity.
where entPhysicalHardware provides the vendor-specific hardware revision number (string) for the physical entity.
where entPhysicalSerialNumber provides the vendor-specific serial number (string) for the physical entity.
where entPhysicalMfgName provides the manufacturer’s name for the physical component.
where entPhysicalModelName provides the vendor-specific model name string for the physical component.
where entPhysicalIsFRU indicates whether or not this physical entity is considered a field replaceable unit (FRU).
Note the following about the sample configuration:
– For chassis slots, entPhysicalContainedIn = 1 (the entPhysicalIndex of the chassis).
– For SPA ports, the entPhysicalContainedIn = 1280 (the entPhysicalIndex of the SPA card).
Determining the ifIndex Value for a Physical Port
The ENTITY-MIB entAliasMappingIdentifier maps a physical port to an interface by mapping the port’s entPhysicalIndex to its corresponding ifIndex value in the IF-MIB ifTable. The following sample shows that the physical port whose entPhysicalIndex is 35 is associated with the interface whose ifIndex value is 4. (See the MIB for detailed descriptions of possible MIB values.)
Monitoring and Configuring FRU Status
View objects in the CISCO-ENTITY-FRU-CONTROL-MIB cefcModuleTable to determine the administrative and operational status of FRUs, such as power supplies and line cards:
- cefcModuleAdminStatus—The administrative state of the FRU. Use cefcModuleAdminStatus to enable or disable the FRU.
- cefcModuleOperStatus—The current operational state of the FRU.
Figure A-1 shows a cefcModuleTable entry for a SIP card whose entPhysicalIndex is 1000.
Figure A-1 Sample cefcModuleTable Entry
See the “FRU Status Changes” section for information about how the router generates notifications to indicate changes in FRU status.
Using ENTITY-ALARM-MIB to Monitor Entity Alarms
ENTITY-MIB
The Entity physical table contains information for managing physical entities on the router. It also organizes the entities into a containment tree that depicts their hierarchy, and relationship with each other. Refer to the Appendix A, “Entity Containment Tree” section for the entity hierarchy. The following sample output contains the information for the ASR1002 AC power supply in power supply bay 0:
For more information on this MIB, refer to ENTITY-MIB (RFC 4133).
CISCO-ENTITY-ALARM-MIB
CISCO-ENTITY-ALARM-MIB supports the monitoring of alarms generated by physical entities contained by the system, including chassis, slots, modules, ports, power supplies, etc. In order to monitor alarms generated by a physical entity, it must be represented by a row in the entPhysicalTable.
For more information on this MIB, refer to CISCO-ENTITY-ALARM-MIB.
Alarm Description Map Table
For each type of entity (represented by entPhysicalVendorType OID), this table contains a mapping between a unique ceAlarmDescrIndex and entPhysicalvendorType OID.
The ceAlarmDescrMapEntry is indexed by the CeAlarmDescrMapEntry.
NoteThe mapping between the ceAlarmDescrIndex and entPhysicalvendorType OID will exist only if the type of entity supports alarms monitoring, and it is in the device since device boot-up.
The following are the sample output:
The temperature sensor in ASR1000 modules (RP, FP, CC, and PEM) contains cevSensorModuleDeviceTemp as entPhysicalvendorType OID. From the above sample output, the index (ceAlarmDescrIndex) 9 is mapped to cevSensorModuleDeviceTemp, and the index 19 is mapped to the AER10002 power supply which has cevPowerSupplyASR1002AC as entity physical vendor type OID.
NoteSPA is not included in ALL ASR1000 modules. It has its own vendor type OID defined for its sensor.
NoteThe generic vendor OID, cevSenor, is used in case the ASR1000 snmp agent is not able to determine the sensor type.
Alarm Description Table
The Alarm Description Table contains a description for each alarm type, defined by each vendor type employed by the system. Each alarm description entry (ceAlarmDescrEntry) is indexed by ceAlarmDescrIndex and ceAlarmDescrAlarmType.
The following is the sample output for all alarm types defined for all temperature type of entity in the ASR1000 modules. The index 9 is obtained from the ceAlarmDescrMapTable in the previous section:
Refer to the Bellcore Technical Reference TR-NWT-000474 Issue 4, December 1993, OTGR Section 4. Network Maintenance: Alarm and Control - Network Element. The severity is defined as follows:
The following is the list of alarms defined for the sensor:
These alarm types are defined for all sensor physical entity type. The only difference is that different sensor physical type have different ceAlarmDescrText. The temperature sensor has "TEMP" and the voltage sensor has "Volt" in the alarm description text.
The following is the sample output of all alarm types. It is defined for the ASR1002 AC power supply which has cevPowerSupplyASR1002AC as vendor type OID and is mapped to the ceAlarmDescrIndex 19.
Alarm Table
The Alarm Table specifies alarm control and status information related to each physical entity contained by the system. The table includes the alarms currently being asserted by each physical entity that is capable of generating alarms. Each physical entity in entity physical table that is capable of generating alarms has an entry in this table.The alarm entry (ceAlarmEntry) is indexed by the entity physical index (entPhysicalIndex). The following is a list of MIB objects in the alarm entry:
- ceAlarmFilterProfile
The alarm filter profile object contains an integer value that uniquely identifies an alarm filter profile associated with the corresponding physical entity. An alarm filter profile controls which alarm types the agent will monitor and signal for the corresponding physical entity. The default value of this object is 0, the agent monitors and signals all alarms associated with the corresponding physical entity. - ceAlarmSeverity
This object specifies the highest severity alarm currently being asserted by the corresponding physical entity.
A value of '0' indicates that the corresponding physical entity is not currently asserting any alarms. - ceAlarmList
This object specifies those alarms currently being asserted by the corresponding physical entity. If an alarm is being asserted by the physical entity, then the corresponding bit in the alarm list is set to a one. The alarm list is defined as octet string and its size ranges from 0 to 32.
– If the physical entity is not currently asserting any alarms, then the list will have a length of zero, otherwise it will have a length of 32.
– An OCTET STRING represents an alarm list, in which each bit represents an alarm type:
From the entity physical table (entPhysicalTable in ENTITY-MIB), we understnd that the ASR1002 AC power supply in power supply bay 0 has 4 as entPhysicalIndex .
The following are the sample output of alarm list for the power supply in PS bay 0:
From the sample output in the Alarm Description Table section and the alarm mapping table, the ASR1002 AC power supply in the bay 0 has the following alarms asserted:
Alarm type 0 : Power Supply Failure
As for the ASR1002 AC power supply in bay 1, which has 14 as entPhysiclIndex:
Because the length of alarm list returned for the power supply in bay 1 is 0, there is no alarm asserted for the power supply in bay 1.
The following is the output of "show facility-alarm status" CLI command; it displays all alarms currently asserted in the device:
NoteCisco IOS-XE does not support theclear facility alarm command.
Alarm History Table
The Alarm History Table, ceAlarmHistTable, contains history of alarms both asserted and cleared generated by the agent. The ceAlarmHistTableSize is used to control the size of the alarm history table. A value of 0 prevents any history from being retained in this table. If the capacity of the ceAlarmHistTable has reached the value specified by this object, then the agent deletes the oldest entity in order to accommodate a new entry.
The ceAlarmHistLastIndex object contains the last index corresponding to the last entry added to the table by the snmp agent in the device. If the management client uses notifications listed in the Appendix A, “Alarm Notifications” defined in CISCO-ENTITY-ALARM-MIB module, then it can poll this object to determine whether it has missed a notification sent by the agent.
The following is a list of MIB objects defined in the ceAlarmHistEntry, which is indexed by the ceAlarmHistIndex:
- ceAlarmHistIndex
This is an integer value uniquely identifying the entry in the table. The value of this object starts at '1' and monotonically increases for each alarm (asserted or cleared) added to the alarm history table. If the value of this object is '4294967295', it will be reset to '1', upon monitoring the next alarm condition transition. - ceAlarmHistType
This object indicates that the entry is added as a result of of an alarm being asserted or cleared. - ceAlarmHistEntPhysicalIndex
This object contains the entPhysicalIndex of the physical entity that generated the alarm. - ceAlarmHistAlarmType
This object specifies the type of alarm generated. - ceAlarmHistSeverity
This object specifies the severity of the alarm generated. - ceAlarmHistTimeStamp
This object specifies the value of the sysUpTime object at the time the alarm is generated.
Example A-4 Displaying Sample Output for the Alarm History
Example A-5 Displaying the Last Alarm Action (asserted or cleared) Added to the Alarm History Table
At this point, the EMS application should already have all information regarding the physical entity and the entity alarm type defined for the physical entity.
Example A-6 Displaying the Physical Entity That has Value 4 as entPhysicalIndex
Example A-7 Displaying the Alarm Type Defined for cevPowerSupplyASR1002AC
From the alarm type defined for cevPowerSupplyASR1002AC, the application can easily interpret the last entry in the alarm history table as : Fan 0 Failure Alarm is Cleared for Cisco ASR1002 AC Power Supply in power supply bay 0.
Alarm Notifications
CISCO-ENTITY-ALARM-MIB supports the alarm asserted (ceAlarmAsserted) and alarm cleared (ceAlarmCleared) notifications. The notification can be enabled by setting the ceAlarmNotifiesEnable object through the snmp SET. The ceAlarmNotifiesEnable contains the severity level of the alarms notification or the value 0:
The severity 4 will enable notification for all severity level.
The severity 3 will enable notifications for severity 1, 2, and 3.
The severity 2 will enable notifications for severity 1 and 2.
The severity 1 will enable notifications for severity 1 only.
The value of 0 will disable the alarm notification.
The alarm notification can be enabled or disabled via the CLI command. Use the "NO" form to disable the alarm notification:
The alarm notification contains exactly the same information described in alarm history entry. Refer to the Alarm History Table Section for the MIB objects and to interpret the alarm notifications received.
Example A-8 Displaying the Sample Notification Received
Entity Containment Tree
The following is sample entity hierarchy for a ASR1002 device, Mib Variables printed : <entPhysicalName entPhysicalClass>
Generating SNMP Notifications
This section provides information about the SNMP notifications generated in response to events and conditions on the router, and describes how to identify the hosts that are to receive notifications.
Identifying Hosts to Receive Notifications
You can use the CLI or SNMP to identify hosts to receive SNMP notifications and to specify the types of notifications they are to receive (notifications or informs). For CLI instructions, see the “Enabling Notifications” section. To use SNMP to configure this information, use the following MIB objects:
Use SNMP-NOTIFICATION-MIB objects, including the following, to select target hosts and specify the types of notifications to generate for those hosts:
– snmpNotifyTag is an arbitrary octet string (a tag value) used to identify the hosts to receive SNMP notifications. Information about target hosts is defined in the snmpTargetAddrTable (SNMP-TARGET-MIB), and each host has one or more tag values associated with it. If a host in snmpTargetAddrTable has a tag value that matches this snmpNotifyTag value, the host is selected to receive the types of notifications specified by snmpNotifyType.
– snmpNotifyType is the type of SNMP notification to send: notification(1) or inform(2).
- snmpNotifyFilterProfileTable and snmpNotifyFilterTable—Use objects in these tables to create notification filters to limit the types of notifications sent to target hosts.
Use SNMP-TARGET-MIB objects to configure information about the hosts to receive notifications:
- snmpTargetAddrTable—Transport addresses of hosts to receive SNMP notifications. Each entry provides information about a host address, including a list of tag values:
– snmpTargetAddrTagList—A set of tag values associated with the host address. If a host’s tag value matches snmpNotifyTag, the host is selected to receive the types of notifications defined by snmpNotifyType.
Use the notification enable objects in appropriate MIBs to enable and disable specific SNMP notifications. For example, to generate mplsLdpSessionUp or mplsLdpSessionDown notifications, the MPLS-LDP-MIB object mplsLdpSessionUpDownTrapEnable must be set to enabled(1).
Configuration Changes
If entity notifications are enabled, the router generates an entConfigChange notification (ENTITY-MIB) when the information in any of the following tables changes (which indicates a change to the router configuration):
Note A management application that tracks configuration changes checks the value of the entLastChangeTime object to detect any entConfigChange notifications that were missed as a result of throttling or transmission loss.
Enabling notifications for Configuration Changes
To configure the router to generate an entConfigChange notification each time its configuration changes, enter the following command from the CLI. Use the no form of the command to disable the notifications.
FRU Status Changes
If FRU notifications are enabled, the router generates the following notifications in response to changes in the status of an FRU:
- cefcModuleStatusChange—The operational status (cefcModuleOperStatus) of an FRU changes.
- cefcFRUInserted—An FRU is inserted in the chassis. The notification indicates the entPhysicalIndex of the FRU and the container it was inserted in.
- cefcFRURemoved—An FRU is removed from the chassis. The notification indicates the entPhysicalIndex of the FRU and the container it was removed from.
Note See the CISCO-ENTITY-FRU-CONTROL-MIB for more information about these notifications.
To configure the router to generate notifications for FRU events, enter the following command from the CLI. Use the no form of the command to disable the notifications.
To enable FRU notifications through SNMP, set cefcMIBEnableStatusNotification to true(1). Disable the notifications by setting cefcMIBEnableStatusNotification to false(2).
Monitoring Quality of Service
This section provides the following information about using Quality of Service (QoS) in your configuration:
- CISCO-CLASS-BASED-QOS-MIB Overview
- Viewing QoS Configuration Settings Using the CISCO-CLASS-BASED-QOS-MIB
- Monitoring QoS Using the CISCO-CLASS-BASED-QOS-MIB
- Considerations for Processing QoS Statistics
- Sample QoS Applications
CISCO-CLASS-BASED-QOS-MIB Overview
The CISCO-CLASS-BASED-QOS-MIB provides read only access to quality of service (QoS) configuration information and statistics for Cisco platforms that support the modular Quality of Service command-line interface (modular QoS CLI).
CISCO-CLASS-BASED-QOS-MIB Object Relationship
To understand how to navigate the CISCO-CLASS-BASED-QOS-MIB tables, it is important to understand the relationship among different QoS objects. QoS objects consists of:
- Match Statement—specific match criteria to identify packets for classification purposes.
- Class Map—a user-defined traffic class that contains 1 or more match statements used to classify packets into different categories.
- Feature Action—a QoS feature. Features include police, traffic shaping, queueing, random detect, and packet marking. After the traffic has been classified we apply actions to each traffic class.
- Policy Map—a user-defined policy that associates a Qos feature action to the user-define class map.
- Service Policy—a policy map that has been attached to an interface.
The MIB uses the following indices to identify QoS features and distinguish among instances of those features:
QoS MIB Information Storage
CISCO-CLASS-BASED-QOS-MIB information is stored in:
- Configuration instances – includes all class maps, policy map, match statements, and feature action configuration parameters. Might have multiple identical instances. Multiple instances of the same QoS feature share a single configuration object, which is identified by cbQosConfigIndex.
- Runtime Statistics instances—Includes summary counts and rates by traffic class before and after any configured QoS policies are enforced. In addition, detailed feature-specific statistics are available for select PolicyMap features. Each has a unique runtime instance. Multiple instances of a QoS feature have a separate statistics object. Run-time instances of QoS objects are each assigned a unique identifier (cbQosObjectsIndex) to distinguish among multiple objects with matching configurations.
Viewing QoS Configuration Settings Using the CISCO-CLASS-BASED-QOS-MIB
This section contains examples that show how QoS configuration settings are stored in CISCO-CLASS-BASED-QOS-MIB tables. The samples show information grouped by QoS object; however, the actual output of an SNMP query might show QoS information similar to the following.
NoteThis is only a partial display of all QoS information.
getmany -v2c 9.0.0.55 ciscoCBQosMIB
cbQosIfType.64 = mainInterface(1)
cbQosIfType.66 = mainInterface(1)
cbQosPolicyDirection.64 = input(1)
cbQosPolicyDirection.66 = output(2)
cbQosIfIndex.64 = 4
cbQosIfIndex.66 = 4
cbQosFrDLCI.64 = 0
cbQosFrDLCI.66 = 0
cbQosAtmVPI.64 = 0
cbQosAtmVPI.66 = 0
cbQosAtmVCI.64 = 0
cbQosAtmVCI.66 = 0
cbQosEntityIndex.64 = 0
cbQosEntityIndex.66 = 0
cbQosConfigIndex.64.64 = 15348192
cbQosConfigIndex.64.7282691 = 12103539
cbQosConfigIndex.64.15123441 = 1593
cbQosConfigIndex.64.15755442 = 1594
cbQosConfigIndex.66.66 = 15889568
cbQosConfigIndex.66.1907619 = 15971699
cbQosConfigIndex.66.9319458 = 1594
cbQosConfigIndex.66.15082481 = 1593
cbQosObjectsType.64.64 = policymap(1)
cbQosObjectsType.64.7282691 = police(7)
cbQosObjectsType.64.15123441 = classmap(2)
cbQosObjectsType.64.15755442 = matchStatement(3)
cbQosObjectsType.66.66 = policymap(1)
cbQosObjectsType.66.1907619 = queueing(4)
cbQosObjectsType.66.9319458 = matchStatement(3)
cbQosObjectsType.66.15082481 = classmap(2)
cbQosParentObjectsIndex.64.64 = 0
cbQosParentObjectsIndex.64.7282691 = 15123441
cbQosParentObjectsIndex.64.15123441 = 64
cbQosParentObjectsIndex.64.15755442 = 15123441
cbQosParentObjectsIndex.66.66 = 0
cbQosParentObjectsIndex.66.1907619 = 15082481
cbQosParentObjectsIndex.66.9319458 = 15082481
cbQosParentObjectsIndex.66.15082481 = 66
cbQosPolicyMapName.15348192 = policy-police
cbQosPolicyMapName.15889568 = policy-bw
cbQosPolicyMapDesc.15348192 =
cbQosPolicyMapDesc.15889568 =
cbQosCMName.1593 = class-default
cbQosCMDesc.1593 =
cbQosCMInfo.1593 = matchAny(3)
.....
.....
Monitoring QoS Using the CISCO-CLASS-BASED-QOS-MIB
This section describes how to monitor QoS on the router by checking the QoS statistics in the CISCO-CLASS-BASED-QOS-MIB tables.
NoteThe CISCO-CLASS-BASED-QOS-MIB might contain more information than what is displayed in the output of CLIshow commands.
Table A-1 lists the types of QoS statistics tables.
Considerations for Processing QoS Statistics
The router maintains 64-bit counters for most QoS statistics. However, some QoS counters are implemented as a 32-bit counter with a 1-bit overflow flag. In the following samples, these counters are shown as 33-bit counters.
When accessing QoS counter statistics, consider the following:
- SNMPv2c or SNMPv3 applications—Access the entire 64 bits of the QoS counter through cbQosxxx64 MIB objects.
- SNMPv1 applications—Access QoS statistics in the MIB as follows:
– Access the lower 32 bits of the counter through cb Qosxxx MIB objects.
– Access the upper 32 bits of the counter through cbQosxxxOverflow MIB objects.
Sample QoS Statistics Tables
The samples in this section show the counters in CISCO-CLASS-BASED-QOS-MIB statistics tables:
- Figure A-2 shows the counters in the cbQosCMStatsTable and the indexes for accessing these and other statistics.
- Figure A-3 shows the counters in cbQosMatchStmtStatsTable, cbQosPoliceStatsTable, cbQosQueueingStatsTable, cbQosTSStatsTable, and cbQosREDClassStatsTable.
For ease-of-use, the following figures show some counters as a single object even though the counter is implemented as three objects. For example, cbQosCMPrePolicyByte
is implemented as:
Figure A-2 QoS Class Map Statistics and Indexes
Figure A-3 QoS Statistics Tables
Sample QoS Applications
This section presents examples of code showing how to retrieve information from the CISCO-CLASS-BASED-QOS-MIB to use for QoS billing operations. You can use these examples to help you develop billing applications. The topics include:
Checking Customer Interfaces for Service Policies
This section describes a sample algorithm that checks the CISCO-CLASS-BASED-QOS-MIB for customer interfaces with service policies, and marks those interfaces for further application processing (such as billing for QoS services).
The algorithm uses two SNMP get-next requests for each customer interface. For example, if the router has 2000 customer interfaces, 4000 SNMP get-next requests are required to determine if those interfaces have transmit and receive service policies associated with them.
NoteThis algorithm is for informational purposes only. Your application needs may be different.
Check the MIB to see which interfaces are associated with a customer. Create a pair of flags to show if a service policy has been associated with the transmit and receive directions of a customer interface. Mark noncustomer interfaces TRUE (so no more processing is required for them).
Examine the cbQosServicePolicyTable and mark each customer interface that has a service policy attached to it. Also note the direction of the interface.
Manage cases in which a customer interface does not have a service policy attached to it.
Retrieving QoS Billing Information
This section describes a sample algorithm that uses the CISCO-CLASS-BASED-QOS-MIB for QoS billing operations. The algorithm periodically retrieves post-policy input and output statistics, combines them, and sends the result to a billing database.
The algorithm uses the following:
- One SNMP get request per customer interface—to retrieve the ifAlias.
- Two SNMP get-next requests per customer interface—to retrieve service policy indexes.
- Two SNMP get-next requests per customer interface for each object in the policy—to retrieve post-policy bytes. For example, if there are 100 interfaces and 10 objects in the policy, the algorithm requires 2000 get-next requests (2 x 100 x 10).
Note This algorithm is for informational purposes only. Your application needs may be different.
Set up customer billing information.
Determine the number of post-policy bytes for billing purposes.
Monitoring Router Interfaces
This section provides information about how to monitor the status of router interfaces to see if there is a problem or a condition that might affect service on the interface. To determine if an interface is Down or experiencing problems, you can:
Check the Interface’s Operational and Administrative Status
To check the status of an interface, view the following IF-MIB objects for the interface:
- ifAdminStatus—The administratively configured (desired) state of an interface. Use ifAdminStatus to enable or disable the interface.
- ifOperStatus—The current operational state of an interface.
Monitor linkDown and linkUp Notifications
To determine if an interface has failed, you can monitor linkDown and linkUp notifications for the interface. See the “Enabling Interface linkUp/linkDown Notifications” section for instructions on how to enable these notifications.
- linkDown—Indicates that an interface failed or is about to fail.
- linkUp—Indicates that an interface is no longer in the Down state.
Enabling Interface linkUp/linkDown Notifications
To configure SNMP to send a notification when a router interface changes state to Up (ready) or Down (not ready), perform the following steps to enable linkUp and linkDown notifications:
Step 1 Issue the following CLI command to enable linkUp and linkDown notifications for most, but not necessarily all, interfaces:
Step 2 View the setting of the ifLinkUpDownTrapEnable object (IF-MIB ifXTable) for each interface to determine if linkUp and linkDown notifications are enabled or disabled for that interface.
Step 3 To enable linkUp and linkDown notifications on an interface, set ifLinkUpDownTrapEnable to enabled(1). To configure the router to send linkDown notifications only for the lowest layer of an interface, see the “SNMP Notification Filtering for linkDown Notifications” section.
Step 4 To enable the Internet Engineering Task Force (IETF) standard for linkUp and linkDown notifications, issue the following command. (The IETF standard is based on RFC 2233.)
Step 5 To disable notifications, use the no form of the appropriate command.
SNMP Notification Filtering for linkDown Notifications
Use the SNMP notification filtering feature to filter linkDown notifications so that SNMP sends a linkDown notification only if the main interface goes down. If an interfaces goes down, all of its subinterfaces go down, which results in numerous linkDown notifications for each subinterface. This feature filters out those subinterface notifications.
This feature is turned off by default. To enable the SNMP notification filtering feature, issue the following CLI command. Use the no form of the command to disable the feature.
Billing Customers for Traffic
This section describes how to use SNMP interface counters and QoS data information to determine the amount to bill customers for traffic. It also includes a scenario for demonstrating that a QoS service policy attached to an interface is policing traffic on that interface.
This section contains the following topics:
- Input and Output Interface Counts
- Determining the Amount of Traffic to Bill to a Customer
- Scenario for Demonstrating QoS Traffic Policing
Input and Output Interface Counts
The router maintains information about the number of packets and bytes that are received on an input interface and transmitted on an output interface.
For detailed constraints about IF-MIB counter support, see the “IF-MIB (RFC 2863)” section.
Read the following important information about the IF-MIB counter support:
- Unless noted, all IF-MIB counters are supported on Cisco ASR 1000 Series Routers interfaces.
- For IF-MIB high capacity counter support, Cisco conforms to the RFC 2863 standard. The RFC 2863 standard states that for interfaces that operate:
– At 20 million bits per second or less, 32-bit byte and packet counters must be supported.
– Faster than 20 million bits per second and slower than 650,000,000 bits per second, 32-bit packet counters and 64-bit octet counters must be supported.
– At 650,000,000 bits per second or faster, 64-bit packet counters and 64-bit octet counters must be supported.
- When a QoS service policy is attached to an interface, the router applies the rules of the policy to traffic on the interface and increments the packet and bytes counts on the interface.
The following CISCO-CLASS-BASED-QOS-MIB objects provide interface counts:
- cbQosCMDropPkt and cbQosCMDropByte (cbQosCMStatsTable)—Total number of packets and bytes that were dropped because they exceeded the limits set by the service policy. These counts include only those packets and bytes that were dropped because they exceeded service policy limits. The counts do not include packets and bytes dropped for other reasons.
- cbQosPoliceConformedPkt and cbQosPoliceConformedByte (cbQosPoliceStatsTable)—Total number of packets and bytes that conformed to the limits of the service policy and were transmitted.
Determining the Amount of Traffic to Bill to a Customer
Perform these steps to determine how much traffic on an interface is billable to a particular customer:
Step 1 Determine which service policy on the interface applies to the customer.
Step 2 Determine the index values of the service policy and class map used to define the customer’s traffic. You need this information in the following steps.
Step 3 Generate traffic with the traffic generator. The data rate should be more than that is configured for Conform burst(bc)/Exceed burst(be) for the policy.
Step 4 (Optional) Access the cbQosCMDropPkt object (cbQosCMStatsTable) for the customer to determine how much of the customer’s traffic was dropped because it exceeded service policy limits.
Scenario for Demonstrating QoS Traffic Policing
This section describes a scenario that demonstrates the use of SNMP QoS statistics to determine how much traffic on an interface is billable to a particular customer. It also shows how packet counts are affected when a service policy is applied to traffic on the interface.
To create the scenario, follow these steps, each of which is described in the sections that follow:
1. Create and attach a service policy to an interface.
2. View packet counts before the service policy is applied to traffic on the interface.
3. Issue a ping command to generate traffic on the interface. Note that the service policy is applied to the traffic.
4. View packet counts after the service policy is applied to determine how much traffic to bill the customer for:
- Conformed packets—The number of packets within the range set by the service policy and for which you can charge the customer.
- Exceeded or dropped packets—The number of packets that were not transmitted because they were outside the range of the service policy. These packets are not billable to the customer.
Note In the above scenario, the Cisco ASR 1000 Series Routers is used as an interim device (that is, traffic originates elsewhere and is destined for another device).
Service Policy Configuration
This scenario uses the following policy-map configuration. For information on how to create a policy map, see “Configuring Quality of Service” in the Cisco ASR 1000 Series Router Software Configuration Guide .
Packet Counts Before the Service Policy Is Applied
The following CLI and SNMP output shows the interface’s output traffic before the service policy is applied:
Packet Counts After the Service Policy Is Applied
After you generate traffic using the traffic generator, look at the number of packets that exceeded and conformed to the committed information rate (CIR) set by the police command:
- 19351 packets conformed to the police rate and were transmitted
- 80 packets exceeded the police rate and were dropped
- 16066130 packets violated the police rate and were dropped
The following CLI and SNMP output show the counts on the interface after the service policy is applied. The object cbQosCMDropPkt refers to sum of exceeded and violated packets and cbQosCMDropByte refers to the sum of exceeded and violated bytes. (In the output, exceeded andviolated packet counts are shown in boldface.)
Using IF-MIB Counters
This section describes the IF-MIB counters and how you can use them on various interfaces and subinterfaces. The subinterface counters are specific to the protocols. This section addresses the IF-MIB counters for ATM interfaces.
The IF-MIB counters are defined with respect to lower and upper layers:
- ifInDiscards—The number of inbound packets which were discarded, even though no errors were detected to prevent their being deliverable to a higher-layer protocol. One reason for discarding such a packet could be to free up buffer space.
- IfInErrors—The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol for packet-oriented interfaces.
- ifInUnknownProtos—The number of packets received through the interface which were discarded because of an unknown or unsupported protocol for packet-oriented interfaces.
- ifOutDiscards—The number of outbound packets which were discarded even though no errors were detected to prevent their being transmitted. One reason for discarding such a packet is to free up buffer space.
- ififOutErrors—The number of outbound packets that could not be transmitted because of errors for packet-oriented interfaces.
The logical flow for counters works as follows:
1. When a packet arrives on an interface, check for the following:
a. Error in packet—If any errors are detected, increment ifInErrors and drop the packet.
b. Protocol errors—If any errors are detected, increment ifInUnknownProtos and drop the packet.
c. Resources (buffers)—If unable to get resources, increment ifInDiscards and drop the packet.
d. Increment ifInUcastPkts/ ifInNUcastPkts and process the packet (At this point, increment the ifInOctets with the size of packet).
2. When a packet is to be sent out of an interface:
a. Increment ifOutUcasePkts/ ifOutNUcastPkts (Here we also increment ifOutOctets with the size of packet).
b. Check for error in packet and if there are any errors in packet, increment ifOutErrors and drop the packet.
c. Check for resources (buffers) and if you cannot get resources then increment ifOutDiscards and drop packet.
This following output is an example IF-MIB entries:
Sample Counters
The high capacity counters are 64-bit versions of the basic ifTable counters. They have the same basic semantics as their 32-bit counterparts; their syntax is extended to 64 bits.
Table A-2 lists capacity counter object identifiers (OIDs).
|
|
---|---|
Related Information and Useful Links
The following URLs provide access to helpful information about Cisco IF-MIB counters:
http://www.cisco.com/en/US/customer/tech/tk648/tk362/technologies_q_and_a_item09186a00800b69ac.shtml
Overview of SIPs and SPAs
The following list describes some of the general characteristics of Cisco SIPs and SPAs (shared port adapter).
– Inserts into a router slot like a line card. It provides no network connectivity on its own.
– Contains one or more subslots, which are used to house one or more SPAs. The SPA provides interface ports for network connectivity.
– Resides in the router fully populated either with functional SPAs in all subslots during normal operation or with a blank filler plate (SPA-BLANK=) inserted in all empty subslots.
– Support online insertion and removal (OIR) with SPAs inserted in their subslots. SPAs also support OIR and can be inserted or removed independently from the SIP.
– Inserts into a subslot of a compatible SIP carrier card to provide network connectivity and increased interface port density. A SIP can hold one or more SPAs, depending on the SIP type.
– Provides services rather than network connectivity and insert into subslots of compatible cards. For example, the IPSec VPN SPA provides services such as IP Security (IPSec) encryption/decryption, generic routing encapsulation (GRE ), and Internet Key Exchange (IKE) key generation.
– Are available in single-height (inserts into one SIP subslot) and double-height (inserts into two single, vertically aligned SIP subslots).
NoteSPA-1X10GE-WL-V2 is supported on the Cisco ASR1K platform begining with Cisco IOS XE Release 3.3.0 S and Cisco IOS Release 15.1(2)S.
NoteThe 1-Port 10GE LAN/WAN-PHY Shared Port Adapter (SPA-1X10GE-WL-V2) should be on the same mode, either the LAN mode or the WAN mode, at both ends.
NoteThe SPA-1X10GE-WL-V2 (configured in the LAN mode) is compatible with the SPA-1X10GE-L-V2 (LAN SPA).
Configuring the LAN-PHY Mode
Use the following commands to configure the LAN-PHY mode on the 1-Port 10GE LAN/WAN-PHY Shared Port Adapter (SPA-1X10GE-WL-V2):
NoteAfter configuring the LAN-PHY mode and reloading the SPA, all the links are in the UP state.
NoteEffective from Cisco IOS Release 15.1(2)S, 1-Port 10GE LAN/WAN-PHY Shared Port Adapter (SPA-1X10GE-WL-V2) supports both the LAN and WAN modes.
Displaying the SIP Hardware Type
To verify the SIP hardware type that is installed in your Cisco ASR 1000 series router, you can use the show platform command. There are some commands on the Cisco ASR 1000 series router that provide SIP hardware information. There are more sub-commands which give detailed output for each SIP/SPA card. The example below shows some list of such commands.
Example A-9 Example of the show platform command
The following example shows the output of the show platform command on the Cisco ASR 1000 Series Routers:
Slot Type State Insert time (ago)
--------- ------------------- --------------------- -----------------
0/0 SPA-1XOC12-POS ok 06:17:25
1/0 SPA-1X10GE-L-V2 ok 06:17:36
1/2 SPA-8X1FE-TX-V2 ok 06:17:36
R0 ASR1000-RP1 ok, active 06:19:03
F0 ASR1000-ESP10 ok, active 06:19:03
Slot CPLD Version Firmware Version
--------- ------------------- ---------------------------------------
0 06120701 12.2(20070802:195019) [gschnorr-mcp_...
1 06120701 12.2(20070802:195019) [gschnorr-mcp_...
2 06120701 12.2(20070802:195019) [gschnorr-mcp_...
R0 0706210B 12.2(20070807:170946) [gschnorr-mcp_...
F0 07021400 12.2(20070802:195019) [gschnorr-mcp_...
hardware Show platform hardware information
software Show platform software information
interface Interface information
Router#sh platform hardware slot ?
F0 Embedded-Service-Processor slot 0
F1 Embedded-Service-Processor slot 1