Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

心满意足 zeroconf

看了半天 zeroconf 相关的文档,终于心满意足。主要是看 Avahi 的介绍以及 IETF 邮件列表的吵架 :D

这真是个好东西,主要应用是设备的自动配置,音乐、文件、书签等等的共享,以及聊天.. 还可以有很多应用,就像 fuse 拥有众多应用一样。zeroconf 的关键词是 decentralized,不需要 DHCP,自行分配 IP;不需要 DNS,使用 mDNS;不需要 directory 服务器,就可以提供/查询服务。想想真是神奇呢。

在 fedora 里面的应用,最印象深刻的是“简单文件共享”,还有 OLPC 中的好几个应用程序!很神奇的东西,当时就想不通是怎么做出来的。看 Avahi 列出的应用程序,包括截图,终于发现自己原来一直被它包围着呢。

http://osnews.com/comment.php?news_id=11628
Linux finally has a free mDNS/DNS-SD implementation (Apple Rendezvous/Bonjour, Zeroconf). Avahi 0.1 has been released yesterday and provides a LGPL'd embeddable mDNS core. See the homepage for more details.



http://en.wikipedia.org/wiki/Zeroconf

Zeroconf or Zero Configuration Networking is a set of techniques that automatically create a usable IPnetwork without configuration or special servers. This allowsunknowledgeable users to connect computers, networked printers, andother items together and expect them to work automatically. WithoutZeroconf or something similar, a knowledgeable user must either set upspecial servers, like DHCP and DNS, or set up each computer's network settings by hand, which is a tedious task, and is challenging for non-technical people.

Zeroconf was pioneered by Apple Computer employee Stuart Cheshire in the company's move from AppleTalk to IP.

Zeroconf currently solves three problems :
* Choose numeric network addresses for networked items
* Figure out which computer has a certain name
* Figure out where to get services, like printing (service discovery)


http://en.wikipedia.org/wiki/Avahi_(software)

Avahi is a system for multicast DNSservice discovery. It allows programs to publish and discover servicesand hosts running on a local network with no specific configuration.For example you can plug into a network and instantly find printers toprint to, files to look at and people to talk to.




http://www.zeroconf.org/ZeroconfAndUPnP.html
相比 UPnP 的优势。当然现在支持 UPnP 的 adsl modem 相当多,还有软设备 <= 我猜是这样

http://www.avahi.org/wiki/AvahiWalkOfFame
一些使用 Avahi 实现 zeroconf 的程序。在 IM 那一页,gaim, ekiga, gizmo 都名列其中~~ 在文件管理器中,有 gnome-vfs, KDE。在 multimedia 中当然是 DAAP 的那几个,rhythmbox, amarok, vlc, KDE。杂项里还有 tomboy 阿帖,有 gnome games, gobby 之类的。那个 gnome games 和 NDS 的联机游戏模式很像哦!

不过说起来 ad hoc network 没有能与 wireless 相比的,与 NDS 的类似也在情理之中。

http://www.avahi.org/wiki/ArchitecturalOverview
结构示意图。还有很多有意思的页面,包括一些代码框架之类的。
http://www.avahi.org/wiki/RunningAvahiClientAsThread
那些 callback 的参数真多!- -
avahi.org 网站上的页面就不再列了,trac wiki 很容易浏览的。


spec 和相关书籍
http://www.zeroconf.org/
http://www.amazon.com/exec/obidos/redirect?path=ASIN%2F0596101007&link_code=as2&camp=1789&tag=zeroconfigurn-20&creative=9325
http://www.multicastdns.org/
http://www.dns-sd.org/



一些杂一点的新闻之类
http://lwn.net/Articles/149036/ the 0.1 release of Avahi, dubbed "Guten Tag."
http://www.redhat.com/archives/rhl-devel-list/2004-March/msg00117.html ESR 很早的传道
http://applications.linux.com/article.pl?sid=06/03/28/1738207 讲到 DAAP,zeroconf 在音乐共享上的应用


几个支持 DAAP 的 java client
http://ourtunes.sourceforge.net/
http://ileech.sourceforge.net/
http://getittogether.sourceforge.net/



Ubuntu 的配置指南很详细
https://help.ubuntu.com/community/HowToZeroconf
Avahi 是 ubuntu 的组件,也是 fedora 默认安装的
http://0pointer.de/blog/projects/zeroconf-ubuntu.html
另一篇 ubuntu 的配置指南,我不知道是不是有问题
http://www.enterprisenetworkingplanet.com/netos/article.php/3618026
这一篇据说配置有问题?是不是 /etc/nsswitch.conf 里面 dns 和 mdns 的顺序有错?
http://tips.linux.com/tips/06/06/15/2012219.shtml?tid=100
简单地用 rhmthybox 做 server+client。不过有人推荐 www.mt-daapd.org 了。还有一个 Tangerine 可以做 server
http://ubuntu.wordpress.com/2006/09/22/share-music-in-a-network-using-avahi-daap/



IETF 上对 mDNS 和 LLMNR 的争论比较激烈,不过关键词都在 wikipedia 对 zeroconf 的描述中了。wikipedia 真是好东西~~
http://www1.ietf.org/mail-archive/web/ietf/current/msg37103.html
http://www.drizzle.com/~aboba/DNSEXT/llmnrfaq.html
Tags: linux, 转载
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments