CN115086336B - 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
- CN115086336B CN115086336B CN202210650665.1A CN202210650665A CN115086336B CN 115086336 B CN115086336 B CN 115086336B CN 202210650665 A CN202210650665 A CN 202210650665A CN 115086336 B CN115086336 B CN 115086336B
- Authority
- CN
- China
- Prior art keywords
- gateway
- service
- downloading
- edge
- edge gateway
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000002159 abnormal effect Effects 0.000 claims description 9
- 101100328518 Caenorhabditis elegans cnt-1 gene Proteins 0.000 claims description 6
- 101100328519 Caenorhabditis elegans cnt-2 gene Proteins 0.000 claims description 6
- 230000004913 activation Effects 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 238000013480 data collection Methods 0.000 claims 3
- 238000004519 manufacturing process Methods 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000001133 acceleration 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
- 238000005457 optimization Methods 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
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 P2P driven by data acquisition of industrial Internet platform equipment. 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 main node and an alternative node; the edge gateway center service periodically synchronizes cloud edge information; setting 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. According to the method, local distributed P2P center service is established according to enterprises, file downloading is accelerated by using a local area network, driving downloading efficiency is improved, and equipment collection project implementation efficiency is improved.
Description
Technical Field
The invention relates to the field of industrial Internet platform data acquisition, in particular to a P2P downloading method and system driven by industrial Internet platform equipment data acquisition.
Background
The industrial Internet platform is an industrial cloud platform which is oriented to the requirements of digitization, networking and intellectualization of manufacturing industry, builds a service system based on mass data acquisition, convergence and analysis, supports ubiquitous connection of manufacturing resources, elastically supplies and efficiently configures the manufacturing resources.
Therefore, timeliness and integrity of data transmission on the industrial internet platform are very important, and the problem of driving and downloading production equipment data and controller data acquisition in the industrial internet platform is involved. At present, the drive file is downloaded through a cloud server to realize the downloading of production equipment data and controller data. However, there are many drawbacks, such as excessive load on the cloud network; the local area network can not be fully utilized to accelerate file downloading; the cloud service abnormality can cause the problem that the driver cannot download, so that the downloading of the production equipment data and the controller data lacks 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 data acquisition drive P2P of industrial Internet platform equipment.
In order to achieve the above object of the present invention, the present invention provides a method for downloading P2P data by using 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 center server is used for storing the information of each edge gateway and constructing P2P service basic information; the file server is used for storing the driving 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 main node and an alternative node;
the edge gateway center service periodically synchronizes cloud edge information;
setting 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.
According to the method, local distributed P2P center service is established according to enterprises, file downloading is accelerated by using a local area network, driving downloading efficiency is improved, and equipment collection project implementation efficiency is improved.
The preferable scheme of the industrial Internet platform equipment data acquisition driving P2P downloading method is as follows: the method for establishing the edge side enterprise P2P center cluster comprises the following steps:
step one, an enterprise deploys the respective edge gateway to automatically connect with a central server for activation;
Step two, the center service determines an edge gateway center service cluster list and an alternative center service gateway list, and issues the lists to respective edge gateways of enterprises;
Detecting edge gateway center service cluster configuration, and selecting an edge gateway center service cluster main node and an alternative node;
Step four, switching the service cluster nodes of the edge gateway center to update the service cluster information of the edge gateway center;
and fifthly, 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, and each gateway updates and stores private network center service, alternative service and gateway list acquired from cloud service.
The data consistency of the cloud platform and the edge service is guaranteed by the aid of the optimization scheme, and accuracy of edge data and data downloading synchronization efficiency are improved.
The preferable scheme of the industrial Internet platform equipment data acquisition driving P2P downloading method is as follows: the specific steps of the second step are as follows:
When the number n < =k1 of the edge gateways of the enterprise, directly designating all the gateways as edge gateway center services;
when n > k1, designating k2 edge gateways registered first as edge gateway center services; the edge gateway with the registration sequence of 4-k2 is an alternative central service gateway, k1 and k2 are positive integers, and k1 is less than k2;
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 rapidly determine the list of the edge gateway center service cluster and the list of the alternative center service gateway, and send the lists to each edge gateway of the enterprise.
The preferable scheme of the industrial Internet platform equipment data acquisition driving P2P downloading method is as follows: the specific steps of the third step are as follows:
the edge gateway center service receives the configuration issued by the cloud service;
the edge gateway center service starts, and the edge gateway center service starts voting; assuming that the current starting service is alpha, alpha >0, voting the service nodes with the starting sequence of 1 to alpha;
counting the ticket obtained by the edge gateway center service, determining that M is a current edge center service main node when the ticket obtained by the service node M is M and M is more than alpha/2, and the rest nodes are alternative nodes.
The preferred scheme can rapidly select the main node and the backup node of the edge gateway central service cluster.
The preferable scheme of the industrial Internet platform equipment data acquisition driving P2P downloading method is as follows: the specific steps of the fourth step are as follows:
Automatically detecting the network condition of the edge gateway center service cluster node, and when network communication is impossible, initiating network abnormal broadcasting to the alternative nodes by the edge gateway center service;
after receiving the broadcast message, the candidate node initiates cluster registration to the rest 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 eliminating the abnormal node of the original cluster network;
Judging whether an edge gateway center service cluster has a master node, and if so, automatically changing a registration node into an alternative node; and if the master node does not exist, selecting the master node according to the step three.
According to the preferred scheme, through switching of the edge gateway center service cluster nodes, when the edge gateway center service is abnormal, the alternative service is automatically added into the cluster to ensure the stability of the edge center service, and the problem of abnormal center service caused by network communication abnormality of a main node of the edge gateway center service cluster is avoided.
The preferable scheme of the industrial Internet platform equipment data acquisition driving P2P downloading method is as follows: the edge center service periodically synchronizes cloud edge information, which comprises the following steps:
the edge gateway center service main node actively reports the list of the edge gateway center service node and the list of the alternative service nodes at regular time;
the cloud platform updates center service and alternative center service information of the enterprise edge gateway;
the cloud platform issues enterprise edge gateway list information to an edge gateway center service and a new edge gateway;
the edge gateway center service updates cache information in the edge gateway center cluster service;
And the edge gateway center service main node sends the broadcast information to local area network gateways, and each gateway updates and stores the private network center service, the alternative service and the gateway list acquired from the cloud service.
The preferred scheme ensures that the updated master node enjoys the most comprehensive and complete central service information.
The preferable scheme of the industrial Internet platform equipment data acquisition driving P2P downloading method is as follows: the P2P single node downloading strategy is as follows:
Gateway a obtains all edge gateway information sets { B } from edge gateway center services;
establishing each gateway B1, B2, of the a to set { B }, a point-to-point connection of bn is l1, l2, ln;
The gateway A traverses the connections l1, l2 and the first and second and third and obtains cache files X.p2p, checks the highest bit of the X.p2p files, takes the x-th connection lx, if the highest bit of the connection lx is 1, terminates the traversal, uses lx as a download service host, downloads slice files from lx, and updates the corresponding X.p2p cache files in A after each slice download is completed until the file download is completed;
and verifying file abstract information and ensuring file integrity.
The P2P multi-node combined downloading strategy is as follows:
judging whether a single node has downloaded the drive file; if the single node does not exist and the drive file is downloaded, the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing each gateway B1, B2, of the a to set { B }, a point-to-point connection of bn is l1, l2, ln;
The gateway a traverses the connections l1, l2, & gt, ln, acquires the cache file x.p2p, and counts the number of bits after the highest bit downloading is counted as Cnt1, cnt2, & gt, cntn; selecting Cnt1, cnt2 and Cntx with the largest median value in Cntn, adding a buffer file corresponding to Cntx into the set { y.p2p }, wherein the rest buffer file sets are { X }, and the download completion bit statistics set is { Cnt };
the file download identification in the set { Y.p2p } file and the file in the residual buffer file set { X } are used for bit-wise or after the most significant bit is removed, if all the obtained data are 1, the representative node can be combined into complete file download, otherwise, the representative node can not be combined into complete file download; if the complete file download cannot be combined, recursively taking { X } and { Cnt } until the combination in { Y.p2p } can be combined into the complete file download;
Using the corresponding connection in { Y.p2p } as a download service host set { L }, downloading slice files from { L }, and updating the corresponding X.p2p cache file in the gateway A until the file downloading is completed after each slice is downloaded;
and verifying file abstract information and ensuring file integrity.
The P2P cloud combination downloading strategy is as follows:
if the P2P single node download and the P2P multi-node combination can not meet the complete download, 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 of the set { B }, a point-to-point connection of bn is l1, l2, ln;
The corresponding files x1.p2p, x2.p2p in bn are bitten or otherwise located except for the most significant. Taking out the slice bit set with the result of 0 as { Q }, and taking the slice bit set with the result of non-0 as { P };
downloading corresponding gateway file data in { P } through a P2P service;
Downloading data with the slice set information of { Q } through a cloud platform file server;
and verifying file abstract information and ensuring file integrity.
Three downloading strategies are provided respectively, so that complete and rapid downloading of the data acquisition drive of the industrial Internet platform equipment is ensured.
The preferable scheme of the industrial Internet platform equipment data acquisition driving P2P downloading method is as follows: the P2P service is started, and file downloading steps according to the downloading strategy are 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 obtains all edge gateway information sets { B } from the edge gateway center service;
Establishing a point-to-point connection of edge gateway B to each gateway B1, B2 in the set { B }, a., bn;
And downloading and checking the driving file by using a file downloading strategy.
The preferred scheme fully utilizes 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 driving P2P downloading system, which comprises edge gateways of all enterprises and a cloud platform in communication connection with the edge gateways, wherein the cloud platform comprises a central server for storing all edge gateway information and constructing P2P service basic information and a file server for storing driving files;
And the cloud platform and each edge gateway perform industrial Internet platform equipment data acquisition driving P2P downloading according to the industrial Internet platform equipment data acquisition driving P2P downloading method. The industrial Internet platform equipment data acquisition driving P2P downloading system has all the advantages of the industrial Internet platform equipment data acquisition driving P2P downloading method.
The beneficial effects of the invention are as follows: the method solves the problem of overlarge load of the unified cloud downloading driving network, improves the driving downloading efficiency by using a local area network acceleration mode, and improves the implementation efficiency of equipment acquisition projects; the problem that the drive file cannot be downloaded due to abnormal center service is solved by taking the edge-side backup enterprise data as the P2P center service; the edge-side center service solves the problem of single-point center service abnormality 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 foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
FIG. 1 is a network deployment architecture diagram of a cloud platform and edge gateway;
FIG. 2 is an edge side enterprise P2P center service cluster policy diagram;
Fig. 3 is a schematic diagram of a process for synchronously updating edge information of an edge gateway center service and cloud edge information;
fig. 4 is a schematic flow chart of a file download strategy.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, unless otherwise specified and defined, it should be noted that the terms "mounted," "connected," and "coupled" are to be construed broadly, and may be, for example, mechanical or electrical, or may be in communication with each other between two elements, directly or indirectly through intermediaries, as would be understood by those skilled in the art, in view of the specific meaning of the terms described above.
The invention provides a P2P downloading method driven by data acquisition of industrial Internet platform equipment, 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 center server is used for storing the information of each edge gateway and constructing P2P service basic information; the file server is used to store the drive files as shown in fig. 1. Because the gateway deployment is in a double-network state, generally an enterprise local area network and a public network, but because the public network IP of 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 center service refers to among a plurality of edge gateways in enterprise privately-owned network deployment, wherein k gateways selected according to a center service selection rule are used for synchronizing cloud information, so that edge management autonomy can be completed when a cloud network is not enabled.
Specifically, the method comprises the following steps:
step one, the enterprise deploys the respective edge gateway to automatically connect with the central server for activation.
Step two, the edge gateway center service determines an edge gateway center service cluster list and an alternative center service gateway list, and issues the lists to respective edge gateways of enterprises.
In this embodiment, when the number n < =k1 of edge gateways of an enterprise, all the gateways are directly designated as edge gateway center services;
When n > k1, designating k2 edge gateways registered first as edge gateway center services; an edge gateway with a 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 the enterprise deploys 100 edge gateways, 3 center service gateways, and 10 alternate center service gateways, the complete gateway manifest refers to 100 gateway information.
Detecting edge gateway center service cluster configuration, and selecting an edge gateway center service cluster main node and an alternative node.
In this embodiment, the method is mainly completed through the following steps:
the edge gateway center service receives the configuration issued by the cloud service;
the edge gateway center service starts, and the edge gateway center service starts voting; assuming that the current starting service is alpha, alpha >0, voting the service nodes with the starting sequence of 1 to alpha;
counting the ticket obtained by the edge gateway center service, determining that M is a current edge center service main node when the ticket obtained by the service node M is M and M is more than alpha/2, and the rest nodes are alternative nodes.
And step four, switching the service cluster nodes of the edge gateway center to update the service cluster information of the edge gateway center.
Specifically, as shown in fig. 2, this embodiment is mainly completed by the following steps:
Automatically timing detecting the network condition of the edge gateway center service cluster node, and when network communication is impossible, initiating network abnormal broadcasting to the alternative nodes by the edge gateway center service;
after receiving the broadcast message, the candidate node initiates cluster registration to the rest 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 eliminating the abnormal node of the original cluster network;
Judging whether an edge gateway center service cluster has a master node, and if so, automatically changing a registration node into an alternative node; and if the master node does not exist, selecting the master node according to the step three.
And fifthly, 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 end change information, and each gateway updates and stores private network center service, alternative service and gateway list acquired from cloud service. The cloud service refers to a system used for edge gateway management, drive management and drive file management on a cloud server. The gateway list refers to the information list of the ip, the port, the access user name, the password and the like of the gateway. The private network center service has 3 node clusters, so that the consistency of information and cloud platform service is ensured; the alternative service is to automatically register to the center service when nodes in the center service are unavailable, so that the reliability of the cluster is ensured.
The edge gateway center service periodically synchronizes cloud edge information.
In this embodiment, as shown in fig. 3, the following steps are specifically adopted:
the edge gateway center service main node actively reports the list of the edge gateway center service node and the list of the alternative service nodes at regular time;
the cloud platform updates center service and alternative center service information of the enterprise edge gateway;
the cloud platform issues enterprise edge gateway list information to an edge gateway center service and a new edge gateway;
the edge gateway center service updates cache information in the edge gateway center cluster service;
And the edge gateway center service main node sends the broadcast information to local area network gateways, and each gateway updates and stores the private network center service, the alternative service and the gateway list 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 for managing all gateway p2p services at the edge.
And (3) 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 the flow of the file downloading strategy is shown in figure 4.
The P2P single node download strategy is:
gateway a obtains all edge gateway information sets B from the edge gateway hub service.
Each gateway B1, B2, of the a to set { B } is established, the point-to-point connection of bn is l1, l 2.
The gateway A traverses the connections l1, l2 and the first and second and third and the first and second, ln obtains the cache file X.p2p, checks the highest bit of the X.p2p file, takes the x-th connection lx, if the highest bit of the connection lx is 1, terminates the traversal, uses lx as a download service host, downloads slice files from lx, and after each slice download is completed, updates the corresponding X.p2p cache file in A until the file download is completed.
And verifying file abstract information and ensuring file integrity.
The P2P multi-node combination download strategy is:
judging whether a single node has downloaded the drive file; if the single node does not exist and the drive file is downloaded, the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing each gateway B1, B2, of the a to set { B }, a point-to-point connection of bn is l1, l2, ln;
The gateway a traverses the connections l1, l2, & gt, ln, acquires the cache file x.p2p, and counts the number of bits after the highest bit downloading is counted as Cnt1, cnt2, & gt, cntn; selecting Cnt1, cnt2, and Cntx with the largest median value in Cntn, and adding the buffer file corresponding to Cntx into the set { y.p2p }; the rest buffer file set is { X }, and the download completion bit statistics set is { Cnt };
the file download identification in the set { Y.p2p } file and the file in the residual buffer file set { X } are used for bit-wise or after the most significant bit is removed, if all the obtained data are 1, the representative node can be combined into complete file download, otherwise, the representative node can not be combined into complete file download; if the complete file download cannot be combined, recursively taking { X } and { Cnt } until the combination in { Y.p2p } can be combined into the complete file download;
Using the corresponding connection in { Y.p2p } as a download service host set { L }, downloading slice files from { L }, and updating the corresponding X.p2p cache file in the gateway A until the file downloading is completed after each slice is downloaded;
and verifying file abstract information and ensuring file integrity.
The P2P cloud combination download policy is:
if the P2P single node download and the P2P multi-node combination can not meet the complete download, 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 of the set { B }, a point-to-point connection of bn is l1, l2, ln;
The corresponding files x1.p2p, x2.p2p in bn are bitten or otherwise located except for the most significant. Taking out the slice bit set with the result of 0 as { Q }, and taking the slice bit set with the result of non-0 as { P };
downloading corresponding gateway file data in { P } through a P2P service;
Downloading data with the slice set information of { Q } through a cloud platform file server;
and verifying file abstract information and ensuring file integrity.
The file download slicing strategy referred to herein is:
and the edge gateway obtains file abstract and file size information from the cloud platform. Suppose that the file summary text information is: x, the p2p cache file information is X.p2p; the storage content of the cache file is as follows: assuming that the file size is fsize, the unit is Kb; the number of bytes of the cache file tag that have been downloaded is n= fsize/10.0 rounded up, i.e.: fsize dividing by 10, n= fsize/10; fsize cannot divide by 10, n= (fsize/10) +1; the cache file is designed to integrally store the byte number of n+1, wherein the highest bit is a marking bit, if each slice is downloaded, the highest bit is 1, otherwise, the highest bit is 0; the algorithm for determining the highest bit result r is as follows: sequentially taking n digits from the lowest digit to carry out bitwise AND, returning an r value to be 0 when r is 0 for the first time, and returning the r value after finishing the operation from the lowest digit to the nth digit; the data structure is as follows:
A. Downloaded data structure
Highest position | 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 position | n | n-1 | n-2 | ... | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
0 | 0 | 1 | 0 | ... | 0 | 1 | 0 | 0 | 1 | 1 | 1 |
And finally, starting the P2P service and downloading the file according to the downloading strategy.
The method comprises the following steps: the cloud platform issues a driver download instruction and file digest information to the newly deployed designated edge gateway B, and in this embodiment, the file digest information is preferably but not limited to be generated by using a 64-bit cryptographic algorithm SM 3.
Edge gateway B obtains all edge gateway information sets { B } from the edge gateway hub service.
Establish a point-to-point connection for edge gateway B to each gateway B1, B2 in the set { B }.
And downloading and checking the driving file by using a file downloading strategy.
The application also provides an industrial Internet platform equipment data acquisition driving P2P downloading system, which comprises edge gateways of all enterprises and a cloud platform in communication connection with the edge gateways, wherein the cloud platform comprises a central server for storing all edge gateway information, constructing P2P service basic information and a file server for storing driving files; and the cloud platform and each edge gateway perform industrial Internet platform equipment data acquisition driving P2P downloading according to the industrial Internet platform equipment data acquisition driving P2P downloading method.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means 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 present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. 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 present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.
Claims (8)
1. The industrial Internet platform equipment data acquisition driving P2P downloading method is characterized by comprising the following steps of:
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 center server is used for storing the information of each edge gateway and constructing P2P service basic information; the file server is used for storing the driving 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 main node and an alternative node;
the edge gateway center service periodically synchronizes cloud edge information;
setting 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;
the P2P single node downloading strategy is as follows:
Gateway a obtains all edge gateway information sets { B } from edge gateway center services;
establishing each gateway B1, B2, of the a to set { B }, a point-to-point connection of bn is l1, l2, ln;
The gateway A traverses the connections l1, l2 and the first and second and third and obtains cache files X.p2p, checks the highest bit of the X.p2p files, takes the x-th connection lx, if the highest bit of the connection lx is 1, terminates the traversal, uses lx as a download service host, downloads slice files from lx, and updates the corresponding X.p2p cache files in A after each slice download is completed until the file download is completed;
verifying file abstract information to ensure file integrity;
The P2P multi-node combined downloading strategy is as follows:
judging whether a single node has downloaded the drive file; if the single node does not exist and the drive file is downloaded, the gateway A acquires all edge gateway information sets { B } from the edge gateway center service;
establishing each gateway B1, B2, of the a to set { B }, a point-to-point connection of bn is l1, l2, ln;
The gateway A traverses the connections l1, l2 and the first-order, the ln obtains the cache files X.p2p, the number of bits after the most significant bit downloading is counted and divided is Cnt1, cnt2 and the first-order, cntn, the largest value Cntx in Cnt1, cnt2 and the first-order, cntn is selected, the cache files corresponding to Cntx are added into the set { Y.p2p }, the rest cache file set is { X }, and the downloading-completed bit statistical set is { Cnt };
the file download identification in the set { Y.p2p } file and the file in the residual buffer file set { X } are used for bit-wise or after the most significant bit is removed, if all the obtained data are 1, the representative node can be combined into complete file download, otherwise, the representative node can not be combined into complete file download; if the complete file download cannot be combined, recursively taking { X } and { Cnt } until the combination in { Y.p2p } can be combined into the complete file download;
Using the corresponding connection in { Y.p2p } as a download service host set { L }, downloading slice files from { L }, and updating the corresponding X.p2p cache file in the gateway A until the file downloading is completed after each slice is downloaded;
verifying file abstract information to ensure file integrity;
the P2P cloud combination downloading strategy is as follows:
if the P2P single node download and the P2P multi-node combination can not meet the complete download, 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 of the set { B }, a point-to-point connection of bn is l1, l2, ln;
The corresponding files x1.p2p, x2.p2p in bn are bitten or otherwise located except for the most significant. Taking out the slice bit set with the result of 0 as { Q }, and taking the slice bit set with the result of non-0 as { P };
downloading corresponding gateway file data in { P } through a P2P service;
Downloading data with the slice set information of { Q } through a cloud platform file server;
verifying file abstract information to ensure file integrity;
And starting the P2P service, and downloading the file according to the downloading strategy.
2. The industrial internet platform device data collection driven P2P download method according to claim 1, wherein the step of establishing an edge side enterprise P2P central cluster is:
step one, an enterprise deploys the respective edge gateway to automatically connect with a central server for activation;
Step two, the center service determines an edge gateway center service cluster list and an alternative center service gateway list, and issues the lists to respective edge gateways of enterprises;
Detecting edge gateway center service cluster configuration, and selecting an edge gateway center service cluster main node and an alternative node;
Step four, switching the service cluster nodes of the edge gateway center to update the service cluster information of the edge gateway center;
and fifthly, 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, and each gateway updates and stores private network center service, alternative service and gateway list acquired from cloud service.
3. The industrial internet platform device data acquisition driving P2P downloading method according to claim 2, wherein the specific steps of the second step are as follows:
when the number n < =k1 of the edge gateways of the enterprise, directly designating all the gateways as edge gateway center services;
when n > k1, designating k2 edge gateways registered first as edge gateway center services; the edge gateway with the registration sequence of 4-k2 is an alternative central service gateway, k1 and k2 are positive integers, and k1 is less than k2;
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 acquisition driving P2P downloading method according to claim 2, wherein the specific steps of the third step are as follows:
the edge gateway center service receives the configuration issued by the cloud service;
the edge gateway center service starts, and the edge gateway center service starts voting; assuming that the current starting service is alpha, alpha >0, voting the service nodes with the starting sequence of 1 to alpha;
Counting the ticket obtained by the edge gateway center service, determining that M is a current edge center service main node when the ticket obtained by the service node M is M and M is more than alpha/2, 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 specific steps of the fourth step are:
Automatically detecting the network condition of the edge gateway center service cluster node, and when network communication is impossible, initiating network abnormal broadcasting to the alternative nodes by the edge gateway center service;
after receiving the broadcast message, the candidate node initiates cluster registration to the rest 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 eliminating the abnormal node of the original cluster network;
Judging whether an edge gateway center service cluster has a master node, and if so, automatically changing a registration node into an alternative node; and if the master node does not exist, selecting the master node according to the step three.
6. The method for downloading the P2P data from the industrial internet platform device according to claim 1, wherein the step of periodically synchronizing the cloud edge information by the edge center service comprises:
the edge gateway center service main node actively reports the list of the edge gateway center service node and the list of the alternative service nodes at regular time;
the cloud platform updates center service and alternative center service information of the enterprise edge gateway;
the cloud platform issues enterprise edge gateway list information to an edge gateway center service and a new edge gateway;
the edge gateway center service updates cache information in the edge gateway center cluster service;
And the edge gateway center service main node sends the broadcast information to local area network gateways, and each gateway updates and stores the private network center service, the alternative service and the gateway list acquired from the cloud service.
7. The industrial internet platform device data collection driving P2P downloading method according to claim 1, wherein the step of starting P2P service and downloading files according to downloading strategy comprises the steps of:
The cloud platform issues a drive downloading instruction and file abstract information to a newly deployed designated edge gateway B;
The edge gateway B obtains all edge gateway information sets { B } from the edge gateway center service;
Establishing a point-to-point connection of edge gateway B to each gateway B1, B2 in the set { B }, a., bn;
And downloading and checking the driving file by using a file downloading strategy.
8. The 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, constructing 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 driving P2P downloading according to the industrial internet platform device data acquisition driving P2P downloading method of any one of claims 1 to 7.
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 CN115086336A (en) | 2022-09-20 |
CN115086336B true 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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114245404A (en) * | 2021-12-14 | 2022-03-25 | 上海优咔网络科技有限公司 | Artificial intelligence edge calculation switching method |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104935640B (en) * | 2015-05-07 | 2018-05-01 | 上海逸云信息科技发展有限公司 | The content distribution network system and method that a kind of P2P accelerates |
WO2017118489A1 (en) * | 2016-01-08 | 2017-07-13 | Telefonaktiebolaget Lm Ericsson (Publ) | Radio network nodes and methods performed therein |
CN108600316B (en) * | 2018-03-23 | 2021-10-08 | 深圳市网心科技有限公司 | Data management method, system and equipment of cloud storage service |
US11678181B2 (en) * | 2018-04-05 | 2023-06-13 | Aeris Communications, Inc. | Global device management architecture for IoT devices with regional autonomy |
US10938946B2 (en) * | 2019-01-14 | 2021-03-02 | Amdocs Development Limited | Handshake of application execution between edge nodes |
EP3702857A1 (en) * | 2019-03-01 | 2020-09-02 | ABB Schweiz AG | Redundancy in a network centric process control system |
CN111800283B (en) * | 2019-04-08 | 2023-03-14 | 阿里巴巴集团控股有限公司 | Network system, service providing and resource scheduling method, device and storage medium |
CN111061491B (en) * | 2019-12-11 | 2023-08-22 | 青岛海洋科技中心 | LXC container technology-based edge computing gateway management system and method |
CN111601258B (en) * | 2020-05-15 | 2021-10-12 | 浙江树人学院(浙江树人大学) | 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 |
-
2022
- 2022-06-09 CN CN202210650665.1A patent/CN115086336B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114245404A (en) * | 2021-12-14 | 2022-03-25 | 上海优咔网络科技有限公司 | Artificial intelligence edge calculation switching method |
Also Published As
Publication number | Publication date |
---|---|
CN115086336A (en) | 2022-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7984127B2 (en) | Data matrix method and system for distribution of data | |
US6993587B1 (en) | Method and apparatus for election of group leaders in a distributed network | |
US5101348A (en) | Method of reducing the amount of information included in topology database update messages in a data communications network | |
US6748447B1 (en) | Method and apparatus for scalable distribution of information in a distributed network | |
RU2408064C2 (en) | Routing in peer-to-peer networks | |
US6718361B1 (en) | Method and apparatus for reliable and scalable distribution of data files in distributed networks | |
US7623472B2 (en) | Dynamic peer application discovery | |
JPH10510413A (en) | A mechanism for efficiently synchronizing information on the network | |
CN1533108A (en) | Method for realizing dynamic gateway load sharing and backup | |
JP2002512484A (en) | System and method for establishing a multicast message delivery error recovery tree in a digital network | |
CN101686145A (en) | Equipment capable of upgrading, upgrading method and system | |
US7773609B2 (en) | Overlay network system which constructs and maintains an overlay network | |
US20140337499A1 (en) | Method, system and terminal for changing a management object of broadcast service guide | |
US20060282435A1 (en) | Nonstop service system using voting, and information updating and providing method in the same | |
EP1305924B1 (en) | Method and apparatus for reliable and scalable distribution of data files in distributed networks | |
CN115086336B (en) | Industrial Internet platform equipment data acquisition driving P2P downloading method and system | |
CN1535516A (en) | Telecommunications network with automatic detection of topology and method for this detection | |
US20100124227A1 (en) | Systems and methods for electronically routing data | |
US8996679B2 (en) | Naming system layer | |
US6888802B1 (en) | System, device, and method for address reporting in a distributed communication environment | |
KR20080092487A (en) | Client synchronization system and method for the same | |
CN115314512B (en) | Massive terminal data synchronization method and system | |
US11985038B2 (en) | Selecting forwarder in a network installation | |
CN115296989B (en) | Subscription address configuration method, related equipment and storage medium | |
CN102263669A (en) | Network management system and method for controlled multicast system based on multicast conversion |
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 |