作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (21): 66-68. doi: 10.3969/j.issn.1000-3428.2007.21.024

• 软件技术与数据库 • 上一篇    下一篇

基于编译技术的协议解析方法

董 立,赵恒永   

  1. (北京化工大学信息科学与技术学院,北京 100029)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-11-05 发布日期:2007-11-05

Protocol Parsing Method Based on Compiling Technology

DONG Li, ZHAO Heng-yong   

  1. (School of Information Science and Technology, Beijing University of Chemical Technology, Beijing 100029)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-11-05 Published:2007-11-05

摘要: 在过程工业的控制中存在着大量的通信协议,这些协议的结构差别很大。要进行上层应用开发,必须对这些协议进行解析和处理。该文讨论了用形式化描述的方法对协议进行描述,实现了与协议无关的协议解析和处理,从而避免了针对不同通信协议均要编写相应的解析和处理程序,使协议的解析和处理具有更好的灵活性和普适性。

关键词: 协议分析, 数据帧, 编译技术

Abstract: In process industry, there are many communication protocols, but they have many differences in structure. In order to develop up-layer application, it needs to parse and process these protocols. This paper discusses the protocol in which parsing and processing program can be implemented when the protocol is described with the formalize-description, and the program based on formalize-description is independent of the protocol. This implementation can avoid coding parse and processing program for different protocols separately, and makes the program more flexible and adaptable.

Key words: protocol analysis, data-frame, compiling technology

中图分类号: