How To Enable Type of Service (TOS) for Windows Media Services 9 Series (329704)



The information in this article applies to:

  • Microsoft Windows Media Services 9 Series

This article was previously published under Q329704

SUMMARY

Differentiated Services Code Point (DSCP) enables packets that pass through network devices that operate on Layer 3 information (such as routers) to have their relative priorities differentiated from one another.

You establish DSCP by setting the first six bits of the Type of Service (TOS) field in the IP header. DSCP determines IP precedence, but maintains backward compatibility. With DSCP marking, Layer 3 devices can establish aggregated precedence-based queues and provide better service to packets that have a higher relative priority. This is helpful when packet services are subject to queuing, such as when there are significant network traffic loads associated with streaming media presentations and other real-time data streams. For DSCP to be effective, Layer 3 devices must be DSCP-enabled.

MORE INFORMATION

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

Warning This article contains information about editing the namespace. Before you edit the namespace, verify that you have a backup copy that you can restore if a problem occurs. If you edit the namespace incorrectly, you can cause serious problems that may require you to reinstall any product that uses the namespace. Microsoft cannot guarantee that problems that result if you incorrectly edit the namespace can be solved. Edit the namespace at your own risk.
You can set the Type of Service (TOS) bits in the IP header by editing the registry, and by editing the properties section of the WMS Unicast Data Writer plug-in in the ServerNamespace.xml file. To edit the ServerNamespace.xml file that the server uses, follow these steps:
  1. Stop the Windows Media Services (at a command prompt, type net stop wmserver).
  2. Move to the directory where the namespace file is located (%SystemRoot%\system32\windows media\server).
  3. Open the ServerNamespace.xml file in a text editor, such as Notepad.
  4. Locate and then expand the Unicast Data Sink node in the namespace. In the next steps, you will expand a node under each successive node.
  5. Expand the Object Store sub-node.
  6. Expand the WMS Unicast Data Writer sub-node.
  7. Expand the Properties sub-node.
  8. Add the following line under the Properties sub-node:
    <node name="IP TOS" opcode="create" type="int32" value="0x00" />
  9. Restart the Windows Media Services (at a command prompt, type net start wmserver).
The following is another representation of the code that you can add to the ServerNamespace.xml file:
<node name="Unicast Data Sink" opcode="create" >
     ...
     <node name="Object Store" opcode="create" >
          ... 
          <node name="WMS Unicast Data Writer" opcode="create" />
               ...
               <node name="Properties" opcode="create" >
                    ...
                    <node name="IP TOS" opcode="create" type="int32" value="0x00" />
                    ...
               </node>
               <!-- Properties -->
          ...
          </node>
          <!-- WMS Unicast Data Writer -->
     ...
     </node>
     <!-- Object Store -->
...
</node>
<!-- Unicast Data Sink-->
You can change the value from 0x00 to the appropriate setting for the IP TOS field. TOS is an 8-bit field. The 6 bits that are least significant are used for the TOS setting, and the 2 bits that are most significant are used for early congestion notification (ECN enabled and ECN reported).

Note the following:
  • Changes in this value affect only UDP-based protocols, and do not affect TCP protocols.
  • Although the namespace value is set under the Unicast Data Writer, the same change also affects Multicast streaming.
Additionally, you must also modify the registry as follows:
  1. Start Registry Editor.
  2. Locate the following key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters
  3. On the Edit menu, click Add Value.
  4. Type DisableUserTOSSetting, click REG_DWORD in the Data Type box, and then click OK.
  5. Enter 0 in the prompt box.
  6. Quit Registry Editor, and then restart the computer.

Modification Type:MinorLast Reviewed:10/11/2004
Keywords:kbDSWWMM2003Swept kbhowto KB329704 kbAudDeveloper