12-16-2010 03:22 PM - edited 03-04-2019 10:49 AM
Hi,
I have the following very simple policy configured on a Cisco 1841.
policy-map Shape-2Mb
class class-default
shape average 2000000
interface FastEthernet0/1
ip address 165.xx.xx.xx.xxx 255.255.255.252
ip access-group BLOCK-LOGIN in
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip virtual-reassembly
speed 100
full-duplex
no mop enabled
service-policy output Shape-2Mb
I'd just like some clarification on the best ways to monitor this.
Looking at the 'sh policy-map int fa0/1' i get this:
FastEthernet0/1
Service-policy output: Shape-2Mb
Class-map: class-default (match-any)
376798 packets, 513067020 bytes
5 minute offered rate 1121000 bps, drop rate 0 bps
Match: any
Traffic Shaping
Target/Average Byte Sustain Excess Interval Increment
Rate Limit bits/int bits/int (ms) (bytes)
2000000/2000000 12500 50000 50000 25 6250
Adapt Queue Packets Bytes Packets Bytes Shaping
Active Depth Delayed Delayed Active
- 0 376463 513036870 95056 121786479 yes
But some of the sections don't make much sence to me.... Can someone explain the output of that command, or point me in the direction of some doco?
thanks.
12-20-2010 02:10 PM
HI,
The below URL does explain the show policy-map command that you see.
http://www.cisco.com/en/US/customer/docs/ios/qos/command/reference/qos_s4.html#wp1119758
let me know if that is the info you are looking for and hope it helps clarify your questions
Raymond
Router# show policy-map interface serial3/2 output
Serial3/2
Service-policy output: p1
Class-map: c1 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 0
Traffic Shaping
Target Byte Sustain Excess Interval Increment Adapt
Rate Limit bits/int bits/int (ms) (bytes) Active
320000 2000 8000 8000 25 1000 -
Queue Packets Bytes Packets Bytes Shaping
Depth Delayed Delayed Active
0 0 0 0 0 no
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Table 195 describes significant fields commonly shown in the displays. The fields in the table are grouped according to the relevant QoS feature.
Field | Description |
---|---|
Fields Associated with Classes or Service Policies | |
Service-policy output | Name of the output service policy applied to the specified interface or VC. |
Class-map | Class of traffic being displayed. Output is displayed for each configured class in the policy. The choice for implementing class matches (for example, match-all or match-any) can also appear next to the traffic class. |
packets and bytes | Number of packets (also shown in bytes) identified as belonging to the class of traffic being displayed. |
offered rate | Rate, in kbps, of packets coming in to the class. Note |
drop rate | Rate, in kbps, at which packets are dropped from the class. The drop rate is calculated by subtracting the number of successfully transmitted packets from the offered rate. |
Note | |
Match | Match criteria specified for the class of traffic. Choices include criteria such as IP precedence, IP differentiated services code point (DSCP) value, Multiprotocol Label Switching (MPLS) experimental (EXP) value, access groups, and QoS groups. For more information about the variety of match criteria that are available, see the "Classifying Network Traffic" module in the Cisco IOS Quality of Service Solutions Configuration Guide. |
Fields Associated with Queueing (if Enabled) | |
Output Queue | The weighted fair queueing (WFQ) conversation to which this class of traffic is allocated. |
Bandwidth | Bandwidth, in either kbps or percentage, configured for this class and the burst size. |
pkts matched/bytes matched | Number of packets (also shown in bytes) matching this class that were placed in the queue. This number reflects the total number of matching packets queued at any time. Packets matching this class are queued only when congestion exists. If packets match the class but are never queued because the network was not congested, those packets are not included in this total. However, if process switching is in use, the number of packets is always incremented even if the network is not congested. |
depth/total drops/no-buffer drops | Number of packets discarded for this class. No-buffer indicates that no memory buffer exists to service the packet. |
Fields Associated with Weighted Random Early Detection (WRED) (if Enabled) | |
exponential weight | Exponent used in the average queue size calculation for a WRED parameter group. |
mean queue depth | Average queue depth based on the actual queue depth on the interface and the exponential weighting constant. It is a fluctuating average. The minimum and maximum thresholds are compared against this value to determine drop decisions. |
class | IP precedence level. |
Transmitted pkts/bytes | Number of packets (also shown in bytes) passed through WRED and not dropped by WRED. Note |
Random drop pkts/bytes | Number of packets (also shown in bytes) randomly dropped when the mean queue depth is between the minimum threshold value and the maximum threshold value for the specified IP precedence level. |
Tail drop pkts/bytes | Number of packets dropped when the mean queue depth is greater than the maximum threshold value for the specified IP precedence level. |
Minimum thresh | Minimum threshold. Minimum WRED threshold in number of packets. |
Maximum thresh | Maximum threshold. Maximum WRED threshold in number of packets. |
Mark prob | Mark probability. Fraction of packets dropped when the average queue depth is at the maximum threshold. |
Fields Associated with Traffic Shaping (if Enabled) | |
Target Rate | Rate used for shaping traffic. |
Byte Limit | Maximum number of bytes that can be transmitted per interval. Calculated as follows: ((Bc+Be) /8) x 1 |
Sustain bits/int | Committed burst (Bc) rate. |
Excess bits/int | Excess burst (Be) rate. |
Interval (ms) | Time interval value in milliseconds (ms). |
Increment (bytes) | Number of credits (in bytes) received in the token bucket of the traffic shaper during each time interval. |
Queue Depth | Current queue depth of the traffic shaper. |
Packets | Total number of packets that have entered the traffic shaper system. |
Bytes | Total number of bytes that have entered the traffic shaper system. |
Packets Delayed | Total number of packets delayed in the queue of the traffic shaper before being transmitted. |
Bytes Delayed | Total number of bytes delayed in the queue of the traffic shaper before being transmitted. |
Shaping Active | Indicates whether the traffic shaper is active. For example, if a traffic shaper is active, and the traffic being sent exceeds the traffic shaping rate, a "yes" appears in this field. |
1 A number in parentheses may appear next to the service-policy output name, class-map name, and match criteria information. The number is for Cisco internal use only and can be disregarded. |
Router# show policy-map interface serial3/2 output
Serial3/2
Service-policy output: p1
Class-map: c1 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 0
Traffic Shaping
Target Byte Sustain Excess Interval Increment Adapt
Rate Limit bits/int bits/int (ms) (bytes) Active
320000 2000 8000 8000 25 1000 -
Queue Packets Bytes Packets Bytes Shaping
Depth Delayed Delayed Active
0 0 0 0 0 no
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Table 195 describes significant fields commonly shown in the displays. The fields in the table are grouped according to the relevant QoS feature.
Field | Description |
---|---|
Fields Associated with Classes or Service Policies | |
Service-policy output | Name of the output service policy applied to the specified interface or VC. |
Class-map | Class of traffic being displayed. Output is displayed for each configured class in the policy. The choice for implementing class matches (for example, match-all or match-any) can also appear next to the traffic class. |
packets and bytes | Number of packets (also shown in bytes) identified as belonging to the class of traffic being displayed. |
offered rate | Rate, in kbps, of packets coming in to the class. Note |
drop rate | Rate, in kbps, at which packets are dropped from the class. The drop rate is calculated by subtracting the number of successfully transmitted packets from the offered rate. |
Note | |
Match | Match criteria specified for the class of traffic. Choices include criteria such as IP precedence, IP differentiated services code point (DSCP) value, Multiprotocol Label Switching (MPLS) experimental (EXP) value, access groups, and QoS groups. For more information about the variety of match criteria that are available, see the "Classifying Network Traffic" module in the Cisco IOS Quality of Service Solutions Configuration Guide. |
Fields Associated with Queueing (if Enabled) | |
Output Queue | The weighted fair queueing (WFQ) conversation to which this class of traffic is allocated. |
Bandwidth | Bandwidth, in either kbps or percentage, configured for this class and the burst size. |
pkts matched/bytes matched | Number of packets (also shown in bytes) matching this class that were placed in the queue. This number reflects the total number of matching packets queued at any time. Packets matching this class are queued only when congestion exists. If packets match the class but are never queued because the network was not congested, those packets are not included in this total. However, if process switching is in use, the number of packets is always incremented even if the network is not congested. |
depth/total drops/no-buffer drops | Number of packets discarded for this class. No-buffer indicates that no memory buffer exists to service the packet. |
Fields Associated with Weighted Random Early Detection (WRED) (if Enabled) | |
exponential weight | Exponent used in the average queue size calculation for a WRED parameter group. |
mean queue depth | Average queue depth based on the actual queue depth on the interface and the exponential weighting constant. It is a fluctuating average. The minimum and maximum thresholds are compared against this value to determine drop decisions. |
class | IP precedence level. |
Transmitted pkts/bytes | Number of packets (also shown in bytes) passed through WRED and not dropped by WRED. Note |
Random drop pkts/bytes | Number of packets (also shown in bytes) randomly dropped when the mean queue depth is between the minimum threshold value and the maximum threshold value for the specified IP precedence level. |
Tail drop pkts/bytes | Number of packets dropped when the mean queue depth is greater than the maximum threshold value for the specified IP precedence level. |
Minimum thresh | Minimum threshold. Minimum WRED threshold in number of packets. |
Maximum thresh | Maximum threshold. Maximum WRED threshold in number of packets. |
Mark prob | Mark probability. Fraction of packets dropped when the average queue depth is at the maximum threshold. |
Fields Associated with Traffic Shaping (if Enabled) | |
Target Rate | Rate used for shaping traffic. |
Byte Limit | Maximum number of bytes that can be transmitted per interval. Calculated as follows: ((Bc+Be) /8) x 1 |
Sustain bits/int | Committed burst (Bc) rate. |
Excess bits/int | Excess burst (Be) rate. |
Interval (ms) | Time interval value in milliseconds (ms). |
Increment (bytes) | Number of credits (in bytes) received in the token bucket of the traffic shaper during each time interval. |
Queue Depth | Current queue depth of the traffic shaper. |
Packets | Total number of packets that have entered the traffic shaper system. |
Bytes | Total number of bytes that have entered the traffic shaper system. |
Packets Delayed | Total number of packets delayed in the queue of the traffic shaper before being transmitted. |
Bytes Delayed | Total number of bytes delayed in the queue of the traffic shaper before being transmitted. |
Shaping Active | Indicates whether the traffic shaper is active. For example, if a traffic shaper is active, and the traffic being sent exceeds the traffic shaping rate, a "yes" appears in this field. |
1 A number in parentheses may appear next to the service-policy output name, class-map name, and match criteria information. The number is for Cisco internal use only and can be disregarded. |
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide