
Chapter 23
| Quality of Service Commands
– 627 –
Example
This example creates a policy called “rd-policy,” uses the
class
command to specify
the previously defined “rd-class,” uses the
command to classify the service
that incoming packets will receive, and then uses the
command to limit
the average bandwidth to 100,000 Kbps, the burst rate to 4,000 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 10000 4000 conform-action transmit
violate-action drop
Console(config-pmap-c)#
police flow
This command defines an enforcer for classified traffic based on the metered flow
rate. Use the no form to remove a policer.
Syntax
[
no
]
police flow
committed-rate committed-burst
conform-action
{
transmit
|
new-dscp
}
violate-action
{
drop
|
new-dscp
}
committed-rate
- Committed information rate (CIR) in kilobits per second.
(Range: 0-10000000 kbps or maximum port speed, whichever is lower)
committed-burst
- Committed burst size (BC) in bytes.
(Range: 4000-16000000 bytes)
conform-action
- Action to take when packet is within the CIR and BC.
(There are enough tokens to service the packet, the packet is set green).
violate-action
- Action to take when packet exceeds the CIR and BC. (There
are not enough tokens to service the packet, the packet is set red).
transmit
- Transmits without taking any action.
drop
- Drops packet as required by violate-action.
new-dscp
- Differentiated Service Code Point (DSCP) value. (Range: 0-63)
Default Setting
None
Command Mode
Policy Map Class Configuration
Command Usage
◆
You can configure up to 16 policers (i.e., class maps) for ingress ports.
◆
Policing is based on a token bucket, where bucket depth (i.e., the maximum
burst before the bucket overflows) is by specified the
committed-burst
field, and
the average rate tokens are added to the bucket is by specified by the
Содержание ECS4120-28F
Страница 36: ...Contents 36...
Страница 38: ...Figures 38...
Страница 46: ...Section I Getting Started 46...
Страница 70: ...Chapter 1 Initial Switch Configuration Setting the System Clock 70...
Страница 86: ...Chapter 2 Using the Command Line Interface CLI Command Groups 86...
Страница 202: ...Chapter 5 SNMP Commands Additional Trap Commands 202...
Страница 210: ...Chapter 6 Remote Monitoring Commands 210...
Страница 216: ...Chapter 7 Flow Sampling Commands 216...
Страница 278: ...Chapter 8 Authentication Commands PPPoE Intermediate Agent 278...
Страница 360: ...Chapter 9 General Security Measures Port based Traffic Segmentation 360...
Страница 384: ...Chapter 10 Access Control Lists ACL Information 384...
Страница 424: ...Chapter 11 Interface Commands Power Savings 424...
Страница 446: ...Chapter 13 Power over Ethernet Commands 446...
Страница 456: ...Chapter 14 Port Mirroring Commands RSPAN Mirroring Commands 456...
Страница 488: ...Chapter 17 UniDirectional Link Detection Commands 488...
Страница 494: ...Chapter 18 Address Table Commands 494...
Страница 554: ...Chapter 20 ERPS Commands 554...
Страница 620: ...Chapter 22 Class of Service Commands Priority Commands Layer 3 and 4 620...
Страница 638: ...Chapter 23 Quality of Service Commands 638...
Страница 772: ...Chapter 25 LLDP Commands 772...
Страница 814: ...Chapter 26 CFM Commands Delay Measure Operations 814...
Страница 826: ...Chapter 27 OAM Commands 826 1 1 00 12 CF 6A 07 F6 000084 Enabled Disabled Enabled Disabled Console...
Страница 836: ...Chapter 28 Domain Name Service Commands 836...
Страница 848: ...Chapter 29 DHCP Commands DHCP Relay Option 82 848...
Страница 902: ...Section III Appendices 902...
Страница 916: ...Glossary 916...
Страница 926: ...CLI Commands 926...
Страница 937: ......
Страница 938: ...E092017 CS R02...