Introduction to MQC
Modular QoS Command-Line Interface (MQC) allows the device to classify traffic of a certain type so that the device can provide the same service for packets of the same type and differentiated services for packets of different types.
The S2700SI does not support traffic policies.
Network deployment becomes complex to implement differentiated services for different types of traffic (different services or users) during network planning. MQC allows the device to implement fine-grained processing and provide differentiated services.
MQC Entities
MQC involves three entities: traffic classifier, traffic behavior, and traffic policy.
Traffic classifier
A traffic classifier defines a group of matching rules to classify packets. Table 1-1 lists traffic classification rules.Table 1-1 Traffic classification rulesLayer Traffic Classification Rule Layer 2 - Destination MAC address
- Source MAC address
- VLAN ID in the outer tag of a QinQ packet
- 802.1p priority in the outer tag of a QinQ packet
- VLAN ID in the inner tag of a QinQ packet
- 802.1p priority in the inner tag of a QinQ packet
- Protocol field encapsulated based on Layer 2 information
- Matching fields in ACL 4000 to ACL 4999
Layer 3 - DSCP priority in IP packets
- IP precedence in IP packets
- IP protocol type (IPv4 or IPv6)
- TCP-flag in TCP packets
- Matching fields in ACL 2000 to ACL 3999
- Matching fields in ACL6 2000 to ACL6 3999
Others - All packets
- Inbound interface
- Outbound interface
- Matching fields in ACL 5000 to ACL 5999 (user-defined ACLs)
The relationship between rules in a traffic classifier can be AND or OR. By default, the relationship between rules in a traffic classifier is AND.AND: If a traffic classifier contains ACL rules, packets match the traffic classifier only when the packets match one ACL rule and all the non-ACL rules. If a traffic classifier does not contain ACL rules, packets match the traffic classifier only when the packets match all the non-ACL rules.
OR: Packets match a traffic classifier as long as they match one of rules.
Traffic behavior
A traffic behavior defines an action for packets of a specified type.
Traffic policy
A traffic policy is a QoS policy configured by binding traffic classifiers to traffic behaviors. As shown in Figure 1-1, a traffic policy can be bound to multiple pairs of traffic classifiers and traffic behaviors.
MQC Configuration Process
Configure a traffic classifier. The traffic classifier defines a group of matching rules to classify traffic and is the basis for providing differentiated services.
Configure a traffic behavior. The traffic behavior defines a flow control or resource allocation action for packets matching rules.
Configure a traffic policy. A traffic policy is configured by binding traffic classifiers to traffic behaviors.
Apply the traffic policy to the system (system, interface, or VLAN)