Skip to main navigation Skip to search Skip to main content

MuMQ: A lightweight and scalable MQTT broker

  • Natl. Inst. Adv. Indust. Sci. T.

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

30 Citations (Scopus)

Abstract

A message broker is an imperative component in IoT systems, and it works as a gateway between IoT devices and application platforms. With the growth of IoT devices today, these systems can easily overwhelm message brokers unless the software can fully utilize hardware resources such as multi-core facility. This paper presents muMQ, a high-performance MQTT broker running on Commercial-Off-The-Shelf hardware. It tackles the challenge to improve the performance of message brokering on a single machine by efficiently utilizing multi-core CPUs. First, muMQ exploits an event-driven I/O mechanism for multi-core scalability. Each CPU core equally handles dispatched TCP connections and locally processes MQTT logic. Second, muMQ adopts a user-level TCP/IP stack, mTCP with DPDK, to avoid the overhead of the in-kernel TCP/IP stack, including system call overhead and resource contention. We evaluate the effectiveness of our approach through experiments. The results show that muMQ can handle 512K or greater long-lived subscribers with no message loss; muMQ achieves a publish messaging rate at 930K messages per second, which is 5.38 times faster than an existing MQTT broker. We also confirm mTCP accelerates the performance by 1.8 times compared with muMQ using the in-kernel TCP/IP stack.

Original languageEnglish
Title of host publicationLANMAN 2017 - 23rd IEEE International Symposium on Local and Metropolitan Area Networks
PublisherIEEE Computer Society
ISBN (Electronic)9781538607282
DOIs
Publication statusPublished - 7 Jul 2017
Event23rd IEEE International Symposium on Local and Metropolitan Area Networks, LANMAN 2017 - Osaka, Japan
Duration: 12 Jun 201714 Jun 2017

Publication series

NameIEEE Workshop on Local and Metropolitan Area Networks
Volume2017-June
ISSN (Print)1944-0367
ISSN (Electronic)1944-0375

Conference

Conference23rd IEEE International Symposium on Local and Metropolitan Area Networks, LANMAN 2017
Country/TerritoryJapan
CityOsaka
Period12/06/1714/06/17

Keywords

  • MQTT
  • high performance computing
  • message broker
  • multi-core system
  • user-level TCP/IP stack

Fingerprint

Dive into the research topics of 'MuMQ: A lightweight and scalable MQTT broker'. Together they form a unique fingerprint.

Cite this