计算机工程与应用 ›› 2015, Vol. 51 ›› Issue (20): 5-10.

• 博士论坛 • 上一篇    下一篇

二进制数据流通用翻译框架及实现

陈广智1,卓汉逵2,李  磊1   

  1. 1.中山大学 信息科学与技术学院,广州 510006
    2.中山大学 超级计算学院,广州 510006
  • 出版日期:2015-10-15 发布日期:2015-10-30

General framework and its implementation for translating binary data flow

CHEN Guangzhi1, ZHUO Hankui2, LI Lei1   

  1. 1.School of Information Science and Technology, Sun Yat-sen University, Guangzhou 510006, China
    2.School of Advanced Computing, Sun Yat-sen University, Guangzhou 510006, China
  • Online:2015-10-15 Published:2015-10-30

摘要: 为了辅助xDSL Modem开发人员做好固件程序的测试工作,提出了一个通用的二进制数据流翻译方案。它能够根据某个协议标准将Modem产生的二进制数据流转换成人们容易理解的形式,从而帮助开发人员快速判定Modem中的固件程序是否符合那个协议标准。同时,为了保证翻译程序不受协议版本变动的影响,将协议标准的内容以协议规则的形式存于外部文件。不同于现有的描述方式,提出了一个灵活且完备的协议规则描述方式,指出了协议规则应具备的10个属性。最后,实现了一个原型系统,并以国际通信联盟标准事业部的G.994.1协议标准为例验证了该翻译方案的有效性。

关键词: 翻译算法, 数据翻译, 协议规则, 协议解析

Abstract: To facilitate testing of firmware of xDSL Modem for developers, a generalized translation approach of binary data flow is proposed. This approach can translate binary data flow generated by Modem into easy understanding format according to some protocol standard, so that the developers can quickly determine whether or not that firmware complies with these standards. Meanwhile, for assuring that translation program is not influenced by the version changes of protocol standard, the content of protocol standard is stored at an external file in protocol rule format. Distinguishing with the existing method, a flexible and completed description method of protocol rules is designed. Finally, a prototype is implemented and G.994.1 protocol standard is used as an example to validate the effectiveness of the approach.

Key words: translation algorithm, data translation, protocol rule, protocol analysis