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 disciplines to differentiate and shape/police network traffic.
CoS operates only on 802.1Q VLAN Ethernet at the data link layer, while other QoS mechanisms operate at the IP network layer or use a local QoS tagging system that does not modify the actual packet, such as Cisco's "QoS-Group".
Network devices can be configured to use existing CoS values on incoming packets from other devices, 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.

Voice services

As related to legacy telephone systems, COS is often used to define the permissions an extension will have on a PBX or Centrex. The Class of Service acronym is normally written as COS vs. CoS as is often used in data networking parlance. Certain groups of users may have a need for extended voicemail message retention while another group may need the ability to forward calls to a cell phone, and still others have no need to make calls outside the office. Permissions for a group of extensions can be changed by modifying a COS variable applied to the entire group.
COS is also used on trunks to define if they are full-duplex, incoming only, or outgoing only.

Classification of service

The term can be used generically to refer to the classification of network traffic within network equipment based on packet inspection. Cisco implements such classification through either access-lists or Network-Based Application Recognition. NBAR works with the existing QoS system.