DXS-3600 Series 10GbE Layer 2/3 Switch CLI Reference Guide
474
48-10 police rate
This command is used to define a policer for classified traffic. A policer defines a maximum permissible rate of
transmission, a maximum burst size for transmissions, and an action to take if either maximum is exceeded. Use the no
police command to remove an existing policer .
police rate
bps burst-byte
[exceed-action {drop | dscp
dscp-value
}]
no police
Parameters
Command Mode
Policy-map Class Configuration Mode.
Command Default Level
Level: 15
Usage Guideline
Use the
police tr-tcm cir
command to drop a packet or mark a packet with different
quality of service (QoS) values based on conformance to the service-level
agreement.
The user may specify multiple policing actions for a color packet, but can not
specified contradictory actions at one time. That is, the user can specify action set-
dscp-transmit and set-1p-transmit for a color packet at one time, but can not specify
the action transmit and drop for it.
Two-rate traffic policing uses two token buckets (Tbc and Tbp) for policing traffic at
two independent rates. The algorithm of color classify for this command is described
following:
• The two token buckets are initially (at time 0) full, that is, the token count Tbp
(0) = PBS and the token count Tbc (0) = CBS. Thereafter, the token count Tbp
is incremented by one pir times per second up to PBS and the token count
Tbc is incremented by one cir times per second up to CBS.
• When a packet of size B bytes arrives at time t, the following happens:
a. If Tbp(t)-B < 0, the packet is red, else.
b. If Tbc(t)-B < 0, the packet is yellow and Tbp is decremented by B, else.
c. The packet is green and both Tbp and Tbc are decremented by B.
The
pir
must be equal to or greater than the cir.
The PBS and the CBS are measured in Kbytes and both of them must be configured
to be greater than 0. It is recommended that they be configured to be equal to or
greater than the size of the largest possible IP packet in the stream.
In the policy-map class configuration mode, only one policer can be bind at one time.
Example
This example shows how to define a traffic class (using the class-map command)
and associate the policy with the match criteria for the traffic class in a policy map
(using the policy-map command). In the following example, two-rate traffic policing is
configured on a class to limit traffic to an average committed rate of 2Mbps and a
peak rate of 5Mbps.
DXS-3600-32S#configure terminal
DXS-3600-32S(config)#class-map class1
DXS-3600-32S(config-cmap)#match access-group 1
DXS-3600-32S(config-cmap)#exit
DXS-3600-32S(config)#policy-map policy1
DXS-3600-32S(config-pmap)#class class1
DXS-3600-32S(config-pmap-c)#police tr-tcm cir 2000 bc 4096 pir 5000 be 2048 conform-action
transmit exceed-action set-dscp-transmit 28 violate-action drop
DXS-3600-32S(config-pmap-c)#
bps
Specifies the average rate in Kbps.
burst-byte
Specifies the burst size in Kbyte.
Содержание DXS-3600-16S
Страница 1: ...CLI Reference Guide Product Model DXS 3600 Series Layer 2 3 Managed 10GbE Switch Release 1 10 ...
Страница 232: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 224 ...
Страница 301: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 293 ...
Страница 349: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 341 ...
Страница 494: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 486 ...
Страница 564: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 556 ...
Страница 649: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 641 ...