Native Ethernet does not support any fields that can be marked for QoS purposes. However, when trunked with the 802.1Q protocol, three bits of the 802.1Q tag are made available for setting User Priority, referred to as 802.1p. These bits are more commonly referred to as CoS bits. Three bits allow for eight binary combinations for marking, represented by values 0 to 7.
Figure 1 illustrates the Ethernet frame with an 802.1Q tag, which includes the following fields:
- PRI: The Priority field, which is a 3-bit field that refers to the IEEE 802.1p priority. It indicates the frame priority level from 0 (lowest) to 7 (highest), which prioritizes different classes of traffic (such as voice, video and data).
- VLAN ID: The VLAN Identifier, which is a 12-bit field specifying the VLAN to which the frame belongs.
You can set CoS fields with Class-Based Marking by using the set cos command. To use Class-Based Marking to set the 802.1Q/p Class of Service field to 2, enter the following:
Router(config-cmap)# policy-map L2-MARKER Router(config-pmap)# class MARK-COS-2 Router(config-pmap-c)# set cos 2
1 comment:
A Must read Blog remote server monitoring
Post a Comment