Data Preparation
To create a traffic policy based on complex traffic classification, you need the following data.
No.
Data
1
Name of the traffic classifier and matching rules of the traffic classifier
2
Name of the traffic behavior and related parameters
3
Name of the traffic policy
4
Interface that the traffic policy is applied to and ID of the VLAN
1.4.2 Configuring Complex Traffic Classification
The S3700 can classify traffic according to the ACL, and the Layer 2 information and Layer 3
information in packets.
Creating a Traffic Classifier Based on Layer 2 Information
After traffic classification based on Layer 2 information is configured, the S3700 classifies
packets based on the Layer 2 information including the 802.1p priority, VLAN ID, source/
destination MAC address, incoming/outgoing interface, and Layer 2 protocol type.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
traffic classifier
classifier-name
[
operator
{
and
|
or
} ]
A traffic classifier based on Layer 2 information is created and the traffic classifier view is
displayed.
The
and
parameter indicates that the relationship between rules in a traffic classifier is "AND".
That is, the packets match a traffic classifier only when the packets match all non-ACL rules
and an ACL rule in the traffic classifier. The
or
parameter indicates that the relationship between
rules in a traffic classifier is "OR". That is, the packets match a traffic classifier when the packets
match a rule in the traffic classifier.
By default, the relationship between rules in a traffic classifier is AND.
Step 3
Run the following commands as required.
l
To define matching rules based on the 802.1p priority in the inner VLAN tag of QinQ packets,
run:
if-match cvlan-8021p
{
8021p-value
} &<1-8>
l
To define matching rules based on the 802.1p priority of packets in a VLAN, run:
if-match 8021p
{
8021p-value
} &<1-8>
S3700HI Ethernet Switches
Configuration Guide - QoS
1 Class-based QoS Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
11