Chapter 38: Quality of Service Commands
– 1140 –
•
The behavior of the meter is specified in terms of one token bucket (C),
the rate at which the tokens are incremented (CIR – Committed
Information Rate), and the maximum size of the token bucket (BC –
Committed Burst Size).
The token bucket C is initially full, that is, the token count Tc(0) = BC.
Thereafter, the token count Tc is updated CIR times per second as
follows:
•
If Tc is less than BC, Tc is incremented by one, else
•
Tc is not incremented.
When a packet of size B bytes arrives at time t, the following happens:
•
If Tc(t)-B
0, the packet is green and Tc is decremented by B down
to the minimum value of 0, else
•
else the packet is red and Tc is not decremented.
E
XAMPLE
This example creates a policy called “rd-policy,” uses the
command to
specify the previously defined “rd-class,” uses the
command to
classify the service that incoming packets will receive, and then uses the
police flow
command to limit the average bandwidth to 100,000 Kbps,
the burst rate to 4000 bytes, and configure the response to drop any
violating packets.
Console(config)#policy-map rd-policy
Console(config-pmap)#class rd-class
Console(config-pmap-c)#set phb 3
Console(config-pmap-c)#police flow 100000 4000 conform-action transmit
violate-action drop
Console(config-pmap-c)#
police srtcm-color
This command defines an enforcer for classified traffic based on a single
rate three color meter (srTCM). Use the
no
form to remove a policer.
S
YNTAX
[
no
]
police
{
srtcm-color-blind
|
srtcm-color-aware
}
committed-rate committed-burst excess-burst
conform-action
transmit
exceed-action
{
drop
|
new-dscp
}
violate action
{
drop
|
new-dscp
}
srtcm-color-blind
- Single rate three color meter in color-blind
mode.
srtcm-color-aware
- Single rate three color meter in color-aware
mode.
committed-rate
- Committed information rate (CIR) in kilobits per
second. (Range: 0-1000000 kbps at a granularity of 64 kbps or
maximum port speed, whichever is lower)
Содержание SSE-G2252
Страница 42: ...44 General IP Routing on page 627...
Страница 174: ...Chapter 6 VLAN Configuration Configuring VLAN Mirroring 178 Figure 6 27 Showing the VLANs to Mirror...
Страница 511: ...Chapter 14 Basic Administration Protocols UDLD Configuration 518 Figure 14 100 Displaying UDLD Neighbor Information...
Страница 603: ...Chapter 16 IP Configuration Setting the Switch s IP Address IP Version 6 609...
Страница 883: ...Chapter 24 General Security Measures Port based Traffic Segmentation 894...
Страница 989: ...Chapter 30 Congestion Control Commands Automatic Traffic Control Commands 1000 Console...
Страница 1007: ...Chapter 33 Address Table Commands 1019...
Страница 1137: ...Chapter 38 Quality of Service Commands 1150...
Страница 1366: ...Chapter 46 IP Routing Commands Global Routing Configuration 1381 Connected 2 Total 2 FIB 0 Console...