摘要
为改善Windows个人计算机(Personal Computer,PC)端与Android终端之间普遍存在的数据传输速率低的问题,提出一种应用层传输协议,即改进的媒体传输协议(Improved Media Transfer Protocol,IMTP)。该协议在PC端发出请求后,根据该协议对数据进行打包,发送至Android端。Android端再根据该协议结构解析后产生的响应,将响应数据打包发送至PC端,整个过程进行一次交互。同时,该协议头部结构长度是可变的,根据前一字段的值决定下一个字段向后读取的字节数,有效节省了空间开销。实验结果表明,相较于传统的PC端与Android终端之间数据传输所使用的媒体传输协议(Media Transfer Protocol,MTP),IMTP获取3000条属性数据耗时由11.26 s降至3.44 s,传输1个500 M文件速率提升16.92%,传输250个1 M文件速率提升93.34%,能够明显提升数据传输速率。
In order to improve the low data transmission rate between windows personal computer(PC)and Android terminals,an improved media transfer protocol(IMTP)based on application layer is proposed.After the protocol sends a request on the PC side,the data is packaged according to the protocol and sent to the Android side.The Android side will package and send the response data to the PC side according to the response generated after the protocol structure analysis,and the whole process has one interaction.At the same time,the length of the protocol header structure is variable,and the number of bytes read backward in the next field is determined according to the value of the previous field,which effectively saves the space cost.Experimental results show that compared with the media transfor protocol(MTP)used for data transmission between the traditional PC and Android terminals,the time it takes for IMTP to obtain 3000 attribute data has been reduced from 11.26 s to 3.44 s,the transfer rate of a 500 M file has been increased by 16.92%,and the rate of transferring two hundred and fifty 1 M files has increased by 93.34%.IMTP can significantly increase the data transmission rate.
作者
孙家泽
刘玮婷
SUN Jiaze;LIU Weiting(School of Computer Science and Technology,Xi’an University of Posts and Telecommunications,Xi’an 710121,China;Shaanxi Key Laboratory of Network Data Intelligent Processing,Xi’an University of Posts and Telecommunications,Xi’an 710121,China)
出处
《西安邮电大学学报》
2022年第5期18-26,共9页
Journal of Xi’an University of Posts and Telecommunications