A method for preventing data loss during network switching of industrial networking equipment

By monitoring network status in real time and using distributed storage and data merging technology in industrial networked devices, the data loss problem of equipment during network switching is solved, data integrity and continuity are ensured, and system stability and reliability are improved.

CN118590504BActive Publication Date: 2025-03-21XIAMEN STAR-ELINK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410890878.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2025-03-21
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Industrial networked equipment is prone to data loss and discontinuous transmission during network switching. The existing technology cannot effectively prevent data loss and merge data, affecting real-time monitoring and control of the production process.

Method used

By monitoring the network status of the uploaded data channel in real time, when the network status fluctuates higher than the set threshold, the data is immediately stored in a distributed manner, and the distributed path data is retained in the data node. Pause the reception of new data, store the new data in the buffer node, and when the network state is restored, the new data in the buffer is merged with the backup data and sent to the storage server.

Benefits of technology

It effectively prevents data loss, ensures data integrity and continuity, improves system reliability and stability, and reduces the time and resource consumption required for data recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590504B_ABST
    Figure CN118590504B_ABST
Patent Text Reader

Abstract

The present invention proposes a method for preventing data loss in network switching of industrial networking equipment, the method comprising the following steps: uploading data of industrial networking equipment to a data node, backing up the uploaded data in the data node, and when the network state of a channel for uploading data fluctuates and exceeds a set threshold, immediately performing distributed storage on the backed-up data, and retaining distribution path data in the data node; before the data node performs distributed storage, cutting the data in the data node, setting a sequence number before the cut data, and arranging the data in descending order according to the sequence number; and transmitting the cut data to the distribution node according to the number of cuts; when the network state of a channel for uploading data fluctuates, the data node suspends receiving new data, and stores the new data generated during the fluctuation in a buffer node; when the network state fluctuation is lower than a set threshold, the new data in the buffer zone is retrieved from the buffer node to the data node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data loss prevention, and in particular relates to a method for preventing data loss during network switching of industrial networking equipment. Background Art

[0002] In the field of industrial networking, data exchange between devices is crucial. As more and more devices are connected to the network, real-time monitoring, analysis and control of data are achieved. However, industrial networking devices often encounter data loss problems when facing network switching, which has a serious impact on production operations. Therefore, it is of great significance to develop a network switching method that can effectively prevent data loss.

[0003] Current industrial networking devices are at high risk of data loss during network switching. When a network switch occurs, the device may lose the data being transmitted, resulting in incomplete and inaccurate production data. Existing methods usually back up data regularly instead of backing up data immediately when the network status changes. This delay may cause the latest data to be lost during network switching and cannot be restored in time. After the network switch, it is a complex task to recover the data and merge the lost data with the existing data. Existing methods may not be able to merge the data effectively, resulting in duplication or errors of data. During the network switch process, data transmission is often interrupted or delayed, resulting in discontinuous data exchange between devices. This may affect the real-time monitoring and control of the production process. The data processing mechanism for network switching is not robust enough and is easily affected by factors such as network fluctuations, resulting in poor system stability and affecting the normal operation of the equipment.

[0004] Existing technologies have many shortcomings and challenges in preventing data loss during network switching of industrial networking devices. In order to improve the reliability and stability of industrial networking systems, an innovative method is needed to effectively solve these problems. Summary of the invention

[0005] The present invention proposes a method for preventing data loss during network switching of industrial networking equipment, which solves the technical problems of data loss and discontinuous transmission that may be caused by network switching of industrial networking equipment, and ensures the integrity and continuity of data.

[0006] The technical solution of the present invention is implemented as follows: a method for preventing data loss during network switching of industrial networking equipment, the method comprising the following steps:

[0007] Upload the data of industrial networking equipment to the data node, back up the uploaded data in the data node, and when the network status of the channel for uploading data fluctuates above the set threshold, immediately distribute the backed up data and retain the distribution path data in the data node;

[0008] Before the data node is distributedly stored, the data in the data node is cut, and a sequence number is set before the cut data, and the data is arranged in descending order according to the sequence number; and the cut data is transmitted to the distribution node according to the number of cuts;

[0009] When the network status of the channel for uploading data fluctuates, the data node stops receiving new data and stores the new data generated during the fluctuation into the buffer node;

[0010] When the network status fluctuation is lower than the set threshold, the new data in the buffer is retrieved from the buffer node to the data node, and the data in the distribution node is retrieved to the data node through the distribution path data in the data node. The distributed data is rearranged according to the sequence number and the retrieved new data is merged with the distributed data; and the merged data is sent to the backup server at the same time;

[0011] The data node resumes data reception and continues data transmission and storage.

[0012] The main difference between this method of preventing data loss during network switching of industrial networking equipment and the existing technology is that it comprehensively utilizes multiple technical means such as real-time monitoring, distributed storage and data merging to ensure the integrity and continuity of data during network switching. The existing technology usually has problems such as data loss, untimely backup, and difficulty in data merging, while this method is improved and optimized through the following key points.

[0013] This application document is different from the prior art in that the method adopts a means of real-time monitoring of the network status of the upload data channel. Once a change in the network status is detected, the data backup program is immediately triggered to ensure the timeliness and effectiveness of the data backup. This real-time monitoring method enables the system to respond to network fluctuations more flexibly and avoid the risk of data loss.

[0014] When the network status fluctuates, this method immediately distributes the backup data and retains the distribution path data in the data nodes. The purpose of this is to quickly find the backup data after the network switch and quickly restore it. Compared with the traditional regular backup method, distributed storage can more effectively ensure the security and reliability of data. Before the data nodes are distributed, the uploaded data is cut, and a sequence number is set before the cut data, and the data is arranged in descending order according to the sequence number. This method ensures the orderliness and integrity of the backup data, so that data merging and processing can be more efficient during data recovery.

[0015] When the network status of the upload data channel fluctuates, the method suspends receiving new data and stores the new data generated during the fluctuation in the buffer node. The purpose of this is to avoid data loss or damage during network fluctuations, thereby ensuring the integrity and accuracy of the data. When the network status fluctuation is lower than the set threshold, the method merges the new data in the buffer with the backup data and sends the merged data to the backup server. The purpose of this is to ensure the consistency and integrity of the data while ensuring the continuity and stability of data transmission. Compared with the prior art, this method has obvious improvements and advantages in real-time monitoring, distributed storage, data processing and transmission recovery, and can more effectively solve technical problems such as data loss and discontinuous transmission that may occur in industrial networking equipment during network switching, and improve the reliability and stability of the system.

[0016] As a preferred implementation, the data node synchronously sets a lock confirmation protection time when performing distributed storage, periodically monitors fluctuations in the data channel within the set time, and restarts the data node to receive data when the repeated monitoring is below the set threshold for at least 5 times.

[0017] As a preferred implementation, a network status fluctuation interval is set in the data upload channel of the industrial networking device, and a switching port is set in the data upload channel, which is connected to another upload channel through the switching port. When the network is switched, the upload channel is changed through the switching port.

[0018] As a preferred implementation, a data cleaning unit is provided in the buffer node. The data cleaning unit starts to stand by after the buffer node receives the distributed data, and cleans the data in the buffer node after the distributed data is retrieved.

[0019] As a preferred implementation, when data cutting is performed, the data is cut in equal proportion according to the number of buffer nodes, and after the equal proportion cutting is completed, the cut data is sent to the distribution node, and the cut data is uploaded synchronously when the data is sent.

[0020] After adopting the above technical scheme, the beneficial effect of the present invention is as follows: by real-time monitoring of network status and adopting distributed storage and other technical means, the data loss problem that may be caused by industrial networking equipment during network switching is effectively prevented, and the integrity of the data is guaranteed. During the network switching process, by suspending the reception of new data and storing the new data in the buffer, as well as merging data and resuming transmission operations, the continuity of data transmission is guaranteed, and the interruption and delay of data transmission are avoided. The method improves the stability of the industrial networking system during network switching, reduces the failure rate of the system caused by factors such as network fluctuations, and improves the stability and reliability of the system. Through data cutting, sequence numbering, path retention and other technical means, the process of data recovery and merging is accelerated, the efficiency and accuracy of data recovery are improved, and the time and resource consumption required for data recovery are reduced. Since data loss and transmission interruption can be avoided, data monitoring, analysis and control in the industrial production process can be carried out continuously, thereby improving production efficiency and quality control level. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] Example:

[0025] like Figure 1 As shown, a method for preventing data loss in network switching of industrial networking equipment comprises the following steps:

[0026] Upload the data of industrial networking equipment to the data node, back up the uploaded data in the data node, and when the network status of the channel for uploading data fluctuates above the set threshold, immediately distribute the backed up data and retain the distribution path data in the data node;

[0027] Before the data node is distributedly stored, the data in the data node is cut, and a sequence number is set before the cut data, and the data is arranged in descending order according to the sequence number; and the cut data is transmitted to the distribution node according to the number of cuts;

[0028] When the network status of the channel for uploading data fluctuates, the data node stops receiving new data and stores the new data generated during the fluctuation into the buffer node;

[0029] When the network status fluctuation is lower than the set threshold, the new data in the buffer is retrieved from the buffer node to the data node, and the data in the distribution node is retrieved to the data node through the distribution path data in the data node. The distributed data is rearranged according to the sequence number and the retrieved new data is merged with the distributed data; and the merged data is sent to the backup server at the same time;

[0030] The data node resumes data reception and continues data transmission and storage.

[0031] The method of preventing data loss during network switching of industrial networking equipment adopted in this application document is a strategy to ensure the integrity and reliability of data transmission. Its working principle is as follows:

[0032] Industrial networking equipment uploads data to data nodes, and data nodes back up the uploaded data. At the same time, the network status of the data upload channel is monitored. When the network fluctuation is higher than the set threshold, the backed-up data is immediately distributed and stored, and the distribution path data is retained in the data node. This ensures that data is not lost during network fluctuations and provides necessary information for subsequent data recovery. Before distributed storage, the data node will cut the data, set a sequence number for the cut data, and arrange it in descending order according to the sequence number. Then, the cut data is transmitted to the distribution node according to the number of cuts. The purpose of this is to cut the data into multiple parts so that operations can be more flexible when recovering the data.

[0033] When the network status fluctuation exceeds the set threshold, the data node will stop receiving new data and store the new data generated during the fluctuation to the buffer node. This prevents the loss of any newly generated data during the network fluctuation. When the network status fluctuation is lower than the set threshold, the data node will retrieve new data from the buffer node and retrieve the data in the distribution node to the data node through the distribution path data in the data node. Then, the retrieved new data and the distributed data are rearranged according to the sequence number and merged, and the merged data is sent to the backup server. This ensures the integrity and correctness of the data. Finally, the data node resumes data reception and continues data transmission and storage.

[0034] Compared with traditional data transmission methods, the method adopts a distributed storage and data cutting strategy when the network status fluctuates to ensure the integrity and reliability of the data. Traditional methods may lose data or fail to restore data in time during network fluctuations, while the method can better cope with data transmission problems caused by network fluctuations through measures such as backup, cutting and distributed storage, and improve data security and reliability.

[0035] When the data node performs distributed storage, the lock confirmation protection time is synchronously set, and within the set time, the data channel is periodically monitored for fluctuations. When the repeated monitoring is at least 5 times below the set threshold, the data node is restarted to receive data. When the data node performs distributed storage, the lock confirmation protection time is synchronously set, which is significantly different from the traditional data storage method. The traditional method may only use some simple confirmation mechanisms in the data storage process, while the method introduces the concept of lock confirmation protection time to ensure the integrity and correctness of the data within the set time. This setting can effectively avoid data loss or damage due to network fluctuations and other reasons during data transmission, and improve the stability and reliability of data transmission.

[0036] During the set time, the data channel is periodically monitored for fluctuations. This step is also different from the traditional data storage method. The traditional method may only perform a one-time fluctuation monitoring at the beginning of data transmission, while the method adopts a periodic monitoring method to ensure that network fluctuations are discovered in time and corresponding measures are taken in time. This can more effectively protect data security and reduce the possibility of data loss.

[0037] When the value is lower than the set threshold after repeated monitoring for at least 5 times, the data node is restarted to receive data. This operation is also the uniqueness of the method. The traditional method may simply monitor the network fluctuation, but the processing of the network fluctuation may be relatively simple. The method repeats the monitoring multiple times after the network fluctuation is lower than the set threshold, and restarts the data node to receive data only after the conditions are met. This multiple confirmation mechanism can better ensure the security and integrity of the data and improve the reliability of data storage and transmission.

[0038] A network status fluctuation interval is set in the data upload channel of the industrial networking device, and a switching port is set in the data upload channel, and the switching port is used to connect to another upload channel. When the network is switched, the upload channel is changed through the switching port. The industrial networking device sets a network status fluctuation interval in the data upload channel, and sets a switching port to achieve the switching of the upload channel, which is different from the traditional network switching method. The traditional method may be to manually or automatically detect the network status and switch when the network status is unstable, but it may not be able to accurately grasp the fluctuation interval of the network status, resulting in inaccurate switching timing or frequent switching, affecting the stability of data transmission. The method sets the network status fluctuation interval, connects to another upload channel through the switching port, and changes the upload channel through the switching port when the network is switched, which can more accurately grasp the fluctuation of the network status and improve the timeliness and accuracy of network switching.

[0039] The method also adopts a method of connecting a switching port to another upload channel, and changing the upload channel by switching the port when switching the network. This step is also one of the differences from the traditional method. The traditional network switching method may be to change the data upload path or re-establish the network connection, while the method uses the method of connecting the switching port to another upload channel to complete the switching of the upload channel more quickly, reduce the interruption time of data transmission during the switching process, and improve the continuity and stability of data transmission. The method of preventing data loss during network switching of the industrial networking equipment has obvious advantages over the traditional method. By setting the network status fluctuation range and the switching port, the timing of network switching can be grasped more accurately, and the stability and reliability of data transmission can be improved.

[0040] The buffer node is provided with a data cleaning unit. After the buffer node receives the distributed data, the data cleaning unit starts to standby, and after the distributed data is retrieved, the data in the buffer node is cleaned. The buffer node is provided with a data cleaning unit. After the buffer node receives the distributed data, the data cleaning unit starts to standby, and after the distributed data is retrieved, the data in the buffer node is cleaned. This is different from the traditional data cache management method. The traditional method may simply save the cached data in the node, and may not clean up the data immediately after the data is retrieved, resulting in excessive node memory usage and affecting system performance. The method, however, sets a special data cleaning unit in the buffer node. After receiving the distributed data, the data cleaning unit will immediately start to standby, and clean up the data in the buffer node in time after the data is retrieved. This instant cleaning method can effectively release storage space and improve the resource utilization and performance of the system.

[0041] The data cleaning unit in the method performs cleaning after the data is retrieved, which is different from the traditional method. The traditional method may perform data cleaning periodically or according to a certain strategy, while the method performs cleaning immediately after the data is retrieved, which can ensure the timely release of cache resources and avoid waste of resources. It also reduces the risk of system performance degradation or crash due to data backlog. The method in which the data cleaning unit is provided in the buffer node has obvious advantages over the traditional method. By cleaning the cache data in real time, the utilization and performance of system resources can be improved, and the stable operation of the system can be guaranteed.

[0042] When performing data cutting, the data is cut in proportion according to the number of buffer nodes, and the cut data is sent to the distribution node after the proportional cutting is completed, and the cut data is uploaded synchronously when sending the data. When performing data cutting, the data is cut in proportion according to the number of buffer nodes, and the cut data is sent to the distribution node after the proportional cutting is completed. This is different from the traditional data cutting method. The traditional method may adopt a fixed data cutting rule, and the data is cut according to the same rule regardless of the number of nodes. This may result in unreasonable data cutting when the number of nodes is large or small, affecting the efficiency and quality of data transmission. The method performs proportional cutting according to the number of buffer nodes, which can ensure that the amount of data received by each node is basically the same, fully utilize the processing power of each node, and improve the efficiency and balance of data transmission.

[0043] The cut data is uploaded synchronously when sending data. This is also different from the traditional method. The traditional method may complete data cutting first, and then upload the data, which may cause the data cutting and uploading processes to be unable to proceed synchronously, affecting the timeliness of data transmission. The method starts uploading immediately after completing data cutting, ensuring the synchronization of cutting and uploading, and can complete data transmission more efficiently. The method adopts the strategy of proportional cutting and synchronous uploading in the process of data cutting and uploading, which has obvious advantages over the traditional method, can better improve the efficiency and quality of data transmission, and ensure the timeliness and stability of data transmission.

[0044] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for preventing data loss during network switching of industrial networking equipment, characterized in that: The method comprises the following steps: Upload the data of industrial networking equipment to the data node, and back up the uploaded data in the data node. Periodically monitor the fluctuation of the data channel within the set time. When the channel network status of the uploaded data fluctuates above the set threshold, the backed up data is immediately distributed and the distribution path data is retained in the data node. Before the data node is distributedly stored, the data in the data node is cut, and a sequence number is set before the cut data, and the data is arranged in descending order according to the sequence number; the cut data is transmitted to the distribution node according to the number of cuts; When the channel network status fluctuation exceeds the set threshold, the data node will stop receiving new data and store the new data generated during the fluctuation period to the buffer node; When the channel network status fluctuation is lower than the set threshold, the new data in the buffer is retrieved from the buffer node to the data node, and the data in the distribution node is retrieved to the data node through the distribution path data in the data node. The distributed data is rearranged according to the sequence number and the retrieved new data is merged with the distributed data; at the same time, the merged data is sent to the backup server; After the network fluctuation is lower than the set threshold, repeated monitoring is performed for multiple times, and the data node is restarted to receive data only after the conditions are met. The data node resumes data reception and continues data transmission and storage.

2. A method for preventing data loss during network switching of industrial networking equipment according to claim 1, characterized in that: When the data node performs distributed storage, the lock confirmation protection time is synchronously set, and within the set time, the data channel is periodically monitored for fluctuations. When the repeated monitoring is lower than the set threshold for at least 5 times, the data node is restarted to receive data.

3. A method for preventing data loss during network switching of industrial networking equipment according to claim 1, characterized in that: A channel network status fluctuation interval is set in the data upload channel of the industrial networking device, and a switching port is set in the data upload channel. The switching port is used to connect to another upload channel. When the network is switched, the upload channel is changed through the switching port.

4. A method for preventing data loss during network switching of industrial networking equipment according to claim 1, characterized in that: The buffer node is provided with a data cleaning unit. After the buffer node receives the distributed data, the data cleaning unit starts to stand by, and after the distributed data is retrieved, the data in the buffer node is cleaned.

5. A method for preventing data loss during network switching of industrial networking equipment as claimed in claim 1, characterized in that: When data is cut, it is cut in proportion according to the number of buffer nodes. After the proportional cutting is completed, the cut data is sent to the distribution node, and the cut data is uploaded synchronously when sending the data.

Citation Information

Patent Citations

  • Reliable transmission method and system based on distributed storage network

    CN116032950A

  • Data distributed storage fault database switching method and system

    CN117667526A