Module 5.6 35 minAdvanced

QoS fundamentals

When a link is congested, Quality of Service decides which packets get the bandwidth and which wait. This chapter introduces the trust boundary, classification with DSCP, and the queueing behaviour you should expect on a router.

Course plan — preview

What you'll learn

  • Explain why QoS only matters during congestion.
  • Identify common DSCP values: EF, AF41, CS6, default.
  • Describe the role of marking, queueing, and policing.

QoS only matters when the link is full

On an idle interface every packet leaves immediately and QoS has no effect. The moment offered traffic exceeds line rate the router queues packets. QoS is the policy that decides which queue each packet enters and the order packets are dequeued.

QoS cannot create bandwidth. When there is not enough, it decides who waits and who is dropped, in four steps: classify each packet (what is it?), mark it so later devices need not ask again, queue it by class at each congested interface, and police or shape where a rate must be enforced. This chapter takes them in that order.

The trust boundary

Endpoints set their own DSCP. Treat those markings as untrusted at the edge — re-mark or trust only as policy allows. The ideal trust boundary is the access switch port: trust DSCP only from a known IP phone, re-mark what a user's PC sends, and policy-enforce everything else.

Why the access port? It is the last place where the phone's traffic and the PC's traffic can still be told apart: the phone sends voice tagged into the voice VLAN, and the PC's frames arrive untagged behind it. One hop further up they share an uplink, and an honest EF packet looks exactly like a PC that marked itself EF. So the access switch trusts the phone's marking and re-marks whatever the PC sends to default, DSCP 0.

A marking erased at an untrusted port cannot be restored downstream. If the phone's own port is left untrusted, the switch rewrites voice to DSCP 0, and the WAN router, seeing 0, puts it in the default queue however good its priority queue is. Re-marking at that router by matching addresses and ports would work for one flow, but it repeats the classification on every hop, which is the work DSCP exists to avoid.

11 more sections in this chapter, plus a 4-question quiz.

Course plan

Modules 2–8 are part of the Course & Lab Pass and All-Access Max — start with a free account

You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: How Networks Work end-to-end and saves your labs — start there, no card required.

  • Read every chapter in Module 1 — How Networks Work
  • Save labs of up to 5 devices
  • Save up to 3 topologies
  • See the full course syllabus + chapter titles

Free account · no card required · compare plans any time