CN113726912B - Data synchronization method, system and storage medium between cloud end and edge end - Google Patents
Data synchronization method, system and storage medium between cloud end and edge end Download PDFInfo
- Publication number
- CN113726912B CN113726912B CN202111291712.XA CN202111291712A CN113726912B CN 113726912 B CN113726912 B CN 113726912B CN 202111291712 A CN202111291712 A CN 202111291712A CN 113726912 B CN113726912 B CN 113726912B
- Authority
- CN
- China
- Prior art keywords
- data packet
- request
- sending
- data
- receiving
- 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
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/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
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0847—Transmission error
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a data synchronization method, a system and a storage medium between a cloud end and an edge end, which are applied to a receiving end, wherein the receiving end is the cloud end or the edge end, and the method comprises the following steps: receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end; performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end; and after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet into a complete data packet. The invention solves the problem of long time consumption of data synchronization and reduces the time of data synchronization.
Description
Technical Field
The invention relates to the technical field of cloud platforms, in particular to a method and a system for synchronizing data between a cloud end and an edge end and a storage medium.
Background
With the development of distributed computing and internet of things technologies, a cloud and an edge are common architecture modes. The receiving end needs to deploy application and data synchronization to the sending end, and meanwhile, the sending end also needs to update and synchronize data to the receiving end, but if the data packet is incomplete due to weak network or network disconnection in the data transmission process, the data cannot be synchronized or the deployment cannot be completed, and a larger data packet needs to be transmitted again, so that the data synchronization time is increased.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, a system, and a storage medium for data synchronization between a cloud and an edge, which aim to solve the technical problem of long time consumption for data synchronization.
The embodiment of the application provides a data synchronization method between a cloud end and an edge end, which is applied to a receiving end, wherein the receiving end is the cloud end or the edge end, and the method comprises the following steps:
receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end;
performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end;
and after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet into a complete data packet.
In an embodiment, the performing packet verification on the data packet, and if the packet verification fails, generating a supplemental request and sending the supplemental request to the sending end includes:
acquiring the size of a currently received data packet, and acquiring the size of a request data packet in the transmission request;
judging the relationship between the size of the currently received data packet and the size of the request data packet;
and if the size of the currently received data packet is smaller than that of the request data packet, the data packet is failed to be checked, a supplement request is generated, and the supplement request is sent to the sending end.
In an embodiment, if the size of the currently received data packet is smaller than the size of the requested data packet, the data packet fails to be checked, a supplemental request is generated, and the supplemental request is sent to the sending end, where the method includes:
if the size of the currently received data packet is smaller than that of the request data packet, the data packet is failed to be verified, the currently received data packet is compared with the request data packet in the transmission request, and the number of missing segments and/or the number of defective segments are determined;
and sending the missing segment number and/or the defective segment number to the sending end.
In an embodiment, the performing packet verification on the data packet, and if the packet verification fails, generating a supplemental request and sending the supplemental request to the sending end includes:
parsing the data packet into binary codes;
and executing XOR operation based on the binary code and the data packet check code, if the binary code is not divided by the data packet check code, the data packet check fails, generating a supplement request and sending the supplement request to the sending end.
In an embodiment, the receiving, after the transmission request is successfully verified, a data packet sent by the sending end includes:
and checking the transmission authority key in the transmission request, and receiving the data packet sent by the sending end if the transmission authority key is matched with the transmission key stored by the receiving end.
In order to achieve the above object, there is also provided a data synchronization method between a cloud and an edge, which is applied to a sending end, where the sending end is the cloud or the edge, and the method includes:
sending a transmission request to a receiving end;
after the receiving end successfully verifies the transmission request, sending a data packet to the receiving end;
and after the receiving end carries out data packet verification on the data packet, if the data packet verification fails, receiving a supplement request sent by the receiving end, and sending supplement data to the receiving end according to the supplement request.
In an embodiment, the sending a data packet to the receiving end after the receiving end successfully verifies the transmission request includes:
after the receiving end successfully verifies the transmission request, acquiring a data packet verification code by using a preset rule based on the data packet;
and placing the data packet check code at a preset position of the data packet, and sending the data packet check code to the receiving end.
In an embodiment, after the receiving end performs packet verification on the data packet, if the packet verification fails, the receiving end receives a supplemental request sent by the receiving end, and sends supplemental data to the receiving end according to the supplemental request, including:
after the receiving end carries out data packet verification on the data packet, if the data packet verification fails, the missing segment number and/or the defective segment number sent by the receiving end are received, supplementary data are obtained according to the missing segment number and/or the defective segment number, and the supplementary data are sent to the receiving end.
In order to achieve the above object, there is also provided a data synchronization system between a cloud and an edge, the system including:
the receiving end is used for receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end; performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end; after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet to be a complete data packet;
the transmitting end is used for transmitting a transmission request to the receiving end; after the receiving end successfully verifies the transmission request, sending a data packet to the receiving end; and after the receiving end carries out data packet verification on the data packet, if the data packet verification fails, receiving a supplement request sent by the receiving end, and sending supplement data to the receiving end according to the supplement request.
In order to achieve the above object, a computer storage medium is further provided, where a data synchronization method program between a cloud and an edge is stored on the computer storage medium, and when executed by a processor, the data synchronization method program between the cloud and the edge implements any of the steps of the data synchronization method between the cloud and the edge.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end; by checking the transmission request, the receiving of wrong data packets is avoided, and the accuracy of the received data packets is improved.
Performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end; and by rechecking the data packet, the problem data packet is screened out, and a supplement request is generated based on the problem data packet in a more targeted manner.
And after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet into a complete data packet. By integrating the supplementary data into the data packet, the whole data packet does not need to be transmitted again, thereby reducing the time length of data synchronization.
Drawings
Fig. 1 is a schematic flowchart illustrating a first embodiment of a data synchronization method between a cloud and an edge of the present application;
fig. 2 is a schematic flowchart illustrating a specific implementation step of step S120 in a first embodiment of a data synchronization method between a cloud and an edge of the present application;
fig. 3 is a schematic flowchart illustrating a specific implementation step of step S123 of the data synchronization method between the cloud and the edge;
fig. 4 is a schematic flowchart illustrating another specific implementation step of step S120 in the first embodiment of the data synchronization method between the cloud and the edge of the present application;
fig. 5 is a schematic flowchart illustrating a second embodiment of a data synchronization method between a cloud and an edge of the present application;
fig. 6 is a flowchart illustrating a specific implementation step of step S220 in a second embodiment of the data synchronization method between the cloud and the edge.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end; performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end; and after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet into a complete data packet. The invention solves the problem of long time consumption of data synchronization and reduces the time of data synchronization.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 1, fig. 1 is a first embodiment of a data synchronization method between a cloud and an edge of the present application, and is applied to a receiving end, where the receiving end is a cloud or an edge, and the method includes:
specifically, the receiving end is a cloud end, the sending end is an edge end, and the data packet is sent to the cloud end from the edge end; or the receiving end is an edge end, the sending end is a cloud end, and the data packet is sent from the cloud end to the edge end; and are not intended to be limiting herein.
Step S110: receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end;
in one embodiment, the receiving the data packet sent by the sending end after the transmission request is successfully verified includes:
and checking the transmission authority key in the transmission request, and receiving the data packet sent by the sending end if the transmission authority key is matched with the transmission key stored by the receiving end.
Specifically, the transmission request includes at least a transmission authority key, a size of the data packet, the number of segments of the data segment, and a size of the data segment.
Specifically, the transmission permission key in the transmission request is checked, and may be the transmission permission key stored in the cloud terminal, or the transmission permission key stored in the cloud terminal in the edge terminal, which is not limited herein. In addition, if the received transmission authority key is not matched with the transmission authority key stored in the receiving end section, connection transmission is not performed; and if the received transmission authority key is matched with the cloud transmission authority key stored by the receiving end, connecting and transmitting.
Step S120: performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end;
specifically, data packet verification is performed on the data packet, the size of the data packet may be verified, or a plurality of check bits are set at a preset position of the data packet in advance, the check bits are verified one by one at a receiving end, position information of the check bits which fail in verification is obtained, and the data packet is pertinently compared based on the position information to generate a supplement request; and are not limited thereto.
Step S130: and after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet into a complete data packet.
Specifically, after the sending end acquires the missing or defective supplemental data according to the supplemental request, the supplemental data sent by the sending end is received, the missing or defective supplemental data replaces the data segment in the current problem data packet to complete integration, and the problem data packet is restored to a complete data packet.
In the above embodiment, there are advantageous effects of: receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end; by checking the transmission request, the receiving of wrong data packets is avoided, and the accuracy of the received data packets is improved.
Performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end; and by rechecking the data packet, the problem data packet is screened out, and a supplement request is generated based on the problem data packet in a more targeted manner.
And after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet into a complete data packet. By integrating the supplementary data into the data packet, the whole data packet does not need to be transmitted again, thereby reducing the time length of data synchronization.
Referring to fig. 2, fig. 2 is a specific implementation step of step S120 in a first embodiment of the data synchronization method between the cloud end and the edge end of the present application, where performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end, where the method includes:
step S121: acquiring the size of a currently received data packet, and acquiring the size of a request data packet in the transmission request;
step S122: judging the relationship between the size of the currently received data packet and the size of the request data packet;
specifically, if the size of the currently received data packet matches the size of the request data packet, the deployment or data synchronization is performed directly.
Step S123: and if the size of the currently received data packet is smaller than that of the request data packet, the data packet is failed to be checked, a supplement request is generated, and the supplement request is sent to the sending end.
Specifically, the supplement request may contain the number of missing segments and/or the number of defective segments; in addition, if the currently received data packet is larger than the size of the request data packet, the data packet check fails, and in this case, the supplement request includes the number of the repeating segments and the number of the repeating times, so as to repair the data packet according to the information in the supplement request.
In the above embodiment, there are advantageous effects of: if the currently received data packet is smaller than the size of the request data packet recorded in the transmission request, comparing the number of segments in the data packet and the size of the data segment with the number of segments in the data packet in the transmission request and the size of the data segment to generate a supplement request; if the size of the received data packet is matched with that of the data packet in the transmission request, the data packet is directly deployed or data is synchronized, so that the condition that the data packet is incomplete due to weak network or network disconnection during transmission, and the data cannot be synchronized or the deployment cannot be completed can be detected in time.
Referring to fig. 3, fig. 3 is a specific implementation step of step S123 of the data synchronization method between the cloud end and the edge end of the present application, where if the size of the currently received data packet is smaller than the size of the request data packet, the data packet fails to be checked, a supplemental request is generated, and the supplemental request is sent to the sending end, where the specific implementation step includes:
step S1231: if the size of the currently received data packet is smaller than that of the request data packet, the data packet is failed to be verified, the currently received data packet is compared with the request data packet in the transmission request, and the number of missing segments and/or the number of defective segments are determined;
specifically, if the received data packet is smaller than the size of the data packet in the transmission request, the number of segments inside the data packet and the size of the data segment are compared with the number of segments in the data packet and the size of the data segment stored in the transmission request, and the number of missing segments and/or the number of defective segments are determined.
Step S1232: and sending the missing segment number and/or the defective segment number to the sending end.
Specifically, the data segments in the data packet are all preceded by segment number information, which is set to an integer value, for example, the initial value of the segment number information may be set to 1, and each increment of the data segment is incremented by 1. And sending the segment number information lacking the segment number and/or the defective segment number to the sending end so as to enable the sending end to search and send the supplementary data.
In the above embodiment, there are advantageous effects of: comparing the number of segments and the size of the data segments of the currently received data packet with the request data packet in the transmission request, determining the number of the missing segments and/or the number of the defective segments so that the transmitting end can acquire the supplementary data more quickly, and the efficiency of data synchronization is improved.
Referring to fig. 4, fig. 4 is another specific implementation step of step S120 in the first embodiment of the data synchronization method between the cloud and the edge, where performing packet verification on the data packet, and if the packet verification fails, generating a supplement request and sending the supplement request to the sending end includes:
step S121': parsing the data packet into binary codes;
step S122': and executing XOR operation based on the binary code and the data packet check code, if the binary code is not divided by the data packet check code, the data packet check fails, generating a supplement request and sending the supplement request to the sending end.
Specifically, in this embodiment, the data packet check code may be generated based on the CRC check principle; the data packet check code can be added at the tail or the head of the original data packet to serve as a check basis to be sent to the receiving end. If the method of this embodiment is adopted, the transmission request at least includes a data packet check code. And checking the currently received data packet by acquiring the data packet check code in the transmission request.
In the above embodiment, there are advantageous effects of: the data packet is analyzed into the binary code, meanwhile, the data packet check code is used for checking, when the binary code is not divided by the data packet check code, the data packet check fails, and the accuracy of the data packet check is improved by the method, so that the accuracy and the safety of the data packet synchronization are improved.
Referring to fig. 5, fig. 5 is a second embodiment of the data synchronization method between a cloud and an edge of the present application, and the method is applied to a sending end, where the sending end is a cloud or an edge, and the method includes:
step S210: sending a transmission request to a receiving end;
specifically, if the sending end needs to send data to the receiving end, a transmission request is sent to the receiving end.
Step S220: after the receiving end successfully verifies the transmission request, sending a data packet to the receiving end;
step S230: and after the receiving end carries out data packet verification on the data packet, if the data packet verification fails, receiving a supplement request sent by the receiving end, and sending supplement data to the receiving end according to the supplement request.
Specifically, the supplemental data is packaged and sent to the receiving end by analyzing the information in the supplemental request, and in the process, the supplemental data is transmitted instead of the whole data packet, so that the waste of network resources is reduced, and the transmission speed of the data packet is increased.
In the above embodiment, there are advantageous effects of: by sending the supplementary data to the receiving end, the whole data packet does not need to be transmitted again, so that the time length of data synchronization is reduced.
Referring to fig. 6, fig. 6 is a specific implementation step of step S220 in the second embodiment of the data synchronization method between the cloud and the edge, where after the receiving end successfully verifies the transmission request, sending a data packet to the receiving end includes:
step S221: after the receiving end successfully verifies the transmission request, acquiring a data packet verification code by using a preset rule based on the data packet;
specifically, the data packet check code may be a random number, or may be obtained by calculation according to a preset rule, and specifically may be a data packet check code obtained by calculation according to a CRC principle.
Step S222: and placing the data packet check code at a preset position of the data packet, and sending the data packet check code to the receiving end.
Specifically, the preset position may be a front portion, a middle portion or a tail portion of the data packet, and is not limited herein.
In the above embodiment, there are advantageous effects of: the data packet check code is obtained through the preset rule, and is added into the data packet for the data packet check, so that the accuracy of the data packet check is ensured.
In one embodiment, after the receiving end performs packet verification on the data packet, if the packet verification fails, the receiving end receives a supplemental request sent by the receiving end, and sends supplemental data to the receiving end according to the supplemental request, including:
after the receiving end carries out data packet verification on the data packet, if the data packet verification fails, the missing segment number and/or the defective segment number sent by the receiving end are received, supplementary data are obtained according to the missing segment number and/or the defective segment number, and the supplementary data are sent to the receiving end.
The application also provides a data synchronization system between high in the clouds and the edge, the system includes:
the receiving end is used for receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end; performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end; after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet to be a complete data packet;
the transmitting end is used for transmitting a transmission request to the receiving end; after the receiving end successfully verifies the transmission request, sending a data packet to the receiving end; and after the receiving end carries out data packet verification on the data packet, if the data packet verification fails, receiving a supplement request sent by the receiving end, and sending supplement data to the receiving end according to the supplement request.
The application also provides a computer storage medium, wherein a data synchronization method program between the cloud end and the edge end is stored in the computer storage medium, and when being executed by a processor, the data synchronization method program between the cloud end and the edge end realizes any step of the data synchronization method between the cloud end and the edge end.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the invention without departing from the invention
With clear spirit and scope. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (7)
1. A data synchronization method between a cloud end and an edge end is applied to a receiving end, and the receiving end is the cloud end or the edge end, and the method is characterized by comprising the following steps:
receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end;
performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end;
after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet to be a complete data packet;
performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end, including:
acquiring the size of a currently received data packet, and acquiring the size of a request data packet in the transmission request;
judging the relationship between the size of the currently received data packet and the size of the request data packet;
if the size of the currently received data packet is smaller than that of the request data packet, the data packet is failed to be checked, a supplement request is generated, and the supplement request is sent to the sending end;
if the size of the currently received data packet is smaller than the size of the request data packet, the data packet check fails, a supplement request is generated, and the supplement request is sent to the sending end, and the method comprises the following steps:
if the size of the currently received data packet is smaller than that of the request data packet, the data packet is failed to be verified, the currently received data packet is compared with the request data packet in the transmission request, and the number of missing segments and/or the number of defective segments are determined;
and sending the missing segment number and/or the defective segment number to the sending end.
2. The method for data synchronization between a cloud and an edge of claim 1, wherein the performing packet verification on the data packet, and if the packet verification fails, generating a supplemental request and sending the supplemental request to the sending end comprises:
parsing the data packet into binary codes;
and executing XOR operation based on the binary code and the data packet check code, if the binary code is not divided by the data packet check code, the data packet check fails, generating a supplement request and sending the supplement request to the sending end.
3. The method for data synchronization between a cloud and an edge of claim 1, wherein the receiving the data packet sent by the sending end after the transmission request is successfully verified comprises:
and checking the transmission authority key in the transmission request, and receiving the data packet sent by the sending end if the transmission authority key is matched with the transmission key stored by the receiving end.
4. A data synchronization method between a cloud end and an edge end is applied to a sending end, and the sending end is the cloud end or the edge end, and is characterized by comprising the following steps:
sending a transmission request to a receiving end;
after the receiving end successfully verifies the transmission request, sending a data packet to the receiving end;
after the receiving end carries out data packet verification on the data packet, if the data packet verification fails, receiving a supplement request sent by the receiving end, and sending supplement data to the receiving end according to the supplement request;
after the receiving end performs the data packet check on the data packet, if the data packet check fails, the receiving end receives a supplement request sent by the receiving end, and the method includes:
acquiring the size of a currently received data packet, and acquiring the size of a request data packet in the transmission request;
judging the relationship between the size of the currently received data packet and the size of the request data packet;
if the size of the currently received data packet is smaller than that of the request data packet, the data packet is failed to be checked, a supplement request is generated, and the supplement request is sent to the sending end;
after the receiving end performs data packet verification on the data packet, if the data packet verification fails, the receiving end receives a supplement request sent by the receiving end, and sends supplement data to the receiving end according to the supplement request, including:
after the receiving end carries out data packet verification on the data packet, if the data packet verification fails, the missing segment number and/or the defective segment number sent by the receiving end are received, supplementary data are obtained according to the missing segment number and/or the defective segment number, and the supplementary data are sent to the receiving end.
5. The method of claim 4, wherein the sending a data packet to the receiving end after the receiving end successfully verifies the transmission request comprises:
after the receiving end successfully verifies the transmission request, acquiring a data packet verification code by using a preset rule based on the data packet;
and placing the data packet check code at a preset position of the data packet, and sending the data packet check code to the receiving end.
6. A system for synchronizing data between a cloud and an edge, the system comprising:
the receiving end is used for receiving a transmission request sent by a sending end, and receiving a data packet sent by the sending end after the transmission request is successfully verified, wherein the sending end is correspondingly an edge end or a cloud end; performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end; after the sending end acquires the supplementary data according to the supplementary request, receiving the supplementary data sent by the sending end, integrating the supplementary data with the data packet, and recovering the data packet to be a complete data packet;
the transmitting end is used for transmitting a transmission request to the receiving end; after the receiving end successfully verifies the transmission request, sending a data packet to the receiving end; after the receiving end carries out data packet verification on the data packet, if the data packet verification fails, receiving a supplement request sent by the receiving end, and sending supplement data to the receiving end according to the supplement request;
performing data packet verification on the data packet, and if the data packet verification fails, generating a supplement request and sending the supplement request to the sending end, including:
acquiring the size of a currently received data packet, and acquiring the size of a request data packet in the transmission request;
judging the relationship between the size of the currently received data packet and the size of the request data packet;
if the size of the currently received data packet is smaller than that of the request data packet, the data packet is failed to be checked, a supplement request is generated, and the supplement request is sent to the sending end;
if the size of the currently received data packet is smaller than the size of the request data packet, the data packet check fails, a supplement request is generated, and the supplement request is sent to the sending end, and the method comprises the following steps:
if the size of the currently received data packet is smaller than that of the request data packet, the data packet is failed to be verified, the currently received data packet is compared with the request data packet in the transmission request, and the number of missing segments and/or the number of defective segments are determined;
and sending the missing segment number and/or the defective segment number to the sending end.
7. A computer storage medium, wherein a data synchronization method program between a cloud end and an edge end is stored on the computer storage medium, and when executed by a processor, the data synchronization method program between the cloud end and the edge end implements the steps of the data synchronization method between the cloud end and the edge end according to any one of claims 1 to 3 or claims 4 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111291712.XA CN113726912B (en) | 2021-11-03 | 2021-11-03 | Data synchronization method, system and storage medium between cloud end and edge end |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111291712.XA CN113726912B (en) | 2021-11-03 | 2021-11-03 | Data synchronization method, system and storage medium between cloud end and edge end |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113726912A CN113726912A (en) | 2021-11-30 |
CN113726912B true CN113726912B (en) | 2022-02-15 |
Family
ID=78686607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111291712.XA Active CN113726912B (en) | 2021-11-03 | 2021-11-03 | Data synchronization method, system and storage medium between cloud end and edge end |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113726912B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116016662B (en) * | 2022-12-26 | 2024-09-17 | 拉扎斯网络科技(上海)有限公司 | Message sending system, method and message processing method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106452660A (en) * | 2015-08-06 | 2017-02-22 | 鸿富锦精密工业(深圳)有限公司 | Data transfer system and method |
CN109889913A (en) * | 2019-03-21 | 2019-06-14 | 南京威翔科技有限公司 | A kind of analysis method of data packetloss in network environment |
CN110213020A (en) * | 2019-05-31 | 2019-09-06 | 杭州涂鸦信息技术有限公司 | Data transmission method, terminal, system and device based on bluetooth peripheral hardware |
CN112463882A (en) * | 2020-11-20 | 2021-03-09 | 广东省安心加科技有限公司 | Data synchronization method, cloud platform and edge terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102004032286A1 (en) * | 2004-07-02 | 2006-01-19 | Robert Bosch Gmbh | Method and device for transmitting additional data in an analog radio transmission system |
CN101296055B (en) * | 2007-04-29 | 2013-01-09 | 华为技术有限公司 | Data package dispatching method and device |
-
2021
- 2021-11-03 CN CN202111291712.XA patent/CN113726912B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106452660A (en) * | 2015-08-06 | 2017-02-22 | 鸿富锦精密工业(深圳)有限公司 | Data transfer system and method |
CN109889913A (en) * | 2019-03-21 | 2019-06-14 | 南京威翔科技有限公司 | A kind of analysis method of data packetloss in network environment |
CN110213020A (en) * | 2019-05-31 | 2019-09-06 | 杭州涂鸦信息技术有限公司 | Data transmission method, terminal, system and device based on bluetooth peripheral hardware |
CN112463882A (en) * | 2020-11-20 | 2021-03-09 | 广东省安心加科技有限公司 | Data synchronization method, cloud platform and edge terminal |
Also Published As
Publication number | Publication date |
---|---|
CN113726912A (en) | 2021-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3678346B1 (en) | Blockchain smart contract verification method and apparatus, and storage medium | |
US9705678B1 (en) | Fast CAN message authentication for vehicular systems | |
CN108876384B (en) | Transaction data processing method and device | |
CN106484453B (en) | Method and device for realizing system upgrading | |
CN109933535B (en) | Test case generation method and device and server | |
CN114281888B (en) | Block chain consensus method, device, equipment and storage medium | |
CN103841111A (en) | Method for preventing data from being submitted repeatedly and server | |
CN110995513A (en) | Data sending and receiving method in Internet of things system, Internet of things equipment and platform | |
CN113726912B (en) | Data synchronization method, system and storage medium between cloud end and edge end | |
CN112839003A (en) | Data verification method and system | |
CN108228789B (en) | Synchronous abnormity recovery method and device triggered by slave node | |
CN108234441B (en) | Method, apparatus, electronic device and storage medium for determining forged access request | |
CN110297926B (en) | On-orbit configuration method of satellite-borne image processing device | |
CN104618324A (en) | Method and device for transmitting data and detecting data legality | |
CN105704207A (en) | Method for generating unique identifier, terminal and network side | |
CN111191216B (en) | OFD signature client with JAVA interface and method and system for signature verification | |
CN108616381B (en) | Event correlation alarm method and device | |
CN109389271B (en) | Application performance management method and system | |
US12034708B2 (en) | Method and reproduction unit for reproducing protected messages | |
CN113553626A (en) | Data integrity detection method, device, equipment and storage medium | |
CN106341480B (en) | Data packet uploading method and device | |
CN106302715A (en) | A kind of file management method, Apparatus and system | |
JP2002259216A (en) | Method for detecting electronic file alteration, method for describing electronic file for the same and communication equipment | |
CN111694588A (en) | Engine upgrade detection method and device, computer equipment and readable storage medium | |
CN112636904A (en) | Random number generation and verification method and device, electronic equipment and readable storage medium |
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 |