Manage QoS Policy | Microsoft Learn
You can use this topic to learn about using the QoS Policy wizard to create, edit, or delete a QoS Policy.
Note
In addition to this topic, the following QoS Policy management documentation is available.
In Windows operating systems, QoS Policy combines the functionality of standards-based QoS with the manageability of Group Policy. Configuration of this combination makes for easy application of QoS policies to Group Policy Objects. Windows includes a QoS Policy Wizard to help you do the following tasks.
-
Create a QoS policy
-
View, edit, or delete a QoS policy
Create a QoS policy
Before you create a QoS policy, it is important that you understand the two key QoS controls that are used to manage network traffic:
-
DSCP value
-
Throttle rate
Prioritizing traffic with DSCP
As noted in the previous line-of-business application example, you can define the priority of outbound network traffic by using Specify DSCP Value to configure a QoS policy with a specific DSCP value.
As described in RFC 2474, DSCP allows values from 0 to 63 to be specified within the TOS field of an IPv4 packet and within the Traffic Class field in IPv6. Network routers use the DSCP value to classify network packets and to queue them appropriately.
Note
By default, Windows traffic has a DSCP value of 0.
The number of queues and their prioritization behavior needs to be designed as part of your organization's QoS strategy. For example, your organization may choose to have five queues: latency-sensitive traffic, control traffic, business-critical traffic, best-effort traffic, and bulk-data-transfer traffic.
Throttling traffic
Along with DSCP values, throttling is another key control for managing network bandwidth. As mentioned earlier, you can use the Specify Throttle Rate setting to configure a QoS policy with a specific throttle rate for outbound traffic. By using throttling, a QoS policy limits the outgoing network traffic to a specified throttle rate. Both DSCP marking and throttling can be used together to manage traffic effectively.
Note
By default, the Specify Throttle Rate check box is not selected.
To create a QoS policy, edit the settings of a Group Policy Object (GPO) from within the Group Policy Management Console (GPMC) tool. GPMC then opens the Group Policy Object Editor.
QoS policy names must be unique. How policies are applied to servers and end users depends on where the QoS policy is stored in the Group Policy Object Editor:
-
A QoS policy in Computer Configuration\Windows Settings\QoS Policy applies to computers, regardless of the user that is currently logged on. You typically use computer-based QoS policies for server computers.
-
A QoS policy in User Configuration\Windows Settings\QoS Policy applies to users after they have logged on, regardless of which computer they have logged on to.
To create a new QoS policy with the QoS Policy wizard
- In Group Policy Object Editor, right-click either of the QoS Policy nodes, and then click Create a new policy.
Wizard page 1 - Policy Profile
On the first page of the QoS Policy wizard, you can specify a policy name and configure how QoS controls outgoing network traffic.
To configure the Policy Profile page of the QoS-based Policy wizard
-
In Policy name, type a name for the QoS policy. The name must uniquely identify the policy.
-
Optionally, use Specify DSCP Value to enable DSCP marking, and then configure a DSCP value between 0 and 63.
-
Optionally, use Specify Throttle Rate to enable traffic throttling and configure the throttle rate. The throttle rate value must be greater than 1 and you can specify units of kilobytes per second (KBps) or megabytes per second (MBps).
-
Click Next.
Wizard page 2 - Application Name
In the second page of the QoS Policy wizard you can apply the policy to all applications, to a specific application as identified by its executable name, to a path and application name, or to the HTTP server applications that handle requests for a specific URL.
-
All applications specifies that the traffic management settings on the first page of the QoS Policy wizard apply to all applications.
-
Only applications with this executable name specifies that the traffic management settings on the first page of the QoS Policy wizard are for a specific application. The executable file name must end with the .exe file name extension.
-
Only HTTP server applications responding to requests for this URL specifies that the traffic management settings on the first page of the QoS Policy wizard apply to certain HTTP server applications only.
Optionally, you can enter the application path. To specify an application path, include the path with the application name. The path can include environment variables. For example, %ProgramFiles%\My Application Path\MyApp.exe, or c:\program files\my application path\myapp.exe.
Note
The application path cannot include a path that resolves to a symbolic link.
The URL must conform to RFC 1738, in the form of http[s]://<hostname\>:<port\>/<url-path>. You can use a wildcard, ‘*', for <hostname> and/or <port>, e.g. https://training.\*/, https://\*.\*, but the wildcard cannot denote a substring of <hostname> or <port>.
In other words, neither https://my\*site/ nor https://\*training\*/ is valid.
Optionally, you can check Include subdirectories and files to perform matching on all subdirectories and files following a URL. For example, if this option is checked and the URL is https://training, QoS Policy will consider requests forhttps://training/video a good match.
To configure the Application Name page of the QoS Policy wizard
-
In This QoS policy applies to, select either All applications or Only applications with this executable name.
-
If you select Only applications with this executable name, specify an executable name ending with the .exe file name extension.
-
Click Next.
Wizard page 3 - IP Addresses
In the third page of the QoS Policy wizard you can specify IP address conditions for the QoS policy, including the following:
-
All source IPv4 or IPv6 addresses or specific source IPv4 or IPv6 addresses
-
All destination IPv4 or IPv6 addresses or specific destination IPv4 or IPv6 addresses
If you select Only for the following source IP address or Only for the following destination IP address, you must type one of the following:
-
An IPv4 address, such as
192.168.1.1 -
An IPv4 address prefix using network prefix length notation, such as
192.168.1.0/24 -
An IPv6 address, such as
3ffe:ffff::1 -
An IPv6 address prefix, such as
3ffe:ffff::/48
If you select both Only for the following source IP address and Only for the following destination IP address, both addresses or address prefixes must be either IPv4- or IPv6-based.
If you specified the URL for HTTP server applications in the previous wizard page, you'll notice that the source IP address for the QoS policy on this wizard page is grayed out.
This is true because the source IP address is the HTTP server address and it is not configurable here. On the other hand, you can still customize the policy by specifying the destination IP address. This makes it possible for you to create different policies for different clients by using the same HTTP server applications.
To configure the IP Addresses page of the QoS Policy wizard
-
In This QoS policy applies to (source), select Any source IP address or Only for the following IP source address.
-
If you selected Only the following IP source address, specify an IPv4 or IPv6 address or prefix.
-
In This QoS policy applies to (destination), select Any destination address or Only for the following IP destination address.
-
If you selected Only for the following IP destination address, specify an IPv4 or IPv6 address or prefix that corresponds to the type of address or prefix specified for the source address.
-
Click Next.
Wizard page 4 - Protocols and Ports
On the fourth page of the QoS Policy wizard, you can specify the types of traffic and the ports that are controlled by the settings on the first page of the wizard. You can specify:
-
TCP traffic, UDP traffic, or both
-
All source ports, a range of source ports, or a specific source port
-
All destination ports, a range of destination ports, or a specific destination port
To configure the Protocols and Ports page of the QoS Policy wizard
-
In Select the protocol this QoS policy applies to, select TCP, UDP, or TCP and UDP.
-
In Specify the source port number, select From any source port or From this source port number.
-
If you selected From this source port number, type a port number between 1 and 65535.
Optionally, you can specify a port range, in the format of "Low:High," where Low and High represent the lower bounds and upper bounds of the port range, inclusively. Low and High each must be a number between 1 and 65535. No space is allowed between the colon (:) character and the numbers.
-
In Specify the destination port number, select To any destination port or To this destination port number.
-
If you selected To this destination port number in the previous step, type a port number between 1 and 65535.
To complete the creation of the new QoS policy, click Finish on the Protocols and Ports page of the QoS Policy wizard. When completed, the new QoS policy is listed in the details pane of the Group Policy Object Editor.
To apply the QoS policy settings to users or computers, link the GPO in which the QoS policies are located to an Active Directory Domain Services container, such as a domain, a site, or an organizational unit (OU).
View, Edit, or Delete a QoS Policy
The pages of the QoS Policy wizard described previously correspond to the properties pages that are displayed when you view or edit the properties of a policy.
To view the properties of a QoS policy
- Right-click the policy name in the details pane of the Group Policy Object Editor, and then click Properties.
The Group Policy Object Editor displays the properties page with the following tabs:
-
Policy Profile
-
Application Name
-
IP Addresses
-
Protocols and Ports
To edit a QoS policy
- Right-click the policy name in the details pane of the Group Policy Object Editor, and then click Edit existing policy.
The Group Policy Object Editor displays the Edit an existing QoS policy dialog box.
To delete a QoS policy
- Right-click the policy name in the details pane of the Group Policy Object Editor, and then click Delete policy.
QoS Policy GPMC Reporting
After you have applied a number of QoS policies across your organization, it may be useful or necessary to periodically review how the policies are applied. A summary of the QoS policies for a specific user or computer can be viewed by using GPMC reporting.
To run the Group Policy Results Wizard for a report of QoS policies
- In GPMC, right-click the Group Policy Results node, and then select the menu option for Group Policy Results Wizard.
