CN113852662A - Edge cloud distributed storage framework and method based on alliance chain - Google Patents

Edge cloud distributed storage framework and method based on alliance chain Download PDF

Info

Publication number
CN113852662A
CN113852662A CN202110903916.8A CN202110903916A CN113852662A CN 113852662 A CN113852662 A CN 113852662A CN 202110903916 A CN202110903916 A CN 202110903916A CN 113852662 A CN113852662 A CN 113852662A
Authority
CN
China
Prior art keywords
node
nodes
file
edge cloud
chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110903916.8A
Other languages
Chinese (zh)
Other versions
CN113852662B (en
Inventor
周芸
刘伟
雷霰霆
武兵
叶贞丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huashu Cloud Technology Co ltd
Original Assignee
Huashu Cloud Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huashu Cloud Technology Co ltd filed Critical Huashu Cloud Technology Co ltd
Priority to CN202110903916.8A priority Critical patent/CN113852662B/en
Publication of CN113852662A publication Critical patent/CN113852662A/en
Application granted granted Critical
Publication of CN113852662B publication Critical patent/CN113852662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an edge cloud distributed storage framework and a method based on a coalition chain, and aims to solve the storage problem of coalition chain nodes about large files, wherein a coalition chain system comprises a main chain, a data side chain, coalition chain accounting nodes deployed on the edge cloud nodes and consensus nodes deployed at the cloud end, and meanwhile edge end nodes are subjected to region grouping, so that the data distribution efficiency and the retrieval efficiency are improved; the invention ensures the data security by using the non-tamper property of the alliance chain, and reduces the requirement of the alliance chain on storage resources by using a multi-chain structure.

Description

Edge cloud distributed storage framework and method based on alliance chain
Technical Field
The invention relates to the field of big data, in particular to an edge cloud distributed storage framework and a method based on a federation chain.
Background
The block chain is used as an enabling technology of value transmission, has the characteristics of decentralization, no tampering, openness and transparency, whole-course tracing, safety and privacy and the like, and as the state vigorously pushes the sustainable development of the block chain technology, the block chain technology is gradually constructing a decentralization, self-organization and data sharing credible infrastructure to remold the existing Internet application and traditional industry.
Wherein the federation chains in the chunk chain are suitable for use in a business scenario. Although the alliance chain integrates many technical advantages in the block chain technology, in the conventional technology, each node in the alliance chain system needs to synchronize complete account book data in real time; this model creates a large amount of redundant data, which consumes a large amount of storage resources as the amount of data storage in the federation chain increases and the amount of data manipulation increases. In order to solve the situation of large data redundancy, the conventional method for introducing the alliance chain technology at present is that only fingerprint abstract information of data is stored on an alliance chain, and original data is stored through centralized storage facilities such as Mysql and oss. Through the method, although the situation of data redundancy is relieved to a certain extent, for a large amount of block chain data, data redundancy can be caused even though only fingerprint abstract information of the data is reserved, and storage resources are greatly consumed; on the other hand, the original data on the storage facility and the data on the alliance chain have the condition that the data cannot be anchored, so that the safety and the reliability of data storage are greatly reduced. There is therefore a need for a storage structure and method that mitigates federation chain data redundancy.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides an edge cloud distributed storage framework and a method based on a federation chain.
In order to solve the problems, the invention adopts the following technical scheme:
an edge cloud distributed storage framework based on a federation chain comprises a central cloud consensus node, edge cloud nodes, a main chain and federation chain middleware; the edge cloud nodes are in communication connection with the central cloud consensus node, and the edge cloud nodes are also in communication connection with each other; the nodes are in communication connection through a main chain; and the alliance chain middleware is in communication connection with the external equipment, the central cloud consensus node and the edge cloud node respectively.
Further, the main chain is used for realizing data transmission among the nodes; the central cloud consensus node is a central cloud Raft consensus node cluster adopting a Raft consensus algorithm; the central cloud consensus node has the functions of transaction sequencing, block forming by packaging and block distribution, and is used for ensuring the consistency of data main chains among the nodes.
Furthermore, the edge cloud nodes are edge node accounting clusters, and the edge cloud nodes are distributed according to regions; the edge cloud nodes comprise leader nodes, anchor nodes, endorsement nodes and peer nodes; the leader node is in communication connection with the central cloud consensus node, and is used for performing information interaction with the central cloud consensus node, acquiring information stored in the central cloud consensus node and transmitting the information to other nodes in the edge cloud nodes; the anchor node is used for realizing information interaction among different edge cloud nodes; the endorsement node is used for realizing the operation of the intelligent contract and the transaction endorsement; the peer node is a common node.
Further, the alliance chain middleware comprises a transaction processing module, a data processing module and a position processing module; the transaction processing module records transaction data in the alliance chain; the data processing module is used for processing the flow direction of data; the position processing module is used for acquiring position information which comprises external equipment connected with the alliance chain middleware and the position of a central cloud consensus node or an edge cloud node; and the external equipment connected with the alliance chain middleware comprises Internet of things equipment, intelligent equipment and a personal computer.
An edge cloud distributed storage method based on a federation chain comprises the following steps:
step 11: the external device initiates a large file storage request through the alliance chain middleware;
step 12: a file storage request is received by the alliance chain middleware system; the data processing module of the alliance chain middleware system completes the block processing of the file; meanwhile, a position processing module of the alliance chain middleware system judges the endorsement node position in the edge cloud node for storing information according to the geographical position information of the external device sending the storage request;
step 13: the endorsement node receives a transaction proposal and a file block transmitted by the alliance chain middleware system;
step 14: according to a transaction proposal, the endorsement node distributes file blocks to endorsement nodes of edge cloud nodes in the same region through a P2P network for storage, and records node information of the stored file blocks;
step 15: the endorsement node runs an intelligent contract and carries out transaction proposal simulation execution according to the intelligent contract; writing the execution result and the node information of the stored file block into the transaction proposal together, and endorsing the transaction proposal; returning the transaction proposal to the federation chain middleware;
step 16: the alliance chain middleware receives a transaction proposal for completing endorsement, and a transaction processing module in the alliance chain middleware uploads the endorsed transaction proposal to a central cloud consensus node;
and step 17: the central cloud consensus node performs transaction sequencing and block generation through a Raft consensus algorithm;
step 18: the central cloud consensus node performs block broadcasting in the alliance chain;
step 19: a leader node in the edge cloud node receives the block broadcast information, acquires a corresponding block, analyzes the block and verifies the transaction; after the verification is passed, the world state of the alliance chain is updated;
step 110: synchronizing the block to the leader nodes of other edge cloud nodes in the same region by the leader node;
step 111: analyzing the block by other leader nodes in the same area, and verifying the transaction; updating the local world state after verification is completed; and finishing the step.
Further, the processing of the file by the data processing module in step 12 includes the following steps:
step 121: obtaining the data size of a file;
step 122: according to the relation between the file size and a set value, completing the blocking processing of the file blocks;
in step 122, if the size of the file is smaller than a set value, the file is not split; otherwise, splitting the file.
Further, in step 12, the position processing module selects a position of an endorsement node closest to the external device as the endorsement node.
An edge cloud distributed reading method based on a federation chain comprises the following steps:
step 21: the external device initiates a large file reading request through the alliance chain middleware;
step 22: the geographic position module of the alliance chain middleware calculates the geographic position of the external equipment sending the request and forwards the request to the edge cloud node meeting the distance requirement;
step 23: the edge cloud node receives the request and judges whether relevant file blocks are stored locally or not; if not, searching whether the nodes in the same region have related file blocks; if no related file block exists in the edge cloud node cluster of the same region, analyzing the related block in the block chain, acquiring a file block storage address, forwarding a request to a remote storage address to acquire the related file block, and caching the related file block locally;
step 24: the edge cloud node integrates the addresses of the file blocks stored in the edge cloud node, and transmits the address information serving as a request result back to the alliance chain middleware;
step 25: the alliance chain middleware transmits the request result to the external device;
step 26: and the external equipment respectively acquires the file blocks according to the storage addresses in the request result, assembles the file blocks into a complete file and finishes the step.
Further, the distance requirement in step 22 is an edge cloud node closest to the external device.
The invention has the beneficial effects that:
by grouping the edge cloud nodes according to regions, the problem that a data request link is too long is solved, a path between file storage and acquisition is shortened, a user can acquire required content nearby, network congestion is reduced, the access response speed and the hit rate of the user are improved, and the effect of a content distribution network is realized;
files are stored to the nearest edge cloud node in a blocking mode through calculating the distance, transmission loss is saved, and data distribution efficiency and retrieval efficiency are improved;
by grouping the regions of the nodes, the problem of overlong request link is solved, and the file storage and the acquired path are shortest;
the data are stored in the alliance chain, so that the safety of the data is guaranteed, and the requirement of the alliance chain on storage resources is reduced by utilizing a multi-chain structure;
by storing the files in blocks, the same file blocks are only referred by an address reference mode, and compared with the situation that the files are repeatedly stored at different addresses, the redundancy of file data is avoided;
by writing the address information related to the file blocks into the transaction and carrying out Hash addressing on the file contents instead of address addressing of the files, real-time anchoring of data can be realized, and the safety of block chain data is improved.
Drawings
FIG. 1 is a schematic structural diagram of a storage frame according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a storage method according to a first embodiment of the present invention;
FIG. 3 is a block flow diagram of a file according to a first embodiment of the present invention;
fig. 4 is a flowchart of a reading method according to a first embodiment of the invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
The first embodiment is as follows:
as shown in fig. 1, an edge cloud distributed storage framework based on a federation chain includes a central cloud consensus node, edge cloud nodes, a main chain, and federation chain middleware; the edge cloud nodes are in communication connection with the central cloud consensus node, and the edge cloud nodes are also in communication connection with each other; the nodes are in communication connection through a main chain; and the alliance chain middleware is in communication connection with the external equipment, the central cloud consensus node and the edge cloud node respectively.
The main chain is used for realizing data transmission among all the nodes.
The central cloud consensus node is a central cloud Raft consensus node cluster adopting a Raft consensus algorithm, has the functions of transaction sequencing, block forming by packaging, block distribution and the like, and is used for ensuring the consistency of a data main chain among nodes.
The edge cloud nodes are edge node accounting clusters, in the example, the edge cloud nodes are distributed according to regions, and the edge cloud nodes comprise leader nodes, anchor nodes, endorsement nodes and peer nodes. The leader node is in communication connection with the central cloud consensus node, and the leader node is used for performing information interaction with the central cloud consensus node, acquiring information stored in the central cloud consensus node, and transmitting the information to other nodes in the edge cloud nodes. The anchor node is used for realizing information interaction among different edge cloud nodes. The endorsement node is used for realizing the operation of the intelligent contract and transaction endorsement. The peer node is a common node.
The alliance chain middleware comprises a transaction processing module, a data processing module, a position processing module and the like; the transaction processing module records transaction data in the alliance chain; the data processing module is used for processing the flow direction of data; the position processing module is used for acquiring position information including positions of external equipment connected with the alliance chain middleware and a central cloud consensus node or an edge cloud node. The alliance chain middleware is connected with external equipment, and the external equipment comprises Internet of things equipment, intelligent equipment, a personal computer and the like.
In the implementation process, the edge cloud nodes are grouped according to regions, so that the problem of overlong data request links is solved, the paths between file storage and acquisition are shortened, a user can acquire required content nearby, network congestion is reduced, the access response speed and the hit rate of the user are improved, and the effect of a content distribution network is realized.
As shown in fig. 2, an edge cloud distributed storage method based on a federation chain includes the following steps:
step 11: the external device initiates a large file storage request through the alliance chain middleware;
step 12: a file storage request is received by the alliance chain middleware system; the data processing module of the alliance chain middleware system completes the processing of the file according to the size of the file; meanwhile, a position processing module of the alliance chain middleware system judges the endorsement node position in the edge cloud node for storing information according to the geographical position information of the external device sending the storage request; in the example, the coalition chain middleware system caches the geographic position of the edge cloud node in the coalition chain in advance;
step 13: the endorsement node receives a transaction proposal and a file block transmitted by the alliance chain middleware system;
step 14: according to a transaction proposal, the endorsement node distributes file blocks to endorsement nodes of edge cloud nodes in the same region through a P2P network for storage, and records node information including position information, in which the file blocks are stored;
step 15: the endorsement node runs an intelligent contract and carries out transaction proposal simulation execution according to the intelligent contract; writing the execution result and the node information of the stored file block into the transaction proposal together, and endorsing the transaction proposal; returning the transaction proposal to the federation chain middleware;
step 16: the alliance chain middleware receives a transaction proposal for completing endorsement, and a transaction processing module in the alliance chain middleware uploads the endorsed transaction proposal to a central cloud consensus node;
and step 17: the central cloud consensus node performs transaction sequencing and block generation through a Raft consensus algorithm;
step 18: the central cloud consensus node performs block broadcasting in the alliance chain;
step 19: a leader node in the edge cloud node receives the block broadcast information, acquires a corresponding block, analyzes the block and verifies the transaction; after the verification is passed, the world state of the alliance chain is updated;
step 110: synchronizing the block to the leader nodes of other edge cloud nodes in the same region by the leader node;
step 111: analyzing the block by other leader nodes in the same area, and verifying the transaction; updating the local world state after verification is completed; and finishing the step.
The external devices in the step 11 include internet of things devices, intelligent devices, personal computers and the like.
The processing of the file by the data processing module in the step 12 comprises the following steps:
step 121: obtaining the data size of a file;
step 122: and finishing the blocking processing of the file blocks according to the relationship between the file size and the set value.
As shown in fig. 3, in step 122, if the size of the file is smaller than the set value, in this example, the set value is 128KB, the file is not split, the complete file is directly used as a file block, and a Hash in the file content is calculated by a Hash (file).
If the size of the file exceeds a set value, in this example the set value is 128KB, then the file is split to obtain file blocks, as shown in the following equation:
Figure BDA0003200943350000061
n=Size(file)/128,r=Size(file)Mod128
wherein size (file) represents the file size; r represents the remainder of the file size from the set value, which in this example is 128. After the file is divided into blocks, performing Hash operation on each file block Hash (block), as shown in the following formula:
Figure BDA0003200943350000071
wherein, Hash (block n) represents the nth file block; hash (file) represents the result obtained after all file blocks after file splitting are subjected to Hash operation.
In step 12, the position processing module selects the position of the endorsement node closest to the external device as the endorsement node, where the distance between the endorsement node and the external device is calculated as follows:
Figure BDA0003200943350000074
Δβ=π(lng A-lng B)/180
Figure BDA0003200943350000072
Figure BDA0003200943350000073
wherein S represents the distance between the endorsement node and the external equipment; r represents the radius of the earth, in this example the value of R is 6400 km; (lng A, lat A) represents longitude and latitude coordinates of the external device; (lng B, lat B) represents the latitude and longitude coordinates of the endorsement node.
In step 14, the regions of the endorsement nodes are divided in advance, and the endorsement nodes in the same region represent endorsement nodes divided in the same block region.
The intelligent contract in step 15 is a trade intelligent contract set in the federation chain.
As shown in fig. 4, an edge cloud distributed reading method based on a federation chain includes the following steps:
step 21: the external device initiates a large file reading request through the alliance chain middleware;
step 22: the geographic position module of the alliance chain middleware calculates the geographic position of the external equipment sending the request and forwards the request to the edge cloud node meeting the distance requirement;
step 23: the edge cloud node receives the request and judges whether relevant file blocks are stored locally or not; if not, searching whether the nodes in the same region have related file blocks; if no related file block exists in the edge cloud node cluster of the same region, analyzing the related block in the block chain, acquiring a file block storage address, forwarding a request to a remote storage address to acquire the related file block, and caching the related file block locally;
step 24: the edge cloud node integrates the addresses of the file blocks stored in the edge cloud node, and transmits the address information serving as a request result back to the alliance chain middleware;
step 25: the alliance chain middleware transmits the request result to the external device;
step 26: and the external equipment respectively acquires the file blocks according to the storage addresses in the request result, assembles the file blocks into a complete file and finishes the step.
The external devices in step 21 include internet of things devices, intelligent devices, personal computers and the like.
The distance requirement in step 22 is the edge cloud node closest to the external device.
In the implementation process, files are stored to the nearest edge cloud node in blocks by calculating the distance, so that transmission loss is saved, and data distribution efficiency and retrieval efficiency are improved; by grouping the regions of the nodes, the problem of overlong request link is solved, and the file storage and the acquired path are shortest; the data are stored in the alliance chain, so that the safety of the data is guaranteed, and the requirement of the alliance chain on storage resources is reduced by utilizing a multi-chain structure; by storing the files in blocks, the same file blocks are only referred by an address reference mode, and compared with the situation that the files are repeatedly stored at different addresses, the redundancy of file data is avoided; the related information of the file blocks is written into the transaction, and the Hash addressing of the file contents is carried out instead of the address addressing of the file, so that the real-time anchoring of the data can be realized, and the safety of the block chain data is improved.
The above description is only one specific example of the present invention and should not be construed as limiting the invention in any way. It will be apparent to persons skilled in the relevant art(s) that, having the benefit of this disclosure and its principles, various modifications and changes in form and detail can be made without departing from the principles and structures of the invention, which are, however, encompassed by the appended claims.

Claims (9)

1. An edge cloud distributed storage framework based on a federation chain is characterized by comprising a central cloud consensus node, edge cloud nodes, a main chain and federation chain middleware; the edge cloud nodes are in communication connection with the central cloud consensus node, and the edge cloud nodes are also in communication connection with each other; the nodes are in communication connection through a main chain; and the alliance chain middleware is in communication connection with the external equipment, the central cloud consensus node and the edge cloud node respectively.
2. A federation chain-based edge cloud distributed storage framework in accordance with claim 1, wherein the backbone is used to enable data transfer between nodes; the central cloud consensus node is a central cloud Raft consensus node cluster adopting a Raft consensus algorithm; the central cloud consensus node has the functions of transaction sequencing, block forming by packaging and block distribution, and is used for ensuring the consistency of data main chains among the nodes.
3. The federation chain-based edge cloud distributed storage framework of claim 1, wherein the edge cloud nodes are edge node accounting clusters, the edge cloud nodes being distributed according to geography; the edge cloud nodes comprise leader nodes, anchor nodes, endorsement nodes and peer nodes; the leader node is in communication connection with the central cloud consensus node, and is used for performing information interaction with the central cloud consensus node, acquiring information stored in the central cloud consensus node and transmitting the information to other nodes in the edge cloud nodes; the anchor node is used for realizing information interaction among different edge cloud nodes; the endorsement node is used for realizing the operation of the intelligent contract and the transaction endorsement; the peer node is a common node.
4. A federation chain-based edge cloud distributed storage framework according to claim 1, wherein the federation chain middleware comprises a transaction processing module, a data processing module and a location processing module; the transaction processing module records transaction data in the alliance chain; the data processing module is used for processing the flow direction of data; the position processing module is used for acquiring position information which comprises external equipment connected with the alliance chain middleware and the position of a central cloud consensus node or an edge cloud node; and the external equipment connected with the alliance chain middleware comprises Internet of things equipment, intelligent equipment and a personal computer.
5. An edge cloud distributed storage method based on a federation chain is characterized by comprising the following steps:
step 11: the external device initiates a large file storage request through the alliance chain middleware;
step 12: a file storage request is received by the alliance chain middleware system; the data processing module of the alliance chain middleware system completes the block processing of the file; meanwhile, a position processing module of the alliance chain middleware system judges the endorsement node position in the edge cloud node for storing information according to the geographical position information of the external device sending the storage request;
step 13: the endorsement node receives a transaction proposal and a file block transmitted by the alliance chain middleware system;
step 14: according to a transaction proposal, the endorsement node distributes file blocks to endorsement nodes of edge cloud nodes in the same region through a P2P network for storage, and records node information of the stored file blocks;
step 15: the endorsement node runs an intelligent contract and carries out transaction proposal simulation execution according to the intelligent contract; writing the execution result and the node information of the stored file block into the transaction proposal together, and endorsing the transaction proposal; returning the transaction proposal to the federation chain middleware;
step 16: the alliance chain middleware receives a transaction proposal for completing endorsement, and a transaction processing module in the alliance chain middleware uploads the endorsed transaction proposal to a central cloud consensus node;
and step 17: the central cloud consensus node performs transaction sequencing and block generation through a Raft consensus algorithm;
step 18: the central cloud consensus node performs block broadcasting in the alliance chain;
step 19: a leader node in the edge cloud node receives the block broadcast information, acquires a corresponding block, analyzes the block and verifies the transaction; after the verification is passed, the world state of the alliance chain is updated;
step 110: synchronizing the block to the leader nodes of other edge cloud nodes in the same region by the leader node;
step 111: analyzing the block by other leader nodes in the same area, and verifying the transaction; updating the local world state after verification is completed; and finishing the step.
6. A federation chain-based edge cloud distributed storage method according to claim 5, wherein the processing of the file by the data processing module in the step 12 comprises the following steps:
step 121: obtaining the data size of a file;
step 122: according to the relation between the file size and a set value, completing the blocking processing of the file blocks;
in step 122, if the size of the file is smaller than a set value, the file is not split; otherwise, splitting the file.
7. The edge cloud distributed storage method based on federation chain of claim 5, wherein in step 12, the location processing module selects the endorsement node location closest to the external device as the endorsement node.
8. An edge cloud distributed reading method based on a federation chain is characterized by comprising the following steps:
step 21: the external device initiates a large file reading request through the alliance chain middleware;
step 22: the geographic position module of the alliance chain middleware calculates the geographic position of the external equipment sending the request and forwards the request to the edge cloud node meeting the distance requirement;
step 23: the edge cloud node receives the request and judges whether relevant file blocks are stored locally or not; if not, searching whether the nodes in the same region have related file blocks; if no related file block exists in the edge cloud node cluster of the same region, analyzing the related block in the block chain, acquiring a file block storage address, forwarding a request to a remote storage address to acquire the related file block, and caching the related file block locally;
step 24: the edge cloud node integrates the addresses of the file blocks stored in the edge cloud node, and transmits the address information serving as a request result back to the alliance chain middleware;
step 25: the alliance chain middleware transmits the request result to the external device;
step 26: and the external equipment respectively acquires the file blocks according to the storage addresses in the request result, assembles the file blocks into a complete file and finishes the step.
9. The federation chain-based edge cloud distributed reading method of claim 8, wherein the distance requirement in step 22 is an edge cloud node closest to the external device.
CN202110903916.8A 2021-08-06 2021-08-06 Edge cloud distributed storage system and method based on alliance chain Active CN113852662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110903916.8A CN113852662B (en) 2021-08-06 2021-08-06 Edge cloud distributed storage system and method based on alliance chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110903916.8A CN113852662B (en) 2021-08-06 2021-08-06 Edge cloud distributed storage system and method based on alliance chain

Publications (2)

Publication Number Publication Date
CN113852662A true CN113852662A (en) 2021-12-28
CN113852662B CN113852662B (en) 2023-09-26

Family

ID=78975637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110903916.8A Active CN113852662B (en) 2021-08-06 2021-08-06 Edge cloud distributed storage system and method based on alliance chain

Country Status (1)

Country Link
CN (1) CN113852662B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115391098A (en) * 2022-08-25 2022-11-25 北京有竹居网络技术有限公司 Big data analysis method and device, edge node and cloud server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190213182A1 (en) * 2018-01-05 2019-07-11 Telia Company Ab Method and a node for storage of data in a network
CN110213737A (en) * 2019-05-23 2019-09-06 广西大学 The method for establishing body area network Information Security Mechanism based on alliance's chain
CN110543788A (en) * 2019-09-11 2019-12-06 腾讯科技(深圳)有限公司 Data storage method, data storage device, computer-readable storage medium and computer equipment
CN110599181A (en) * 2019-09-26 2019-12-20 腾讯科技(深圳)有限公司 Data processing method, device and equipment based on block chain and storage medium
CN111866086A (en) * 2020-06-28 2020-10-30 青岛万民科技有限公司 Block chain control method and system based on cloud edge
CN111901350A (en) * 2020-07-30 2020-11-06 平安科技(深圳)有限公司 Block chain system, data processing method, computer device and storage medium
CN112329073A (en) * 2021-01-05 2021-02-05 腾讯科技(深圳)有限公司 Distributed data processing method, device, computer equipment and storage medium
CN112968942A (en) * 2021-01-29 2021-06-15 南京邮电大学 Block chain data safety storage frame and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190213182A1 (en) * 2018-01-05 2019-07-11 Telia Company Ab Method and a node for storage of data in a network
CN110213737A (en) * 2019-05-23 2019-09-06 广西大学 The method for establishing body area network Information Security Mechanism based on alliance's chain
CN110543788A (en) * 2019-09-11 2019-12-06 腾讯科技(深圳)有限公司 Data storage method, data storage device, computer-readable storage medium and computer equipment
CN110599181A (en) * 2019-09-26 2019-12-20 腾讯科技(深圳)有限公司 Data processing method, device and equipment based on block chain and storage medium
CN111866086A (en) * 2020-06-28 2020-10-30 青岛万民科技有限公司 Block chain control method and system based on cloud edge
CN111901350A (en) * 2020-07-30 2020-11-06 平安科技(深圳)有限公司 Block chain system, data processing method, computer device and storage medium
CN112329073A (en) * 2021-01-05 2021-02-05 腾讯科技(深圳)有限公司 Distributed data processing method, device, computer equipment and storage medium
CN112968942A (en) * 2021-01-29 2021-06-15 南京邮电大学 Block chain data safety storage frame and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MA ZHAOFENG; WANG XIAOCHANG; DEEPAK KUMAR JAIN; HANEEF KHAN; GAO HONGMIN; WANG ZHEN: "A Blockchain-Based Trusted Data Management Scheme in Edge Computing", 《IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS》 *
曾诗钦: "区块链技术研究综述:原理、进展与应用", 《通信学报》 *
邵奇峰: "区块链技术:架构及进展", 《计算机学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115391098A (en) * 2022-08-25 2022-11-25 北京有竹居网络技术有限公司 Big data analysis method and device, edge node and cloud server

Also Published As

Publication number Publication date
CN113852662B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
WO2018223995A1 (en) Method, device and system for cross-chain communication in blockchains
US11995730B2 (en) System and method for providing digital reality experiences and decentralized transactions of real estate projects
Townsend Wired/unwired: The urban geography of digital networks
CN105808634A (en) Distributed map reduce network
CN109146490A (en) block generation method, device and system
CN106465053A (en) Courier network
CN101370025A (en) Storing method, scheduling method and management system for geographic information data
ES2937818T3 (en) Machine learning systems and methods for placing data in distributed storage
CN108197159A (en) Digital independent, wiring method and device based on distributed file system
CN106462462A (en) Traveling map-reduce architecture
CN113852662A (en) Edge cloud distributed storage framework and method based on alliance chain
WO2020243354A1 (en) Systems and methods for secure, low bandwidth replicated virtual worlds for shared space computing enabling vehicle flocking
Lai et al. CASQ: Adaptive and cloud-assisted query processing in vehicular sensor networks
CN107181774A (en) Data movement between distributive data center
CN107003981A (en) It is synchronous with the equipment locally matched to obtain data from remote server using point to point link
CN101881621A (en) Omnibearing security and real-time navigation system supporting source sharing
CN114500428A (en) Navigation sharing method and device, electronic equipment, storage medium and program product
CN103294459B (en) Map control generates method and apparatus
Larson Network-centric digital development in Korea: Origins, growth and prospects
CN110517401A (en) A kind of ballot statistical method of panorama block chain
Winseck Submarine telegraphs, telegraph news, and the global financial crisis of 1873
Cui et al. Bsela: A blockchain simulator with event-layered architecture
CN113487041A (en) Horizontal federal learning method, device and storage medium
CN114785776A (en) Block chain-based clearing system and block chain-based clearing method
Han et al. Cognitive context-aware distributed storage optimization in mobile cloud computing: A stable matching based approach

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant