欢迎访问铁路通信信号工程技术,今天是 English

铁路通信信号工程技术 ›› 2023, Vol. 20 ›› Issue (7): 80-86.DOI: 10.3969/j.issn.1673-4440.2023.07.015

• • 上一篇    下一篇

基于Wireshark的铁路信号协议解析器的设计与实现

董渠江1, 陆志伟1, 曾庆文2, 刘 晨1   

  1. 1.卡斯柯信号(成都)有限公司,成都 610083;
    2.卡斯柯信号有限公司,上海 200071
  • 收稿日期:2022-02-21 修回日期:2023-05-11 出版日期:2023-07-25 发布日期:2023-07-25
  • 作者简介:董渠江(1994—),男,硕士,主要研究方向:城市轨道交通列控系统仿真,邮箱:DongQuJiang@163.com。
  • 基金资助:
    卡斯柯信号有限公司科研项目(RA.11119002)

Design and Implementation of Rail Signal Interface Protocol Parser Based on Wireshark

Dong Qujiang1,  Lu Zhiwei1,  Zeng Qingwen2,  Liu Chen1   

  1. 1.  CASCO Signal (Chengdu) Ltd., Chengdu    610083, China) 
    2. CASCO Signal Ltd., Shanghai    200071, China
  • Received:2022-02-21 Revised:2023-05-11 Online:2023-07-25 Published:2023-07-25

摘要: Wireshark在网络包捕获以及协议解析方面有着广泛的应用,在分析RSSP-I协议以及TCC外部接口应用数据的基础上,基于Wireshark采用Lua脚本语言实现一种可配置的接口协议启发式解析插件,能对RSSP-I、RSSP-II等多种协议以及多种接口应用数据进行同时解析。测试结果表明该解析器具备较好的可扩展性和易用性,对联锁、列控工程设计人员具备较大的实用价值。

关键词: Wireshark, Lua脚本, RSSP, 协议自适应解析器

Abstract: Wireshark has been widely used in network packet capture and protocol parse. Based on the analysis of the RSSP-I protocol and TCC external interface application data, this paper uses the Lua scripts to implement a configurable interface protocol heuristic parser based on Wireshark. It can be used to parse many protocols synchronously, including RSSP-I and RSSP-II, as well as several interface application data. The test result shows that the parser has good scalability and usability, and it is useful for engineering designers of interlocking and train control systems.

Key words: wireshark, lua scripts, RSSP, heuristic protocol parser

中图分类号: