CN107483228B - Method and system for split backup of Internet of things repeater - Google Patents

Method and system for split backup of Internet of things repeater Download PDF

Info

Publication number
CN107483228B
CN107483228B CN201710578815.1A CN201710578815A CN107483228B CN 107483228 B CN107483228 B CN 107483228B CN 201710578815 A CN201710578815 A CN 201710578815A CN 107483228 B CN107483228 B CN 107483228B
Authority
CN
China
Prior art keywords
repeater
internet
things
backup
terminal
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
CN201710578815.1A
Other languages
Chinese (zh)
Other versions
CN107483228A (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 CN201710578815.1A priority Critical patent/CN107483228B/en
Priority to PCT/CN2017/100564 priority patent/WO2019010784A1/en
Publication of CN107483228A publication Critical patent/CN107483228A/en
Application granted granted Critical
Publication of CN107483228B publication Critical patent/CN107483228B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a split backup method for a repeater of the Internet of things, which comprises the following steps: obtaining a backup repeater of a first repeater, and backing up cache data of the first repeater to the backup repeater; when the first repeater is detected to be out of order, acquiring the priority of the backup repeater according to the performance parameters of the backup repeater; sorting the priorities of the backup relays, and when the priority of the third relay is lower than that of the second relay, taking the third relay as the backup relay of the second relay; dividing the terminals of the internet of things connected with the first repeater into a first terminal set and a second terminal set, switching the terminals of the internet of things in the first terminal set to the second repeater, and switching the terminals of the internet of things in the second terminal set to the third repeater. The invention can improve the fault resistance and ensure that the transmission data is not lost and the network operates normally.

Description

Method and system for split backup of Internet of things repeater
Technical Field
The invention relates to the technical field of Internet of things, in particular to a method and a system for split backup of a repeater of the Internet of things.
Background
The wave of the internet of things affects all aspects of society and life, and due to the popularization of short-distance communication technology and products, more and more terminals of the internet of things form a local area network or a wide area network through gateway equipment of the internet of things. For example, in some home scenes, a plurality of internet of things terminals in a home form a home network, a user terminal such as a mobile terminal and a game machine, a household appliance such as a television, a computer, an electronic lock security door, a refrigerator and a washing machine, and the like can be accessed to the network to realize smart home.
The repeater is a system for connecting network lines, mainly completes the function of a physical layer, is responsible for transmitting information on the physical layer of two nodes according to bits, and completes the functions of copying, adjusting and amplifying signals, thereby prolonging the length of the network. The premise that the internet of things terminal normally performs the service is that the communication with the internet of things platform is kept normal, and under the condition that the communication connection is disconnected, the internet of things terminal cannot send service data to the service platform, and the service platform cannot monitor the working state of the internet of things terminal. Once a repeater fault occurs, network signals are interrupted, and the technical problems of data transmission loss and abnormal work of the terminal of the internet of things are caused.
Disclosure of Invention
Based on the method, in order to solve the technical problems of data loss caused by transmission and abnormal work of the Internet of things terminal when the repeater fails, a split backup method of the Internet of things repeater is particularly provided.
A method of split backup of an internet of things repeater, the method based on a repeater subsystem including at least a first repeater, a second repeater, and a third repeater, a backup repeater of the first repeater including at least the second repeater and the third repeater, the method comprising:
obtaining a backup repeater of a first repeater, and backing up cache data of the first repeater to the backup repeater;
when the first repeater is detected to be out of order, acquiring the priority of the backup repeater according to the performance parameters of the backup repeater;
sorting the priorities of the backup relays, and when the priority of the third relay is lower than that of the second relay, taking the third relay as the backup relay of the second relay;
dividing the terminals of the internet of things connected with the first repeater into a first terminal set and a second terminal set;
switching the internet of things terminal in the first terminal set to the second repeater, and switching the internet of things terminal in the second terminal set to the third repeater;
and sending the cache data of the second repeater to the third repeater.
Optionally, the method further includes:
and when the data traffic of the first repeater is smaller than or equal to a preset traffic threshold, determining that the first repeater fails.
In one embodiment, before the detecting that the first repeater fails, the method further comprises:
when the capacity of the cache data of the first repeater reaches a preset capacity threshold or the time recorded by the timer reaches a preset backup interval time, calculating the priority of the backup repeater according to the performance parameters of the backup repeater of the first repeater, and backing up the cache data of the first repeater according to the priority of the backup repeater.
The performance parameters include transmission bandwidth occupancy rate, bit error rate and/or packet loss rate.
In one embodiment, the dividing the terminals of the internet of things connected with the first repeater into a first terminal set and a second terminal set includes:
acquiring the data type of the Internet of things terminal connected with the first repeater;
and determining the terminals of the internet of things contained in the first terminal set and the second terminal set according to the data types.
In one embodiment, the switching the internet of things terminal in the first set of terminals to the second repeater and the switching the internet of things terminal in the second set of terminals to the third repeater includes:
turning on radio frequency functions of the second repeater and the third repeater;
acquiring the equipment identifier of the Internet of things terminal connected with the first repeater;
generating a device authentication code according to the device identification;
sending the equipment authentication codes generated by the terminals of the internet of things in the first terminal set to the second repeater, and sending the equipment authentication codes generated by the terminals of the internet of things in the second terminal set to the third repeater;
when the second repeater and the third repeater receive the connection request of the terminal of the internet of things, judging whether the equipment identification of the terminal of the internet of things initiating the connection request is matched with the equipment authentication code;
and if the matching is successful, connecting with the terminal of the Internet of things.
In one embodiment, the determining, according to the data type, the internet of things terminals included in the first terminal set and the second terminal set includes:
the Internet of things terminals with the data types of uplink data and downlink data corresponding to the Internet of things terminals connected with the first repeater are distributed to the first terminal set, and the Internet of things terminals with the data types of uplink data or downlink data corresponding to the Internet of things terminals are distributed to the second terminal set;
after the sending the buffered data of the second repeater to the third repeater, the method further comprises:
and generating a data report according to the equipment authentication code of the terminal of the Internet of things and the data type.
The preset verification information of the terminal of the internet of things, namely the equipment identifier of the terminal of the internet of things, refers to identification information which is arranged in a chip of the terminal equipment of the internet of things and is used for distinguishing other equipment, and the identification information cannot be changed after the equipment leaves a factory, and comprises information such as a serial number of a manufacturer, a model of the equipment, an MAC address of the equipment and the like. And generating the equipment authentication code according to the equipment identification information, namely converting the information into a character code form, such as a specific format of 'serial number-model number-MAC address', and facilitating the reading of other equipment.
Optionally, evaluation indexes of the backup relay are obtained, and the number of the internet of things terminals allocated by the second relay and the third relay is determined according to the ratio of the evaluation indexes. Wherein, the performance parameters of the evaluation index comprise: transmission bandwidth occupancy, bit error rate, packet loss rate, and the like.
Optionally, the association degree between the terminal of the internet of things and the first relay is divided. And dividing the terminals of the Internet of things closely related to the first repeater into a first terminal set, and dividing the rest terminals into a second terminal set.
Optionally, detecting the signal strength of the first repeater; when the signal intensity is smaller than a preset signal threshold, setting the waiting time of the received data as a second transmission duration; and judging whether the data sent by the Internet of things terminal is received in the second transmission time length, if so, setting the data receiving waiting time as the first transmission time length, and if not, confirming that the first repeater breaks down.
In addition, in order to solve the technical problems of data loss caused by transmission and abnormal work of the internet of things terminal when the repeater fails, a system for split backup of the internet of things repeater is particularly provided.
A system for split backup of internet of things repeaters, the system based on a repeater subsystem including at least a first repeater, a second repeater, and a third repeater, the backup repeater of the first repeater including at least the second repeater and the third repeater, the system comprising:
the first backup module is used for acquiring a backup repeater of the first repeater and backing up the cache data of the first repeater to the backup repeater;
the priority acquisition module is used for acquiring the priority of the backup repeater according to the performance parameters of the backup repeater when the first repeater is detected to be in fault;
a relay setting module, configured to rank the priorities of the backup relays, and when the priority of the third relay is lower than the priority of the second relay, use the third relay as the backup relay of the second relay;
the terminal dividing module is used for dividing the terminals of the internet of things connected with the first repeater into a first terminal set and a second terminal set;
the terminal switching module is used for switching the internet of things terminal in the first terminal set to the second repeater and switching the internet of things terminal in the second terminal set to the third repeater;
and the second backup module is used for sending the cache data of the second repeater to the third repeater.
In one embodiment, the system further comprises:
the priority acquisition module is used for calculating the priority of the backup relay according to the performance parameters of the backup relay of the first relay when the capacity of the cache data of the first relay reaches a preset capacity threshold or the time recorded by the timer reaches a preset backup interval time;
the first backup module is specifically configured to backup the cache data of the first relay according to the priority of the backup relay.
In one embodiment, the system further comprises:
the first acquisition module is used for acquiring the data type of the Internet of things terminal connected with the first repeater;
the terminal dividing module is specifically configured to determine, according to the data type, internet of things terminals included in the first terminal set and the second terminal set.
In one embodiment, the system further comprises:
the radio frequency module is used for starting the radio frequency functions of the second repeater and the third repeater;
the second acquisition module is used for acquiring the equipment identifier of the Internet of things terminal connected with the first repeater;
the generating module is used for generating equipment authentication codes according to the equipment identifications;
a sending module, configured to send the device authentication code generated by the internet of things terminal in the first terminal set to the second relay, and send the device authentication code generated by the internet of things terminal in the second terminal set to the third relay;
the judging module is used for judging whether the equipment identifier of the terminal of the internet of things initiating the connection request is matched with the equipment authentication code when the second repeater and the third repeater receive the connection request of the terminal of the internet of things;
and the terminal switching module is specifically used for connecting with the terminal of the Internet of things if the judging module is successfully matched.
In one embodiment, the terminal dividing module is specifically configured to allocate the internet of things terminals, of which the data types are uplink data and downlink data, of the internet of things terminals connected to the first repeater to the first terminal set, and allocate the internet of things terminals of which the data types are uplink data or downlink data, to the second terminal set;
the system further comprises:
and the data report generating module is used for generating a data report according to the equipment authentication code of the terminal of the Internet of things and the data type.
The embodiment of the invention has the following beneficial effects:
after the internet-of-things repeater split backup method and system are adopted, the backup repeater of the first repeater backs up the cache data on the first repeater, when the first repeater breaks down, the priority of the backup repeater is obtained according to the performance parameters of the backup repeater, and the priority of the second repeater is higher than that of the third repeater, so that the third repeater is the backup repeater of the second repeater and caches the cache data on the second repeater. Dividing the terminals of the internet of things connected with the first repeater into a first terminal set and a second terminal set, switching the terminals of the internet of things in the first terminal set to the second repeater, and switching the terminals of the internet of things in the second terminal set to the third repeater. Therefore, data in the first repeater with the fault and the internet of things terminal connected with the first repeater can be transferred to other repeaters which normally work, internet of things breakdown caused by the fault of the repeaters is avoided, fault resistance of the internet of things is improved, continuous network service providing is ensured, and smooth data transmission is completed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a networking architecture diagram of an internet of things according to an embodiment of the present invention;
fig. 2 is a structural diagram of a backup system of an internet of things repeater according to an embodiment of the present invention;
fig. 3 is a flowchart of a split backup method for a repeater in the internet of things according to an embodiment of the present invention;
fig. 4 is a structural diagram of a split backup system of an internet of things repeater according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an internet of things terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another internet of things terminal provided in the embodiment of the present invention.
Detailed Description
The terms "comprising" and "having," and any variations thereof, as appearing in the present specification, claims and drawings, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the technical problems of transmission data loss and network operation abnormity caused by the failure of the repeater, in one embodiment, a processing method of the failed repeater is particularly provided. The method may be implemented in dependence on a computer program that is executable on a computer device based on the von neumann architecture, which may be a hypervisor or a virtual device hypervisor of the repeater.
The network framework of the internet of things shown in fig. 1 comprises a server, a gateway, M access points, N repeaters and a plurality of internet of things terminals, wherein the access points are connected with the gateway through the ethernet or network forms such as 2G, 3G and 4G, the repeaters are connected with the plurality of internet of things terminals and the access points, the internet of things terminals transmit collected data through the repeaters, and the data are uploaded to the server through the access points and the gateway equipment to exchange the data.
The computer system is based on a repeater subsystem, and the repeater subsystem shown in fig. 2 at least includes a first repeater, a second repeater and a third repeater, where the backup node of the first repeater at least includes the second repeater and the third repeater, the first repeater and the backup repeater are repeaters at the same node, and have the same function, and both of the first repeater and the backup repeater can be used as repeaters to be connected to the internet of things, and the backup repeater of the first repeater is used for backing up the cache data of the first repeater. The backup relay may be an active relay or an idle relay. It should be noted that, in order to improve the fault-tolerant capability of the network, there may be more than two backup repeaters, and the cache data of the first repeater is backed up to multiple backup repeaters simultaneously.
Specifically, as shown in fig. 3, a backup method for an internet of things repeater includes:
step S101: and acquiring a backup repeater of the first repeater, and backing up the cache data of the first repeater to the backup repeater.
The repeater is mainly used to enhance the coverage of the wireless signal of the access point AP, for example, the repeater may be a Wi-Fi signal amplifier. Setting a backup repeater for the repeaters in the network environment of the Internet of things in advance, and obtaining the repeaters in the repeater subsystem to obtain a first repeater which at least comprises two repeaters, namely a second repeater and a third repeater. The backup repeater of the first repeater is obtained, and the data cached on the first repeater is backed up to the backup repeater, that is, the cached data of the first repeater can be obtained by reading the stored data on the second repeater and the third repeater, so that the data is ensured not to be lost. The cache data on the first repeater comprises data collected by the terminal of the internet of things and data sent to the terminal of the internet of things by the server.
Optionally, when the size of the capacity of the cache data of the first relay reaches a preset capacity threshold or the time recorded by the timer reaches a preset backup interval time, the step of backing up the cache data of the first relay to the backup relay is performed. Therefore, the situation that the backup fails because the first repeater cannot be connected with the backup repeater when the first repeater fails is avoided, and the fault resistance is improved.
That is, the repeater subsystem backs up the buffered data when its capacity is greater than or equal to the load threshold. Or a backup interval time threshold is set, and the cache data is backed up at intervals, so that the operation load and the network maintenance cost of the Internet of things network caused by real-time backup are reduced, and data loss caused by the failure of the first repeater is avoided.
For example: if the preset capacity threshold is 10M, performing backup on the second repeater when the capacity of the cache data is 10M; if the preset backup interval time is 5 minutes, the cache data on the first repeater is backed up every 5 minutes. Further, when the capacity of the cache data of the first repeater reaches a preset capacity threshold or the time recorded by the timer reaches a preset backup interval time, calculating the priority of the backup repeater according to the performance parameters of the backup repeater of the first repeater; and backing up the cache data of the first repeater according to the priority of the backup repeater. And performing backup according to the priority, thereby improving the backup efficiency.
The performance parameters of the backup repeater include: processing unit utilization, memory utilization, input/output load information, and the number of backup jobs being run. Specifically, the backup repeater may first establish a data structure including the four information, then collect load sampling information of the backup repeater itself, and record the load sampling information into the established data structure; sending the recorded load sampling information to a processor in the Internet of things for processing fault accidents through the local Ethernet; and the processor performs weighted calculation according to the performance parameters of the backup repeater, and compares the performance parameters with the numerical values in the preset priority to determine the performance parameters of the backup repeater. The data structure may be a linked list or an array, and the specific form of the data structure is not limited in the embodiments of the present invention.
When the processing unit utilization rate is C, the memory utilization rate is M, the number of running backup jobs is J, and the input/output load information is IO, the main server calculates a weighted sum of the processing unit utilization rate, the memory utilization rate, the input/output load information, and the number of running backup jobs of the backup server, and obtains a priority L of the backup relay, which may be:
L=b1*C+b2*W+b3*D+b4*IO (1)
in the formula (1), b1, b2, b3 and b4 represent weights of C, M, J and IO in calculating priority, respectively, and b1+ b2+ b3+ b4 is equal to 1. The specific value of bi (i ═ 1, 2, 3, 4) can be set or recommended according to the operation condition of the server. For example, b1 is 0.3, b2 is 0.3, b3 is 0.2, and b4 is 0.2.
For example, in an internet of things, there are 4 repeaters at a node, namely, repeater 1, repeater 2, repeater 3 and repeater 4, where repeater 3 is a first repeater, the priorities of repeater 1, repeater 2 and repeater 4 are calculated according to the above formula (1), and if b1 is 0.4, b2 is 0.3 and b3 is 0.3, so that the priority of repeater 1 is 89, the priority of repeater 2 is 75 and the priority of repeater 4 is 67, the repeater 1 performs backup first, the repeater 2 performs backup after the backup is completed, and the repeater 4 performs backup after the backup is completed, thereby reducing the operation load and network maintenance overhead of the internet of things network caused by simultaneous backup and improving the backup efficiency.
Step S102: and when the first repeater is detected to be out of order, acquiring the priority of the backup repeater according to the performance parameters of the backup repeater.
In this embodiment, when the failure of the first repeater is detected, the priority of the backup repeater should be determined, and the backup should be performed according to the priority, thereby improving the backup efficiency.
For example, in an internet of things, there are 4 repeaters, namely, repeater 1, repeater 2, repeater 3 and repeater 4, at a node, where repeater 3 is the first repeater to communicate in the network, and the other three repeaters all serve as backup repeaters for repeater 3. In a certain communication process, the repeater 3 malfunctions, and at this time, the priorities of the repeater 1, the repeater 2, and the repeater 4 are calculated. Assuming that the calculation is performed according to the above equation (1), where b1 is 0.4, b2 is 0.3, and b3 is 0.3, the priority of the repeater 1 is 89, the priority of the repeater 2 is 75, and the priority of the repeater 4 is 67, these three calculation results are sorted, the repeater 1 with the highest priority is selected as the second repeater, and the repeater 2 and the repeater 4 are used as backup repeaters of the repeater 1. Therefore, normal communication of the repeater is guaranteed, and reliability of the Internet of things is improved.
Optionally, detecting the signal strength of the first repeater; when the signal intensity is smaller than a preset signal threshold, setting the waiting time of the received data as a second transmission duration; and judging whether the data sent by the Internet of things terminal is received in the second transmission time, if so, setting the data receiving waiting time as the first transmission time, and if not, confirming that the first repeater breaks down.
That is to say, when the signal strength is lower than the preset information threshold, whether the data sent by the terminal of the internet of things can be received or not is judged in the second transmission duration, and if the data can be received, the signal is weak, but the first repeater does not have a fault problem; if not, the first repeater is possibly in failure, namely, the first repeater is prevented from being in the future, and the failure resistance of the repeater of the Internet of things is improved. And the internet of things terminal connected with the first repeater can be distributed to the backup repeater, so that the waiting time for receiving data is prolonged, the burden of the first repeater is reduced, and the data transmission efficiency is improved.
Optionally, it is determined according to the size of the data traffic that when the data traffic of the first repeater is less than or equal to the preset traffic threshold, it is determined that the first repeater fails.
That is to say, when the data traffic is less than or equal to the preset traffic threshold, it indicates that the first repeater may malfunction, i.e. the first repeater is protected from the malfunction, and the malfunction resistance of the internet of things repeater is improved. And the internet of things terminal connected with the first repeater is allocated to the backup repeater in advance, so that the data receiving waiting time is prolonged, the burden of the first repeater is reduced, and the data transmission efficiency is improved.
For example, assuming that the preset traffic threshold is 60%, when the data traffic of the first relay is 50%, it is determined that the first relay fails, then the priority of the backup relay is obtained, and data backup is performed according to the priority.
Furthermore, the backup sequence is performed according to the priority level, so that the network bandwidth is not affected, and the network operation load is reduced. If the backup repeaters are 1-n in sequence, the backup repeater with the identifier 1 has the highest priority, and the backup repeater with the identifier n has the lowest priority. If the preset load threshold is 10M, performing backup of the second relay when the capacity of the cache data is 10M, and when the backup of the second relay is completed, performing backup of the third relay, and so on. Since the size of the capacity of the transmission data is not controllable, the second relay starts to backup as soon as the size of the capacity of the buffer data reaches a preset load threshold.
Step S103: and sequencing the priorities of the backup relays, and taking the third relay as the backup relay of the second relay when the priority of the third relay is lower than that of the second relay.
After the priorities of the backup relays are obtained, the backup relays are sorted according to the priorities, the priority of the second relay is higher than that of the third relay, the second relay takes over the work of the first relay, and the third relay serves as the backup relay of the second relay.
Step S104: and dividing the terminals of the internet of things connected with the first repeater into a first terminal set and a second terminal set.
Optionally, a data type of the internet of things terminal connected with the first repeater is obtained; and determining the terminals of the internet of things contained in the first terminal set and the second terminal set according to the data types. That is to say, the internet of things terminals connected to the first repeater are classified according to the data types, so that the parallel processing performance and the backup performance of the internet of things backup repeater system can be improved.
Step S105: and switching the Internet of things terminal in the first terminal set to the second repeater, and switching the Internet of things terminal in the second terminal set to the third repeater.
By adopting a multi-backup mode, the first backup repeater backs up the first repeater, so that when the first repeater breaks down, first cache data on the first repeater is not lost, a second repeater with the highest priority is selected to be connected with an Internet of things terminal of a first terminal set on the first repeater, a third repeater is used as a backup repeater of the second repeater to be connected with an Internet of things terminal of a second terminal set on the first repeater, cache data on the second repeater, and the second repeater is backed up while the first repeater is switched, so that the parallel processing performance and the backup performance of the Internet of things backup repeater system are improved.
Step S106: and sending the cache data of the second repeater to a third repeater.
Preferably, when the third repeater backs up the second cache data on the second repeater, since the first backup data on the first repeater has already been backed up before the failure of the first repeater, only the cached second cache data on the second repeater can be backed up, so that the repeated backup is avoided, and the backup time is saved. Specifically, the method comprises the following steps: the first backup repeater is also used for setting the backup state of the first cache data of the first repeater after the backup is finished as a backed-up state; the third repeater is also used for obtaining the backup state of the backup data of the second repeater and backing up the backup data of which the backup state is to be backed up to the third repeater.
Optionally, the radio frequency functions of the second repeater and the third repeater are turned on; acquiring a device identifier of an Internet of things terminal connected with a first repeater;
generating an equipment authentication code according to the equipment identification; sending the equipment authentication codes generated by the terminals of the internet of things in the first terminal set to the second repeater, and sending the equipment authentication codes generated by the terminals of the internet of things in the second terminal set to the third repeater; when the second repeater and the third repeater receive a connection request of the terminal of the Internet of things, judging whether the equipment identification of the terminal of the Internet of things initiating the connection request is matched with the equipment authentication code; and if the matching is successful, connecting with the terminal of the Internet of things.
In an optional embodiment, in order to improve the security of the backup data, the terminal of the internet of things should verify the device identifier of the terminal of the internet of things when being connected to the repeater, and when the device identifier of the terminal of the internet of things is successfully matched, the terminal of the internet of things initiating the connection request is received for connection, otherwise, if the matching fails, the radio frequency function of the backup repeater is closed.
The terminal of the Internet of things is a device which is connected with a sensing network layer and a transmission network layer in the Internet of things and used for acquiring data and sending the data to the network layer, and different device identifications are used for distinguishing different devices. For example, the device identifier of the terminal of the internet of things may be a MAC address of the terminal of the internet of things, where the MAC address is also called a physical address or a hardware address, and is used to define the location of the network device, the date of the time when the network device is accessed may be added with the terminal type, or a default name of the terminal of the internet of things by a computer program, or a combination of the terminal type and a number, or a name that a user stores the terminal of the internet of things. And switching the terminal of the internet of things on the first repeater to the second repeater, namely, the second repeater is only connected with the terminal of the internet of things on the first repeater which is successfully verified.
In one embodiment, after the first repeater fails, an equipment identifier of the internet of things terminal connected with the first repeater is acquired, where the equipment identifier is identification information which is embedded in an internet of things terminal equipment chip and used for distinguishing other equipment, and the equipment identifier cannot be changed after the equipment leaves a factory, and includes information such as a serial number of a manufacturer, a model of the equipment, and an MAC address of the equipment. And generating the equipment authentication code according to the equipment identification information, namely converting the information into a character code form, such as a specific format of 'serial number-model number-MAC address', and facilitating the reading of other equipment. And then, the generated equipment authentication codes of the terminals of the internet of things connected with the first terminal set are sent to the second repeater, and the generated equipment authentication codes of the terminals of the internet of things connected with the second terminal set are sent to the third repeater. When the second repeater and the third repeater receive connection requests of the internet of things terminal, the equipment identification of the internet of things terminal is obtained, the equipment information is read out from the equipment identification and matched with the equipment authentication code stored in advance, and when the equipment identification of the internet of things terminal is successfully matched with the stored equipment authentication code, the internet of things terminal can be received for connection. By storing the equipment authentication code and directly connecting after successful matching judgment, the processes of session information authentication, key pairing and the like on the equipment again can be avoided when the terminal of the Internet of things initiates a connection request to the second repeater and the third repeater, and therefore the communication efficiency of the Internet of things is improved.
It should be noted that, the matching between the device identifier of the terminal of the internet of things and the stored device authentication code may be successfully included in various cases, for example, the serial number, the model number, and the MAC address are all the same; or only if the identification serial numbers are the same, the equipment identification is judged to be successfully matched with the stored equipment authentication code; or only more than a certain percentage of characters in the character string match. By the method, the workload of data processing can be reduced, and the efficiency is improved.
In this embodiment, after the first repeater fails, MAC addresses of the second repeater and the third repeater are broadcast to the terminal of the internet of things, where the MAC addresses are also referred to as physical addresses or hardware addresses and are used to define the location of the network device, each repeater has a separate MAC address, and the terminal of the internet of things can initiate a connection request to the second repeater after receiving the MAC address of the second repeater.
It should be noted that the backup repeater can turn off the radio frequency function only as a storage device during backup, and turn on the radio frequency function only when establishing connection with the internet of things terminal of the first repeater, and the rest of the backup repeaters still turn off the radio frequency function, thereby reducing the occupation of system memory, saving power consumption and enhancing endurance time.
The implementation of the invention is described below in connection with a specific application scenario. In the application scenario, there are 3 repeaters at a node in the internet of things, which are a repeater J, a repeater K, and a repeater L, respectively, where the repeater J is a first repeater and performs communication in a network, and the other two repeaters are both used as backup repeaters of the repeater J, and only a storage function is turned on.
In a certain communication process, the relay J breaks down, the priority of the relay K is higher than that of the relay L according to the priority calculation results of the relay K and the relay L, the relay K is set as a second relay, and the relay L is set as a backup relay of the relay K.
Before the repeater J breaks down, the repeater J is connected with the Internet of things terminal 1, the Internet of things terminal 2 and the Internet of things terminal 3, and at the moment, the radio frequency functions of the repeater K and the repeater L are started. The repeater K obtains and stores the equipment authentication codes of the terminal 1 and the terminal 2 of the Internet of things as 001-A1070-00010010 and 011-BC79-00101100 respectively. The repeater L acquires the equipment authentication codes of the terminal 3 of the Internet of things and stores the equipment authentication codes as 001-D1070-00010110 respectively. Then, the repeater K broadcasts the MAC address '00-01-6C-06-A6-29' of the repeater K to the terminal 1 of the Internet of things and the terminal 2 of the Internet of things, and the repeater L broadcasts the MAC address '00-01-6C-06-A6-30' of the repeater L to the terminal 3 of the Internet of things.
The internet of things terminal 1 and the internet of things terminal 2 initiate a connection request to the repeater K according to the MAC address after receiving the MAC address of the repeater K, and the internet of things terminal 3 initiates a connection request to the repeater L according to the MAC address after receiving the MAC address of the repeater L.
The repeater K acquires that the equipment identification information of the terminal 1 of the Internet of things and the equipment identification information of the terminal 2 of the Internet of things are '001-A1070-00010010' and '011-BC 79-00101100' respectively according to the connection request of the terminal 1 of the Internet of things and the terminal 2 of the Internet of things, the equipment identification information is the same as the equipment authentication codes stored before, the matching is judged to be successful, and the connection between the terminal 1 of the Internet of things and the terminal 2 of the Internet of things is received. And the repeater L acquires that the equipment identification information of the terminal 3 of the internet of things is '001-A1070-00011010' and '001-D1070-00010110' respectively according to the connection request of the terminal 3 of the internet of things, and the equipment identification information is not matched with the equipment authentication codes stored before, so that the repeater L is not connected with the terminal 3 of the internet of things. In the working process of the repeater K, the cache data is hot backed up to the repeater L, and the reliability of the Internet of things communication is guaranteed.
Optionally, the internet of things terminals with the data types of uplink data and downlink data corresponding to the internet of things terminals connected with the first repeater are allocated to the first terminal set, and the internet of things terminals with the data types of uplink data or downlink data corresponding to the internet of things terminals are allocated to the second terminal set; after sending the buffered data of the second repeater to the third repeater, the method further comprises: generating a data report according to the equipment authentication code and the data type of the terminal of the Internet of things; the radio frequency function is turned off.
In an optional embodiment, the first terminal set and the second terminal set are divided according to the data type of the terminal of the internet of things. And allocating the internet of things terminals with the data types of uplink data and downlink data to a first terminal set, and allocating the internet of things terminals with the data types of uplink data or downlink data to a second terminal set. Therefore, the second repeater with higher priority receives and transmits data, and the third repeater with lower priority only receives or transmits data, so that the data transmission efficiency is improved, and the performance pressure of the third repeater is reduced.
In an optional embodiment, after the data backup is completed, a data report is generated according to the equipment authentication code and the data type of the terminal of the internet of things, and the radio frequency function is turned off. The backup data can be sorted, error transmission and retransmission are prevented, energy is saved, and the cruising ability is enhanced.
In order to solve the technical problems of transmission data loss and network work abnormity caused by the fault of the repeater, in one embodiment, a split backup system of the repeater of the internet of things is particularly provided. The system is based on a repeater subsystem, the repeater subsystem comprises at least a first repeater, a second repeater and a third repeater, and a backup node of the first repeater comprises at least the second repeater and the third repeater. As shown in fig. 4, the split backup system of the internet of things repeater includes:
the first backup module 101 is configured to acquire a backup relay of the first relay, and backup the cache data of the first relay to the backup relay.
The priority obtaining module 102 is configured to obtain the priority of the backup relay according to the performance parameter of the backup relay when detecting that the first relay fails.
And the backup relay determining module 103 is configured to rank the priorities of the backup relays, and when the priority of the third relay is lower than the priority of the second relay, use the third relay as the backup relay of the second relay.
And a terminal dividing module 104, configured to divide the internet of things terminals connected to the first repeater into a first terminal set and a second terminal set.
And the terminal switching module 105 is configured to switch the internet of things terminal in the first terminal set to the second repeater, and switch the internet of things terminal in the second terminal set to the third repeater.
And the second backup module 106 is configured to send the cached data of the second relay to the third relay.
In one embodiment, the system further comprises:
a priority obtaining module 107, configured to calculate a priority of the backup relay according to a performance parameter of the backup relay of the first relay when a capacity of the cache data of the first relay reaches a preset capacity threshold or a time recorded by the timer reaches a preset backup interval time;
the first backup module 101 is specifically configured to backup the cache data of the first relay according to the priority of the backup relay.
In one embodiment, the system further comprises:
a first obtaining module 108, configured to obtain a data type of the internet of things terminal connected to the first repeater;
the terminal dividing module 104 is specifically configured to determine the internet of things terminals included in the first terminal set and the second terminal set according to the data types.
In one embodiment, the system further comprises:
a second obtaining module 109, configured to obtain a device identifier of the internet of things terminal connected to the first repeater;
a generating module 110, configured to generate a device authentication code according to the device identifier;
the sending module 111 is configured to send the device authentication code generated by the internet of things terminal in the first terminal set to the second relay, and send the device authentication code generated by the internet of things terminal in the second terminal set to the third relay;
the determining module 112 is configured to determine, when the second repeater and the third repeater receive a connection request of the internet of things terminal, whether the device identifier of the internet of things terminal initiating the connection request matches the device authentication code;
the terminal switching module 105 is specifically configured to connect with the internet of things terminal if the matching of the determining module is successful.
In one embodiment, the terminal dividing module 104 is specifically configured to allocate the internet of things terminals, of which the data types are uplink data and downlink data, of the internet of things terminals connected to the first repeater to the first terminal set, and allocate the internet of things terminals of which the data types are uplink data or downlink data, to the second terminal set; the system further comprises:
and the data report generating module 113 is configured to generate a data report according to the device authentication code and the data type of the terminal of the internet of things.
The embodiment of the invention has the following beneficial effects:
after the internet-of-things repeater split backup method and system are adopted, the backup repeater of the first repeater backs up the cache data on the first repeater, when the first repeater breaks down, the priority of the backup repeater is obtained according to the performance parameters of the backup repeater, and the priority of the second repeater is higher than that of the third repeater, so that the third repeater is the backup repeater of the second repeater and caches the cache data on the second repeater. The method comprises the steps of dividing the terminals of the Internet of things connected with the first repeater into a first terminal set and a second terminal set, switching the terminals of the Internet of things in the first terminal set to the second repeater, and switching the terminals of the Internet of things in the second terminal set to the third repeater. Therefore, data in the first repeater with the fault and the internet of things terminal connected with the first repeater can be transferred to other repeaters which normally work, internet of things breakdown caused by the fault of the repeaters is avoided, fault resistance of the internet of things is improved, continuous network service providing is ensured, and smooth data transmission is completed.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention. As shown in fig. 5, the terminal in this embodiment may include: one or more processors 801; one or more input devices 802, one or more output devices 803, and memory 804. The processor 801, the input device 802, the output device 803, and the memory 804 described above are connected by a bus 805. The memory 802 is used to store instructions and the processor 801 is used to execute instructions stored by the memory 802. Wherein the processor 801 is configured to: acquiring a backup repeater of the first repeater, and backing up the cache data of the first repeater to the backup repeater; when the first repeater is detected to be out of order, acquiring the priority of the backup repeater according to the performance parameters of the backup repeater; the priorities of the backup relays are sequenced, and when the priority of the third relay is lower than that of the second relay, the third relay is used as the backup relay of the second relay; and switching the terminal of the Internet of things connected with the first repeater to the second repeater, and sending the cache data of the second repeater to the third repeater.
It should be understood that in the present embodiment, the Processor 801 may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 802 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 803 may include a display (LCD, etc.), a speaker, etc.
The memory 804 may include both read-only memory and random access memory, and provides instructions and data to the processor 801. A portion of the memory 804 may also include non-volatile random access memory. For example, the memory 804 may also store device type information.
In a specific implementation, the processor 801, the input device 802, and the output device 803 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the method for prompting charging provided in this embodiment of the present invention, and may also execute the implementation manners of the terminal described in this embodiment of the present invention, which is not described herein again.
In another embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program that when executed by a processor implements: acquiring a backup repeater of the first repeater, and backing up the cache data of the first repeater to the backup repeater; when the first repeater is detected to be out of order, acquiring the priority of the backup repeater according to the performance parameters of the backup repeater; the priorities of the backup relays are sequenced, and when the priority of the third relay is lower than that of the second relay, the third relay is used as the backup relay of the second relay; dividing the terminals of the internet of things connected with the first repeater into a first terminal set and a second terminal set; switching the Internet of things terminal in the first terminal set to a second repeater, and switching the Internet of things terminal in the second terminal set to a third repeater; and sending the cache data of the second repeater to a third repeater.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the computer-readable storage medium may include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium stores the computer program and other programs and data required by the terminal. The above-described computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (Wi-Fi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the RF circuit 910 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then processing the received downlink information to the processor 980; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a touch panel 931 and other input devices 932. The touch panel 931, also called a touch screen, can collect a touch operation performed by a user on or near the touch panel (e.g., a user's operation on or near the touch panel 930 using a finger, a stylus, or any other suitable object or accessory) and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 930 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch panel 930 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 930, the input unit 930 may also include other input devices 932. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display panel 941, and optionally, the display panel 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 930 may cover the display panel 941, and when the touch panel 930 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 980 to determine the type of the touch event, and then the processor 980 provides a corresponding visual output on the display panel 941 according to the type of the touch event. Although in fig. 6, the touch panel 930 and the display panel 941 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 930 and the display panel 941 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 941 and/or backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and outputs the audio data to the processor 980 for processing, and then transmits the audio data to, for example, another mobile phone through the RF circuit 910, or outputs the audio data to the memory 920 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 970, and provides wireless broadband internet access for the user. Although fig. 6 shows the Wi-Fi module 970, it is understood that it does not belong to the essential constitution of the cellular phone and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The method and the system for split backup of the internet of things repeater provided by the embodiment of the invention are described in detail, a specific example is applied in the method to explain the principle and the embodiment of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (10)

1. A method for split backup of an Internet of things repeater, the method based on a repeater subsystem including at least a first repeater, a second repeater and a third repeater, the backup repeater of the first repeater including at least the second repeater and the third repeater, the method comprising:
obtaining a backup repeater of a first repeater, and backing up cache data of the first repeater to the backup repeater;
when the first repeater is detected to be out of order, acquiring the priority of the backup repeater according to the performance parameters of the backup repeater, wherein the performance parameters of the backup repeater comprise: when the processing unit utilization rate is C, the memory utilization rate is M, the running backup job number is J, and the input/output load information is IO, the priority L of the backup repeater is:
l-b 1C + b 2M + b 3D + b4 IO, b1, b2, b3 and b4 represent the weight of C, M, J and IO in calculating the priority, respectively, and b1+ b2+ b3+ b4 is 1;
sorting the priorities of the backup relays, and when the priority of the third relay is lower than that of the second relay, taking the third relay as the backup relay of the second relay;
the method comprises the steps of obtaining the data type of an Internet of things terminal connected with a first repeater, and dividing the Internet of things terminal connected with the first repeater into a first terminal set and a second terminal set according to the data type;
switching the internet of things terminal in the first terminal set to the second repeater, and switching the internet of things terminal in the second terminal set to the third repeater;
and sending the cache data of the second repeater to the third repeater.
2. The method of claim 1, wherein prior to said detecting said first repeater failure, said method further comprises:
when the capacity of the cache data of the first repeater reaches a preset capacity threshold or the time recorded by a timer reaches a preset backup interval time, calculating the priority of the backup repeater according to the performance parameters of the backup repeater of the first repeater;
and backing up the cache data of the first repeater according to the priority of the backup repeater.
3. The method of claim 1 or 2, wherein the dividing the terminals of the internet of things connected with the first repeater into a first set of terminals and a second set of terminals comprises:
acquiring the data type of the Internet of things terminal connected with the first repeater;
and determining the terminals of the internet of things contained in the first terminal set and the second terminal set according to the data types.
4. The method of claim 3, wherein the handing over the IOT terminal in the first set of terminals to the second repeater and the IOT terminal in the second set of terminals to the third repeater comprises:
turning on radio frequency functions of the second repeater and the third repeater;
acquiring the equipment identifier of the Internet of things terminal connected with the first repeater;
generating a device authentication code according to the device identification;
sending the equipment authentication codes generated by the terminals of the internet of things in the first terminal set to the second repeater, and sending the equipment authentication codes generated by the terminals of the internet of things in the second terminal set to the third repeater;
when the second repeater and the third repeater receive the connection request of the terminal of the internet of things, judging whether the equipment identification of the terminal of the internet of things initiating the connection request is matched with the equipment authentication code;
and if the matching is successful, connecting with the terminal of the Internet of things.
5. The method according to claim 4, wherein the determining the terminals of the internet of things included in the first terminal set and the second terminal set according to the data type includes:
the Internet of things terminals with the data types of uplink data and downlink data corresponding to the Internet of things terminals connected with the first repeater are distributed to the first terminal set, and the Internet of things terminals with the data types of uplink data or downlink data corresponding to the Internet of things terminals are distributed to the second terminal set;
after the sending the buffered data of the second repeater to the third repeater, the method further comprises:
and generating a data report according to the equipment authentication code of the terminal of the Internet of things and the data type.
6. A system for split backup of internet of things repeaters, the system based on a repeater subsystem including at least a first repeater, a second repeater and a third repeater, the backup repeater of the first repeater including at least the second repeater and the third repeater, the system comprising:
the first backup module is used for acquiring a backup repeater of the first repeater and backing up the cache data of the first repeater to the backup repeater;
a priority obtaining module, configured to obtain, when it is detected that the first relay fails, a priority of the backup relay according to performance parameters of the backup relay, where the performance parameters of the backup relay include: when the processing unit utilization rate is C, the memory utilization rate is M, the running backup job number is J, and the input/output load information is IO, the priority L of the backup repeater is:
l-b 1C + b 2M + b 3D + b4 IO, b1, b2, b3 and b4 represent the weight of C, M, J and IO in calculating the priority, respectively, and b1+ b2+ b3+ b4 is 1;
a relay setting module, configured to rank the priorities of the backup relays, and when the priority of the third relay is lower than the priority of the second relay, use the third relay as the backup relay of the second relay;
the terminal dividing module is used for acquiring the data type of the Internet of things terminal connected with the first repeater so as to divide the Internet of things terminal connected with the first repeater into a first terminal set and a second terminal set according to the data type;
the terminal switching module is used for switching the internet of things terminal in the first terminal set to the second repeater and switching the internet of things terminal in the second terminal set to the third repeater;
and the second backup module is used for sending the cache data of the second repeater to the third repeater.
7. The system of claim 6, further comprising:
the priority acquisition module is used for calculating the priority of the backup relay according to the performance parameters of the backup relay of the first relay when the capacity of the cache data of the first relay reaches a preset capacity threshold or the time recorded by the timer reaches a preset backup interval time;
the first backup module is specifically configured to backup the cache data of the first relay according to the priority of the backup relay.
8. The system according to claim 6 or 7, characterized in that it further comprises:
the first acquisition module is used for acquiring the data type of the Internet of things terminal connected with the first repeater;
the terminal dividing module is specifically configured to determine, according to the data type, internet of things terminals included in the first terminal set and the second terminal set.
9. The system of claim 8, further comprising:
the radio frequency module is used for starting the radio frequency functions of the second repeater and the third repeater;
the second acquisition module is used for acquiring the equipment identifier of the Internet of things terminal connected with the first repeater;
the generating module is used for generating equipment authentication codes according to the equipment identifications;
a sending module, configured to send the device authentication code generated by the internet of things terminal in the first terminal set to the second relay, and send the device authentication code generated by the internet of things terminal in the second terminal set to the third relay;
the judging module is used for judging whether the equipment identifier of the terminal of the internet of things initiating the connection request is matched with the equipment authentication code when the second repeater and the third repeater receive the connection request of the terminal of the internet of things;
and the terminal switching module is specifically used for connecting with the terminal of the Internet of things if the judging module is successfully matched.
10. The system according to claim 9, wherein the terminal partitioning module is specifically configured to allocate the internet of things terminals, of which the data types are uplink data and downlink data, of the internet of things terminals connected to the first repeater to the first terminal set, and allocate the internet of things terminals of which the data types are uplink data or downlink data, to the second terminal set;
the system further comprises:
and the data report generating module is used for generating a data report according to the equipment authentication code of the terminal of the Internet of things and the data type.
CN201710578815.1A 2017-07-14 2017-07-14 Method and system for split backup of Internet of things repeater Active CN107483228B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710578815.1A CN107483228B (en) 2017-07-14 2017-07-14 Method and system for split backup of Internet of things repeater
PCT/CN2017/100564 WO2019010784A1 (en) 2017-07-14 2017-09-05 Method and system for split backup of internet of things repeater

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710578815.1A CN107483228B (en) 2017-07-14 2017-07-14 Method and system for split backup of Internet of things repeater

Publications (2)

Publication Number Publication Date
CN107483228A CN107483228A (en) 2017-12-15
CN107483228B true CN107483228B (en) 2020-02-18

Family

ID=60596763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710578815.1A Active CN107483228B (en) 2017-07-14 2017-07-14 Method and system for split backup of Internet of things repeater

Country Status (2)

Country Link
CN (1) CN107483228B (en)
WO (1) WO2019010784A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756380B (en) * 2019-01-14 2022-02-15 山东建筑大学 Self-adaptive access and sharing method and system for Internet of things equipment
CN112543452B (en) * 2020-11-23 2023-06-27 广州技象科技有限公司 Data skip selection method and device based on signal transmission safety management

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101107874A (en) * 2005-01-21 2008-01-16 松下电器产业株式会社 Backup system, relay device, information terminal, and backup device
CN101656624A (en) * 2008-08-18 2010-02-24 中兴通讯股份有限公司 Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method
CN105046925A (en) * 2015-08-26 2015-11-11 安徽农业大学 Agricultural environment information collection system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101107874A (en) * 2005-01-21 2008-01-16 松下电器产业株式会社 Backup system, relay device, information terminal, and backup device
CN101656624A (en) * 2008-08-18 2010-02-24 中兴通讯股份有限公司 Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method
CN105046925A (en) * 2015-08-26 2015-11-11 安徽农业大学 Agricultural environment information collection system

Also Published As

Publication number Publication date
WO2019010784A1 (en) 2019-01-17
CN107483228A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN110198550B (en) Auxiliary cell group maintenance method, terminal equipment and network node
CN111278001B (en) Terminal capability negotiation method, terminal equipment and network side equipment
CN110198545B (en) Auxiliary cell group adding method, terminal equipment and main node
CN104142862B (en) The overload protection method of server and device
CN107426806B (en) Method and device for transmitting data by Internet of things terminal
US20220030457A1 (en) Measurement method, measurement configuration method, terminal and network device
CN110198553B (en) Auxiliary cell group deletion method, terminal equipment and network node
CN107465537A (en) The backup method and system of Internet of Things repeater
CN107743108B (en) Method and device for identifying medium access control address
CN112134758A (en) Method and device for monitoring weak network environment and reconnecting communication session
CN110611925A (en) Physical downlink control channel monitoring parameter configuration method, terminal and network side equipment
CN107247617B (en) Virtual machine resource allocation method, trial platform and readable storage medium
CN107483228B (en) Method and system for split backup of Internet of things repeater
CN112469005A (en) Method, device and equipment for reducing power consumption of 5G equipment and computer readable storage medium
CN110046033B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN112770279B (en) Network sharing method, mobile terminal and computer readable storage medium
CN111615198A (en) Resource determining method, resource indicating method, terminal and network side equipment
CN107466081B (en) Wireless switching method and terminal
CN107483236B (en) Method and device for backing up access point of Internet of things
CN109587707B (en) Measurement control method, user terminal and base station
CN110461041B (en) Operation control method, mobile communication terminal and network side equipment
CN108541003B (en) VoWiFi call control method and device
CN109769262A (en) The method and terminal device of VoLTE call recovery
CN111614451B (en) Configuration information acquisition and sending method, terminal and network side equipment
CN110972327B (en) Signal transmission method and communication equipment based on unauthorized frequency band

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