Classification and Marking
Classification and Marking
NBAR)
With QoS, you intend to provide different treatments to different
classes of network traffic. Therefore, it is necessary to define traffic
classes by identifying and grouping network traffic. Classification does
just that; it is the process or mechanism that identifies traffic and
categorizes it into classes. This categorization is done using traffic
descriptors. Common traffic descriptors are any of the following:
such as the IP phone, and the access layer switch would be the
preferable locations for traffic classification and marking.
Marking is the process of tagging or coloring traffic based on its
category. Traffic is marked after you classify it. What is marked
depends on whether you want to mark the Layer 2 frame or cell or the
Layer 3 packet. Commonly used Layer 2 markers are CoS (on ISL or
802.1Q header), EXP (on MPLS header, which is in between layers 2
and 3), DE (on Frame Relay header), and CLP (on ATM cell header).
Commonly used Layer 3 markers are IP precedence or DSCP (on IP
header).
Layer 2 QoS: CoS on 802.1Q/P Ethernet Frame
The IEEE defined the 802.1Q frame for the purpose of
implementing trunks between LAN devices. The 4-byte 802.1Q header
field that is inserted after the source MAC address on the Ethernet
header has a VLAN ID field for trunking purposes. A three-bit user
priority field (PRI) is available also and is called CoS (802.1p). CoS is
used for QoS purposes; it can have one of eight possible values, as
shown in Table 3-2.
Table 3-2 CoS Bits and Their Corresponding Decimal Values
and Definitions
Figure 3-1 shows the 4-byte 802.1Q field that is inserted into the
Ethernet header after the source MAC address. In a network with IP
Telephony deployed, workstations connect to the IP phone Ethernet
jack (marked PC), and the IP phone connects to the access layer
switch (marked Switch).
The IP phone sends 802.1Q/P frames to the workgroup switch.
The frames leaving the IP phone toward the workgroup (access)
switch have the voice VLAN number in the VLAN ID field, and their
priority (CoS) field is usually set to 5 (decimal), which is equal to 101
binary, interpreted as critical or voice bearer.
Figure 3-1 802.1Q/P Field