Configuring an SAC Traffic Policy
Context
After the SA function is configured, you can configure traffic policies to take different actions for service flows of different applications, implementing differentiated services.
Procedure
- Configure a traffic classifier.
- Configure a traffic behavior.
- Configure a traffic policy.
- Apply the traffic policy.
If the resource allocation mode is set to sac for a switch, a traffic policy containing a matching rule for classifying traffic based on the application name can be applied only to the inbound direction globally or on a physical or a VLANIF interface. That is, the inbound parameter must be specified.
- Applying a traffic policy to an interface
- Run interface interface-type interface-number[.subinterface-number ]
The interface view or sub-interface view is displayed.
Run traffic-policy policy-name inbound
The traffic policy is applied to the interface or sub-interface.
- Run interface interface-type interface-number[.subinterface-number ]
- Applying a traffic policy to a VLANIF interface
Run interface vlanif vlan-id
The VLANIF interface view is displayed.
Run traffic-policy policy-name inbound
The traffic policy is applied to the VLANIF interface.
Only one traffic policy can be applied to the inbound direction of a VLANIF interface. A single traffic policy can be applied to the inbound direction on one or more VLANIF interfaces.
A traffic policy cannot be applied to a VLANIF interface corresponding to the super-VLAN or MUX VLAN.
A traffic policy applied to a VLANIF interface takes effect only for unicast packets on the VLANIF interface.
A traffic policy cannot be applied to a VLANIF interface when the bound traffic behaviors define the following actions:- remark vlan-id
- remark cvlan-id
- remark 8021p
- remark flow-id
- mac-address learning disable
- Applying the traffic policy globally (using the traffic-policy policy-name global inbound [ slot slot-id ] command)
The inbound direction can be configured with only one traffic policy globally or in a slot. A traffic policy cannot be applied to the inbound direction in both the system and slot. For example, if a traffic policy is applied to the inbound direction globally, it cannot be applied to the inbound direction in a slot.
- In a stack, a traffic policy applied to the system takes effect on all the interfaces and VLANs of all the member switches in the stack. The system then performs QoS management for all the incoming packets that match traffic classification rules on all the member switches. A traffic policy applied to a specified slot takes effect on all the interfaces and VLANs of the member switch with the specified stack ID. The system then performs QoS management for all the incoming packets that match traffic classification rules on this member switch.
- On a standalone switch, a traffic policy applied to the system takes effect on all the interfaces and VLANs of the local switch. The system then performs QoS management for all the incoming packets that match traffic classification rules on the local switch. Traffic policies applied to the slot and system have the same functions.
- Applying a traffic policy to an interface