Results 1 to 7 of 7

Thread: Windows 7 resets DiffServ (DSCP) to 0x00?

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    3

    Question Windows 7 resets DiffServ (DSCP) to 0x00?

    Hi!

    OS: Windows 7 x64 Pro.

    All of my packets leaving this computer are marked with DiffServ (DSCP) 0x00 why is that? I used Wireshark to look into the packet headers.

    I've been defining the DSCP values for SSH etc. using QoS policy settings from Group Policy Editor: Computer Configuration -> Windows Settings -> Policy-based QoS

    Here are couple things I have tried to fix this, but none of them works:

    • I have QoS Packet Scheduler in Network Card settings turned on.
    • I have Priority / VLAN enabled from NIC settings.
    • I have tried qostraffic.exe and all packets are zero with this too.
    • I have tried to set registry entry DisableUserTOSSetting to 0 (I created it as it did not exist on my computer)


    All help is appreciated, thanks!
    Last edited by Ciantic; 12-06-10 at 12:57 PM. Reason: typo

  2. #2
    Junior Member
    Join Date
    Sep 2010
    Posts
    3
    Your problem is here:
    QoS Group Policies only take effect when the Vista machine is domain joined, and on interfaces that are attached to the domain network (i.e. can see the domain controller).
    While digging Seven's drivers I found hidden registry parameter to overcome this limit.
    1. Go to HKLM\System\CurrentControlSet\Services\Tcpip\QoS. If "QoS" folder doesn't exist there - create it.
    2. Add a DWORD parameter named "Do not use NLA" and assign "1" as its value.
    3. Reboot.

  3. #3
    Junior Member
    Join Date
    Dec 2010
    Posts
    3
    Did not work for me, see also my longer post in ask.wireshark.org.

    I have a very good test setup (see the post above), so I don't need to do guesswork once I found solution. I can verify it when it will start working.

  4. #4
    Junior Member
    Join Date
    Sep 2010
    Posts
    3
    My home machine isn't domain joined and it works for me. And sorry I forgot that it must be not DWORD but REG_SZ...
    Thats how it looks in my registry (Windows 7 Ultimate x64):


    And here is sample of tcpdump output at my router:
    Code:
    17:01:30.984530 IP (tos 0x0, ttl 54, id 54359, offset 0, flags [DF], proto TCP (6), length 1500) media5.justin.tv.80 > 172.30.4.                      52.64651: . 7240:8688(1448) ack 1 win 17 <nop,nop,timestamp 713250561 17835513>
    17:01:30.984942 IP (tos 0x0, ttl 54, id 54360, offset 0, flags [DF], proto TCP (6), length 1500) media5.justin.tv.80 > 172.30.4.                      52.64651: . 8688:10136(1448) ack 1 win 17 <nop,nop,timestamp 713250561 17835513>
    17:01:30.985480 IP (tos 0xc, ttl 63, id 19125, offset 0, flags [DF], proto TCP (6), length 64) 172.30.4.52.64651 > media5.justin                      .tv.80: ., cksum 0x376b (correct), 1:1(0) ack 4344 win 16652 <nop,nop,timestamp 17835533 713250521,nop,nop,sack 1 {7240:8688}>
    17:01:30.985770 IP (tos 0xc, ttl 63, id 19126, offset 0, flags [DF], proto TCP (6), length 64) 172.30.4.52.64651 > media5.justin                      .tv.80: ., cksum 0x31c3 (correct), 1:1(0) ack 4344 win 16652 <nop,nop,timestamp 17835533 713250521,nop,nop,sack 1 {7240:10136}>
    17:01:31.092575 IP (tos 0x0, ttl 1, id 30314, offset 0, flags [none], proto UDP (17), length 161) 192.168.10.23.50056 > 239.255.                      255.250.1900: UDP, length 133
    As you see I have non-zero tos in few packets. I had set DSCP=3 in gpedit.msc for firefox.exe and some other programs. And it works for me....
    Last edited by xedoc; 01-06-11 at 07:41 AM. Reason: oops

  5. #5
    Junior Member
    Join Date
    Dec 2010
    Posts
    3
    Yes, thanks!

    Absolutely genius, it started working as I changed it to REG_SZ.

    Out of interest what are the tools you used to look on to the Seven's drivers? I suppose some disassembler? I don't need full instructions, just list of useful tools and maybe couple of filenames so I'll try to figure the rest myself.



    For others seeking solution, here is the fix as registry file (.reg):
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\QoS]
    "Do not use NLA"="1"
    Last edited by Ciantic; 01-06-11 at 08:47 AM. Reason: files != filenames

  6. #6
    Junior Member
    Join Date
    Sep 2010
    Posts
    3
    Well it was just a hex-editor. Nothing special
    Looking for "Registry" words I found this in tcpip.sys (UTF-16 Little endian):

  7. #7
    Junior Member
    Join Date
    Nov 2011
    Posts
    1
    It doesn't look like MS is making qostraffic.exe available for download any longer. Does anyone know where I can download it?

Similar Threads

  1. Problem with setting ToS/DSCP
    By freeq in forum Broadband Tweaks Help
    Replies: 6
    Last Post: 04-13-09, 11:44 AM
  2. Need help using QoS/Diffserv
    By TommiHelm in forum Networking Forum
    Replies: 0
    Last Post: 09-12-07, 08:03 AM
  3. DiffServ (RFC 2474) = No valid DiffServ equivalent???
    By SamChuck in forum General Broadband Forum
    Replies: 0
    Last Post: 05-31-06, 02:04 PM
  4. DiffServ (RFC 2474) = No valid DiffServ equivalent
    By gonzalo76 in forum Broadband Tweaks Help
    Replies: 12
    Last Post: 05-03-06, 11:05 PM
  5. DiffServ Values?
    By SupremeWarrior in forum Broadband Tweaks Help
    Replies: 4
    Last Post: 06-12-05, 11:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •