Power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination

文档序号:1802179 发布日期:2021-11-05 浏览:15次 中文

阅读说明:本技术 基于哈希算法分片及重组的电网监控系统数据传输方法 (Power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination ) 是由 齐鹏辉 郑志豪 龚舒 何伊妮 江雄烽 曹伟 韦洪波 叶桂南 阮诗迪 刘欣然 于 2021-08-02 设计创作,主要内容包括:本申请涉及一种基于哈希算法分片及重组的电网监控系统数据传输方法、装置、计算机设备和存储介质。该方法包括:传输服务器通过确定各目标存储器的存储地址;将待传输数据进行分片得到多个片数据,并对各片数据均进行标注处理,得到各分片标识,并将分片标识与存储地址进行一一对应并建立索引关系,得到哈希数据表;将每个片数据按照与分片标识对应的存储地址存储至目标存储器,再基于分片标识和哈希数据表生成数据传输请求,并将数据传输请求发送至隔离服务器,以使得隔离服务器获取各个片数据,这样,在数据传输的过程中,隔离服务器通过对获取的各个片数据进行处理,能够大大降低隔离服务器的处理压力,从而实现在传输数据时的负载均衡的需求。(The application relates to a power grid monitoring system data transmission method and device based on Hash algorithm fragmentation and recombination, computer equipment and a storage medium. The method comprises the following steps: the transmission server determines the storage address of each target memory; the method comprises the steps of fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain each fragmentation identification, corresponding the fragmentation identification to a storage address one by one and establishing an index relation to obtain a hash data table; the method comprises the steps of storing each piece of data to a target memory according to a storage address corresponding to a piece identification, generating a data transmission request based on the piece identification and a Hash data table, and sending the data transmission request to an isolation server, so that the isolation server acquires each piece of data.)

1. A power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination is characterized by being executed by a transmission server, and the method comprises the following steps:

determining storage addresses respectively corresponding to a plurality of target storages;

the method comprises the steps of fragmenting data to be transmitted to obtain a plurality of pieces of data, and labeling each piece of data to obtain a fragmentation identification corresponding to each piece of data;

carrying out one-to-one correspondence on the fragment identification and the storage address and establishing an index relation to obtain a hash data table;

storing each piece of data into a target memory appointed by the corresponding storage address according to the storage address corresponding to the corresponding fragment identifier;

and generating a data transmission request based on the fragment identification and the hash data table, and sending the data transmission request to an isolation server, so that the isolation server acquires each piece of data from the target memory based on the hash data table and the fragment identification carried in the data transmission request.

2. The method according to claim 1, wherein the slicing the data to be transmitted to obtain a plurality of pieces of data comprises:

acquiring the total data volume of data to be transmitted, and taking the number of target memories as the number of piece data;

determining a unit data amount for each slice data based on the number of slice data and the total data amount;

and fragmenting the data to be transmitted according to the unit data quantity to obtain a plurality of pieces of data.

3. The method according to claim 1, wherein the slicing the data to be transmitted to obtain a plurality of pieces of data comprises:

determining a preset data volume, and fragmenting data to be transmitted based on the preset data volume to obtain a plurality of pieces of data; wherein a data amount of at most one piece of slice data existing in the plurality of pieces of slice data is smaller than the preset data amount.

4. The method according to claim 1, wherein the one-to-one correspondence between the fragmentation identifier and the storage address and the establishment of an index relationship to obtain a hash table comprises:

carrying out Hash processing on the fragment identification to obtain a mapping address corresponding to the fragment identification;

and associating each storage address with the fragment identifier mapping address one by one, and storing the storage address into the associated mapping address to obtain a hash data table.

5. A power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination is characterized by being executed by an isolation server, and the method comprises the following steps:

receiving a data transmission request, and analyzing the data transmission request to obtain a hash data table and a fragment identifier; the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain a fragmentation identifier, and establishing an index relationship between the fragmentation identifier and storage addresses respectively corresponding to a plurality of target storages;

based on the fragment identification, searching storage addresses respectively corresponding to the fragment identifications from the hash data table, and acquiring fragment data corresponding to the fragment identification from each target storage based on the searched storage addresses;

and recombining the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain data to be transmitted, and transmitting the data to be transmitted to a receiving server.

6. A power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination is characterized in that the method is executed by an isolation server, and the method further comprises the following steps:

receiving a data transmission request, analyzing the data transmission request to obtain a hash data table and a fragment identifier, wherein the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain the fragment identifier, and establishing an index relationship between the fragment identifier and storage addresses respectively corresponding to a plurality of target storages;

based on the fragment identification, searching storage addresses respectively corresponding to the fragment identifications from the hash data table, and acquiring fragment data corresponding to the fragment identification from each target storage based on the searched storage addresses;

and sending the plurality of pieces of data to a receiving server so that the receiving server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted.

7. A power grid monitoring system data transmission device based on Hash algorithm fragmentation and recombination is characterized by being applied to a transmission server and comprising:

a determining module, configured to determine storage addresses respectively corresponding to the plurality of target memories;

the marking module is used for carrying out fragmentation on data to be transmitted to obtain a plurality of pieces of data, and carrying out marking processing on each piece of data respectively to obtain a fragmentation identification corresponding to each piece of data;

the establishing module is used for carrying out one-to-one correspondence on the fragment identifications and the storage addresses and establishing an index relation to obtain a hash data table;

the storage module is used for storing each piece of data into a target memory specified by the corresponding storage address according to the storage address corresponding to the corresponding fragment identifier;

the first sending module is used for generating a data transmission request based on the fragment identification and the hash data table and sending the data transmission request to the isolation server, so that the isolation server obtains each piece of data from the target memory based on the hash data table and the fragment identification carried in the data transmission request.

8. A power grid monitoring system data transmission device based on Hash algorithm fragmentation and recombination is characterized by being applied to an isolation server and comprising:

the first receiving module is used for receiving a data transmission request and analyzing the data transmission request to obtain a hash data table and a fragment identifier; the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain a fragmentation identifier, and establishing an index relationship between the fragmentation identifier and storage addresses respectively corresponding to a plurality of target storages;

the first searching module is used for searching storage addresses respectively corresponding to the fragment identifications from the hash data table based on the fragment identifications, and acquiring the fragment data corresponding to the fragment identifications from each target storage based on the searched storage addresses;

the first recombination module is used for recombining the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain data to be transmitted and transmitting the data to be transmitted to the receiving server.

9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The application relates to the technical field of power system informatization, in particular to a power grid monitoring system data transmission method and device based on Hash algorithm fragmentation and recombination, computer equipment and a storage medium.

Background

With the development of the informatization technology of the power system, in order to ensure the safety of a power core system, the power system starts to adopt a safety protection mechanism, and in the power system in China, a service area based on a computer and a network technology is divided into a real-time control area (namely a safety first area) and a non-control production area (namely a safety second area), and management information is divided into a production management area (namely a safety third area) and a management information area (namely a safety fourth area). The communication between the real-time control area and the non-control production area and the communication between the production management area and the management information area are all isolated by a firewall, and the communication between the real-time control area and the production management area and the communication between the non-control production area and the production management area are all isolated by a network safety isolation device, so that the data sharing requirement of interval service application between the areas is met.

However, with the accumulation of a large amount of data, the exchange demand of massive data, especially real-time data, historical data, and whole network model data, between the service area (real-time control area, non-control production area) and the management information area is increasing, which greatly increases the processing pressure of the isolation server, so that the isolation server cannot meet the demand of cross-regional data transmission.

Disclosure of Invention

Therefore, in order to solve the technical problems, a method, an apparatus, a computer device and a storage medium for transmitting data of a power grid monitoring system based on hash algorithm fragmentation and reassembly are provided.

A power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination is executed by a transmission server, and the method comprises the following steps:

determining storage addresses respectively corresponding to a plurality of target storages; the method comprises the steps of fragmenting data to be transmitted to obtain a plurality of pieces of data, and labeling each piece of data to obtain a fragmentation identification corresponding to each piece of data; carrying out one-to-one correspondence on the fragment identification and the storage address and establishing an index relation to obtain a hash data table; storing each piece of data into a target memory appointed by the corresponding storage address according to the storage address corresponding to the corresponding fragment identifier; and generating a data transmission request based on the fragment identification and the hash data table, and sending the data transmission request to an isolation server, so that the isolation server acquires each piece of data from the target memory based on the hash data table and the fragment identification carried in the data transmission request.

In one embodiment, the slicing the data to be transmitted to obtain a plurality of pieces of data includes:

acquiring the total data volume of data to be transmitted, and taking the number of target memories as the number of piece data; determining a unit data amount of each slice data based on the number of the slice data and the total data amount; and slicing the data to be transmitted according to the unit data quantity to obtain a plurality of pieces of data.

In one embodiment, the slicing the data to be transmitted to obtain a plurality of pieces of data includes:

determining a preset data volume, and fragmenting data to be transmitted based on the preset data volume to obtain a plurality of pieces of data; wherein a data amount of at most one slice data among the plurality of slice data is smaller than the preset data amount.

In one embodiment, the one-to-one correspondence between the fragment identifier and the storage address and establishment of an index relationship to obtain a hash table includes:

carrying out hash processing on the fragment identification to obtain a mapping address corresponding to the fragment identification; and performing one-to-one association on each storage address and the fragment identifier mapping address, and storing the storage address into the associated mapping address to obtain the hash data table.

A power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination is executed by an isolation server, and the method comprises the following steps:

receiving a data transmission request, and analyzing the data transmission request to obtain a hash data table and a fragment identifier; the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain a fragmentation identifier, and establishing an index relationship between the fragmentation identifier and storage addresses respectively corresponding to a plurality of target storages; based on the fragment identifier, searching storage addresses respectively corresponding to the fragment identifiers from the hash data table, and acquiring the fragment data corresponding to the fragment identifier from each target storage based on the searched storage addresses; and recombining the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted, and sending the data to be transmitted to a receiving server.

A power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination is executed by an isolation server, and the method further comprises the following steps:

receiving a data transmission request, analyzing the data transmission request to obtain a hash data table and a fragment identifier, wherein the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data respectively to obtain the fragment identifier, and establishing an index relationship between the fragment identifier and storage addresses respectively corresponding to a plurality of target storages; based on the fragment identifier, searching storage addresses respectively corresponding to the fragment identifiers from the hash data table, and acquiring the fragment data corresponding to the fragment identifier from each target storage based on the searched storage addresses; and sending the plurality of pieces of data to a receiving server so that the receiving server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted.

A power grid monitoring system data transmission device based on Hash algorithm fragmentation and recombination is applied to a transmission server, and the device comprises:

a determining module, configured to determine storage addresses respectively corresponding to the plurality of target memories;

the marking module is used for carrying out fragmentation on data to be transmitted to obtain a plurality of pieces of data, and carrying out marking processing on each piece of data respectively to obtain a fragmentation identification corresponding to each piece of data;

the establishing module is used for carrying out one-to-one correspondence on the fragment identification and the storage address and establishing an index relation to obtain a hash data table;

the storage module is used for storing each piece of data into a target memory specified by the corresponding storage address according to the storage address corresponding to the corresponding fragment identifier;

and the first sending module is used for generating a data transmission request based on the fragment identifier and the hash data table and sending the data transmission request to the isolation server so that the isolation server obtains each piece of data from the target memory based on the hash data table and the fragment identifier carried in the data transmission request.

In one embodiment, the labeling module is specifically configured to:

acquiring the total data volume of data to be transmitted, and taking the number of target memories as the number of piece data; determining a unit data amount of each slice data based on the number of the slice data and the total data amount; and slicing the data to be transmitted according to the unit data quantity to obtain a plurality of pieces of data.

In one embodiment, the labeling module is specifically configured to:

determining a preset data volume, and fragmenting data to be transmitted based on the preset data volume to obtain a plurality of pieces of data; wherein a data amount of at most one slice data among the plurality of slice data is smaller than the preset data amount.

In one embodiment, the establishing module is specifically configured to:

carrying out hash processing on the fragment identification to obtain a mapping address corresponding to the fragment identification; and performing one-to-one association on each storage address and the fragment identifier mapping address, and storing the storage address into the associated mapping address to obtain the hash data table.

A power grid monitoring system data transmission device based on Hash algorithm fragmentation and recombination is applied to an isolation server, and comprises:

the first receiving module is used for receiving a data transmission request and analyzing the data transmission request to obtain a hash data table and a fragment identifier; the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain a fragmentation identifier, and establishing an index relationship between the fragmentation identifier and storage addresses respectively corresponding to a plurality of target storages;

the first searching module is used for searching storage addresses respectively corresponding to the fragment identifications from the hash data table based on the fragment identifications, and acquiring the fragment data corresponding to the fragment identifications from each target storage based on the searched storage addresses;

the first recombination module is used for recombining the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain data to be transmitted and transmitting the data to be transmitted to the receiving server.

A power grid monitoring system data transmission device based on Hash algorithm fragmentation and recombination is characterized in that the device is applied to an isolation server and comprises:

the second receiving module is used for receiving the data transmission request and analyzing the data transmission request to obtain a hash data table and a fragment identifier, wherein the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain the fragment identifier, and establishing an index relationship between the fragment identifier and storage addresses respectively corresponding to a plurality of target storages;

the second searching module is used for searching storage addresses respectively corresponding to the fragment identifications from the hash data table based on the fragment identifications, and acquiring the fragment data corresponding to the fragment identifications from the target memories based on the searched storage addresses;

and the second sending module is used for sending the plurality of pieces of data to the receiving server so that the receiving server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted.

A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the power grid monitoring system data transmission method based on hash algorithm fragmentation and recombination.

A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method for data transmission of a power grid monitoring system based on hash algorithm fragmentation and reassembly as described in any one of the above.

According to the power grid monitoring system data transmission method and device based on Hash algorithm fragmentation and recombination, the transmission server fragments data to be transmitted to obtain a plurality of pieces of data by determining storage addresses corresponding to a plurality of target storages respectively, labels each piece of data respectively to obtain fragmentation identifications corresponding to each piece of data, and corresponds the fragmentation identifications and the storage addresses one by one and establishes an index relationship to obtain a Hash data table; the transmission server stores each piece of data into a target memory appointed by the corresponding memory address according to the memory address corresponding to the corresponding fragment identifier, so that the target memory in which the piece of data is stored can be rapidly and accurately determined according to the hash data table, then the transmission server generates a data transmission request based on the fragment identifier and the hash data table and sends the data transmission request to the isolation server, so that the isolation server obtains each piece of data from the target memory based on the hash data table and the fragment identifier carried in the data transmission request, and thus, in the data transmission process, the isolation server processes each piece of data obtained, the processing pressure of the isolation server can be greatly reduced, and the requirement of load balance during data transmission is met.

Drawings

Fig. 1 is an application environment diagram of a data transmission method of a power grid monitoring system based on hash algorithm fragmentation and reassembly in an embodiment;

fig. 2 is a schematic flow chart of a data transmission method of a power grid monitoring system based on hash algorithm fragmentation and reassembly in one embodiment;

fig. 3 is a schematic flow chart of a data transmission method of a power grid monitoring system based on hash algorithm fragmentation and reassembly in another embodiment;

fig. 4 is a block diagram of a data transmission device of a power grid monitoring system based on hash algorithm fragmentation and reassembly in an embodiment;

fig. 5 is a block diagram of a data transmission device of a power grid monitoring system based on hash algorithm fragmentation and reassembly in another embodiment;

fig. 6 is a block diagram of a data transmission device of a power grid monitoring system based on hash algorithm fragmentation and reassembly in another embodiment;

FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The power grid monitoring system data transmission method based on hash algorithm fragmentation and recombination can be applied to the application environment shown in fig. 1. Wherein the transport server 102 communicates with the quarantine server 104 over a network. The transmission server 102 determines storage addresses corresponding to the plurality of target storages, respectively; the transmission server 102 fragments data to be transmitted to obtain a plurality of fragment data, and labels each fragment data to obtain a fragment identifier corresponding to each fragment data; the transmission server 102 makes one-to-one correspondence between the fragment identifier and the storage address and establishes an index relationship to obtain a hash data table; the transmission server 102 stores each piece of data into a target memory designated by the corresponding memory address according to the memory address corresponding to the corresponding fragment identifier; the transmission server 102 generates a data transmission request based on the fragment identifier and the hash data table, and sends the data transmission request to the isolated server, so that the isolated server obtains each piece of data from the target storage based on the hash data table and the fragment identifier carried in the data transmission request. The server 104 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.

In an embodiment, as shown in fig. 2, a method for transmitting data of a power grid monitoring system based on hash algorithm fragmentation and reassembly is provided, which is described by taking the method applied to the transmission server in fig. 1 as an example, and includes the following steps:

in step S202, memory addresses corresponding to the plurality of target memories are determined.

The memory is a memory unit for storing data, instructions, and the like.

Specifically, the transfer server determines a plurality of target memories from the plurality of memories, and determines storage addresses corresponding to the respective target memories based on the plurality of target memories.

Step S204, the data to be transmitted is sliced to obtain a plurality of pieces of data, and each piece of data is respectively marked to obtain a respective corresponding slicing identifier of each piece of data.

The fragment mark comprises a character label of data to be transmitted to which each piece of data belongs, and a sequence label of each piece of data is determined.

Specifically, the transmission server performs fragmentation processing on data to be transmitted to obtain a plurality of pieces of data corresponding to the data to be transmitted, and performs labeling processing on each piece of data to obtain a fragment identifier corresponding to each piece of data.

For example, the transmission server performs fragmentation processing on data to be transmitted a to obtain 10 pieces of data, performs labeling processing on each piece of data, and obtains corresponding fragment identifiers of the piece of data, which may be a-0001, a-0002, … …, or a-0010. Taking the slice data a-0001 as an example, wherein the character a is a character identifier of data to be transmitted to which each slice data belongs, the character identifier is a unique identifier of the slice data, 0001 is a sequence label, the sequence label can be characterized in a numerical arrangement form, and the sequence of each slice data is determined based on the sequence label.

Step S206, the fragment identification and the storage address are in one-to-one correspondence, and an index relationship is established, so that a hash data table is obtained.

The hash data table maps the key value to a position in the table to realize the accessed data result, so that the searching speed is accelerated.

Specifically, the transmission server determines a storage address corresponding to each fragment identifier through a hash algorithm based on the fragment identifier of each piece of data and the storage address of each target storage, determines a corresponding relationship between each fragment identifier and the storage address, and establishes an index relationship based on the corresponding relationship to obtain a hash data table.

Step S208, storing each piece of data into the target memory specified by the corresponding storage address according to the storage address corresponding to the corresponding fragment identifier.

Specifically, the transmission server stores each piece of data into the target memory specified by the corresponding storage address according to the storage address corresponding to the corresponding fragment identifier based on the correspondence between the fragment identifier and the storage address, for example, the transmission server stores the piece of data into the corresponding target memory in sequence from small to large based on the sequence number corresponding to the fragment identifier according to the correspondence between the fragment identifier and the storage address.

Step S210, generating a data transmission request based on the fragment identifier and the hash data table, and sending the data transmission request to the isolated server, so that the isolated server obtains each piece of data from the target storage based on the hash data table and the fragment identifier carried in the data transmission request.

Specifically, the transmission server generates a data transmission request carrying the hash data table and the fragment identifier based on the fragment identifier and the hash data table, and sends the data transmission request to the isolation server, so that the isolation server obtains the hash data table and the fragment identifier based on the data transmission request, and obtains corresponding pieces of data from each target storage based on the hash data table and the fragment identifier.

For example, the transmission server generates a data transmission request based on the fragment identifier and the hash data table, and sends the data transmission request to the isolation server, so that the isolation server performs information query based on the hash data table and the fragment identifier carried in the data transmission request, to respectively access the target memories corresponding to the pieces of data, and to obtain the pieces of data from the target memories.

In the power grid monitoring system data transmission method based on hash algorithm fragmentation and reassembly, the data to be transmitted is fragmented by determining storage addresses corresponding to a plurality of target memories respectively to obtain a plurality of pieces of data, each piece of data is labeled respectively to obtain fragmentation identifications corresponding to each piece of data, the fragmentation identifications and the storage addresses are in one-to-one correspondence, and an index relationship is established to obtain a hash data table; the method comprises the steps of storing each piece of data into a target memory appointed by the corresponding memory address according to the memory address corresponding to the corresponding piece identification, rapidly and accurately confirming the target memory stored with the piece of data according to a hash data table, generating a data transmission request based on the piece identification and the hash data table, and sending the data transmission request to an isolation server, so that the isolation server obtains each piece of data from the target memory based on the hash data table and the piece identification carried in the data transmission request.

In one embodiment, the slicing the data to be transmitted to obtain a plurality of pieces of data includes: acquiring the total data volume of data to be transmitted, and taking the number of target memories as the number of piece data; determining a unit data amount of each slice data based on the number of the slice data and the total data amount; and slicing the data to be transmitted according to the unit data quantity to obtain a plurality of pieces of data.

Specifically, the transmission server obtains the total data volume of the data to be transmitted and the number of the target memories respectively, the number of the target memories is used as the number of the piece of data, the transmission server divides the total data volume of the data to be transmitted by the number of the piece of data to obtain the unit data volume of each piece of data, and the transmission server divides the total data volume to be transmitted by the unit data volume to obtain a plurality of pieces of data with the same data volume.

For example, the transmission server obtains a total data volume of data to be transmitted, the total data volume is a, the number of the target memory is B, the transmission server determines that the number of the piece data is B, the total data volume to be transmitted is divided by the number of the piece data to obtain a unit data volume of each piece data as a/B, and the transmission server performs average fragmentation on the total data volume according to the unit data volume as a/B to obtain a plurality of piece data with the data volumes being a/B.

In this embodiment, the total data volume of data to be transmitted is acquired, and the number of target memories is taken as the number of pieces of data; determining a unit data amount of each slice data based on the number of the slice data and the total data amount; the data to be transmitted is fragmented through the unit data volume to obtain a plurality of fragment data, the number of the fragments at each time can be ensured to be the same, and the data volume of each obtained fragment data is the same, so that the transmission server can ensure the balanced transmission when the transmission server transmits the data by transmitting the fragment data with the same data volume, the subsequent isolation server can acquire the fragment data, the processing pressure of the isolation server is greatly reduced, and the requirement of load balance when the data is transmitted is met.

In one embodiment, the slicing the data to be transmitted to obtain a plurality of pieces of data includes: determining a preset data volume, and fragmenting data to be transmitted based on the preset data volume to obtain a plurality of pieces of data; wherein a data amount of at most one slice data among the plurality of slice data is smaller than the preset data amount.

Specifically, the transmission server determines a preset data volume based on the preset file, and fragments the data to be transmitted one by one based on the preset data volume until the remaining data volume of the remaining data to be transmitted is less than the preset data volume.

For example, the transmission server obtains a preset file, determines a preset data volume based on the preset file, performs a first time slicing on the data to be transmitted based on the preset data volume by the transmission server to obtain a first slice data and a first time residual data, compares the size of the first time residual data with the preset data volume, when the first residual data is larger than the preset data amount, the transmission server performs second fragmentation on the first residual data based on the preset data amount to obtain second fragmentation data and second residual data, performs the next iteration cycle, and taking the second residual data as the random first residual data for the next iteration, returning to the step of comparing the size of the first residual data with the preset data amount for continuous execution, stopping until the first residual data is less than or equal to the preset data amount, and acquiring a plurality of pieces of data obtained through iteration circulation.

In this embodiment, a preset data volume is determined, data to be transmitted is fragmented based on the preset data volume to obtain a plurality of pieces of data, and it can be ensured that the data volume of at most one piece of data is smaller than the preset data volume, thereby ensuring that the data volumes of the rest pieces of data are the same, ensuring balanced transmission when the server transmits data to the greatest extent, being beneficial to subsequent isolation servers, greatly reducing the processing pressure of the isolation servers, and realizing the requirement of load balance when transmitting data.

In one embodiment, the one-to-one correspondence between the fragment identifier and the storage address and establishment of an index relationship to obtain a hash table includes: carrying out hash processing on the fragment identification to obtain a mapping address corresponding to the fragment identification; and performing one-to-one association on each storage address and the fragment identifier mapping address, and storing the storage address into the associated mapping address to obtain the hash data table.

Specifically, the transmission server performs hash processing on the fragment identifier through a hash algorithm to obtain mapping addresses corresponding to the fragment identifier, associates each storage address with each mapping address corresponding to the fragment identifier one by one, establishes an index relationship between each storage address and each mapping address, and obtains a hash data table.

For example, the transmission server obtains a hash function, inputs each fragment identifier into the hash function to obtain a mapping address corresponding to the fragment identifier, and the transmission server associates each mapping address with each storage address in sequence according to the sequence of each mapping address, and stores the storage address into the associated mapping address to obtain a hash data table.

In this embodiment, the fragmentation identifier is subjected to hash processing to obtain a mapping address corresponding to the fragmentation identifier; the Hash data table is obtained by associating each storage address with the fragment identifier mapping address one by one and storing the storage address into the associated mapping address, so that the Hash data table and the fragment identifier of the isolation server can be used for acquiring each piece of data from the target memory, the subsequent isolation server can acquire each piece of data through acquiring each piece of data, the processing pressure of the isolation server is greatly reduced, and the requirement of load balance during data transmission is met.

In an embodiment, as shown in fig. 3, a method for transmitting data of a power grid monitoring system based on hash algorithm fragmentation and reassembly is provided, which is described by taking the method applied to the isolated server in fig. 1 as an example, and includes the following steps:

step S302, receiving a data transmission request, and analyzing the data transmission request to obtain a hash data table and a fragment identifier; the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain a fragmentation identifier, and establishing an index relationship between the fragmentation identifier and storage addresses respectively corresponding to a plurality of target storages.

Specifically, the isolation server receives a data transmission request, and analyzes the data transmission request to obtain a hash data table and a fragment identifier, where the hash data table is obtained by one-to-one correspondence between the fragment identifier and storage addresses corresponding to a plurality of target storages respectively and establishing an index, and the fragment identifier is obtained by performing labeling processing on a plurality of pieces of data obtained by fragmenting data to be transmitted based on the transmission server.

Step S304, based on the fragment identifier, finding the storage address corresponding to each fragment identifier from the hash data table, and based on the found storage address, obtaining the fragment data corresponding to the fragment identifier from each target storage.

Specifically, the isolation server queries, based on the fragment identifier obtained from the data transmission request, a storage address corresponding to each fragment identifier from mapping addresses in which a plurality of storage addresses are stored in the hash data table, and obtains, based on the found storage address, the piece data corresponding to the fragment identifier from each target storage.

Step S306, according to the sequence of the fragment identification corresponding to each piece of data, the plurality of pieces of data are recombined to obtain data to be transmitted, and the data to be transmitted is sent to the receiving server.

Specifically, the isolation server obtains each piece of data in each target storage, recombines the plurality of pieces of data to obtain data to be transmitted according to the sequence of the piece identification corresponding to each piece of data based on each piece identification, and sends the transmission data to the receiving server.

In an alternative embodiment, the quarantine server receives a data transmission request sent by the transmission server, obtains a hash data table and a fragment identifier from the data transmission request, determines a storage address corresponding to each piece of data from mapping addresses in the hash data table based on the fragment identifier, and acquiring the piece data corresponding to the piece identification from each target memory based on the searched memory address, determining a character label of the data to be transmitted and a sequence label of each piece data based on the piece identification by the isolation server, determining each piece data belonging to the same data to be transmitted based on the character label, determining the sequence of each piece data based on the sequence label, recombining a plurality of pieces of data of the same data to be transmitted according to the sequence labels by the isolation server to obtain the data to be transmitted, and sending the data to be transmitted to the receiving server.

In this embodiment, the isolation server receives the data transmission request, and analyzes the data transmission request to obtain the hash data table and the fragment identifier; the isolation server searches storage addresses respectively corresponding to the fragment identifications from the hash data table based on the fragment identifications, so that the storage addresses can be directly and accurately determined, and the fragment data corresponding to the fragment identifications can be directly obtained from each target storage based on the searched storage addresses; the isolation server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain data to be transmitted, and transmits the data to be transmitted to the receiving server.

In one embodiment, a method for transmitting data of a power grid monitoring system based on hash algorithm fragmentation and reassembly is performed by an isolation server, and the method further includes:

receiving a data transmission request, analyzing the data transmission request to obtain a hash data table and a fragment identifier, wherein the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data respectively to obtain the fragment identifier, and establishing an index relationship between the fragment identifier and storage addresses respectively corresponding to a plurality of target storages; based on the fragment identifier, searching storage addresses respectively corresponding to the fragment identifiers from the hash data table, and acquiring the fragment data corresponding to the fragment identifier from each target storage based on the searched storage addresses; and sending the plurality of pieces of data to a receiving server so that the receiving server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted.

Specifically, the isolation server receives a data transmission request sent by the transmission server, and parses the data transmission request to obtain a hash data table and a fragment identifier, the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain a fragment identifier, and establishing an index relationship between the fragment identifier and storage addresses respectively corresponding to a plurality of target storages, wherein the fragment identifier is obtained by labeling a plurality of pieces of data obtained by fragmenting the data to be transmitted based on the transmission server, the isolation server queries the storage addresses corresponding to the fragment identifiers from mapping addresses in which the storage addresses are stored in the hash data table based on the fragment identifier, and obtains the piece of data corresponding to the fragment identifier from each target storage based on the searched storage addresses, and sending the plurality of pieces of data to a receiving server so that the receiving server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted.

For example, the quarantine server receives a data transmission request sent by the transmission server, acquires a hash data table and a fragment identifier from the data transmission request, determines a storage address corresponding to each piece of data from mapping addresses in the hash data table based on the fragment identifier, and based on the searched memory address, acquiring the slice data corresponding to the fragment identifier from each target memory, sending the plurality of slice data to the receiving server, so that the receiving server determines each piece of data belonging to the same data to be transmitted according to the character label in the fragment identifier corresponding to each piece of data, determines the sequence of each piece of data according to the sequence label in the fragment identifier corresponding to each piece of data, the receiving server recombines a plurality of pieces of data of the same data to be transmitted according to the sequence labels to obtain the data to be transmitted.

In this embodiment, a data transmission request is received, and the data transmission request is analyzed to obtain a hash data table and a fragment identifier, where the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, and after each piece of data is respectively labeled to obtain a fragment identifier, an index relationship between the fragment identifier and storage addresses respectively corresponding to a plurality of target storages is established to obtain the hash data table; based on the fragment identifier, searching storage addresses respectively corresponding to the fragment identifiers from the hash data table, so that the storage addresses can be directly and accurately determined, and the fragment data corresponding to the fragment identifier can be acquired from each target storage based on the searched storage addresses; the method comprises the steps that a plurality of pieces of data are sent to a receiving server, so that the receiving server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted, and therefore the isolation server can greatly reduce the processing pressure of the isolation server by acquiring the pieces of data. In addition, the acquired piece data is sent to the transmission server, so that the transmission server recombines the piece data to obtain the data to be transmitted, and balanced transmission of the data between the transmission server and the receiving server is achieved.

To facilitate a clearer understanding of the technical solutions of the present application, a more detailed description of the embodiments is provided. The power grid monitoring system data transmission method based on hash algorithm fragmentation and recombination is applied to the environment shown in fig. 1. The environment shown in fig. 1 may be in an application scenario of data transmission of each area in an electric power system, where the data transmission of each area involves data transmission between a real-time control area (i.e., a first safety area) and a production management area (i.e., a third safety area), or data transmission between a non-control production area (i.e., a second safety area) and the production management area (i.e., a third safety area), where when data in the first safety area or the second safety area is transmitted to data in the third safety area, the first safety area or the second safety area serves as a data receiver, and a corresponding server is a transmission server; and the safety three area is used as a data receiving party, and the corresponding server is a receiving server. Or when the data in the first safety area or the second safety area is transmitted to the first safety area or the second safety area, the third safety area serves as a data transmission party, and the corresponding server serves as a transmission server; the first safety area or the second safety area is used as a data receiving party, and the corresponding server is a receiving server. The following process will describe the technical solution of the present application in detail with the first security zone as a data transmitter (corresponding to the server is the transmission server), and the third security zone as a data receiver (corresponding to the server is the receiving server), wherein the isolation server is used to isolate the first security zone from the second security zone.

On the aspect of a transmission server, the transmission server determines storage addresses respectively corresponding to a plurality of target storages; the transmission server acquires the total data volume of the data to be transmitted from the first safety area, takes the number of the target memory as the number of the piece data, determines the unit data volume of each piece of data based on the number of the piece data and the total data volume, and divides the data to be transmitted into pieces through the unit data to obtain a plurality of pieces of data; or the transmission server determines a preset data volume based on a preset data volume of a preset file, and fragments the data to be transmitted based on the preset data volume to obtain a plurality of fragment data, wherein the data volume of at most one fragment data in the plurality of fragment data is less than the preset data volume; the transmission server respectively marks each piece of data to obtain a piece identifier corresponding to each piece of data; the transmission server carries out hash processing on the fragment identification to obtain a mapping address corresponding to the fragment identification, and a hash data table is obtained by associating each storage address with the fragment identification mapping address one by one and storing the storage address into the associated mapping address; and the transmission server stores each piece of data into a target memory specified by the corresponding memory address according to the memory address corresponding to the corresponding fragment identifier, generates a data transmission request based on the fragment identifier and the hash data table, and sends the data transmission request to the isolation server.

In the aspect of an isolation server, the isolation server (a server side of an isolator) receives a data transmission request and analyzes the data transmission request to obtain a hash data table and fragment identifiers, wherein the hash data table is obtained by corresponding the fragment identifiers obtained by data to be transmitted to storage addresses respectively corresponding to a plurality of target storages one by one and establishing an index relation; the isolation server searches storage addresses respectively corresponding to the fragment identifications from the hash data table based on the fragment identifications, and acquires the fragment data corresponding to the fragment identifications from the target storages based on the searched storage addresses; the isolation server recombines the plurality of pieces of data according to the sequence of the fragment identifiers corresponding to the pieces of data to obtain data to be transmitted, and sends the data to be transmitted to a receiving server (a server in a second safety zone). Or, in the aspect of an isolation server, the isolation server receives a data transmission request and analyzes the data transmission request to obtain a hash data table and a fragment identifier, wherein the hash data table is obtained by corresponding the fragment identifier obtained by data to be transmitted to storage addresses respectively corresponding to a plurality of target storages one by one and establishing an index relationship; the isolation server searches storage addresses respectively corresponding to the fragment identifications from the hash data table based on the fragment identifications, and acquires the fragment data corresponding to the fragment identifications from the target storages based on the searched storage addresses; the isolation server sends the plurality of pieces of data to a receiving server (a server in a second safety zone), so that the receiving server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted.

If the directory memories are down, the target memory corresponding to the down needs to be restarted, the corresponding piece of data is obtained from the directory memories again, and the data to be transmitted is obtained through recombination again, so that the integrity of the data is ensured.

In this embodiment, a transmission server fragments a total data size of data to be transmitted in a first security zone to obtain a plurality of pieces of data, and performs label processing on each piece of data to obtain a fragment identifier corresponding to each piece of data, and performs hash processing on the fragment identifier to obtain a mapping address corresponding to the fragment identifier, and obtains a hash data table by associating each storage address with the fragment identifier mapping address one by one and storing the storage address into the associated mapping address; the transmission server stores each piece of data into a target memory appointed by the corresponding memory address according to the corresponding memory address corresponding to the corresponding fragment identifier, so that the target memory storing the piece of data can be rapidly and accurately determined according to the hash data table, a data transmission request is generated based on the fragment identifier and the hash data table and is sent to the isolation server, the isolation server obtains the hash data table and the fragment identifier by receiving the data transmission request, and each piece of data is obtained from the target server, therefore, the balanced transmission of the data from the first security zone to the isolation server is completed, so that the isolation server can recombine each piece of data to obtain the data to be transmitted and transmit the transmitted data to a receiving server corresponding to the second security zone, or the isolation server transmits each piece of data to the receiving server corresponding to the second security zone, the server can recombine a plurality of pieces of data to obtain data to be transmitted, so that the data can be transmitted to the isolation server from one safety zone in a balanced mode and transmitted to another safety zone through the isolation server, and the data can be transmitted among the safety zones in a balanced mode.

It should be understood that, although the steps in the flowcharts of fig. 2 and 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in fig. 2 and 3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.

In an embodiment, as shown in fig. 4, a power grid monitoring system data transmission device based on hash algorithm fragmentation and reassembly is provided, and is applied to a transmission server, and includes: a determination module 402, an annotation module 404, a creation module 406, a storage module 408, and a first sending module 410, wherein:

a determining module 402, configured to determine storage addresses corresponding to the plurality of target memories, respectively.

The marking module 404 is configured to fragment data to be transmitted to obtain a plurality of pieces of data, and mark each piece of data to obtain a fragment identifier corresponding to each piece of data.

The establishing module 406 is configured to perform one-to-one correspondence between the fragment identifier and the storage address and establish an index relationship, so as to obtain a hash table.

The storage module 408 is configured to store each piece of slice data into the target memory specified by the corresponding storage address according to the storage address corresponding to the corresponding fragment identifier.

The first sending module 410 is configured to generate a data transmission request based on the fragment identifier and the hash data table, and send the data transmission request to the isolated server, so that the isolated server obtains each piece of data from the target storage based on the hash data table and the fragment identifier carried in the data transmission request.

In one embodiment, the tagging module 404 is configured to obtain a total data amount of data to be transmitted, and use the amount of the target memory as the amount of the piece data; determining a unit data amount of each slice data based on the number of the slice data and the total data amount; and slicing the data to be transmitted according to the unit data quantity to obtain a plurality of pieces of data.

In an embodiment, the tagging module 404 is configured to determine a preset data amount, and segment data to be transmitted based on the preset data amount to obtain a plurality of pieces of data; wherein a data amount of at most one slice data among the plurality of slice data is smaller than the preset data amount.

In an embodiment, the establishing module 406 is configured to perform hash processing on the fragment identifier to obtain a mapping address corresponding to the fragment identifier; and performing one-to-one association on each storage address and the fragment identifier mapping address, and storing the storage address into the associated mapping address to obtain the hash data table.

In an embodiment, as shown in fig. 5, a power grid monitoring system data transmission device based on hash algorithm fragmentation and reassembly is provided, and is applied to an isolation server, and includes: a first receiving module 502, a first searching module 502, and a first restructuring module 504, wherein:

a first receiving module 502, configured to receive a data transmission request, and analyze the data transmission request to obtain a hash data table and a fragment identifier; the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain a fragmentation identifier, and establishing an index relationship between the fragmentation identifier and storage addresses respectively corresponding to a plurality of target storages.

The first searching module 502 is configured to search, based on the fragment identifier, storage addresses respectively corresponding to the fragment identifiers from the hash data table, and acquire, based on the searched storage addresses, the piece data corresponding to the fragment identifier from each target storage.

The first reassembly module 504 is configured to reassemble the multiple pieces of data according to the sequence of the fragment identifier corresponding to each piece of data to obtain data to be transmitted, and send the data to be transmitted to the receiving server.

In an embodiment, as shown in fig. 6, a power grid monitoring system data transmission device based on hash algorithm fragmentation and reassembly is provided, and is applied to an isolation server, and includes: a second receiving module 602, a second searching module 604, and a second sending module 606, wherein:

the second receiving module 602 is configured to receive a data transmission request, and analyze the data transmission request to obtain a hash data table and a fragment identifier, where the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, and after labeling each piece of data to obtain a fragment identifier, establishing an index relationship between the fragment identifier and storage addresses corresponding to a plurality of target storages, respectively.

The second searching module 604 is configured to search, based on the fragment identifier, storage addresses respectively corresponding to the fragment identifiers from the hash data table, and acquire, based on the searched storage addresses, the piece data corresponding to the fragment identifier from each target storage.

The second sending module 606 is configured to send the multiple pieces of data to the receiving server, so that the receiving server recombines the multiple pieces of data according to the sequence of the fragment identifier corresponding to each piece of data, to obtain data to be transmitted.

For specific limitations of the power grid monitoring system data transmission device based on hash algorithm fragmentation and reassembly, reference may be made to the above limitations of the power grid monitoring system data transmission method based on hash algorithm fragmentation and reassembly, which are not described herein again. All modules in the power grid monitoring system data transmission device based on hash algorithm fragmentation and recombination can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a transmission server, an isolation server, and whose internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing the data transmission data of the power grid monitoring system based on the Hash algorithm fragmentation and recombination. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination.

Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, there is provided a transport server comprising a memory and a processor, the memory having stored therein a computer program that when executed by the processor performs the steps of: determining storage addresses respectively corresponding to a plurality of target storages; the method comprises the steps of fragmenting data to be transmitted to obtain a plurality of pieces of data, and labeling each piece of data to obtain a fragmentation identification corresponding to each piece of data; carrying out one-to-one correspondence on the fragment identification and the storage address and establishing an index relation to obtain a hash data table; storing each piece of data into a target memory appointed by the corresponding storage address according to the storage address corresponding to the corresponding fragment identifier; and generating a data transmission request based on the fragment identification and the hash data table, and sending the data transmission request to an isolation server, so that the isolation server acquires each piece of data from the target memory based on the hash data table and the fragment identification carried in the data transmission request.

In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring the total data volume of data to be transmitted, and taking the number of target memories as the number of piece data; determining a unit data amount of each slice data based on the number of the slice data and the total data amount; and slicing the data to be transmitted according to the unit data quantity to obtain a plurality of pieces of data.

In one embodiment, the processor, when executing the computer program, further performs the steps of: determining a preset data volume, and fragmenting data to be transmitted based on the preset data volume to obtain a plurality of pieces of data; wherein a data amount of at most one slice data among the plurality of slice data is smaller than the preset data amount.

In one embodiment, the processor, when executing the computer program, further performs the steps of: carrying out hash processing on the fragment identification to obtain a mapping address corresponding to the fragment identification; and performing one-to-one association on each storage address and the fragment identifier mapping address, and storing the storage address into the associated mapping address to obtain the hash data table.

In one embodiment, there is provided an isolation server comprising a memory and a processor, the memory having stored therein a computer program that when executed by the processor performs the steps of: receiving a data transmission request, and analyzing the data transmission request to obtain a hash data table and a fragment identifier; the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain a fragmentation identifier, and establishing an index relationship between the fragmentation identifier and storage addresses respectively corresponding to a plurality of target storages; based on the fragment identifier, searching storage addresses respectively corresponding to the fragment identifiers from the hash data table, and acquiring the fragment data corresponding to the fragment identifier from each target storage based on the searched storage addresses; and recombining the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted, and sending the data to be transmitted to a receiving server.

In one embodiment, there is provided an isolation server comprising a memory and a processor, the memory having stored therein a computer program that when executed by the processor performs the steps of: receiving a data transmission request, analyzing the data transmission request to obtain a hash data table and a fragment identifier, wherein the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data respectively to obtain the fragment identifier, and establishing an index relationship between the fragment identifier and storage addresses respectively corresponding to a plurality of target storages; based on the fragment identifier, searching storage addresses respectively corresponding to the fragment identifiers from the hash data table, and acquiring the fragment data corresponding to the fragment identifier from each target storage based on the searched storage addresses; and sending the plurality of pieces of data to a receiving server so that the receiving server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: determining storage addresses respectively corresponding to a plurality of target storages; the method comprises the steps of fragmenting data to be transmitted to obtain a plurality of pieces of data, and labeling each piece of data to obtain a fragmentation identification corresponding to each piece of data; carrying out one-to-one correspondence on the fragment identification and the storage address and establishing an index relation to obtain a hash data table; storing each piece of data into a target memory appointed by the corresponding storage address according to the storage address corresponding to the corresponding fragment identifier; and generating a data transmission request based on the fragment identification and the hash data table, and sending the data transmission request to an isolation server, so that the isolation server acquires each piece of data from the target memory based on the hash data table and the fragment identification carried in the data transmission request.

In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the total data volume of data to be transmitted, and taking the number of target memories as the number of piece data; determining a unit data amount of each slice data based on the number of the slice data and the total data amount; and slicing the data to be transmitted according to the unit data quantity to obtain a plurality of pieces of data.

In one embodiment, the computer program when executed by the processor further performs the steps of: determining a preset data volume, and fragmenting data to be transmitted based on the preset data volume to obtain a plurality of pieces of data; wherein a data amount of at most one slice data among the plurality of slice data is smaller than the preset data amount.

In one embodiment, the computer program when executed by the processor further performs the steps of: carrying out hash processing on the fragment identification to obtain a mapping address corresponding to the fragment identification; and performing one-to-one association on each storage address and the fragment identifier mapping address, and storing the storage address into the associated mapping address to obtain the hash data table.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a data transmission request, and analyzing the data transmission request to obtain a hash data table and a fragment identifier; the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data to obtain a fragmentation identifier, and establishing an index relationship between the fragmentation identifier and storage addresses respectively corresponding to a plurality of target storages; based on the fragment identifier, searching storage addresses respectively corresponding to the fragment identifiers from the hash data table, and acquiring the fragment data corresponding to the fragment identifier from each target storage based on the searched storage addresses; and recombining the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted, and sending the data to be transmitted to a receiving server.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a data transmission request, analyzing the data transmission request to obtain a hash data table and a fragment identifier, wherein the hash data table is obtained by fragmenting data to be transmitted to obtain a plurality of pieces of data, labeling each piece of data respectively to obtain the fragment identifier, and establishing an index relationship between the fragment identifier and storage addresses respectively corresponding to a plurality of target storages; based on the fragment identifier, searching storage addresses respectively corresponding to the fragment identifiers from the hash data table, and acquiring the fragment data corresponding to the fragment identifier from each target storage based on the searched storage addresses; and sending the plurality of pieces of data to a receiving server so that the receiving server recombines the plurality of pieces of data according to the sequence of the fragment identifications corresponding to the pieces of data to obtain the data to be transmitted.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种频差估计方法、FPGA及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!