What is QoS (Quality of Service)?

Mechanisms that, when a network is congested, set priorities and bandwidth for each type of traffic to limit delay and loss for voice and important business traffic. Packets are labeled with their type using DSCP and similar fields (marking), and equipment along the path varies queue assignment, sending order and dropping order accordingly. QoS does not add bandwidth.

Japanese name: QoS

QoS (Quality of Service) appears in 1 practice question across 1 topic, including Network Design and Operations.

Field: Network Design and Operations

Classification and marking

QoS first sorts packets into types (classes) by address, port number, application and so on. The result is written as a value into the DSCP field of the IP header (6 bits) or the priority in the VLAN tag (PCP, 3 bits) (marking). Equipment along the path can then decide treatment just by looking at this value, without inspecting the packet again in detail. Voice is commonly given EF (value 46), which is forwarded with priority, and other business traffic is given AF classes and the like.

Queuing and scheduling

When an outgoing link is congested, packets that cannot be sent wait in queues. Strict priority queuing, which always sends from the highest-priority queue first, gives the lowest delay, but when there is a lot of priority traffic the other queues cannot send at all. Weighted round robin and weighted fair queuing (WFQ) share bandwidth in proportion to weights, so every class is assured a certain amount of bandwidth. A common combination gives strict priority only to voice, with a cap on its bandwidth, and divides the rest by weights.

Shaping, policing and congestion avoidance

There are two ways to hold the sending rate to a contracted bandwidth or similar limit: shaping, which queues the excess and sends it out gradually, and policing, which drops or re-marks the excess. In addition, dropping everything at once when a queue overflows makes many TCP flows slow down at the same time, so methods such as RED (random early detection) drop some packets at random once a queue starts to grow, signaling congestion to TCP early. QoS works only when the same policy is applied consistently across the equipment along the path.

Try it: questions about QoS (Quality of Service)

Which statement correctly describes DSCP in the IP header, used in QoS control?

  1. AIt is a 6-bit value indicating how a packet should be treated (its class), and equipment along the path uses it to decide treatment such as putting voice packets in a queue that is sent with priority
  2. BIt is a value giving the maximum number of routers a packet may pass through, decreased by 1 at each router
  3. CIt is a value for checking the header for errors, which each router calculates and compares when it receives the packet
Show answer and explanation

Answer: A. It is a 6-bit value indicating how a packet should be treated (its class), and equipment along the path uses it to decide treatment such as putting voice packets in a queue that is sent with priority

DSCP uses the upper 6 bits of the ToS field in the IPv4 header (the Traffic Class field in IPv6) to indicate which class of traffic a packet belongs to. Equipment at the edge of the network sets the value according to the type of traffic (marking), and routers and switches along the path vary their choice of queue and the order in which packets are dropped according to the value. For example, voice, which is sensitive to delay and its variation, is often given EF (value 46), which is forwarded with priority. QoS does not add bandwidth; it decides which traffic to favor, and which to delay or drop, when the network is congested.

FAQ

Does configuring QoS make the line faster?

No. QoS decides which traffic gets to use limited bandwidth first when the network is congested. If bandwidth is always short, the line needs to be upgraded. When there is no congestion, QoS settings make almost no difference to speed.

Does QoS work for traffic that crosses the internet?

It works within your own organization's equipment, but ISP equipment on the internet does not necessarily honor the DSCP values you set. To assure quality between sites, it is common to use a private network service whose quality can be guaranteed by contract.

QoS (Quality of Service) in the explanations

Questions that mention QoS (Quality of Service) (1)

  1. Which statement correctly describes DSCP in the IP header, used in QoS control?

Books on Network Design and Operations Ad

As an Amazon Associate I earn from qualifying purchases.

Related terms

IP (Internet Protocol) IPv4 IPv6 Packet Router Queue ACL (access control list) Administrative distance BGP (Border Gateway Protocol) Broadcast domain

Back to the glossary