MSBA-232 · Lesson 3 of 12 · 16 min
Quality of Service configuration
▶ Video coming soon A video version of this lesson is on the way.
On Friday, October 30, the second floor east was quiet again, and the quality review moved on to a question that Teodor had been saving. The MS-721 outline asked candidates to specify Teams Quality of Service requirements and policies and to configure Teams for QoS. Corvallin had never done either. Felix admitted that he had put it off because QoS has a reputation for being complicated, and because the head office network had plenty of bandwidth. The second floor episode had changed his mind: on a busy afternoon, an access point or an uplink can be congested no matter how fast the internet connection is.
What QoS does
Networks normally treat every packet the same way: first come, first served. When a link is busy, packets wait in a queue, and if the queue fills, packets are dropped. For a file download this hardly matters, because lost data is simply sent again and a delay of a few hundred milliseconds goes unnoticed. For a voice packet, waiting even a fraction of a second means it arrives too late to be played.
Quality of Service lets network devices treat some traffic differently. Packets are classified into groups, marked so that later devices can recognize the group, and queued so that the most delay-sensitive groups are sent first when a link is congested. QoS does not create bandwidth. It decides who waits when there is not enough.
The usual marking for this purpose is a DSCP value, short for Differentiated Services Code Point: a six-bit number in the header of each IP packet. Switches, routers and wireless access points that are configured to trust the marking can place the packet in the matching queue. Standard names exist for common values: Expedited Forwarding (EF, value 46) for voice, and several Assured Forwarding (AF) classes for other priority traffic.
Microsoft's recommended values
Microsoft recommends a separate DSCP value and a separate client source port range for each kind of Teams media, so that network devices can recognize each one. The current guidance on Microsoft Learn gives these values.
| Media type | Client source ports | DSCP value | DSCP class |
|---|---|---|---|
| Audio | 50,000 to 50,019 | 46 | Expedited Forwarding (EF) |
| Video | 50,020 to 50,039 | 34 | Assured Forwarding (AF41) |
| Application and screen sharing | 50,040 to 50,059 | 18 | Assured Forwarding (AF21) |
| Calling and meeting signalling | 50,070 to 50,089 | 40 | Class Selector 5 (CS5) |
The ranges must not overlap, and if they are changed they should stay next to each other. The signalling range is not currently configurable. Older study material sometimes shows a different value for screen sharing, so it is worth checking the current Microsoft Learn page before a design is written down. Teodor wrote the table on an index card and noted the date he had checked it.
Turning on QoS markers in Teams
Teams needs to know that the organization wants markers. In the Teams admin center, the meeting settings include a network setting named Insert Quality of Service (QoS) markers for real-time media traffic, together with the client port ranges. Turning on the markers is a prerequisite for QoS on every client type. The port ranges can also be set with PowerShell.
# Set the media port ranges (illustrative; matches the recommended ranges)
Set-CsTeamsMeetingConfiguration -Identity Global `
-ClientMediaPortRangeEnabled $true `
-ClientAudioPort 50000 -ClientAudioPortRange 20 `
-ClientVideoPort 50020 -ClientVideoPortRange 20 `
-ClientAppSharingPort 50040 -ClientAppSharingPortRange 20
Get-CsTeamsMeetingConfiguration | Format-List Client*Port*How each client marks traffic
Different Teams clients handle markings differently, which is one of the parts of QoS that the exam likes to test.
Windows. The Teams client on Windows relies on Windows policy-based QoS to mark its packets. An administrator creates policies that match the Teams executable, named ms-teams.exe for the current client, and the source port range for each media type, and sets the DSCP value for each. Policies can be deployed with Group Policy for domain-joined computers, or with a script or management tool. Corvallin's laptops were cloud-only and managed by Intune, so Ama planned to deploy the policies through Intune.
# Windows policy-based QoS for Teams audio, video and sharing
New-NetQosPolicy -Name "Teams Audio" -AppPathNameMatchCondition "ms-teams.exe" `
-IPProtocolMatchCondition Both -IPSrcPortStartMatchCondition 50000 `
-IPSrcPortEndMatchCondition 50019 -DSCPAction 46 -NetworkProfile All
New-NetQosPolicy -Name "Teams Video" -AppPathNameMatchCondition "ms-teams.exe" `
-IPProtocolMatchCondition Both -IPSrcPortStartMatchCondition 50020 `
-IPSrcPortEndMatchCondition 50039 -DSCPAction 34 -NetworkProfile All
New-NetQosPolicy -Name "Teams Sharing" -AppPathNameMatchCondition "ms-teams.exe" `
-IPProtocolMatchCondition Both -IPSrcPortStartMatchCondition 50040 `
-IPSrcPortEndMatchCondition 50059 -DSCPAction 18 -NetworkProfile All
# Check the policies on a test laptop
Get-NetQosPolicy | Format-Table Name, DSCPAction, IPSrcPortStart, IPSrcPortEndMac, iOS and Android. These clients use the source ports 50,000 to 50,059 and mark traffic with built-in values: audio as EF, and video and screen sharing as AF41. The values cannot be changed. They still depend on the admin center setting being on.
Browsers. Teams in a web browser uses dynamic ports and cannot be classified by port range, which is one more reason to prefer the desktop client for people who make many calls.
Teams devices. Teams Rooms on Windows and Android, Teams phones and other certified devices have their own QoS settings, described in Microsoft's guidance for Teams devices. Surface Hub is configured through device management. Corvallin's two head office boardrooms were Teams Rooms Pro systems installed by Northlight AV, and Felix added their QoS settings to the list of things to confirm with Northlight.
The network has to honour the markings
Marking packets on the client is only half the job. Every network device along the path must either trust the markings and queue accordingly, or reclassify the traffic itself. A switch that is not configured for QoS may ignore the markings or reset them to zero. The plan therefore covers each hop.
At access switches, ports for laptops and phones are set to trust DSCP from Teams clients, or the switch classifies Teams traffic by port range and marks it itself. At wireless access points, DSCP values are mapped to Wi-Fi access categories, so that voice gets the voice category on the air, which matters most because Wi-Fi is often the busiest hop. At distribution and core switches, the markings are trusted between network devices. At the router or firewall where the office meets the internet, traffic is queued by class on the uplink, with audio in a priority queue and limits so that voice cannot starve everything else.
Where QoS stops
On the public internet, DSCP markings are generally not honoured, and internet providers may reset them. QoS therefore protects only the part of the path that the organization controls, plus any private WAN where a provider has agreed to honour markings. For a cloud-only organization like Corvallin, that means the office LAN, the Wi-Fi and the queue at the internet uplink. That is still worth a great deal, because those are exactly the places where congestion happens in an office: a busy access point, or an uplink full of uploads.
Teodor asked whether QoS was worth doing at all if the internet ignores it. Felix's answer was that the uplink queue is where the organization's own traffic competes with itself. When thirty people upload photos to OneDrive at the end of a shift, QoS decides whether voice waits behind them. On the public internet, Corvallin's traffic is a drop in a large ocean, and good providers have enough capacity that queues rarely build.
Testing QoS
A QoS design is only as good as its verification. Felix planned three checks. First, on a test laptop, confirm that the Windows policies exist and are applied. Second, capture traffic on the laptop during a test call and confirm that audio packets leave with the expected DSCP value and source ports. Third, capture again at the switch uplink and at the router, to confirm that the markings survive each hop. A marking that leaves the laptop correctly and arrives at the router as zero tells you exactly which device needs attention.
| Check | Where | Expected result |
|---|---|---|
| QoS markers setting | Teams admin center meeting settings | On, with the documented port ranges |
| Windows policies | Test laptop | Policies for audio, video and sharing with correct DSCP |
| Packets leaving the client | Packet capture on the laptop | Audio from ports 50,000 to 50,019 marked 46 |
| Packets at the uplink | Capture at the router or a mirror port | Markings unchanged; voice in the priority queue |
| Under load | A test call during a large upload | Audio stays clear while the upload slows |
The last check is the one that convinces people. Felix ran a test call while copying a large file to OneDrive from the same office, first with the uplink queueing disabled and then with it enabled. Without QoS, the test call's jitter rose sharply while the copy ran. With QoS, the copy took a little longer and the call was unaffected.
QoS and the branches
For the branches, QoS mattered more than at head office, because their links were smaller. The North Branch upgrade to a symmetric link had given it more headroom, but at peak times, with most of the branch in a meeting and laptops syncing files, the uplink could still fill. Felix's branch design for January 2027 included the same policies, access point mappings and uplink queues as head office, so that Teams calls and, after the telephony project, branch phone calls would be protected in the same way.
QoS also interacts with Operator Connect and Direct Routing. Calls from branch Teams clients to the PSTN travel first to Microsoft's network, so the same client markings and uplink queues protect them. For the Northlight-managed SBC hosted by Tidelink for branch fax and door intercom lines, QoS on the analog gateways' network ports would be configured by Northlight, and Felix added that to the list of items for the January project.
Wi-Fi deserves special attention
Wireless networks share the air between every device in range, and only one can transmit at a time on a channel. Wi-Fi has its own priority mechanism, Wi-Fi Multimedia, with four access categories: voice, video, best effort and background. When an access point maps DSCP 46 to the voice category, voice packets get shorter waits for the air. Without that mapping, a voice packet competes with a large download on equal terms.
Felix also reviewed the Wi-Fi design itself, because QoS cannot fix a poor signal. He checked that the 5 GHz band was preferred for laptops, that neighbouring access points used non-overlapping channels, that there were enough access points for the number of devices per area, and that the furniture move had not left any area without coverage. The second floor east episode had been a capacity problem, not a QoS problem, and both kinds of fix were needed.
A QoS change record
Ines insisted on a change record for the QoS rollout, because network changes can cause outages. Felix's record listed each device to be changed, the configuration to be applied, the test after each change, and how to reverse it. The client policies went first, to a pilot group of five laptops, then to all pilot users, then to everyone at head office. The switch and access point changes were made outside working hours. The router queue change was made last, on a Saturday morning, with a test call before and after.
QoS questions on the exam
MS-721 questions about QoS tend to test a few distinctions. Marking happens on the client or the first switch; queueing happens wherever congestion occurs. Windows clients need policy-based QoS; Mac and mobile clients use fixed values; browsers cannot be classified by port. Turning on the QoS markers setting is required for every client. Port ranges can be changed, but DSCP values for each media type follow Microsoft's recommendations, and the signalling range is fixed. And QoS protects only managed networks, so a question that describes poor quality for home workers is rarely answered by QoS. Teodor tested himself by explaining each distinction aloud to Felix, who stopped him whenever he said "QoS makes calls faster".
Common mistakes
MistakeMarking traffic on clients and assuming the network honours it.
InsteadConfigure trust or classification on every managed hop and verify with packet captures.
MistakeUsing old DSCP tables from outdated study notes.
InsteadCheck the current Microsoft Learn values and record the date checked.
MistakeExpecting QoS to fix a weak Wi-Fi signal or an undersized link.
InsteadFix coverage and capacity too; QoS only decides who waits.
MistakeForgetting the admin center setting because Macs use fixed values.
InsteadTurn on QoS markers in the Teams admin center for every client type.
Summary and key terms
- QoS classifies, marks and queues traffic so that real-time media waits least when links are congested.
- Current recommended values: audio 46 (EF), video 34 (AF41), sharing 18 (AF21), signalling 40 (CS5).
- Recommended source ports: audio 50,000 to 50,019, video 50,020 to 50,039, sharing 50,040 to 50,059.
- Windows uses policy-based QoS; Mac and mobile clients use fixed values; browsers use dynamic ports.
- Switches, access points and the uplink router must trust and queue by the markings.
- The public internet ignores markings, so QoS protects the managed part of the path.
- Quality of Service (QoS)
- Network techniques that give some traffic priority when links are congested.
- DSCP
- A six-bit value in the IP header used to mark a packet's traffic class.
- Expedited Forwarding (EF)
- The DSCP class, value 46, used for voice.
- Assured Forwarding (AF)
- A family of DSCP classes for priority data such as video.
- Policy-based QoS
- A Windows feature that marks traffic from chosen applications and ports.
- Wi-Fi Multimedia
- The Wi-Fi priority scheme with voice, video, best effort and background categories.
- Priority queue
- A queue on a network device that is always served first.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Why does Microsoft recommend separate port ranges for each media type?
Show answer
So network devices can recognize and mark each media type separately.
Where does QoS help most in a cloud-only office?
Show answer
On Wi-Fi, the LAN and the queue at the internet uplink.
What is the single most convincing QoS test?
Show answer
A test call during a large upload, before and after queueing is enabled.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.