服务发现

Tags
web
Created
Aug 3, 2018 9:45 AM

零配置网络:https://en.wikipedia.org/wiki/Zero-configuration_networking

DNS-SD(DNS based Service Discovery)

https://tools.ietf.org/html/rfc6763

https://developer.apple.com/library/archive/documentation/Networking/Conceptual/dns_discovery_api/Introduction.html

mDNS(Multicast DNS)(基于 DNS-SD)

mDNS协议适用于局域网内没有DNS服务器时的域名解析,设备通过组播的方式交互DNS记录来完成域名解析,约定的组播地址是:224.0.0.251,端口号是5353,mdns协议使用DNS协议一样的数据包。

https://www.npmjs.com/package/mdns

// 组播(Multicast)传输:在发送者和每一接收者之间实现点对多点网络连接。 如果一台发送者同时给多个的接收者传输相同的数据,也只需复制一份的相同数据包。 它提高了数据传送效率。

Bonjour:基于mDNS协议和DNS-SD协议开发实现

https://developer.apple.com/bonjour/

https://blog.csdn.net/yueqian_scut/article/details/52694411

Gossip(还有服务健康报告的需求)

https://www.consul.io/docs/internals/gossip.html

SuperMade with Super