QoS Trust Boundary in Networking

1. Introduction

The QoS Trust Boundary defines where and how QoS markings (such as DSCP or CoS) are trusted, modified, or discarded in a network. It ensures that only trusted devices (like IP phones or network switches) can set QoS values, while preventing unauthorized or misconfigured endpoints from affecting network performance.


2. Why is the Trust Boundary Important?

If the network blindly trusts all QoS markings:
🚨 Security Risk – End users could set high-priority DSCP values to get more bandwidth.
🚨 Misconfiguration – Incorrect markings from endpoints can cause congestion.
🚨 Unfair Bandwidth Usage – A normal PC could mark its traffic as VoIP, starving real-time applications.

To prevent these issues, network devices must determine where to trust or overwrite QoS markings.


3. Where Should the Trust Boundary Be Set?

Trust Scenarios

Trust ModelDescriptionExample Devices
Trust at the EdgeQoS markings from endpoints are acceptedCisco IP Phones
Trust at Access SwitchSwitch verifies and applies QoS policiesCisco Catalyst Switch
Trust at Distribution/CoreOnly backbone switches/routers enforce QoSCore Routers

Best Practices

βœ… Endpoints (PCs, users) – 🚫 DO NOT TRUST (Override QoS values).
βœ… IP Phones, APs – βœ… Trust QoS Markings (Mark and prioritize voice traffic).
βœ… Access Switches – ⚠️ Conditional Trust (Verify markings, modify if needed).
βœ… Core/Distribution Layer – βœ… Strictly Enforce QoS Policies.


4. Configuring the QoS Trust Boundary on Cisco Switches

Cisco switches allow administrators to set trust levels on interfaces:

A. Trust DSCP from an IP Phone, Not from a PC

Most Cisco IP Phones mark their own traffic correctly, but connected PCs should not be trusted.
To trust only the phone’s QoS markings:

interface GigabitEthernet1/0/1
switchport mode access
switchport voice vlan 10
mls qos trust dscp

B. Remove Trust from an Untrusted Device (PC)

To override markings from PCs:

interface GigabitEthernet1/0/2
mls qos trust cos
mls qos trust device cisco-phone

C. Rewriting QoS Markings (Reclassify Traffic)

If untrusted devices send incorrect markings, we can override them:

policy-map RECLASSIFY
class class-default
set dscp default

interface GigabitEthernet1/0/3
service-policy input RECLASSIFY

5. Verifying Trust Settings

To check trust settings on an interface:

show mls qos interface GigabitEthernet1/0/1

To see traffic classification:

show policy-map interface GigabitEthernet1/0/1

6. Summary

ScenarioConfiguration
Trust DSCP from IP Phonemls qos trust dscp
Trust CoS from Cisco Phones Onlymls qos trust cos; mls qos trust device cisco-phone
Remove Trust from a PCApply policy to reset DSCP to default
Check Trust Settingsshow mls qos interface

βœ… Proper trust boundary configuration prevents abuse and ensures fair traffic prioritization! πŸš€

renjithbs Avatar

Posted by

Leave a comment