Courseiva
350-501Chapter 11 of 16Objective spcor-automation-qos

Quality of Service in Service Provider Networks

Quality of Service (QoS) is a set of tools that manage how network traffic is prioritised, shaped, and policed to ensure important data gets through when the network is congested. For someone studying for the Cisco 350-501 SPCOR exam, understanding QoS is essential because service providers must guarantee performance for voice, video, and critical business applications while still carrying best-effort internet traffic.

12 min read
Intermediate
Updated Jul 23, 2026
Reviewed by Johnson Ajibi· Senior Network & Security Engineer · MSc IT Security

A simple way to picture Quality of Service in Service Provider Networks

The Pizza Delivery Service Analogy

A busy Friday night at Tony's Pizzeria. The phone is ringing off the hook, and orders are piling up. Tony has one delivery driver, one oven, and a chaotic stack of tickets on the counter. Some customers have ordered a simple Margherita, while others have placed a large order of gourmet pizzas with extra toppings that take twice as long to prepare. Nearby, a hospital has ordered a single plain cheese pizza for the night shift, and they called first, but the ticket gets buried under the pile. Tony's head chef, Maria, realises this is a disaster waiting to happen. She decides to colour-code the tickets. The hospital's ticket gets a red sticker for priority. A regular customer who always pays on time gets a blue sticker for normal service. A new customer ordering a single pizza gets a green sticker for standard service. She puts the red stickers on top of the pile. When the oven is full, she uses a timer to only put in one red-sticker pizza at a time, so the hospital's pizza doesn't get burned while waiting for three extra-large gourmet pizzas to finish. This is Quality of Service in action. The red sticker is 'classification', putting it on top is 'priority queuing', the timer is 'shaping', and the burning of pizza is 'packet loss' if too many orders arrive at once.

At the same time, a big corporate client has ordered fifty pizzas for a party, but Maria tells the driver, 'You can only take ten pizzas at a time because your scooter can't carry more without falling over.' This is 'policing' — dropping the excess orders so the driver doesn't crash. The system works because everyone agreed on the sticker rules beforehand. Tony's network is now happy, the hospital gets its pizza on time, and the gourmet pizza customer waits a bit longer but still gets their order. The whole operation is smoother because Maria knows exactly which orders to prioritise, how fast to cook them, and when to say 'no more' to prevent a crash.

How It Actually Works

Quality of Service, or QoS, is the network's way of saying 'this is important, let it go first' and 'this is not important, you can wait.' It is like having a VIP lane at an amusement park while everyone else stands in the regular line. In a service provider network, there is never enough bandwidth — the maximum amount of data that can travel over a link at once — for every user at every moment. When too much data tries to use the same cable at the same time, the network gets congested, and packets (small chunks of data) get dropped. QoS decides which packets get dropped and which ones get through untouched.

There are four main jobs that QoS does: classification, marking, shaping, and policing. Let us break each one down.

Classification is the act of identifying what type of traffic a packet is. A network device looks at the packet's headers — the labels on the outside of the data envelope — to figure out if it is a voice call, a video stream, a web page request, or a file download. For example, a packet from a VoIP (Voice over Internet Protocol) phone call has a different header pattern than one from a YouTube video. The network uses this information to decide how to treat that packet.

Marking is the process of writing a priority level onto the packet itself, so that every router in the path knows how to treat it. It is like the red sticker on Tony's pizza ticket. The network device changes a field in the packet header called the DSCP (Differentiated Services Code Point). DSCP values range from 0 to 63, with higher numbers generally meaning higher priority. For instance, voice traffic is often marked with DSCP 46 (Expedited Forwarding), while best-effort data is marked DSCP 0.

Shaping is a way of smoothing out traffic to prevent bursts from overwhelming a downstream link. Shaping holds packets in a buffer (a temporary storage queue) and releases them at a regulated rate, like a traffic light letting cars through one by one. For example, if a customer's contract says they can send up to 10 Mbps (megabits per second), but they send a 100 Mbps burst for one second, the shaper will buffer the excess and slow it down to 10 Mbps over ten seconds. The customer still gets their data, but not all at once.

Policing is harsher than shaping. Policing immediately drops or re-marks packets that exceed a configured rate. It does not buffer them; it just says 'no' and discards the excess. Continuing the traffic light analogy, policing is a red light that never turns green if you try to speed through. If a customer's contract says 10 Mbps, and they send a 100 Mbps burst, the police will drop 90 Mbps of that traffic on the floor. The sender has to retransmit it.

Why does a service provider need all this? Because different types of traffic have different needs. Voice calls are 'real-time' — if a packet is delayed by more than 150 milliseconds, the call sounds garbled. Video streaming can tolerate a small delay but not packet loss. File downloads do not care about delay as long as they eventually complete. Without QoS, a huge file download could completely block a voice call, making the call useless. QoS ensures the voice call gets priority, even if the file download has to wait.

Before QoS, networks used 'best-effort' delivery: every packet was treated exactly the same. If the network got congested, packets were dropped at random, and it was pure luck which ones survived. That worked fine for email and web browsing, but as voice and video became mainstream, service providers needed a way to guarantee performance. QoS was the answer.

Cisco routers and switches use a variety of tools to implement QoS, including MPLS (Multiprotocol Label Switching) which can assign different labels to different traffic classes, and queuing algorithms like CBWFQ (Class-Based Weighted Fair Queuing) and LLQ (Low Latency Queuing). The important thing for the 350-501 exam is to understand the ordering: first classify, then mark, then apply shaping or policing.

One key concept for the exam is the difference between 'trust boundary' and 'marking'. A trust boundary is the point in the network where the router decides to believe the priority markings that came from the customer device. If you do not set a trust boundary, a customer could mark all their traffic as high priority, and your network would treat it as first-class, breaking your QoS plan. So service providers usually set the trust boundary at the first router they control, and then re-mark everything according to their policy.

A flowchart showing the sequence of QoS operations: classification, marking, trust boundary, shaping/policing, and queuing before transmission.

Walk-Through

1

Classify the traffic

Identify which packets belong to which traffic type. Use ACLs (Access Control Lists) or NBAR (Network-Based Application Recognition) to match voice (e.g., SIP packets on port 5060), video (RTP packets), or data. This step is critical because misclassification leads to wrong prioritisation.

2

Mark the traffic with DSCP

Once classified, set a DSCP value in the IP header. For example, mark voice packets as DSCP 46 (EF), video as DSCP 34 (AF41), and transactional data as DSCP 26 (AF31). Marking must happen as close to the source as possible, ideally at the first ingress router.

3

Apply a trust boundary

Configure the router to ignore any incoming DSCP markings from the customer. Re-mark all traffic based on your policy. This is done using the 'trust' command, typically set to 'cos' or 'dscp' only on the provider-facing interface, not the customer-facing interface.

4

Configure shaping on egress interfaces

Apply a shaper on the outbound interface to the customer to enforce a contracted rate (e.g., 100 Mbps). The shaper buffers excess traffic to prevent bursty overloading of the downstream link. Use the 'shape average' command in Cisco IOS.

5

Apply policing to enforce strict limits

Configure a policer to drop traffic that exceeds a hard rate limit (e.g., 10 Mbps for best-effort data). Use the 'police' command with 'conform-action transmit' and 'exceed-action drop'. Policing is especially important for preventing non-critical traffic from overwhelming priority queues.

6

Configure queuing with LLQ and CBWFQ

Create a class map that matches the DSCP values, and assign each class to a queue. Use LLQ for the voice class (strict priority) and CBWFQ for video and data classes with guaranteed bandwidth. Use the 'priority' command for voice and 'bandwidth' command for other classes.

7

Verify and monitor with show commands

Use 'show policy-map interface [interface]' to confirm that packets are being shaped, policed, and queued correctly. Check that the priority queue is not dropping packets excessively. If drops occur, adjust the shaping rate or police limits.

What This Looks Like on the Job

Imagine you work for a service provider called 'FastNet'. One of your business customers, a large bank called 'SecureBank', has a contract that guarantees their voice and video traffic will never suffer more than 50 milliseconds of delay. They also have a smaller branch office that occasionally downloads huge database backups. As the network administrator, you need to configure QoS to deliver on that promise.

First, you would sit down with the bank's IT team and agree on a QoS policy. They tell you: voice traffic from their VoIP phones is the most critical, video conferencing is second, transactional banking data is third, and file downloads are best-effort. You assign DSCP values: 46 for voice, 34 for video, 26 for transactional data, and 0 for best-effort. This is the classification and marking phase.

Next, you configure the routers at the point where SecureBank's network connects to FastNet's core network. This connection is a 1 Gbps (gigabit per second) link. You apply a shape to the link so that the bank can only send up to 900 Mbps total, leaving room for other customers. You then apply a police for the best-effort traffic: if it exceeds 100 Mbps, you drop it. This ensures that the best-effort downloads cannot crowd out the voice and video traffic, which you have given a higher priority queue.

You also set a trust boundary on the customer-facing interface. You instruct the router to ignore any DSCP markings that come from the bank's internal routers, because they might have been tampered with. Instead, the router re-marks all incoming traffic based on the port it arrives on. For example, traffic from the VoIP phone port (port 1) is automatically marked DSCP 46, while traffic from the server port (port 2) is marked DSCP 0. This prevents the bank's users from gaming the system.

In a real deployment, you would also configure a 'service policy' on the router that matches these DSCP values and applies a queuing algorithm. Cisco's LLQ (Low Latency Queuing) would put voice traffic into a strict priority queue, meaning it always gets sent first, before any other traffic. Video and transactional data would go into separate queues with guaranteed bandwidth, and best-effort traffic would use whatever bandwidth is left.

You would then monitor the network using tools like SNMP (Simple Network Management Protocol) and NetFlow to verify that voice traffic never exceeds your delay target. If you see that video conferencing is getting delayed because the priority queue is too full, you might need to police the video traffic more strictly. Over time, you might also use 'shaping' on the bank's backup downloads to ensure they never send more than 100 Mbps at once.

The result? SecureBank's CEO makes a video call to the New York office, and the call is crystal clear. At the same time, the branch office triggers a database backup, but because you've policed it, the backup slows down rather than breaking the video call. The bank is happy, FastNet keeps the contract, and you pass your 350-501 exam.

How 350-501 Actually Tests This

The 350-501 SPCOR exam tests QoS primarily in the context of MPLS (Multiprotocol Label Switching) and service provider core networks. You will see questions that ask you to identify the correct sequence of operations (classify, mark, then shape/police), the correct DSCP values for common traffic types, and the differences between shaping and policing.

Specific concept areas you must know:

DSCP values: Memorise key ones. Expedited Forwarding (EF) is DSCP 46 for voice. Assured Forwarding (AF) classes: AF11 (10), AF12 (12), AF13 (14) for low-drop data; AF21 (18), AF22 (20), AF23 (22); AF31 (26), AF32 (28), AF33 (30); AF41 (34), AF42 (36), AF43 (38). Best-effort is DSCP 0. Class Selector (CS) values: CS1 (8), CS2 (16), CS3 (24), CS4 (32), CS5 (40), CS6 (48), CS7 (56). CS5 (40) is often used for voice control, CS6 for routing protocols.

Trust boundaries: Where to set them. They love to ask where the trust boundary should be placed in a service provider's network. Answer: at the provider edge (PE) router, not at the customer edge (CE) router.

Shaping vs Policing: Shaping buffers, policing drops. Shaping is applied outbound, policing can be inbound or outbound. Shaping introduces delay; policing drops. You will see a question like 'Which QoS tool would you use to enforce a maximum bitrate without introducing delay?' The answer is policing, because it drops excess immediately.

Queuing mechanisms: Know the difference between WFQ (Weighted Fair Queuing), CBWFQ (Class-Based Weighted Fair Queuing), and LLQ (Low Latency Queuing). LLQ provides a strict priority queue for traffic like voice. CBWFQ guarantees bandwidth per class. The exam might give you output from 'show policy-map interface' and ask what the queuing behaviour is.

MPLS QoS: MPLS can carry QoS information using the EXP (Experimental) bits in the MPLS label. The exam tests how DSCP maps to EXP values and how to set them.

The 'three models of QoS' are Best Effort, IntServ (Integrated Services), and DiffServ (Differentiated Services). The SP core uses DiffServ because it scales. They may ask which model is used in service provider networks. Answer: DiffServ.

Trap questions to watch for: - 'Which DSCP value is used for voice?' They might offer DSCP 40 (CS5) instead of 46 (EF). EF is DSCP 46, not 40. CS5 is 40, which is for voice control, not voice bearer. - 'Does policing buffer traffic?' No, buffering is shaping. Policing drops. - 'Can shaping be applied inbound?' No, shaping is always outbound. Policing can be inbound or outbound. - 'Where is the trust boundary placed?' If they say at the CE router, that is a trap. It should be at the PE router in a service provider network. - 'What is the difference between AF and EF?' AF (Assured Forwarding) allows dropping based on congestion; EF (Expedited Forwarding) is low-latency and low-loss.

Key definitions to memorise:

Classification: identifying traffic based on header fields.

Marking: setting a DSCP or CoS (Class of Service) value.

Shaping: smoothing traffic rate by buffering.

Policing: enforcing a maximum rate by dropping or re-marking.

LLQ: priority queue with strict scheduling.

CBWFQ: per-class bandwidth guarantee.

DiffServ: the architecture for QoS in IP networks that uses per-hop behaviours (PHB).

Key Takeaways

Classification identifies traffic type, marking assigns a priority label, shaping buffers excess, and policing drops it.

DSCP EF (46) is used for voice bearer traffic and is the highest priority in most service provider networks.

Shaping introduces delay by buffering, while policing drops traffic instantly — choose policing when delay cannot be tolerated.

The trust boundary must be set at the provider edge (PE) router, not at the customer edge (CE) router, to prevent abuse.

LLQ provides a strict priority queue for real-time traffic like voice, ensuring it is always sent before other traffic.

In service provider networks, the DiffServ model is used for QoS because it scales better than IntServ.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Shaping

Buffers excess traffic and sends it later

Introduces queuing delay

Typically applied on outbound interfaces

Policing

Drops or re-marks excess traffic immediately

Introduces no queuing delay

Can be applied inbound or outbound

Trust Boundary at PE

Provider edge router re-marks all traffic

Used in service provider networks

Prevents customer marking abuse

Trust Boundary at CE

Customer edge router markings are accepted

Common in enterprise networks

Allows customer to control own QoS

DSCP EF (46)

Used for voice bearer traffic (RTP)

Low latency, low loss

Expedited Forwarding PHB

DSCP CS5 (40)

Used for voice control traffic (SIP)

Class Selector 5

Less strict than EF

LLQ (Low Latency Queuing)

Strict priority queue for real-time traffic

Voice always sent first

If priority queue fills, non-priority traffic waits

CBWFQ (Class-Based Weighted Fair Queuing)

Per-class bandwidth guarantees

No strict priority; all classes share bandwidth based on weight

Suitable for non-real-time data

DiffServ (Differentiated Services)

Per-hop behaviour, no end-to-end reservation

Scalable for large networks

Uses DSCP marking

IntServ (Integrated Services)

End-to-end resource reservation using RSVP

Poor scalability

Guarantees per-flow bandwidth

Watch Out for These

Mistake

Shaping and policing are the same thing, just with different names.

Correct

Shaping buffers excess traffic and sends it later, introducing delay. Policing drops excess traffic immediately without buffering.

Beginners see both as rate limiters and miss the key differentiator: shaping uses a buffer, policing does not.

Mistake

QoS guarantees that no traffic will ever be dropped.

Correct

QoS cannot guarantee zero packet loss. It prioritises certain traffic to reduce loss for high-priority packets, but if the link is completely saturated, even priority packets can be dropped.

The word 'guarantee' sounds absolute, but real-world QoS is about 'better than best-effort', not perfect delivery.

Mistake

DSCP values are the same as MPLS EXP values, so you can just copy them directly.

Correct

DSCP is an IP header field (6 bits), while MPLS EXP is a separate 3-bit field in the MPLS label. They are not directly compatible without a mapping policy.

Both are marking fields, but they exist in different parts of the packet. The exam tests that you know you must configure an explicit mapping (e.g., match DSCP 46 set MPLS EXP 5).

Mistake

You should always trust the DSCP markings from the customer device because the customer knows their traffic best.

Correct

In a service provider network, you should never trust customer markings. The trust boundary must be set at the provider edge router, and you should re-mark all traffic based on your own policy.

Customers could accidentally or maliciously mark all their traffic as high priority, breaking the provider's SLA for other customers.

Mistake

QoS is only needed for voice traffic; video and data can handle their own.

Correct

QoS is critical for all real-time applications, including video conferencing, streaming, and gaming. Even non-real-time data like database backups can benefit from shaping to prevent congestion collapse.

People assume voice is the only sensitive traffic, but any application with strict delay and jitter requirements needs QoS protection.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

What is the difference between DSCP and CoS?

DSCP (Differentiated Services Code Point) is a 6-bit field in the IP packet header used for QoS classification. CoS (Class of Service) is a 3-bit field in the Ethernet frame header (802.1p). DSCP is used at Layer 3 (IP), CoS at Layer 2 (Ethernet). In a service provider network, DSCP is more common, but both can be mapped to each other.

What DSCP value is used for voice traffic?

Voice bearer traffic is marked as DSCP 46, which corresponds to Expedited Forwarding (EF). Voice control traffic (like SIP signalling) is often marked as DSCP 24 or DSCP 40 (CS5).

Can QoS be applied in both directions on a router interface?

Yes, but shaping is typically applied on the egress (outgoing) direction, while policing can be applied on ingress (incoming) or egress. The direction depends on where you want to control the traffic rate.

What is the difference between CBWFQ and LLQ?

CBWFQ (Class-Based Weighted Fair Queuing) guarantees a minimum bandwidth for each traffic class. LLQ (Low Latency Queuing) adds a strict priority queue within CBWFQ, meaning that traffic in the priority queue is always sent first, before any other class, which reduces latency for real-time traffic like voice.

What happens if I set the trust boundary incorrectly?

If you set the trust boundary at the customer edge (CE) router, the customer's untrusted devices can mark their own traffic with high DSCP values, potentially allowing their low-priority traffic to bypass your QoS policy. This can degrade performance for other customers who are following the rules.

How does MPLS handle QoS?

MPLS uses the 3-bit EXP (Experimental) field in the MPLS label to carry QoS information. The EXP value can be set based on the IP DSCP value using a policy map. Service providers often copy the DSCP to EXP at the ingress of the MPLS domain and then use the EXP bits within the core network.

What is a 'service policy' in Cisco QoS?

A service policy is a configuration that associates a class map (defining traffic classes) with a policy map (defining actions like shaping, policing, bandwidth guarantee, and queuing). It is applied to an interface using the 'service-policy' command (e.g., 'service-policy input' or 'service-policy output').

Terms Worth Knowing

Keep going

You've finished Quality of Service in Service Provider Networks. Continue through the 350-501 study guide to build a complete picture of the exam.

Done with this chapter?