CN114531322A - Method, system, device and medium for synchronizing multi-gateway data of Internet of things - Google Patents

Method, system, device and medium for synchronizing multi-gateway data of Internet of things Download PDF

Info

Publication number
CN114531322A
CN114531322A CN202210011262.2A CN202210011262A CN114531322A CN 114531322 A CN114531322 A CN 114531322A CN 202210011262 A CN202210011262 A CN 202210011262A CN 114531322 A CN114531322 A CN 114531322A
Authority
CN
China
Prior art keywords
data
gateway
multicast group
gateways
data synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210011262.2A
Other languages
Chinese (zh)
Other versions
CN114531322B (en
Inventor
李宝平
全泽昌
赵会选
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Broadlink Intelligent Technology Co ltd
Original Assignee
Nanjing Broadlink Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Broadlink Intelligent Technology Co ltd filed Critical Nanjing Broadlink Intelligent Technology Co ltd
Priority to CN202210011262.2A priority Critical patent/CN114531322B/en
Publication of CN114531322A publication Critical patent/CN114531322A/en
Application granted granted Critical
Publication of CN114531322B publication Critical patent/CN114531322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

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 application relates to a method, a system, a device and a medium for synchronizing data of multiple gateways of an Internet of things, wherein the method comprises the following steps: initiating a data synchronization request through a preset gateway in the multicast group, initiating multicast to other gateways in the multicast group according to the data synchronization request, if the data version received by other gateways in the multicast group is newer than the data version of the gateway, updating the data version to a new data version, and stopping multicast; if the data versions received by other gateways in the multicast group are older than the data version of the gateways, the other gateways initiate data synchronization requests, and continue to perform multicast until the data versions of all the gateways in the multicast group are synchronized to the latest version.

Description

Method, system, device and medium for synchronizing multi-gateway data of Internet of things
Technical Field
The application relates to the field of application of internet of things technology, in particular to a method, a system, a device and a medium for synchronizing multiple gateway data of the internet of things.
Background
In the internet of things system, a large number of pieces of sub-equipment are connected to an internet of things platform through a gateway, and the gateway undertakes the task of accessing the sub-equipment to the internet of things platform and also manages a large number of user data of scenes, families and the like. Most of the designs of the internet of things systems only have one gateway, and most of the schemes adopt a single gateway mode because multiple gateways have the problems of difficult data synchronization, difficult cooperation among the gateways, respective data isolation and inconvenience for joining and quitting at any time, and when a user needs to manage the data of the whole house, the data of each gateway can only be managed respectively.
At present, no effective solution is provided aiming at the problems of difficult cooperation and data isolation of the multiple gateways of the internet of things in the related technology.
Disclosure of Invention
The embodiment of the application provides a method, a system, a device and a medium for synchronizing data of multiple gateways of the Internet of things, and aims to at least solve the problems of difficult cooperation and data isolation of the multiple gateways of the Internet of things in the related technology.
In a first aspect, an embodiment of the present application provides a method for synchronizing data of multiple gateways of an internet of things, where the method includes:
initiating a data synchronization request through a preset gateway in a multicast group;
initiating multicast to other gateways in the multicast group according to the data synchronization request;
if the data version received by other gateways in the multicast group is newer than the data version of the gateway, the data version is updated to be a new data version, and the multicast is stopped;
if the data versions received by other gateways in the multicast group are older than the data version of the gateway, the other gateways initiate data synchronization requests and continue multicasting until the data versions of all the gateways in the multicast group are synchronized to be the latest version.
In some embodiments, before initiating the data synchronization request through a preset gateway in the multicast group, the method further comprises:
after the gateway accesses the preset local area network, the gateway registers the same multicast group through UDP, and all data information is synchronized in the multicast group through multicast.
In some embodiments, initiating a data synchronization request through a predetermined gateway in the multicast group comprises:
when network equipment managed by a preset gateway in a multicast group is in a preset state, a data synchronization request is initiated through the preset gateway, wherein the preset state comprises equipment power-on, equipment reconnection and network initialization.
In some embodiments, initiating a data synchronization request through a predetermined gateway in the multicast group comprises:
and if the preset gateway in the multicast group does not receive the data synchronization message sent by other gateways within the preset time period, reconstructing the socket of the preset gateway and the multicast group and initiating a data synchronization request.
In some embodiments, initiating a data synchronization request through a predetermined gateway in the multicast group comprises:
when a preset gateway in the multicast group receives data synchronization messages sent by other gateways, calculation is started, and after a certain time, a data synchronization request is initiated through the preset gateway.
In some embodiments, initiating a data synchronization request through a predetermined gateway in the multicast group comprises:
and initiating a data synchronization request after a random time interval through a preset gateway in the multicast group.
In some embodiments, a data synchronization request is initiated through a preset gateway in a multicast group, where the data synchronized is data maintained by the preset gateway.
In a second aspect, an embodiment of the present application provides a system for synchronizing multiple gateways of an internet of things, where the system includes a multicast group module and a gateway module;
the gateway module initiates a data synchronization request to the multicast group module;
the multicast group module initiates multicast to other gateways in the multicast group according to the data synchronization request;
if the data version received by other gateways in the multicast group is newer than the data version of the gateway, the data version is updated to be a new data version, and the multicast is stopped;
if the data versions received by other gateways in the multicast group are older than the data version of the gateway, the other gateways initiate data synchronization requests and continue multicasting until the data versions of all the gateways in the multicast group are synchronized to be the latest version.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the method for synchronizing data of multiple gateways of an internet of things according to the first aspect is implemented.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for synchronizing data of multiple gateways of an internet of things according to the first aspect.
Compared with the related art, the method, the system, the device and the medium for synchronizing the data of the multiple gateways of the internet of things provided by the embodiment of the application initiate a data synchronization request through the preset gateway in the multicast group, initiate multicast to other gateways in the multicast group according to the data synchronization request, if the data version received by other gateways in the multicast group is newer than the data version of the gateway, update the data version to a new data version, and stop multicasting; if the data versions received by other gateways in the multicast group are older than the data version of the gateways, the other gateways initiate data synchronization requests, and continue to perform multicast until the data versions of all the gateways in the multicast group are synchronized to the latest version, so that the problems of difficult collaboration and data isolation of the internet of things multi-gateway are solved, the automatic synchronization of data messages among the gateways in the multicast group is realized, the synchronization of the latest data is ensured, the propagation of old data is restrained, and the synchronization convergence speed of the data messages is high.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart illustrating steps of a method for synchronizing data of multiple gateways of an internet of things according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of interaction with devices after each gateway registers to the same multicast group;
fig. 3 is a timing diagram illustrating a method for synchronizing data of multiple gateways of the internet of things according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a multi-gateway data synchronization system of the internet of things according to an embodiment of the application;
fig. 5 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Description of the drawings: 41. a multicast group module; 42. and a gateway module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the application, and that it is also possible for a person skilled in the art to apply the application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
An embodiment of the present application provides a method for synchronizing multiple gateways of an internet of things, where fig. 1 is a flowchart illustrating steps of a method for synchronizing multiple gateways of an internet of things according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S102, a data synchronization request is initiated through a preset gateway in a multicast group;
specifically, a data synchronization request is initiated through a preset gateway in the multicast group, wherein the data of the data synchronization is data maintained by the preset gateway initiating the request.
Step S104, initiating multicast to other gateways in the multicast group according to the data synchronization request;
step S106, if the data version received by other gateways in the multicast group is newer than the self data version, the data version is updated to be a new data version, and the multicast is stopped;
step S108, if the data version received by other gateways in the multicast group is older than the data version of the gateway, other gateways initiate data synchronization request, and continue multicasting until the data versions of all gateways in the multicast group are synchronized to the latest version.
Through the steps S102 to S108 in the embodiment of the application, the problems of difficult collaboration and data isolation of multiple gateways of the Internet of things are solved, automatic synchronization of data messages among the gateways in the multicast group is realized, synchronization of the latest data is ensured, propagation of old data is restrained, and the synchronization convergence speed of the data messages is high.
In some embodiments, in step S102, before initiating the data synchronization request through a preset gateway in the multicast group, the method further includes:
after the gateway accesses the preset local area network, the gateway registers the same multicast group through UDP, and all data information is synchronized in the multicast group through multicast.
Specifically, a plurality of gateways are connected under the same local area network, the gateways have the same status, and the IP address is dynamically acquired from the router. Fig. 2 is a schematic structural diagram of interaction between each gateway and a device after registering in the same multicast group, as shown in fig. 2, after all gateways access a local area network, they register in the same multicast group through UDP, and all messages are synchronized through multicast.
The method has the advantages that the gateway is electrified, the gateway does not need to broadcast and discover other equipment, and can automatically receive the synchronous message in the multicast only after registering to the multicast group; when the gateway needs to synchronize the message to other multicast members, the gateway only needs to send the message to the multicast group; the number of messages in the local area network is much smaller than that of unicast, and broadcast storms cannot occur; each gateway need not maintain, i.e., know, the device connection information of other gateways.
In some embodiments, the step S102, initiating a data synchronization request through a preset gateway in the multicast group includes:
when network equipment managed by a preset gateway in a multicast group is in a preset state, a data synchronization request is initiated through the preset gateway, wherein the preset state comprises equipment power-on, equipment reconnection and network initialization.
In some embodiments, the step S102, initiating a data synchronization request through a preset gateway in the multicast group includes:
and if the preset gateway in the multicast group does not receive the data synchronization message sent by other gateways in the preset time period, reconstructing the socket of the preset gateway and the multicast group and initiating a data synchronization request.
In some embodiments, the step S102, initiating a data synchronization request through a preset gateway in the multicast group includes:
when the preset gateway in the multicast group receives the data synchronization message sent by other gateways, the calculation is started, and after a certain time, the data synchronization request is initiated through the preset gateway.
It should be noted that the receiving pre-set gateway receives the data synchronization message sent by itself except for the receiving pre-set gateway.
In some embodiments, the step S102, initiating a data synchronization request through a preset gateway in the multicast group includes:
and initiating a data synchronization request after a random time interval through a preset gateway in the multicast group.
It should be noted that the time intervals of each time are randomly generated. This makes it possible to make the gateways that initiate synchronization different each time, and the times of initiation do not conflict.
The specific embodiment of the present application provides a method for synchronizing data of multiple gateways of an internet of things, fig. 3 is a schematic timing diagram of the method for synchronizing data of multiple gateways of the internet of things according to the specific embodiment of the present application, and as shown in fig. 3, the method includes the following steps:
step one, after a gateway 1, a gateway 2 and a gateway 3 are connected to a preset local area network, the gateways are registered in the same multicast group through UDP, and all data information is synchronized in the multicast group through multicast, wherein a data Version (Version1) maintained by the gateway 1 is the oldest, a data Version (Version2) maintained by the gateway 2 is the newest, and a data Version (Version3) maintained by the gateway 3 is the newest.
And step two, initiating a data synchronization request through the gateway 2.
And step three, initiating multicast to the gateway 1 and the gateway 3 according to the data synchronization request.
And step four, because the data Version maintained by the gateway 2 is newer than the data Version maintained by the gateway 1, updating the data maintained by the gateway 1 into the data maintained by the gateway 2 (Version1 data is updated into Version2 data), and stopping multicasting.
It should be noted that, since it is a data synchronization request initiated by the gateway 2, the gateway 2 may ignore the request.
Step five, because the data Version maintained by the gateway 2 is older than the data Version maintained by the gateway 3, the data (Version3 data) maintained by the gateway 3 is not changed, and the data synchronization request (multicast) is continuously initiated
Step six, because the data Version maintained by the gateway 3 is newer than the data Version maintained by the gateway 1, the data maintained by the gateway 1 is updated to the data maintained by the gateway 3 (Version1 data is updated to Version3 data), and the multicast is stopped.
Step seven, because the data Version maintained by the gateway 3 is newer than the data Version maintained by the gateway 2, the data maintained by the gateway 2 is updated to the data maintained by the gateway 3 (Version2 data is updated to Version3 data), and the multicast is stopped.
It should be noted that, since it is a data synchronization request initiated by the gateway 3, the gateway 3 may ignore the request.
At this point, the data versions of all gateways in the multicast group are synchronized to the latest version.
Through the steps one to seven in the embodiment of the present application, the gateway can automatically receive the synchronization message in the multicast only after registering to the multicast group. When the gateway needs to synchronize the message to other multicast members, the gateway only needs to send the message to the multicast group. All gateways do not need to know the connection information of other gateways. The message convergence speed is high. Through a series of principles, the synchronization of the latest data is ensured, and the propagation of the old data is restrained. The number of messages in the local area network is much smaller than that of unicast, and broadcast storms cannot occur. The data robustness is good. Any gateway is offline or damaged, and the robustness of the data of the whole system cannot be influenced.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the application provides a system for synchronizing multiple gateways of an internet of things, fig. 4 is a structural block diagram of the system for synchronizing multiple gateways of the internet of things according to the embodiment of the application, and as shown in fig. 4, the system includes a multicast group module 41 and a gateway module 42, where the gateway module includes a plurality of gateways;
the gateway module 42 initiates a data synchronization request to the multicast group module;
the multicast group module 41 initiates multicast to other gateways in the multicast group according to the data synchronization request;
if the data version received by other gateways in the multicast group is newer than the data version of the gateway, the data version is updated to be a new data version, and the multicast is stopped;
if the data version received by other gateways in the multicast group is older than the data version of the gateway, other gateways initiate data synchronization requests and continue multicasting until the data versions of all the gateways in the multicast group are synchronized to be the latest version.
By the multicast group module 41 and the gateway module 42, the problems of difficult collaboration and data isolation of multiple gateways of the internet of things are solved, automatic synchronization of data messages among the gateways in the multicast group is realized, synchronization of the latest data is guaranteed, propagation of old data is suppressed, and the data message synchronization convergence speed is high.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules may be located in different processors in any combination.
The present embodiment also provides an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In addition, by combining the method for synchronizing the data of the multiple gateways of the internet of things in the embodiment, the embodiment of the application can be realized by providing a storage medium. The storage medium having stored thereon a computer program; when being executed by a processor, the computer program realizes the method for synchronizing the data of the multiple gateways of the internet of things in any embodiment.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a method for synchronizing data of multiple gateways of the Internet of things. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, fig. 5 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application, and as shown in fig. 5, an electronic device is provided, where the electronic device may be a server, and the internal structure diagram may be as shown in fig. 5. The electronic device comprises a processor, a network interface, an internal memory and a non-volatile memory connected by an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used for providing calculation and control capability, the network interface is used for communicating with an external terminal through network connection, the internal memory is used for providing an environment for an operating system and the running of a computer program, the computer program is executed by the processor to realize a method for synchronizing the data of the multiple gateways of the Internet of things, and the database is used for storing the data.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be understood by those skilled in the art that various technical features of the above-described embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above-described embodiments are not described, however, so long as there is no contradiction between the combinations of the technical features, they should be considered as being within the scope of the present description.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for synchronizing data of multiple gateways of the Internet of things is characterized by comprising the following steps:
initiating a data synchronization request through a preset gateway in a multicast group;
initiating multicast to other gateways in the multicast group according to the data synchronization request;
if the data version received by other gateways in the multicast group is newer than the data version of the gateway, the data version is updated to be a new data version, and the multicast is stopped;
if the data versions received by other gateways in the multicast group are older than the data version of the gateway, the other gateways initiate data synchronization requests and continue multicasting until the data versions of all the gateways in the multicast group are synchronized to be the latest version.
2. The method of claim 1, wherein prior to initiating a data synchronization request through a pre-defined gateway within the multicast group, the method further comprises:
after the gateway accesses the preset local area network, the gateway registers the same multicast group through UDP, and all data information is synchronized in the multicast group through multicast.
3. The method of claim 1, wherein initiating a data synchronization request through a pre-defined gateway within a multicast group comprises:
when network equipment managed by a preset gateway in a multicast group is in a preset state, a data synchronization request is initiated through the preset gateway, wherein the preset state comprises equipment power-on, equipment reconnection and network initialization.
4. The method of claim 1, wherein initiating a data synchronization request through a pre-defined gateway within a multicast group comprises:
and if the preset gateway in the multicast group does not receive the data synchronization message sent by other gateways within the preset time period, reconstructing the socket of the preset gateway and the multicast group and initiating a data synchronization request.
5. The method of claim 1, wherein initiating a data synchronization request through a pre-defined gateway within a multicast group comprises:
when a preset gateway in the multicast group receives data synchronization messages sent by other gateways, calculation is started, and after a certain time, a data synchronization request is initiated through the preset gateway.
6. The method of claim 1, wherein initiating a data synchronization request through a pre-defined gateway within a multicast group comprises:
and initiating a data synchronization request after a random time interval through a preset gateway in the multicast group.
7. The method of claim 1, wherein the data synchronization request is initiated through a preset gateway in the multicast group, and wherein the data for data synchronization is data maintained by the preset gateway.
8. A system for synchronizing data of multiple gateways of an Internet of things is characterized by comprising a multicast group module and a gateway module;
the gateway module initiates a data synchronization request to the multicast group module;
the multicast group module initiates multicast to other gateways in the multicast group according to the data synchronization request;
if the data version received by other gateways in the multicast group is newer than the data version of the gateway, the data version is updated to be a new data version, and the multicast is stopped;
if the data versions received by other gateways in the multicast group are older than the data version of the gateway, the other gateways initiate data synchronization requests and continue multicasting until the data versions of all the gateways in the multicast group are synchronized to be the latest version.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the method for synchronizing data of multiple gateways of internet of things according to any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for synchronizing data of multiple gateways of the internet of things according to any one of claims 1 to 6.
CN202210011262.2A 2022-01-06 2022-01-06 Method, system, device and medium for synchronizing multi-gateway data of Internet of things Active CN114531322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210011262.2A CN114531322B (en) 2022-01-06 2022-01-06 Method, system, device and medium for synchronizing multi-gateway data of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210011262.2A CN114531322B (en) 2022-01-06 2022-01-06 Method, system, device and medium for synchronizing multi-gateway data of Internet of things

Publications (2)

Publication Number Publication Date
CN114531322A true CN114531322A (en) 2022-05-24
CN114531322B CN114531322B (en) 2023-09-29

Family

ID=81621570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210011262.2A Active CN114531322B (en) 2022-01-06 2022-01-06 Method, system, device and medium for synchronizing multi-gateway data of Internet of things

Country Status (1)

Country Link
CN (1) CN114531322B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101138205A (en) * 2005-03-04 2008-03-05 富士通株式会社 Data packet relay unit
CN101414923A (en) * 2008-05-09 2009-04-22 上海未来宽带技术及应用工程研究中心有限公司 Method for implementing ONU software remote update in GEPON through multicast technology
CN102298530A (en) * 2011-08-19 2011-12-28 深圳创维数字技术股份有限公司 Set top box software upgrading method and device
US20150081633A1 (en) * 2012-05-28 2015-03-19 Tencent Technology (Shenzhen) Company Limited Data synchronization method and device
CN106850222A (en) * 2017-01-04 2017-06-13 普联技术有限公司 The configuration and synchronization method of wireless networking devices, wireless networking devices and system
CN108491222A (en) * 2018-03-27 2018-09-04 青岛海信智慧家居系统股份有限公司 Gateway device upgrade method, device, gateway device and storage medium
CN109831317A (en) * 2018-12-21 2019-05-31 武汉长光科技有限公司 A kind of method that new online ONT upgrades automatically in PON system
US20200012533A1 (en) * 2018-07-04 2020-01-09 Graphcore Limited Gateway to gateway synchronisation
CN111147560A (en) * 2019-12-18 2020-05-12 河北远东通信系统工程有限公司 Data synchronization method based on HTTP (hyper text transport protocol) protocol high speed, high stability and breakpoint continuous transmission
CN112003943A (en) * 2020-08-25 2020-11-27 苏州思必驰信息科技有限公司 Voice data synchronization method and device
CN112559009A (en) * 2020-12-15 2021-03-26 深圳创维数字技术有限公司 Method, device and storage medium for synchronous upgrading under Mesh networking

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101138205A (en) * 2005-03-04 2008-03-05 富士通株式会社 Data packet relay unit
CN101414923A (en) * 2008-05-09 2009-04-22 上海未来宽带技术及应用工程研究中心有限公司 Method for implementing ONU software remote update in GEPON through multicast technology
CN102298530A (en) * 2011-08-19 2011-12-28 深圳创维数字技术股份有限公司 Set top box software upgrading method and device
US20150081633A1 (en) * 2012-05-28 2015-03-19 Tencent Technology (Shenzhen) Company Limited Data synchronization method and device
CN106850222A (en) * 2017-01-04 2017-06-13 普联技术有限公司 The configuration and synchronization method of wireless networking devices, wireless networking devices and system
CN108491222A (en) * 2018-03-27 2018-09-04 青岛海信智慧家居系统股份有限公司 Gateway device upgrade method, device, gateway device and storage medium
US20200012533A1 (en) * 2018-07-04 2020-01-09 Graphcore Limited Gateway to gateway synchronisation
CN109831317A (en) * 2018-12-21 2019-05-31 武汉长光科技有限公司 A kind of method that new online ONT upgrades automatically in PON system
CN111147560A (en) * 2019-12-18 2020-05-12 河北远东通信系统工程有限公司 Data synchronization method based on HTTP (hyper text transport protocol) protocol high speed, high stability and breakpoint continuous transmission
CN112003943A (en) * 2020-08-25 2020-11-27 苏州思必驰信息科技有限公司 Voice data synchronization method and device
CN112559009A (en) * 2020-12-15 2021-03-26 深圳创维数字技术有限公司 Method, device and storage medium for synchronous upgrading under Mesh networking

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
曾兴胜;黄东;: "GPON中业务数据的同步机制设计", 计算机技术与发展, no. 02 *
李文平: ""证券交易前置系统的设计与实现"", 《中国优秀硕士学位论文全文数据库》 *

Also Published As

Publication number Publication date
CN114531322B (en) 2023-09-29

Similar Documents

Publication Publication Date Title
US10833919B2 (en) Node device operation method, work status switching apparatus, node device, and medium
US11172023B2 (en) Data synchronization method and system
CN107295080B (en) Data storage method applied to distributed server cluster and server
US10979286B2 (en) Method, device and computer program product for managing distributed system
CN102118263B (en) Method and system for distribution of configuration information
WO2020186909A1 (en) Virtual network service processing method, apparatus and system, and controller and storage medium
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
CN110149382A (en) Data synchronization method, system, main server, synchronization client and medium
US10268506B2 (en) Method and system for master less node communication
US20180077007A1 (en) Redundant storage solution
US20170085633A1 (en) Method and apparatus for saving cloud service traffic using peer-to-peer connection
CN112751847A (en) Interface call request processing method and device, electronic equipment and storage medium
CN110933160A (en) Data access method, server, terminal and storage medium
CN116566984B (en) Routing information creation method and device of k8s container cluster and electronic equipment
CN114185558A (en) Native application master selection method and device based on K8s and storage medium
CN115794139A (en) Mirror image data processing method, device, equipment and medium
CN114095739B (en) Video live broadcast system
CN102118422B (en) The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system
US20220038444A1 (en) Cloud device, application processing method, electronic device and storage medium
CN114531322A (en) Method, system, device and medium for synchronizing multi-gateway data of Internet of things
CN102970312A (en) Network booting method and system based on peer-to-peer (P2P) diskless device
CN112954133B (en) Method, device, electronic device and storage medium for synchronizing node time
CN114401311A (en) Microservice registration and discovery method, microservice registration and discovery device, electronic equipment and medium
CN113010600B (en) Data management system, method, related device and medium based on block chain
Watabe et al. A distributed multiparty desktop conferencing system and its architecture

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