arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.07730cs.NIcs.PF
收藏

MQTT的QUIC实现与分析

Implementation and Analysis of QUIC for MQTT

Puneet Kumar, Behnam Dezfouli

摘要:

传输和安全协议对于确保双方之间的可靠和安全通信至关重要。对于物联网应用,这些协议必须是轻量级的,因为物联网设备通常是资源受限的。不幸的是,现有的传输和安全协议(即TCP/TLS和UDP/DTLS)在物联网应用中使用时,在连接开销、延迟和连接迁移方面存在不足。在本文中,在研究了这些缺点的根本原因后,我们展示了如何在物联网场景中利用QUIC来提高性能。基于这些观察,并考虑到MQTT作为物联网应用层协议的流行程度,我们将MQTT与QUIC集成。通过介绍开发的主要API和功能,我们解释了连接建立和消息交换功能的工作原理。我们使用有线、无线和长距离测试平台来评估MQTTw/QUIC与MQTTw/TCP的性能。我们的研究结果表明,MQTTw/QUIC将与代理交换的数据包数量方面的连接开销减少了56%。此外,通过消除半开放连接,MQTTw/QUIC将处理器和内存使用量分别减少了83%和50%。此外,通过消除线头阻塞问题,交付延迟减少了55%。我们还表明,当连接迁移发生时,MQTTw/QUIC所经历的吞吐量下降远低于MQTTw/TCP。

英文摘要:

Transport and security protocols are essential to ensure reliable and secure communication between two parties. For IoT applications, these protocols must be lightweight, since IoT devices are usually resource constrained. Unfortunately, the existing transport and security protocols -- namely TCP/TLS and UDP/DTLS -- fall short in terms of connection overhead, latency, and connection migration when used in IoT applications. In this paper, after studying the root causes of these shortcomings, we show how utilizing QUIC in IoT scenarios results in a higher performance. Based on these observations, and given the popularity of MQTT as an IoT application layer protocol, we integrate MQTT with QUIC. By presenting the main APIs and functions developed, we explain how connection establishment and message exchange functionalities work. We evaluate the performance of MQTTw/QUIC versus MQTTw/TCP using wired, wireless, and long-distance testbeds. Our results show that MQTTw/QUIC reduces connection overhead in terms of the number of packets exchanged with the broker by up to 56%. In addition, by eliminating half-open connections, MQTTw/QUIC reduces processor and memory usage by up to 83% and 50%, respectively. Furthermore, by removing the head-of-line blocking problem, delivery latency is reduced by up to 55%. We also show that the throughput drops experienced by MQTTw/QUIC when a connection migration happens is considerably lower than that of MQTTw/TCP.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑