Classification
Last updated
Last updated
Classification organizes network traffic (packets) into traffic classes (categories).
Classification is fundamental to QoS. To give priority to certain types of traffic, you have to identify which types of traffic to give priority to.
There are many methods of classifying traffic. Some examples:
An ACL. Traffic which is permitted by the ACL will be given certain treatment, other traffic will not.
NBAR (Network Based Application Recognition) performs a deep packet inspection, looking beyond the Layer 3 and Layer 4 information up to Layer 7 to identify the specific kind of traffic.
In the Layer 2 and Layer 3 headers there are specific fields used for this purpose.
The PCP (Priority Code Point) field of the 802.1Q tag (in the Ethernet header) can be used to identify high/low priority traffic.
Only when there is a dot1q tag!
The DSCP (Differentiated Services Code Point) field of the IP header can also be used to identify high/low priority traffic.
PCP is also known as CoS (Class of Service). Its use is defined by IEEE 802.1.p
3 bits = 8 possible values.
PCP value | Traffic types |
---|---|
0 | Best effort (default) |
1 | Background |
2 | Excellent effort |
3 | Critical applications |
4 | Video |
5 | Voice |
6 | Internetwork control |
7 | Network control |
´Best effort' delivery means there is no guarantee that data is delivered or that it meets any QoS standard. This is regular traffic, not high-priority.
IP phones mark call signalling traffic (used to establish calls) as PCP3. They mark the actual voice traffic as PCP5.
Because PCP is found in the dot1q header, it can only be used over the following connections:
trunk links.
access links with a voice VLAN.
In the diagram below, traffic between R1 and R2, or between R2 and external destinations will not have a dot1q tag. So, traffic over those links PCP cannot be marked with a PCP value.