Policy for inbound and outbound ports, Configuring a vlan-based traffic policing policy – Brocade Multi-Service IronWare QoS and Traffic Management Configuration Guide (Supporting R05.6.00) User Manual
Page 35

Multi-Service IronWare QoS and Traffic Management Configuration Guide
21
53-1003037-02
Traffic policing on the Brocade device
2
Configuring a port and priority-based traffic policing policy for inbound and outbound ports
To configure port based traffic policing policy directly, enter a command such as the following.
Brocade(config)# interface ethernet 1/1
Brocade(config-if-1/1)# rate-limit input priority q1 500000000 33553920
The commands configure a traffic policing policy for inbound traffic on port 1/1. The policy limits
the average rate of all inbound traffic to 500000000 bits per second (bps) with a maximum burst
size of 33553920 bits per second (bps) for packets with their priority queue set to 1.
Syntax: [no] rate-limit [input | output] priority queue-num [average-rate maximum-burst |
policy-map map-name]
The input parameter applies the policy to traffic on inbound ports.
The output parameter applies the policy to traffic on outbound ports.
Only one port-based traffic policing policy can be applied to a port.
The priority parameter specifies the internal queue in the queue-num variable which is rate limited
by this command.
The priority queues for rate limiting internal queue mapping are shown in the following example.
Brocade(config-if-e10000-1/1)#rate-limit input priority
q0 priority queue 0 (internal priority 0 and 1)
q1 priority queue 1 (internal priority 2 and 3)
q2 priority queue 2 (internal priority 4 and 5)
q3 priority queue 3 (internal priority 6 and 7)
Brocade(config-if-e10000-1/1)#rate-limit input priority
The average-rate parameter specifies the maximum rate allowed on a port during a one-second
interval. The software automatically adjusts the number you enter to the nearest multiple of 8,144
bits per second (bps). Refer to the section
on page 16 for more details. This
command is only used when configuring rate limiting directly to a port as described in
traffic policing parameters directly to a port”
The maximum-burst parameter specifies the extra bits above the average-rate that traffic can have.
Refer to the section
on page 17 for more details. This command is only used
when configuring rate limiting directly to a port as described in
“Applying traffic policing parameters
The policy-map parameter specifies the policy map named in the policy-map variable to be used to
provide parameters for rate limiting the port. This command is only used when configuring rate
limiting to a port using a policy map as described in
“Applying traffic policing parameters using a
Configuring a VLAN-based traffic policing policy
To configure a port-and-VLAN based traffic policing policy, enter commands such as the following.
Brocade(config)# interface ethernet 1/1
Brocade(config-if-1/1)# rate-limit input vlan 10 500000000 33553920
Brocade(config)# interface ethernet 1/2
Brocade(config-if-1/2)# rate-limit output vlan 20 policy-map map1