Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009...
Transcript of Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009...
![Page 1: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/1.jpg)
Applications Area Open MeetingMonday, 22nd March 2009
Bonjour’sDNS-Based Service Discovery
Stuart Cheshire, Apple
![Page 2: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/2.jpg)
• Addressing• Naming• Browsing
Three Legs of Bonjour Networking
![Page 3: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/3.jpg)
• Self-Assigned Link-Local Addressing– Pick random address in 169.254/16– ARP to see if anyone else is using it– If someone else is using it, try again– Ongoing conflict checking• RFC 3927
“Dynamic Configuration of IPv4 Link-Local Addresses”• http://www.ietf.org/rfc/rfc3927.txt• http://www.zeroconf.org/
Addressing
![Page 4: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/4.jpg)
• Self-Assigned IPv4 Link-Local Addressingfirst appeared in:– Mac OS 8.5, Summer 1998– Windows 98, Summer 1998– Mac OS X 10.0– ZCIP for Linux http://zeroconf.sourceforge.net/• You may know it as Autonet, AutoIP, etc.• IPv6 already has Link-Local Addressing– RFC 2462 “IPv6 Stateless Address Autoconfiguration”– http://www.ietf.org/rfc/rfc2462.txt
IPv4 Link-Local Availability
![Page 5: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/5.jpg)
• Multicast DNS– Pick desired name in ".local." subdomain– Issue Query to see if anyone else is using it– If someone else already using it, pick another– Ongoing conflict checking• draft-cheshire-dnsext-multicastdns-07.txt• http://www.multicastdns.org/
Naming
![Page 6: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/6.jpg)
• Multicast DNS client– Mac OS 9.2– Mac OS X– iPhone & iPod touch– Linux– Bonjour for Windows
http://www.apple.com/support/downloads/bonjourforwindows.html
• Just type– "laserwriter.local." into your Web browser– "ssh mymac.local." into a terminal window
Multicast DNS Availability
![Page 7: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/7.jpg)
• Raising the bar• Should not need to know name in advance
Browsing
![Page 8: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/8.jpg)
• Devices already need:– IPv4 Link-Local Addressing– Multicast DNS• Don’t need more code– Multicast DNS gives us Service Discovery too• draft-cheshire-dnsext-dns-sd-05.txt• http://www.dns-sd.org/
DNS Service Discovery
![Page 9: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/9.jpg)
• DNS Query:
Browsing Via DNS PTR
_ipp._tcp.local. PTR ?
![Page 10: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/10.jpg)
• DNS Response(s):
Browsing Via DNS PTR
_ipp._tcp.local. PTR Sales._ipp._tcp.local.Marketing._ipp._tcp.local.
Engineering._ipp._tcp.local.3rd Floor Copy Room._ipp._tcp.local.
Sales._ipp._tcp.local.Marketing._ipp._tcp.local.
Engineering._ipp._tcp.local.3rd Floor Copy Room._ipp._tcp.local.
![Page 11: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/11.jpg)
• User-Visible Name 3rd Floor Copy Room._ipp._tcp.local.
• Service Type/Service Protocol Name 3rd Floor Copy Room._ipp._tcp.local.
• Domain 3rd Floor Copy Room._ipp._tcp.local.
Components of Service Name
![Page 12: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/12.jpg)
• DNS Queries:
Lookup Via DNS SRV
Sales._ipp._tcp.local. SRV ?Sales._ipp._tcp.local. TXT ?
![Page 13: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/13.jpg)
• DNS Responses:
Lookup Via DNS SRV
Sales._ipp._tcp.local. SRVSales._ipp._tcp.local. TXTmy-printer.local. A
0 0 631 my-printer.local.pdl=application/postscript
169.254.12.34
![Page 14: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/14.jpg)
• On OS X 10.2, iPhone, iPod touch:– System API• Bonjour for Windows
http://www.apple.com/support/downloads/bonjourforwindows.html
• Other Platforms:– Use Apple’s Darwin Open Source– Other Independent Implementations– Implement from spec: draft-cheshire-dnsext-dns-sd-05.txt• http://www.dns-sd.org/
DNS-SD Availability
![Page 15: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/15.jpg)
Wide-Area DNS Service Discovery• Replace “local” with any existing DNS domain
![Page 16: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/16.jpg)
Architecture (Local LAN)
DNS Service Discovery
Multicast DNS
![Page 17: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/17.jpg)
Architecture (Wide Area)
DNS Service Discovery
Discovery
Unicast DNS Queries
Registration
Dynamic DNS Update
![Page 18: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/18.jpg)
Architecture
DNS Service Discovery
Discovery Registration
Dynamic DNS UpdateUnicast Queries
NAT-T TSIG RR Lease
Long Lived Queries
![Page 19: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/19.jpg)
Open Source License
Apache 2.0
![Page 20: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/20.jpg)
![Page 21: Bonjour’s DNS-Based Service DiscoveryApplications Area Open Meeting Monday, 22nd March 2009 Bonjour’s DNS-Based Service Discovery Stuart Cheshire, Apple • Addressing](https://reader033.fdocuments.in/reader033/viewer/2022041603/5e3211fc4eb44006ed1a8325/html5/thumbnails/21.jpg)
Web Sites
Zero Configuration Networkinghttp://www.zeroconf.org/
Multicast DNShttp://www.multicastdns.org/
DNS Service Discoveryhttp://www.dns-sd.org/
For More Information