A method and system for protecting a synchronous data network switching process
By employing an external synchronous clock and multi-level buffer processing on the new data exchange network, the problems of available bandwidth fluctuation, latency jitter, and high bit error rate in the data exchange network are solved, thereby improving the success rate and reliability of data exchange and ensuring the accuracy and security of protection logic operations.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NR ELECTRIC CO LTD
- Filing Date
- 2022-06-21
- Publication Date
- 2026-07-24
AI Technical Summary
When applying differential protection to new data exchange networks, existing technologies suffer from problems such as fluctuations in available bandwidth, large latency jitter, high bit error rate, and high network security risks, resulting in low efficiency of channel resource utilization and limiting the widespread application of differential protection functions.
The data acquisition method based on an external synchronization clock is adopted. The data is continuously numbered according to the preset sampling frequency. Through multi-level buffering and data frame verification, it is ensured that the receiving end can correctly process and classify the synchronized data, perform protection logic operations, and discard data that is earlier than the latest acquisition time.
It improves the success rate and reliability of data exchange and matching on the new data exchange network, reduces the performance requirements of the data exchange network, and ensures the accuracy and security of protection logic operations.
Smart Images

Figure CN117319413B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of power grid relay protection technology, and particularly relates to the field of protection synchronization data exchange technology, specifically to a protection synchronization data network exchange processing method and system. Background Technology
[0002] Differential protection, as a type of primary protection in power systems, is based on Kirchhoff's current theorem. With its simple principle, reliable operation, and good selectivity, differential protection is widely used as a primary protection method in power systems, and its principles and applications have long been a focus of attention for relay protection professionals. Currently, differential protection utilizes low-latency, high-reliability fiber optic channels, limiting its application to areas with abundant fiber optic resources. To further expand the application of differential protection, the industry is promoting its implementation on new data exchange networks, such as wireless communication networks and 5G communication networks.
[0003] New data exchange networks are resource-sharing networks, which suffer from problems such as fluctuating available bandwidth, large latency jitter, high bit error rate, and high network security risks. Current common practices involve increasing network bandwidth and reserving more channel resources to maximize their exclusive use. However, this approach reduces the efficiency of channel resource utilization and still limits the widespread application of differential protection functions. Summary of the Invention
[0004] Purpose of the Invention: The purpose of this application is to provide a method for protecting synchronous data network exchange processing, in order to solve the technical problems of existing methods reducing the efficiency of channel resource utilization and having high performance requirements on data exchange networks; another purpose of this application is to provide a system for the above-mentioned method for protecting synchronous data network exchange processing.
[0005] Technical solution: The method for protecting synchronous data network exchange processing described in this application includes a data acquisition stage, a data transmission stage, a data reception stage, and a protection logic processing stage;
[0006] In the data acquisition stage, data is acquired from the transmitting side based on an external synchronization clock and at a preset sampling frequency f, and the data is numbered consecutively according to the acquisition time.
[0007] In the data transmission stage, the data collected by the transmitting side and the number are combined into a data frame and transmitted.
[0008] In the data receiving stage, the receiving side receives the data frame and performs multi-level buffering on the data frame to obtain the first data used to protect the logical operation;
[0009] In the protection logic processing stage, according to the protection logic's requirement for synchronization data, the first data and the data collected by the receiving side are classified, the earliest collection time of the first data in each category is compared, the collection time E of the latest first data collected in each category is obtained, all data collected at time E in each category are taken out, protection logic operations are performed, and data in that category whose collection time is earlier than E are discarded.
[0010] In some embodiments, during the data acquisition phase, the acquired data consists of analog and digital signals required for protection logic operations.
[0011] In some embodiments, the method based on the external synchronization clock is: the acquisition time follows the external synchronization clock, and the method includes: acquiring data at a fixed time Ts after the external synchronization clock is triggered by a pulse, and then acquiring data once every 1 / f seconds; wherein, Ts is greater than or equal to 0 and less than 1 / f seconds.
[0012] In some embodiments, the preset sampling frequency f ≥ 1000 Hz and is an integer multiple of the rated frequency fn of the power system.
[0013] In some embodiments, the numbering starts with A1, and the numbering is less than or equal to A2*f*A3+A1-A3;
[0014] Where A2 is greater than the maximum value of network transmission delay jitter in seconds, and A2 is a positive integer divisible by 60, and A3 is the numbering step size.
[0015] In some embodiments, the method for continuously numbering data according to the acquisition time includes: the A4*A2*fth data acquisition after the external synchronization clock pulse is triggered is numbered A1, and the number of each subsequent acquisition is increased by A3 compared to the previous one; where A4 is an integer greater than or equal to 0 and less than 60 / A2.
[0016] In some embodiments, the data frame includes data and number at the current acquisition time, and n-1 sets of data and numbers acquired before the current acquisition time, wherein n≥1, and the acquisition time of each of the n-1 sets of data is no earlier than B / f seconds before the current acquisition time, where B is a positive integer less than A2*f.
[0017] In some embodiments, the higher the network transmission bit error rate, the larger the value of n, and n is not greater than f / fn, and B / f is not greater than the maximum channel transmission delay allowed by the protection logic.
[0018] In some embodiments, the multi-level caching process includes first setting up a data cache, and then performing a four-level progressive data caching process.
[0019] In some embodiments, the data caching settings include: setting a first-level cache, a second-level cache, a third-level cache, and a fourth-level cache, wherein the number of source addresses to be received (C) is the same as the number of source addresses to be received; wherein the length of the first-level cache and the second-level cache is the number of data frames that can be placed in each, the length of the third-level cache and the fourth-level cache is the number of data frames that can be placed in each, the length of the third-level cache is not less than n times the length of the first-level cache, the length of the first-level cache is not less than the length of the second-level cache, and the length of the fourth-level cache is not less than the length of 2 data frames.
[0020] In this system, the first-level cache, the second-level cache, and the third-level cache are all stored and retrieved on a first-in, first-out basis.
[0021] In some embodiments, the four-level hierarchical data caching process includes first-level caching, second-level caching, third-level caching, and fourth-level caching.
[0022] In the first-level cache processing, the data frame type identifier, source address and destination address of the data frame are checked to see if they are correct. If they are correct, the data frame type identifier, source address and destination address are removed and the data frames are classified and placed into different first-level caches according to their source addresses.
[0023] In the second-level cache processing, the data in each of the first-level caches is processed sequentially. The data frames in the first-level caches are retrieved one by one and the data frame content check code is checked to see if it is correct. The data frame content check code of the correct data frame is removed and put into the corresponding second-level cache.
[0024] In the third-level cache processing, the data in each of the second-level caches is processed sequentially, all data frames in each of the second-level caches are retrieved, each data frame is split into n data items and a number, and then placed into the corresponding third-level cache;
[0025] In the fourth-level cache processing, the data in each of the three-level caches is processed sequentially. The earliest n data items and their numbers are retrieved from each of the three-level caches, and the collection time corresponding to the number is obtained. The data and collection time are then inserted into the fourth-level cache in chronological order of collection time to obtain the first data.
[0026] In some embodiments, during the second-level cache processing, the maximum allowed processing time for each of the first-level caches is T, where T is not greater than (1 / f) / C seconds.
[0027] In some embodiments, when inserting data and acquisition time into the four-level cache, data acquired earlier is placed first, and data acquired later is placed last.
[0028] Before insertion, discard data that has the same acquisition time as data already in the fourth-level cache or whose acquisition time difference is greater than the maximum allowed acquisition time difference D*(1 / f), where D is a positive integer less than A2*f; where the acquisition time difference is the difference between the current acquisition time and the acquisition time when the data is retrieved from the third-level cache.
[0029] In some embodiments, the length of the first-level cache is not less than the sum of the maximum number of data frames that can be received within 1 / f seconds and the length of the second-level cache;
[0030] The length of the secondary cache is not less than the maximum number of data items that the primary cache can process in time T.
[0031] The length of the four-level buffer is greater than the maximum transmission delay difference Q of the synchronization data that the protection logic needs to receive. max *f, where Q max This represents the maximum transmission delay difference, expressed in seconds.
[0032] In some embodiments, the second-level cache processing and subsequent cache processing at each level are performed serially or in parallel. In serial processing, T is no greater than (1 / fk) / C seconds, where k is the processing time of subsequent cache processing at each level.
[0033] In some embodiments, the method for obtaining the collection time corresponding to the number is as follows: calculate the number difference Y based on the number and the data number of the current collection time; the corresponding collection time is the number difference Y*1 / f before the current collection time.
[0034] In some embodiments, the maximum allowable acquisition time difference D*(1 / f) is not greater than the maximum channel transmission delay allowed by the protection logic.
[0035] In some embodiments, the classification of the first data and the data collected by the receiving side includes: classification by current, classification by voltage, classification by interval, classification by phase, and classification by protection range.
[0036] In some embodiments, the data collected by the transmitting side and the number are combined into a data frame and transmitted through a data exchange network; the data exchange network is selected from any one of a dedicated fiber optic channel, a wired communication network, and a wireless communication network.
[0037] In some embodiments, the data frame has a data frame type identifier, a source address, a destination address, and a data frame content checksum;
[0038] The data frame type identifier is a combination of characters and numbers that characterize the purpose of the data frame;
[0039] Both the source address and the destination address are selected from any one of the following: IP address, MAC address, and a combination of characters and numbers representing the data source and the data destination;
[0040] The data frame content verification code is any one of the following: CRC code, hash code, and message authentication code, obtained from the remaining content after removing the data frame type identifier, the source address, the destination address, and the data frame content verification code from the data frame.
[0041] Accordingly, the system for protecting the synchronous data network exchange processing method described above, provided in this application, includes a first type of module and a second type of module;
[0042] Both the first type of module and the second type of module include a data acquisition module, which is used to perform the data acquisition process;
[0043] The first type of module further includes a data transmission module, which is used to perform the data transmission process;
[0044] The second type of module also includes:
[0045] A data receiving and processing module, which is used to perform the data receiving stage;
[0046] A protection logic processing module is provided, which is used to execute the protection logic processing steps.
[0047] In some embodiments, the data receiving and processing module includes:
[0048] A data cache setting module, which is used to perform data cache settings;
[0049] The first-level processing module is used to perform first-level cache processing;
[0050] The second-level processing module is used to perform second-level cache processing;
[0051] The third-level processing module is used to perform third-level cache processing;
[0052] The fourth-level processing module is used to perform fourth-level cache processing.
[0053] In some embodiments, the first type of module further includes:
[0054] A data receiving and processing module, which is used to perform the data receiving stage;
[0055] A protection logic processing module is provided, which is used to execute the protection logic processing steps.
[0056] In some embodiments, the second type of module further includes a data transmission module, which is used to perform the data transmission process.
[0057] Beneficial Effects: Compared with existing technologies, the present application provides a protection synchronous data network exchange processing method, including a data acquisition stage, a data transmission stage, a data reception stage, and a protection logic processing stage. In the data acquisition stage, data is acquired from the transmitting side based on an external synchronization clock and at a preset sampling frequency f, and the data is continuously numbered according to the acquisition time. In the data transmission stage, the data acquired by the transmitting side and the number are combined into a data frame for transmission. In the data reception stage, the receiving side receives the data frame, performs buffering processing on the data frame, and obtains the first data for protection logic operations. In the protection logic processing stage, according to the protection logic's requirement for synchronous data, the first data and the data acquired by the receiving side are classified, the earliest acquisition time of the first data in each category is compared, the acquisition time E of the latest acquisition time of the first data in each category is obtained, all data acquired at time E in each category are extracted, protection logic operations are performed, and data in that category with an acquisition time earlier than E is discarded. This method improves the success rate and reliability of synchronous data network exchange and data matching, and reduces the performance requirements of the data exchange network for protection, even under conditions of fluctuating available bandwidth, large latency jitter, high bit error rate, and high network security risks in the transmission network.
[0058] Furthermore, this method uses multi-level caching to ensure that the receiving end can still process all received data and ensure a continuous supply of data for the protection logic when the available bandwidth of the data exchange network fluctuates.
[0059] Furthermore, by setting a sufficiently long buffer and numbering sequence, this method can still correctly find synchronization data for use by the protection logic even when the data exchange network experiences latency jitter.
[0060] Furthermore, this method sends redundant data in the data frame and performs duplicate data identification at the receiving end, so that even when the bit error rate of the data exchange network is high, it can still provide complete and non-repeating data to the protection logic.
[0061] Furthermore, by adding various verification elements to the data frames and performing hierarchical verification at the receiving end, the network security risks of data exchange are reduced without affecting the protection logic operations.
[0062] Compared with existing technologies, the system of the protection synchronous data network exchange processing method provided in this application includes a first type of module and a second type of module. Both the first and second type of modules include a data acquisition module for performing data acquisition. The first type of module also includes a data transmission module for performing data transmission. The second type of module further includes a data receiving and processing module and a protection logic processing module. The data receiving and processing module performs the data receiving stage, and the protection logic processing module performs the protection logic processing stage. It is understood that this system can possess all the technical features and beneficial effects of the aforementioned protection synchronous data network exchange processing method, which will not be elaborated upon here. Attached Figure Description
[0063] The technical solution and other beneficial effects of this application will become apparent from the following detailed description of specific embodiments in conjunction with the accompanying drawings.
[0064] Figure 1 This is a flowchart illustrating the method for protecting synchronous data network exchange processing provided in the embodiments of this application;
[0065] Figure 2 This is a structural block diagram of the system for the protection synchronous data network exchange processing method provided in the first embodiment of this application;
[0066] Figure 3 This is a structural block diagram of the system for the protection synchronous data network exchange processing method provided in the second embodiment of this application. Detailed Implementation
[0067] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0068] In the description of this application, it should be noted that "multiple" means two or more, unless otherwise explicitly specified. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0069] The applicant discovered that the new data exchange network is a resource-sharing network, which suffers from problems such as fluctuating available bandwidth, large latency jitter, high bit error rate, and high network security risks. Currently used methods reduce the utilization rate of channel resources and still limit the promotion and application of differential protection functions. Therefore, there is a need for a protection synchronous data network exchange processing method that can improve the success rate and reliability of synchronous data network exchange and data matching, and reduce the performance requirements of protection on the data exchange network.
[0070] In view of this, embodiments of this application provide a method for protecting synchronous data network exchange processing, such as... Figure 1 As shown, the steps of this method are as follows:
[0071] Step 1, Data Acquisition: The acquisition time follows an external synchronous clock. Data is acquired from the transmitting side using a sampling frequency f, and the data is numbered consecutively according to the absolute time of the acquisition. f is greater than or equal to 1000Hz and is an integer multiple of the rated frequency fn of the power system. The number is greater than or equal to A1 and less than or equal to A2*f*A3+A1-A3, where A2 is greater than the maximum value of network transmission delay jitter (unit: seconds) and is a positive integer divisible by 60. A1 is the starting value for numbering, and A3 is the numbering step size.
[0072] Step 2, Data Transmission: The data and number of the current acquisition time, along with n-1 sets of data and numbers from the previous acquisition time, are combined into a data frame and sent to the receiving side through the data exchange network. The data frame also includes a data frame type identifier, source address, destination address, and data frame content checksum. Here, n is greater than or equal to 1, and the acquisition time of each of the n-1 sets of data is no earlier than B / f seconds before the current acquisition time, where B is a positive integer less than A2*f.
[0073] Step 3, Data Reception: Data frames are received from the data exchange network and processed through a four-level buffer to obtain the first data used to protect logical operations. The processing steps are as follows:
[0074] Step 301, Data Buffer Settings: Set up Level 1, Level 2, Level 3, and Level 4 buffers, each with the same number of source addresses (C) to be received; the length of Level 1 and Level 2 buffers is the number of data frames that can be placed in the buffer, and the length of Level 3 and Level 4 buffers is the number of data frames that can be placed in the buffer; the length of Level 3 buffer is not less than n times the length of Level 1 buffer, the length of Level 1 buffer is not less than the length of Level 2 buffer, and the length of Level 4 buffer is not less than the length of 2 data frames; Level 1, Level 2, and Level 3 buffers are all set to first-in, first-out (FIFO) buffers.
[0075] Step 302, Level 1 Buffer Processing: Check whether the data frame type identifier, source address and destination address of the received data frame are correct. Remove the data frame type identifier, source address and destination address of the correct data frame and put them into different level 1 buffers according to the source address.
[0076] Step 303, Second-level cache processing: Process the data in each first-level cache sequentially. The maximum allowed processing time for each first-level cache is T. If the timeout occurs, start processing the next first-level cache. Where T is not greater than (1 / f) / C seconds. The data processing process is as follows: Take out the data frames in the first-level cache one by one and check whether the data frame content check code is correct. Remove the data frame content check code of the correct data frame and put it into the corresponding second-level cache.
[0077] Step 304, Level 3 Cache Processing: Process the data in each Level 2 cache sequentially. The data processing process is as follows: retrieve all data frames from the Level 2 cache, split each data frame into n data items and a number, and put them into the corresponding Level 3 cache.
[0078] Step 305, Level 4 Cache Processing: Process the data in each Level 3 cache sequentially. The data processing procedure is as follows: Retrieve the earliest n data items and their numbers from the Level 3 cache, calculate the collection time corresponding to the number, and insert the data and collection time into the Level 4 cache in order of collection time, with data collected earlier first and data collected later last. Before insertion, discard data that has the same collection time as existing data in the Level 4 cache or whose collection time difference is greater than the maximum allowed collection time difference D*(1 / f). The collection time difference is the difference between the current collection time and the collection time of the data retrieved from the Level 3 cache; where D is a positive integer less than A2*f.
[0079] Step 4, Protection Logic Processing: Based on the protection logic's requirement for synchronized data, classify the level 4 cache (i.e., the first data) and the data collected on this side; if the same set of data is divided into multiple categories, copy the data multiple times; compare the earliest collection time of each level 4 cache data in each category to obtain the latest collection time E; extract all data collected at time E in each category, perform protection logic operations, and discard data in this category whose collection time is earlier than E.
[0080] It should be noted that, in some embodiments, the current acquisition time is the acquisition time before the receiving side performs the fourth-level buffering process.
[0081] In some embodiments of this application, preferably, in step 1 above, the data collected is: the analog and digital quantities required for the protection logic operation.
[0082] In some embodiments of this application, preferably, in step 1 above, the method of collecting data to follow an external synchronization clock is as follows: data is collected at a fixed time Ts after the external synchronization clock is triggered by a pulse, and then data is collected every 1 / f seconds; wherein, Ts is greater than or equal to 0 and less than 1 / f seconds.
[0083] In some embodiments of this application, preferably, in step 1 above, the method for continuously numbering the data according to the absolute time of the acquisition time is as follows: the A4*A2*fth acquisition data after the external synchronization clock pulse is numbered A1, and the number of each subsequent acquisition is increased by A3 compared to the previous one; where A4 is an integer greater than or equal to 0 and less than 60 / A2.
[0084] In some embodiments of this application, preferably, in step 2 above, the data exchange network is a dedicated fiber optic channel, a wired communication network, or a wireless communication network.
[0085] In some embodiments of this application, preferably, in step 2 above, the data frame type identifier is a combination of characters and numbers that characterize the purpose of the data frame; the source address and destination address are: IP address, MAC address, or a combination of characters and numbers that characterize the data source and data destination; the data frame content check code is a CRC code, hash code, or message authentication code calculated based on the content in the data frame other than the data frame type identifier, source address, destination address, and data frame content check code.
[0086] In some embodiments of this application, preferably, in step 2 above, the acquisition time of each of the n-1 groups of data is no earlier than B / f seconds before the current acquisition time, the higher the network transmission bit error rate, the larger n is, and n is not greater than f / fn; B / f is not greater than the maximum channel transmission delay allowed by the protection logic.
[0087] In some embodiments of this application, preferably, in step 301 above, the length of the first-level buffer is not less than the sum of the maximum number of data frames that can be received (1 / f seconds) and the length of the second-level buffer; the length of the second-level buffer is not less than the maximum number of first-level buffer data that can be processed in time T; and the length of the fourth-level buffer is greater than the maximum transmission delay difference (in seconds) Q of the synchronization data that the protection logic needs to receive. max *f.
[0088] In some embodiments of this application, preferably, step 303 and subsequent steps can be processed either serially or in parallel; when processed serially, step 303T is no greater than (1 / fk) / C seconds, where k is the time consumed by subsequent cache processing at each level.
[0089] In some embodiments of this application, preferably, in step 305 above, the method for calculating the collection time corresponding to the number is as follows: calculate the number difference Y based on the number and the current collection data number; the corresponding collection time is Y*1 / f before the current collection time.
[0090] In some embodiments of this application, preferably, in step 305 above, the maximum allowable acquisition time difference D*(1 / f) is not greater than the maximum channel transmission delay allowed by the protection logic.
[0091] In some embodiments of this application, preferably, in step 4 above, the classification of the four-level buffer and the data collected on this side can be: classified by current, classified by voltage, classified by interval, classified by phase, and classified by protection range.
[0092] Accordingly, the first embodiment of this application also provides a system for the above-described method for protecting synchronous data network exchange processing. Please refer to [link to system]. Figure 2 As shown, the system includes a first type of module and a second type of module;
[0093] Both the first and second type modules include a data acquisition module. The data acquisition module is used to perform the data acquisition process. Specifically, the acquisition time follows an external synchronous clock, and data is acquired from this side using a sampling frequency f. The data is then numbered consecutively according to the absolute time of the acquisition. f is greater than or equal to 1000Hz and is an integer multiple of the rated frequency fn of the power system. The numbering is greater than or equal to A1 and less than or equal to A2*f*A3+A1-A3, where A2 is greater than the maximum value of network transmission delay jitter (in seconds) and is a positive integer divisible by 60. A1 is the starting value for numbering, and A3 is the numbering step size.
[0094] The first type of module also includes a data transmission module, which is used to perform the data transmission process. Specifically, it combines the data and number of the current collection time with (n-1) groups of data and numbers from the previous collection time to form a data frame, which is then sent to the other side through the data exchange network. The data frame also includes a data frame type identifier, source address, destination address, and data frame content checksum. Here, n is greater than or equal to 1, and the collection time of each of the n-1 groups of data is no earlier than B / f seconds before the current collection time, where B is a positive integer less than A2*f.
[0095] The second type of module also includes a data receiving and processing module, which is used to perform the data receiving process. The data receiving and processing module includes a data cache setting module, a first-level processing module, a second-level processing module, a third-level processing module, and a fourth-level processing module. The data cache setting module is used to perform data cache setting, the first-level processing module is used to perform first-level cache processing, the second-level processing module is used to perform second-level cache processing, the third-level processing module is used to perform third-level cache processing, and the fourth-level processing module is used to perform fourth-level cache processing.
[0096] Specifically, the data buffer setting module sets up a first-level to fourth-level buffer equal to the number of source addresses C that need to be received; the length of the first-level and second-level buffers is the number of data frames that can be placed in the buffer, and the length of the third-level and fourth-level buffers is the number of data frames that can be placed in the buffer; the length of the third-level buffer is not less than n times the length of the first-level buffer, the length of the first-level buffer is not less than the length of the second-level buffer, and the length of the fourth-level buffer is not less than 2; the first-level to third-level buffers are all first-in, first-out.
[0097] The first-level processing module checks whether the data frame type identifier, source address, and destination address of the received data frame are correct. If the data frame type identifier, source address, and destination address are correct, the correct data frame is removed and placed into different first-level buffers according to the source address.
[0098] The second-level processing module processes the data in each first-level cache sequentially. The maximum allowed processing time for each first-level cache is T. If the timeout occurs, the next first-level cache will be processed. T is no greater than (1 / f) / C seconds. The data processing procedure is as follows: data frames are retrieved one by one from the first-level cache and the data frame content check code is checked for correctness. The data frame content check code of the correct data frame is removed and placed into the corresponding second-level cache.
[0099] The third-level processing module sequentially processes the data in each second-level cache. The data processing process is as follows: retrieve all data frames from the second-level cache, split each data frame into n data items and a number, and put them into the corresponding third-level cache.
[0100] The fourth-level processing module sequentially processes the data in each of the three-level caches. The data processing procedure is as follows: retrieve the earliest n data items and their numbers from the three-level cache, calculate the acquisition time corresponding to the number, and insert the data and acquisition time into the fourth-level cache in order of acquisition time, with data acquired earlier first and data acquired later last. Before insertion, discard data that has the same acquisition time as existing data in the fourth-level cache or whose acquisition time difference is greater than the maximum allowed acquisition time difference D*(1 / f). The acquisition time difference is the difference between the current acquisition time and the acquisition time of the data retrieved from the three-level cache; where D is a positive integer less than A2*f.
[0101] The second type of module also includes a protection logic processing module. This module is used to perform protection logic processing. Specifically, based on the protection logic's requirement for synchronized data, it classifies the four-level cache and the data collected locally. If the same set of data is divided into multiple categories, the data is copied multiple times. The earliest collection time of each four-level cache data in each category is compared to obtain the latest collection time E. All data collected at time E in each category is extracted, protection logic operations are performed, and data in the category whose collection time is earlier than E is discarded.
[0102] like Figure 3 As shown in the second embodiment of this application, the first type of module and the second type of module of the system for the above-mentioned protection synchronous data network exchange processing method have the same structure, both including the above-mentioned data acquisition module, data transmission module, data reception and processing module and protection logic processing module; the functions of each module are the same as those in the first embodiment, and will not be described again here.
[0103] Furthermore, it should be noted that in the embodiments of this application, there can be multiple first-type modules and multiple second-type modules, meaning that there can be multiple transmitting sides and multiple receiving sides in the system.
[0104] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0105] The present application provides a detailed description of a method and system for protecting synchronous data network exchange processing, and uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only for the purpose of helping to understand the technical solutions and core ideas of the present application. Those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for protecting synchronous data network exchange processing, characterized in that, This includes the data acquisition stage, the data transmission stage, the data reception stage, and the protection logic processing stage; In the data acquisition stage, data is acquired from the transmitting side based on an external synchronization clock and at a preset sampling frequency f, and the data is numbered consecutively according to the acquisition time. In the data transmission stage, the data acquired by the transmitting side and the numbers are combined into a data frame and transmitted. The data frame includes the data and number at the current acquisition time, as well as at least one set of data and numbers acquired before the current acquisition time. In the data receiving stage, the receiving side receives the data frame and performs multi-level caching on the data frame to obtain first data for protecting logical operations. The multi-level caching is configured to perform step-by-step data caching on four levels. In the protection logic processing stage, according to the protection logic's requirement for synchronization data, the first data and the data collected by the receiving side are classified, the earliest collection time of the first data in each category is compared, the collection time E of the latest first data collected in each category is obtained, all data collected at time E in each category are taken out, protection logic operations are performed, and data in that category whose collection time is earlier than E are discarded.
2. The method for protecting synchronous data network exchange processing according to claim 1, characterized in that, In the data acquisition stage, the acquired data consists of analog and digital signals required for protection logic operations.
3. The method for protecting synchronous data network exchange processing according to claim 1, characterized in that, The method based on the external synchronization clock is as follows: the acquisition time follows the external synchronization clock, and the method includes: acquiring data at a fixed time Ts after the external synchronization clock is triggered by a pulse, and then acquiring data once every 1 / f seconds; wherein, Ts is greater than or equal to 0 and less than 1 / f seconds.
4. The method for protecting synchronous data network exchange processing according to claim 1, characterized in that, The preset sampling frequency f is ≥ 1000Hz and is an integer multiple of the rated frequency fn of the power system.
5. The method for protecting synchronous data network exchange processing according to claim 4, characterized in that, The numbering starts with A1, and the numbering is less than or equal to A2*f*A3+A1-A3; Where A2 is greater than the maximum value of network transmission delay jitter in seconds, and A2 is a positive integer divisible by 60, and A3 is the numbering step size.
6. The method for protecting synchronous data network exchange processing according to claim 5, characterized in that, The method for consecutively numbering data based on the acquisition time includes: the A4*A2*fth acquisition data after the external synchronization clock pulse is numbered A1, and the number of each subsequent acquisition is increased by A3 compared to the previous one; where A4 is an integer greater than or equal to 0 and less than 60 / A2.
7. The method for protecting synchronous data network exchange processing according to claim 5, characterized in that, The data frame includes the data and number of the current acquisition time, as well as n-1 sets of data and numbers acquired before the current acquisition time, where n≥1, and the acquisition time of each of the n-1 sets of data is no earlier than B / f seconds before the current acquisition time, where B is a positive integer less than A2*f.
8. The method for protecting synchronous data network exchange processing according to claim 7, characterized in that, The higher the network transmission bit error rate, the larger the value of n, and n is not greater than f / fn, and B / f is not greater than the maximum channel transmission delay allowed by the protection logic.
9. The method for protecting synchronous data network exchange processing according to claim 7, characterized in that, The multi-level caching process includes first setting up data caching, and then performing four levels of progressive data caching.
10. The method for protecting synchronous data network exchange processing according to claim 9, characterized in that, The data caching settings include: setting a first-level cache, a second-level cache, a third-level cache, and a fourth-level cache. The number of first-level caches, second-level caches, third-level caches, and fourth-level caches is the same as the number of source addresses C to be received. The lengths of the first-level cache and the second-level cache are the number of data frames they can hold, the lengths of the third-level cache and the fourth-level cache are the number of data frames they can hold, the length of the third-level cache is not less than n times the length of the first-level cache, the length of the first-level cache is not less than the length of the second-level cache, and the length of the fourth-level cache is not less than the length of two data frames.
11. The method for protecting synchronous data network exchange processing according to claim 10, characterized in that, The four-level hierarchical data caching process includes first-level caching, second-level caching, third-level caching, and fourth-level caching. In the first-level cache processing, the data frame type identifier, source address and destination address of the data frame are checked to see if they are correct. If they are correct, the data frame type identifier, source address and destination address are removed and the data frames are classified and placed into different first-level caches according to their source addresses. In the second-level cache processing, the data in each of the first-level caches is processed sequentially. The data frames in the first-level caches are retrieved one by one and the data frame content check code is checked to see if it is correct. The data frame content check code of the correct data frame is removed and put into the corresponding second-level cache. In the third-level cache processing, the data in each of the second-level caches is processed sequentially, all data frames in each of the second-level caches are retrieved, each data frame is split into n data items and a number, and then placed into the corresponding third-level cache; In the fourth-level cache processing, the data in each of the three-level caches is processed sequentially. The earliest n data items and their numbers are retrieved from each of the three-level caches, and the collection time corresponding to the number is obtained. The data and collection time are then inserted into the fourth-level cache in chronological order of collection time to obtain the first data.
12. The method for protecting synchronous data network exchange processing according to claim 11, characterized in that, In the second-level cache processing, the maximum allowed processing time for each of the first-level caches is T, where T is not greater than (1 / f) / C seconds.
13. The method for protecting synchronous data network exchange processing according to claim 11, characterized in that, When inserting data and collection time into the four-level cache, data with earlier collection time is placed first, and data with later collection time is placed last. Before insertion, discard data that has the same acquisition time as data already in the fourth-level cache or whose acquisition time difference is greater than the maximum allowed acquisition time difference D*(1 / f), where D is a positive integer less than A2*f; where the acquisition time difference is the difference between the current acquisition time and the acquisition time when the data is retrieved from the third-level cache.
14. The method for protecting synchronous data network exchange processing according to claim 12, characterized in that, The length of the first-level buffer is not less than the sum of the maximum number of data frames that can be received within 1 / f seconds and the length of the second-level buffer; The length of the secondary cache is not less than the maximum number of data items that the primary cache can process in time T. The length of the four-level buffer is greater than the maximum transmission delay difference Qmax*f of the synchronization data that the protection logic needs to receive, where Qmax is the maximum transmission delay difference in seconds.
15. The method for protecting synchronous data network exchange processing according to claim 14, characterized in that, The second-level cache processing and subsequent cache processing at each level are performed either serially or in parallel. When serial processing is used, T is no greater than (1 / fk) / C seconds, where k is the processing time of each subsequent cache level.
16. The method for protecting synchronous data network exchange processing according to claim 13, characterized in that, The method for obtaining the collection time corresponding to the number is as follows: calculate the number difference Y based on the number and the data number of the current collection time; the corresponding collection time is the number difference Y*1 / f before the current collection time.
17. The method for protecting synchronous data network exchange processing according to claim 13, characterized in that, The maximum allowable acquisition time difference D*(1 / f) is not greater than the maximum channel transmission delay allowed by the protection logic.
18. The method for protecting synchronous data network exchange processing according to claim 1, characterized in that, The methods for classifying the first data and the data collected by the receiving side include: classification by current, classification by voltage, classification by interval, classification by phase, and classification by protection range.
19. The method for protecting synchronous data network exchange processing according to claim 1, characterized in that, The data collected by the sending side and the number are combined into a data frame and sent through a data exchange network; the data exchange network is selected from any one of dedicated fiber optic channels, wired communication networks, and wireless communication networks.
20. The method for protecting synchronous data network exchange processing according to claim 1, characterized in that, The data frame has a data frame type identifier, source address, destination address, and data frame content checksum; The data frame type identifier is a combination of characters and numbers that characterize the purpose of the data frame; Both the source address and the destination address are selected from any one of the following: IP address, MAC address, and a combination of characters and numbers representing the data source and the data destination; The data frame content verification code is any one of the following: CRC code, hash code, and message authentication code, obtained from the remaining content after removing the data frame type identifier, the source address, the destination address, and the data frame content verification code from the data frame.
21. A system for protecting the synchronous data network exchange processing method according to any one of claims 1-20, characterized in that, Includes Class I modules and Class II modules; Both the first type of module and the second type of module include a data acquisition module, which is used to perform the data acquisition process; The first type of module further includes a data transmission module, which is used to perform the data transmission process; The second type of module also includes: A data receiving and processing module, which is used to perform the data receiving stage; A protection logic processing module is provided, which is used to execute the protection logic processing steps.
22. The system for protecting the synchronous data network exchange processing method according to claim 21, characterized in that, The data receiving and processing module includes: A data cache setting module, which is used to perform data cache settings; The first-level processing module is used to perform first-level cache processing; The second-level processing module is used to perform second-level cache processing; The third-level processing module is used to perform third-level cache processing; The fourth-level processing module is used to perform fourth-level cache processing.