针对WSN网络通讯中急需适合其特点的应用层通讯协议的问题,剖析了两种主流的WSN应用层通讯协议并做出改进.通过剖析应用层通讯协议MQTT-SN与CoAP的设计理念与工作机制,展示了协议性能与适用的场景的差异.借助CoAP的优点进一步提出了MQTT-SN的改进方案,使之适合于点对点通讯与大块数据传输的情况.
For the problem that WSN needs a suitable application layer communication protocol, this paper analyzes two kinds of mainstream WSN application layer communication protocols MQTT-SN and CoAP and gives the corresponding improvement schemes. By analyzing the design concept and working mechanism of these two application layer communication protocol, this paper shows the protocol performance and the differences among applicable scenarios. Using the CoAP advantages, we further improve the MQTT-SN scheme to make it is suitable for the P2P communication and the bloekwise data transmission.