CoS (Class of Service)

Class of service is a parameter used in data and voice protocols to differentiate the types of payloads contained in the packet being transmitted. The objective of such differentiation is generally associated with assigning priorities to the data payload or access levels to the telephone call.

Data Services

As related to network technology, CoS is a 3-bit field that is present in an Ethernet frame header when 802.1Q VLAN tagging is present. The field specifies a priority value between 0 and 7, more commonly known as CS0 through CS7, that can be used by quality of service (QoS) disciplines to differentiate and shape/police network traffic.

CoS operates only on 802.1Q VLAN Ethernet at the data link layer (layer 2), while other QoS mechanisms (such as DiffServ, also known as DSCP) operate at the IP network layer (layer 3) or use a local QoS tagging system that does not modify the actual packet, such as Cisco’s “QoS-Group”.

Network devices (i.e. routers, switches, etc.) can be configured to use existing CoS values on incoming packets from other devices (trust mode), or can rewrite the CoS value to something completely different. Most Internet Service Providers do not trust incoming QoS markings from their customers, so CoS is generally limited to use within an organization’s intranet.

Service providers offering private-line WAN services will typically offer services which can utilize CoS/QoS.

Related Articles