Implementing Universal Plug And Play In Smart Objects
Implementing Universal Plug And Play In Smart Objects And Intelligent Appliances Bengt Christensson CTO Axis Communications
Session Overview u u u Technology trends Challenges and requirements Solutions to date and the Universal Plug and Play Way Implementation Demo Call to action
Technology Trends u Focus shifting from connectivity to services u u u More devices/services will be networked Use your time efficiently Ubiquitous communications u u u Anywhere, anything and intuitive, too Useful bandwidth available Home networking
Devices, PCs And Services Interconnect Services Technologies converge, devices don’t
Challenges u u u u Simplicity Robustness - “always on” Scalability- ad hoc/configured Interoperability, manageability, security Lightweight cost-effective technology Building networking applications Wide range of different devices and services. . .
Protocol Requirements u “Automatic networking” u u Scalability u u u Work in serverless environments and leverage directory services, if available Dynamic ad hoc environments Flexibility u u Address assignment, naming, discovery, and service identification Support device and service individuality Open standards-based u Internet RFCs, public source
Solutions To Date u Ad hoc (serverless, peer-to-peer) u u Manual IP address assignment, ARP No intuitive naming SLP, SMB, Salutation, “flood-ping” Configured (server-based) u u u DHCP, BOOTP, RARP DNS, WINS Directory (LDAP, NDS, SLP, Salutation)
The Universal Plug And Play Way u Works in both ad hoc and configured environments u XML and XSL style sheets in the device define service and interaction
Client Components Applications ADSI Universal Simple Service XML Plug and Discovery Play provider TCP/IP stack LDAP WINSOCK NDIS NIC
Smart Object Components Device functions Simple Discovery (~4 k) Auto. Net HTTP (~20 k) TCP/IP stack (~40 k) Physical media DHCP XML, XSL schema
Universal Plug And Play In Action Ad Hoc 1. DHCP broadcast (Timeout) 2. Assign Auto. Net address 3. DNS name multicast 4. Announce service (Timeout - wait for requests) 5. Discover service 7. Response to discover 8. Get. XMLschema 9. XML schema
Universal Plug And Play In Action Configured 1. DHCP broadcast 2. Address from DHCP server 3. Name unicast to DNS server 5. Listener Get_HTTP XML 6. Directory updated by listener 7. Device-specific negotiation 8. LDAP query directory S erver 4. Announce service to listener
Packet Examples Announce u HTTP packet data example ANNOUNCE * HTTP/1. 1 HOST: * Location: http: //170. 1. 128. 135/description. xml Object-Class: printer u Multicast UDP packet
Packet Examples Discover and response u Discover DISCOVER (object. Class=printer) HTTP/1. 1 HOST: 172. *. *. * Request-ID: 54 u Response to discover HTTP/1. 1 302 Found Request-ID: 54 Location: http: //172. 1. 128. 135/description. xml Object-Class: printer
Axis Camera Example u Implementation u Network-attached surveillance camera u Self-contained with TCP/IP and HTTP support u UPn. P with XML/XSL description u Approx. 40 k bytes for UPn. P needed
XML Schema Axis Camera u Key elements u u u Name spaces definitions Device description and functionality Support and purchasing information References to XSL style sheets for UI Refer to white paper for sample code, XML schema and XSL style sheets http: //www. axis. com/products/documentation/ Upn. P. doc
‘Device Browser’ Example 1 Client runs Device Browser application, based on Internet Explorer 5. 0 2 Discover device 3 Fetch description. xml from device 4 Parse XML data to extract information 5 Present device in view 6 User selects device 7 Present UI links referred by description. xml 8 User selects UI 9 Fetch and view the UI (style sheet)
Live Demo u Showing UPn. P u u Device discovery - ‘Device Browser’ Device interaction - XSL Style Sheets PC Ethernet Camera Printer CD tower
Documentation u Simple Service Discovery Protocol u u Automatic Private IP Addressing u u http: //search. ietf. org/internet-drafts/draftcai-ssdp-v 1 -00. txt http: //www. ietf. org/internet-drafts/draftietf-dhc-ipv 4 -autoconfig-03. txt Multicast DNS (name resolution) u http: //search. ietf. org/internet-drafts/draftmanning-multicast-dns-01. txt
Documentation u White paper u u http: //www. axis. com/products/document ation/Upn. P. doc Home Networking & Universal Plug and Play web sites u u http: //www. microsoft. com/homenet http: //www. upnp. org
Call to Action u u u UPn. P is work in progress! Review your business opportunities with respect to UPn. P Get to understand the principles and general requirements Study released documentation Keep an eye on www. upnp. org More great news to come!
- Slides: 22