CN107612719B - Data backup method and device for Internet of things access point - Google Patents

Data backup method and device for Internet of things access point Download PDF

Info

Publication number
CN107612719B
CN107612719B CN201710755237.4A CN201710755237A CN107612719B CN 107612719 B CN107612719 B CN 107612719B CN 201710755237 A CN201710755237 A CN 201710755237A CN 107612719 B CN107612719 B CN 107612719B
Authority
CN
China
Prior art keywords
internet
access point
things
things access
backup
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
Application number
CN201710755237.4A
Other languages
Chinese (zh)
Other versions
CN107612719A (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.)
Shenzhen Shenglu IoT Communication Technology Co Ltd
Original Assignee
Shenzhen Shenglu IoT Communication 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 Shenzhen Shenglu IoT Communication Technology Co Ltd filed Critical Shenzhen Shenglu IoT Communication Technology Co Ltd
Priority to CN201710755237.4A priority Critical patent/CN107612719B/en
Publication of CN107612719A publication Critical patent/CN107612719A/en
Application granted granted Critical
Publication of CN107612719B publication Critical patent/CN107612719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data backup method of an Internet of things access point and the Internet of things access point, wherein the method comprises the following steps: the method comprises the steps that a first Internet of things access point detects the probability of failure of the first Internet of things access point, and if the probability is larger than a set threshold value, a failure sign is determined; the first Internet of things access point sends the data stored in the cache to a main node of a first distributed system for data backup; the distributed system includes: a master node and a plurality of slave nodes. The technical scheme provided by the application has the advantage of good user experience.

Description

Data backup method and device for Internet of things access point
Technical Field
The application relates to the field of communication, in particular to a data backup method and device for an access point of the Internet of things.
Background
The Internet of things is an important component of a new generation of information technology and is also an important development stage of the 'informatization' era. Its english name is: "Internet of things (IoT)". As the name implies, the Internet of things is the Internet with connected objects. This has two layers: firstly, the core and the foundation of the internet of things are still the internet, and the internet is an extended and expanded network on the basis of the internet; and secondly, the user side extends and expands to any article to perform information exchange and communication, namely, the article information. The internet of things is widely applied to network fusion through communication perception technologies such as intelligent perception, identification technology and pervasive computing, and is also called as the third wave of development of the world information industry after computers and the internet. The internet of things is an application expansion of the internet, and is not a network, but a business and an application. Therefore, the application innovation is the core of the development of the internet of things, and the innovation 2.0 taking the user experience as the core is the soul of the development of the internet of things.
When the existing access point of the internet of things breaks down, the backup of data stored in a cache cannot be supported, the operation of the local area network of the internet of things is influenced, and all user experience degrees are low.
Disclosure of Invention
The application provides a data backup method of an Internet of things access point. The data of the terminal of the Internet of things can be backed up in real time, and user experience is improved.
In a first aspect, a data backup method for an access point of the internet of things is provided, where the method includes the following steps: the method comprises the steps that a first Internet of things access point detects the probability of failure of the first Internet of things access point, and if the probability is larger than a set threshold value, a failure sign is determined; the first Internet of things access point sends the data stored in the cache to a main node of a first distributed system for data backup; the distributed system includes: a master node and a plurality of slave nodes.
Optionally, the first internet of things access point receives a first data backup response sent by the master node of the first distributed system, and if the first internet of things access point receives the first data backup response at a set time, it is determined that the data backup is successful.
Optionally, if the first internet of things access point does not receive the data backup response within a set time, sending a stored second data backup request to a master node of a second distributed system;
and the first Internet of things access point receives a response of a second data backup request fed back by the main node of the distributed system and determines that the data backup is successful.
Optionally, the sending, by the first internet of things access point, the data stored in the cache to the second backup internet of things access point or the third backup internet of things access point for data backup specifically includes:
the first internet of things access point receives a second cache allowance and a second network transmission rate of the second backup internet of things access point sent by the second backup internet of things access point, and the first internet of things access point receives a third cache allowance and a third network transmission rate of the third backup internet of things access point sent by the third backup internet of things;
when the second cache allowance is larger than the third cache allowance and the second network transmission rate is higher than a set network speed threshold, the first internet of things access point sends more than 50% of data stored in the cache to a second backup internet of things access point, the remaining data of the data stored in the cache is sent to a third backup internet of things access point, the first internet of things access point sends a first switching message to the internet of things terminal, and the first switching message is used for indicating the internet of things terminal to be switched to the second backup internet of things access point;
when the second cache allowance is larger than the third cache allowance and a second network transmission speed is lower than the network speed threshold value, the first internet of things access point sends the data stored in the cache to the third backup internet of things access point for backup, the first internet of things access point sends a second switching message to the internet of things terminal, and the second switching message is used for indicating the internet of things terminal to be switched to the third backup internet of things access point; the third failure probability is lower than the set threshold.
Optionally, the method further includes:
the first internet of things access point receives the number of connected internet of things terminals sent by other internet of things access points, if the number of connected internet of things terminals of the second backup internet of things access point is higher than a number threshold, the first internet of things access point quits the data double backup group, the first internet of things access point and a fourth internet of things access point are recombined to form another data double backup group, the number of connected internet of things terminals of the fourth internet of things access point is lower than the number threshold, and the other internet of things access points comprise all internet of things access points except the first internet of things access point in an internet of things local area network.
Optionally, the method further includes:
the first Internet of things access point receives position information sent by other Internet of things access points, the distance between the first Internet of things access point and the other Internet of things access points is calculated according to the position information, if the distance between the second backup Internet of things access point and the first Internet of things access point is higher than a distance threshold value, the first Internet of things access point exits the data double backup group, the first Internet of things access point and a fifth Internet of things access point are reconstructed into a further data double backup group, the distance between the fifth Internet of things access point and the first Internet of things access point is lower than the distance threshold value, and the other Internet of things access points comprise all the Internet of things access points except the first Internet of things access point in an Internet of things local area network.
In a second aspect, an internet of things access point is provided, where the internet of things access point is a first internet of things access point, and the internet of things access point includes: the detection unit is used for detecting the probability of the self fault; the processing unit is used for determining that a fault sign appears if the probability is larger than a set threshold; the receiving and sending unit is used for sending the data stored in the cache to a main node of the first distributed system for data backup; the distributed system includes: a master node and a plurality of slave nodes.
Optionally, the transceiver unit is further configured to receive a first data backup response sent by the master node of the first distributed system, and determine that data backup is successful if the first data backup response is received by the first internet of things access point at a set time.
Optionally, the transceiver unit is further configured to send a stored second data backup request to the master node of the second distribution system if the first internet of things access point does not receive the data backup response within a set time.
Optionally, the transceiver unit is further configured to receive a second cache margin and a second network transmission rate of the second backup internet-of-things access point sent by the second backup internet-of-things access point, and receive a third cache margin and a third network transmission rate of the third backup internet-of-things access point sent by the third backup internet-of-things;
the transceiver unit is further configured to send data stored in the cache exceeding 50% to a second backup internet of things access point, send remaining data of the data stored in the cache to a third backup internet of things access point, and send a first switching message to the internet of things terminal, where the first switching message is used to instruct the internet of things terminal to switch to the second backup internet of things access point, when the second cache margin is greater than the third cache margin and the second network transmission rate is higher than a set network speed threshold;
the transceiver unit is further configured to send the data stored in the cache to the third backup internet of things access point backup and send a second switching message to the internet of things terminal when the second cache margin is greater than the third cache margin and a second network transmission speed is lower than the network speed threshold, where the second switching message is used to instruct the internet of things terminal to switch to the third backup internet of things access point; the third failure probability is lower than the set threshold.
Optionally, the transceiver unit is further configured to receive the number of connected internet of things terminals sent by other internet of things access points;
the processing unit is configured to, if the number of connected internet-of-things terminals of the second backup internet-of-things access point is higher than a number threshold, quit the data dual-backup group, reconstruct the first internet-of-things access point and a fourth internet-of-things access point into another data dual-backup group, where the number of connected internet-of-things terminals of the fourth internet-of-things access point is lower than the number threshold, and the other internet-of-things access points include all internet-of-things access points in the internet-of-things local area network except the first internet-of-things access point.
Optionally, the transceiver unit is further configured to receive location information sent by other internet of things access points;
the processing unit is further configured to calculate distances between the first internet-of-things access point and other internet-of-things access points according to the location information, and if the distance between the second backup internet-of-things access point and the first internet-of-things access point is higher than a distance threshold, the data dual-backup packet is exited, the first internet-of-things access point and a fifth internet-of-things access point are reconfigured into another data dual-backup packet, the distance between the fifth internet-of-things access point and the first internet-of-things access point is lower than the distance threshold, and the other internet-of-things access points include all internet-of-things access points in the internet-of-things local area.
In a third aspect, a computer storage medium is provided, where the computer storage medium may store a program, and the program includes some or all of the steps of any one of the data backup methods for an access point of the internet of things described in the first aspect.
In a fourth aspect, an internet of things access point is provided, which includes: a processor, a memory, a transceiver, and a bus, the processor, the memory, the transceiver being connected by the bus, the memory storing program code. The processor is used for calling the program codes stored in the memory and executing part or all of the steps of any one of the data backup methods of the access point of the internet of things described in the first aspect.
According to the technical scheme provided by the invention, the first Internet of things access point detects the fault probability of the first Internet of things access point, and when the fault probability exceeds a set threshold value, a backup request is sent to the other Internet of things access point in the backup group to backup data stored in a cache stored in the cache, so that the data backup is realized, the fault resistance capability of the Internet of things access point is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a network based on an access point of the internet of things.
Fig. 2 is a flowchart of a data backup method for an internet of things access point according to an embodiment of the present application.
Fig. 3 is a flowchart of a data backup method for an access point of the internet of things according to another embodiment of the present application.
Fig. 4 is a schematic structural diagram of an internet of things access point provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of a hardware structure of an internet of things access point provided in the present application.
Detailed Description
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel, concurrently, or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The term "computer device" or "computer" in this context refers to an intelligent electronic device that can execute predetermined processes such as numerical calculation and/or logic calculation by running predetermined programs or instructions, and may include a processor and a memory, wherein the processor executes a pre-stored instruction stored in the memory to execute the predetermined processes, or the predetermined processes are executed by hardware such as ASIC, FPGA, DSP, or a combination thereof. Computer devices include, but are not limited to, servers, personal computers, laptops, tablets, smart phones, and the like.
The methods discussed below, some of which are illustrated by flow diagrams, may be implemented by hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine or computer readable medium such as a storage medium. The processor(s) may perform the necessary tasks.
Specific structural and functional details disclosed herein are merely representative and are provided for purposes of describing example embodiments of the present invention. The present invention may, however, be embodied in many alternate forms and should not be construed as limited to only the embodiments set forth herein.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element may be termed a second element, and, similarly, a second element may be termed a first element, without departing from the scope of example embodiments. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be noted that, in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently, or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved. The present invention is described in further detail below with reference to the attached drawing figures.
According to one aspect of the invention, a data backup method for an access point of the Internet of things is provided. The method is applied to an internet of things network shown in fig. 1, and as shown in fig. 1, the internet of things network includes: the internet of things terminal comprises an internet of things terminal 10, an internet of things access point AP20 and a gateway 30, and the internet of things terminal can have different expression forms according to different situations, for example, the internet of things terminal specifically can be: the mobile phone, the tablet computer, the computer, and the like may also include other devices with networking functions, such as a smart television, a smart air conditioner, a smart water bottle, or some terminal devices of the internet of things, the terminal 10 of the internet of things is connected with the AP20 in a wireless manner, and the AP20 is connected with the gateway 30 in another manner (i.e., a connection manner different from the wireless manner) to access the internet, where the wireless manner includes but is not limited to: the other mode may be an LTE or wired mode, and the gateway may specifically be a mobile base station, a mobile relay station, an exchange, and other devices. Fig. 1 is a wired example, and for convenience of representation, only one solid line is shown here.
The gateway 30 may be a Personal Computer (PC) according to the size of the internet of things, and may also be a plurality of PCs, servers or server groups in practical applications, and the specific embodiment of the present invention is not limited to the specific representation form of the gateway 30.
Referring to fig. 2, fig. 2 is a diagram of a data backup method for an access point of the internet of things, where the method is implemented in a network architecture as shown in fig. 1, a plurality of terminals of the internet of things may be connected to a repeater, and the repeater may be specifically a mobile phone that opens a hot spot, a personal computer that provides wireless connection, or a conventional hot spot device such as a router, and the method is shown in fig. 2 and includes the following steps:
step S201, the first Internet of things access point detects the probability of the fault of the first Internet of things access point, and if the probability is larger than a set threshold value, the fault sign is determined.
The implementation method of the step S201 may specifically be:
the first internet-of-things access point may determine the probability of the failure by detecting a packet loss rate of the data packet, and certainly, in practical application, the probability of the failure may also be detected by using other methods, for example, detecting a network delay and the like.
Step S202, the first Internet of things access point sends the data stored in the cache to a second backup Internet of things access point or a third backup Internet of things access point for data backup.
The implementation method of the step S202 may be:
and the first Internet of things terminal sends the data stored in the cache to the AP, and the AP forwards the data stored in the cache to the second backup Internet of things access point or the third backup Internet of things access point so as to realize data backup.
Each manufacturer of the type of the internet of things terminal in the step S202 may set according to its own condition, for example, the internet of things terminal may specifically include: intelligent electric light, intelligent TV, intelligent cleaning equipment, intelligent sleep equipment, intelligent supervisory equipment etc. the form of its performance can be various, for intelligent electric light for example, this intelligent electric light includes but not limited to: intelligence desk lamp, intelligence ceiling lamp, equipment such as intelligence wall lamp, for example to intelligent television, it can be three stars brand intelligent television, of course it also can be sharp brand intelligent television, for example to intelligent cleaning equipment, it can be, intelligence robot of sweeping the floor, of course it can also include equipment such as intelligent dust catcher, intelligent garbage disposer, for example to intelligent sleep equipment, it can be: for example, for an intelligent monitoring device, the intelligent monitoring device may be an intelligent sphygmomanometer, an intelligent thermometer, or the like, and the specific form, number, or type of the internet of things terminal is not limited in the present invention.
In the step S202, the data transmission mode from the terminal of the internet of things to the relay may be a mode of sending a data packet through wireless connection, where the wireless mode includes but is not limited to: wireless modes such as bluetooth, Wireless Fidelity (WIFI) and Zigbee, wherein the WIFI needs to comply with the standard of ieee802.11b.
Alternatively, the step S202 may be replaced by the following steps.
Step S202-1, the first Internet of things access point sends the data stored in the cache to a main node of the first distributed system for stored data backup.
The distributed system comprises: a master node and a plurality of slave nodes.
For the distributed system, after the distributed system backs up data, the master node synchronizes the backed-up data to all the slave nodes for backup, so that the backed-up data can be transmitted back to the first internet of things node as long as any one node in the distributed system is normal, and the distributed system has the advantage of improving the backup stability. For the distributed system, if the master node fails, a new master node can be reselected, and after the new master node is elected, the connection between the new master node and the first internet of things access point is established, so that the link of the distributed system can not be influenced.
Optionally, the first internet of things access point receives a first data backup response sent by the master node of the first distributed system, and if the first internet of things access point receives the first data backup response at a set time, it is determined that the data backup is successful.
The data backup response may specifically be an ACK message, and specifically, a special field may be carried in the ACK message to determine whether the data backup is successful, for example, 10 pieces of 1 indicate that the backup is successful, and 10 pieces of 0 indicate that the backup is unsuccessful.
Optionally, the method further includes: if the first Internet of things access point does not receive the data backup response within the set time, sending a stored second data backup request to a main node of a second distributed system; and the first Internet of things access point receives a response of a second data backup request fed back by the main node of the distributed system and determines that the data backup is successful.
It should be noted that the internet of things and the relay are only for the wireless relay, because the internet of things has a large number of devices to access, and for the relay, if the relay is connected by wire, the number of terminals to access is limited, and for the home, the terminals are connected by wire, which is not imaginable for the wiring of the home user, and in addition, the cost of the wire is very high, so the connection between the terminal of the internet of things and the relay in the technical solution of the present invention is only limited to wireless connection.
The second backup Internet of things access point and the first Internet of things access point belong to a data double backup group; the third backup internet of things access point and the first internet of things access point belong to another data dual backup group. Two internet of things access points in the backup grouping have backup setting, and in the same backup grouping, if one internet of things access point is about to fail, the other internet of things access point in the backup grouping can send cached data to backup the cached data.
Optionally, the implementation method of step S202 may specifically be:
the first internet of things access point receives a second cache allowance and a second network transmission rate of the second backup internet of things access point sent by the second backup internet of things access point, and the first internet of things access point receives a third cache allowance and a third network transmission rate of the third backup internet of things access point sent by the third backup internet of things;
when the second cache allowance is larger than the third cache allowance and the second network transmission rate is higher than a set network speed threshold, the first internet of things access point sends more than 50% of data stored in the cache to a second backup internet of things access point, the remaining data of the data stored in the cache is sent to a third backup internet of things access point, the first internet of things access point sends a first switching message to the internet of things terminal, and the first switching message is used for indicating the internet of things terminal to be switched to the second backup internet of things access point;
when the second cache allowance is larger than the third cache allowance and a second network transmission speed is lower than the network speed threshold value, the first internet of things access point sends the data stored in the cache to the third backup internet of things access point for backup, the first internet of things access point sends a second switching message to the internet of things terminal, and the second switching message is used for indicating the internet of things terminal to be switched to the third backup internet of things access point; the third failure probability is lower than the set threshold.
The scheme is mainly set to avoid the situation that the network speed of the internet of things relay station after data sending is too low to influence data transmission, and for backup grouping, because only two internet of things access points exist, if the network speed of the two internet of things access points is too low, the situation that the backup internet of things access points are not selectable may occur, and the situation can be avoided.
Optionally, the implementation method of step S202 may specifically be:
the first internet of things access point receives the number of connected internet of things terminals sent by other internet of things access points, if the number of connected internet of things terminals of the second backup internet of things access point is higher than a number threshold, the first internet of things access point quits the data double backup group, the first internet of things access point and a fourth internet of things access point are recombined to form another data double backup group, the number of connected internet of things terminals of the fourth internet of things access point is lower than the number threshold, and the other internet of things access points comprise all internet of things access points except the first internet of things access point in an internet of things local area network.
According to the technical scheme, the backup grouping is updated, and the problem that the internet of things terminals cannot be successfully switched due to the fact that the number of the accessed internet of things terminals is too large when the internet of things terminals are required to be switched is mainly avoided, so that the equipment which is not qualified in the backup grouping and is provided with a large number of accessed internet of things terminals needs to be removed and updated.
Optionally, the implementation method of step S202 may specifically be:
the first Internet of things access point receives position information sent by other Internet of things access points, the distance between the first Internet of things access point and the other Internet of things access points is calculated according to the position information, if the distance between the second backup Internet of things access point and the first Internet of things access point is higher than a distance threshold value, the first Internet of things access point exits the data double backup group, the first Internet of things access point and a fifth Internet of things access point are reconstructed into a further data double backup group, the distance between the fifth Internet of things access point and the first Internet of things access point is lower than the distance threshold value, and the other Internet of things access points comprise all the Internet of things access points except the first Internet of things access point in an Internet of things local area network.
The technical scheme is to avoid that the terminal of the internet of things cannot be connected with the access point of the internet of things after switching due to too long distance, so that the success rate of switching and the data transmission rate are improved.
According to the method provided by the figure 2, the first internet of things access point detects the probability of the fault of the first internet of things access point, and when the probability of the fault exceeds a set threshold value, a backup request is sent to the other internet of things access point in the backup group to backup data stored in a cache stored in the cache, so that the data backup is realized, the fault resistance capability of the internet of things access point is improved, and the user experience degree is improved.
Referring to fig. 3, fig. 3 is a diagram of a data backup method for an access point of the internet of things, where the method is implemented in a network architecture as shown in fig. 1, a plurality of terminals of the internet of things may be connected to a repeater, and the repeater may specifically be a mobile phone that opens a hot spot, a personal computer that provides wireless connection, or a conventional hot spot device such as a router, and the method is shown in fig. 3 and includes the following steps:
step S301, the first Internet of things access point detects the probability of the fault of the first Internet of things access point, and if the probability is larger than a set threshold value, the fault sign is determined.
The implementation method of step S301 may specifically be:
the first internet-of-things access point may determine the probability of the failure by detecting a packet loss rate of the data packet, and certainly, in practical application, the probability of the failure may also be detected by using other methods, for example, detecting an uploading network speed and the like.
Step S302, the first Internet of things access point receives a second cache allowance of the second backup Internet of things access point sent by the second backup Internet of things access point, and the first Internet of things access point receives a third cache allowance of the third backup Internet of things access point sent by the third backup Internet of things.
The implementation method of the step S302 may be:
the first Internet of things access point receives a second cache allowance of the second backup Internet of things access point, which is sent by the second backup Internet of things access point, in a wireless mode; and the first Internet of things access point receives the third cache allowance of the third backup Internet of things access point sent by the third backup Internet of things in a wireless mode. Wireless means include, but are not limited to: wireless modes such as bluetooth, Wireless Fidelity (WIFI) and Zigbee, wherein the WIFI needs to comply with the standard of ieee802.11b.
Each manufacturer of the type of the internet of things terminal in the step S302 may set according to its own condition, for example, the internet of things terminal may specifically include: intelligent electric light, intelligent TV, intelligent cleaning equipment, intelligent sleep equipment, intelligent supervisory equipment etc. the form of its performance can be various, for intelligent electric light for example, this intelligent electric light includes but not limited to: intelligence desk lamp, intelligence ceiling lamp, equipment such as intelligence wall lamp, for example to intelligent television, it can be three stars brand intelligent television, of course it also can be sharp brand intelligent television, for example to intelligent cleaning equipment, it can be, intelligence robot of sweeping the floor, of course it can also include equipment such as intelligent dust catcher, intelligent garbage disposer, for example to intelligent sleep equipment, it can be: for example, for an intelligent monitoring device, the intelligent monitoring device may be an intelligent sphygmomanometer, an intelligent thermometer, or the like, and the specific form, number, or type of the internet of things terminal is not limited in the present invention.
In the step S302, the data transmission mode from the terminal of the internet of things to the relay may be a mode of sending a data packet through wireless connection, where the wireless mode includes but is not limited to: wireless modes such as bluetooth, Wireless Fidelity (WIFI) and Zigbee, wherein the WIFI needs to comply with the standard of ieee802.11b.
It should be noted that the internet of things and the relay are only for the wireless relay, because the internet of things has a large number of devices to access, and for the relay, if the relay is connected by wire, the number of terminals to access is limited, and for the home, the terminals are connected by wire, which is not imaginable for the wiring of the home user, and in addition, the cost of the wire is very high, so the connection between the terminal of the internet of things and the relay in the technical solution of the present invention is only limited to wireless connection.
Step S303, when the second cache allowance is larger than the third cache allowance, the first Internet of things access point sends more than 50% of data stored in the cache to a second backup Internet of things access point, and the rest of the data stored in the cache is sent to a third backup Internet of things access point.
The second backup Internet of things access point and the first Internet of things access point belong to a data double backup group; the third backup internet of things access point and the first internet of things access point belong to another data dual backup group. Two internet of things access points in the backup grouping have backup setting, and in the same backup grouping, if one internet of things access point is about to fail, the other internet of things access point in the backup grouping can send cached data to backup the cached data.
Step S304, the first Internet of things access point sends a first switching message to the Internet of things terminal, and the first switching message is used for indicating the Internet of things terminal to be switched to the second backup Internet of things access point.
According to the method provided by the figure 3, the first internet of things access point detects the probability of the fault of the first internet of things access point, and when the probability of the fault exceeds a set threshold value, a backup request is sent to the other internet of things access point in the backup group to backup data stored in a cache stored in the cache, so that the data backup is realized, the fault resistance capability of the internet of things access point is improved, and the user experience degree is improved.
Referring to fig. 4, fig. 4 provides an internet of things access point 400, where the internet of things access point 400 may be configured to perform the method in the embodiment shown in fig. 2 or fig. 3, and the definition of the technical terms of the internet of things access point may be as described in the embodiment shown in fig. 2 or fig. 3, which is not described herein again, and the internet of things access point includes:
a detection unit 401, configured to detect a probability of a failure of itself;
the processing unit 402 is configured to determine that a fault sign occurs if the probability is greater than a set threshold;
the transceiving unit 403 is configured to send the data stored in the cache to a master node of the first distributed system for performing data backup of storage;
the distributed system includes: a master node and a plurality of slave nodes.
The transceiver 403 is further configured to receive a first data backup response sent by the master node of the first distributed system, and determine that data backup is successful if the first internet of things access point receives the first data backup response at a set time.
Optionally, the transceiver 403 is further configured to send a stored second data backup request to the master node of the second distribution system if the first internet of things access point does not receive the data backup response within a set time.
The transceiver unit 403 is configured to send the data stored in the cache to the second backup internet of things access point or the third backup internet of things access point for data backup;
the second backup Internet of things access point and the first Internet of things access point belong to a data double backup group; the third backup internet of things access point and the first internet of things access point belong to another data dual backup group.
Optionally, the transceiver 403 is further configured to receive a second cache allowance of the second backup internet-of-things access point sent by the second backup internet-of-things access point, and receive a third cache allowance of the third backup internet-of-things access point sent by the third backup internet-of-things;
the transceiver 403 is further configured to, when the second cache margin is greater than the third cache margin, send more than 50% of the data stored in the cache to a second backup internet-of-things access point by the first internet-of-things access point, and send the remaining data of the data stored in the cache to a third backup internet-of-things access point;
the transceiver 403 is further configured to send a first switching message to the internet of things terminal, where the first switching message is used to instruct the internet of things terminal to switch to the second backup internet of things access point.
Optionally, the transceiver 403 is further configured to receive a second cache margin and a second network transmission rate of the second backup internet of things access point sent by the second backup internet of things access point, and receive a third cache margin and a third network transmission rate of the third backup internet of things access point sent by the third backup internet of things;
the transceiver 403 is further configured to send, when the second cache margin is greater than the third cache margin and the second network transmission rate is higher than a set network speed threshold, data stored in the cache by more than 50% to a second backup internet of things access point, send the remaining data of the data stored in the cache to a third backup internet of things access point, and send a first switching message to the internet of things terminal, where the first switching message is used to instruct the internet of things terminal to switch to the second backup internet of things access point;
the transceiver 403 is further configured to send the data stored in the cache to the third backup internet of things access point backup and send a second switching message to the internet of things terminal when the second cache margin is greater than the third cache margin and a second network transmission speed is lower than the network speed threshold, where the second switching message is used to instruct the internet of things terminal to switch to the third backup internet of things access point; the third failure probability is lower than the set threshold.
Optionally, the transceiver 403 is further configured to receive the number of connected internet of things terminals sent by other internet of things access points;
a processing unit 402, configured to, if the number of connected internet-of-things terminals of the second backup internet-of-things access point is higher than a number threshold, quit the data dual-backup group, and reconstruct the first internet-of-things access point and a fourth internet-of-things access point into another data dual-backup group, where the number of connected internet-of-things terminals of the fourth internet-of-things access point is lower than the number threshold, and the other internet-of-things access points include all internet-of-things access points in an internet-of-things local area network except the first internet-of-things access.
Optionally, the transceiver 403 is further configured to receive location information sent by other internet of things access points;
the processing unit 402 is further configured to calculate distances between the first internet-of-things access point and other internet-of-things access points according to the location information, and if the distance between the second backup internet-of-things access point and the first internet-of-things access point is higher than a distance threshold, exit the data dual-backup packet, and reconstruct the first internet-of-things access point and a fifth internet-of-things access point into another data dual-backup packet, where a distance between the fifth internet-of-things access point and the first internet-of-things access point is lower than the distance threshold, and the other internet-of-things access points include all internet-of-things access points in the internet-of-things local.
A specific embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the data backup methods for an access point of the internet of things described in the first aspect. The specific implementation manner of the above method can be referred to the description of the embodiment shown in fig. 2 or fig. 3.
Referring to fig. 5, fig. 5 is a diagram of an internet of things access point 500 provided in the present invention, where the internet of things access point may be a node deployed in an internet system, and the internet system may further include: the internet of things access point 500 comprises but is not limited to: as shown in fig. 5, the internet of things access point 500 includes: a processor 501, a memory 502, a transceiver 503, and a bus 504. The transceiver 503 is used for transceiving data with external devices (e.g., other devices in the interconnected system, including but not limited to repeaters, core network devices, etc.). The number of processors 501 in the internet of things access point 500 may be one or more. In some embodiments of the present application, the processor 501, the memory 502, and the transceiver 503 may be connected by a bus system or other means. Regarding the meaning and examples of the terms related to this embodiment, reference may be made to the embodiment corresponding to fig. 2 or fig. 3, which is not described herein again.
Wherein the memory 502 may have program code stored therein. The processor 501 is configured to call up program code stored in the memory 502 for performing the following operations:
and the processor 501 is configured to measure a probability of a failure of the processor, and determine that a failure sign occurs if the probability is greater than a set threshold.
The transceiver 503 is configured to send the data stored in the cache to the second backup internet of things access point or the third backup internet of things access point for data backup;
the second backup internet of things access point and the internet of things access point 500 belong to one data dual backup group; the third backup internet of things access point and the internet of things access point 500 belong to another data dual backup group.
Optionally, the processor 501, the transceiver 503, may also be used to perform steps and refinements of steps and alternatives as in the embodiment shown in fig. 2 or fig. 3.
It should be noted that the processor 501 may be a single processing element or may be a general term for multiple processing elements. For example, the Processing element may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application, such as: one or more microprocessors (digital signal processors, DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
The memory 503 may be a single storage device or a combination of multiple storage elements, and is used for storing executable program codes or parameters, data, etc. required by the running device of the application program. And the memory 903 may include a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, a Flash memory (Flash), and the like.
The bus 504 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The user equipment may also include input and output devices coupled to bus 504 for interfacing with the processor 501 or other components via the bus. The input and output device can provide an input interface for an operator so that the operator can select a control item through the input interface, and can also be other interfaces through which other equipment can be externally connected.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The content downloading method, the related device and the system provided by the embodiment of the present application are described in detail above, a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (3)

1. A data backup method for an access point of the Internet of things is characterized by comprising the following steps:
the method comprises the steps that a first Internet of things access point detects the probability of failure of the first Internet of things access point, and if the probability is larger than a set threshold value, a failure sign is determined;
the first Internet of things access point sends the data stored in the cache to a main node of a first distributed system for data backup; or
The first Internet of things access point sends the data stored in the cache to a second backup Internet of things access point or a third backup Internet of things access point for data backup;
the method comprises the steps that a first Internet of things access point receives the number of connected Internet of things terminals sent by other Internet of things access points, if the number of the connected Internet of things terminals of a second backup Internet of things access point is higher than a number threshold value, the first Internet of things access point exits a data double backup group, the first Internet of things access point and a fourth Internet of things access point are recombined to form a further data double backup group, the number of the connected Internet of things terminals of the fourth Internet of things access point is lower than the number threshold value, and the other Internet of things access points comprise all the Internet of things access points except the first Internet of things access point in an Internet of things local area network;
the first internet of things access point sends the data stored in the cache to a second backup internet of things access point or a third backup internet of things access point for data backup, and the method comprises the following steps:
the first internet of things access point receives a second cache allowance and a second network transmission rate of the second backup internet of things access point sent by the second backup internet of things access point, and the first internet of things access point receives a third cache allowance and a third network transmission rate of the third backup internet of things access point sent by the third backup internet of things;
when the second cache allowance is larger than the third cache allowance and the second network transmission rate is higher than a set network speed threshold, the first internet of things access point sends more than 50% of data stored in the cache to a second backup internet of things access point, the remaining data of the data stored in the cache is sent to a third backup internet of things access point, the first internet of things access point sends a first switching message to a connected internet of things terminal of the first internet of things access point, and the first switching message is used for indicating the connected internet of things terminal of the first internet of things access point to be switched to the second backup internet of things access point;
when the second cache allowance is larger than the third cache allowance and a second network transmission speed is lower than the network speed threshold value, the first internet of things access point sends the data stored in the cache to the third backup internet of things access point for backup, the first internet of things access point sends a second switching message to a connected internet of things terminal of the first internet of things access point, and the second switching message is used for indicating the connected internet of things terminal of the first internet of things access point to be switched to the third backup internet of things access point; the failure probability of the third backup Internet of things access point is lower than the set threshold;
the method further comprises the following steps:
the first Internet of things access point receives a first data backup response sent by a main node of the first distributed system, and if the first Internet of things access point receives the first data backup response at set time, the data backup is determined to be successful;
the method further comprises the following steps:
if the first Internet of things access point does not receive the data backup response within the set time, sending a stored second data backup request to a main node of a second distributed system;
the first Internet of things access point receives a response of a second data backup request fed back by the main node of the second distributed system, and the data backup is determined to be successful;
the method further comprises the following steps: the first Internet of things access point receives position information sent by other Internet of things access points, the distance between the first Internet of things access point and the other Internet of things access points is calculated according to the position information, if the distance between the second backup Internet of things access point and the first Internet of things access point is higher than a distance threshold value, the first Internet of things access point exits the data double backup group, the first Internet of things access point and a fifth Internet of things access point are reconstructed into a further data double backup group, the distance between the fifth Internet of things access point and the first Internet of things access point is lower than the distance threshold value, and the other Internet of things access points comprise all the Internet of things access points except the first Internet of things access point in an Internet of things local area network.
2. An internet of things access point, wherein the internet of things access point is a first internet of things access point, the internet of things access point comprising:
the detection unit is used for detecting the probability of the self fault;
the processing unit is used for determining that a fault sign appears if the probability is larger than a set threshold;
the receiving and sending unit is used for sending the data stored in the cache to a main node of the first distributed system for data backup; or
The data backup system is used for sending the data stored in the cache to the second backup Internet of things access point or the third backup Internet of things access point for data backup;
the receiving and sending unit is also used for receiving the number of the connected Internet of things terminals sent by other Internet of things access points;
the processing unit is configured to, if the number of connected internet-of-things terminals of a second backup internet-of-things access point is higher than a number threshold, quit a data dual-backup group, reconstruct a second data dual-backup group from the first internet-of-things access point and a fourth internet-of-things access point, where the number of connected internet-of-things terminals of the fourth internet-of-things access point is lower than the number threshold, and the other internet-of-things access points include all internet-of-things access points in an internet-of-things local area network except the first internet-of-things;
the transceiver unit is further configured to receive a second cache margin and a second network transmission rate of the second backup internet-of-things access point sent by the second backup internet-of-things access point, and receive a third cache margin and a third network transmission rate of the third backup internet-of-things access point sent by the third backup internet-of-things;
the transceiver unit is further configured to send, when the second cache margin is greater than the third cache margin and the second network transmission rate is higher than a set network speed threshold, data stored in the cache by more than 50% to a second backup internet-of-things access point, send the remaining data of the data stored in the cache to a third backup internet-of-things access point, and send a first switching message to a connected internet-of-things terminal of the first internet-of-things access point, where the first switching message is used to instruct the connected internet-of-things terminal of the first internet-of-things access point to switch to the second backup internet-of-things access point;
the transceiver unit is further configured to send the data stored in the cache to the third backup internet of things access point backup and send a second switching message to the connected internet of things terminal of the first internet of things access point when the second cache allowance is greater than the third cache allowance and a second network transmission speed is lower than the network speed threshold, where the second switching message is used to instruct the connected internet of things terminal of the first internet of things access point to switch to the third backup internet of things access point; the failure probability of the third backup Internet of things access point is lower than the set threshold;
the receiving and sending unit is further configured to receive a first data backup response sent by the master node of the first distributed system, and determine that data backup is successful if the first data backup response is received by the first internet-of-things access point at a set time;
the receiving and sending unit is further configured to send a stored second data backup request to the master node of the second distribution system if the first internet of things access point does not receive the data backup response within a set time.
3. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to claim 1.
CN201710755237.4A 2017-08-29 2017-08-29 Data backup method and device for Internet of things access point Active CN107612719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710755237.4A CN107612719B (en) 2017-08-29 2017-08-29 Data backup method and device for Internet of things access point

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710755237.4A CN107612719B (en) 2017-08-29 2017-08-29 Data backup method and device for Internet of things access point

Publications (2)

Publication Number Publication Date
CN107612719A CN107612719A (en) 2018-01-19
CN107612719B true CN107612719B (en) 2021-03-19

Family

ID=61056107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710755237.4A Active CN107612719B (en) 2017-08-29 2017-08-29 Data backup method and device for Internet of things access point

Country Status (1)

Country Link
CN (1) CN107612719B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962813B (en) * 2019-03-22 2021-05-18 西安电子科技大学 Network structure generation method for network structure privacy protection
CN114518848B (en) * 2022-02-15 2023-01-20 北京百度网讯科技有限公司 Method, device, equipment and medium for processing stored data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1638351A (en) * 2003-12-23 2005-07-13 国际商业机器公司 Smart access point
CN1756163A (en) * 2004-09-30 2006-04-05 杭州讯杰科技有限公司 Multimedia information distribution system and multimedia traveling information distribution system
CN101019375A (en) * 2004-09-22 2007-08-15 国际商业机器公司 Method and systems for copying data components between nodes of a network
CN102521058A (en) * 2011-12-01 2012-06-27 北京威视数据***有限公司 Disk data pre-migration method of RAID (Redundant Array of Independent Disks) group
CN103763155A (en) * 2014-01-24 2014-04-30 国家电网公司 Multi-service heartbeat monitoring method for distributed type cloud storage system
CN104094236A (en) * 2012-04-02 2014-10-08 国际商业机器公司 Systems and methods for preventing data loss
CN106257872A (en) * 2015-06-22 2016-12-28 埃森哲环球服务有限公司 WI FI access point performance management

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1638351A (en) * 2003-12-23 2005-07-13 国际商业机器公司 Smart access point
CN101019375A (en) * 2004-09-22 2007-08-15 国际商业机器公司 Method and systems for copying data components between nodes of a network
CN1756163A (en) * 2004-09-30 2006-04-05 杭州讯杰科技有限公司 Multimedia information distribution system and multimedia traveling information distribution system
CN102521058A (en) * 2011-12-01 2012-06-27 北京威视数据***有限公司 Disk data pre-migration method of RAID (Redundant Array of Independent Disks) group
CN104094236A (en) * 2012-04-02 2014-10-08 国际商业机器公司 Systems and methods for preventing data loss
CN103763155A (en) * 2014-01-24 2014-04-30 国家电网公司 Multi-service heartbeat monitoring method for distributed type cloud storage system
CN106257872A (en) * 2015-06-22 2016-12-28 埃森哲环球服务有限公司 WI FI access point performance management

Also Published As

Publication number Publication date
CN107612719A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN108040108B (en) Communication switching method, device, coordination server and readable storage medium
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
CN104243265A (en) Gateway control method, device and system based on virtual machine migration
CN104702665A (en) Information sharing method and information sharing device
CN112543468B (en) Disaster recovery method for gateway equipment and communication equipment
WO2019033475A1 (en) Automatic relay switching method and related product
CN107484214B (en) Internet of things access point frequency point selection method and device
CN104301140A (en) Service request responding method, device and system
KR20190047598A (en) Method and device of transmitting data
CN107612719B (en) Data backup method and device for Internet of things access point
CN103916226A (en) Redundant backup method based on embedded equipment
WO2018053894A1 (en) Internet-of-things access point handover method and device based on transmission rate
CN107104822B (en) Server disaster recovery processing method and device, storage medium and electronic equipment
JP6007988B2 (en) Standby system apparatus, operational system apparatus, redundant configuration system, and load distribution method
WO2019015036A1 (en) Repeater bridging method and gateway
WO2019015040A1 (en) Signal strength based frequency point selection method and internet of things terminal
CN107612715B (en) Data backup method and device for Internet of things repeater
CN104572179A (en) IAAS (infrastructure as a service) software upgrading method and device
CN113261249A (en) Data transmission method, related equipment and computer storage medium
KR102064470B1 (en) Remote meter reading system, remote meter reading device and remote meter reading method
CN117370316A (en) High availability management method and device for database, electronic equipment and storage medium
CN111565479B (en) Communication method, device and system thereof
CN114884805B (en) Data transmission method, device, terminal and storage medium
US9203760B2 (en) Communication device and route search method
CN107404404B (en) Terminal routing method based on Internet of things and Internet of things terminal

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