Network communication control module, implementation method thereof, equipment and storage medium
By designing the unpacking, packet grouping, centralized control, de-redundancy and verification functions of the network communication control module, the problems of network congestion, multi-application center communication not supported and secure data processing in the prior art are solved, and efficient, reliable and secure network communication is achieved.
Patent Information
- Application Number
- CN202510033875.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-04-29
AI Technical Summary
The existing network communication control modules are prone to network congestion when large amounts of data are transmitted, affecting stability, and do not support centralized communication and state interactions of multiple application centers, and lack the de-redundancy and verification functions of secure data.
A network communication control module is designed, including an unpacking unit, a package grouping unit, a centralized control unit, a deredundant unit and a verification unit. The unpacking unit splits the large packet data into small packet data, the packet group assembles the small packet data into large packet data, the centralized management and control unit realizes parallel communication between multiple application centers, and the deredundancy unit and the verification unit performs deredundancy and verification of secure data.
The transmission reliability of large packet data is improved through unpacking and packet grouping functions, the centralized management and control function supports parallel communication between multiple application centers, and the de-redundancy and verification functions ensure the transmission of secure data, solving network congestion and security problems.
Smart Images

Figure CN119907041A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of train control, and in particular relates to a network communication control module and an implementation method, device and storage medium thereof. Background Art
[0002] When application centers such as Radio Block Center (RBC), Temporary Speed Restriction Server (TSRS) and Computer Based Interlocking System (CBI) communicate with external devices, they need to use network communication control modules as a medium. The current network communication control modules are not suitable for large-scale data transmission. When UDP (User Datagram Protocol) transmits a large amount of data, it will cause network congestion, affect the stability of the entire network, and be vulnerable to network attacks and data tampering. It cannot be guaranteed to reach the receiving end, and packet loss is prone to occur. It is not conducive to centralized control and cost saving. The existing network communication control module does not support centralized communication and status interaction among multiple application centers; it does not have the function of de-redundancy and verification of security data, because the network communication control module usually cannot perform de-redundancy operations on security data and lacks the function of verifying security data. Summary of the invention
[0003] In view of the above problems, the present invention proposes a network communication control module, the module comprising:
[0004] A depacketizing unit, used to split a large packet of data into multiple small packets for transmission;
[0005] A packet assembly unit, used for receiving small packet data and assembling the received small packet data to restore the large packet data;
[0006] The centralized control unit is used to request configuration data from the application center and parse the configuration data issued by the application center to achieve parallel communication among the application centers.
[0007] Furthermore, the module also includes a redundancy removal unit and a verification unit:
[0008] A redundancy removal unit, used for removing redundancy from security data;
[0009] The verification unit is used to perform serial number verification and timing correction recovery on the security data.
[0010] The present invention also provides a method for implementing a network communication control module, the method comprising:
[0011] The depacketizing unit splits the large packet data into multiple small packets for transmission;
[0012] The packet assembly unit receives the small packet data, and assembles the received small packet data into large packet data;
[0013] The centralized control unit requests configuration data from the application center and parses the configuration data issued by the application center to achieve parallel communication among the application centers.
[0014] Furthermore, the depacketizing unit splits the large packet data into multiple small packets for transmission, including:
[0015] Register identity serial numbers for large packages of data;
[0016] Determine the number of split packets based on the maximum packet length;
[0017] Determine the packaging method according to the source data length and the ratio of the source data length to the maximum data length of a packet, wherein the packaging data header includes a data identity number, a packet number, a total number of packet data, and a data length;
[0018] The packaged data is sent via Ethernet.
[0019] Furthermore, the packetizing unit receives the small packet data, and performs packetizing on the received small packet data to restore the large packet data, including:
[0020] Copy the data that has passed the cyclic redundancy check to the buffer and verify the length of the buffer data;
[0021] The data that has passed the data length check is then checked for duplication and the data header content is checked in turn;
[0022] Save the verification consistent data header to the buffer area to determine whether the package assembly is completed;
[0023] Determine the data integrity after the package is completed, configure the large package acceptance completion flag for the complete package data, and restore the large package data.
[0024] Furthermore, the centralized control unit realizes parallel communication of each application center including:
[0025] Get the IP, port, mask and gateway information of the initial internal network port through the ID number;
[0026] Request configuration data from the application center based on the initial information obtained, and verify the configuration data issued by the application center;
[0027] According to the configuration data after successful verification, the IP, port, mask and gateway information of the network port are updated and set, and the virtual LAN is divided to realize parallel communication among various application centers.
[0028] Furthermore, the method further comprises:
[0029] The de-redundancy unit performs de-redundancy on the security data;
[0030] The verification unit performs serial number verification and timing correction on the safety data.
[0031] Furthermore, the verification unit performs serial number verification and timing correction recovery on the security data, including:
[0032] Verify the sequence number of received data;
[0033] A timing correction request is triggered according to the ratio of the sequence number to the most recent valid sequence number, the difference between the sequence number and the most recent valid sequence number and the sequence tolerance difference;
[0034] The timing is restored based on the validity of the timing correction request and the consistency between the timing correction request sequence number and the timing correction recovery sequence number.
[0035] The present invention also provides an electronic device, comprising at least one processor and at least one memory, wherein the memory is data-connected to the processor,
[0036] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor so that the at least one processor can perform the method described in the present invention.
[0037] The present invention also provides a computer storage medium, characterized in that the computer storage medium stores one or more instructions, and when the instructions are executed by one or more computers, the one or more computers implement the method of the present invention.
[0038] The network communication control module and its implementation method, device and storage medium of the present invention have a packing function. When sending a large amount of UDP data, the UDP large data is unpacked to divide it into multiple small packets and then sent, which can solve the problems of easy packet loss and poor reliability of large packets during transmission; it has a packing function. When receiving multiple small packets, the small packets are packed into large packets to solve the problem of forming multiple small packets into UDP large packets; it has a centralized control function. The network communication module supports the functions of requesting configuration data and parsing configuration data. In this way, the application center can set the network port IP, port, mask and gateway of the network communication control module; it also supports parallel communication of multiple application center modules, which makes it possible to realize communication and information interaction of multiple application centers; it has redundancy removal and security verification functions. The secure data transmission process has redundancy removal and security verification mechanisms, which play a role in protecting secure communication; the system of the present invention can also be widely used in railway communication, signal and vehicle control fields, and has universality in other fields.
[0039] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A schematic diagram of the unpacking process in an embodiment of the present invention is shown;
[0042] Figure 2 A schematic diagram of the packing process in the unpacking process in an embodiment of the present invention is shown;
[0043] Figure 3 A schematic diagram of the process flow of packaging in an embodiment of the present invention is shown;
[0044] Figure 4 A schematic diagram of the data flow of processing received during the package assembly process of an embodiment of the present invention is shown;
[0045] Figure 5 A schematic diagram of the centralized control principle in an embodiment of the present invention is shown;
[0046] Figure 6 A schematic diagram of the redundancy removal principle in an embodiment of the present invention is shown;
[0047] Figure 7 A schematic diagram of a sequence number verification process in an embodiment of the present invention is shown;
[0048] Figure 8 A schematic diagram of a timing correction and recovery process in an embodiment of the present invention is shown;
[0049] Fig. 9 A schematic diagram of the structure of a network communication control module in an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0051] The application center communicates and controls with external devices to achieve two-way information transmission between the ground signal system, thereby achieving the purpose of controlling the operation of the train. The application center is generally equipped with a network communication control module for the interface with external devices. The network communication control module and the external device use an Ethernet interface, and the network communication control module uses an Ethernet interface as the communication interface inside the application center. When the application center communicates with external devices, it needs to use the network communication control module as a medium. The present invention provides a network communication control module and its implementation method, which realizes safe and reliable big data communication between multiple application centers and external devices through the network communication module.
[0052] In an embodiment of the present invention, a network communication control module is provided. Fig. 9 shows a schematic diagram of the structure of a network communication control module in an embodiment of the present invention, Fig. 9 In the example, the module includes:
[0053] A depacketizing unit, used to split a large packet of data into multiple small packets for transmission;
[0054] A packet assembly unit, used for receiving small packet data and assembling the received small packet data to restore the large packet data;
[0055] The centralized control unit is used to request configuration data from the application center and parse the configuration data issued by the application center to achieve parallel communication among the application centers.
[0056] The network communication control module in the embodiment of the present invention further includes a de-redundancy unit and a verification unit:
[0057] A redundancy removal unit, used for removing redundancy from security data;
[0058] The verification unit is used to perform serial number verification and timing correction recovery on the security data.
[0059] In an embodiment of the present invention, a method for implementing a network communication control module is also provided, the method comprising:
[0060] The depacketizing unit splits the large packet data into multiple small packets for transmission;
[0061] The packet assembly unit receives the small packet data, and assembles the received small packet data into large packet data;
[0062] The centralized control unit requests configuration data from the application center and parses the configuration data issued by the application center to achieve parallel communication among the application centers.
[0063] In the embodiment of the present invention, the network communication control module and the processes of unpacking, packing, centralized communication control management, redundancy removal, sequence number verification and timing correction recovery in its implementation process are specifically described.
[0064] Figure 1 FIG. 1 shows a schematic diagram of the unpacking process in an embodiment of the present invention. Figure 1 In the method, the unpacking unit splits the large package data into multiple small packages and sends them, including: registering the identity serial number of the large package data; determining the number of split small packages according to the maximum data length of one package; determining the packing method according to the source data length and the ratio of the source data length to the maximum data length of one package, and the packing data header includes the data identity serial number, the small package serial number, the total number of small package data and the data length; and sending the packaged data through Ethernet. The unpacking process of the present invention has the reliability and stability of large package data communication. When the large package data is communicated through UDP, the sender sends the large data by decomposing the large data into small packages, and the receiver ensures the reliable and safe communication of the large data by composing the small package data into large packages. At the same time, the system adaptability can be achieved. By setting the maximum data length of each small package, the data packaging and unpacking process can be performed according to the set data length. It supports all large package data communicated by UDP, and can realize reliable and safe communication of large data; at the same time, it includes the use in network communication to CAN bus, network communication to 422 serial port, etc.
[0065] In the embodiment of the present invention, the unpacking process is specifically described. First, it is determined whether there is data. If it is determined that there is data, the identity serial number of the large package data is registered. In the embodiment of the present invention, in order to indicate that the same large package data is added with a local serial number, the identity serial number is marked as (1, 2...n). When split into multiple small packages, the local serial number remains unchanged. The large data is split into several small data packages according to the maximum data length of a package. The total number of small packages M, the serial number of each small package is 0, 1,..., M-1, in the while loop, by judging whether the source data length is greater than 0 (in the embodiment of the present invention, the data length is the received source data length, this source data may be greater than the maximum data length of a package, or may be less than the maximum data length of a package. If the source data length>0, then judge whether the source data length is greater than the maximum data length of a package, if it is greater than the maximum data length of a package, unpack), the data is automatically packaged. It is determined whether the length of the data that has not been packaged is greater than the set maximum data length of a package. If so, it is packaged according to the maximum data length, and the packaged data is processed by Ethernet transmission, the unpackaged data length is updated, and then the above operation is repeated. Determine whether the length of the data that has not been packaged is greater than the set maximum data length. If not, package the data according to its actual length and perform Ethernet sending processing on the packaged data. When all the data is packaged, the data length is cleared.
[0066] Figure 2 FIG. 1 shows a schematic diagram of a packing process in an unpacking process in an embodiment of the present invention. Figure 2 In the packaging process, a data header is generated, the data header is copied to the destination buffer area, the packaged application data is copied to the back of the data header, the CRC (Cyclic Redundancy Check) of the data header and the application data is further calculated, and the CRC value is copied to the back of the application data. That is, in the embodiment of the present invention, the data header includes a data identity number, a packet number, a total number of packets and a data length, the data header is followed by data content, and the data content is followed by CRC. The CRC is calculated from the data header and the data content, and the packaging process ends here.
[0067] In an embodiment of the present invention, a packet assembly unit receives small packet data, and performs packet assembly on the received small packet data to restore the large packet data, including: copying the data that has passed the cyclic redundancy check to a cache area and verifying the data length of the cache area; performing received data duplication judgment and data header content verification on the data that has passed the data length check in sequence; saving the verified consistent data header to the cache area to determine whether packet assembly is completed; determining the data integrity after packet assembly is completed, configuring a large packet acceptance completion flag for the complete packet assembly data, and restoring the large package data.
[0068] The package assembly process is specifically described in the embodiment of the present invention. Figure 3FIG. 1 shows a schematic diagram of the process flow of the package assembly process in an embodiment of the present invention. Figure 3 In the process, first determine whether there is data. After receiving the data, perform CRC check on the data to check whether the CRC is correct. If it is wrong, an alarm is triggered. If the check is correct, the data is saved in the cache area and the application data length is checked to see if it is correct. If it is wrong, an alarm is triggered. If it is correct, determine whether the received data and the last data are the same package data. If it is new data, reprocess the received data. If it is not new data, check whether the received data header is consistent with the last data header. If the data headers are consistent, cache the received data header and continue to process the received data. If the data headers are inconsistent, an alarm is triggered.
[0069] Figure 4 The figure shows a schematic diagram of the data flow of processing received during the package assembly process of an embodiment of the present invention. Figure 4 In the process of processing the received data, the received data is cached and judged whether the data header of the received data is packaged (the judgment basis is whether the sequence number of the small packet + 1 is the total number of packets M). If not, the large package is set to be incomplete. If so, check whether the data is complete (the judgment basis is whether the data of each small packet exists). If complete, the large package reception is set to be completed. If incomplete, an alarm is issued; when the large package reception is completed, the data is written to the destination cache area.
[0070] In the embodiment of the present invention, the centralized control unit realizes parallel communication of each application center including: obtaining the IP, port, mask and gateway information of the initial internal network port through the ID number; requesting configuration data from the application center according to the obtained initial information, and verifying the configuration data issued by the application center; updating the IP, port, mask and gateway information of the network port according to the configuration data after successful verification, dividing the virtual local area network, and realizing parallel communication of each application center. The network communication control module of the present invention has centralized communication management of multiple application centers, can realize the sub-module communication and information interaction functions of multiple application centers, can make different networking adjustments according to different communication requirements, and has strong applicability.
[0071] In the embodiment of the present invention, centralized communication for multiple application centers is realized. Figure 5 FIG. 1 shows a schematic diagram of the centralized control principle in an embodiment of the present invention. Figure 5In the implementation process, the network communication control module obtains its ID number through the hardware pin, obtains the IP, port, mask and gateway of the internal network port set in advance through the ID number, and then the network communication control module starts to request configuration data from the application center through the switch after powering on. In the embodiment of the present invention, the application center includes TSRS, RBC and computer interlocking. The application center controls the network communication control module area according to the function to be implemented to send configuration data to the corresponding network communication control module. After the network communication control module successfully verifies the sent configuration data, it sets the IP, port, mask and gateway of the network port of the network communication control module. At this point, the network port of the network communication control module is set. In the embodiment of the present invention, after the network communication control module interface is set, the network communication control module communicates with the external device through the switch. In the embodiment of the present invention, the VLAN (Virtual Local Area Network) operation of the network communication control module is realized through the above operation, which satisfies the communication of multiple application centers without affecting each other. If multiple application centers want to exchange some information, they can exchange information through the network communication control module. For example, the exchange information can be a monitoring signal, and the signal is used to determine whether to cut the system. In short, centralized communication control can realize centralized communication management of multiple application centers. Different control management methods can be used to meet different communication needs, and it has strong adaptability.
[0072] Specifically, the network communication control module implementation method in the embodiment of the present invention further includes the steps of: a de-redundancy unit performing de-redundancy on the security data; a verification unit performing sequence number verification and timing correction on the security data, Figure 6 FIG. 2 shows a schematic diagram of the redundancy removal principle in an embodiment of the present invention. Figure 6In the example, when the network communication control module and the external device are in secure data communication, the network communication control module has a de-redundancy function. The process is that the network communication control module receives the security data of the external device, parses the received security data, and records the source address and data type of the security data, while saving the IP and port of the external device. The source address represents the ID of the peripheral device, and the data type represents the system (0x80 for I system, 0x81 for II system). For example, when the received security data is parsed and the external device ID is 0x08954006u, the data type is (0x80), the IP is 192.168.1.10 and the port is 14230, then the key information of the security data is saved and recorded as I system A network external device network card 1. If another security data is received in the same cycle and the external device ID is 0x08954006u and the data type is 0x80 after parsing, but the IP and port are different from those saved, then it is recorded as I system B network external device network card 2. Through the above operation, it can be determined that the external device network card 1 and the external device network card 2 belong to the I series AB network data. When the data of the same external device AB network is received in the same cycle, a de-redundancy operation can be performed.
[0073] In the embodiment of the present invention, the verification unit performs serial number verification and timing correction recovery on the security data, including: verifying the serial number of the received data; triggering a timing correction request according to the ratio of the serial number and the most recent valid serial number, the difference between the serial number and the most recent valid serial number and the sequence tolerance difference; and restoring the timing according to the validity of the timing correction request and the consistency between the serial number of the timing correction request and the timing correction recovery serial number. The network communication control module of the present invention has the function of verifying the security communication data, and can perform timing correction triggering and recovery operations when the verification of the security communication data fails.
[0074] In the embodiment of the present invention, the process of sequence number verification and timing correction recovery is specifically described. Figure 7 FIG. 2 shows a schematic diagram of a sequence number verification process in an embodiment of the present invention. Figure 7 When the network communication module receives data from an external device, it will check the serial number N of the security data. If the serial number N is less than the most recent valid serial number NL (N L is the most recent valid serial number) triggers a timing correction request. If not, determine the serial numbers N and N L If the difference is within the tolerance range M, proceed to the next step (M represents the pre-configured sequence tolerance difference). In the embodiment of the present invention, the content of the next step is determined and implemented according to actual needs and will not be repeated here. Otherwise, a timing correction request is triggered. In the embodiment of the present invention, the sequence number represents the number of cycles.
[0075] Figure 8FIG. 2 shows a schematic diagram of a timing correction recovery process in an embodiment of the present invention. Figure 8 In the timing correction recovery process, whether the timing correction request is triggered, if so, whether the time of the timing correction request is valid, if so, whether the serial number Ne of the timing correction request and the serial number Ne of the timing correction recovery are equal, if so, the timing is restored, and if the above judgment is no, it is discarded.
[0076] In an embodiment of the present invention, an electronic device is further provided, the electronic device comprising at least one processor and at least one memory, the memory being data-connected to the processor, wherein:
[0077] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the network communication control module implementation method described in any one of the embodiments of the present invention.
[0078] In an embodiment of the present invention, a computer storage medium is also provided, characterized in that the computer storage medium stores one or more instructions, and when the instructions are executed by one or more computers, the one or more computers implement the network communication control module implementation method described in any one of the embodiments of the present invention.
[0079] The network communication control module and its implementation method, device and storage medium of the present invention have a packing function. When sending a large amount of UDP data, the UDP large data is unpacked to divide it into multiple small packets and then sent, which can solve the problems of easy packet loss and poor reliability of large packets during transmission; it has a packing function. When receiving multiple small packets, the small packets are packed into large packets to solve the problem of forming multiple small packets into UDP large packets; it has a centralized control function. The network communication module supports the functions of requesting configuration data and parsing configuration data. In this way, the application center can set the network port IP, port, mask and gateway of the network communication control module; it also supports parallel communication of multiple application center modules, which makes it possible to realize communication and information interaction of multiple application centers; it has redundancy removal and security verification functions. The secure data transmission process has redundancy removal and security verification mechanisms, which play a role in protecting secure communication; the system of the present invention can also be widely used in railway communication, signal and vehicle control fields, and has universality in other fields.
[0080] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A network communication control module, characterized in that: The modules include: A depacketizing unit, used to split a large packet of data into multiple small packets for transmission; A packet assembly unit, used for receiving small packet data and assembling the received small packet data to restore the large packet data; The centralized control unit is used to request configuration data from the application center and parse the configuration data issued by the application center to achieve parallel communication among the application centers.
2. The network communication control module according to claim 1, characterized in that: The module also includes a redundancy removal unit and a verification unit: A redundancy removal unit, used for removing redundancy from security data; The verification unit is used to perform serial number verification and timing correction recovery on the security data.
3. A method for implementing a network communication control module, characterized in that: The method comprises: The depacketizing unit splits the large packet data into multiple small packets for transmission; The packet assembly unit receives the small packet data, and assembles the received small packet data into large packet data; The centralized control unit requests configuration data from the application center and parses the configuration data issued by the application center to achieve parallel communication among the application centers.
4. The method for implementing a network communication control module according to claim 3, characterized in that: The depacketizing unit splits the large packet data into multiple small packets for transmission, including: Register identity serial numbers for large packages of data; Determine the number of split packets based on the maximum packet length; Determine the packaging method according to the source data length and the ratio of the source data length to the maximum data length of a packet, wherein the packaging data header includes a data identity number, a packet number, a total number of packet data, and a data length; The packaged data is sent via Ethernet.
5. The method for implementing the network communication control module according to claim 3, characterized in that: The packet assembly unit receives the small packet data and assembles the received small packet data to restore the large packet data, including: Copy the data that has passed the cyclic redundancy check to the buffer and verify the length of the buffer data; The data that has passed the data length check is then checked for duplication and the data header content is checked in turn; Save the verification consistent data header to the buffer area to determine whether the package assembly is completed; Determine the data integrity after the package is completed, configure the large package acceptance completion flag for the complete package data, and restore the large package data.
6. The method for implementing a network communication control module according to claim 3, characterized in that: The centralized control unit realizes parallel communication among application centers including: Get the IP, port, mask and gateway information of the initial internal network port through the ID number; Request configuration data from the application center based on the initial information obtained, and verify the configuration data issued by the application center; According to the configuration data after successful verification, the IP, port, mask and gateway information of the network port are updated and set, and the virtual LAN is divided to realize parallel communication among various application centers.
7. The method for implementing a network communication control module according to claim 3, characterized in that: The method further comprises: The de-redundancy unit performs de-redundancy on the security data; The verification unit performs serial number verification and timing correction on the safety data.
8. The method for implementing the network communication control module according to claim 7, characterized in that: The verification unit performs serial number verification and timing correction recovery on the security data, including: Verify the serial number of received data; A timing correction request is triggered according to the ratio of the sequence number to the most recent valid sequence number, the difference between the sequence number and the most recent valid sequence number and the sequence tolerance difference; The timing is restored based on the validity of the timing correction request and the consistency between the timing correction request sequence number and the timing correction recovery sequence number.
9. An electronic device, comprising at least one processor and at least one memory, wherein the memory is data-connected to the processor, wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 3 to 8.
10. A computer storage medium, characterized in that: The computer storage medium stores one or more instructions, which, when executed by one or more computers, enable the one or more computers to implement the method of any one of claims 3 to 8.