Communication data battle processing method based on VSN, storage medium and electronic equipment
By configuring offline solution data and solution matrix in rail transit, solving and verifying VSN, the configuration modification and complexity of forgiveness processing in the prior art is solved, and a high security and simple system forgiveness processing is achieved.
Patent Information
- Application Number
- CN202411870469.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-03-25
AI Technical Summary
In rail transit, the existing communication data security forgiveness processing scheme is difficult to ensure that the maximum forgiveness time configuration is not unexpectedly modified, and in multiple communication node scenarios, the scheme appears cumbersome and complex, limiting its wide application and efficient implementation.
By configuring offline solution data at the data receiving end, including the number of solution cycles N and the corresponding number of solution matrices, the VSN of the previous period is solved forward according to the VSN of the current period and checked to ensure that the forgiveness process will not be exceeded.
This method ensures that the system does not exceed the configuration range for forgiveness, avoids data outdated and incorrect use, improves data security, and simplifies system design and improves system security and reliability.
Smart Images

Figure CN119696900A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit data transmission, and in particular to a communication data forgiveness processing method, storage medium and electronic device based on VSN. Background Art
[0002] In rail transit, the secure transmission of data such as messages is crucial, and secure communication protocols play a vital role in ensuring the integrity, timeliness and overall security of data transmission. Among them, VSN (Vital Sequence Number) came into being as a secure timestamp technology. Its core principle is to generate a series of pseudo-random numbers with the help of LFSR (Linear-Feedback Shift Register), and in the secure communication protocol, a dual-channel secure timestamp is often used, which is embedded in the dual-channel CRC32 (Cyclic Redundancy Check) checksum to verify the integrity and timeliness of the data. Taking the RSSP-I protocol (Railway Signaling Safety Protocol-Type I) as an example, the protocol uses a 32-bit dual-channel secure timestamp.
[0003] In order to enhance the reliability and availability of communications, the data reception forgiveness scheme has become a key link in the design of communication protocols. In actual communication scenarios, if there is a brief interruption in communication or the verification of received data fails, the last packet of valid data will be used for forgiveness within a specific time range (i.e., the maximum forgiveness time specified by the protocol). During the system design phase, the maximum forgiveness time is usually set in a configuration file or defined as a fixed value in a software program. However, during system operation, how to ensure that the maximum forgiveness time configuration will not be accidentally modified, and how to accurately determine whether the last packet of valid data is still within the maximum forgiveness time range without error, have become important problems that safety-critical systems must overcome when designing safety forgiveness schemes. Once the communication reception data is over-forgive, the system will use expired data, which will seriously affect system security.
[0004] At present, the existing communication data security forgiveness processing schemes mainly include the following two typical practices: First, based on the combined fault safety system, judgment processing is performed separately through multiple channels, each multi-channel will perform BIT (Built-in Test) inspection for the configuration, and finally the multi-channels will be compared and voted. This scheme is highly dependent on a specific platform and is difficult to apply to non-multi-channel combined fault safety platforms. In addition, the independence of each channel must be strictly ensured, and the occurrence of common mode failures must be avoided as much as possible. Second, additional inspection measures are used to ensure that the forgiveness processing will not exceed the configuration range, such as using a stack structure (the available size of the stack is determined based on the cycle value converted from the maximum forgiveness time) and calculating additional check words. However, when facing multiple communication nodes, this scheme needs to add additional independent inspection measures for each node. When the number of external communication nodes is large, the entire scheme appears to be more cumbersome and complicated, which greatly limits its wide application and efficient implementation in actual communication systems. Summary of the invention
[0005] The purpose of the present invention is to provide a communication data forgiveness processing method, storage medium and electronic device based on VSN, which has the advantages of simple system and high security.
[0006] To achieve the above object, the present invention provides a communication data forgiveness processing method based on VSN, which comprises:
[0007] S10, configuring offline solution data at the data receiving end;
[0008] S20, calculating the VSN of several previous cycles according to the VSN of the current cycle and the offline calculation data;
[0009] S30, verifying the VSN of the first several cycles and the valid data of the corresponding cycle;
[0010] S40: Use the valid data of the previous cycles to perform application layer processing in this cycle.
[0011] Optionally, in step S30, if the VSN of the previous several cycles and the valid data of the corresponding cycle are verified, step S40 is entered; if the verification fails, the security side data is used for application layer processing.
[0012] Optionally, before step S20, step S11 is also included, determining whether current cycle data is received in the current cycle. If the current cycle data is not received, entering S20; if the current cycle data is received, entering S12, performing a security check on the checksum of the current cycle data.
[0013] Optionally, in step S12, a security check is performed on the checksum of the current cycle data to obtain a check result. If the check result is passed, the current cycle data is passed to the application layer for processing; if the check result is failed, proceed to the next step.
[0014] Optionally, the offline solution data includes a solution cycle number N and solution matrices of the solution cycle number N, and the VSN of the solution cycle number N cycles is solved forward according to the VSN of the current cycle.
[0015] Optionally, after step S12, step S13 is further included, determining whether the current forgiveness period M is less than or equal to the number of solution periods N, if so, entering S20; if not, using the security side data for application layer processing.
[0016] Optionally, the VSN of the current cycle and the VSN of previous cycles are both transmitted using dual channels.
[0017] Optionally, different feedback polynomials are used in the dual-channel transmission.
[0018] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the communication data forgiveness processing method as described above is implemented.
[0019] The present invention also provides an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the communication data forgiveness processing method as described above is implemented.
[0020] In summary, compared with the prior art, the VSN-based communication data forgiveness processing method, storage medium and electronic device provided by the present invention have the following beneficial effects:
[0021] The VSN-based communication data forgiveness processing method of the present invention stores the number of solution cycles N in pre-configured offline solution data, and configures a corresponding number of solution matrices based on N. Even if the number of solution cycles N is tampered with during the operation of the method, due to the lack of corresponding solution matrices in the pre-configured offline solution data, it is impossible to solve the VSN exceeding the number of solution cycles N, thereby ensuring that the system will not perform forgiveness processing beyond the configuration range, thereby ensuring the security of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a flow chart of the VSN-based communication data forgiveness processing method of the present invention.
[0023] Figure 2 The flowchart of a VSN-based communication data forgiveness processing method according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the attached embodiment of the present invention Figure 1 -Attached Figure 2 , the technical solutions, structural features, objectives achieved and effects in the embodiments of the present invention are described in detail.
[0025] It should be noted that the drawings are in a very simplified form and use non-precise proportions. They are only used to conveniently and clearly assist in explaining the embodiments of the present invention, and are not used to limit the conditions for the implementation of the present invention. Therefore, they have no substantive technical significance. Any structural modification, change in proportional relationship or adjustment of size, without affecting the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical content disclosed by the present invention.
[0026] It should be noted that, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only the elements explicitly listed, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0027] like Figure 1 As shown, the present invention provides a communication data forgiveness processing method based on VSN, and the communication data forgiveness processing method comprises the following steps:
[0028] S10, configure offline solution data at the data receiving end. In this step, the offline solution data is pre-configured at the data receiving end. The offline solution data includes the number of solution cycles N and the number of solution cycles N solution matrices. The VSN of the number of solution cycles N is calculated forward according to the VSN of the current cycle.
[0029] In this solution, the number of solution cycles N is the maximum forgiveness cycle allowed in the communication protocol. In the current cycle, the VSN of the solution cycle number N cycles can be calculated forward at most. If it is necessary to calculate forward N+1 cycles, since there are only N solution matrices in the offline solution data, it is impossible to solve the N+1th cycle forward. During the execution of the method, even if the solution cycle number N is tampered with, due to the lack of corresponding solution matrices in the offline solution data, it is impossible to solve the VSN exceeding the solution cycle number N, and thus the valid data in the period exceeding the solution cycle number N will not pass the verification. If the forgiveness processing is still performed after exceeding the forgiveness cycle, the data will be outdated and still used incorrectly, resulting in security risks. This solution only configures the solution cycle number N solution matrices in the pre-configured offline solution data to ensure that the forgiveness processing will not exceed the solution cycle number N, avoid the data being outdated and still being used incorrectly, and improve data security.
[0030] For example, if the current cycle is the 100th cycle and the number of cycles N is configured as 5, the VSN of the 99th to 95th cycles can be solved. The 94th cycle cannot be solved because it exceeds the difference between the current cycle number and the number of cycles N. In this example, the number of cycles N is configured as 5 for illustration and does not constitute a limitation on the number of cycles N. The specific value of the number of cycles N can be set as needed and is not limited here.
[0031] S20, according to the VSN of the current cycle and the offline solution data, solve the VSN of the previous cycles. Continuing with the example, for example, the current cycle is the 100th cycle. For the convenience of expression, the VSN of the current 100th cycle is recorded as VSN 100 , according to VSN 100 The VSN of the 99th cycle is obtained by offline solution and recorded as VSN 99 , the VSN of the 98th cycle is recorded as VSN 98 , the VSN of the 97th cycle is recorded as VSN 97 , the VSN of the 96th cycle is recorded as VSN 96 , the VSN of the 95th cycle is recorded as VSN 95 .
[0032] S30, verify the VSN of the previous several cycles and the valid data of the corresponding cycle. Continuing with the example, if the current cycle is the 100th cycle, if the data received in the 95th cycle is valid data, no valid data is received from the 96th cycle onwards, assuming that the number of solved cycles N is 5, then the valid data of the 95th cycle is verified through VSN 100 Calculate VSN 95 , and VSN 95The valid data received in the 95th cycle is XORed for checksum check. If the check passes, the VSN of the valid data in the 95th cycle is successfully eliminated. 95 , then in this cycle, the valid data in the 95th cycle will continue to be used, that is, forgiveness processing will be performed in this cycle.
[0033] S40, use the valid data of the previous cycles to perform application layer processing in this cycle. The verification of the valid data of the cycle before the current cycle (for example, the valid data in the 95th cycle mentioned in the previous step) has been completed in step S30. In this step, the data of the previous cycle is passed to the application layer for processing.
[0034] In one embodiment, in step S30, if the VSN of the previous several cycles and the valid data of the corresponding cycle are verified, then step S40 is entered to transfer the valid data of the previous cycle to the application layer for processing. If the verification fails, the application layer is processed using the safety side data. Using the safety side data for application layer processing means that when a system or device fails, the system can enter a state that is conducive to safety, which means setting the relevant variables received by the communication to the safety side state specified in the protocol.
[0035] like Figure 2 As shown, in a preferred embodiment, before step S20, it also includes step S11, determining whether current cycle data has been received in the current cycle. If the current cycle data has not been received, enter S20; if the current cycle data has been received, enter S12, and perform a security check on the checksum of the current cycle data.
[0036] Among them, in step S12, the checksum of the current cycle data is security checked to obtain the check result. If the check result is passed, the current cycle data is passed to the application layer for processing, and the valid data received in this cycle enters the application layer for processing; if the check result is not passed, proceed to the next step.
[0037] After step S12, step S13 is also included, determining whether the current forgiveness period M is less than or equal to the number of solution periods N. If so, entering S20; if not, it indicates that the allowed forgiveness period has been exceeded. In order to avoid danger caused by overdue use of data, the security side data is used for application layer processing.
[0038] The VSN of the current cycle and the VSN of the previous cycles are both transmitted through dual channels. Different feedback polynomials are used in dual channel transmission, which has the advantages of low error undetectable rate and high security.
[0039] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the communication data forgiveness processing method as described above is implemented.
[0040] The present invention also provides an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the communication data forgiveness processing method as described above is implemented.
[0041] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.
Claims
1. A communication data forgiveness processing method based on VSN, characterized in that: The communication data forgiveness processing method comprises: S10, configuring offline solution data at the data receiving end; S20, calculating the VSN of several previous cycles according to the VSN of the current cycle and the offline calculation data; S30, verifying the VSN of the first several cycles and the valid data of the corresponding cycle; S40: Use the valid data of the previous cycles to perform application layer processing in this cycle.
2. The communication data forgiveness processing method according to claim 1, characterized in that: In step S30, if the VSN of the previous several cycles and the valid data of the corresponding cycle are verified, the process proceeds to step S40; if the verification fails, the security side data is used for application layer processing.
3. The communication data forgiveness processing method according to claim 1, characterized in that: Before step S20, it also includes step S11, judging whether current cycle data is received in the current cycle. If the current cycle data is not received, entering S20; if the current cycle data is received, entering S12, performing security verification on the checksum of the current cycle data.
4. The communication data forgiveness processing method according to claim 3, characterized in that: In step S12, a security check is performed on the checksum of the current cycle data to obtain a check result. If the check result is passed, the current cycle data is passed to the application layer for processing; If the verification result is failed, proceed to the next step.
5. The communication data forgiveness processing method according to claim 4, characterized in that: The offline solution data includes a solution cycle number N and solution matrices of the solution cycle number N, and the VSN of the solution cycle number N cycles is solved forward according to the VSN of the current cycle.
6. The communication data forgiveness processing method according to claim 5, characterized in that: After step S12, the process further includes step S13, determining whether the current forgiveness period M is less than or equal to the number of solution periods N. If so, the process proceeds to S20; if not, the process uses the security side data for application layer processing.
7. The communication data forgiveness processing method according to claim 1, characterized in that: The VSN of the current cycle and the VSN of previous cycles are both transmitted using dual channels.
8. The communication data forgiveness processing method according to claim 7, characterized in that: Different feedback polynomials are used in the dual-channel transmission.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the communication data forgiveness processing method according to any one of claims 1 to 8 is implemented.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the communication data forgiveness processing method as described in any one of claims 1 to 8 is implemented.