Upload
alfred-marsh
View
258
Download
0
Embed Size (px)
Citation preview
DLNA數位生活網路介紹
明新科技大學資訊管理學系助理教授清華大學自強工業基金會通訊類講師工研院資通所無線通訊技術組顧問麟瑞科技顧問 & 摩鐵科技顧問林文宗博士E-mail: [email protected]: http://wtlin.csie.must.edu.tw/
All rights reserved by Assistant Professor Wen-Tsung Lin. 2
AgendaDLNA introductionDLNA home network architectureDLNA Device ModelGuideline Terminology and ConventionsUPnPConclusion
All rights reserved by Assistant Professor Wen-Tsung Lin. 3
References Acquisition 85 reference items.
https://www.bluetooth.org/ IEEE (802.1D/1Q/802.3/802.11) http://www.wi-fi.org (Test Plan/Spec.) http://www.icea.net/ ISO/IEC, IETF RFCs http://www.upnp.org/ http://www.w3.org/ http://www.microsoft.com/ http://www.atsc.org/ http://www.3gpp.org/ http://thomas.loc.gov http://www.opengroup.org/
DLNA introduction
Digital Living Network Alliance
影片介紹
All rights reserved by Assistant Professor Wen-Tsung Lin. 5
DLNA 源起
All rights reserved by Assistant Professor Wen-Tsung Lin. 6
The DLNA Visions
All rights reserved by Assistant Professor Wen-Tsung Lin. 7
Home Network
All rights reserved by Assistant Professor Wen-Tsung Lin. 8
Digital Content Access
All rights reserved by Assistant Professor Wen-Tsung Lin. 9
Accessing content with amobile device
All rights reserved by Assistant Professor Wen-Tsung Lin. 10
A Connected Environment
ServicesServices
PCs, appliances, and PCs, appliances, and services interconnectservices interconnect
MultimediaMultimediainformationinformation
Technologies Technologies converge,converge,devices don’tdevices don’t
All rights reserved by Assistant Professor Wen-Tsung Lin. 11
Interest in Networking Entertainment Content
All rights reserved by Assistant Professor Wen-Tsung Lin. 12
Trends Consumers are acquiring, viewing and managing an
increasing amount of digital media on devices in the CE, mobile and PC domains (see Figure 1). They want to enjoy this content easily and conveniently – regardless of the source – across different devices and locations in the home.
This trend is fueled by the proliferation of digital media and IP networking and supported by several leading market indicators. Digital device sales: music players, cameras, camcorders, DVD
players, multimedia mobile phones and personal video recorders.
Broadband adoption: DSL and cable Home network adoption: wired and wireless; ad-hoc and
infrastructure configurations
All rights reserved by Assistant Professor Wen-Tsung Lin. 13
Problem Three islands exist in the home
The PC Internet World where PC and PC peripherals communicate.
The CE Broadcast World of set-top boxes and traditional consumer electronics.
The Mobile World of multimedia mobile phones, personal digital assistants, MP3 players, laptop computers and similar devices provides unparalleled connectivity and freedom of movement into and out of the home environment.
Consumers want devices in these three islands to work together in the home, but expectations have largely been unfulfilled.
All rights reserved by Assistant Professor Wen-Tsung Lin. 14
Consumer Challenges Consumer Challenges
Products designed for the home should be easy to install, provide obvious user value and be affordable.
Digital home products must interoperate with each other and with existing CE devices such as TVs and stereos.
Product Developer’s Dilemma Open industry standards are often too flexible – products built by
different vendors all too often fail to interoperate well. Design choices should be narrowed through industry consensus to better achieve interoperability.
Current end-to-end solutions based on proprietary vertical implementations bring products to market early but have little impact on rapidly establishing a new category of products.
All rights reserved by Assistant Professor Wen-Tsung Lin. 15
DLNA Introduction The Digital Living Network Alliance (DLNA) is a cross-industry
organization of leading consumer electronics, computing industry and mobile device companies.
DLNA shares a vision of a wired and wireless interoperable network of Personal Computers (PC), Consumer Electronics (CE) and mobile devices in the home and on the road, enabling a seamless environment for sharing and growing new digital media and content services. DLNA is focused on delivering interoperability guidelines based on open industry standards to complete the cross industry digital convergence.
In the DLNA digital home, it will be common for consumers to: Easily acquire, store and access digital music from almost anywhere in
the home Effortlessly manage, view, print and share digital photos Take favorite content anywhere to share with family and friends Enjoy distributed, multi-user content recording and playback
All rights reserved by Assistant Professor Wen-Tsung Lin. 16
DLNA Interoperability Guidelines
All rights reserved by Assistant Professor Wen-Tsung Lin. 17
Introduction The DLNA Home Networked Device Interoperability Guidelines are
use case driven and specify the interoperable building blocks that are available to build platforms and software infrastructure. They are focused on interoperability between the devices for personal media uses involving imaging, audio and video.
The DLNA Home Networked Device Interoperability Guidelines has been created in a unique cross-industry effort that combined the efforts of over 100 Consumer Electronics, PC industry and Mobile Device companies from around the world who worked together with the aim of achieving the world's first substantial platform for true interoperability between personal computer and consumer electronic devices.
The Interoperability Guidelines provide product developers with a long-term architectural view, plus specific guidance for IP-networked platforms, devices and applications in the home.
All rights reserved by Assistant Professor Wen-Tsung Lin. 18
Functional Components & Technology Ingredients
All rights reserved by Assistant Professor Wen-Tsung Lin. 19
StrategyTo deliver interoperability in the digital
home, DLNA has focused on three key elements.Industry collaborationStandards-based interoperabilityCompelling products
All rights reserved by Assistant Professor Wen-Tsung Lin. 20
The DLNA Guidelines Creation Process
All rights reserved by Assistant Professor Wen-Tsung Lin. 21
Key Technology Components Networking and Connectivity Device and Service Discovery and Control Media Format and Transport Model Media Management, Distribution, and Control Digital Rights Management / Content Protection Manageability
All rights reserved by Assistant Professor Wen-Tsung Lin. 22
DLNA Media Formats
All rights reserved by Assistant Professor Wen-Tsung Lin. 23
DRM and Link Protection Link protection allows for secure play out of
premium content hosted in a DRM system. For example, a link protection enabled DMP (player)
can play DRM-protected content that is stored on a DMS (server).
Figure illustrates examples of devices that contain DRM and devices that only support link protection.
DLNA home network architecture
All rights reserved by Assistant Professor Wen-Tsung Lin. 25
DLNA Home Network Architecture
All rights reserved by Assistant Professor Wen-Tsung Lin. 26
DLNA Home Network Architecture
Networking and Connectivity Wired/Wireless IPv4 protocol suite Network Quality of Service
Device Discovery and Control UPnP Device Architecture
Media Management UPnP AV v1 Printer
Media Formats Image Audio XHTML Print documents
Media Transport HTTP 1.0/1.1 RTP
DLNA Device Model
All rights reserved by Assistant Professor Wen-Tsung Lin. 28
DLNA Device Model These guidelines address the requirements of devices wi
th differing environmental characteristics. home network devices mobile handheld devices
Home Network Devices (HNDs) and Mobile Handheld Devices (MHDs) are Device Categories that have a differing set of requirements in media formats and network connectivity.
To support interoperability between Home Network Devices and Mobile Handheld Devices, a Home Network Device to meet all the requirements for the corr
esponding Mobile Handheld Device a Mobile Handheld Device to meet all the requirements for the c
orresponding Home Network Device
All rights reserved by Assistant Professor Wen-Tsung Lin. 29
Device Categories In most cases that may not be feasible, so another way
to achieve interoperability is via a group of devices that will be able to provide bridging or content transformation services between these two Device Categories. Bridging network connectivity between the MHD and the HND
Device Categories Media format interoperability services between the MHD and the
HND Device Categories In summary,
Each is uniquely optimized for the requirements of a particular environment.
The device guidelines focus on interoperability of devices within a Device Category.
There are guidelines for devices which facilitate interoperability between Device Categories.
A device may choose to be a member of multiple Device Categories.
All rights reserved by Assistant Professor Wen-Tsung Lin. 30
DLNA Device Model Terms Hierarchy
All rights reserved by Assistant Professor Wen-Tsung Lin. 31
Device Model Elements (I) Device Category
An aggregation of device classes with common environmental characteristics (e.g. mobile devices) and sharing System Usages that enable home networking use case scenarios.
A single physical device may fall into multiple Device Categories. System Usage
describes a device interaction model between Device Classes and/or Device Capabilities. System Usages are derived when enabling home networking use case scenarios.
Device Class Device Functions (at least one) aggregated to be used in a
System Usage that enables home networking AV use case scenarios.
All rights reserved by Assistant Professor Wen-Tsung Lin. 32
Device Model Elements (II) Device Function
A Device Function is an operational component at the Device Discovery and Control layer of the DLNA architecture such as a "UPnP Device".
Device Classes and Device Capabilities are composed of a set of Device Functions.
Device Capability is a set of Device Functions (at least one) aggregated to be used
in a System Usage that is enabling home networking AV use case scenarios.
Device Option Provides optional extensibility to an existing Device Class definiti
on, such as upload functionality added to a MediaServer Device (MSD), or it provides a new optional Device Function to the DLNA architecture, such as RTP.
A Device Option differs from a Device Class or Device Capability in that it normally enables a Device Class or Device Capability to perform an existing System Usage in a different way (e.g., RTP).
All rights reserved by Assistant Professor Wen-Tsung Lin. 33
Device Functions IP Connectivity
Network Connectivity and Network stack (Section 7.1). UPnP Device and UPnP Control Point (UPnP CP)
Device Discovery and Control based upon the UPnP Device Architecture (Section 7.2).
UPnP AV MediaServers (MSD), UPnP AV MediaServer Control Point (MSCP), UPnP AV MediaRenderer (MRD), UPnP AV MediaRenderer Control Point (MRCP), UPnP Printer Device (PrD), and UPnP Printer Control Point (PrCP) Media Management (Section 7.3).
Media Transport Server and Media Transport Client Media Transport (Section 7.4).
Content Interoperability Guidelines Media Formats volume [77].
All rights reserved by Assistant Professor Wen-Tsung Lin. 34
裝置種類裝置種類是用系統用法分享普通的環境特性 (需求)的一個裝置班級的配列 .家庭網路裝置 (HNDs)移動的手提裝置 (MHDs)家庭下層構造裝置 (HID)
All rights reserved by Assistant Professor Wen-Tsung Lin. 35
裝置類別和角色 (I)數位媒體伺服器 (DMS) (HND)
the 2-Box Pull System Usage 數位媒體播放器 (DMP) (HND)
the 2-Box Pull System Usage 數位媒體發訊器 (DMR) (HND) 數位媒體控制器 (DMC) (HND) 數位媒體印表機 (DMPr) (HND) 移動的數位媒體伺服器 (M-DMS) 移動的數位媒體播放器 (M-DMP) 移動的數位媒體上傳 (M-DMU) 移動的數位媒體下載 (M-DMD) 移動的數位媒體控制人員 (M-DMC)
All rights reserved by Assistant Professor Wen-Tsung Lin. 36
裝置能力和角色 (II)推動控制人員 (+PU+)
推動當地內容到 DMR.
印刷控制人員 -1 (+PR1+)控制 DMPr 列印影像內容 .
印刷控制人員 -2 (+PR2+)控制 DMPr 列印影像內容 .
一個上傳控制人員 (+UP+)將內容送到 DMS 或 M - DMS 確認上傳 .
一個下載控制人員 (+DN+)本身下載來自 DMS 或 M - DMS 的內容 .
All rights reserved by Assistant Professor Wen-Tsung Lin. 37
系統用法2-Box Pull System Usage2-Box Push System Usage3-Box System Usage2-Box Printing System Usage3-Box Printing System UsageDownload System UsageUpload System Usage
All rights reserved by Assistant Professor Wen-Tsung Lin. 38
2-Box Pull System Usage
1. 喚起 UPnP 行動瀏覽而且選擇內容 .2. 請求錄音內容再生 .3. 運送內容到 DMP 或 M - DMP.
All rights reserved by Assistant Professor Wen-Tsung Lin. 39
2-Box Push System Usage
1. 喚起 UPnP 行動建立錄音再生會議 .2. 請求錄音內容再生 .3. 運送內容到 DMR.
All rights reserved by Assistant Professor Wen-Tsung Lin. 40
3-Box System Usage
1. 喚起 UPnP 行動瀏覽而且選擇內容 .2. 喚起 UPnP 行動查證 DMR 有能力提出挑選的內容然後建立一個為連接 DMR 和 DMS 之間挑選的內容或 M - DMS.3. 請求錄音內容再生 .4. 運送內容到 DMR.
All rights reserved by Assistant Professor Wen-Tsung Lin. 41
2-Box Printing System Usage
1. 喚起對 DMPr 的 UPnP 行動藉由提供網址開始印刷工作 XHTML -印刷的文件 .2. DMPr 獲得來自印刷控制人員 -1 的 XHTML -印刷的文件 .3. DMPr 請求來自印刷控制人員 1 的影像內容 .4. 印刷控制人員 1 以影像內容回應 .
All rights reserved by Assistant Professor Wen-Tsung Lin. 42
3-Box Printing System Usage
1. 喚起 UPnP 行動到瀏覽而且選擇影像內容 .2. 為此準備網址挑選的影像內容而且在 XHTML -印刷的參考網址証明 .3. 在 DMPr 上喚起 UPnP 行動藉由提供網址給 XHTML -印刷的文件開始印刷工作 .4. DMPr 獲得來自印刷控制人員 -2 的 XHTML -印刷的文件 .5. DMPr 請求來自 DMS 或 M - DMS 的影像內容 .6. DMS 或 M - DMS 以影像內容回應 .
All rights reserved by Assistant Professor Wen-Tsung Lin. 43
Download System Usage
1. 喚起 UPnP 行動發現滿足的下載 .2. 請求需要被下載的內容 .3. 運送內容到下載控制人員或 M - DMD.
All rights reserved by Assistant Professor Wen-Tsung Lin. 44
Upload System Usage
1. Invoke UPnP actions to create a CDS entry for the content to be uploaded.2. Transport the content being uploaded to the DMS or the M-DMS.
All rights reserved by Assistant Professor Wen-Tsung Lin. 45
Home Infrastructure Device (HID) System Usage (I)
2-Box Pull System Usage Interaction Model Between Device Categories
All rights reserved by Assistant Professor Wen-Tsung Lin. 46
Home Infrastructure Device (HID) System Usage (II)
M-NCF Bridging the Network Connectivity gap between MHD and HND Device Categories
All rights reserved by Assistant Professor Wen-Tsung Lin. 47
Home Infrastructure Device (HID) System Usage (III)
Media Interoperability Between Device Categories
All rights reserved by Assistant Professor Wen-Tsung Lin. 48
Guideline Terminology and Conventions
Guideline Font Usage Conventions Hyperlinks to reference citations are indicated as
[number]. For example [1], [20], … HTTP headers and methods are always in bold font,
such as CACHE-CONTROL. UPnP action names are indicated as: [Service
acronym]:[action name], such as CDS:Browse. Special terms may be italicized. Sometimes a
guideline requirement will define a term for use within that guideline and the term will be italicized.
All rights reserved by Assistant Professor Wen-Tsung Lin. 49
Guideline Terminology and Conventions
Guideline Syntax Notation Conventions Linear whitespace (LWS) characters, such as
carriage returns, spaces, tabs, or line feeds, are not implied anywhere in any of the syntax (BNF) definitions used within the Interoperability Guidelines.
The use of LWS characters is restricted within the DLNA Interoperability Guideline unless explicitly specified in any of the syntax definitions with reference to UPnP HTTP communications.
All rights reserved by Assistant Professor Wen-Tsung Lin. 50
Guideline Terminology and Conventions
Guideline Normative and Informative Text ConventionsNormative text includes introductory text
before guideline requirement tables, but testable requirements are only contained within guideline requirement table entries.
All rights reserved by Assistant Professor Wen-Tsung Lin. 51
Guideline Terminology and Conventions
DLNA XML Namespaces & Schemas
All rights reserved by Assistant Professor Wen-Tsung Lin. 52
Appendix Network Infrastructure Device (NID) Tuner Representation UPnP Devices with Multiple Network Interfaces Printer Support Example Applications of the Uniform Client Data
Availability Model Auto-IP Developer Guidance Mobile Network Connectivity and Power Saving
Operation Principles RTP Protocol Stack and SDP/RTSP/RTCP Parameters
UPnP
All rights reserved by Assistant Professor Wen-Tsung Lin. 54
Abstract UPnP is a distributed computing framework based on
Web technologies that is intended for use in local area networks -- especially home networks.
Over the years, valuable lessons have been learned from the efforts of various companies to develop and deploy products based on this technology.
All rights reserved by Assistant Professor Wen-Tsung Lin. 55
Introduction Digital Content: audio, images, MP3, web content, etc. Games and entertainment Home automation (remote controls, security, environmen
tal controls, etc.) Communication: VOIP, video calls, instant messaging, te
le-presence, ambient presence Home office applications Health Care in place (assisted living and care-giving) Education Automobiles as an integrated, though mobile, part of ho
mes
All rights reserved by Assistant Professor Wen-Tsung Lin. 56
IntroductionOur vision of ubiquitous or pervasive
computing is captured by the following quote from the IEEE Pervasive Computing Magazine…
All rights reserved by Assistant Professor Wen-Tsung Lin. 57
Challenges Consumers make bad network and security
administrators Security issues are not limited privacy or
confidentiality, they include physical safety Access control must be flexible enough to
accommodate different roles including owner, family, friend, visitor, maintenance/support, hostile, unknowns
Smart homes will be incrementally deployed and their configuration will be moderately dynamic
All rights reserved by Assistant Professor Wen-Tsung Lin. 58
Challenges Transient connectivity will be a recurring
problem Whenever possible no infrastructure services
should be assumed Legacy products need to be supported and new
products should be future proof Third party interoperability is essential Components will fail – someone has to figure out
what is broken and how to fix it
All rights reserved by Assistant Professor Wen-Tsung Lin. 59
UPnP forum UPnP – Universal Plug and Play
is a technology intended for smart homes, small offices and other types of local area networks.
It was originally created by Microsoft Corporation in 1999. UPnP is now under the control of the UPNP forum (htt
p://www.upnp.org), an independent organization with over 770 members.
All rights reserved by Assistant Professor Wen-Tsung Lin. 60
DLNA The Digital Living Network Alliance (DLNA)
a consortium of over 240 consumer electronics companies whose goal is to develop the standards needed for interoperable networked products for Digital Homes.
All rights reserved by Assistant Professor Wen-Tsung Lin. 61
Protocol Stack
All rights reserved by Assistant Professor Wen-Tsung Lin. 62
Brief summery Discovery is Step 1 in UPnP networking.
Discovery comes after addressing (Step 0) where devices get a network address. Through discovery, control points find interesting devices.
Discovery enables description (Step 2) where control points learn about device capabilities,
control (Step 3) where a control point sends commands to devices
eventing (Step 4) where control points listen to state changes in devices
presentation (Step 5) where control points display a user interface for devices.
All rights reserved by Assistant Professor Wen-Tsung Lin. 63
UPnP 0. Addressing
IPv4 and IPv6 auto-configuration protocols 1. Discovery
SSDP (Simple Service Discovery Protocol) 2. Description
XML, data types, device and service descriptions 3. Control
SOAP (Simple Object Access Protocol) 4. Events
GENA (General Event Notification Architecture) 5. Presentation
HTML and vendor extensions
All rights reserved by Assistant Professor Wen-Tsung Lin. 64
A Connected Environment
ServicesServices
PCs, appliances, and PCs, appliances, and services interconnectservices interconnect
MultimediaMultimediainformationinformation
Technologies Technologies converge,converge,devices don’tdevices don’t
All rights reserved by Assistant Professor Wen-Tsung Lin. 65
The Reality
Tough problems…Tough problems…
ConnectivityConnectivitySimplicitySimplicity
ReliabilityReliability
PrivacyPrivacy
Making it meaningful to Making it meaningful to consumers?consumers?
CommunityCommunityConvenienceConvenience
CommunicationCommunication
Personal securityPersonal security
All rights reserved by Assistant Professor Wen-Tsung Lin. 66
UPnP: Invisible Networking
Enable devices to be automatically configured when they…Connect to a network Communicate their capabilities Control information to any appropriate control
application
Devices Just “Work” When They are Connected
All rights reserved by Assistant Professor Wen-Tsung Lin. 67
802.11
PowerLine
Internet
HomePNA*
Bluetooth**
1394
Complex networking! Powerful, Invisible networking!
UPnP Network
Internet
Vision Create a Plug and Play experience for consumers to:
Easily share an Internet connection Enjoy digital multimedia content on preferred devices Securely access content in the home from anywhere
All rights reserved by Assistant Professor Wen-Tsung Lin. 68
What is Universal Plug and Play Technology?
Provides invisible home networkingArchitectural framework for self-
configuring, self-describing devicesLeverages existing Internet technologiesEnables dynamic peer-to-peer networking
Key to making the connected home experience Affordable, mainstream reality for usersSignificant opportunity for the industry
All rights reserved by Assistant Professor Wen-Tsung Lin. 69
UPnP StrategyJust send data over the network
No executablesMinimize version issuesMinimize security issues
Allows implementation to be platform & vendor specific
Be agnostic re: programming language, OSUpdate implementation w/o (without) affecting interop
Improve performanceReduce footprintImprove capabilities
Agree on meaning / format of dataChoose substrate of proven protocolsDefine device (service) specific protocols in a Forum
All rights reserved by Assistant Professor Wen-Tsung Lin. 70
Business Opportunities: Huge Growth!
Non-PC devices (4 billion embedded microprocessors in 1999)Rapidly increasing Internet adoption ratesStrong uptake in Internet broadband deployments64% of U.S. PC homes have television and PC in the same room34% of U.S. PC homes have 2 or more computersBy 2004
27MM networks installed48.5MM nodes / year run rateServices a $3BB / yr business
0
10000
20000
30000
1999 2000 2001 2002 2003 2004
Home Network Install Base
ROWAsiaEuropeNorth America
Source: Cahners-Instat
All rights reserved by Assistant Professor Wen-Tsung Lin. 71
IP telephony application listens for IP telephony application listens for incoming callsincoming calls
UPnP Residential Gateway Example
End User Benefits: Automates real-time setup and configuration of Internet applicationsMulti-player gaming, streaming audio/video, VoIPEnables software to automatically setup and configure the NAT and Firewall End user no longer needs to configure network
Service Provider Benefits: Eliminates support calls for NAT, firewall, gaming configuration Enables customer self-provisioning for enhanced servicesReduces barriers to deploy voice, video, gaming, etc.
Application re-configures, Internet Application re-configures, Internet Gateways, NAT and Firewall on a Gateways, NAT and Firewall on a per-call basisper-call basis
Internet
All rights reserved by Assistant Professor Wen-Tsung Lin. 72
Audio & Video Example
Media Server
1. Discovery of devices and services2. Browsing of content3. Selection of streaming protocols4. Streaming and Playback (out of band*)
InternetContent
CDs, DVDs, Flash Cards
LocalContent
End User Benefits:Discover A/V content on all UPnP devices and PCs and share across home networkStream content easily from any device to any device on home networkControl point offers rich, easy to use interface for creating and managing mediaSupports DVD, CD, play list, photo album, live broadcast, etc
Manufacturer and Service Provider Benefits:Highly extensible – any data type, any transfer protocol, any combination of server, render, and control pointHighly scalable – ultra low resource devices (cameras, EPF) up to high-end servers (PCs, media servers, Internet, broadcasts, PVR).
Stereo
TV
Picture Frame
Remote Control
* Out of band = not UPnP Constrained
UPnP devices added to network and discovers
media content
All rights reserved by Assistant Professor Wen-Tsung Lin. 73
End User BenefitsNo need to install or share printer on the PC or and manually connect all devices to the network (no networking knowledge needed)Automatically discover printer/scanner and no need to search for new imaging devices added to the network.
Manufacturer and Retailer BenefitsReduce customer and service support with driver questions and how to network printer on home networkAbility to print and scan from an extended range of devices not support previously (Pocket PCs, Cell Phones, Web Tablets)
UPnP Imaging Example
UPnP NetworkUPnP Network
Plug Printer/Scanner directly into any available network port
Imaging devices are discovered and can
immediately be used (no drivers or setup needed)
New wireless devices enter network and have
instant access to printer/scanner
WiFi (802.11b)WiFi (802.11b)
All rights reserved by Assistant Professor Wen-Tsung Lin. 74
End User BenefitsCustomizable and easy control of heating, venting, AC unit, motion sensors, lighting and security (personal environment presets)Save money on energy bills (set temperature automatically from occupancy or depending on outside temperature)Synchronize home settings with PC programs (Outlook calendar, Internet weather)Enable secure remote access into the home via the Internet and control UPnP devices.
Manufacturer and Retailer BenefitsUPnP enabled automation systems add much more functionality over existing proprietary control panels (more desirable over existing technology)New opportunities for manufacturers to extend additional features available to the PC, Internet, or other devices (more revenue with new business models, software and service offerings)
UPnP Automation Example
HVAC Unit Thermostat
UPnP NetworkUPnP Network
UPnP bridge connects non-UPnP devices to network
Synchronize temperature settings with Outlook, the Internet (a weather
web site) or other UPnP devices (UPnP alarm clock)
Use wireless device (Pocket PC) to control
HVAC system from anywhere in the home
All rights reserved by Assistant Professor Wen-Tsung Lin. 75
Benefits of UPnPWidely supported networking specification
No device configuration, just Plug and Play
Small footprint software component on the device
Utilizes standard Internet protocols to talk to LAN
Independent of OS, language, or physical connectivity
Robust and dependable
Growing value of UPnP logo
UPnP simplifies device connectivity for makers and users of devices
Advantages
All rights reserved by Assistant Professor Wen-Tsung Lin. 76
UPnP is Cost Effective
Lightweight by Today’s StandardsTCP/IP stack is about 35K bytes of x86 code and 29K gates
Embedded HTTP Web server is about 25K bytes of x86 code and 64K gates
An entire OS can fit into one Read Only Memory (ROM)
No Royalties for Basic UPnP InteroperabilityOther proprietary solutions require significant royalties
UPnP Enables Remote User Interface Via Browser
Cheaper than integrated LCD panels and keypads
Authored with HTML, XML, and scripting
For Appliances and Smart Objects
Advantages
All rights reserved by Assistant Professor Wen-Tsung Lin. 77
Bottom Line Impact
Improve customer experience = repeat sales
Enhance interop between your devices and others
Expand relationships with other Forum members
Reduce $$ spent on customer support
Reduce your time to market UPnP adds value to your bottom line
Improving Your Business
All rights reserved by Assistant Professor Wen-Tsung Lin. 78
UPnP Control Point vs. DeviceThree Classes of UPnP Entity
User Control Point
Controlled Device
Bridge
ControlledDevice
User ControlPoint
• User Control Point• Controlled Device• Bridge
Non-UPnPDevice
How UPnP Works
All rights reserved by Assistant Professor Wen-Tsung Lin. 79
Steps to UPnP Networking
0 Control point and device obtain an address to participate in the network
1 Control point finds all devices and device advertises its availability2 Control point learns about device capabilities3 Control point invokes actions on device4 Control point listens to state changes of device5 Control point controls device and/or views device status using an
HTML UI
0 Addressing0 Addressing
1 Discovery1 Discovery
2 Description2 Description
5 Presentation5 Presentation4 Eventing4 Eventing3 Control3 Control
How UPnP Works
All rights reserved by Assistant Professor Wen-Tsung Lin. 80
UPnP ArchitectureUPnP Architecture
0 Addressing0 Addressing
1 Discovery1 Discovery
2 Description2 Description
5 Presentation5 Presentation4 Eventing4 Eventing3 Control3 Control
UPnP NetworkSearchRequest
DeviceReply
How UPnP Works
Discovery: SSDPDiscovery: SSDP
All rights reserved by Assistant Professor Wen-Tsung Lin. 81
UPnP ArchitectureUPnP Architecture
0 Addressing0 Addressing
1 Discovery1 Discovery
2 Description2 Description
5 Presentation5 Presentation4 Eventing4 Eventing3 Control3 Control
UPnP Network
DeviceAdvertisement
How UPnP Works
Discovery: SSDPDiscovery: SSDP
All rights reserved by Assistant Professor Wen-Tsung Lin. 82
Description: XMLDescription: XML
0 Addressing0 Addressing
1 Discovery1 Discovery
2 Description2 Description
5 Presentation5 Presentation4 Eventing4 Eventing3 Control3 Control
UPnP NetworkGet
Description
Device DescriptionXML Document
UPnP ArchitectureUPnP Architecture How UPnP Works
All rights reserved by Assistant Professor Wen-Tsung Lin. 83
Control: SOAPControl: SOAP
0 Addressing0 Addressing
1 Discovery1 Discovery
2 Description2 Description
5 Presentation5 Presentation4 Eventing4 Eventing3 Control3 Control
UPnP NetworkAction:
SetPowerOn
Action ResultVCR
Turns On
UPnP ArchitectureUPnP ArchitectureHow UPnP Works
All rights reserved by Assistant Professor Wen-Tsung Lin. 84
Eventing: GENAEventing: GENA
0 Addressing0 Addressing
1 Discovery1 Discovery
2 Description2 Description
5 Presentation5 Presentation4 Eventing4 Eventing3 Control3 Control
UPnP Network
Subscribe
UPnP ArchitectureUPnP ArchitectureHow UPnP Works
All rights reserved by Assistant Professor Wen-Tsung Lin. 85
UPnP ArchitectureUPnP Architecture
0 Addressing0 Addressing
1 Discovery1 Discovery
2 Description2 Description
5 Presentation5 Presentation4 Eventing4 Eventing3 Control3 Control
UPnP Network
Action:SetPowerOn
Notify:PowerOn = True
VCRTurns On
Eventing: GENAEventing: GENA
How UPnP Works
All rights reserved by Assistant Professor Wen-Tsung Lin. 86
UPnP ArchitectureUPnP Architecture
0 Addressing0 Addressing
1 Discovery1 Discovery
2 Description2 Description
5 Presentation5 Presentation4 Eventing4 Eventing3 Control3 Control
UPnP Network
HTML UI
GetPresentation
Web Browser
How UPnP Works
Presentation: HTMLPresentation: HTML
All rights reserved by Assistant Professor Wen-Tsung Lin. 87
Control & EventingNetworking stack
Discovery server
Description server
Presentation server
Control & Eventing Services
IP
TCPUDP
HTTPMU HTTP
Discovery Presentation
Description
Anatomy of a UPnP DeviceHow UPnP Works
All rights reserved by Assistant Professor Wen-Tsung Lin. 88
Microsoft Windows® UPnP Support
Windows ME First operating system to include UPnP support Control Point API
Rich set of interfaces for discovering, controlling and receiving events from devices.
Shell integration UPnP device icons displayed in My Network Places folder Double clicking on the device permits Web-based control
Windows XP Expands UPnP support beyond Windows ME Provides UPnP-enabled NAT traversal support Complements other extensive home networking support
How UPnP Works
All rights reserved by Assistant Professor Wen-Tsung Lin. 89
Windows UPnP Users Interface
How UPnP Works
All rights reserved by Assistant Professor Wen-Tsung Lin. 90
Non-profit industry standards consortium
Framework for efficient industry collaboration
Develop Device Control Protocols (DCPs) for a broad class of devices
Provide for the test qualification and interoperability of UPnP devices
A market development organizationPromotion, evangelism and marketing activities to promote UPnP brand recognition worldwide
PragmaticOpen to all
No cost to participate in Forum
Simple intellectual property policies
The UPnP ForumUPnP Forum
All rights reserved by Assistant Professor Wen-Tsung Lin. 91
UPnP Resources – Tool kits to build products
UPnP Forum www.upnp.org
Allegro Software www.allegrosoft.com
Gatespace www.gatespace.com
Intel www.intel.com/ial/upnp
Metro link www.metrolink.com
Microsoft www.microsoft.com/hwdev/upnp www.microsoft.com/homenet
Virata www.virata.com/products/upnp.htm
Advantages
All rights reserved by Assistant Professor Wen-Tsung Lin. 92
Universal Plug and Play Forum Steering Committee
Provide leadership Introduce working groups, appoint chairpersons, and monitor
progress Help accelerate schedules and resolve any working committee
logjams Approve standardization of device schema submitted by working
groups
Working Groups Groups consist of: A/V, Appliances, Home Automation &
Security, Imaging, and Internet Gateway Create device schema Submit device schema for standardization
Participant Roles
UPnP Forum
All rights reserved by Assistant Professor Wen-Tsung Lin. 93
Universal Plug and Play Forum Technology Committee
Works directly with the various working groups to produce efficient standards for each class of device
Assists in the development and guidance of developing UPnP technology for new working groups
Marketing Committee Builds the brand of UPnP for logo’s products Creates programs for UPnP Forum Member
companies to become involved through various activities.
UPnP Forum
Participant Roles
All rights reserved by Assistant Professor Wen-Tsung Lin. 94
Discovery
All rights reserved by Assistant Professor Wen-Tsung Lin. 95
Discovery: Protocol stack
All rights reserved by Assistant Professor Wen-Tsung Lin. 96
Discovery: Protocol stack
All rights reserved by Assistant Professor Wen-Tsung Lin. 97
Description
All rights reserved by Assistant Professor Wen-Tsung Lin. 98
Description: Protocol stack
All rights reserved by Assistant Professor Wen-Tsung Lin. 99
Control
All rights reserved by Assistant Professor Wen-Tsung Lin. 100
Control: Protocol stack
All rights reserved by Assistant Professor Wen-Tsung Lin. 101
Eventing
All rights reserved by Assistant Professor Wen-Tsung Lin. 102
Eventing: Protocol stack
All rights reserved by Assistant Professor Wen-Tsung Lin. 103
Presentation
All rights reserved by Assistant Professor Wen-Tsung Lin. 104
Presentation: protocol stack
UPnP AV Architecture
All rights reserved by Assistant Professor Wen-Tsung Lin. 106
Introduction This document describes the overall UPnP AV
Architecture, which forms the foundation for the UPnP AV Device and Service templates.
The AV Architecture defines the general interaction between UPnP Control Points and UPnP AV devices.
It is independent of any particular device type, content format, and transfer protocol. It supports a variety of devices .
The following sections describe the AV Architecture and how the various UPnP AV devices and services work together to enable various end-user scenarios.
All rights reserved by Assistant Professor Wen-Tsung Lin. 107
Goals To support arbitrary transfer protocols and content
formats. To enable the AV content to flow directly between
devices without any intervention from the Control Point. To enable Control Points to remain independent of any
particular transfer protocol and content format. This allows Control Points to transparently support new protocols and formats.
Scalability, i.e. support of devices with very low resources, especially memory and processing power as well as full-featured devices.
All rights reserved by Assistant Professor Wen-Tsung Lin. 108
Overview (I)
All rights reserved by Assistant Professor Wen-Tsung Lin. 109
Overview (II)
All rights reserved by Assistant Professor Wen-Tsung Lin. 110
Playback architecture
All rights reserved by Assistant Professor Wen-Tsung Lin. 111
Playback architecture (cont’d)Media Server
Content Directory Service ConnectionManager Service (Optional) AVTransport Service(Optional)
Media Renderer RenderingControlService ConnectionManager Service AVTransport Service (Optional)
Control Point
Conclusion
All rights reserved by Assistant Professor Wen-Tsung Lin. 113
ConclusionsDLNA guidelines
architecturedevice model
UPnPdevice architectureSSDPGENASOAPHTTP
UPnP AV architecture