Skip to content

University of Michigan-Dearborn

Smart-lock messaging over four protocols, measured

A messaging system for a smart lock, built over four protocols, with its timings measured at the packet level and the MQTT version published at IEEE ICICS 2022.

Sector
Research, Internet of Things
Scale
University research lab
Role
Built the proofs of concept and measured them
Stack
  • HTTP
  • MQTT
  • WebSocket
  • CoAP
  • Python
  • Wireshark
A smart lock is a small network: a phone sends a command, it passes through other parts of the system, and a response comes back.

Which messaging protocol should those parts use, and how quickly does a message actually travel?

The same message flow was built as a proof of concept over four protocols: HTTP, MQTT, WebSocket and CoAP.
  • Timings were measured from network traffic captured in Wireshark, a tool that records every packet sent.
  • The MQTT version's requirements, design, implementation and performance were written up and published.
Under 10 ms: a message passing between the system's internal nodes.

About 34 ms: a full request and its response, measured at the application layer.

For scale, usability research puts the limit for a response to feel instantaneous at about 100 ms. Both numbers leave most of that budget for the rest of the app.

Both were measured in a lab setting. On a real home network, latency changes with network quality and with how delivery is configured, so the same measurement should be repeated on the network a product will actually use.

What we would use today · Published · Sources

What we would use today

Consumer smart locks have largely moved to Matter over Thread, which lets one lock work with Apple, Google and Amazon homes and saves battery. MQTT is still widely used to connect devices to cloud services, and some locks offer both. Whatever the protocol, today's baseline for MQTT is encrypted connections (TLS), a separate identity for every device, and rules that limit each device to its own topics. The method in this work, building the same flow on each option and measuring it, is still how we would choose.

Published

The smart-lock system is described in Secure Smart Lock System Utilizing the MQTT Protocol (IEEE ICICS 2022). The same problem became the basis of a teaching module in Applying Project-Based Learning to Improve Computer Networks Courses (IEEE EDUCON 2022).

Sources