计算机科学 ›› 2024, Vol. 51 ›› Issue (2): 278-285.doi: 10.11896/jsjkx.230100108
王丽娜, 赖坤豪, 杨康
WANG Lina, LAI Kunhao, YANG Kang
摘要: 为了解决物联网设备众多、协议众多,以及协议架构和应用场景不同引发的物联网设备互操作性问题,针对应用层使用广泛的HTTP等4种协议,提出了一种基于协议包解析和关键方法映射的高效可扩展的应用层协议转换方案。考虑到4种协议的基础架构、消息格式、通信模式以及应用场景具有较大差异,该方案通过对协议原始数据包进行解析和关键信息提取,然后统一以键值对的形式进行信息存储,解决了不同协议信息存储的统一性问题。通过构造关键方法映射表,将不同协议的方法进行映射,实现了不同协议之间的互联。实验结果表明,基于所提方案实现的协议转换系统能很好地完成4种协议之间的消息转换。相比同类型的Ponte方法,在相同实验条件下,所提方案的转换速度都优于Ponte,甚至在某些情况下表现出了将近10倍的速度差距,同时支持多出一倍的转换类型。实验结果验证了所提方法在可扩展性和转换时间等效率方面相比同类型的协议转换算法具有显著提升。
中图分类号:
[1]AL-FUQAHA A,GUIZANI M,MOHAMMADI M,et al.Inter-net of things:A survey on enabling technologies,protocols,and applications[J].IEEE Communications Surveys & Tutorials,2015,17(4):2347-2376. [2]LOMBARDI M,PASCALE F,SANTANIELLO D.Internet ofthings:A general overview between architectures,protocols and applications[J].Information,2021,12(2):87. [3]ZHOU J,WEI G.Two patterns in conversion between HTTP2 and CoAP:Request-Reponse and Publish-Subscribe[C]//2019 IEEE 3rd Information Technology,Networking,Electronic and Automation Control Conference(ITNEC).IEEE,2019:1178-1184. [4]DA CRUZ MAURO A A,RODRIGUES J J P C,LORENZ P,et al.A proposal for bridging application layer protocols to HTTP on IoT solutions[J].Future Generation Computer Systems,2019,97:145-152. [5]DA CRUZ MAURO A A,RODRIGUES J J P C,PARADELLO E S,et al.A proposal for bridging the message queuing telemetry transport protocol to HTTP on IoT solutions[C]//2018 3rd International Conference on Smart and Sustainable Technologies(SpliTech).IEEE,2018:1-5. [6]WAHER P.Bridging MQTT & XMPP Internet of Things networks[J].Computer Science,Engineering,2014,19(5):253-261. [7]DAVE M,PATEL M,DOSHI J,et al.Ponte Message Broker Bridge Configuration Using MQTT and CoAP Protocol for Interoperability of IoT[C]//International Conference on Computing Science,Communication and Security.Singapore:Springer,2020:184-195. [8]SAITO K,NISHI H.Application Protocol Conversion Corresponding to Various IoT Protocols[C]//IECON 2020 The 46th Annual Conference of the IEEE Industrial Electronics Society.IEEE,2020:5219-5225. [9]SHELBY Z,HARTKE K,BORMANN C.The constrained application protocol(CoAP)[EB/OL].https://tools.ietf.org/html/rfc7252. [10]HUNKELER U,TRUONG H L,STANFORD-CLARK A.MQTT-S-A publish/subscribe protocol for Wireless Sensor Networks[C]//2008 3rd International Conference on Communication Systems Software and Middleware and Workshops(COMSWARE’08).IEEE,2008:791-798. [11]STANDARD O.MQTT version 3.1.1[EB/OL].https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html. [12]STANDARD O.Oasis advanced message queuing protocol(amqp) version 1.0[J].International Journal of Aerospace Engineering,2012,2018:1-124. [13]DOBBELAERE P,ESMAILI K.Kafka versus RabbitMQ:Acomparative study of two industry reference publish/subscribe implementations:Industry Paper[C]//Proceedings of the 11th ACM International Conference on Distributed and Event-Based Systems.2017:227-238. [14]COLLINA M,CORAZZA G,VANELLI-CORALLI A.Introducing the QEST broker:Scaling the IoT by bridging MQTT and REST[C]//2012 IEEE 23rd International Symposium on Personal,Indoor and Mobile Radio Communications(PIMRC).IEEE,2012:36-41. [15]ZONG N.Research and implementation of protocol conversionproxy between HTTP and CoAP in M2M communication [D].Beijing:Beijing University of Posts and Telecommunications,2016. [16]ZHOU J P.Research on interoperability between HTTP2 and CoAP based on IoT [D].Beijing:Beijing University of Posts and Telecommunications,2019. [17]ZAINUDIN A,SYAIFUDIN M F,SYAHRONI N.Design andimplementation of node gateway with MQTT and CoAP protocol for IoT applications[C]//2019 4th International Conference on Information Technology,Information Systems and Electrical Engineering(ICITISEE).IEEE,2019:155-159. [18]Eclipse Foundation.Eclipse IoT [EB/OL].Available:https://projects.eclipse.org/projects/iot. [19]DE AM MACÊDO W L,DA R T,MORENO E D.GoThings-AnApplication-layer Gateway Architecture for the Internet of Things[C]//WEBIST.2015:135-140. [20]YANG S J,WEI T C.Design Issues for Communication Protocols Conversion Scheme of IoT Devices[J].Journal of Internet Technology,2021,22(3):657-667. [21]SEEGER M,ULTRA-LARGE-SITES S.Key-value stores:apractical overview[D].Stuttgart:Computer Science and Media,2009:1-21. [22] LIGHT R A.Mosquitto:server and client implementation of the MQTT protocol[J].Journal of Open Source Software,2017,2(13):265-267. |
|