Adding a QoS Policy Setting for DSCP EF Tag on UDP Packets Going to a Specific Subnet in Windows 10
Windows 10 includes a feature called Quality of Service (QoS) that allows you to prioritize network traffic for specific applications. One way to use QoS is to add a policy that adds a Differentiated Services Code Point (DSCP) tag to User Datagram Protocol (UDP) packets that are sent to a specific subnet. This can be useful for ensuring that important network traffic is given priority over less important traffic.
Understanding DSCP and QoS
DSCP is a field in the IP header that is used to indicate the type of traffic being sent. It is a 6-bit field, which means that it can have a value between 0 and 63. Different values are used to indicate different types of traffic, such as voice, video, or best effort. QoS is a feature in Windows 10 that allows you to set policies for how traffic with specific DSCP values is handled on your network.
Adding a QoS Policy for DSCP EF Tag on UDP Packets
To add a QoS policy for DSCP EF tag on UDP packets in Windows 10, follow these steps:
- Press the Windows key + X and select Windows PowerShell (Admin).
- Type the following command and press Enter:
New-NetQosPolicy -Name "UDP EF Policy" -AppPathNameMatchCondition * -DscpAction Set-Dscp -DscpValue 46 -IpProtocol UDP -PathMatchCondition * -PolicyStore PersistentStoreThis command creates a new QoS policy called "UDP EF Policy" that sets the DSCP value to 46 (EF) for all UDP packets.
- To specify the subnet that the policy should apply to, type the following command and press Enter:
Set-NetQosPolicy "UDP EF Policy" -NetworkProfile All -IpSecAction Allow -IpSecMatchCondition Any -RemoteAddress [subnet1] -LocalAddress AnyReplace [subnet1] with the IP address of the subnet that you want the policy to apply to. For example, if you want the policy to apply to the 192.168.1.0/24 subnet, you would use the following command:
Set-NetQosPolicy "UDP EF Policy" -NetworkProfile All -IpSecAction Allow -IpSecMatchCondition Any -RemoteAddress 192.168.1.0/24 -LocalAddress AnyThis command sets the remote address of the policy to the specified subnet.
In this article, you learned how to add a QoS policy for DSCP EF tag on UDP packets in Windows 10. You also learned about DSCP and QoS, and how to specify the subnet that the policy should apply to. By following the steps in this article, you can ensure that important network traffic is given priority over less important traffic.