Secure computer platform and synchronous implementation method of secure computer platform
Through TSN Ethernet and FPGA modules, data synchronization and time synchronization are realized in a secure computer platform, solving the consistency and reliability problems of traditional platforms during master-slave channel data synchronization and switching, and providing high security and high precision data Transmission enhances the overall synchronization capability of the system.
Patent Information
- Application Number
- CN202410959420.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional security computer platforms have data consistency and reliability problems when data synchronization and switching between master and slave channels, and the hardware and software are closely coupled, making it difficult to achieve high security level master and backup switching.
Data transmission is carried out using TSN Ethernet, and data synchronization comparison and communication processing between channel A and channel B are realized through the FPGA module, and time synchronization and redundancy are achieved in combination with gPTP protocol to ensure seamless data transmission during main and backup switching. Synchronize with high precision.
It realizes data consistency and system reliability during master-slip switching, provides high security and high synchronization accuracy data transmission, avoids the limitations of traditional clock synchronization and event synchronization methods, and enhances the overall synchronization capability of the system.
Smart Images

Figure CN118972016A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of secure computer technology, and more particularly to a secure computer platform and a method for implementing synchronization of the secure computer platform. Background Art
[0002] Redundancy technology is an indispensable core technology for ensuring the safety and reliability of safety-critical systems. Synchronization is the premise and basis for achieving redundancy in complex programmable control systems. Synchronization technology is the core technology for controlling and coordinating the strict synchronous operation of multiple complex programmable systems, and is the core of the core technology of the railway signal safety computer platform.
[0003] The single-system two-out-of-two design of the traditional two-by-two safety computer architecture ensures system security, and the dual-system hot standby redundant design improves system reliability and availability. In order to ensure that the result of the two-out-of-two operation of the master-slave channel data within the system has voting significance, it is necessary to ensure that the data between the master and slave channels remain synchronized, and to perform safety-oriented processing for situations where synchronization cannot be achieved. In order to ensure data continuity when the standby system is upgraded to the master system during the dual-system hot standby switch, data consistency needs to be maintained between the two systems, and it is necessary to ensure that only one system is in the master state for external output at the same time. The master-slave channel data synchronization of the traditional architecture is generally achieved through the MCU end, and the master-slave switching board is used to achieve the master-slave switching between systems. In this architecture, the synchronization, comparison, and calculation tasks within the system are concentrated on the MCU end, the software and hardware are tightly coupled, and the safety level requirements for the master-slave switching board are relatively high.
[0004] Therefore, how to provide a secure computer platform and a synchronization implementation method of a secure computer platform that can solve the above problems is an issue that those skilled in the art need to solve urgently. Summary of the invention
[0005] In view of this, the present invention provides a secure computer platform and a method for implementing synchronization of the secure computer platform to solve the technical problems existing in the above-mentioned prior art.
[0006] In order to achieve the above object, the present invention provides the following technical solutions:
[0007] A secure computer platform comprises: a platform I system and a platform II system which are independent of each other. The platform I system and the platform II system are physically connected by a switch and network isolated by a virtual local area network (VLAN).
[0008] Preferably, the platform I series and the platform II series use TSN Ethernet for data transmission;
[0009] Among them, TSN Ethernet is used for the data interaction bus of the 2oo2 redundant mechanism of channel A and channel B within platform I and platform II, and is interconnected with external devices with TSN functions.
[0010] Preferably, the platform I series and the platform II series are respectively provided with a security computer VCU, a speed and distance measurement unit TIU, a data interaction unit MBI, a transponder transmission module BTM, a track circuit information reader TCR, a discrete quantity acquisition unit DI, and a discrete quantity drive unit DO.
[0011] Preferably, the safety computer VCU, speed and distance measuring unit TIU, data interaction unit MBI, transponder transmission module BTM, track circuit information reader TCR, discrete quantity acquisition unit DI, and discrete quantity drive unit DO all adopt a 2-out-of-2 dual-channel redundant architecture, and channel A and channel B are completely independent and isolated.
[0012] Preferably, it also includes multiple FPGA modules, and the data synchronization comparison of the A channel and the B channel data of the safety computer VCU, the speed and distance measurement unit TIU, the data interaction unit MBI, the transponder transmission module BTM, the track circuit information reader TCR, the discrete quantity acquisition unit DI, and the discrete quantity drive unit DO and the data communication processing with the interactive data bus of the TSN Ethernet are all realized by the FPGA module.
[0013] Preferably, channel A and channel B are respectively provided with a CPU processor, and each node on the data bus of the TSN Ethernet provides a time trigger signal to the CPU processors of channel A and channel B respectively, and the CPU processor sends the application data to the FPGA module according to the time trigger signal.
[0014] A method for implementing synchronization of a secure computer platform, wherein the secure computer platform is the above-mentioned secure computer platform, comprising:
[0015] Time synchronization of TSN Ethernet;
[0016] Time synchronization redundancy of TSN Ethernet;
[0017] Synchronization comparison and master-slave synchronization of TSN Ethernet time synchronization mechanism.
[0018] Preferably, the time synchronization of the TSN Ethernet includes: frequency matching and measuring time delay of the TSN Ethernet, using the gPTP protocol to implement the master clock selection and negotiation algorithm of the entire network, path delay measurement and compensation, and clock frequency matching and adjustment mechanism.
[0019] Preferably, the path delay measurement uses PDelay_Req message, PDelay_Resp message and PDelay_Resp_Followup message provided by the gPTP protocol to measure the time delay.
[0020] Preferably, the time synchronization redundancy of the TSN Ethernet includes: the security core unit is interconnected through two TSN switches SW, and time synchronization is achieved through the gPTP protocol, wherein VCU1 is set as the master clock of the entire network, and the TSN switch and the security core unit are synchronized to VCU1.
[0021] Through the above technical solutions, it can be known that compared with the prior art, the present invention discloses a secure computer platform and a synchronization implementation method for the secure computer platform, based on the synchronization of the two-by-two-take-two architecture of the TSN bus, and the time-triggered TSN bus data deterministic and reliable transmission can achieve accurate synchronization between the node boards connected to the backplane; the data cross-comparison synchronization interface designed based on FPGA can effectively ensure the validity of the two-by-two data between channels in the system; based on FPGA, the interrupt source is uniformly provided to send a timing interrupt to the MCU (configurable) to achieve event-level synchronization between the MCU+FPGA cascade channels in the system. The present invention is another way to achieve the overall synchronization of redundant computers besides the traditional (hardware) clock synchronization and (software) event synchronization methods, and can provide a good time-triggered task scheduling mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0023] Figure 1 This is a schematic diagram of the 2×2oo2 train control vehicle-mounted safety computer platform based on TSN Ethernet;
[0024] Figure 2 This is a schematic diagram of the 2oo2 synchronization comparison mechanism based on TSN Ethernet;
[0025] Figure 3 Schematic diagram of clock frequency matching between master and slave nodes;
[0026] Figure 4 It is a schematic diagram of time delay measurement;
[0027] Figure 5 Schematic diagram of the single-channel time synchronization benchmark for Platform I and Platform II. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] The embodiment of the present invention discloses a secure computer platform, including a platform I system and a platform II system that are independent of each other. The platform I system and the platform II system are physically connected to each other through a switch, and network isolation is performed through a virtual local area network (VLAN).
[0030] Specifically, VLAN is a virtual local area network that can isolate networks and is an isolation technology of Ethernet.
[0031] Specifically, the synchronization technology is based on a secure computer platform architecture. Redundancy is the main way to improve system reliability and even safety, and safety redundancy is an indispensable prerequisite for the system hardware safety integrity to reach SIL4 level. Existing railway signal safety computer platforms generally adopt a 2×2oo2 redundant structure, which implements dual-system hot standby operation by two independent systems based on 2oo2 safety redundancy. When the working system fails, the synchronously running standby system can obtain control in real time and seamlessly take over the work. A 2×2oo2 train control vehicle-mounted safety computer platform based on the TSN network is shown in the figure below: Figure 1 shown.
[0032] For control systems with timing characteristics, when using the MooN multiple system redundant structure, it is necessary to establish some form of synchronization mechanism between the systems / subsystems that perform the same function and operate relatively independently. Through synchronization control, it is ensured that at least the input acquisition, output control, and processing and interaction of necessary related states and information can be maintained at the corresponding synchronization points, providing the necessary timing benchmark for the normal and stable operation of the redundant system. The on-board safety computer platform requires that each redundant (sub) system be synchronized at least at the accuracy level of the main program operation processing cycle, and each operation processing cycle of the synchronized parties must be strictly consistent in both time and timing. If the time difference of the operation cycle is too large, synchronization cannot be achieved. "Wrong-sequence synchronization" with the same time but different timing is an incorrect synchronization, and will eventually lead to loss of step.
[0033] In fact, synchronization is the premise and foundation for complex programmable control systems to achieve MooN redundancy. Synchronization technology is the core technology for controlling and coordinating the strict synchronization of multiple complex programmable systems / subsystems, and is the core of the core technology of the railway signal safety computer platform. The 2×2oo2 redundant architecture includes two different MooN synchronization mechanisms: 2oo2 comparison synchronization required for safety redundancy and 1oo2 master-slave synchronization required for reliability redundancy.
[0034] Depend on Figure 1 It can be seen that the platform mainly uses TSN Ethernet and ordinary Ethernet to realize its data transmission. Among them, ordinary Ethernet is used for JRU / DMI / MTN communication, such as Figure 1 As shown, the terminal JRU / DMI / MTN with low real-time requirements (or for compatibility with existing equipment) uses ordinary Ethernet to realize the communication function with the switch.
[0035] The TSN network is used for the data exchange bus of the internal A and B dual-channel 2oo2 redundant mechanism of the platform I and II systems, and can also be interconnected with external devices with TSN functions. The safety computer (VCU), speed and distance measurement unit (TIU), data exchange unit (MBI), transponder transmission module (BTM), track circuit information reader (TCR), discrete quantity acquisition unit (DI), discrete quantity drive unit (DO) and other safety-related core boards / units of each system of the platform all adopt a 2-out-of-2 dual-channel redundant architecture design. The A and B dual channels are completely independent and isolated to avoid errors caused by common cause failures affecting safety. The completely independent (including power supply independence) I and II systems are mutually active and standby. The two systems are physically connected through switches, and network isolation is performed through VLAN to improve the independence of the two systems and avoid errors caused by common cause failures affecting reliability.
[0036] The 2oo2 synchronization comparison mechanism of the vehicle safety computer platform based on the TSN network is shown as follows: Figure 2 As shown. Each safety-related board of the platform uses the time synchronization mechanism of the TSN network to achieve data comparison and synchronization between the A and B dual channels, and uses the IEEE802.1 CB technology through the TSN MAC module to achieve a redundant communication architecture. Each channel adopts a "CPU+FPGA" structural design. The synchronous comparison of dual-channel data of various boards and the data communication processing with the TSN network bus are all implemented by a uniformly designed FPGA module, while the CPU module performs corresponding hardware and software design according to the functions of different boards.
[0037] like Figure 2As shown, each FPGA module includes: an FPGA comparison module, a CPU data buffer module, a TSN network data buffer module, and an interface control module; wherein, channel A and channel B are respectively provided with a CPU processor, and each node on the data bus of the TSN Ethernet provides a time trigger signal to the CPU processors of channel A and channel B respectively, and the CPU processor sends the application data to the FPGA comparison module according to the time trigger signal.
[0038] On the other hand, this embodiment further discloses a method for implementing synchronization of a secure computer platform, wherein the secure computer platform is the above-mentioned secure computer platform, and the method for implementing synchronization includes:
[0039] Time synchronization of TSN Ethernet;
[0040] Time synchronization redundancy of TSN Ethernet;
[0041] Synchronization comparison and master-slave synchronization of TSN Ethernet time synchronization mechanism.
[0042] In a specific embodiment, the synchronization technology based on the TSN network specifically includes:
[0043] (1) Time synchronization of TSN network
[0044] The IEEE802.1 AS protocol of the TSN time-sensitive network adopts the gPTP protocol to implement the whole network master clock selection and negotiation algorithm, path delay measurement and compensation, and clock frequency matching and adjustment mechanisms, which can ensure that the synchronization accuracy of each node in the network reaches the nanosecond level.
[0045] ①Frequency matching
[0046] Each node in the TSN network uses its own crystal oscillator, which will face the problem of inconsistent clock frequency. The gPTP protocol achieves clock frequency matching between the slave node and the master node by calculating the clock frequency deviation. The clock frequency matching between the master and slave nodes is shown in the figure below. Figure 3 shown.
[0047] Sync message is a synchronization message, which is sent by the master clock (M) to the slave clock (S) at T1 and T3; Follow-up message is a message that adds a timestamp in the "two-step method" and is used together with the Sync message. T2 and T4 are the times when the slave clock receives the synchronization message. According to the ratio of the sending time interval and the receiving time interval, the clock frequency deviation R between the slave clock and the master clock can be calculated. The deviation formula is described as
[0048]
[0049] An example of slave clock (S) frequency matching is as follows: At the slave clock (S) itself, at time Tm, after frequency matching, its time relative to the master clock (M) can be described as Tm×R.
[0050] ②Time delay
[0051] Under the condition that the clock frequency of each board is consistent, the gPTP protocol provides three messages, PDelay_Req, PDelay_Resp and PDelay_Resp_Followup, for measuring time delay. The method is as follows: Figure 4 shown.
[0052] The slave node records the timestamp T1 when the Pdelay_Req message is actually sent, and the master node records the timestamp T2 when the Pdelay_Req message is actually received; the Pdelay_Resp message sent by the master node contains T2 and the timestamp T3 when its own message is sent, and the slave node records the timestamp T4 when the Pdelay_Req message is actually received. The slave node can calculate the time delay T from the slave node to the master node based on the above time delay process combined with the frequency deviation R Delay , and its calculation formula can be described as
[0053]
[0054] The slave node can achieve time synchronization with the master clock source based on frequency matching and time delay algorithms. The secure computer platform can control the time base error of each board to the nanosecond level, providing a stable and accurate time base for the 2oo2 comparison synchronization within the board on the data transmission bus "plane".
[0055] Specifically, the time synchronization redundancy design based on TSN network:
[0056] Considering the independence and security requirements of the platform, applying TSN network technology to the 2×2oo2 secure computer platform requires solving the redundancy problem of the clock source and time synchronization mechanism.
[0057] TSN's gPTP protocol can achieve consistent time bases for all nodes in the local area network, but there is only one global master node (GM), which is responsible for providing reference clock information to all slave nodes (GS). The single-channel time synchronization base of each system in the dual system of the vehicle safety computer platform is shown as follows: Figure 5 As shown in the figure, the VCU board of channel A is used as the main clock source to synchronize the time of all boards in the entire platform through the switch.
[0058] All boards are interconnected through two TSN switches (SW) and time synchronization is achieved through the gPTP protocol. VCU1 is set as the master clock of the entire network, and the TSN switch and other boards are synchronized to VCU1. The interface status and connection relationship are as follows: Figure 5 As shown in the figure, the "M" interface is the gPTP Master interface, the "S" interface is the gPTP Slave interface, and the "S" performs time synchronization operations with the "M" interface periodically through the gPTP protocol.
[0059] However, if the master and backup systems use the same clock source, a single point failure will cause the entire system to fail. Therefore, clock source redundancy is the key to platform design. The dual systems of this secure computer platform periodically verify the consistency of the clock source in real time through the independent A and B dual channel comparison and synchronization mechanism within the system. When the dual channel time deviation exceeds the threshold, the clock source failure leads to safety, and the board shuts down and enters a safe state. Otherwise, channel B is updated following the time information of channel A. Independent dual channels such as Figure 2 The A / B channels are shown in Figure 1.
[0060] When the main system fails, the security computer platform enters the main system failure and standby system upgrade process through the main and standby redundancy mechanism. After the standby system completes the upgrade operation, the VCU-A board of the original standby system is upgraded to the main clock source (GM) of the platform, realizing hot standby redundancy of the clock source.
[0061] Specifically, the synchronization comparison and master-slave synchronization implementation based on the TSN network time synchronization mechanism
[0062] ① Implementation of synchronous comparison
[0063] Based on the nanosecond-level precision synchronization of the TSN network system bus, an accurate time trigger signal can be provided to each node on the bus (the on-board platform in this embodiment selects a 10ms interrupt) to the two CPUs of the A and B dual channels. The application software running on each of them can use an "event trigger" method to send application data to an independent FPGA comparison module within a precisely synchronized "synchronization window", thereby realizing (software and hardware) independent, stable, fast, high-synchronization precision and high-security distributed comparison and achieving synchronous operation of dual-channel application software.
[0064] ② Implementation of master-slave synchronization
[0065] The main and standby systems of the vehicle safety computer platform must also run in strict synchronization to achieve "seamless" connection and timely and rapid (control) switching of the main and standby working states between the two systems when the host fails, without any substantial impact on the application functions. This solution implements bus synchronization based on the TSN network. On this basis, the main and standby systems interact through communication information to ensure the consistency of the status of the main and standby systems. The communication information content includes synchronization information with a period of 10ms, key status information of the two systems, and heartbeat information of the main and standby systems.
[0066] The platform layer software designs a reasonable master-slave redundancy mechanism based on the master-slave synchronization data information and other peripheral relay states to prevent the occurrence of "dual master" situations, allowing the platform to quickly switch between master and standby.
[0067] Specifically, it can be seen from the above scheme that the present invention realizes the synchronization of the functional boards of each node based on the time-triggered TSN bus technology.
[0068] Specifically, the IEEE802.1 AS protocol technology based on the time-triggered TSN bus is used to achieve precise synchronization of the node boards connected to the backplane of the secure computer. On this basis, the application data is sent to an independent FPGA comparison module within a precisely synchronized "synchronization window" in an "event trigger" manner, thereby achieving (software and hardware) independent, stable, fast, high synchronization accuracy and high security distributed comparison and achieving synchronous operation of dual-channel application software.
[0069] The present invention is based on the synchronization of CPU+FPGA architecture.
[0070] Specifically, the master-slave channel in the system adopts a CPU+FPGA architecture. The FPGA uniformly provides an interrupt source control module to periodically send a timing interrupt to the HOST MCU to achieve data synchronization with the MCU cascade channel. The FPGA in the system completes the timing and calibration control through the synchronization interface to achieve data synchronization. This design takes the comparison and synchronization functions mainly implemented in the FPGA, which can avoid the overhead of software resources in the synchronization design part.
[0071] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0072] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A secure computer platform, characterized in that: include: The platform I system and the platform II system are independent of each other. The platform I system and the platform II system are physically connected by a switch and network isolated by a virtual local area network (VLAN).
2. A secure computer platform according to claim 1, characterized in that: The platform I series and the platform II series use TSN Ethernet for data transmission; Among them, TSN Ethernet is used for the data interaction bus of the 2oo2 redundant mechanism of channel A and channel B within platform I and platform II, and is interconnected with external devices with TSN functions.
3. A secure computer platform according to claim 1, characterized in that: The platform I series and the platform II series are respectively provided with a safety computer VCU, a speed and distance measurement unit TIU, a data interaction unit MBI, a transponder transmission module BTM, a track circuit information reader TCR, a discrete quantity acquisition unit DI, and a discrete quantity drive unit DO.
4. A secure computer platform according to claim 3, characterized in that: The safety computer VCU, speed and distance measurement unit TIU, data interaction unit MBI, transponder transmission module BTM, track circuit information reader TCR, discrete quantity acquisition unit DI, and discrete quantity drive unit DO all adopt a 2-out-of-2 dual-channel redundant architecture, and channel A and channel B are completely independent and isolated.
5. A secure computer platform according to claim 3, characterized in that: It also includes multiple FPGA modules. The data synchronization comparison between the A channel and the B channel of the safety computer VCU, the speed and distance measurement unit TIU, the data interaction unit MBI, the transponder transmission module BTM, the track circuit information reader TCR, the discrete quantity acquisition unit DI, and the discrete quantity drive unit DO, as well as the data communication processing with the interactive data bus of the TSN Ethernet are all realized by the FPGA module.
6. A secure computer platform according to claim 5, characterized in that: Channel A and Channel B are respectively provided with CPU processors. Each node on the data bus of TSN Ethernet provides a time trigger signal to the CPU processors of Channel A and Channel B respectively. The CPU processor sends the application data to the FPGA module according to the time trigger signal.
7. A method for implementing synchronization of a secure computer platform, characterized in that: The secure computer platform is the secure computer platform according to any one of claims 1 to 6, comprising: Time synchronization of TSN Ethernet; Time synchronization redundancy of TSN Ethernet; Synchronization comparison and master-slave synchronization of TSN Ethernet time synchronization mechanism.
8. A method for implementing synchronization of a secure computer platform according to claim 7, characterized in that: The time synchronization of TSN Ethernet includes: frequency matching and measuring time delay of TSN Ethernet, using gPTP protocol to implement the master clock selection and negotiation algorithm of the whole network, path delay measurement and compensation, and clock frequency matching and adjustment mechanism.
9. A method for implementing synchronization of a secure computer platform according to claim 8, characterized in that: The path delay measurement uses the PDelay_Req message, PDelay_Resp message and PDelay_Resp_Followup message provided by the gPTP protocol to measure the time delay.
10. A method for implementing synchronization of a secure computer platform according to claim 7, characterized in that: The time synchronization redundancy of the TSN Ethernet includes: the security core unit is interconnected through two TSN switches SW, and time synchronization is achieved through the gPTP protocol, wherein VCU1 is set as the master clock of the entire network, and the TSN switch and the security core unit are synchronized to VCU1.
Citation Information
Patent Citations
Multi-mode information interaction redundancy safety computer platform
CN103176870A
Module redundant safety computer platform
CN110351174A
Double 2-vote-2 redundancy structure data processing method
WO2019091068A1
