O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Efficiently distributing data

CoAP also introduces two new communication patterns: multicast and Event Subscription or Observe as it is called in CoAP. Since CoAP is based on UDP and UDP supports multicasting, using the Internet Group Management Protocol, or IGMP, CoAP messages can also be multicast, at least when encryption is not used. This is done by sending CoAP messages to predefined multicast addresses.

For IPv4, the CoAP multicast address is 224.0.1.187. For IPv6, it's [FF02::FD] or [FF05:FD] for the link-local or site-local scope.

Multicasting not only allows for efficient distribution, it also allows clients to find CoAP devices with multicast support by multicasting requests. Multicasting a request and monitoring responses allows ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required