1. What is Quality of Service (QoS)?
Quality of Service (QoS) is the collection of network techniques used to manage traffic when multiple applications compete for limited link capacity. It helps network devices decide which packets should be placed into which queues, how those queues should be served, and whether traffic should be delayed, limited or dropped when it exceeds a policy.
A network link has finite capacity. A 100 Mbps connection cannot transmit 150 Mbps of traffic at the same instant. When offered load exceeds available capacity, packets wait in buffers. If buffers fill, packets are dropped. For a large file transfer, a little extra waiting may be acceptable. For a voice call, remote desktop session or interactive game, delay variation and packet loss can be immediately noticeable.
QoS does not create bandwidth or make every packet faster. It defines how scarce resources are shared. A well-designed policy can protect latency-sensitive traffic during congestion, while a poorly designed policy can starve ordinary applications, create unnecessary complexity or simply move congestion to another link.
The IETF Differentiated Services architecture describes scalable traffic differentiation using packet classification, marking, traffic conditioning and per-hop forwarding behaviour. See RFC 2475 and the IP Differentiated Services field definition in RFC 2474.
2. Why QoS matters: bandwidth is not the whole experience
People often judge a connection by its download speed. That is useful, but interactive applications depend on more than raw throughput. Four measurements are particularly important: bandwidth, latency, jitter and packet loss.
Bandwidth and throughput
Bandwidth describes the capacity of a link, while throughput is the rate of successfully delivered data observed by an application or measurement. A high-capacity link can still feel poor if traffic is delayed in long queues or repeatedly retransmitted.
Latency
Latency is the time taken for data to travel between endpoints. A voice conversation becomes awkward when one speaker hears the other too late. QoS cannot remove propagation delay caused by distance, but it can reduce avoidable queuing delay at managed bottlenecks.
Jitter
Jitter describes variation in packet delay. Real-time receivers use buffers to smooth packet arrival, but a larger buffer can add conversational delay. Consistent delivery is therefore important for voice, video meetings and interactive applications.
Packet loss
Packet loss occurs when packets fail to reach their destination. Congestion is one cause, but wireless interference, faulty links, overloaded devices and routing events can also contribute. QoS queue management can influence congestion-related drops; it cannot repair a damaged cable or eliminate radio interference.
For a household, QoS may become relevant when a large download or cloud backup runs while someone is on a video call. In an office, many users may share an uplink for voice, collaboration, business applications and backups. In both cases, the objective is to control the impact of contention rather than pretend that the bottleneck does not exist.
3. The main building blocks of QoS
QoS is not one switch or one DSCP number. A complete design combines several functions, often at different points in a network.
- Classification: identifies traffic using trusted attributes such as ingress interface, VLAN, application, address, protocol or existing marking.
- Marking: writes a value such as DSCP into the IP header or PCP into an Ethernet VLAN tag.
- Queuing and scheduling: decide how packets wait and which queue receives transmission opportunities.
- Shaping: buffers traffic to make its sending rate conform to a configured profile.
- Policing: measures traffic and enforces a rate or burst limit, often by dropping or remarking excess packets.
- Congestion avoidance and queue management: manage buffers and drops to reduce persistent queue build-up and signal congestion.
- Admission control: limits how much traffic is allowed to claim a resource-sensitive service.
These components must work together. Marking packets as high priority has little value if the next router ignores the mark. A priority queue can become harmful if untrusted users can place unlimited traffic into it. A shaper at the wrong point may add delay without controlling the actual bottleneck.
4. DSCP explained: the IP packet priority marking
DSCP stands for Differentiated Services Code Point. It occupies six bits of the eight-bit Differentiated Services field in IPv4 and IPv6 headers. The remaining two bits are used for Explicit Congestion Notification (ECN) in modern IP operation. DSCP is therefore a 0–63 codepoint, not a guarantee that the packet will receive a particular end-to-end speed. ECN has its own codepoints and state transitions; it is not a second priority field. A device that rewrites the Differentiated Services field must preserve or deliberately process both DSCP and ECN according to the applicable rules.
RFC 2474 defines how the six-bit codepoint selects a per-hop behaviour (PHB) at a network node. The node's configuration determines how that PHB maps to local queues and scheduling mechanisms. Two networks can treat a DSCP value differently if their policies differ. The marking expresses a requested treatment within a domain; it does not force every internet router to honour it.
Many enterprise designs classify traffic at the network edge, validate or rewrite markings according to policy, and then use the DSCP value within the managed domain. At boundaries between providers or organisations, markings may be trusted, mapped, changed or reset according to service agreements and security policy.
DSCP should not be confused with an application label that proves what generated the packet. A client can set header bits itself. Networks should decide which devices and applications are trusted to request special treatment, and should police traffic assigned to sensitive classes. A DSCP value has meaning only within the forwarding policy of the domain that processes it. At administrative boundaries, operators may map or rewrite markings; an end-to-end service expectation requires an agreed service definition, not just a codepoint.
5. Common DiffServ classes: Best Effort, EF and AF
Differentiated Services defines forwarding behaviours rather than a universal application-to-priority rulebook. Some commonly referenced behaviours are Default Forwarding (DF), Expedited Forwarding (EF) and Assured Forwarding (AF).
Default Forwarding (DF / CS0)
Best-effort traffic uses the default forwarding treatment. It is suitable for ordinary elastic traffic that can adapt to available capacity, such as general web browsing, downloads and many background transfers. Best effort does not mean that traffic is discarded; it means that it does not receive a special differentiated treatment.
Expedited Forwarding (EF)
EF is specified in RFC 3246. It is designed for a low-loss, low-delay forwarding behaviour, often used for carefully controlled real-time traffic such as voice. EF only works safely when the traffic rate is bounded and network resources are engineered. If an operator places excessive traffic into a strict priority queue, other classes can suffer starvation and the EF class itself can become congested.
Assured Forwarding (AF)
AF is defined in RFC 2597. It defines multiple forwarding classes and drop precedence levels within each class. In simplified terms, packets within an AF class can receive a forwarding service, while packets with a higher drop precedence are more likely to be discarded during congestion. AF is not an unconditional bandwidth guarantee and does not mean that every marked packet will arrive.
RFC 4594 provides configuration guidelines for DiffServ service classes. It is informational guidance, not a universal requirement that every network use one fixed mapping. Its recommendations have also been updated by later RFCs, including RFC 5865 and RFC 8622. Operators should consult the current standards and their equipment documentation rather than copy an old DSCP chart without context.
6. Classification and marking: deciding what deserves priority
Classification is the decision about which traffic belongs to a class. A simple home router may classify by device or application category. An enterprise switch or router may use access control lists, VLAN, ingress port, IP addresses, protocol, transport ports, application recognition or an existing DSCP value.
Classification should be performed at a point where the network has enough context to make a trustworthy decision. For example, a managed access switch may trust a phone's voice marking only when the phone is connected through an authorised voice port or authenticated device profile. It should not blindly trust any laptop that marks all traffic as high priority.
Marking can occur at the network edge. The edge device assigns a DSCP value based on policy, and downstream devices use that value to select a forwarding treatment. A network may also map DSCP to an 802.1Q priority code point (PCP) when traffic crosses a VLAN-tagged Ethernet segment.
Markings can be rewritten at trust boundaries. An enterprise may accept a known marking from managed voice endpoints, but reset markings from guest Wi-Fi clients. A provider may map customer markings into a limited set of service classes. The policy should be documented so that packet treatment is predictable across the managed path.
7. Queues and schedulers: how packets take turns
A queue stores packets waiting to leave an interface. When packets arrive faster than the interface can transmit them, the queue grows. A scheduler chooses which queue to serve next. The scheduler is where many QoS policies become visible during congestion.
FIFO and simple priority
First-In, First-Out (FIFO) serves packets in arrival order within a queue. A strict priority scheduler serves a higher-priority queue before lower-priority queues. Strict priority can be useful for a tightly controlled real-time class, but it must be rate-limited or carefully engineered so that lower classes still receive service.
Weighted scheduling
Weighted Round Robin (WRR), Deficit Round Robin (DRR) and related schedulers allocate transmission opportunities among queues using configured weights or quanta. They can provide a more predictable share to several classes without allowing one class to consume the entire link. Exact behaviour depends on the implementation and packet sizes.
Hierarchical QoS
Some networks use hierarchical policies. A parent scheduler controls the total bandwidth of a physical or logical link, while child queues allocate that capacity among classes or customers. This is useful when several services share one uplink or when a provider must enforce both an overall subscriber rate and per-class treatment.
Queues exist at bottlenecks, not only at the router an administrator can see. A home router can schedule its own WAN egress, but it cannot directly control queues inside an ISP core or a remote cloud service. Good QoS design identifies the actual bottleneck and places control as close to it as possible.
8. Traffic shaping: smoothing bursts before transmission
Traffic shaping controls the rate at which packets are released from a queue. If traffic arrives in a burst, a shaper can buffer packets and transmit them at a configured average rate or within a token-bucket profile. This makes the outgoing stream smoother and can help a downstream link avoid sudden overload.
A common model is the token bucket. Tokens accumulate at a configured rate up to a maximum bucket size. Sending packets consumes tokens. A burst can be transmitted when enough tokens have accumulated, while sustained traffic is constrained by the long-term rate. Implementations differ in how they account for packet size, overhead and burst parameters.
Shaping is often used on an interface whose real service rate is slightly below the physical link rate. For example, if an ISP service is sold at a nominal rate, a customer-edge router may shape just below the actual provider bottleneck so that the customer router—not an uncontrolled upstream queue—becomes the point where packets are scheduled. The correct rate needs measurement and tuning; it should not be guessed from the advertised plan alone.
Shaping introduces waiting time when the configured rate is reached. That is intentional. It can reduce delay variation caused by deep downstream queues, but excessive shaping or a very small rate can make performance worse. A shaper also cannot fix congestion that occurs on an unrelated path or upstream interface that it does not control.
9. Traffic policing: enforcing a rate and burst limit
Policing measures traffic against a configured profile and takes action when the profile is exceeded. Actions may include dropping excess packets, remarking them to a lower-priority class, or counting them for monitoring. Unlike shaping, policing generally does not hold excess packets in a queue to send later.
Policing is useful at service boundaries, on access links and where a network must protect a class from unbounded traffic. For example, a voice class may be admitted only up to a planned number of calls. If a device sends far more EF-marked traffic than expected, a policer can drop or remark the excess so it does not overwhelm the priority queue.
Policing can cause packet loss if its rate or burst allowance is configured too tightly. Applications that send legitimate short bursts may be affected even when their long-term average is below the configured rate. Measure actual traffic and account for protocol overhead before setting the policy.
Shaping and policing are complementary. Shaping is generally used where buffering and delay are acceptable to smooth a flow; policing is used where a boundary must enforce a maximum rate or prevent abuse. A design may shape an aggregate at egress and police individual classes at ingress.
10. Congestion management and Active Queue Management
Traditional tail-drop queues discard packets only after a buffer becomes full. Under sustained load, a large buffer can create high delay—often called bufferbloat—while a small buffer may drop bursts aggressively. Active Queue Management (AQM) algorithms attempt to manage queues before they become persistently full.
Random Early Detection (RED) is an early AQM approach that can probabilistically drop or mark packets as average queue length rises. Other algorithms and modern implementations use different signals and control strategies. The goal is not to eliminate every drop, but to control queue build-up and provide congestion signals in a way that allows responsive senders to reduce their rate.
Explicit Congestion Notification (ECN) uses bits in the IP header to signal congestion without necessarily dropping a packet, when endpoints and network devices support it. ECN is distinct from DSCP even though both occupy the Differentiated Services/Traffic Class octet. DSCP selects a forwarding treatment; ECN carries congestion notification state.
RFC 7567 discusses recommendations for AQM. AQM can improve latency under load, but the right algorithm and parameters depend on traffic, link speed, buffer design and device capability. Enabling a feature without measuring its effect is not a substitute for understanding the bottleneck.
11. QoS for voice, video meetings, gaming and downloads
Real-time voice is sensitive to delay, jitter and loss. A controlled low-latency class can help voice packets compete successfully with bulk traffic. But a voice label alone does not guarantee a good call: the access point, WAN uplink, provider network, remote endpoint and application server all influence the result.
Video conferencing has both real-time media and other traffic, such as signalling and screen-sharing data. Treating every packet from a meeting application as the highest priority can consume too much capacity. A practical policy distinguishes traffic types where possible and applies rate controls and admission planning.
Online games often use relatively small packets and care about responsiveness, but QoS cannot reduce the physical distance to a game server or fix a poor route. Prioritising game traffic on a home router may help when household uploads saturate the WAN link; it will not guarantee a low ping at all times.
Large downloads, cloud backups and software updates are usually elastic. They can often use remaining capacity and may be shaped or assigned to a lower-priority class. That does not mean bulk traffic should be starved. It still needs a fair share so updates complete and backups do not run indefinitely.
12. QoS on Wi-Fi: WMM and airtime contention
Wireless networks introduce a shared radio medium. Devices contend for airtime, and a client with a weak signal may consume more airtime to deliver the same amount of data. A router's wired WAN scheduler does not by itself solve contention inside the Wi-Fi channel.
Wi-Fi Multimedia (WMM), based on IEEE 802.11e QoS mechanisms, defines access categories that differentiate how wireless stations contend for the medium. Common categories include voice, video, best effort and background. Access categories use different contention parameters, but they do not reserve a guaranteed slice of airtime for every application.
WMM works best when client devices and access points support it and when the wireless network is properly planned. Channel interference, too many clients, low signal strength, hidden nodes and airtime-heavy legacy devices can still degrade performance. QoS markings may be mapped between DSCP and wireless user priorities, but the mapping depends on the equipment and configuration.
For a home video-call problem, test both wired and wireless performance, inspect signal quality and channel utilisation, and measure latency while another device uploads. If the wired connection remains stable but Wi-Fi degrades, the issue may be radio airtime rather than WAN QoS.
13. Common QoS mistakes
- Marking everything high priority: if every application receives premium treatment, the policy stops differentiating traffic.
- Trusting client markings blindly: unmanaged or guest devices can claim priority they are not entitled to.
- Using strict priority without limits: a busy high-priority queue can starve other classes.
- Ignoring the actual bottleneck: QoS on a LAN switch will not control a congested upstream ISP link.
- Confusing DSCP with a guarantee: a marking is not a contract and may be ignored or rewritten outside the managed domain.
- Setting arbitrary bandwidth values: shapers and policers should reflect measured service rates, overhead and burst behaviour.
- Failing to monitor drops: queue drops, policer counters and latency under load reveal whether the policy is working.
QoS should be treated as an end-to-end operational design across the parts of the path an organisation controls. Document the classes, trust boundaries, mappings, rates and expected outcomes. Test changes under realistic load and retain a rollback plan.
14. A practical method to design and test QoS
- Find the bottleneck. Measure link utilisation and latency during busy periods. Determine whether congestion occurs on a WAN uplink, Wi-Fi channel, switch uplink or another shared resource.
- Define application requirements. Separate interactive, real-time, business-critical and elastic traffic. Avoid creating more classes than the network can operate consistently.
- Choose a trust boundary. Decide which endpoints or access ports may request special treatment. Re-mark untrusted traffic where appropriate.
- Map traffic to classes. Define classification rules and DSCP/PCP mappings. Keep the policy consistent across routers, switches, wireless equipment and WAN edges.
- Design queue scheduling. Choose priority and weighted queues, reserve sensible capacity and prevent starvation. Apply admission control or policing to classes that need strict bounds.
- Shape at the real bottleneck. Configure a rate that keeps the controllable queue at the network edge, and tune it using measurements rather than assumptions.
- Monitor and validate. Measure throughput, latency, jitter and loss both idle and under load. Inspect queue depths, drops, policer counters and DSCP markings at several points in the path.
- Review after changes. New applications, access speeds, cloud services and traffic patterns can make an old policy ineffective. Review policy as the network evolves.
A simple test compares latency while idle with latency during a sustained upload or download. If latency rises sharply only under load, the connection may have a queue-management or uplink contention problem. Apply a controlled shaping or AQM change, then repeat the same test. A speed test alone cannot show whether one application class received the intended treatment.
15. QoS in home routers versus enterprise networks
Home routers often offer simplified QoS options such as device priority, application priority, bandwidth limits or a gaming mode. These controls can be helpful, but their behaviour varies widely. Some products use smart queue management, some classify by device, and others only prioritise a small set of traffic patterns. Read the device documentation and test the result under load.
Enterprise QoS is usually more explicit. It may define a small set of service classes, trust boundaries, DSCP mappings, access-layer markings, WAN shaping, queue scheduling and monitoring. The policy must be consistent across multiple vendors and links. Service providers may offer their own class mappings and service-level agreements, which should be reconciled with the enterprise design.
Neither approach can promise that every packet will be delivered at a fixed delay. QoS controls local resources and forwarding behaviour. End-to-end application quality depends on every segment, including networks outside the operator's control.
16. Standards and further reading
- IETF RFC 2474 — Definition of the Differentiated Services Field: DSCP field structure and per-hop behaviour selection.
- IETF RFC 2475 — An Architecture for Differentiated Services: classifiers, traffic conditioners and scalable service differentiation.
- IETF RFC 3246 — An Expedited Forwarding PHB: EF forwarding behaviour.
- IETF RFC 2597 — Assured Forwarding PHB Group: AF classes and drop precedence.
- IETF RFC 4594 — Configuration Guidelines for DiffServ Service Classes: service-class design guidance, read alongside later updates.
- IETF RFC 7567 — Recommendations for AQM: active queue management considerations.
- IETF RFC 9435 — Considerations for Assigning a New Recommended DSCP: current DSCP assignment considerations.
17. Frequently asked questions about QoS
What is QoS in networking?
Quality of Service (QoS) is a set of classification, scheduling, queue-management and traffic-conditioning techniques that manage how network resources are shared when traffic competes for capacity. It can improve the treatment of selected traffic, but it does not create additional bandwidth.
Does QoS increase internet speed?
No. QoS does not increase the physical capacity of an internet connection. It can manage congestion so selected traffic experiences less delay, jitter or loss while other traffic may wait or be limited.
What is DSCP?
Differentiated Services Code Point (DSCP) is a six-bit value in the IP Differentiated Services field. Network devices can use it to select a per-hop forwarding treatment, subject to the policies and configuration of the network.
What is the difference between shaping and policing?
Shaping buffers and delays traffic to smooth its sending rate, while policing measures traffic against a rate or burst profile and may drop or remark packets that exceed it. Shaping typically adds delay; policing typically enforces a limit immediately.
What is a QoS queue?
A QoS queue is a buffer that holds packets awaiting transmission on an interface. A scheduler decides which queue is served and when, using policies such as priority, weighted scheduling or deficit round robin.
What is jitter and why does QoS matter for voice?
Jitter is variation in packet delay. Real-time voice and video are sensitive to delay variation and packet loss, so suitable classification, queue scheduling and congestion control can help keep interactive traffic usable during busy periods.
What is the difference between DSCP and 802.1p?
DSCP is a six-bit marking in the IP header and can travel across routed IP networks. IEEE 802.1Q priority code point (PCP), commonly called 802.1p priority, is a three-bit field in a VLAN tag used for Layer 2 traffic priority.
What are EF and AF in QoS?
Expedited Forwarding (EF) and Assured Forwarding (AF) are DiffServ per-hop behaviour families. EF is intended for low-loss, low-delay service with appropriate admission and rate controls; AF defines forwarding classes and drop precedence.
Can Wi-Fi QoS prioritise video calls?
Wi-Fi uses mechanisms such as WMM, based on IEEE 802.11e access categories, to provide differentiated access to the wireless medium. Actual results depend on client support, access-point configuration, airtime congestion and the wider network path.
How do I test whether QoS is working?
Measure latency, jitter, packet loss and throughput under both idle and loaded conditions. Compare results for the relevant traffic classes, inspect queue drops and interface counters, and confirm that markings are preserved or mapped as intended along the path.