ZeroConf

My wiki notes on Zeroconf: link-local addresses, mDNS, LLMNR, DNS-SD, UPnP/SSDP, SLP, Bonjour and Avahi.

Translation of the original in Spanish. Read it in: CatalàCastellano

This page was on the oriolrius.cat wiki (2010–2012). I recover it here as it was. I announced it in Zeroconf - four notes that may be useful.

  • Zeroconf or Zero Configuration Networking is a set of techniques that allow creating an IP network automatically, without configuration or special servers.

  • Automatic Private IP Addressing or APIPA, allows users without technical knowledge to connect computers, network printers and other devices and make them work.

  • Selects an IP address for the network devices.

  • Discovers which computer has a given name. Two ways:

    • MulticastDNS (mDNS) - the most used one, not standardised
      • Allows a device to select a domain name for the TLD: .local and announce it via a special multicast address
      • mDNS is compatible with DNS-SD
    • Link-local Multicast Name Resolution (LLMNR) - from MS, less used and in the process of being standardised by the IETF
      • The current LLMNR draft allows a network device to select any domain name
  • Discovers where the services are, such as printing.

    • DNS-SD:
      • Apple protocol
      • supported by several Apple devices and other brands
      • considered simpler to implement than SSDP because it uses DNS and not HTTP
      • uses the DNS records SRV - RFC 2782, TXT and PTR to report the services (SIN - Service Instant Names)
    • UPnP
      • SSDP - Simple Service Discovery Protocol
      • Used by WXP and some devices
      • considered complex despite the name
      • uses HTTP notifications with a service type URI and a unique service name (USN - Unique Service Name)
      • service names regulated by the Universal Plug and Play Steering Committee
    • SLP (Service Location Protocol)
      • RFC 2608 standard
      • ignored by the big manufacturers, except Novell

Apple Bonjour

  • most widely adopted Zeroconf solution
  • IPv4 link-local
  • mDNS
  • DNS-SD

Avahi - Open Source implementation

  • project site
  • active OS project
  • mDNS
  • DNS-SD
  • uses D-BUS
  • default daemon in most linux distributions
  • compatible with Apple Bonjour, pass conformance test suite
  • Drops all privileges and runs as user "avahi"
  • IPv4 and IPv6 support
  • chroot support
  • Support for loading static service definitions from XML fragments
  • Ability to reflect mDNS traffic between multiple subnets
  • Ability to configure a unicast DNS server automatically from server data published on the LAN
  • Compatibility libraries implementing a subset of the HOWL and Apple Bonjour APIs - needed to get IP address in LAN
  • nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing host name resolution via Multicast DNS (aka Zeroconf, aka Apple Rendezvous, aka Apple Bonjour), effectively allowing name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local.

References