Simple Service Discovery Protocol




Download 8,14 Mb.
bet28/54
Sana21.03.2017
Hajmi8,14 Mb.
#953
1   ...   24   25   26   27   28   29   30   31   ...   54

Simple Service Discovery Protocol


UPnP devices announce their presence and find other devices by using the Simple Service Discovery Protocol (SSDP).

The Windows 7 NSS announces itself as a UPnP MediaServer device by sending out two SSDP NOTIFY messages every 15 minutes. The NSS responds to any correctly formatted M-SEARCH action by searching for a UPnP MediaServer. Sample SSDP NOTIFY messages are shown in Appendix 1.

The NSS provides a manufacturer name, model name, and model number in its device description document. The model number for Windows Media Player differs, depending on the operating system. In Windows 7, the model number for Windows Media Player is 12.0, the manufacturer name is Microsoft Corporation, and the model name is Windows Media Player Sharing.

The NSS tries to discover compatible devices on the network by examining UPnP SSDP NOTIFY announcements or responses to M-SEARCH actions. For a device to be discovered, it must implement the UPnP MediaRenderer:1 device class. Compatible devices include the following:

UPnP MediaRenderers

UPnP MediaServers

UPnP Control Points
UPnP MediaRenderers are recognized by a combination of their media access control (MAC) address and a unique device name (UDN). When the NSS discovers a UPnP MediaRenderer device, the MAC/UDN pair of the device is compared to a stored list. If the MAC/UDN pair is not in this list, the NSS stores the MAC/UDN pair in the list and presents the device as a new device.

UPnP control points are recognized only by the MAC address. When the NSS discovers a control point device, the MAC address of the device is compared to a stored list. If the MAC address is not in this list, the NSS stores the MAC address for this device in the list but does not announce the device as a new device.

A network media device must a supply a unique device name (Udn0). A valid UDN value starts with the identifier uuid: followed by a 128-bit value in hexadecimal form. The ABNF syntax for the unique device name is defined as follows:

uuid-value = 8HEXDIG "-" 4HEXDIG "-" 4HEXDIG "-" 4HEXDIG "-" 12HEXDIG

UDN = "uuid:" uuid-value

According to this definition, the following is a valid UDN:

uuid:11223344-1122-1122-1122-123456789ABC

After a network media device is authorized, the device is automatically unauthorized if the MAC address for that device changes.



Download 8,14 Mb.
1   ...   24   25   26   27   28   29   30   31   ...   54




Download 8,14 Mb.