Dual-network synchronous time service method, apparatus and device, and storage medium

Through the dual-network synchronization timing method, redundant transmission is used to send data on two network paths, solving the problem of insufficient network delay and control accuracy in the prior art, and achieving higher data transmission reliability and time synchronization accuracy.

CN120165801APending Publication Date: 2025-06-17SHENZHEN YUMING INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510312813.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-17
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

The prior art cannot meet the network delay requirements for industrial applications, and the technical accuracy of delay control and cycle control is poor, which limits the development of networked control systems.

Method used

The dual-network synchronous timing method is used to determine the network signal strength and determine whether to conduct redundant transmission, ensuring that data is sent on two network paths, thereby improving the reliability and fault tolerance of data transmission.

Benefits of technology

It improves the accuracy and stability of time synchronization, enhances the reliability and robustness of data transmission, and can correct data loss or error codes, meeting the high latency requirements of industrial applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120165801A_ABST
    Figure CN120165801A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer networks, and discloses a dual-network synchronous time service method, device and equipment and a storage medium. The dual-network synchronous time service method is applied to a networked information transmission control system, and specifically comprises the following steps: S101, receiving first node signals respectively sent by a first network and a second network, the first node signal includes a time to transmit the first node signal, a time to receive the first node signal, a signal strength of the first node signal, and network node data. Redundant transmission of time signals is achieved through a double-network structure, the accuracy and stability of time synchronization are improved, the transmission distance of redundant transmission signals is long, the success rate can be improved, the same data are sent on paths or channels of the two networks through redundant transmission, and the transmission efficiency is improved. Therefore, even if data loss or error code analysis is caused when synchronous time service is completed, the original network node data can be obtained in the second network, and comprehensive coverage of the original network node data can be completed, so that the reliability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer networks, and more particularly, to a dual-network synchronous timekeeping method, device, equipment and storage medium. Background Art

[0002] With the popularization of the Internet and continuous technological progress, more and more industries cannot do without the network. For example, financial high-frequency trading, power grid dispatching, database clusters, cross-border payments, enterprise office networks, video conferencing, personal devices, home Internet of Things, etc. To implement a networked information transmission control system, which specifically refers to the collection of some on-site detection, control and operation devices and communication lines in a certain area to provide data transmission between devices, enabling users at different locations in the area to achieve resource sharing and coordinated operations. Introducing a communication network into the control system to connect intelligent on-site devices and automation systems realizes the distribution and networking of on-site devices, and at the same time strengthens the connection between on-site control and upper-layer management. However, at the same time, due to the addition of the network, there are inevitably delays in the information transmission process. For example, under network protocols, packet congestion waiting, network idle detection, long-distance transmission, etc.

[0003] The networked information transmission control system needs to utilize the existing wide area network. The networked information transmission control system has high requirements for latency. If the existing wide area network technology is simply applied, it cannot meet the requirements of industrial applications, and the latency control and cycle control technology accuracy are very poor, which greatly limits the development of the networked control system. Summary of the Invention

[0004] The purpose of the present invention is to provide a dual-network synchronous timekeeping method, device, equipment and storage medium. By determining the signal strength of the network to determine whether the network node data to be transmitted needs redundant transmission to have fault tolerance, the redundant transmission sends the same data on the paths or channels of two networks respectively. In this way, even if data loss or parsing error codes occur during synchronous timekeeping, they can be obtained in the second network and the original network node data can be fully covered to improve reliability, aiming to solve the problems in the prior art that cannot meet the requirements of industrial applications, and the latency control and cycle control technology accuracy are very poor, which greatly limits the development of the networked control system.

[0005] The present invention is implemented as follows. The dual-network synchronous timekeeping method is applied to a networked information transmission control system and specifically includes the following steps:

[0006] S101: Receive the first node signals sent by the first network and the second network respectively. The first node signals include the time when the first node signal is sent, the time when the first node signal is received, the signal strength of the first node signal, and the network node data;

[0007] S102: Compare the signal strength of the obtained first node signal with a preset signal strength to determine whether the signal strength attenuation coefficient of the first node signal is within a preset threshold range;

[0008] S103: If the signal strength attenuation coefficients of the first node signal are all within the preset threshold range, obtain the time of the first node signal and the time of receiving the first node signal, and calculate the node data transmission response time based on the first network and the second network through a preset algorithm;

[0009] S104: Compare the node data transmission response times of the first network and the second network, obtain the priority node data transmission response time based on the first network and the second network, obtain the network node data of the priority node data transmission response time, and perform forward error correction on the network node data of the priority node data transmission response time;

[0010] S105: If the signal strength attenuation coefficients of the first node signal are not all within the preset threshold range, the networked information transmission control system sends a compensation signal to the network sending end to complete the strength compensation of the first node signal, and then executes steps S103 - S104 again;

[0011] S106: If data errors are found during the forward error correction of the network node data of the priority node data transmission response time, search for the network node data of the secondary priority node data transmission response time at the current node to complete the error supplement of the network node data of the priority node data transmission response time.

[0012] Further, in S101, receiving the first node signals sent by the first network and the second network respectively includes:

[0013] Receiving a connection request sent by a network sending end through a preset network, where the connection request is used to request to establish a connection with the networked information transmission control system;

[0014] Detect whether the current network account of the network sending end is a preset target account;

[0015] If the network account of the network sending end is the preset target account, connect to the network sending end according to the connection request, and after the connection is completed, receive the first node signals sent by the first network and the second network respectively.

[0016] Further, the preset network includes one or a combination of 3G network, 4G network, 5G network, WIFI network, wired network, and GNSS satellite network.

[0017] Further, in S102, comparing the signal strength of the obtained first node signal with a preset signal strength includes:

[0018] Obtain multiple preset signal strength comparison models, and sort the threshold ranges of the multiple signal strength comparison models in ascending order;

[0019] Obtain the signal strength of the first node signal, and input the signal strength value of the first node signal into the signal strength comparison model ranked first.

[0020] Further, in S103, calculating the node data transmission response time based on the first network and the second network through a preset algorithm includes:

[0021] Node data transmission response time = time of receiving the first node signal - time of sending the first node signal, and the preset algorithm formula is:

[0022] curl - o / dev / null - s - w "Node data transmission response time: %{time_total} seconds\n";

[0023] Integrate the time of sending the first node signal and the time of receiving the first node signal through the preset algorithm formula, and calculate the node data transmission response time of the first network and the second network respectively.

[0024] Further, in S104, obtaining the network node data of the priority node data transmission response time and performing forward error correction on the network node data of the priority node data transmission response time includes:

[0025] Add an error correction code to the obtained network node data of the priority node data transmission response time;

[0026] Determine the number of original data bits (k): the length of the effective information to be transmitted or stored;

[0027] Determine the total number of bits after encoding (n): the total length including the original data and the redundant bits;

[0028] Obtain the code rate in the error correction code, code rate = total number of bits after encoding (n) / number of original data bits (k). The lower the code rate, the higher the redundancy and the stronger the error correction ability. In this way, errors in the network node data of the priority node data transmission response time can be corrected without requesting retransmission.

[0029] Further, in S105, the networked information transmission control system sends a compensation signal to the network sending end to complete the intensity compensation of the first node signal, including:

[0030] Obtain the signal strength of the current first node signal, and determine the required signal compensation value for comparing the signal strength of the current first node signal with the preset signal strength;

[0031] Determine the loss coefficient of the signal strength of the first node signal in the network, and obtain the signal loss value compensated by the signal network through the loss coefficient;

[0032] By superimposing the obtained required signal compensation value and the signal loss value compensated by the signal network, obtain the total signal strength value to be compensated.

[0033] Compared with the prior art, the dual-network synchronous timekeeping method, device, equipment and storage medium provided by the present invention have the following beneficial effects:

[0034] 1. Realize redundant transmission of time signals through a dual-network structure, improve the accuracy and stability of time synchronization. The redundant transmission signal has a long transmission distance and can improve the success rate. And by determining the signal strength of the network to judge whether the network node data to be transmitted needs redundant transmission, so as to have fault tolerance. The redundant transmission sends the same data on the paths or channels of the two networks respectively. In this way, even if data loss or parsing error codes occur during synchronous timekeeping, they can be obtained in the second network and the original network node data can be fully covered to improve reliability.

[0035] 2. Solve the problem of network time synchronization. The redundant transmission of the dual-network structure signals intentionally adds additional redundant information during the data transmission process to improve the reliability and robustness of the transmission, resist noise, interference or data loss in the channel, and at the same time facilitate the sending end to perform timely strength compensation. At the same time, forward error correction is also performed on the network node data with the response time of the priority node data transmission. The application scenarios include real-time communication, deep space communication, storage systems, etc., to ensure the accuracy of the network node data transmission.

[0036] A dual-network synchronous timekeeping device includes a storage device and a processor. The storage device is used to store a computer program, and the processor runs the computer program to make the dual-network synchronous timekeeping device execute the above-mentioned dual-network synchronous timekeeping method.

[0037] A dual-network synchronous timekeeping equipment includes a housing and a timekeeping device, and the timekeeping device is the above-mentioned dual-network synchronous timekeeping device.

[0038] A non-temporary computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the above-mentioned dual-network synchronous timekeeping method is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flow schematic block diagram of the dual-network synchronous timekeeping method proposed by the present invention;

[0040] Figure 2 It is a schematic flowchart of the process of receiving the first node signals sent by the first network and the second network respectively in the dual-network synchronous timekeeping method proposed by the present invention;

[0041] Figure 3 It is a schematic structural diagram of the dual-network synchronous timekeeping device proposed by the present invention. Specific embodiments

[0042] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0043] The implementation of the present invention will be described in detail below with reference to specific embodiments.

[0044] In the accompanying drawings of this embodiment, the same or similar reference numerals correspond to the same or similar components; in the description of the present invention, it should be understood that if there are terms such as "upper", "lower", "left", "right", etc. indicating the orientation or positional relationship, it is based on the orientation or positional relationship shown in the accompanying drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, the terms describing the positional relationship in the accompanying drawings are only for illustrative purposes and cannot be understood as a limitation of the present invention. For those of ordinary skill in the art, the specific meanings of the above terms can be understood according to specific circumstances.

[0045] Refer to Figure 1-2 As shown, the dual-network synchronous timekeeping method is applied to a networked information transmission control system and specifically includes the following steps:

[0046] S101: Receive the first node signals sent by the first network and the second network respectively. The first node signals include the time when the first node signal is sent, the time when the first node signal is received, the signal strength of the first node signal, and network node data;

[0047] Among them, receiving the first node signals sent by the first network and the second network respectively includes:

[0048] Receive a connection request sent by a network sending end through a preset network. The connection request is used to request to establish a connection with the networked information transmission control system;

[0049] Detect whether the current network account of the network sending end is a preset target account;

[0050] If the network account of the network sender is a preset target account, connect to the network sender according to the connection request. After the connection is completed, receive the first node signals sent by the first network and the second network respectively;

[0051] S102: Compare the signal strength of the obtained first node signal with the preset signal strength, and determine whether the signal strength attenuation coefficient of the first node signal is within the preset threshold range;

[0052] Among them, comparing the signal strength of the obtained first node signal with the preset signal strength includes:

[0053] Obtain multiple preset signal strength comparison models, and sort the threshold ranges of the multiple signal strength comparison models in ascending order;

[0054] Obtain the signal strength of the first node signal, and input the signal strength value of the first node signal into the signal strength comparison model ranked first;

[0055] S103: If the signal strength attenuation coefficients of the first node signals are all within the preset threshold range, obtain the time of the first node signal and the time of receiving the first node signal, and calculate the node data transmission response time based on the first network and the second network through a preset algorithm;

[0056] Among them, calculating the node data transmission response time based on the first network and the second network through a preset algorithm includes:

[0057] Node data transmission response time = time of receiving the first node signal - time of sending the first node signal, and the preset algorithm formula is:

[0058] curl -o / dev / null -s -w "Node data transmission response time: %{time_total} seconds\n";

[0059] Integrate the time of sending the first node signal and the time of receiving the first node signal through the preset algorithm formula, and calculate the node data transmission response times of the first network and the second network respectively;

[0060] Specifically, when there is a large time difference during dual-network data transmission, for example, only the node data transmission response time of the first network is received, then directly list the node data transmission response time of the first network as the priority node data transmission response time, and directly list the second network as the network node data of the second-priority node data transmission response time;

[0061] S104: Compare the node data transmission response times of the first network and the second network, obtain the priority node data transmission response times based on the first network and the second network, obtain the network node data of the priority node data transmission response times, and perform forward error correction on the network node data of the priority node data transmission response times;

[0062] Among them, obtaining the network node data of the priority node data transmission response times and performing forward error correction on the network node data of the priority node data transmission response times includes:

[0063] Add error correction codes to the obtained network node data of the priority node data transmission response times;

[0064] Determine the number of original data bits (k): the length of the effective information to be transmitted or stored;

[0065] Determine the total number of bits after encoding (n): the total length including the original data and the redundant bits;

[0066] Obtain the code rate in the error correction code. The code rate = total number of bits after encoding (n) / number of original data bits (k). The lower the code rate, the higher the redundancy and the stronger the error correction ability. In this way, errors in the network node data of the priority node data transmission response times can be corrected without requesting retransmission;

[0067] S105: If the signal strength attenuation coefficients of the first node signals are not within the preset threshold range, the networked information transmission control system sends a compensation signal to the network sending end to complete the strength compensation of the first node signals, and then executes steps S103 - S104 again;

[0068] S106: If data errors are found during the forward error correction of the network node data of the priority node data transmission response times, search for the network node data of the secondary priority node data transmission response times at the current node to complete the error supplement of the network node data of the priority node data transmission response times.

[0069] In this embodiment, the preset network includes one or a combination of 3G network, 4G network, 5G network, WIFI network, wired network, and GNSS satellite network.

[0070] In S105 of this embodiment, the networked information transmission control system sends a compensation signal to the network sending end to complete the strength compensation of the first node signals, including:

[0071] Obtain the signal strength of the current first node signal, and determine the required signal compensation value for comparing the signal strength of the current first node signal with the preset signal strength;

[0072] Determine the loss coefficient of the signal strength of the first node signal in the network, and obtain the signal loss value compensated by the signal network through the loss coefficient;

[0073] By superimposing the obtained demand signal compensation value and the signal loss value compensated by the signal network, obtain the total signal strength value to be compensated.

[0074] This technical solution realizes the redundant transmission of time signals through a dual-network structure, improves the accuracy and stability of time synchronization. The redundant transmission signal has a long transmission distance and can improve the success rate. And by judging the signal strength of the network to determine whether the network node data to be transmitted needs redundant transmission, so as to have fault tolerance. The redundant transmission sends the same data on the paths or channels of the two networks respectively. In this way, even if data loss or parsing error codes occur during synchronous timing, they can be obtained in the second network and the original network node data can be fully covered to improve reliability.

[0075] Refer to Figure 3 As shown, the dual-network synchronous timing device includes a storage device and a processor. The storage device is used to store computer programs. The processor runs the computer programs to make the dual-network synchronous timing device execute the above-mentioned dual-network synchronous timing method, realizes the redundant transmission of time signals through a dual-network structure, improves the accuracy and stability of time synchronization. The redundant transmission signal has a long transmission distance and can improve the success rate. And by judging the signal strength of the network to determine whether the network node data to be transmitted needs redundant transmission, so as to have fault tolerance. The redundant transmission sends the same data on the paths or channels of the two networks respectively. In this way, even if data loss or parsing error codes occur during synchronous timing, they can be obtained in the second network and the original network node data can be fully covered to improve reliability.

[0076] In this embodiment, the dual-network synchronous timing device includes a housing and a timing device. The timing device is the above-mentioned dual-network synchronous timing device, which solves the network time synchronization problem. The redundant transmission of the dual-network structure signal intentionally adds extra redundant information during data transmission to improve the reliability and robustness of transmission, combat noise, interference or data loss in the channel, and at the same time facilitate the sending end to perform timely strength compensation.

[0077] In this embodiment, a non-temporary computer-readable storage medium stores a computer program thereon. When the computer program is executed by a processor, it realizes the above-mentioned dual-network synchronous timing method, performs forward error correction on the network node data of the priority node data transmission response time. The application scenarios include real-time communication, deep space communication, storage systems, etc., to ensure the accuracy of network node data transmission.

[0078] In this embodiment, the entire operation process can be controlled by a computer. By setting sensors and performing signal feedback, the steps can be carried out in sequence. These are all common knowledge in current automatic control and will not be elaborated one by one in this embodiment.

[0079] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A dual network synchronous timing method, characterized in that: Applied to networked information transmission control system, specifically including the following steps: S101: Receive first node signals respectively sent by a first network and a second network, where the first node signals include a time when the first node signal is sent, a time when the first node signal is received, a signal strength of the first node signal, and network node data; S102: Compare the acquired signal strength of the first node signal with a preset signal strength to determine whether the signal strength attenuation coefficient of the first node signal is within a preset threshold range; S103: If the signal strength attenuation coefficients of the first node signal are all within a preset threshold range, the time of the first node signal and the time of receiving the first node signal are obtained, and the node data transmission response time based on the first network and the second network is calculated by a preset algorithm; S104: Compare the node data transmission response times of the first network and the second network, obtain the priority node data transmission response times based on the first network and the second network, obtain network node data of the priority node data transmission response times, and perform forward error correction on the network node data of the priority node data transmission response times; S105: If the signal strength attenuation coefficients of the first node signal are not within the preset threshold range, the networked information transmission control system sends a compensation signal to the network sending end to complete the strength compensation of the first node signal, and executes steps S103-S104 again; S106: If a data error is found in the forward error correction of the network node data of the priority node data transmission response time, a search for the network node data of the second priority node data transmission response time is performed at the current node to complete the error supplement of the network node data of the priority node data transmission response time.

2. The dual network synchronous timing method according to claim 1, characterized in that: In S101, receiving first node signals respectively sent by the first network and the second network includes: Receiving a connection request sent by a network sending end through a preset network, wherein the connection request is used to request to establish a connection with the networked information transmission control system; Detecting whether the current network account of the network sending end is a preset target account; If the network account of the network sending end is a preset target account, the network sending end is connected according to the connection request, and after the connection is completed, the first node signals respectively sent by the first network and the second network are received.

3. The dual network synchronous timing method as claimed in claim 2, characterized in that: The preset network includes one or a combination of 3G network, 4G network, 5G network, WIFI network, wired network, and GNSS satellite network.

4. The dual network synchronous timing method as claimed in claim 3, characterized in that: In S102, comparing the acquired signal strength of the first node signal with a preset signal strength includes: Acquire multiple preset signal strength comparison models, and sort the threshold ranges of the multiple signal strength comparison models in ascending order; The signal strength of the first node signal is obtained, and the signal strength value of the first node signal is input into the signal strength comparison model ranked first.

5. The dual network synchronous timing method as claimed in claim 4, characterized in that: In S103, the node data transmission response time based on the first network and the second network is calculated by a preset algorithm, including: Node data transmission response time = time of receiving the first node signal - time of sending the first node signal. The preset algorithm formula is: curl -o / dev / null -sw "Node data transfer response time: %{time_total} seconds\n"; The time of sending the first node signal and the time of receiving the first node signal are integrated by a preset algorithm formula to calculate the node data transmission response time of the first network and the second network respectively.

6. The dual network synchronous timing method according to claim 5, characterized in that: In S104, obtaining the network node data of the priority node data transmission response time, and performing forward error correction on the network node data of the priority node data transmission response time includes: Adding an error correction code to the network node data of the acquired priority node data transmission response time; Determine the number of original data bits (k): the effective information length to be transmitted or stored; Determine the total number of bits after encoding (n): including the total length of the original data and redundant bits; Get the code rate in the error correction code, code rate = total number of bits after encoding (n) x number of original data bits (k). The lower the code rate, the higher the redundancy and the stronger the error correction capability. In this way, network node data errors in the priority node data transmission response time can be corrected without requesting retransmission.

7. The dual network synchronous timing method according to claim 6, characterized in that: In S105, the networked information transmission control system sends a compensation signal to the network sending end to complete the intensity compensation of the first node signal, including: Acquire the signal strength of the current first node signal, and determine a required signal compensation value by comparing the signal strength of the current first node signal with a preset signal strength; Determine the loss coefficient of the signal strength of the first node signal in the network, and obtain the signal loss value of the signal network compensation through the loss coefficient; The total signal strength value that needs to be compensated is obtained by superimposing the required signal compensation value and the signal loss value of the signal network compensation.

8. A dual network synchronous timing device, characterized in that: It includes a storage device and a processor, the storage device is used to store a computer program, and the processor runs the computer program to enable the dual-network synchronous timing device to execute the dual-network synchronous timing method according to any one of claims 1-7.

9. Dual network synchronous timing equipment, characterized in that: It comprises a shell and a timing device, and the timing device is the dual-network synchronous timing device as claimed in claim 8.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the dual-network synchronous timing method as described in any one of claims 1 to 7 is implemented.