Disclosure of Invention
The technical problem to be solved by the invention is to provide a power grid business data trans-regional transmission method and device, which can determine target power grid business data by acquiring a power grid business data set, and then determine data transmission instruction information for indicating trans-regional synchronous transmission of the target power grid business data by utilizing a data transmission rule, thereby being beneficial to realizing real-time monitoring of directory files, and simultaneously taking data transmission efficiency and resource utilization into consideration, and further improving the trans-regional data transmission comprehensive performance of the power grid.
In order to solve the technical problem, a first aspect of the embodiment of the present invention discloses a method for transmitting power grid service data in a trans-regional manner, where the method includes:
Acquiring a power grid business data set; the power grid business data set comprises at least one power grid business data;
determining target power grid business data according to the power grid business data set;
Determining data transmission instruction information according to the target power grid business data and a preset data transmission rule; the data transmission instruction information is used for indicating the cross-region synchronous transmission of the target power grid business data.
In a first aspect of the embodiment of the present invention, the determining, according to the grid service data set, target grid service data includes:
screening out power grid business data to be transmitted from the power grid business data set;
and determining target power grid business data according to the power grid business data to be transmitted.
In a first aspect of the embodiment of the present invention, the screening the grid service data to be transmitted from the grid service data set includes:
Determining a power grid business data sequence according to the power grid business data set and a preset data ordering rule;
and determining the power grid business data to be transmitted according to the power grid business data sequence.
In an optional implementation manner, in a first aspect of the embodiment of the present invention, the determining, according to the power grid service data set and a preset data ordering rule, a power grid service data sequence includes:
acquiring dependency information corresponding to the power grid business data set;
and sequencing all the power grid business data according to the dependency information to obtain a power grid business data sequence.
In a first aspect of the embodiment of the present invention, the determining, according to the to-be-transmitted power grid service data, target power grid service data includes:
Judging whether the power grid business data to be transmitted is obtained by screening the power grid business data set for the first time or not, and obtaining a first judging result;
when the first judgment result shows that the power transmission network service data is obtained by screening the power transmission network service data set for the first time, determining that the power transmission network service data to be transmitted is target power transmission network service data;
and when the first judging result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, determining target power transmission network service data according to the power transmission network service data to be transmitted and a preset data determining rule.
In an optional implementation manner, in a first aspect of the embodiment of the present invention, when the first determination result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, determining, according to the power transmission network service data to be transmitted and a preset data determining rule, target power transmission network service data includes:
when the first judgment result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, judging whether a deleting signal is detected or not, and obtaining a second judgment result;
and when the second judging result shows that the deleting signal is detected, determining the to-be-transmitted power grid service data as new target power grid service data.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the deletion signal is triggered when the target grid service data in the transmission server is deleted.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the data transmission instruction information includes a write instruction, a transmission instruction, and a delete instruction;
The method further comprises the steps of:
Writing the target power grid business data into a transmission server according to the writing instruction;
Transmitting the target power grid business data from the transmission server to an isolator according to the transmission instruction;
and deleting the target power grid business data in the transmission server according to the deleting instruction.
The second aspect of the embodiment of the invention discloses a power grid business data trans-regional transmission device, which comprises:
the acquisition module is used for acquiring a power grid business data set; the power grid business data set comprises at least one power grid business data;
the first determining module is used for determining target power grid business data according to the power grid business data set;
The second determining module is used for determining data transmission instruction information according to the target power grid business data and a preset data transmission rule; the data transmission instruction information is used for indicating the cross-region synchronous transmission of the target power grid business data.
As one such alternative implementation manner, in the second aspect of the embodiment of the present invention, the first determining module includes a screening sub-module and a determining sub-module, where:
The screening submodule is used for screening the power grid business data to be transmitted from the power grid business data set;
And the determining submodule is used for determining target power grid business data according to the power grid business data to be transmitted.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the specific manner of screening the to-be-transmitted power grid service data from the power grid service data set by using the screening sub-module is:
Determining a power grid business data sequence according to the power grid business data set and a preset data ordering rule;
and determining the power grid business data to be transmitted according to the power grid business data sequence.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the specific manner in which the screening submodule determines the power grid service data sequence according to the power grid service data set and a preset data ordering rule is:
acquiring dependency information corresponding to the power grid business data set;
and sequencing all the power grid business data according to the dependency information to obtain a power grid business data sequence.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the determining submodule determines, according to the to-be-transmitted power grid service data, a specific manner of determining the target power grid service data is:
Judging whether the power grid business data to be transmitted is obtained by screening the power grid business data set for the first time or not, and obtaining a first judging result;
when the first judgment result shows that the power transmission network service data is obtained by screening the power transmission network service data set for the first time, determining that the power transmission network service data to be transmitted is target power transmission network service data;
and when the first judging result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, determining target power transmission network service data according to the power transmission network service data to be transmitted and a preset data determining rule.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, when the first determination result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, the determining submodule determines, according to the power transmission network service data to be transmitted and a preset data determining rule, that a specific manner of determining the target power transmission network service data is:
when the first judgment result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, judging whether a deleting signal is detected or not, and obtaining a second judgment result;
and when the second judging result shows that the deleting signal is detected, determining the to-be-transmitted power grid service data as new target power grid service data.
As one such alternative implementation, in the second aspect of the embodiment of the present invention, the deletion signal is triggered when the target grid service data in the transmission server is deleted.
As one such optional implementation manner, in the second aspect of the embodiment of the present invention, the data transmission instruction information includes a write instruction, a transmission instruction, and a delete instruction;
the apparatus further comprises:
The writing module is used for writing the target power grid business data into the transmission server according to the writing instruction;
The transmission module is used for transmitting the target power grid business data from the transmission server to the isolator according to the transmission instruction;
and the deleting module is used for deleting the target power grid business data in the transmission server according to the deleting instruction.
The third aspect of the present invention discloses another power grid business data trans-regional transmission device, which comprises:
A memory storing executable program code;
a processor coupled to the memory;
the processor invokes executable program codes stored in the memory to execute part or all of the steps in the power grid business data trans-regional transmission method disclosed in the first aspect of the embodiment of the invention.
The fourth aspect of the present invention discloses a computer storage medium, where the computer storage medium stores computer instructions, where the computer instructions are used to execute part or all of the steps in the power grid business data trans-regional transmission method disclosed in the first aspect of the present invention when the computer instructions are called.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
In the embodiment of the invention, a power grid business data set is acquired; the grid business data set comprises at least one grid business data; determining target power grid business data according to the power grid business data set; determining data transmission instruction information according to target power grid business data and preset data transmission rules; the data transmission instruction information is used for indicating the cross-region synchronous transmission of the target power grid business data. Therefore, the method and the system can determine the target power grid business data by acquiring the power grid business data set, and determine the data transmission instruction information for indicating the cross-region synchronous transmission of the target power grid business data by utilizing the data transmission rule, thereby being beneficial to realizing the real-time monitoring of the directory file, simultaneously taking into account the data transmission efficiency and the resource utilization rate, and further improving the comprehensive performance of the cross-region data transmission of the power grid.
Detailed Description
In order to make the present invention better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or elements but may, in the alternative, include other steps or elements not expressly listed or inherent to such process, method, article, or device.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention discloses a method and a device for transmitting power grid business data in a transregional mode, which can determine target power grid business data by acquiring a power grid business data set, and determine data transmission instruction information for indicating transregional synchronous transmission of the target power grid business data by utilizing a data transmission rule, so that real-time monitoring of directory files is facilitated, data transmission efficiency and resource utilization are considered, and further comprehensive performance of power grid transregional data transmission is improved. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a schematic flow chart of a power grid business data trans-regional transmission method according to an embodiment of the present invention. The method for transmitting the power grid business data in a transregional manner described in fig. 1 is applied to a data management system, such as a local server or a cloud server for transregional transmission management of the power grid business data, and the embodiment of the invention is not limited. As shown in fig. 1, the method for transmitting power grid business data in a transregional manner may include the following operations:
101. And acquiring a power grid business data set.
In an embodiment of the present invention, the grid service data set includes at least one grid service data.
102. And determining target power grid business data according to the power grid business data set.
103. And determining data transmission instruction information according to the target power grid business data and a preset data transmission rule.
In the embodiment of the invention, the data transmission instruction information is used for indicating the cross-region synchronous transmission of the target power grid business data.
In the embodiment of the invention, the power grid business data are acquired from a data source.
Optionally, the above-mentioned grid business data set is stored in an acquisition service storage device.
Optionally, the target grid business data will be written to the transmission server after being determined. Further, the directory file in the transmission server will generate data information of the target grid business data.
Optionally, the target grid business data in the transmission server is less than or equal to 1.
Optionally, the above-mentioned cross-zone synchronous transmission is to transmit the power grid service data from the transmission server of one zone to the isolator and then to the receiving server of three zones.
Therefore, by implementing the power grid business data trans-regional transmission method described by the embodiment of the invention, the target power grid business data can be determined by acquiring the power grid business data set, and then the data transmission rule is utilized to determine the data transmission instruction information for indicating trans-regional synchronous transmission of the target power grid business data, so that the real-time monitoring of the directory file is facilitated, the data transmission efficiency and the resource utilization rate are simultaneously considered, and the comprehensive performance of trans-regional data transmission of the power grid is further improved.
In an alternative embodiment, the determining the target grid service data according to the grid service data set in step 102 includes:
screening out power grid business data to be transmitted from a power grid business data set;
And determining target power grid business data according to the power grid business data to be transmitted.
In the embodiment of the invention, the screening of the power grid business data to be transmitted from the power grid business data set is completed in the acquisition service storage device.
Optionally, the to-be-transmitted power grid business data in the acquisition service storage device is less than or equal to 1.
Therefore, the power grid business data trans-regional transmission method described by the embodiment of the invention can screen the power grid business data to be transmitted from all the power grid business data, and then determine the target power grid business data to be synchronously transmitted, thereby being beneficial to realizing real-time monitoring of the directory file, simultaneously taking the data transmission efficiency and the resource utilization into consideration, and further improving the comprehensive performance of the power grid trans-regional data transmission.
In another optional embodiment, the screening the to-be-transmitted grid service data from the grid service data set includes:
Determining a power grid business data sequence according to a power grid business data set and a preset data ordering rule;
And determining the power grid business data to be transmitted according to the power grid business data sequence.
Optionally, all the power grid service data in the power grid service data set are ordered according to a preset data ordering rule, so that a power grid service data sequence is obtained.
Preferably, the first power grid service data in the power grid service data sequence is determined as the power grid service data to be transmitted. Further, the first power grid business data is deleted from the power grid business data sequence, and the rest power grid business data is sequentially regenerated into a power grid business data sequence.
Therefore, by implementing the power grid business data trans-regional transmission method described by the embodiment of the invention, all power grid business data can be ordered according to the data ordering rule, and then the power grid business data to be transmitted is determined according to the power grid business data sequence, so that the real-time monitoring of the catalog file is facilitated, the data transmission efficiency and the resource utilization rate are simultaneously considered, and the comprehensive performance of the power grid trans-regional data transmission is further improved.
In yet another optional embodiment, determining the power grid service data sequence according to the power grid service data set and a preset data ordering rule includes:
Acquiring dependency information corresponding to a power grid business data set;
and sequencing all the power grid business data according to the dependency information to obtain a power grid business data sequence.
In an embodiment of the present invention, the dependency information is a dependency relationship between different service data. For example, service 2 data depends on service 1 data, and a dependency relationship is formed between the two service data.
Optionally, the sequence relation between the service data is determined according to the dependency relation between different service data, so as to ensure the sequence of the cross-region synchronous transmission. For example, if the service 2 data depends on the service 1 data, the service 1 data is arranged before the service 2 data to ensure that the service 1 data is preferentially transmitted, so that the service 1 data is preferentially written into the transmission server, and the service 2 data is transmitted after the transmission of the service 1 data is completed.
Therefore, by implementing the power grid business data trans-regional transmission method described by the embodiment of the invention, the sequence of the power grid business data can be determined according to the dependency relationship between the power grid business data, namely the power grid business data sequence is obtained, the real-time monitoring of the catalog file is more facilitated, meanwhile, the data transmission efficiency and the resource utilization rate are considered, and the comprehensive performance of the power grid trans-regional data transmission is further improved.
In yet another optional embodiment, determining the target grid service data according to the grid service data to be transmitted includes:
Judging whether the power grid business data to be transmitted are screened from a power grid business data set for the first time, and obtaining a first judging result;
when the first judgment result shows that the power transmission network service data is screened from the power transmission network service data set for the first time, determining that the power transmission network service data to be transmitted is target power transmission network service data;
when the first judgment result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, determining the target power transmission network service data according to the power transmission network service data to be transmitted and a preset data determining rule.
In the embodiment of the invention, when the power grid service data to be transmitted is generated each time, the sequence information for screening the power grid service data to be transmitted from the power grid service data set is generated simultaneously. For example, when the grid service data to be transmitted is screened out from the grid service data set for the first time, the corresponding sequence information is No.1; when the power grid business data to be transmitted is screened out from the power grid business data set for the fifth time, the corresponding sequence information is NO.5.
Optionally, the determining whether the power grid service data to be transmitted is obtained by screening the power grid service data set for the first time is by determining order information.
Therefore, the power grid business data trans-regional transmission method described by the embodiment of the invention can determine the target power grid business data specifically by judging whether the screened business data is obtained for the first time, is more beneficial to realizing real-time monitoring of the directory file, and simultaneously gives consideration to data transmission efficiency and resource utilization rate, thereby improving the comprehensive performance of power grid trans-regional data transmission.
In an optional embodiment, when the first determination result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, determining the target power transmission network service data according to the power transmission network service data to be transmitted and a preset data determining rule includes:
When the first judgment result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, judging whether a deleting signal is detected or not, and obtaining a second judgment result;
and when the second judgment result shows that the deleting signal is detected, determining the power grid service data to be transmitted as new target power grid service data.
In the embodiment of the invention, under the Linux system, the directory file in the transmission server is monitored in real time by utilizing the inotify to acquire real-time monitoring information.
Optionally, the real-time monitoring information includes creating event information, and/or deleting event information, and/or writing event information, and/or transmitting event information, which is not limited by the implementation of the present invention.
Optionally, the creating event information includes generating a generation signal of the target grid service data.
Optionally, the deletion event information includes a deletion signal for deleting the target power grid service data from the target power grid service data.
Optionally, the writing event information includes a writing signal for writing the target grid service data to the transmission server.
Optionally, the transmission event information includes a transmission signal triggered when the isolator transmits the target power grid service data to the receiving server after transmitting the target power grid service data from the transmitting server to the isolator.
Optionally, the transmission signal is used for indicating an operation of deleting the target grid service data in the transmission server.
Further, for any target grid business data, the sequence of the real-time monitoring information acquired by the inotify is sequentially that event information is created, the event information is written, the event information is transmitted and the event information is deleted.
Therefore, the implementation of the power grid business data trans-regional transmission method described by the embodiment of the invention can execute the operation of determining the power grid business data to be transmitted as the target power grid business data by judging whether the deleting signal is detected, is more beneficial to realizing the real-time monitoring of the directory file, and simultaneously gives consideration to the data transmission efficiency and the resource utilization rate, thereby improving the comprehensive performance of the power grid trans-regional data transmission.
In another alternative embodiment, the deletion signal is triggered when the target grid service data in the transmission server is deleted.
In the embodiment of the invention, the deletion of the target power grid business data in the transmission server is performed after the receiving server receives the target power grid business data transmitted by the isolator. For example, when the target grid service data in the transmission server is service 1 data, the service 1 data is transmitted to the isolator, the isolator transmits the service 1 data to the receiving server, and after receiving the feedback signal of the receiving server, the service 1 data in the transmission server is deleted, and the deletion signal is triggered.
Therefore, the power grid business data trans-regional transmission method described by the embodiment of the invention can determine the deleted signal by capturing the signal for deleting the target power grid business data in the transmission server, is more beneficial to realizing the real-time monitoring of the directory file, and simultaneously gives consideration to the data transmission efficiency and the resource utilization rate, thereby improving the comprehensive performance of the power grid trans-regional data transmission.
Example two
Referring to fig. 2, fig. 2 is a flow chart of another power grid business data trans-regional transmission method according to an embodiment of the present invention. The method for transmitting the power grid business data in a transregional manner described in fig. 2 is applied to a data management system, such as a local server or a cloud server for transregional transmission management of the power grid business data, and the embodiment of the invention is not limited. As shown in fig. 2, the method for transmitting power grid business data in a transregional manner may include the following operations:
201. And acquiring a power grid business data set.
202. And determining target power grid business data according to the power grid business data set.
203. And determining data transmission instruction information according to the target power grid business data and a preset data transmission rule.
In the embodiment of the invention, the data transmission instruction information comprises a writing instruction, a transmission instruction and a deleting instruction.
In the embodiment of the present invention, for specific technical details and technical term explanations of the step 201 to the step 203, reference may be made to the detailed description of the step 101 to the step 103 in the first embodiment, and the detailed description of the embodiment of the present invention is omitted.
204. And writing the target power grid business data into the transmission server according to the writing instruction.
205. And transmitting the target power grid business data from the transmission server to the isolator according to the transmission instruction.
206. And deleting the target power grid business data in the transmission server according to the deleting instruction.
In the embodiment of the invention, for any target power grid service data, after the power grid service data to be transmitted is determined as the target power grid service data, a writing instruction, a transmission instruction and a deleting instruction corresponding to the target power grid service data are determined.
Optionally, the data transmission instruction information further includes a checking instruction. Further, the checking instruction is used for checking whether the target power grid business data meets the format requirement of the cross-region synchronous transmission.
Further, the priority of the checking instruction is higher than that of the writing instruction, the transmitting instruction and the deleting instruction, that is, when the checking instruction exists, the checking instruction is executed first, and then the writing instruction, the transmitting instruction and the deleting instruction are executed.
Optionally, the data transmission instruction information further includes a termination transmission instruction. Further, the termination transmission instruction is used for indicating to end the current cross-region synchronous transmission task.
Further, the priority of the termination transmission instruction is smaller than that of the write instruction, the transmission instruction and the deletion instruction, that is, when the termination transmission instruction exists, the termination transmission instruction is executed only after the write instruction, the transmission instruction and the deletion instruction are executed.
Optionally, according to the target power grid business data and a preset data transmission rule, determining the specific mode of the data transmission instruction information is as follows:
Generating write instructions, transfer instructions, and delete instructions
Judging whether to check the format of the target power grid business data or not to obtain a check judgment result;
when the checking judgment result indicates that the format of the target power grid business data needs to be checked, generating a checking instruction;
Judging whether the sequence information is matched with element quantity information in the power grid business data set or not, and obtaining a quantity matching result;
and when the number matching result indicates that the order information is matched with the element number information in the power grid business data set, generating a transmission termination instruction.
Optionally, the writing instruction includes a time instruction for writing the target power grid service data into the transmission server, and/or a judgment execution instruction for writing the target power grid service data into the transmission server, which is not limited in the embodiment of the present invention.
Optionally, the transmission instruction includes a time instruction for transmitting the target power grid service data from the transmission server to the isolator, and/or a judgment execution instruction for transmitting the target power grid service data from the transmission server to the isolator, which is not limited in the embodiment of the present invention.
Optionally, the deleting instruction includes a time instruction for deleting the target power grid service data in the transmission server, and/or a judging and executing instruction for deleting the target power grid service data in the transmission server, which is not limited in the embodiment of the present invention.
Therefore, by implementing the power grid business data trans-regional transmission method described by the embodiment of the invention, the target power grid business data can be determined by acquiring the power grid business data set, then the data transmission instruction information for indicating trans-regional synchronous transmission of the target power grid business data is determined by utilizing the data transmission rule, and then the target power grid business data is written into the transmission server according to the writing instruction, the transmission instruction and the deletion instruction in turn, the target power grid business data is transmitted from the transmission server to the isolator, and the target power grid business data in the transmission server is deleted, so that the real-time monitoring of the directory file is facilitated, the data transmission efficiency and the resource utilization rate are simultaneously considered, and the comprehensive performance of the power grid trans-regional data transmission is further improved.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a power grid business data trans-regional transmission device according to an embodiment of the present invention. The device described in fig. 3 can be applied to a data management system, such as a local server or a cloud server for cross-regional transmission management of power grid service data, which is not limited in the embodiment of the present invention. As shown in fig. 3, the apparatus may include:
An acquiring module 301, configured to acquire a power grid service data set; the grid business data set comprises at least one grid business data;
A first determining module 302, configured to determine target grid service data according to the grid service data set;
The second determining module 303 is configured to determine data transmission instruction information according to the target power grid service data and a preset data transmission rule; the data transmission instruction information is used for indicating the cross-region synchronous transmission of the target power grid business data.
In an embodiment of the present invention, the grid service data set includes at least one grid service data.
In the embodiment of the invention, the data transmission instruction information is used for indicating the cross-region synchronous transmission of the target power grid business data.
Therefore, the implementation of the power grid business data trans-regional transmission device described in fig. 3 can determine the target power grid business data by acquiring the power grid business data set, and then determine the data transmission instruction information for indicating trans-regional synchronous transmission of the target power grid business data by utilizing the data transmission rule, so that the real-time monitoring of the directory file is facilitated, the data transmission efficiency and the resource utilization rate are simultaneously considered, and the comprehensive performance of trans-regional data transmission of the power grid is further improved.
In another alternative embodiment, as shown in fig. 4, the first determining module 302 includes a screening submodule 3021 and a determining submodule 3022, where:
The screening sub-module is used for screening the power grid business data to be transmitted from the power grid business data set;
And the determining submodule is used for determining target power grid service data according to the power grid service data to be transmitted.
Therefore, the implementation of the power grid business data trans-regional transmission device described in fig. 4 can screen the power grid business data to be transmitted from all the power grid business data, and then determine the target power grid business data to be synchronously transmitted, which is favorable for realizing real-time monitoring of the catalog file, and simultaneously gives consideration to the data transmission efficiency and the resource utilization rate, so as to further improve the comprehensive performance of the power grid trans-regional data transmission.
In yet another alternative embodiment, as shown in fig. 4, the specific manner of screening the grid service data to be transmitted from the grid service data set by the screening submodule 3021 is:
Determining a power grid business data sequence according to a power grid business data set and a preset data ordering rule;
And determining the power grid business data to be transmitted according to the power grid business data sequence.
Therefore, implementing the power grid business data trans-regional transmission device described in fig. 4 can sort all the power grid business data according to the data sorting rule, and then determine the power grid business data to be transmitted according to the power grid business data sequence, which is beneficial to realizing real-time monitoring of the catalog file, and meanwhile, taking into account the data transmission efficiency and the resource utilization rate, so as to further improve the comprehensive performance of power grid trans-regional data transmission.
In yet another alternative embodiment, as shown in fig. 4, the screening submodule 3021 determines, according to the power grid service data set and the preset data ordering rule, the specific manner in which the power grid service data sequence is determined is:
Acquiring dependency information corresponding to a power grid business data set;
and sequencing all the power grid business data according to the dependency information to obtain a power grid business data sequence.
Optionally, the sequence relation between the service data is determined according to the dependency relation between different service data, so as to ensure the sequence of the cross-region synchronous transmission.
Therefore, the implementation of the power grid business data trans-regional transmission device described in fig. 4 can determine the sequence of the power grid business data according to the dependency relationship between the power grid business data, namely the power grid business data sequence is obtained, the real-time monitoring of the catalog file is facilitated, meanwhile, the data transmission efficiency and the resource utilization rate are considered, and the comprehensive performance of the power grid trans-regional data transmission is further improved.
In yet another alternative embodiment, as shown in fig. 4, the determining submodule 3022 determines, according to the grid service data to be transmitted, the specific manner in which the target grid service data is determined is:
Judging whether the power grid business data to be transmitted are screened from a power grid business data set for the first time, and obtaining a first judging result;
when the first judgment result shows that the power transmission network service data is screened from the power transmission network service data set for the first time, determining that the power transmission network service data to be transmitted is target power transmission network service data;
when the first judgment result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, determining the target power transmission network service data according to the power transmission network service data to be transmitted and a preset data determining rule.
In the embodiment of the invention, when the power grid service data to be transmitted is generated each time, the sequence information for screening the power grid service data to be transmitted from the power grid service data set is generated simultaneously.
Optionally, the determining whether the power grid service data to be transmitted is obtained by screening the power grid service data set for the first time is by determining order information.
Therefore, the implementation of the power grid business data trans-regional transmission device described in fig. 4 can determine the target power grid business data specifically by judging whether the screened business data is obtained for the first time, which is more beneficial to realizing real-time monitoring of the catalog file, and meanwhile, the data transmission efficiency and the resource utilization rate are taken into consideration, so that the comprehensive performance of the power grid trans-regional data transmission is improved.
In yet another alternative embodiment, as shown in fig. 4, when the first determination result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, the determining submodule 3022 determines, according to the power transmission network service data to be transmitted and a preset data determining rule, a specific manner of determining the target power transmission network service data is as follows:
When the first judgment result indicates that the power transmission network service data is not screened from the power transmission network service data set for the first time, judging whether a deleting signal is detected or not, and obtaining a second judgment result;
and when the second judgment result shows that the deleting signal is detected, determining the power grid service data to be transmitted as new target power grid service data.
In the embodiment of the invention, under the Linux system, the directory file in the transmission server is monitored in real time by utilizing the inotify to acquire real-time monitoring information.
Optionally, the real-time monitoring information includes creating event information, and/or deleting event information, and/or writing event information, and/or transmitting event information, which is not limited by the implementation of the present invention.
Optionally, the creating event information includes generating a generation signal of the target grid service data.
Optionally, the deletion event information includes a deletion signal for deleting the target power grid service data from the target power grid service data.
Optionally, the writing event information includes a writing signal for writing the target grid service data to the transmission server.
Optionally, the transmission event information includes a transmission signal triggered when the isolator transmits the target power grid service data to the receiving server after transmitting the target power grid service data from the transmitting server to the isolator.
Optionally, the transmission signal is used for indicating an operation of deleting the target grid service data in the transmission server.
Further, for any target grid business data, the sequence of the real-time monitoring information acquired by the inotify is sequentially that event information is created, the event information is written, the event information is transmitted and the event information is deleted.
Therefore, implementing the power grid business data trans-regional transmission device described in fig. 4 can determine whether to-be-transmitted power grid business data is the target power grid business data by judging whether to detect the deletion signal, which is more beneficial to realizing real-time monitoring of the catalog file, and meanwhile, the data transmission efficiency and the resource utilization rate are considered, so that the comprehensive performance of power grid trans-regional data transmission is improved.
In yet another alternative embodiment, as shown in fig. 4, the delete signal is triggered when the target grid traffic data in the transport server is deleted.
In the embodiment of the invention, the deletion of the target power grid business data in the transmission server is performed after the receiving server receives the target power grid business data transmitted by the isolator.
Therefore, the implementation of the power grid business data trans-regional transmission device described in fig. 4 can determine the deletion signal by capturing the signal for deleting the target power grid business data in the transmission server, which is more beneficial to realizing real-time monitoring of the directory file, and meanwhile, the data transmission efficiency and the resource utilization rate are taken into consideration, so that the comprehensive performance of power grid trans-regional data transmission is improved.
In yet another alternative embodiment, as shown in fig. 4, the data transfer instruction information includes a write instruction, a transfer instruction, and a delete instruction;
The apparatus further comprises:
the writing module 304 is configured to write the target power grid service data into the transmission server according to the writing instruction;
A transmission module 305, configured to transmit the target power grid service data from the transmission server to the isolator according to the transmission instruction;
And the deleting module 306 is configured to delete the target grid service data in the transmission server according to the deleting instruction.
In the embodiment of the invention, for any target power grid service data, after the power grid service data to be transmitted is determined as the target power grid service data, a writing instruction, a transmission instruction and a deleting instruction corresponding to the target power grid service data are determined.
Optionally, the data transmission instruction information further includes a checking instruction. Further, the checking instruction is used for checking whether the target power grid business data meets the format requirement of the cross-region synchronous transmission.
Further, the priority of the checking instruction is higher than that of the writing instruction, the transmitting instruction and the deleting instruction, that is, when the checking instruction exists, the checking instruction is executed first, and then the writing instruction, the transmitting instruction and the deleting instruction are executed.
Optionally, the data transmission instruction information further includes a termination transmission instruction. Further, the termination transmission instruction is used for indicating to end the current cross-region synchronous transmission task.
Further, the priority of the termination transmission instruction is smaller than that of the write instruction, the transmission instruction and the deletion instruction, that is, when the termination transmission instruction exists, the termination transmission instruction is executed only after the write instruction, the transmission instruction and the deletion instruction are executed.
Optionally, according to the target power grid business data and a preset data transmission rule, determining the specific mode of the data transmission instruction information is as follows:
Generating write instructions, transfer instructions, and delete instructions
Judging whether to check the format of the target power grid business data or not to obtain a check judgment result;
when the checking judgment result indicates that the format of the target power grid business data needs to be checked, generating a checking instruction;
Judging whether the sequence information is matched with element quantity information in the power grid business data set or not, and obtaining a quantity matching result;
and when the number matching result indicates that the order information is matched with the element number information in the power grid business data set, generating a transmission termination instruction.
Therefore, the implementation of the power grid business data trans-regional transmission device described in fig. 4 can determine the target power grid business data by acquiring the power grid business data set, determine the data transmission instruction information for indicating trans-regional synchronous transmission of the target power grid business data by utilizing the data transmission rule, write the target power grid business data into the transmission server according to the writing instruction, the transmission instruction and the deletion instruction in turn, transmit the target power grid business data from the transmission server to the isolator, and delete the target power grid business data in the transmission server, thereby being beneficial to realizing real-time monitoring of directory files, and simultaneously taking into account the data transmission efficiency and the resource utilization rate, and further improving the comprehensive performance of trans-regional data transmission of the power grid.
Example IV
Referring to fig. 5, fig. 5 is a schematic structural diagram of another power grid business data trans-regional transmission device according to an embodiment of the present invention. The device described in fig. 5 can be applied to a data management system, such as a local server or a cloud server for cross-regional transmission management of power grid service data, which is not limited in the embodiment of the present invention. As shown in fig. 5, the apparatus may include:
a memory 401 storing executable program codes;
A processor 402 coupled with the memory 401;
the processor 402 invokes executable program code stored in the memory 401 for performing the steps in the power grid service data trans-regional transmission method described in embodiment one or embodiment two.
Example five
The embodiment of the invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the steps in the power grid business data trans-regional transmission method described in the first embodiment or the second embodiment.
Example six
An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the power grid service data trans-regional transmission method described in the first embodiment or the second embodiment.
The apparatus embodiments described above are merely illustrative, in which the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the invention discloses a power grid business data trans-regional transmission method and device, which are disclosed by the embodiment of the invention and are only used for illustrating the technical scheme of the invention, but not limiting the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.