CoAP

(CoAP)

An application protocol designed for constrained devices, with semantics close to HTTP over UDP.

AdvancedApplication protocol

Educational content in scientific-draft form; a specialist should review it before it is adopted as an academic reference. No measurement or performance result that was not actually obtained is shown here.

Protocol card

TransportUDP
RangeDepends on the network
Data rateDepends on the network
Power consumptionLow overhead
TopologyClient–server

How it works

A lightweight request/response model with support for observation (Observe) and acknowledgement.

Security

Usually secured through DTLS.

Role in AIoT

A lightweight alternative to HTTP on small devices.

Use cases

  • Very constrained devices

Advantages

  • Lightweight
  • Close to REST

Limitations

  • Less tool support than HTTP
  • UDP handling by firewalls

Official links

RFC 7252

Official external links open in a new window; they were not checked automatically, so if a page address changes, go back to the official organisation's site.

References

  1. Z. Shelby, K. Hartke, C. Bormann. The Constrained Application Protocol (CoAP) — RFC 7252. RFC Editor (IETF) (2014). DOI Link not checked automatically

Simulations and labs run inside your browser. Nothing you enter and none of the conversations is stored on the server. Privacy policy