[go: up one dir, main page]

CN103888446A - Protocol security isolation system oriented to railway signal control network - Google Patents

Protocol security isolation system oriented to railway signal control network Download PDF

Info

Publication number
CN103888446A
CN103888446A CN201410070530.3A CN201410070530A CN103888446A CN 103888446 A CN103888446 A CN 103888446A CN 201410070530 A CN201410070530 A CN 201410070530A CN 103888446 A CN103888446 A CN 103888446A
Authority
CN
China
Prior art keywords
network
processor
communication
interface
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410070530.3A
Other languages
Chinese (zh)
Inventor
闫连山
孙政
钟能
李赛飞
潘炜
郭进
张志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southwest Jiaotong University
Original Assignee
Southwest Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southwest Jiaotong University filed Critical Southwest Jiaotong University
Priority to CN201410070530.3A priority Critical patent/CN103888446A/en
Publication of CN103888446A publication Critical patent/CN103888446A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种面向铁路信号控制网络的协议安全隔离系统,由第一通信接口101、第二通信接口203、第一处理器102、第二处理器202、高速双口RAM通信缓存302、内存RAM、掉电存储FLASH、人机交互平台105以及电源模块301组成;第一通信接口和第二通信接口从链路层截获对应网络的数据,交由第一处理器分析,分析结果及通信内容送人机交互界面105显示并写入数据库,同时将安全的网络数据信息通过高速双口RAM通信缓存302以“摆渡”的方式传送给第二处理器,再通过第二处理器驱动的第二通信接口203传送至目标终端或网络。本发明综合了多种网络技术对现有铁路信号控制网络进行实时监测与安全隔离。

The present invention discloses a protocol security isolation system oriented to a railway signal control network. Memory RAM, power-off storage FLASH, human-computer interaction platform 105, and power module 301; the first communication interface and the second communication interface intercept the data of the corresponding network from the link layer, and submit it to the first processor for analysis, analysis results and communication The content is sent to the human-machine interface 105 for display and written into the database, and at the same time, the secure network data information is sent to the second processor in a "ferry" manner through the high-speed dual-port RAM communication cache 302, and then passed through the second processor driven by the second processor. The second communication interface 203 transmits to the target terminal or network. The invention integrates multiple network technologies to monitor and isolate the existing railway signal control network in real time.

Description

面向铁路信号控制网络的协议安全隔离系统Protocol Security Isolation System for Railway Signal Control Network

技术领域technical field

本发明涉及嵌入式产品设计、铁路通信、网络信息安全及轨道交通领域。通过对数据的综合分析,实现了控制网络数据的实时监测与过滤。The invention relates to the fields of embedded product design, railway communication, network information security and rail transit. Through the comprehensive analysis of the data, the real-time monitoring and filtering of the control network data is realized.

背景技术Background technique

随着中国铁路的飞速发展,铁路信号控制网络的网络安全至关重要。研究国外的铁路安全标准、安全评估、认证体系,并结合中国铁路通信信号发展的实际情况,建立中国铁路通信信号系统安全分析评估系统和认证体系势在必行。With the rapid development of China's railways, the network security of railway signal control network is very important. It is imperative to establish a safety analysis and evaluation system and certification system for China's railway communication signal system by studying foreign railway safety standards, safety assessment and certification systems, and combining with the actual situation of China's railway communication signal development.

虽然,铁路通信向数字化、智能化、网络化和一体化的方向发展是一个必然趋势;但是,由于计算机网络所具有的开放性、互连性和共享性等特征使网上信息安全存在着先天不足,再加上系统软件中的安全漏洞以及所欠缺的严格管理,致使网络极易受到破坏。同时,我国的工控市场过度开放(如plc国内产品市场占有率不到1%,卫星导航系统芯片95%依赖进口),大部分控制系统的核心控制模块都是从国外引进,而国外工业控制芯片、工业控制系统产品的设计和配置等在一定程度上存在漏洞或后门,这使得我国工控网(包括铁路控制网络)的安全受到了严重威胁。此外,高铁、城际铁路信号系统的信息传送通道——信号安全数据网,目前采用内部封闭式运行,仅网络上连接的设备之间相互进行信息交换,内部并未设置网络与信息安全设备,这给铁路信号控制网络埋下了很大的安全隐患。Although it is an inevitable trend for railway communications to develop towards digitization, intelligence, networking and integration; however, due to the characteristics of openness, interconnection and sharing of computer networks, there are inherent deficiencies in online information security. Coupled with security holes in the system software and lack of strict management, the network is extremely vulnerable to damage. At the same time, my country's industrial control market is overly open (for example, the market share of PLC domestic products is less than 1%, and 95% of satellite navigation system chips rely on imports). The core control modules of most control systems are imported from abroad, while foreign industrial control chips , The design and configuration of industrial control system products have loopholes or backdoors to a certain extent, which seriously threatens the security of my country's industrial control network (including railway control network). In addition, the information transmission channel of the high-speed rail and intercity railway signaling system - the signal security data network, currently adopts an internal closed operation, and only the equipment connected to the network exchanges information with each other, and there is no network and information security equipment inside. This has buried a great security risk to the railway signal control network.

发明内容Contents of the invention

鉴于目前我国铁路信号控制系统的安全隐患以及有关控制网络现有技术的以上不足,本发明型旨在提供一种高可靠性的网络数据隔离系统。In view of the potential safety hazards of my country's railway signal control system and the above deficiencies in the prior art related to the control network, the present invention aims to provide a highly reliable network data isolation system.

本发明的目的是基于如下的手段实现的:The purpose of the present invention is achieved based on the following means:

一种面向铁路信号控制网络的协议安全隔离系统,由第一通信接口101、第二通信接口203、第一处理器102、第二处理器202、高速双口RAM通信缓存302、内存RAM、掉电存储FLASH、人机交互平台105以及电源模块301组成;第一通信接口和第二通信接口从链路层截获对应网络的数据,交由第一处理器分析,分析结果及通信内容送人机交互界面105显示并写入数据库,同时将安全的网络数据信息通过高速双口RAM通信缓存302以“摆渡”的方式传送给第二处理器,再通过第二处理器驱动的第二通信接口203传送至目标终端或网络。A protocol security isolation system oriented to a railway signal control network, consisting of a first communication interface 101, a second communication interface 203, a first processor 102, a second processor 202, a high-speed dual-port RAM communication cache 302, a memory RAM, a switch Composed of electric storage FLASH, human-computer interaction platform 105, and power module 301; the first communication interface and the second communication interface intercept the data of the corresponding network from the link layer, and submit it to the first processor for analysis, and the analysis results and communication content are sent to the human-machine The interactive interface 105 is displayed and written into the database, and at the same time, the secure network data information is transmitted to the second processor through the high-speed dual-port RAM communication buffer 302 in a "ferry" manner, and then through the second communication interface 203 driven by the second processor Send to the target terminal or network.

本发明采用UCOS-II实时操作系统,运行在208MHZ的时钟频率下,集成了以太网接口、CAN总线协议接口、PROFIBUS总线协议接口、422总线协议接口以及232总线协议接口。The present invention adopts UCOS-II real-time operating system, runs under the clock frequency of 208MHZ, integrates Ethernet interface, CAN bus protocol interface, PROFIBUS bus protocol interface, 422 bus protocol interface and 232 bus protocol interface.

所述高速双口RAM通信缓存302分为A、B两个存储区;将A、B存储区域划分为N个相等的小块存储区ai、bi(1≤i≤N),K1和K2的约束为K1ai*K2ai=0且K1bi*K2bi=0(其中,K1ai表示K1与ai相连)。The high-speed dual-port RAM communication cache 302 is divided into two storage areas A and B; the storage areas A and B are divided into N equal small block storage areas ai, bi (1≤i≤N), K1 and K2 The constraint is K1ai*K2ai=0 and K1bi*K2bi=0 (where K1ai means that K1 is connected to ai).

本发明在满足铁路所需安全——故障原则的前提下,从控制网的网络传输安全角度出发,基于嵌入式实时操作系统的网络协议分析系统,采用无协议栈的方式,从底层捕获网络数据;结合网络隔离技术、防火墙技术、入侵检测技术、白名单技术以及数据包深度检测技术和现有的铁路信号模拟网络,透明地分析各终端间的数据,使得控制网络数据在提高安全性的同时充分满足相应通信协议技术标准。On the premise of satisfying the safety-failure principle required by the railway, the present invention starts from the network transmission safety angle of the control network, and uses the network protocol analysis system based on the embedded real-time operating system to capture network data from the bottom layer by adopting the method of no protocol stack ; Combining network isolation technology, firewall technology, intrusion detection technology, white list technology, and data packet depth detection technology with the existing railway signal simulation network, it can transparently analyze the data between terminals, so that the control network data can improve security at the same time Fully meet the corresponding communication protocol technical standards.

本发明系统基于双CPU+双端口RAM结构和实时嵌入式操作系统而设计:数据采集与转发部分、白名单存储部分、数据安全分析部分、处理器间通信部分和分析结果显示部分。系统对所得的网络通信数据进行分层分析、多层匹配得到网络数据的实时通信参数;同时,对截获的网络数据包进行特征记录,多包之间根据记录特征逻辑分析得到网络数据的逻辑指标。网络数据的实时通信参数与网络数据的逻辑指标结合白名单库,不仅实现了通信双方的安全隔离,更防范了网络中多包组合的隐性攻击,进而杜绝了网络中非法数据的传输与扩散。The system of the present invention is designed based on a dual CPU+dual port RAM structure and a real-time embedded operating system: a data collection and forwarding part, a white list storage part, a data security analysis part, an inter-processor communication part and an analysis result display part. The system performs hierarchical analysis and multi-layer matching on the obtained network communication data to obtain the real-time communication parameters of the network data; at the same time, it records the characteristics of the intercepted network data packets, and obtains the logical indicators of the network data according to the logical analysis of the recorded characteristics among multiple packets . The real-time communication parameters of network data and the logical indicators of network data are combined with the white list library, which not only realizes the security isolation of the two parties in communication, but also prevents the hidden attack of multi-packet combination in the network, thereby preventing the transmission and diffusion of illegal data in the network .

系统采用如下的方式进行数据分析与转发:当外部终端1的数据到达所述网络隔离平台时,第一处理器就会截获物理层以上的数据帧,并根据安全等级调用相应的安全策略对数据进行安全分析。若数据安全,则写入高速缓存双口RAM并通知第二处理器,第二处理器接收到通知后,将缓存数据转发给外部终端2;若数据不安全,则根据不同的安全等级采取相应措施(如丢弃、报警等),如此完成数据的安全交换。反之,亦然。The system uses the following method for data analysis and forwarding: when the data of the external terminal 1 reaches the network isolation platform, the first processor will intercept the data frame above the physical layer, and call the corresponding security policy to process the data according to the security level. Conduct security analysis. If the data is safe, then write the high-speed cache dual-port RAM and notify the second processor, after the second processor receives the notification, forward the cached data to the external terminal 2; if the data is not safe, then take corresponding measures according to different security levels Measures (such as discarding, alarming, etc.), so as to complete the safe exchange of data. vice versa.

实现本发明任务的装置可采用:开关电源;数字电源模块;以太网物理收发器(CPU自带以太网MAC控制器);CAN网络物理收发器、CAN网络控制器;PROFIBUS主从站控制器与收发器;422收发器;主控ARM平台;高速双口静态RAM组成。所述以太网物理收发器与主控ARM自带的MAC控制器一起组成以太网数据采集电路;所述CAN收发器与CAN控制器一起构成CAN网络数据采集电路;所述PROFIBUS主从站构成PROFIBUS网络数据采集电路;422收发器与ARM的串行控制器一起组成422网络数据采集电路。各路数据采集电路都受控于主控平台ARM,采集的数据都需经过ARM平台的分析与过滤。The device that realizes the task of the present invention can adopt: switching power supply; Digital power supply module; Ethernet physical transceiver (CPU carries Ethernet MAC controller); CAN network physical transceiver, CAN network controller; PROFIBUS master-slave station controller and Transceiver; 422 transceiver; main control ARM platform; high-speed dual-port static RAM. The Ethernet physical transceiver forms the Ethernet data acquisition circuit together with the MAC controller carried by the main control ARM; the CAN transceiver forms the CAN network data acquisition circuit together with the CAN controller; the PROFIBUS master-slave station forms the PROFIBUS Network data acquisition circuit; 422 transceivers and ARM serial controller together form a 422 network data acquisition circuit. All data acquisition circuits are controlled by the main control platform ARM, and the collected data must be analyzed and filtered by the ARM platform.

本发明的措施能同时分析通信过程中数据帧的可靠性与数据帧来源的真实性,在很大程度上杜绝了各种非法网络数据的传输与扩散,确保了控制系统的安全运营。类似系统可以用于控制网络信号系统的终端加固和边界防护,提高信号系统的安全性。The measures of the invention can simultaneously analyze the reliability of the data frame and the authenticity of the source of the data frame in the communication process, largely prevent the transmission and diffusion of various illegal network data, and ensure the safe operation of the control system. A similar system can be used to control the terminal reinforcement and border protection of the network signal system to improve the security of the signal system.

图1为本发明型的系统组成原理图。Fig. 1 is the schematic diagram of the system composition of the present invention.

图2为本发明型在铁路信号控制网络中的应用图。Fig. 2 is the application diagram of the present invention in the railway signal control network.

图3为本发明型的高速双口RAM设计原理图。Fig. 3 is the design schematic diagram of the high-speed dual-port RAM of the present invention.

图4为本发明型的系统软件设计流程图。Fig. 4 is the flow chart of the system software design of the present invention.

图5为本发明型的数据安全分析流程图。Fig. 5 is a flow chart of data security analysis of the present invention.

图6为本发明实例系统实时性能测试图。Fig. 6 is a real-time performance test diagram of the example system of the present invention.

图7为本发明实例系统分析数据时延测试图。Fig. 7 is a test diagram of time delay of analysis data of the example system of the present invention.

具体实施方式Detailed ways

为使本申请的上述目的、特征和优点能更加明显易懂,下面结合附图对本申请实例中的技术方案进行详细描述。所述实例只是本发明的一部分实例,而不是全部实例。基于本发明的实例,本领域普通技术人员在没有做出创造性劳动前,都属于本发明保护的范围。In order to make the above purpose, features and advantages of the present application more obvious and understandable, the technical solutions in the examples of the present application will be described in detail below in conjunction with the accompanying drawings. The examples are only some examples of the present invention, not all examples. Based on the examples of the present invention, those skilled in the art belong to the protection scope of the present invention before making creative work.

图1为所述系统的原理框图,如图所示。所述系统由第一通信接口101、第二通信接口203,第一处理器102、第二处理器202,高速双口RAM通信缓存302,内存RAM103、内存RAM201,第一掉电存储FLASH104、第二掉电存储FLASH204,人机交互平台105以及电源模块301共同组成。通信接口模块从链路层截获对应网络的数据,交由第一处理器分析,分析结果及通信内容送人机交互界面105显示并写入数据库;同时把安全的网络数据信息通过缓存302以“摆渡”的方式传送给第二处理器,再通过第二处理器所驱动的通信接口203传送至目标终端或网络。反之,亦然。所述系统实例采用UCOS-II实时操作系统,运行在208MHZ的时钟频率下,集成了以太网接口、CAN总线协议接口、PROFIBUS总线协议接口、422总线协议接口以及232总线协议接口。Fig. 1 is a functional block diagram of the system, as shown in the figure. Described system is by the first communication interface 101, the second communication interface 203, the first processor 102, the second processor 202, the high-speed dual-port RAM communication cache 302, memory RAM103, memory RAM201, the first power-down storage FLASH104, the second 2. The FLASH 204 for power-off storage, the human-computer interaction platform 105 and the power module 301 are jointly composed. The communication interface module intercepts the data corresponding to the network from the link layer, and submits it to the first processor for analysis. The analysis results and communication content are sent to the human-computer interaction interface 105 for display and written into the database; "Ferry" to the second processor, and then to the target terminal or network through the communication interface 203 driven by the second processor. vice versa. The system example adopts UCOS-II real-time operating system, runs at a clock frequency of 208MHZ, and integrates Ethernet interface, CAN bus protocol interface, PROFIBUS bus protocol interface, 422 bus protocol interface and 232 bus protocol interface.

图2是本系统在铁路信号控制网络中的应用图。目前,铁路信号控制网络由信号系统安全数据网、CTC数据通信网、信号集中监测数据通信网三张子网组成,它们均采用迂回、环状、冗余等方式组网。在本发明的实际应用中,铁路通信设备需通过所述系统才能与环网相连,通信设备所有的收发数据都必须经过所述系统安检才能下放到执行终端。即只有在设备间的通信数据完全符合所述系统设定的信息安全库和逻辑关系时,才能被本系统以“摆渡”的方式转发到目的通信网络或终端。同时,所述系统可以使铁路信号控制终端在因恶意劫持或误操作时,自动隔离自身,脱离环网,杜绝了非法数据的扩撒与传播,有效保护了网络的通信安全。Figure 2 is the application diagram of this system in the railway signal control network. At present, the railway signal control network is composed of three sub-networks: the signal system safety data network, the CTC data communication network, and the signal centralized monitoring data communication network. In the practical application of the present invention, the railway communication equipment needs to pass through the system to be connected to the ring network, and all data sent and received by the communication equipment must pass through the system security check before being distributed to the execution terminal. That is, only when the communication data between devices fully conforms to the information security library and logical relationship set by the system can it be forwarded to the destination communication network or terminal by the system in a "ferry" manner. At the same time, the system can make the railway signal control terminal automatically isolate itself and break away from the ring network when it is maliciously hijacked or misoperated, preventing the spread and dissemination of illegal data, and effectively protecting the communication security of the network.

图3是高速双口RAM设计原理图。高速双口RAM302是网络协议分析平台中两个处理器之间的数据通信缓存。因此,系统的带宽主要受限于处理器的性能以及双端口RAM的数据交换速度:处理器的性能越好、双口RAM的交换速度越快,系统的带宽就越大。为提高数据的交换速度,所述系统采用带缓冲区的多通道实时开关技术来设计双端口RAM(此处以双通道为例说明原理)。首先,把双端口RAM分为A、B两个存储区。再将A、B存储区域划分为N个相等的小块存储区ai、bi(1≤i≤N),K1和K2的约束为K1ai*K2ai=0且K1bi*K2bi=0(其中,K1ai表示K1与ai相连)。这样的设计使得第一处理器、第二处理器中的一方对ai或bi进行访问时,另一方仍可以对aj或bj(i≠j)进行访问,减少了读写冲突的发生几率,提高了数据通道的效率,从而加快了两处理器之间数据交换速度。Figure 3 is a schematic diagram of high-speed dual-port RAM design. The high-speed dual-port RAM302 is a data communication cache between two processors in the network protocol analysis platform. Therefore, the bandwidth of the system is mainly limited by the performance of the processor and the data exchange speed of the dual-port RAM: the better the performance of the processor and the faster the exchange speed of the dual-port RAM, the greater the bandwidth of the system. In order to improve the data exchange speed, the system adopts multi-channel real-time switch technology with buffer to design dual-port RAM (here, dual-channel is taken as an example to illustrate the principle). First, divide the dual-port RAM into two storage areas, A and B. Then divide the A and B storage areas into N equal small storage areas ai and bi (1≤i≤N), and the constraints of K1 and K2 are K1ai*K2ai=0 and K1bi*K2bi=0 (where K1ai means K1 is connected to ai). Such a design enables one of the first processor and the second processor to access ai or bi, while the other can still access aj or bj (i≠j), which reduces the probability of read-write conflicts and improves The efficiency of the data channel is improved, thereby speeding up the speed of data exchange between the two processors.

图4为本发明型的系统软件设计流程图。所述系统实例由4个接口任务、一个双端口RAM任务、一个系统配置任务和一个主任务,共7个任务组成。程序启动时,主任务根据功能开关的不同取值,创建不同的工作任务去分析、处理相应的网络数据,并把处理结果及数据内容实时地传送给人机交互平台显示。如需改变、添加或删除通信终端,则重启系统并设置功能开关的取值进入配置任务,重新配置系统,当配置完成后系统自动触发重启模块,重启系统,系统再次进入正常的数据分析模式。所述系统采用双CPU架构,两个CPU的软件设计基本对称(仅第一处理器驱动人机交互平台105,故第二处理器的分析结果需通过双端口RAM302实时地传送给第一处理器进行显示)。Fig. 4 is the flow chart of the system software design of the present invention. The system instance is composed of 4 interface tasks, a dual-port RAM task, a system configuration task and a main task, a total of 7 tasks. When the program starts, the main task creates different work tasks to analyze and process the corresponding network data according to the different values of the function switches, and transmits the processing results and data content to the human-machine interaction platform for display in real time. If you need to change, add or delete communication terminals, restart the system and set the value of the function switch to enter the configuration task and reconfigure the system. When the configuration is completed, the system will automatically trigger the restart module, restart the system, and the system will enter the normal data analysis mode again. Described system adopts dual-CPU architecture, and the software design of two CPUs is basically symmetrical (only the first processor drives the human-computer interaction platform 105, so the analysis results of the second processor need to be transmitted to the first processor in real time by dual-port RAM302 to display).

图5为本发明型的数据安全分析流程图。所述系统从线路上捕获数据帧后,根据不同的工作任务触发不同的数据安全分析函数分别处理不同网络数据。Fig. 5 is a flow chart of data security analysis of the present invention. After the system captures data frames from the line, different data security analysis functions are triggered according to different work tasks to process different network data respectively.

铁路信号安全数据网络中所用的安全通信协议主要为RSSP-II协议,该协议在TCP/IP协议基础上增加了适配及冗余管理层、消息鉴定层、安全应用中间层。因此,它的安全实质上就是专网的网络安全。所述系统结合铁路控制网络具体需求,对采集到的网络数据帧分层分析,逐层匹配,多包间组合分析;全方位抵御网络中的非法活动。The safety communication protocol used in the railway signal safety data network is mainly the RSSP-II protocol, which adds an adaptation and redundancy management layer, a message authentication layer, and a safety application middle layer on the basis of the TCP/IP protocol. Therefore, its security is essentially the network security of the private network. Combined with the specific requirements of the railway control network, the system analyzes the collected network data frames layer by layer, matches layer by layer, and analyzes the combination of multiple packages; all-round defense against illegal activities in the network.

铁路信号控制系统中除了以太网外,还有CAN总线、422总线以及PROFIBUS总线等现场总线网络。这些现场总线协议作为工业控制底层网络,其信息量较少,实时性要求较高,因此,它们的模型结构只取了OSI底层的物理层、数据链路层和顶层的应用层。这些协议与RSSP-II协议相比相对简单、攻击隐蔽。在分析这些网络数据时,除直接对单包应用层数据进行白名单匹配外,还需采用“跨包匹配法”对连续多包进行逻辑分析,从而防御多包组合攻击。In addition to Ethernet, the railway signal control system also has field bus networks such as CAN bus, 422 bus and PROFIBUS bus. As the underlying network of industrial control, these fieldbus protocols have less information and higher real-time requirements. Therefore, their model structure only takes the physical layer, data link layer and application layer at the bottom of OSI. Compared with the RSSP-II protocol, these protocols are relatively simple and have hidden attacks. When analyzing these network data, in addition to directly performing whitelist matching on single-packet application layer data, it is also necessary to use the "cross-packet matching method" to logically analyze continuous multi-packets, so as to defend against multi-packet combination attacks.

图6为本发明实例系统实时性能测试图。所述系统实例基于ARM+UCOS-II而设计。UCOS-II是专门为嵌入式系统设计的硬实时、基于优先级调度的抢占式实时内核。它的内核精简,多任务管理功能相对完善,实时性能良好,可裁剪,可固化,源码开放,可移植性强。UCOS-II系统中最多可以支持64个任务,分别对应优先级0~63,其中0为最高优先级。63为最低级,系统保留了4个最高优先级的任务和4个最低优先级的任务,所有用户可以使用的任务数只有56个。所述系统实例的实时性取决于UCOS-II操作系统,而UCOS-II的实时性体现在任务的切换时间上:切换时间越短,系统的实时性就越高。程序利用CPU计数器为任务抢占切换时间所提供的系统时间戳函数OSTimeGet()来计算时间,任务的切换通过优先级的动态改变来实现。以下给出本实例任务切换时间的计算方法(以两个任务为例):首先,创建两个任务A、B。规定任务A的优先级为N,任务B的优先级为N+1。程序启动后,任务A首先抢占CPU;某个时刻任务B的优先级减去2,同时记录时间戳,任务B抢占CPU后,马上把自身的优先级加上2,任务A重新抢占CPU,再记录一次时间戳。整个过程发生两次任务调度切换,将两次的时间戳相减除以2后再除以CPU的频率,即得到任务的切换时间。Fig. 6 is a real-time performance test diagram of the example system of the present invention. The system example is designed based on ARM+UCOS-II. UCOS-II is a hard real-time, priority-based scheduling preemptive real-time kernel specially designed for embedded systems. Its kernel is simplified, its multi-task management function is relatively perfect, its real-time performance is good, it can be cut and cured, its source code is open, and its portability is strong. The UCOS-II system can support up to 64 tasks, corresponding to priorities 0 to 63, of which 0 is the highest priority. 63 is the lowest level. The system reserves 4 tasks with the highest priority and 4 tasks with the lowest priority. There are only 56 tasks available to all users. The real-time performance of the system instance depends on the UCOS-II operating system, and the real-time performance of UCOS-II is reflected in the switching time of tasks: the shorter the switching time, the higher the real-time performance of the system. The program uses the system timestamp function OSTimeGet() provided by the CPU counter to preempt the switching time of the task to calculate the time, and the switching of the task is realized through the dynamic change of the priority. The calculation method of the task switching time in this example is given below (taking two tasks as an example): First, create two tasks A and B. It is stipulated that the priority of task A is N, and the priority of task B is N+1. After the program starts, task A first preempts the CPU; at a certain moment, the priority of task B is subtracted by 2, and the time stamp is recorded at the same time. Record a timestamp. In the whole process, two task scheduling switches occur. Subtract the two time stamps and divide by 2, and then divide by the CPU frequency to obtain the task switching time.

图7为本发明实例系统分析数据时延测试图。所述系统实例的时延性能是在信号系统安全数据网模拟网络中测得。设定模拟网络中某通信终端间的应用数据从10Bytes至1000Bytes渐变,测试加入隔离系统前后数据在传输过程中的延迟时间。在图7中,横轴表示每帧数据的传输长度(Byte),纵轴表示每帧数据的传输时延(ms)。由图可知,当数据帧长度为10~1000比特时,隔离系统转发时延为0.11~0.5ms。铁路安全数据网规范指定通信设备间信息传输总延时不大于50ms,因此,加入隔离系统后不影响网络传输的实时性,同时也能满足大多数工控网的实时性要求。Fig. 7 is a test diagram of time delay of analysis data of the example system of the present invention. The time delay performance of the system example is measured in the signal system safety data network simulation network. Set the application data between a communication terminal in the simulated network to gradually change from 10Bytes to 1000Bytes, and test the delay time of the data in the transmission process before and after joining the isolation system. In FIG. 7 , the horizontal axis represents the transmission length (Byte) of each frame of data, and the vertical axis represents the transmission delay (ms) of each frame of data. It can be seen from the figure that when the length of the data frame is 10-1000 bits, the forwarding delay of the isolation system is 0.11-0.5ms. The railway safety data network specification specifies that the total delay of information transmission between communication devices is not greater than 50ms. Therefore, the real-time performance of network transmission will not be affected after the isolation system is added, and it can also meet the real-time requirements of most industrial control networks.

Claims (3)

1.一种面向铁路信号控制网络的协议安全隔离系统,其特征在于,由第一通信接口(101)、第二通信接口(203)、第一处理器(102)、第二处理器(202)、高速双口RAM通信缓存(302)、内存RAM、掉电存储FLASH、人机交互平台(105)以及电源模块(301)组成;第一通信接口和第二通信接口从链路层截获对应网络的数据,交由第一处理器分析,分析结果及通信内容送人机交互界面(105)显示并写入数据库,同时将安全的网络数据信息通过高速双口RAM通信缓存(302)以“摆渡”的方式传送给第二处理器,再通过第二处理器驱动的第二通信接口(203)传送至目标终端或网络。1. A protocol security isolation system oriented to a railway signal control network, characterized in that it consists of a first communication interface (101), a second communication interface (203), a first processor (102), a second processor (202 ), high-speed dual-port RAM communication cache (302), memory RAM, power-off storage FLASH, human-computer interaction platform (105) and power supply module (301); the first communication interface and the second communication interface intercept the corresponding The network data is analyzed by the first processor, and the analysis results and communication content are sent to the human-computer interaction interface (105) for display and written into the database, and at the same time, the secure network data information is cached through the high-speed dual-port RAM (302) to " Ferry" to the second processor, and then to the target terminal or network through the second communication interface (203) driven by the second processor. 2.根据权利要求1所述之系统,其特征在于,采用UCOS-II实时操作系统,运行在208MHZ的时钟频率下,集成了以太网接口、CAN总线协议接口、PROFIBUS总线协议接口、422总线协议接口以及232总线协议接口。2. system according to claim 1, is characterized in that, adopts UCOS-II real-time operating system, runs under the clock frequency of 208MHZ, has integrated ethernet interface, CAN bus protocol interface, PROFIBUS bus protocol interface, 422 bus protocol Interface and 232 bus protocol interface. 3.根据权利要求1所述之系统,其特征在于,所述高速双口RAM通信缓存(302)分为A、B两个存储区;将A、B存储区域划分为N个相等的小块存储区ai、bi(1≤i≤N),K1和K2的约束为K1ai*K2ai=0且K1bi*K2bi=0(其中,K1ai表示K1与ai相连)。3. The system according to claim 1, characterized in that the high-speed dual-port RAM communication cache (302) is divided into two storage areas A and B; the storage areas A and B are divided into N equal small blocks Storage area ai, bi (1≤i≤N), K1 and K2 are constrained by K1ai*K2ai=0 and K1bi*K2bi=0 (where K1ai means that K1 is connected to ai).
CN201410070530.3A 2014-02-28 2014-02-28 Protocol security isolation system oriented to railway signal control network Pending CN103888446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410070530.3A CN103888446A (en) 2014-02-28 2014-02-28 Protocol security isolation system oriented to railway signal control network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410070530.3A CN103888446A (en) 2014-02-28 2014-02-28 Protocol security isolation system oriented to railway signal control network

Publications (1)

Publication Number Publication Date
CN103888446A true CN103888446A (en) 2014-06-25

Family

ID=50957166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410070530.3A Pending CN103888446A (en) 2014-02-28 2014-02-28 Protocol security isolation system oriented to railway signal control network

Country Status (1)

Country Link
CN (1) CN103888446A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204583A (en) * 2015-10-16 2015-12-30 杭州中威电子股份有限公司 Physical isolation system and isolation method constructed based on embedded type system
CN105208352A (en) * 2015-10-16 2015-12-30 杭州中威电子股份有限公司 Safe monitoring system and physical isolation method for network video
CN106656657A (en) * 2016-11-11 2017-05-10 北京匡恩网络科技有限责任公司 Adaptive vulnerability mining framework based on industrial control protocol
CN108092864A (en) * 2017-11-10 2018-05-29 北京全路通信信号研究设计院集团有限公司 L EU equipment processing board and communication processing device and method thereof
CN110191040A (en) * 2019-06-25 2019-08-30 长沙瀚鹏电子技术有限公司 A kind of human-computer interaction network controller, method and system
CN111818092A (en) * 2020-08-14 2020-10-23 苏州海德汛互联网技术有限公司 Network security physical isolator and information exchange method
CN112035394A (en) * 2020-07-27 2020-12-04 首都师范大学 Storage device of multi-core processor for real-time processing and data processing method
CN113347141A (en) * 2020-02-18 2021-09-03 罗伯特·博世有限公司 Device for processing data having at least two data interfaces and operating method therefor
CN113872802A (en) * 2021-09-17 2021-12-31 支付宝(杭州)信息技术有限公司 Method and device for detecting network element

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1973308A (en) * 2004-06-03 2007-05-30 纳格拉卡德股份有限公司 Security module component
CN102195984A (en) * 2011-05-18 2011-09-21 广州市飞元信息科技有限公司 Secure transmission device
CN202475480U (en) * 2011-12-21 2012-10-03 成都众询科技有限公司 Network isolator
CN202475479U (en) * 2011-12-21 2012-10-03 成都众询科技有限公司 Network isolating device
US20130261999A1 (en) * 2012-03-30 2013-10-03 Ild Technologies, Llc Ring Ground Testing And Monitoring

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1973308A (en) * 2004-06-03 2007-05-30 纳格拉卡德股份有限公司 Security module component
CN102195984A (en) * 2011-05-18 2011-09-21 广州市飞元信息科技有限公司 Secure transmission device
CN202475480U (en) * 2011-12-21 2012-10-03 成都众询科技有限公司 Network isolator
CN202475479U (en) * 2011-12-21 2012-10-03 成都众询科技有限公司 Network isolating device
US20130261999A1 (en) * 2012-03-30 2013-10-03 Ild Technologies, Llc Ring Ground Testing And Monitoring

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
柯军: "《网络隔离器的设计》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
郑炜 等: "《物理隔离网闸的设计与实现》", 《微计算机信息》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208352A (en) * 2015-10-16 2015-12-30 杭州中威电子股份有限公司 Safe monitoring system and physical isolation method for network video
CN105208352B (en) * 2015-10-16 2018-07-31 杭州中威电子股份有限公司 A kind of network video safety monitoring system and physical isolation method
CN105204583B (en) * 2015-10-16 2018-11-02 杭州中威电子股份有限公司 A kind of Physical Disconnection System and partition method based on embedded system structure
CN105204583A (en) * 2015-10-16 2015-12-30 杭州中威电子股份有限公司 Physical isolation system and isolation method constructed based on embedded type system
CN106656657A (en) * 2016-11-11 2017-05-10 北京匡恩网络科技有限责任公司 Adaptive vulnerability mining framework based on industrial control protocol
CN108092864B (en) * 2017-11-10 2020-04-17 北京全路通信信号研究设计院集团有限公司 LEU equipment processing board and communication processing device and method thereof
CN108092864A (en) * 2017-11-10 2018-05-29 北京全路通信信号研究设计院集团有限公司 L EU equipment processing board and communication processing device and method thereof
CN110191040A (en) * 2019-06-25 2019-08-30 长沙瀚鹏电子技术有限公司 A kind of human-computer interaction network controller, method and system
CN113347141A (en) * 2020-02-18 2021-09-03 罗伯特·博世有限公司 Device for processing data having at least two data interfaces and operating method therefor
CN112035394A (en) * 2020-07-27 2020-12-04 首都师范大学 Storage device of multi-core processor for real-time processing and data processing method
CN112035394B (en) * 2020-07-27 2021-04-27 首都师范大学 Real-time processing-oriented multi-core processor storage device and data processing method
CN111818092A (en) * 2020-08-14 2020-10-23 苏州海德汛互联网技术有限公司 Network security physical isolator and information exchange method
CN113872802A (en) * 2021-09-17 2021-12-31 支付宝(杭州)信息技术有限公司 Method and device for detecting network element
CN113872802B (en) * 2021-09-17 2024-01-19 支付宝(杭州)信息技术有限公司 Method and device for detecting network element

Similar Documents

Publication Publication Date Title
CN103888446A (en) Protocol security isolation system oriented to railway signal control network
CN104486336A (en) Device for safely isolating and exchanging industrial control networks
CN104683352B (en) A kind of industrial communication isolation gap with binary channels ferry-boat
CN116055254B (en) Safe and trusted gateway system, control method, medium, equipment and terminal
CN105681313B (en) A kind of flow quantity detecting system and method for virtualized environment
CN106341397A (en) Industrial safety isolation GAP
CN105245555B (en) One kind is used for electric power serial server communication protocol security protection system
CN101986638A (en) Gigabit one-way network isolation device
CN105007272A (en) Information exchange system with safety isolation
CN104734915A (en) Composite multiprocess and multithread multi-network concurrence dynamic simulation method
CN109412897A (en) System and method is realized based on the shared MAC of multi-core processor and FPGA
CN106357470A (en) Quick sensing method for network threat based on SDN controller
CN114465796A (en) A security protection method applied to a vehicle-mounted firewall
Zhang et al. Optimization of traditional Snort intrusion detection system
CN204089849U (en) A kind of network isolating device based on industrial control protocols
CN104539600A (en) Industrial control firewall implementing method for supporting filtering IEC 104 protocol
CN108768841A (en) AFDX security gateway systems and its transmission method
CN202979014U (en) Network isolation device
CN102546399B (en) Intelligent transformer substation process level message linear processing framework and intelligent transformer substation process level message linear processing method
CN201878191U (en) Security access device for video
CN202652270U (en) database audit system
CN210112051U (en) Multi-information-source communication management device based on security isolation network gate
CN205666954U (en) Data interchange monitored control system based on cloud calculates
CN209460765U (en) A new type of public network and public security internal network isolation device
CN103944738A (en) Interchanger supporting function extension

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140625