.. _example_traffic_policy_preclassification_vlanpreclassification: ###################### Vlan Preclassification ###################### The following scenario shows how to pre-classify packets using traffic policies. This reduces packet processing time and improves system performance. .. image:: vlanpreclassification.svg :width: 800 *********************************** Test VLAN Pre-Classify Out (802.1Q) *********************************** Description =========== A ``traffic policy`` is configured in DUT0 (interface ``eth0``). This policy enables vlan pre-classification in the link-out hook; i.e., all packets leaving this interface are processed. Traffic policy is responsible of setting the class Id for traffic control in egress. Traffic selector filter based on ethernet protocol (802.1Q) and VLAN Id (100). Scenario ======== .. include:: vlanpreclassification/testvlanpre-classifyout(802.1q) .. raw:: html
********************************* Test VLAN Pre-Classify Out (QinQ) ********************************* Description =========== A ``traffic policy`` is configured in DUT0 (interface ``eth0``). This policy enables vlan pre-classification in the link-out hook; i.e., all packets leaving this interface are processed. Traffic policy is responsible of setting the class Id for traffic control in egress. Traffic selector filter based on QinQ (802.1ad over 802.1Q), VLAN Id (100) and C-VLAN Id (200) Scenario ======== .. include:: vlanpreclassification/testvlanpre-classifyout(qinq) .. raw:: html
************************************************** Test VLAN Pre-Classify Out (QinQ) with PCP matches ************************************************** Description =========== A ``traffic policy`` is configured in DUT0 (interface ``eth0``). This policy enables vlan pre-classification in the link-out hook; i.e., all packets leaving this interface are processed. Traffic policy is responsible of setting the class Id for traffic control in egress. Traffic selector filter based on QinQ (802.1ad over 802.1Q), VLAN Id (100), VLAN PCP (3), C-VLAN Id (200) and C-VLAN PCP (5). Scenario ======== .. include:: vlanpreclassification/testvlanpre-classifyout(qinq)withpcpmatches .. raw:: html