title: Application cannot successfully change dscp value on win7
body: <p>These questions are quite similar to mine :</p>
  
  <p><a href="https://stackoverflow.com/questions/19247017/why-dscp-always-0x00-default-on-windows-7">Why DSCP always 0x00 (default) on Windows 7?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/26260778/issue-with-dscp-marking-using-settrafficclass-and-wireshark">Issue with DSCP marking using setTrafficClass and WireShark</a></p>
  
  <p>I try to send packets with a custom dscp. I can't use MS QoS policies as the user should be able to change the value of the DSCP field. I use java and the method setTrafficClass (Socket obj).</p>
  
  <p>I tried several things :</p>
  
  <ul>
  <li>In the Group Policy Editor > Computer Configuration > Windows Settings : right click on policy-based QOS > I have ticked "Control DSCP marking requests from applications and services" with "Allow"</li>
  <li>Add these two keys :
  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters]
  "DisableUserTOSSetting"=dword:00000000 and [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\QoS]
  "Do not use NLA"="1"</li>
  </ul>
  
  <p>But the DSCP field desperatly stay at 0x00 (default), checked with wireshark 1.12.3</p>
  
  <p>The most frustrating : I tried the same with windows XP : it works!</p>
  
  <p>Here are the links I found useful so far :</p>
  
  <p><a href="http://www.pingman.com/kb/article/setting-dscp-qos-byte-on-packets-with-windows-7-8-95.html" rel="nofollow noreferrer">http://www.pingman.com/kb/article/setting-dscp-qos-byte-on-packets-with-windows-7-8-95.html</a></p>
  
  <p><a href="https://ask.wireshark.org/questions/1188/why-is-dscp-always-0-on-windows-7" rel="nofollow noreferrer">https://ask.wireshark.org/questions/1188/why-is-dscp-always-0-on-windows-7</a></p>
  
  <p><a href="https://technet.microsoft.com/en-us/library/dd919203%28WS.10%29.aspx" rel="nofollow noreferrer">https://technet.microsoft.com/en-us/library/dd919203%28WS.10%29.aspx</a></p>
  
  <p>Any suggestions?</p>