CN115086336A - Industrial Internet platform equipment data acquisition driving P2P downloading method and system - Google Patents
Industrial Internet platform equipment data acquisition driving P2P downloading method and system Download PDFInfo
- Publication number
- CN115086336A CN115086336A CN202210650665.1A CN202210650665A CN115086336A CN 115086336 A CN115086336 A CN 115086336A CN 202210650665 A CN202210650665 A CN 202210650665A CN 115086336 A CN115086336 A CN 115086336A
- Authority
- CN
- China
- Prior art keywords
- service
- gateway
- downloading
- edge
- file
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000002159 abnormal effect Effects 0.000 claims description 10
- 238000004891 communication Methods 0.000 claims description 10
- 238000013480 data collection Methods 0.000 claims description 9
- 101100328518 Caenorhabditis elegans cnt-1 gene Proteins 0.000 claims description 6
- 101150044602 Slc28a2 gene Proteins 0.000 claims description 6
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 230000004913 activation Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 5
- 238000004519 manufacturing process Methods 0.000 description 5
- 230000005856 abnormality Effects 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a system for downloading a data acquisition driver P2P of an industrial Internet platform device. The method comprises the following steps: establishing a network deployment architecture of a cloud platform and an edge gateway: establishing an edge side enterprise P2P center cluster, determining an edge gateway center service list and an alternative center service gateway list of an enterprise, and determining an edge gateway center service master node and an alternative node; the edge gateway center service periodically synchronizes cloud edge information; formulating a file downloading strategy, wherein the file downloading strategy comprises one or any combination of P2P single-node downloading, P2P multi-node combined downloading and P2P cloud combined downloading; and starting the P2P service, and downloading the file according to the downloading strategy. The method establishes local distributed P2P center service according to enterprises, accelerates file downloading by using a local area network, improves drive downloading efficiency, and improves implementation efficiency of equipment acquisition projects.
Description
Technical Field
The invention relates to the field of industrial internet platform data acquisition, in particular to a method and a system for downloading an industrial internet platform equipment data acquisition driver P2P.
Background
The industrial internet platform is an industrial cloud platform which faces the digital, networking and intelligent requirements of the manufacturing industry, constructs a service system based on mass data acquisition, aggregation and analysis, and supports ubiquitous connection, flexible supply and efficient configuration of manufacturing resources.
Therefore, the timeliness and integrity of data transmission on the industrial internet platform are very important, which relates to the problem of the drive download of production equipment data and controller data acquisition in the industrial internet platform. At present, most of the drive files are downloaded through a cloud server so as to realize the downloading of production equipment data and controller data. However, there are many disadvantages, such as the load of the cloud end network is too large; the local area network cannot be fully utilized to accelerate file downloading; the cloud service abnormity can cause the problem that the driver cannot be downloaded, so that the downloading of the production equipment data and the controller data is lack of timeliness, integrity and accuracy.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a method and a system for downloading the data acquisition driver P2P of the industrial Internet platform equipment.
In order to achieve the above object, the present invention provides a method for downloading a data collection driver P2P of an industrial internet platform device, comprising the following steps:
establishing a network deployment architecture of a cloud platform and an edge gateway: the network connection of each edge gateway in each enterprise is opened, so that the edge gateway of each enterprise can access the cloud platform center server and the file server; the central server is used for storing information of each edge gateway and constructing P2P service basic information; the file server is used for storing the drive file;
establishing an edge side enterprise P2P center cluster, determining an edge gateway center service list and an alternative center service gateway list of an enterprise, and determining an edge gateway center service master node and an alternative node;
the edge gateway center service periodically synchronizes cloud edge information;
formulating a file downloading strategy, wherein the file downloading strategy comprises one or any combination of P2P single-node downloading, P2P multi-node combined downloading and P2P cloud combined downloading;
and starting the P2P service, and downloading the file according to the downloading strategy.
The method establishes local distributed P2P center service according to enterprises, accelerates file downloading by using a local area network, improves drive downloading efficiency, and improves implementation efficiency of equipment acquisition projects.
The preferred scheme of the downloading method of the industrial Internet platform equipment data acquisition driver P2P is as follows: the steps of establishing the edge side enterprise P2P center cluster are as follows:
step one, enterprises deploy respective edge gateways to automatically connect with a central server for activation;
step two, the central service determines an edge gateway central service cluster list and an alternative central service gateway list, and issues the lists to each edge gateway of an enterprise;
detecting the configuration of the edge gateway center service cluster, and selecting a main node and an alternative node of the edge gateway center service cluster;
step four, switching the edge gateway center service cluster nodes to update the edge gateway center service cluster information;
and step five, after the edge gateway center service cluster information is updated, the edge gateway center service cluster sends broadcast information to the local area network gateways of the enterprises, and each gateway updates and stores the private network center service, the alternative service and the gateway list acquired from the cloud service.
The optimal scheme ensures the data consistency of the cloud platform and the edge service, and improves the accuracy of the edge data and the data downloading synchronization efficiency.
The preferred scheme of the downloading method of the industrial Internet platform equipment data acquisition driver P2P is as follows: the second step comprises the following specific steps:
when the number n < ═ k1 of edge gateways of an enterprise, directly appointing all the gateways to serve an edge gateway center;
when n > k1, the first registered k2 edge gateways are designated to serve the edge gateway center; the edge gateway with the registration sequence of 4-k2 is an alternative center service gateway, both k1 and k2 are positive integers, and k1 is less than k 2;
and issuing the edge gateway center service list, the alternative center service gateway list and the complete gateway list to each edge gateway device of the enterprise.
The preferred scheme can quickly determine the edge gateway central service cluster list and the alternative central service gateway list and send the lists to each edge gateway of an enterprise.
The preferred scheme of the downloading method of the industrial Internet platform equipment data acquisition driver P2P is as follows: the third step comprises the following specific steps:
the edge gateway center service receives the configuration issued by the cloud service;
starting the edge gateway center service, and initiating voting by the edge gateway center service; if the current starting service is alpha, and alpha is greater than 0, voting is carried out on the service nodes with the starting sequence from 1 to alpha;
and counting the service tickets of the edge gateway center, when the number M of the service nodes M is greater than alpha/2, determining that M is the current edge center service main node, and the rest nodes are alternative nodes.
The preferred scheme can quickly select the main node and the backup node of the edge gateway center service cluster.
The preferred scheme of the downloading method of the industrial Internet platform equipment data acquisition driver P2P is as follows: the fourth step comprises the following specific steps:
automatically detecting the network condition of the edge gateway center service cluster node, and when the network communication cannot be carried out, initiating network abnormal broadcast to the alternative node by the edge gateway center service;
after receiving the broadcast message, the alternative node initiates cluster registration to the remaining cluster nodes served by the current edge gateway center;
after the edge gateway center service cluster node receives the first cluster message, locking a registration channel and removing the abnormal node of the original cluster network;
judging whether the edge gateway center service cluster has a main node or not, and if so, automatically changing the registered node into an alternative node; and if no master node exists, selecting the master node according to the step three.
According to the optimal scheme, through switching of the edge gateway center service cluster nodes, when the edge gateway center service is abnormal, the edge gateway center service cluster nodes automatically add the alternative service to ensure the stability of the edge gateway center service, and the problem of center service abnormality caused by abnormal network communication of the main nodes of the edge gateway center service cluster is avoided.
The preferred scheme of the downloading method of the industrial Internet platform equipment data acquisition driver P2P is as follows: the method for periodically synchronizing the cloud edge information by the edge center service comprises the following steps:
the edge gateway center service master node regularly and actively reports a primary edge gateway center service node list and an alternative service node list;
the cloud platform updates the service information of the enterprise edge gateway center and the alternative center;
the cloud platform issues the enterprise edge gateway list information to an edge gateway center service and a new edge gateway;
the edge gateway center service updates the cache information in the edge gateway center cluster service;
and the edge gateway central service master node sends broadcast information to the local area network gateways, and each gateway updates and stores the private network central service, the alternative service and the gateway list which are acquired from the cloud service.
The optimal scheme ensures that the updated master node has the most comprehensive and complete central service information.
The preferred scheme of the downloading method of the industrial Internet platform equipment data acquisition driver P2P is as follows: the P2P single-node download policy is:
the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing point-to-point connections of each gateway B1, B2, a... to bn in the set { B } as l1, l2, a..... to.ln;
the gateway A traverses the connections l1, l2, the.. ln, obtains the cache file X.p2p, checks the highest position of the X.p2p file, obtains the xth connection lx, if the highest position of the connection lx is 1, stops traversing, uses the lx as a download service host, downloads the slice file from the lx, and updates the corresponding X.p2p cache file in the gateway A after downloading each slice until the file is downloaded;
and verifying the file abstract information to ensure the integrity of the file.
The P2P multi-node combined download policy is:
judging whether the drive file downloaded by the single node exists or not; if the drive file downloaded by the single node does not exist, the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing point-to-point connections of each gateway B1, B2, a... to bn in the set { B } as l1, l2, a..... to.ln;
the gateway A traverses the connections l1, l2,.. once.n and ln, obtains the cache file X.p2p, and counts the number of bits which are downloaded except the highest bit in sequence, namely Cnt1, Cnt2,.. once.n and Cntn; selecting Cntx with the largest median value among Cnt1, Cnt2, the.
Removing the highest bit of the file download identification in the { Y.p2p } file set and the files in the residual cache file set { X } and then using bitwise or, if all 1 is obtained, the representative nodes can be combined into a complete file download, otherwise, the representative nodes cannot be combined into the complete file download; if the complete file download cannot be combined, recursion is carried out on { X } and { Cnt } until the combination in { Y.p2p } can be combined into the complete file download;
using the corresponding connection in the { Y.p2p } as a download service host set { L }, downloading the slice files from the { L }, and after each slice is downloaded, updating the corresponding X.p2p cache file in the gateway A until the file is downloaded;
and verifying the file abstract information to ensure the integrity of the file.
The P2P cloud combination download policy is:
if the P2P single-node downloading and the P2P multi-node combination can not meet the complete downloading, the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing a gateway A to each gateway B1, B2 in a set { B }, wherein point-to-point connection of bn is l1, l2,..... cndot.ln;
b1, b2, a.......... the corresponding files X1.p2p, X2.p2p, b in bn are bitwise or except the highest bit; taking out a slice bit set with a result of 0 as { Q }, and taking a slice bit set with a result of non-0 as { P };
downloading the corresponding gateway file data in the { P } through the P2P service;
downloading data with slice set information of { Q } through a cloud platform file server;
and verifying the file abstract information to ensure the integrity of the file.
Three downloading strategies are provided respectively, and complete and rapid downloading of data acquisition driving of the industrial Internet platform equipment is guaranteed.
The preferred scheme of the downloading method of the industrial Internet platform equipment data acquisition driver P2P is as follows: starting P2P service, and downloading files according to the downloading strategy comprises the following steps:
the cloud platform issues a drive downloading instruction and file abstract information to a newly deployed designated edge gateway B;
the edge gateway B acquires all edge gateway information sets { B } from the edge gateway center service;
establishing a point-to-point connection of an edge gateway B to each gateway B1, B2.. said.. bn in the set { B };
and downloading and verifying the drive file by using a file downloading strategy.
The optimal selection scheme makes full use of the advantages of the local area network, improves the file downloading efficiency and ensures the integrity of the file.
The application also provides an industrial internet platform equipment data acquisition drive P2P downloading system, which comprises edge gateways of enterprises and a cloud platform in communication connection with the edge gateways, wherein the cloud platform comprises a central server for storing information of the edge gateways and constructing P2P service basic information and a file server for storing drive files;
and the cloud platform and each edge gateway download the industrial internet platform equipment data acquisition driver P2P according to the industrial internet platform equipment data acquisition driver P2P downloading method. The downloading system of the industrial internet platform device data acquisition driver P2P has all the advantages of the downloading method of the industrial internet platform device data acquisition driver P2P.
The invention has the beneficial effects that: the problem that the load of a unified cloud downloading drive network is overlarge is solved, the drive downloading efficiency is improved by using a local area network acceleration mode, and the equipment acquisition project implementation efficiency is improved; the problem that the drive file cannot be downloaded due to the abnormal central service is solved by taking the edge-side backup enterprise data as the P2P central service; the edge terminal center service solves the problem of abnormal single-point center service through a cluster and alternative node mechanism.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a network deployment architecture diagram of a cloud platform and edge gateways;
FIG. 2 is a diagram of an edge side enterprise P2P center service cluster strategy diagram;
FIG. 3 is a schematic diagram illustrating a process of updating edge gateway center services and cloud edge information synchronously;
fig. 4 is a schematic diagram of a file download policy flow.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise specified and limited, it is to be noted that the terms "mounted," "connected," and "connected" are to be interpreted broadly, and may be, for example, a mechanical connection or an electrical connection, a communication between two elements, a direct connection, or an indirect connection via an intermediate medium, and specific meanings of the terms may be understood by those skilled in the art according to specific situations.
The invention provides a method for downloading a data acquisition driver P2P of an industrial Internet platform device, which comprises the following steps:
as shown in fig. 1, a network deployment architecture of a cloud platform and an edge gateway is established: the network connection of each edge gateway in each enterprise is opened, so that the edge gateway of each enterprise can access the cloud platform center server and the file server; the central server is used for storing information of each edge gateway and constructing P2P service basic information; the file server is used for storing the drive files, as shown in fig. 1. Because the gateway deployment is a dual-network state, generally an enterprise local area network + a public network, but because the public network IP of the enterprise equipment is not fixed, private network communication is adopted, and meanwhile, the communication efficiency can be improved.
As shown in fig. 2, an edge-side enterprise P2P center cluster is established, an edge gateway center service list and an alternative center service gateway list of the enterprise are determined, and an edge gateway center service master node and an alternative node are determined. The edge gateway central service refers to that k gateways selected according to a central service selection rule are used for synchronizing cloud information in many edge gateways in enterprise privatization network deployment, and edge management autonomy can be completed when a cloud network is not communicated.
Specifically, the method comprises the following steps:
step one, enterprises deploy respective edge gateways to automatically connect with a central server for activation.
And step two, the edge gateway central service determines an edge gateway central service cluster list and an alternative central service gateway list, and sends the lists to each edge gateway of the enterprise.
In this embodiment, when the number n of edge gateways of an enterprise is equal to k1, all gateways are directly designated to serve an edge gateway center;
when n > k1, the first registered k2 edge gateways are designated to serve the edge gateway center; the edge gateway with the registration order of 4-k2 is an alternative central service gateway, k1 and k2 are both positive integers, and k1< k2, preferably but not limited to k2 ═ k1+ 1.
And issuing the edge gateway center service list, the alternative center service gateway list and the complete gateway list to each edge gateway of the enterprise.
In this embodiment, k1 is preferably but not limited to 2, k2 is preferably but not limited to 3, and the complete gateway list refers to all edge gateway information of the enterprise. Assuming that an enterprise deploys 100 edge gateways, 3 central service gateways and 10 alternative central service gateways, the complete gateway list refers to 100 gateway information.
And step three, detecting the configuration of the edge gateway center service cluster, and selecting a main node and an alternative node of the edge gateway center service cluster.
The method is mainly completed by the following steps:
the edge gateway center service receives the configuration issued by the cloud service;
starting the edge gateway center service, and initiating voting by the edge gateway center service; if the current starting service is alpha, and alpha is greater than 0, voting is carried out on the service nodes with the starting sequence from 1 to alpha;
and counting the service tickets of the edge gateway center, when the number M of the service nodes M is greater than alpha/2, determining that M is the current edge center service main node, and the rest nodes are alternative nodes.
And step four, switching the edge gateway center service cluster nodes to update the edge gateway center service cluster information.
Specifically, as shown in fig. 2, the present embodiment is mainly completed through the following steps:
automatically detecting the network condition of the edge gateway center service cluster node at regular time, and when the network communication cannot be carried out, initiating network abnormal broadcast to the alternative node by the edge gateway center service;
after receiving the broadcast message, the alternative node initiates cluster registration to the remaining cluster nodes served by the current edge gateway center;
after the edge gateway center service cluster node receives the first cluster message, locking a registration channel and removing the abnormal node of the original cluster network;
judging whether the edge gateway center service cluster has a main node or not, and if so, automatically changing the registered node into an alternative node; and if no master node exists, selecting the master node according to the step three.
And step five, after the edge gateway center service cluster information is updated, the edge gateway center service cluster sends broadcast information to local area network gateways of enterprises, the broadcast information carries edge terminal change information, and each gateway updates and stores the private network center service, the alternative service and the gateway list which are obtained from the cloud service. The cloud service refers to a system for edge gateway management, drive management and drive file management on a cloud server. The gateway list refers to the information list of ip, port, access user name, password and the like of the gateway. A private network center service is provided with a cluster of 3 nodes, so that the information is ensured to be consistent with the cloud platform service; the alternative service means that when a node in the central service is unavailable, the node is automatically registered to the central service, and the reliability of the cluster is ensured.
The edge gateway center service periodically synchronizes the cloud edge information.
In this embodiment, as shown in fig. 3, the following steps are specifically adopted:
the edge gateway center service master node regularly and actively reports a primary edge gateway center service node list and an alternative service node list;
the cloud platform updates the service information of the enterprise edge gateway center and the alternative center;
the cloud platform issues the enterprise edge gateway list information to an edge gateway center service and a new edge gateway;
the edge gateway center service updates the cache information in the edge gateway center cluster service;
and the edge gateway central service master node sends broadcast information to the local area network gateways, and each gateway updates and stores the private network central service, the alternative service and the gateway list which are acquired from the cloud service.
The edge information comprises edge gateway information, center service information and alternative node information; a central service refers to one or more cluster nodes that manage all the gateway p2p services at the edge.
A file downloading strategy is formulated, the file downloading strategy comprises one or any combination of P2P single-node downloading, P2P multi-node combined downloading and P2P cloud combined downloading, and the file downloading strategy flow is shown in FIG. 4.
The P2P single-node download policy is:
gateway a obtains all edge gateway information sets B from the edge gateway hub service.
A point-to-point connection is established for each gateway B1, B2, in the a-to-B set, bn, l1, l 2.
The gateway A traverses the connections l1, l2,.. the., and ln, obtains the cache file X.p2p, checks the highest bit of the X.p2p file, obtains the xth connection lx, if the highest bit of the connection lx is 1, the traversal is terminated, the lx is used as a download service host, the slice files are downloaded from the lx, and after downloading of each slice is completed, the corresponding X.p2p cache file in the A is updated until the file downloading is completed.
And verifying the file abstract information to ensure the integrity of the file.
The P2P multi-node combined download policy is:
judging whether the drive file downloaded by the single node exists or not; if the drive file downloaded by the single node does not exist, the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing point-to-point connections of each gateway B1, B2, a... to bn in the set { B } as l1, l2, a..... to.ln;
the gateway A traverses the connections l1, l2, a.. once.n and ln, obtains the cache file X.p2p, and counts the digits of the downloaded files except the highest digit in sequence to be Cnt1, Cnt2, a.. once.n and Cntn; selecting Cntx with the largest median among Cnt1, Cnt2, a. The rest cache file set is { X }, and the download completion bit statistic set is { Cnt };
removing the highest bit of the file download identification in the { Y.p2p } file set and the files in the residual cache file set { X } and then using bitwise or, if all 1 is obtained, the representative nodes can be combined into a complete file download, otherwise, the representative nodes cannot be combined into the complete file download; if the complete file download cannot be combined, recursion is carried out on { X } and { Cnt } until the combination in { Y.p2p } can be combined into the complete file download;
using the corresponding connection in the { Y.p2p } as a download service host set { L }, downloading the slice files from the { L }, and after each slice is downloaded, updating the corresponding X.p2p cache file in the gateway A until the file is downloaded;
and verifying the file summary information to ensure the integrity of the file.
The P2P cloud side composition download policy is:
if the P2P single-node downloading and the P2P multi-node combination can not meet the complete downloading, the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing a gateway A to each gateway B1, B2 in a set { B }, wherein point-to-point connection of bn is l1, l2,..... cndot.ln;
b1, b2, a.......... the corresponding files X1.p2p, X2.p2p, b in bn are bitwise or except the highest bit; taking out the slice bit set with the result of 0 as { Q }, and taking out the slice bit set without 0 as { P };
downloading the corresponding gateway file data in the { P } through the P2P service;
downloading data with slice set information of { Q } through a cloud platform file server;
and verifying the file abstract information to ensure the integrity of the file.
The file download slicing policy referred to here is:
the edge gateway obtains the file abstract and the file size information from the cloud platform. Suppose the file summary text information is: x, the cached file information of the p2p is X.p2p; the storage content of the cache file is as follows: assuming that the file size is fsize, in Kb; the cache file marks that the number of bytes downloaded is n ═ fsize/10.0, rounding up, that is: when fsize is divided by 10 completely, n is fsize/10; when fsize cannot divide by 10, n is (fsize/10) + 1; the cache file is designed to be that the number of bytes stored integrally is n +1, the highest bit is a mark bit, if each slice is downloaded, the highest bit is 1, otherwise, the highest bit is 0; the algorithm for determining the highest result r is as follows: sequentially taking n bits from the lowest bit to perform bitwise AND, returning the r value to be 0 when r appears as 0 for the first time, and returning the r value after the operation from the lowest bit to the nth bit is completed; the data structure is as follows:
A. downloaded completed data structure
Highest order | n | n-1 | n-2 | ... | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
1 | 1 | 1 | 1 | ... | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
B. Data structure without downloading completion
Highest order | n | n-1 | n-2 | ... | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
0 | 0 | 1 | 0 | ... | 0 | 1 | 0 | 0 | 1 | 1 | 1 |
Finally, starting P2P service, and downloading files according to downloading strategy.
The method specifically comprises the following steps: the cloud platform issues a drive download instruction and file summary information to the newly deployed designated edge gateway B, and in this embodiment, the file summary information is preferably, but not limited to, generated by using a 64-bit cryptographic algorithm SM 3.
The edge gateway B obtains all edge gateway information sets B from the edge gateway center service.
A point-to-point connection is established from edge gateway B to each gateway B1, B2.
And downloading and verifying the drive file by using a file downloading strategy.
The application also provides an industrial internet platform equipment data acquisition drive P2P downloading system, which comprises edge gateways of enterprises and a cloud platform in communication connection with the edge gateways, wherein the cloud platform comprises a central server for storing information of the edge gateways and constructing P2P service basic information and a file server for storing drive files; and the cloud platform and each edge gateway download the industrial internet platform equipment data acquisition driver P2P according to the industrial internet platform equipment data acquisition driver P2P downloading method.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims (11)
1. A method for downloading data acquisition driver P2P of an industrial Internet platform device is characterized by comprising the following steps:
establishing a network deployment architecture of a cloud platform and an edge gateway: the network connection of each edge gateway in each enterprise is opened, so that the edge gateway of each enterprise can access the cloud platform center server and the file server; the central server is used for storing information of each edge gateway and constructing P2P service basic information; the file server is used for storing the drive file;
establishing an edge side enterprise P2P center cluster, determining an edge gateway center service list and an alternative center service gateway list of the enterprise, and determining an edge gateway center service master node and an alternative node;
the edge gateway center service periodically synchronizes the cloud edge information;
formulating a file downloading strategy, wherein the file downloading strategy comprises one or any combination of P2P single-node downloading, P2P multi-node combined downloading and P2P cloud combined downloading;
and starting the P2P service, and downloading the file according to the downloading strategy.
2. The industrial internet platform device data collection driven P2P downloading method of claim 1, wherein the step of establishing the edge-side enterprise P2P center cluster is:
step one, enterprises deploy respective edge gateways to automatically connect with a central server for activation;
step two, the central service determines an edge gateway central service cluster list and an alternative central service gateway list, and issues the lists to each edge gateway of the enterprise;
detecting the configuration of the edge gateway center service cluster, and selecting a main node and an alternative node of the edge gateway center service cluster;
step four, switching the edge gateway center service cluster nodes to update the edge gateway center service cluster information;
and step five, after the edge gateway center service cluster information is updated, the edge gateway center service cluster sends broadcast information to the local area network gateways of the enterprises, and each gateway updates and stores the private network center service, the alternative service and the gateway list acquired from the cloud service.
3. The industrial internet platform device data collection driving P2P downloading method according to claim 2, wherein the second step comprises the following specific steps:
when the number n of edge gateways of an enterprise is k1, directly appointing all gateways to serve an edge gateway center;
when n > k1, the first registered k2 edge gateways are designated to serve the edge gateway center; the edge gateway with the registration sequence of 4-k2 is an alternative center service gateway, both k1 and k2 are positive integers, and k1 is less than k 2;
and issuing the edge gateway center service list, the alternative center service gateway list and the complete gateway list to each edge gateway device of the enterprise.
4. The industrial internet platform device data collection driving P2P downloading method according to claim 2, wherein the specific steps of step three are:
the edge gateway center service receives the configuration issued by the cloud service;
starting the edge gateway center service, and initiating voting by the edge gateway center service; if the current starting service is alpha, and alpha is greater than 0, voting is carried out on the service nodes with the starting sequence from 1 to alpha;
and counting the service tickets of the edge gateway center, when the number M of the service nodes M is greater than alpha/2, determining that M is the current edge center service main node, and the rest nodes are alternative nodes.
5. The industrial internet platform device data collection driving P2P downloading method according to claim 2, wherein the fourth step comprises:
automatically detecting the network condition of the edge gateway center service cluster node, and when the network communication cannot be carried out, initiating network abnormal broadcast to the alternative node by the edge gateway center service;
after receiving the broadcast message, the alternative node initiates cluster registration to the remaining cluster nodes served by the current edge gateway center;
after the edge gateway center service cluster node receives the first cluster message, locking a registration channel and removing the abnormal node of the original cluster network;
judging whether the edge gateway center service cluster has a main node or not, and if so, automatically changing the registered node into an alternative node; and if no master node exists, selecting the master node according to the step three.
6. The industrial internet platform device data collection driven P2P downloading method of claim 1, wherein the step of periodically synchronizing the cloud edge information by the edge center service is:
the edge gateway center service master node regularly and actively reports a primary edge gateway center service node list and an alternative service node list;
the cloud platform updates the service information of the enterprise edge gateway center and the alternative center;
the cloud platform issues the enterprise edge gateway list information to an edge gateway center service and a new edge gateway;
the edge gateway center service updates the cache information in the edge gateway center cluster service;
and the edge gateway central service master node sends broadcast information to the local area network gateways, and each gateway updates and stores the private network central service, the alternative service and the gateway list which are obtained from the cloud service.
7. The industrial internet platform device data collection driven P2P download method of claim 1, wherein the P2P single node download policy is:
the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing point-to-point connections of each gateway B1, B2, a... to bn in the set { B } as l1, l2, a..... to.ln;
the gateway A traverses the connections l1, l2, the.. ln, obtains the cache file X.p2p, checks the highest position of the X.p2p file, obtains the xth connection lx, if the highest position of the connection lx is 1, stops traversing, uses the lx as a download service host, downloads the slice file from the lx, and updates the corresponding X.p2p cache file in the gateway A after downloading each slice until the file is downloaded;
and verifying the file abstract information to ensure the integrity of the file.
8. The industrial internet platform device data collection driven P2P download method of claim 1, wherein the P2P multi-node combined download policy is:
judging whether the drive file downloaded by the single node exists or not; if the drive file downloaded by the single node does not exist, the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing point-to-point connections of each gateway B1, B2, a... to bn in the set { B } as l1, l2, a..... to.ln;
the gateway A traverses the connections l1, l2, a.. once.n and ln, obtains the cache file X.p2p, and counts the digits of the downloaded files except the highest digit in sequence to be Cnt1, Cnt2, a.. once.n and Cntn; selecting Cntx with the largest median value among Cnt1, Cnt2, the.
Removing the highest bit of the file download identification in the { Y.p2p } file set and the files in the residual cache file set { X } and then using bitwise or, if all 1 is obtained, the representative nodes can be combined into a complete file download, otherwise, the representative nodes cannot be combined into the complete file download; if the complete file download cannot be combined, recursion is carried out on { X } and { Cnt } until the combination in { Y.p2p } can be combined into the complete file download;
using the corresponding connection in the { Y.p2p } as a download service host set { L }, downloading the slice files from the { L }, and after each slice is downloaded, updating the corresponding X.p2p cache file in the gateway A until the file is downloaded;
and verifying the file abstract information to ensure the integrity of the file.
9. The industrial internet platform device data collection driven P2P downloading method of claim 1, wherein the P2P cloud combined downloading policy is:
if the P2P single-node downloading and the P2P multi-node combination can not meet the complete downloading, the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing a gateway A to each gateway B1, B2 in a set { B }, wherein point-to-point connection of bn is l1, l2,..... cndot.ln;
b1, b2, a.......... the corresponding files X1.p2p, X2.p2p, b in bn are bitwise or except the highest bit; taking out a slice bit set with a result of 0 as { Q }, and taking a slice bit set with a result of non-0 as { P };
downloading the corresponding gateway file data in the { P } through the P2P service;
downloading data with slice set information of { Q } through a cloud platform file server;
and verifying the file abstract information to ensure the integrity of the file.
10. The industrial internet platform device data acquisition driving P2P downloading method of claim 1, wherein the step of starting P2P service and downloading files according to downloading strategy is as follows:
the cloud platform issues a drive downloading instruction and file abstract information to a newly deployed designated edge gateway B;
the edge gateway B acquires all edge gateway information sets { B } from the edge gateway center service;
establishing a point-to-point connection of an edge gateway B to each gateway B1, B2.. said.. bn in the set { B };
and downloading and verifying the drive file by using a file downloading strategy.
11. An industrial internet platform equipment data acquisition driving P2P downloading system is characterized by comprising edge gateways of enterprises and a cloud platform in communication connection with the edge gateways, wherein the cloud platform comprises a central server for storing information of the edge gateways, building P2P service basic information and a file server for storing driving files;
the cloud platform and each edge gateway perform industrial internet platform device data acquisition driven P2P downloading according to the industrial internet platform device data acquisition driven P2P downloading method of any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210650665.1A CN115086336B (en) | 2022-06-09 | 2022-06-09 | Industrial Internet platform equipment data acquisition driving P2P downloading method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210650665.1A CN115086336B (en) | 2022-06-09 | 2022-06-09 | Industrial Internet platform equipment data acquisition driving P2P downloading method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115086336A true CN115086336A (en) | 2022-09-20 |
CN115086336B CN115086336B (en) | 2024-06-28 |
Family
ID=83252247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210650665.1A Active CN115086336B (en) | 2022-06-09 | 2022-06-09 | Industrial Internet platform equipment data acquisition driving P2P downloading method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115086336B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104935640A (en) * | 2015-05-07 | 2015-09-23 | 上海逸云信息科技发展有限公司 | P2P acceleration content distribution network system and method |
CN108432323A (en) * | 2016-01-08 | 2018-08-21 | 瑞典爱立信有限公司 | Radio network node and the method wherein executed |
CN108600316A (en) * | 2018-03-23 | 2018-09-28 | 深圳市网心科技有限公司 | Data managing method, system and the equipment of cloud storage service |
CN111061491A (en) * | 2019-12-11 | 2020-04-24 | 青岛海洋科学与技术国家实验室发展中心 | LXC container technology-based edge computing gateway management system and method |
US20200228623A1 (en) * | 2019-01-14 | 2020-07-16 | Amdocs Development Limited | Handshake of application execution between edge nodes |
CN111601258A (en) * | 2020-05-15 | 2020-08-28 | 浙江树人学院(浙江树人大学) | Vehicle networking node data safety communication method based on block chain |
CN111638970A (en) * | 2019-03-01 | 2020-09-08 | Abb瑞士股份有限公司 | Redundancy in a network-centric process control system |
CN111800283A (en) * | 2019-04-08 | 2020-10-20 | 阿里巴巴集团控股有限公司 | Network system, service providing and resource scheduling method, device and storage medium |
CN112165523A (en) * | 2020-09-28 | 2021-01-01 | 腾讯科技(深圳)有限公司 | Data downloading method and device |
CN112231603A (en) * | 2020-11-02 | 2021-01-15 | 深圳市欢太科技有限公司 | File downloading method, server, client and storage medium |
US20210160694A1 (en) * | 2018-04-05 | 2021-05-27 | Aeris Communications, Inc. | GLOBAL DEVICE MANAGEMENT ARCHITECTURE FOR IoT DEVICES WITH REGIONAL AUTONOMY |
CN114245404A (en) * | 2021-12-14 | 2022-03-25 | 上海优咔网络科技有限公司 | Artificial intelligence edge calculation switching method |
-
2022
- 2022-06-09 CN CN202210650665.1A patent/CN115086336B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104935640A (en) * | 2015-05-07 | 2015-09-23 | 上海逸云信息科技发展有限公司 | P2P acceleration content distribution network system and method |
CN108432323A (en) * | 2016-01-08 | 2018-08-21 | 瑞典爱立信有限公司 | Radio network node and the method wherein executed |
CN108600316A (en) * | 2018-03-23 | 2018-09-28 | 深圳市网心科技有限公司 | Data managing method, system and the equipment of cloud storage service |
US20210160694A1 (en) * | 2018-04-05 | 2021-05-27 | Aeris Communications, Inc. | GLOBAL DEVICE MANAGEMENT ARCHITECTURE FOR IoT DEVICES WITH REGIONAL AUTONOMY |
US20200228623A1 (en) * | 2019-01-14 | 2020-07-16 | Amdocs Development Limited | Handshake of application execution between edge nodes |
CN111638970A (en) * | 2019-03-01 | 2020-09-08 | Abb瑞士股份有限公司 | Redundancy in a network-centric process control system |
CN111800283A (en) * | 2019-04-08 | 2020-10-20 | 阿里巴巴集团控股有限公司 | Network system, service providing and resource scheduling method, device and storage medium |
CN111061491A (en) * | 2019-12-11 | 2020-04-24 | 青岛海洋科学与技术国家实验室发展中心 | LXC container technology-based edge computing gateway management system and method |
CN111601258A (en) * | 2020-05-15 | 2020-08-28 | 浙江树人学院(浙江树人大学) | Vehicle networking node data safety communication method based on block chain |
CN112165523A (en) * | 2020-09-28 | 2021-01-01 | 腾讯科技(深圳)有限公司 | Data downloading method and device |
CN112231603A (en) * | 2020-11-02 | 2021-01-15 | 深圳市欢太科技有限公司 | File downloading method, server, client and storage medium |
CN114245404A (en) * | 2021-12-14 | 2022-03-25 | 上海优咔网络科技有限公司 | Artificial intelligence edge calculation switching method |
Non-Patent Citations (3)
Title |
---|
SHENGYAO SUN, WENBIN YAO, XIAOYONG LI: "SORD: a new strategy of online replica deduplication in Cloud-P2P", 《SPRINGERLINK》, 24 July 2018 (2018-07-24) * |
石蕊: "车联网中基于时延最小化的缓存数据分发机制研究", 《中国优秀硕士学位论文全文数据库》, 15 September 2019 (2019-09-15) * |
黄灿灿;朱永庆;: "一种基于云平台的下一代互联网新型迁移模型", 信息通信技术, no. 03, 15 June 2013 (2013-06-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN115086336B (en) | 2024-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3421052B2 (en) | Network architecture and system and method for efficiently synchronizing information on a network | |
US5101348A (en) | Method of reducing the amount of information included in topology database update messages in a data communications network | |
US7984127B2 (en) | Data matrix method and system for distribution of data | |
US20050223102A1 (en) | Routing in peer-to-peer networks | |
CN1533108A (en) | Method for realizing dynamic gateway load sharing and backup | |
CN1809021A (en) | Ethernet link converging method | |
WO2015139359A1 (en) | Wireless network maintenance method, device and system | |
CN101409666A (en) | Looped network, method for discovering topological thereof and node | |
US20130148658A1 (en) | Systems and methods for scalable multicast communication using self-rooted forwarding trees | |
US20210014117A1 (en) | Terminal device management method, server, and terminal device for managing terminal devices in local area network | |
CN1625872A (en) | Distributing scheme for distributing information in network | |
US8233480B2 (en) | Network clustering | |
CN107547374B (en) | Aggregation route processing method and device | |
US20090025037A1 (en) | Method, system and terminal for changing a management object of broadcast service guide | |
CN106357723A (en) | Synchronous system and method for multi-cluster information caching based on cloud host | |
CN1503532A (en) | Diffusion method for flow engineering link state | |
CN108512949B (en) | MAC address synchronization method and system | |
US7853785B1 (en) | System and method for implementing digital certificate revocation in an ad-hoc network | |
WO2015003420A1 (en) | Resource deployment method for cloud computing environment | |
CN115086336A (en) | Industrial Internet platform equipment data acquisition driving P2P downloading method and system | |
CN1852264A (en) | Method for transmitting link-state information | |
US11985038B2 (en) | Selecting forwarder in a network installation | |
JP2007272540A (en) | Data distributing method and data distributing system | |
EP1938203B1 (en) | Naming system layer | |
CN110830295B (en) | Equipment management method and system |
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 |