Configuring CoS Traffic Classification for Ingress Queuing on Oversubscribed Ports on EX8200 Line Cards (CLI Procedure)
EX8200 switches provide certain line cards that include oversubscribed ports. These ports are logically grouped into a port group and each port group share a certain fixed bandwidth. Because oversubscribed ports handle traffic differently than ports that provide continuous line-rate bandwidth, configuring CoS queues is different for oversubscribed ports than for line-rate ports.
Packets arriving on an oversubscribed port in a line card are directed to a high-priority, low priority, or line-rate queue. These queues are used for scheduling traffic from the port into the Packet Forwarding Engine. The fabric priority associated with the packet’s forwarding class determines which queue the packet is sent to. The forwarding class of the packet in turn is determined by the behavior aggregate (BA) classifier assigned to the port. By default, the fabric priority of all forwarding classes is low. Thus all packets, with the exception of critical network packets and line-rate packets, are sent to the low-priority ingress queue by default. The critical network packets and line-rate packets do not need a BA classifier as they are always sent on the high-priority and line-rate queues, respectively.
This procedure describes how you can direct traffic into the high-priority ingress queue and thus avoid congestion at the port group.
To direct traffic to the high-priority ingress queue for a port group:
- Create the BA classifier for the forwarding class:
[edit class-of-service] user@switch# set classifiers classifier-type classifier-name forwarding-class class-name loss-priority level code-points code-point
- Assign a queue number and fabric priority to the forwarding
[edit class-of-service] user@switch# set forwarding-classes class class-name queue-num number priority level
- Assign the BA classifier to the physical interface:
[edit class-of-service] user@switch# set interfaces interface-name unit 0 classifiers classifier-type classifier-name
For example, to direct voice traffic to the high-priority ingress queue for interface xe-1/0/2:
[edit class-of-service] user@switch# set classifiers dscp dscp1 forwarding-class cos-voice loss-priority low code-points ef [edit class-of-service] user@switch# set forwarding-classes class cos-voice queue-num 5 priority high [edit class-of-service] user@switch# set interfaces xe-1/0/2 unit 0 classifiers dscp dscp1
You must use a BA classifier to classify traffic for ingress queuing. Multifield (MF) classification and port classification (that is, assigning a forwarding class to the interface) are not supported for classifying traffic for ingress queuing. The BA classifier must be assigned to a physical interface, not a Layer 3 tagged interface or a routed VLAN interface (RVI).