摘要
针对XML、JSON等数据结构在数据通信方面的不足,利用Protobuf轻便高效的数据结构和二进制数据流传输方式的优点,设计了一种网关与数据平台通信的数据传输协议.该协议将数据以Protobuf格式封装到传输报文中,通过定义应用层协议和设计数据通信确认机制建立数据传输通道,并引入数据的序列化方法实现报文的传输.测试结果表明,该数据传输协议实现了网关和应用数据平台之间数据的高效和可靠传输.
Aiming at the shortage of XML and JSON data structure in the aspect of data communication, a data transmission protocol is designed to ues the data communication between gateway and data platform. It takes full advantage of the Protobuf that is portable and uses the binary data stream to transmit data. The protocol encapsulates data transmitted in Protobuf format in a message and builds a data transmission channel using the application layer protocol defined and the confirmation mechanism designed. It also introduces the serialization method of data to achieve the transmission of message. The test results show that the data transmission protocol achieve data transmission efficiently and reliably between the gateway and data platform.
出处
《计算机系统应用》
2015年第8期112-116,共5页
Computer Systems & Applications
基金
2012年度教育部-中国移动科研基金(MCM20122013)
关键词
数据结构
Protobuf
应用层协议
通信确认机制
序列化
data structure
Protobuf
application layer protocol
communication confirmation mechanism
serialization