This section contains sample output from the show policy-map command and the show policy-map interface command. The output from these commands can be used to verify and monitor the configuration on your network.
The following is sample output from the show policy-map command. This sample output displays the contents of a policy map called "policy3." In policy 3, average rate traffic shaping
on the basis of an committed information rate (CIR) of 30 percent has been configured, and the bc and be have been specified
in milliseconds.
Router# show policy-map
Policy Map policy3
Class class-default
Average Rate Traffic Shaping
cir 30% bc 10 (msec) be 10 (msec)
The following is sample output from the show policy-map interface command. This sample displays the statistics for the serial 2/0 interface on which average rate traffic shaping has been
enabled.
Router# show policy-map interface serial2/0/0
Serial2/0/0
Service-policy output: policy3 (1032)
Class-map: class-default (match-any) (1033/0)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any (1034)
0 packets, 0 bytes
5 minute rate 0 bps
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts queued/bytes queued) 0/0
shape (average) cir 614400 bc 6144 be 6144
target shape rate 614400
In this example, the CIR is displayed in bps, and both the committed burst (bc) and excess burst (be) are displayed in bits.
The CIR, bc, and be are calculated on the basis of the formulas described below.
Formula for Calculating the CIR
When calculating the CIR, the following formula is used:
CIR percentage specified (as shown in the output of the show policy-map command) * bandwidth (BW) of the interface (as shown in the output of the show interfaces command) = total bits per second
On the serial 2/0 interface, the bandwidth (BW) is 2048 kbps. To see the bandwidth of the interface, use the show interfaces command. A sample is shown below:
Router # show interfaces serial2/0/0
Serial2/0 is administratively down, line protocol is down
Hardware is M4T
MTU 1500 bytes, BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Therefore, the following values are used in the formula:
30% * 2048 kbps = 614400 bps
Formula for Calculating the Committed Burst (bc) and the Excess Burst (be)
When calculating both the bc and the be, the following formula is used:
The bc (or be) in milliseconds (as shown in the show policy-map command) * the CIR in kilobytes (as shown in the show policy-map command) / 1000 = total number of bits
Therefore, the following values are used in the formula:
10 ms * 614400 bps = 6144 bits