Configuring QoS Traffic Policing and Shaping
OmniSwitch AOS Release 8 Network Configuration Guide December 2017 page 26-27
• Although bandwidth policies are applied to ingress ports, it is possible to specify a destination port or 
destination port group in a bandwidth policy as well. Doing so, effects egress rate limiting/egress 
policing on the ingress port itself. 
The following subsections provide examples of ingress maximum bandwidth policies using both source 
and destination port groups. 
Example 1: Source Port Group
In the following example, a port group (pgroup) is created with two ports and attached to a policy 
condition (Ports). A policy action with maximum bandwidth is created (MaxBw). The policy condition 
and policy action are combined in a policy rule called PortRule.
-> policy port group pgroup 1/1-2
-> policy condition Ports source port group pgroup
-> policy action MaxBw maximum bandwidth 10k
-> policy rule PortRule condition Ports action MaxBw
In this example, if both ports 1 and 2 are active ports, the 10000 bps maximum bandwidth is shared by 
both ports. In other words, maximum bandwidth policies for port groups define a maximum bandwidth 
value that is a total bandwidth amount for all ports, not an amount for each port. 
Example 2: Destination Port Group
In the following example, a port group (pgroup2) is created with several ports and attached to a policy 
condition (Ports2). A policy action with maximum bandwidth is created (MaxBw). The policy condition 
and policy action are combined in a policy rule called PortRule2.
-> policy port group pgroup2 1/1 1/25 2/1
-> policy condition Ports2 destination port group pgroup2
-> policy action MaxBw maximum bandwidth 10k
-> policy rule PortRule2 condition Ports2 action MaxBw
In this example, the specified ports for pgroup2 span across two slots. As a result, the maximum 
bandwidth limit specified by the policy action is increased to 20K for all of the ports. The bandwidth limit 
is increased by multiplying the number of slots by the specified bandwidth value.
Configuring Port Bandwidth Shaping
QoS supports configuring maximum bandwidth on ingress and egress ports through the qos port 
maximum egress-bandwidth and qos port maximum ingress-bandwidth CLI commands. For more 
information about these commands, see the OmniSwitch AOS Release 8 CLI Reference Guide.
Note the following when configuring the ingress or egress bandwidth limit for a port:
• Maximum bandwidth limiting is done using a granularity of 64K bps. Any value specified that is not a 
multiple of 64K is rounded up to the next highest multiple of 64K.
• The maximum bandwidth value cannot exceed the maximum bandwidth of the interface type 
associated with the port.
• Modifying the maximum bandwidth is most useful for low-bandwidth links.
• The configured port-based egress bandwidth limit takes precedence over an egress queue limit 
configured on the same port.