Microsoft KB Archive/329704

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

Article ID: 329704

Article Last Modified on 10/11/2004

-

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:  Stop the Windows Media Services (at a command prompt, type net stop wmserver ). Move to the directory where the namespace file is located (%SystemRoot%\system32\windows media\server). Open the ServerNamespace.xml file in a text editor, such as Notepad. 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. Expand the Object Store sub-node. Expand the WMS Unicast Data Writer sub-node. Expand the Properties sub-node.</li>  Add the following line under the Properties sub-node: <node name=&quot;IP TOS&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x00&quot; /> </li> Restart the Windows Media Services (at a command prompt, type net start wmserver ).</li></ol>

The following is another representation of the code that you can add to the ServerNamespace.xml file: <node name=&quot;Unicast Data Sink&quot; opcode=&quot;create&quot; > ...    <node name=&quot;Object Store&quot; opcode=&quot;create&quot; > ...          <node name=&quot;WMS Unicast Data Writer&quot; opcode=&quot;create&quot; /> ...              <node name=&quot;Properties&quot; opcode=&quot;create&quot; > ...                   <node name=&quot;IP TOS&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x00&quot; /> ...         ...     ... ... 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:
 * 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.

Additional query words: WMS TOS QoS &quot;9 Series&quot;

Keywords: kbhowto kbdswwmm2003swept KB329704

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.