A method and system for synchronizing intelligent network data
By designing an intelligent connected data synchronization method and system in the signal controller of the intelligent connected transportation system, and using the network card and data storage switching module, the problems of insufficient static data exchange and system complexity in the network gate are solved, and low-latency exchange and security improvement of data are achieved.
Patent Information
- Application Number
- CN202211536723.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2042-12-02
AI Technical Summary
The use of gate gates in existing intelligent networked transportation systems has problems such as insufficient static data exchange, complex system configuration, security dependence on administrator technical level, complex structure and high cost.
An intelligent networked data synchronization method and system is designed, and the first and second network cards and data storage and exchange modules in the signal controller are used to allocate application topics and dual queue resources, make an appointment for data packet format, and adopt priority and quality field-driven sending and confirmation strategies to achieve low-latency exchange of data.
It supports low-latency exchange of different types of data, meets a variety of intelligent networked application scenarios, is simple system configuration, avoids security problems caused by human operation errors, combines software and hardware, has a simple structure, clear functions, and has low procurement and maintenance costs.
Smart Images

Figure CN116155916B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent networked transportation technology, and in particular discloses an intelligent networked data synchronization method and system. Background Art
[0002] As a development form of intelligent transportation system, intelligent networked transportation system is an important application of Internet of Things technology in the field of transportation. It uses advanced vehicle and road sensing equipment such as radar and video to perceive the road traffic environment in real time with high precision, and realizes communication, information exchange and control command execution between vehicles, vehicles and roads, vehicles and people, and vehicles and road traffic facilities according to the agreed communication protocols and data exchange standards, and finally forms an integrated intelligent network system of intelligent traffic management control, intelligent dynamic information services and automatic driving of networked vehicles.
[0003] After the current strict physical isolation between the public security network and the Internet, the exchange of data between the internal and external networks has become a prominent problem, affecting the effective deployment of the Internet of Vehicles system. In principle, the data of the public security internal network cannot be synchronized to the Internet, and it is not allowed. However, for the needs of some businesses (for example, the business handled on the internal network must be fed back to the user in a timely manner), an internal and external network synchronization mechanism is needed here. Data must be desensitized without violating regulations and meeting the conditions.
[0004] When the public security network is isolated from the Internet, the network gate technology is generally used to synchronize data. A hardware-based proprietary isolation switching module is used to achieve security isolation, and the chip converts data blocks into data packets in its own protocol format. A proprietary algorithm is used to intelligently compare the correct protocol format / data content "white list" to intercept various abnormal attack data messages. Power redundancy, dual-machine hot standby, port redundancy, link aggregation and combined redundant dual system technology are used to provide high reliability protection.
[0005] Although the high security provided by the network gate as a physical security device is obvious, due to the characteristics of its working principle, it is inevitable that the network gate has some defects:
[0006] (1) Only supports static data exchange, not interactive access.
[0007] (2) The system configuration is complex and its security depends largely on the technical level of the network administrator.
[0008] (3) The structure is complex and the cost is high.
[0009] Therefore, the above-mentioned defects of using gateways in existing intelligent connected transportation systems are technical problems that need to be solved urgently. Summary of the invention
[0010] The present invention provides an intelligent network data synchronization method and system, aiming to solve the above-mentioned defects existing in the use of network gates in existing intelligent network traffic systems.
[0011] One aspect of the present invention relates to an intelligent network data synchronization method, which is applied to a signal controller, wherein the signal controller includes a first network card, a second network card, and a data storage exchange module, wherein the data storage exchange module is connected to the first network card and the second network card respectively, and the intelligent network data synchronization method includes the following steps:
[0012] Allocate corresponding application topics Ti and dual-queue resources to the first intranet application terminal Ai and the second intranet application terminal Bi in the intranet respectively;
[0013] The data packet format of the received data is agreed in advance, and the first network card receives the first packaged data sent by the first intranet application terminal Ai;
[0014] The data storage and switching module stores the first packaged data received by the first network card into the dual queue C1 channel corresponding to the application subject Ti;
[0015] The data storage switching module adopts the first data sending strategy to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi;
[0016] The data storage exchange module confirms the first unpacked data transmitted by the second intranet application terminal Bi using the first data confirmation strategy, wherein the first unpacked data is formed after the second intranet application terminal Bi unpacks the first packaged data;
[0017] The second network card receives the second packaged data sent by the second intranet application terminal Bi;
[0018] The data storage and switching module stores the second packaged data received by the second network card into the dual queue C2 channel corresponding to the application theme Ti;
[0019] The data storage switching module adopts the second data sending strategy to push the second packaged data in the dual-queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the dual-queue C2 channel sliding window to the first intranet application terminal Ai;
[0020] The data storage exchange module confirms the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, wherein the second unpacked data is formed by the first intranet application terminal Ai unpacking the second packaged data.
[0021] Further, in the step where the data storage switching module adopts the first data sending strategy to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi, the first data sending strategy is: reading the priority field, if it is identified that the value of the priority field is larger, it is sent first; reading the quality field, if it is identified that the value of the quality field is 0, then the forget message sending mode is adopted, that is, after sending a message, it is no longer concerned whether it is sent to the second intranet application terminal Bi, and no retransmission mechanism is set; if it is identified that the value of the quality field is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, the ACK confirmation packet of the second intranet application terminal Bi is waited for, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is identified that the value of the quality field is 2, the retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
[0022] Furthermore, in the step where the data storage exchange module confirms the first unpacked data transmitted by the second intranet application terminal Bi using the first data confirmation strategy, the first data confirmation strategy is: reading the quality field, and if the quality field value is identified as 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, waiting for the ACK confirmation packet from the second intranet application terminal Bi, and if the ACK confirmation packet is not received, the message is resent to ensure that the message arrives at least once, but the message cannot be repeated; if the quality field value is identified as 2, a retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
[0023] Further, the data storage switching module adopts a second data sending strategy to push the second packaged data in the dual-queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the dual-queue C2 channel sliding window to the first intranet application terminal Ai. The second data sending strategy is: read the priority field, if it is recognized that the priority field value is larger, it is sent first; read the quality field, if it is recognized that the quality field value is 0, then the forget message sending mode is adopted, that is, after sending a message, it is no longer concerned whether it is sent to the first intranet application terminal Ai, and no retransmission mechanism is set; if it is recognized that the quality field value is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet of the first intranet application terminal Ai, if the ACK confirmation packet is not received, resend the message to ensure that the message can arrive at least once, but the message cannot be repeated; if it is recognized that the quality field value is 2, a retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
[0024] Furthermore, in the step in which the data storage exchange module confirms the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, the second data confirmation strategy is: reading the quality field, and if the quality field value is identified as 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, waiting for the ACK confirmation packet from the first intranet application terminal Ai, if the ACK confirmation packet is not received, the message is resent to ensure that the message arrives at least once, but the message cannot be guaranteed to be repeated; if the quality field value is identified as 2, a retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
[0025] Another aspect of the present invention relates to an intelligent network data synchronization system, which is applied to a signal control machine, wherein the signal control machine includes a first network card, a second network card and a data storage exchange module, wherein the data storage exchange module is connected to the first network card and the second network card respectively, and the intelligent network data synchronization system includes:
[0026] An allocation module, used to allocate corresponding application topics Ti and dual-queue resources to the first intranet application terminal Ai and the second intranet application terminal Bi in the intranet respectively;
[0027] The first communication module is used to pre-agreed on the data packet format of received data, and the first network card receives the first packaged data sent by the first intranet application terminal Ai;
[0028] A first storage module, used for storing the first packaged data received by the first network card into the dual queue C1 channel corresponding to the application theme Ti by using the data storage exchange module;
[0029] A first push module is used to adopt a first data sending strategy by using the data storage exchange module to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi;
[0030] A first confirmation module is used to use the data storage exchange module to confirm the first unpacked data transmitted by the second intranet application terminal Bi using the first data confirmation strategy, wherein the first unpacked data is formed by the second intranet application terminal Bi unpacking the first packaged data;
[0031] A second communication module, configured to receive, by a second network card, second packaged data sent by a second intranet application terminal Bi;
[0032] A second storage module, used to store the second packaged data received by the second network card into the dual queue C2 channel corresponding to the application theme Ti by using the data storage exchange module;
[0033] A second push module is used to adopt a second data sending strategy by the data storage exchange module to push the second packaged data in the dual-queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the dual-queue C2 channel sliding window to the first intranet application terminal Ai;
[0034] The second confirmation module is used to use the data storage exchange module to confirm the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, wherein the second unpacked data is formed by the first intranet application terminal Ai unpacking the second packaged data.
[0035] Furthermore, in the first push module, the first data sending strategy is: read the priority field, and if it is identified that the larger the priority field value is, it is sent first; read the quality field, and if it is identified that the quality field value is 0, then the forget message sending mode is adopted, that is, after sending a message, it no longer cares whether it is sent to the second intranet application terminal Bi, and no retransmission mechanism is set; if it is identified that the quality field value is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet from the second intranet application terminal Bi, and resend the message if the ACK confirmation packet is not received to ensure that the message can arrive at least once, but the message cannot be repeated; if it is identified that the quality field value is 2, then the retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
[0036] Furthermore, in the first confirmation module, the first data confirmation strategy is: read the quality field, and if the quality field value is identified as 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet from the second intranet application terminal Bi, and if the ACK confirmation packet is not received, resend the message to ensure that the message can arrive at least once, but the message cannot be guaranteed to be repeated; if the quality field value is identified as 2, a retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
[0037] Furthermore, in the second push module, the second data sending strategy is: read the priority field, and if it is identified that the larger the priority field value is, it is sent first; read the quality field, and if it is identified that the quality field value is 0, then the forget message sending mode is adopted, that is, after sending a message, it no longer cares whether it is sent to the first intranet application terminal Ai, and no retransmission mechanism is set; if it is identified that the quality field value is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet of the first intranet application terminal Ai, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is identified that the quality field value is 2, then the retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
[0038] Furthermore, in the second confirmation module, the second data confirmation strategy is: read the quality field, and if the quality field value is identified as 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet from the first intranet application terminal Ai, and if the ACK confirmation packet is not received, resend the message to ensure that the message can arrive at least once, but the message cannot be guaranteed to be repeated; if the quality field value is identified as 2, a retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
[0039] The beneficial effects achieved by the present invention are:
[0040] The present invention provides an intelligent network data synchronization method and system, by respectively allocating corresponding application themes Ti and dual-queue resources to a first intranet application terminal Ai and a second intranet application terminal Bi in an intranet; pre-agreing on a data packet format for receiving data, a first network card receives first packaged data sent by the first intranet application terminal Ai; a data storage exchange module stores the first packaged data received by the first network card in a dual-queue C1 channel corresponding to the application theme Ti; the data storage exchange module adopts a first data sending strategy to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi; the data storage exchange module confirms the first packaged data sent by the second intranet application terminal Bi using the first data confirmation strategy Packet data, wherein the first unpacked data is formed by the second intranet application terminal Bi unpacking the first packaged data; the second network card receives the second packaged data sent by the second intranet application terminal Bi; the data storage exchange module stores the second packaged data received by the second network card in the double queue C2 channel corresponding to the application theme Ti; the data storage exchange module adopts the second data sending strategy to push the second packaged data in the double queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the double queue C2 channel sliding window to the first intranet application terminal Ai; the data storage exchange module confirms the second unpacked data transmitted by the first intranet application terminal Ai adopting the second data confirmation strategy, wherein the second unpacked data is formed by the first intranet application terminal Ai unpacking the second packaged data. The intelligent network data synchronization method and system provided by the present invention support low-latency exchange of different types of data to meet different intelligent network application scenarios; the system configuration is simple, and human operation errors can be avoided to a certain extent to cause system security problems; the combination of software and hardware has a simple structure, clear functional division, and low system procurement and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of a flow chart of a first embodiment of a smart network data synchronization method provided by the present invention;
[0042] Figure 2 A schematic diagram of a flow chart of a second embodiment of the intelligent network data synchronization method provided by the present invention;
[0043] Figure 3 A functional block diagram of an embodiment of an intelligent network data synchronization system provided by the present invention;
[0044] Figure 4 This is an overall design diagram of an embodiment of the intelligent network data synchronization system provided by the present invention.
[0045] Description of Figure Numbers:
[0046] 10. Allocation module; 20. First communication module; 30. First storage module; 40. First push module; 50. First confirmation module; 60. Second communication module; 70. Second storage module; 80. Second push module; 90. Second confirmation module. DETAILED DESCRIPTION
[0047] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0048] like Figure 1 and Figure 2 As shown, the first embodiment of the present invention proposes an intelligent network data synchronization method, which is applied to a signal control machine. The signal control machine includes a first network card, a second network card and a data storage exchange module. The data storage exchange module is connected to the first network card and the second network card respectively. Based on the signal control machine, a combination of software and hardware is adopted to achieve data synchronization between the public security private network and the Internet under the premise of ensuring information security. At the hardware level, the intelligent network data synchronization system adopts a plurality of solid-state hard disks and a plurality of network cards. Multiple solid-state hard disks use RAID (Redundant Arrays of Independent Disks) technology to form a solid-state hard disk array for data storage and exchange, which can be used to improve disk performance, or provide data loss protection when one (sometimes multiple) solid-state hard disks in the array fail completely or partially. Multiple network cards are grouped according to the Internet and the public security intranet to avoid direct connection between the Internet and the public security intranet from a physical level.
[0049] At the operating system level, namespace and virtualization technologies are used to isolate hardware, network and other resources to improve system security.
[0050] At the application software level, the intelligent network data synchronization system uses application themes, dual queues, packaging and unpacking, sliding windows, priority (P), quality of service (Q), real-time push and other technologies to achieve data synchronization between the Internet and the public security intranet. Various applications on the Internet and the public security intranet are associated using application themes. The dual queue is a dual-channel physical storage exchange queue, and data flows in the forward and reverse directions in the dual channels. The applications on the Internet and the public security intranet pack and unpack structured data, semi-structured data, and unstructured data in accordance with the system-agreed format, so that the intelligent network data synchronization system can synchronize data in the dual queues. The dual queue adopts the concept of sliding windows, prioritizes the synchronization of data packets marked with priority (P), and at the same time, the data packets marked with quality of service (Q) to ensure high reliability of data transmission. The intelligent network data synchronization method includes the following steps:
[0051] Step S100: allocate corresponding application topics Ti and dual-queue resources to the first intranet application terminal Ai and the second intranet application terminal Bi in the intranet respectively.
[0052] The applications of the Internet and the public security intranet are in a peer-to-peer relationship in the intelligent network data synchronization system. For the convenience of description, it is assumed that Ai (i = 1, 2, ..., n) and Bi (i = 1, 2, ..., n) represent a certain type of application in different network environments. For the dual channels in the dual queues, they are named C1 and C2 respectively. The system registers and allocates application topics Ti (i = 1, 2, ..., n) and dual queue resources for the corresponding applications Ai (i = 1, 2, ..., n) and Bi (i = 1, 2, ..., n).
[0053] Step S200: pre-agreing on a data packet format for receiving data, and receiving, by the first network card, first packaged data sent by the first intranet application terminal Ai.
[0054] The data packet format of the received data is agreed in advance, and the first intranet application terminal Ai packages the data according to the format agreed by the system. The data packet format is as follows:
[0055] priority quality length data
[0056] priority: priority field, integer type, 10 bits long. The larger the value, the higher the priority.
[0057] quality: quality field, integer type, length 2 bits, value description:
[0058] 0: The message is delivered at most once.
[0059] 1: The message is delivered at least once.
[0060] 2: The message is delivered only once.
[0061] length: data size field, length 8 bytes.
[0062] data: data content field.
[0063] The first intranet application terminal Ai sends the packaged data to the first network card.
[0064] Step S300: The data storage and switching module stores the first packaged data received by the first network card into the dual-queue C1 channel corresponding to the application theme Ti.
[0065] The packaged data in the first network card is stored in the dual queue C1 channel corresponding to the application theme Ti.
[0066] Step S400: the data storage switching module adopts the first data sending strategy to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi.
[0067] The first data sending strategy is adopted for the data in the dual-queue C1 channel sliding window to send the data to the second network card.
[0068] The first data sending strategy is: read the priority field, if it is recognized that the larger the priority field value is, it is sent first; read the quality field, if it is recognized that the quality field value is 0, then the forget message sending mode is adopted, that is, after sending a message, it is no longer concerned about whether it is sent to the second intranet application terminal Bi, and no retransmission mechanism is set; if it is recognized that the quality field value is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet from the second intranet application terminal Bi, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is recognized that the quality field value is 2, the retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
[0069] Step S500: The data storage exchange module confirms the first unpacked data transmitted by the second intranet application terminal Bi using the first data confirmation strategy, wherein the first unpacked data is formed by the second intranet application terminal Bi unpacking the first packaged data.
[0070] The second intranet application terminal Bi receives the packaged data from the second network card, unpacks the packaged data, and confirms it to the system according to different policies.
[0071] The first data confirmation strategy is: read the quality field. If the quality field value is identified as 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet from the second intranet application terminal Bi. If the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be guaranteed to be repeated; if the quality field value is identified as 2, a retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
[0072] Step S600: The second network card receives the second packaged data sent by the second intranet application terminal Bi.
[0073] The second intranet application terminal Bi sends the packaged data to the second network card.
[0074] Step S700: The data storage and switching module stores the second packaged data received by the second network card into the dual-queue C2 channel corresponding to the application theme Ti.
[0075] The packaged data in the second network card is stored in the dual-queue C2 channel corresponding to the application theme Ti.
[0076] Step S800: The data storage exchange module adopts the second data sending strategy to push the second packaged data in the dual-queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the dual-queue C2 channel sliding window to the first intranet application terminal Ai.
[0077] The second intranet application terminal Bi unpacks the packaged data and confirms with the system according to the second data sending strategy.
[0078] The second data sending strategy is: read the priority field, if it is recognized that the larger the priority field value is, it is sent first; read the quality field, if it is recognized that the quality field value is 0, then the forget message sending mode is adopted, that is, after sending a message, it no longer cares whether it is sent to the first intranet application terminal Ai, and no retransmission mechanism is set; if it is recognized that the quality field value is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet of the first intranet application terminal Ai, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is recognized that the quality field value is 2, the retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
[0079] Step S900: The data storage exchange module confirms the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, wherein the second unpacked data is formed by the first intranet application terminal Ai unpacking the second packaged data.
[0080] The second data confirmation strategy is adopted for the data in the dual-queue C2 channel sliding window to send the data to the first network card.
[0081] The second data confirmation strategy is: read the quality field. If the quality field value is identified as 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet from the first intranet application terminal Ai. If the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be guaranteed to be repeated; if the quality field value is identified as 2, a retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
[0082] The present embodiment provides a smart network data synchronization method. Compared with the prior art, the first intranet application terminal Ai and the second intranet application terminal Bi in the intranet are respectively allocated corresponding application topics Ti and dual-queue resources; the data packet format of the received data is pre-agreed, and the first network card receives the first packaged data sent by the first intranet application terminal Ai; the data storage exchange module stores the first packaged data received by the first network card in the dual-queue C1 channel corresponding to the application topic Ti; the data storage exchange module adopts the first data sending strategy to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi; the data storage exchange module confirms the data transmitted by the second intranet application terminal Bi using the first data confirmation strategy. The first unpacked data, wherein the first unpacked data is formed by the second intranet application terminal Bi after unpacking the first packaged data; the second network card receives the second packaged data sent by the second intranet application terminal Bi; the data storage exchange module stores the second packaged data received by the second network card in the double queue C2 channel corresponding to the application theme Ti; the data storage exchange module adopts the second data sending strategy to push the second packaged data in the double queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the double queue C2 channel sliding window to the first intranet application terminal Ai; the data storage exchange module confirms the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, wherein the second unpacked data is formed by the first intranet application terminal Ai after unpacking the second packaged data. The intelligent network data synchronization method provided in this embodiment supports low-latency exchange of different types of data to meet different intelligent network application scenarios; the system configuration is simple, and human operation errors can be avoided to a certain extent to cause system security problems; the combination of software and hardware has a simple structure, clear functional division, and low system procurement and maintenance costs.
[0083] like Figure 3 and Figure 4 As shown, Figure 31 is a functional block diagram of an embodiment of an intelligent network data synchronization system provided by the present invention. In this embodiment, the intelligent network data synchronization system is applied to a signal control machine, the signal control machine includes a first network card, a second network card and a data storage exchange module, the data storage exchange module is connected to the first network card and the second network card respectively, and the intelligent network data synchronization system includes an allocation module 10, a first communication module 20, a first storage module 30, a first push module 40, a first confirmation module 50, a second communication module 60, a second storage module 70, a second push module 80 and a second confirmation module 90, wherein the allocation module 10 is used to respectively The first intranet application terminal Ai and the second intranet application terminal Bi in the network are allocated corresponding application topics Ti and dual-queue resources; the first communication module 20 is used to pre-agree on the data packet format of the received data, and the first network card receives the first packaged data sent by the first intranet application terminal Ai; the first storage module 30 is used to use the data storage exchange module to store the first packaged data received by the first network card in the dual-queue C1 channel corresponding to the application topic Ti; the first push module 40 is used to use the data storage exchange module to adopt the first data sending strategy to push the first packaged data in the sliding window of the dual-queue C1 channel to the second network card, The second network card sends the first packaged data in the double-queue C1 channel sliding window to the second intranet application terminal Bi; the first confirmation module 50 is used to use the data storage exchange module to confirm the first unpacked data transmitted by the second intranet application terminal Bi using the first data confirmation strategy, wherein the first unpacked data is formed after the second intranet application terminal Bi unpacks the first packaged data; the second communication module 60 is used to receive the second packaged data sent by the second intranet application terminal Bi by the second network card; the second storage module 70 is used to use the data storage exchange module to store the second packaged data received by the second network card to In the dual-queue C2 channel corresponding to the application theme Ti; a second push module 80 is used to adopt the second data sending strategy by the data storage exchange module to push the second packaged data in the dual-queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the dual-queue C2 channel sliding window to the first intranet application terminal Ai; a second confirmation module 90 is used to adopt the data storage exchange module to confirm the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, wherein the second unpacked data is formed by the first intranet application terminal Ai after unpacking the second packaged data.
[0084] The applications of the Internet and the public security intranet are in a peer-to-peer relationship in the intelligent network data synchronization system. For the convenience of description, it is assumed that Ai (i = 1, 2, ..., n) and Bi (i = 1, 2, ..., n) represent a certain type of application in different network environments. For the dual channels in the dual queues, they are named C1 and C2 respectively. The allocation module 10 registers and allocates application topics Ti (i = 1, 2, ..., n) and dual queue resources for the corresponding applications Ai (i = 1, 2, ..., n) and Bi (i = 1, 2, ..., n).
[0085] The data packet format of the received data is agreed in advance, and the first intranet application terminal Ai packages the data according to the format agreed by the system. The data packet format is as follows:
[0086] priority quality length data
[0087] priority: priority field, integer type, 10 bits long. The larger the value, the higher the priority.
[0088] quality: quality field, integer type, length 2 bits, value description:
[0089] 0: The message is delivered at most once.
[0090] 1: The message is delivered at least once.
[0091] 2: The message is delivered only once.
[0092] length: data size field, length 8 bytes.
[0093] data: data content field.
[0094] The first intranet application terminal Ai sends the packaged data to the first network card of the first communication module 20 .
[0095] The first storage module 30 stores the packaged data in the first network card into the dual queue C1 channel corresponding to the application theme Ti.
[0096] The first push module 40 adopts a first data sending strategy for the data in the dual-queue C1 channel sliding window to send the data to the second network card.
[0097] The first data sending strategy is: read the priority field, if it is recognized that the larger the priority field value is, it is sent first; read the quality field, if it is recognized that the quality field value is 0, then the forget message sending mode is adopted, that is, after sending a message, it is no longer concerned about whether it is sent to the second intranet application terminal Bi, and no retransmission mechanism is set; if it is recognized that the quality field value is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet from the second intranet application terminal Bi, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is recognized that the quality field value is 2, the retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
[0098] The second intranet application terminal Bi receives the packaged data from the second network card, unpacks the packaged data, and confirms the packaged data to the first confirmation module 50 according to different policies.
[0099] The first data confirmation strategy is: read the quality field. If the quality field value is identified as 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet from the second intranet application terminal Bi. If the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be guaranteed to be repeated; if the quality field value is identified as 2, a retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
[0100] The second intranet application terminal Bi sends the packaged data to the second network card of the second communication module 60 .
[0101] The second storage module 70 stores the packaged data in the second network card into the dual queue C2 channel corresponding to the application theme Ti.
[0102] The second intranet application terminal Bi unpacks the packaged data and confirms it to the second push module 80 according to the second data sending strategy.
[0103] The second data sending strategy is: read the priority field, if it is recognized that the larger the priority field value is, it is sent first; read the quality field, if it is recognized that the quality field value is 0, then the forget message sending mode is adopted, that is, after sending a message, it no longer cares whether it is sent to the first intranet application terminal Ai, and no retransmission mechanism is set; if it is recognized that the quality field value is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet of the first intranet application terminal Ai, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is recognized that the quality field value is 2, the retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
[0104] The second confirmation module 90 adopts a second data confirmation strategy for the data in the dual-queue C2 channel sliding window to send the data to the first network card.
[0105] The second data confirmation strategy is: read the quality field. If the quality field value is identified as 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet from the first intranet application terminal Ai. If the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be guaranteed to be repeated; if the quality field value is identified as 2, a retransmission and duplicate message discovery mechanism mode is adopted, that is, a retransmission and duplicate message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
[0106] The present embodiment provides an intelligent network data synchronization system. Compared with the prior art, the system adopts an allocation module 10, a first communication module 20, a first storage module 30, a first push module 40, a first confirmation module 50, a second communication module 60, a second storage module 70, a second push module 80 and a second confirmation module 90, respectively allocating corresponding application topics Ti and dual-queue resources to the first intranet application terminal Ai and the second intranet application terminal Bi in the intranet; pre-agreing on the data packet format of the received data, the first network card receives the first packaged data sent by the first intranet application terminal Ai; the data storage exchange module stores the first packaged data received by the first network card in the dual-queue C1 channel corresponding to the application topic Ti; the data storage exchange module adopts the first data sending strategy to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi. Terminal Bi; the data storage and switching module confirms the first unpacked data transmitted by the second intranet application terminal Bi using the first data confirmation strategy, wherein the first unpacked data is formed by the second intranet application terminal Bi unpacking the first packed data; the second network card receives the second packed data sent by the second intranet application terminal Bi; the data storage and switching module stores the second packed data received by the second network card in the double queue C2 channel corresponding to the application theme Ti; the data storage and switching module adopts the second data sending strategy to push the second packed data in the sliding window of the double queue C2 channel to the first network card, and the first network card sends the second packed data in the sliding window of the double queue C2 channel to the first intranet application terminal Ai; the data storage and switching module confirms the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, wherein the second unpacked data is formed by the first intranet application terminal Ai unpacking the second packed data. The intelligent network data synchronization system provided in this embodiment supports low-latency exchange of different types of data to meet different intelligent network application scenarios; the system configuration is simple, which can avoid system safety problems caused by human operational errors to a certain extent; it combines software and hardware, has a simple structure, clear functional divisions, and low system procurement and maintenance costs.
[0107] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An intelligent network data synchronization method, applied to a signal controller, the signal controller comprises a first network card, a second network card and a data storage exchange module, the data storage exchange module is connected to the first network card and the second network card respectively, characterized in that: The intelligent network data synchronization method comprises the following steps: Allocate corresponding application topics Ti and dual-queue resources to the first intranet application terminal Ai and the second intranet application terminal Bi in the intranet respectively; A data packet format for receiving data is agreed upon in advance, and the first network card receives the first packaged data sent by the first intranet application terminal Ai; The data storage exchange module stores the first packaged data received by the first network card into the dual queue C1 channel corresponding to the application theme Ti; The data storage switching module adopts the first data sending strategy to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi; The data storage exchange module confirms the first unpacked data transmitted by the second intranet application terminal Bi using the first data confirmation strategy, wherein the first unpacked data is formed after the second intranet application terminal Bi unpacks the first packaged data; The second network card receives the second packaged data sent by the second intranet application terminal Bi; The data storage exchange module stores the second packaged data received by the second network card into the dual queue C2 channel corresponding to the application theme Ti; The data storage exchange module adopts the second data sending strategy to push the second packaged data in the dual-queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the dual-queue C2 channel sliding window to the first intranet application terminal Ai; The data storage exchange module confirms the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, wherein the second unpacked data is formed by the first intranet application terminal Ai unpacking the second packaged data.
2. The intelligent network data synchronization method according to claim 1, characterized in that: In the step in which the data storage and switching module adopts a first data transmission strategy to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi, the first data transmission strategy is: reading the priority field, if it is identified that the value of the priority field is larger, then the data is sent first; reading the quality field, if it is identified that the value of the quality field is 0, then the forget message sending mode is adopted, that is, after sending a message, it is no longer concerned whether it is sent to the second intranet application terminal Bi, and no retransmission mechanism is set; if it is identified that the value of the quality field is 1, then a simple retransmission mechanism mode is adopted, that is, after sending the message, the ACK confirmation packet of the second intranet application terminal Bi is waited for, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is identified that the value of the quality field is 2, then the retransmission and repeated message discovery mechanism mode is adopted, that is, a retransmission and repeated message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
3. The intelligent network data synchronization method according to claim 1, characterized in that: In the step in which the data storage exchange module confirms the first unpacked data transmitted by the second intranet application terminal Bi using the first data confirmation strategy, the first data confirmation strategy is: reading the quality field, if it is recognized that the value of the quality field is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, wait for the ACK confirmation packet of the second intranet application terminal Bi, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is recognized that the value of the quality field is 2, a retransmission and repeated message discovery mechanism mode is adopted, that is, a retransmission and repeated message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
4. The intelligent network data synchronization method according to claim 1, characterized in that: In the step in which the data storage and switching module adopts a second data transmission strategy to push the second packaged data in the dual-queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the dual-queue C2 channel sliding window to the first intranet application terminal Ai, the second data transmission strategy is: reading the priority field, if it is identified that the value of the priority field is larger, it is sent first; reading the quality field, if it is identified that the value of the quality field is 0, then a forget message sending mode is adopted, that is, after sending a message, it is no longer concerned whether it is sent to the second intranet application terminal Bi, and no retransmission mechanism is set; if it is identified that the value of the quality field is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, the ACK confirmation packet of the first intranet application terminal Ai is waited for, and if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is identified that the value of the quality field is 2, a retransmission and repeated message discovery mechanism mode is adopted, that is, a retransmission and repeated message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
5. The intelligent network data synchronization method according to claim 1, characterized in that: In the step in which the data storage exchange module confirms the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, the second data confirmation strategy is: reading the quality field, and if it is recognized that the quality field value is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, waiting for the ACK confirmation packet of the first intranet application terminal Ai, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is recognized that the quality field value is 2, a retransmission and repeated message discovery mechanism mode is adopted, that is, a retransmission and repeated message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
6. An intelligent network data synchronization system, applied to a signal controller, the signal controller comprises a first network card, a second network card and a data storage exchange module, the data storage exchange module is connected to the first network card and the second network card respectively, characterized in that: The intelligent network data synchronization system includes: An allocation module (10) is used to allocate corresponding application topics Ti and dual-queue resources to a first intranet application terminal Ai and a second intranet application terminal Bi in the intranet respectively; A first communication module (20) is used to pre-determine a data packet format for receiving data, and the first network card receives first packaged data sent by the first intranet application terminal Ai; A first storage module (30), used for storing the first packaged data received by the first network card into the dual queue C1 channel corresponding to the application subject Ti by using the data storage and exchange module; A first push module (40) is used to use the data storage exchange module to adopt a first data sending strategy to push the first packaged data in the dual-queue C1 channel sliding window to the second network card, and the second network card sends the first packaged data in the dual-queue C1 channel sliding window to the second intranet application terminal Bi; A first confirmation module (50) is used to use the data storage exchange module to confirm the first unpacked data transmitted by the second intranet application terminal Bi using the first data confirmation strategy, wherein the first unpacked data is formed by the second intranet application terminal Bi unpacking the first packaged data; A second communication module (60), configured to receive, by the second network card, second packaged data sent by the second intranet application terminal Bi; A second storage module (70), configured to use the data storage and exchange module to store the second packaged data received by the second network card into the dual queue C2 channel corresponding to the application subject Ti; A second push module (80) is used to use the data storage exchange module to adopt a second data sending strategy to push the second packaged data in the dual-queue C2 channel sliding window to the first network card, and the first network card sends the second packaged data in the dual-queue C2 channel sliding window to the first intranet application terminal Ai; The second confirmation module (90) is used to use the data storage exchange module to confirm the second unpacked data transmitted by the first intranet application terminal Ai using the second data confirmation strategy, wherein the second unpacked data is formed by the first intranet application terminal Ai unpacking the second packaged data.
7. The intelligent network data synchronization system according to claim 6, characterized in that: In the first push module (40), the first data sending strategy is: reading the priority field, if it is identified that the value of the priority field is larger, then sending is given priority; reading the quality field, if it is identified that the value of the quality field is 0, then adopting a forget message sending mode, that is, after sending a message, it is no longer concerned about whether it is sent to the second intranet application terminal Bi, and no retransmission mechanism is set; if it is identified that the value of the quality field is 1, then adopting a simple retransmission mechanism mode, that is, after sending the message, waiting for the ACK confirmation packet of the second intranet application terminal Bi, if the ACK confirmation packet is not received, then resending the message to ensure that the message can arrive at least once, but the message cannot be repeated; if it is identified that the value of the quality field is 2, then adopting a retransmission and repeated message discovery mechanism mode, that is, designing a retransmission and repeated message discovery mechanism to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
8. The intelligent network data synchronization system according to claim 6, characterized in that: In the first confirmation module (50), the first data confirmation strategy is: reading the quality field, if it is identified that the value of the quality field is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, waiting for the ACK confirmation packet of the second intranet application terminal Bi, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be repeated; if it is identified that the value of the quality field is 2, a retransmission and repeated message discovery mechanism mode is adopted, that is, a retransmission and repeated message discovery mechanism is designed to ensure that the message arrives at the second intranet application terminal Bi and strictly arrives only once.
9. The intelligent network data synchronization system according to claim 6, characterized in that: In the second push module (80), the second data sending strategy is: reading the priority field, if it is identified that the value of the priority field is larger, it is sent first; reading the quality field, if it is identified that the value of the quality field is 0, then adopting the forget message sending mode, that is, after sending a message, it is no longer concerned about whether it is sent to the first intranet application terminal Ai, and no retransmission mechanism is set; if it is identified that the value of the quality field is 1, then adopting a simple retransmission mechanism mode, that is, after sending the message, waiting for the ACK confirmation packet of the first intranet application terminal Ai, if the ACK confirmation packet is not received, then resending the message to ensure that the message can arrive at least once, but the message cannot be repeated; if it is identified that the value of the quality field is 2, then adopting the retransmission and repeated message discovery mechanism mode, that is, designing a retransmission and repeated message discovery mechanism to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
10. The intelligent network data synchronization system according to claim 6, characterized in that: In the second confirmation module (90), the second data confirmation strategy is: reading the quality field, if it is identified that the value of the quality field is 1, a simple retransmission mechanism mode is adopted, that is, after sending the message, waiting for the ACK confirmation packet of the first intranet application terminal Ai, if the ACK confirmation packet is not received, the message is resent to ensure that the message can arrive at least once, but the message cannot be guaranteed to be repeated; if it is identified that the value of the quality field is 2, a retransmission and repeated message discovery mechanism mode is adopted, that is, a retransmission and repeated message discovery mechanism is designed to ensure that the message arrives at the first intranet application terminal Ai and strictly arrives only once.
Citation Information
Patent Citations
Flexible data transmission method of flexible data transmission protocol based on TCP / IP protocol
CN110830472A
Serial port communication method based on two-out-of-two framework
CN113326224A