CN107493196B - Fault processing method and device based on Internet of things - Google Patents

Fault processing method and device based on Internet of things Download PDF

Info

Publication number
CN107493196B
CN107493196B CN201710745464.9A CN201710745464A CN107493196B CN 107493196 B CN107493196 B CN 107493196B CN 201710745464 A CN201710745464 A CN 201710745464A CN 107493196 B CN107493196 B CN 107493196B
Authority
CN
China
Prior art keywords
access point
terminals
terminal
data
mounting
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
CN201710745464.9A
Other languages
Chinese (zh)
Other versions
CN107493196A (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 CN201710745464.9A priority Critical patent/CN107493196B/en
Publication of CN107493196A publication Critical patent/CN107493196A/en
Application granted granted Critical
Publication of CN107493196B publication Critical patent/CN107493196B/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
    • 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/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Abstract

The embodiment of the invention discloses a fault processing method based on the Internet of things, which is characterized by comprising the following steps: under the condition that a first access point has a fault sign, acquiring terminal data cached in the first access point and a terminal mounted by the first access point; checking the number of the second access point mounting terminals and the number of the third access point mounting terminals; and distributing the terminal data cached in the first access point and the mounted terminals according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point. The embodiment of the invention also discloses a fault processing device based on the Internet of things, and the implementation of the embodiment of the invention ensures that the whole Internet of things can still work normally after the access point fails.

Description

Fault processing method and device based on Internet of things
Technical Field
The invention relates to the technical field of communication, in particular to a fault processing method and device based on the Internet of things.
Background
In the internet of things, each terminal and each repeater are connected with a network through an access point, so that the internet of things is formed, the access points are an important part of the internet of things, and normal transmission of data is guaranteed. When the access point has a fault in the operation process, the signal transmitted on the line cannot be normally transmitted, the buffered data in the signal can be influenced, and the terminal mounted on the faulty access point cannot normally work, so that data loss and trouble are brought to the user.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and an apparatus for data backup based on the internet of things, and when an access point shows a failure, data on the failed access point and a mounted terminal are migrated to another access point, so as to ensure that the entire internet of things can still work normally after the access point fails.
In a first aspect, an embodiment of the present invention provides a fault handling method based on an internet of things, which is characterized by including:
under the condition that a first access point has a fault sign, acquiring terminal data cached in the first access point and a terminal mounted by the first access point;
checking the number of the second access point mounting terminals and the number of the third access point mounting terminals;
and distributing the terminal data cached in the first access point and the mounted terminals according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point.
With reference to the first aspect, in a first possible implementation manner, the allocating terminal data and mounted terminals cached in the first access point according to the number of terminals mounted in the second access point and the number of terminals mounted in the third access point includes:
and under the condition that the number of the terminals mounted on the second access point is smaller than that of the terminals mounted on the third access point, carrying out hot backup on the terminal data cached in the first access point to the third access point, and carrying out migration mounting on the terminals mounted on the first access point to the second access point.
With reference to the first aspect, in a second possible implementation manner, the allocating terminal data and mounted terminals cached in the first access point according to the number of terminals mounted in the second access point and the number of terminals mounted in the third access point includes:
and under the condition that the number of the second access point mounted terminals is equal to that of the third access point mounted terminals, randomly selecting one of the second access point or the third access point to perform hot backup on the data currently cached by the first access point, and transferring the terminal mounted by the first access point to the other access point to perform mounting.
With reference to the first aspect, in a third possible implementation manner, the acquiring, under a condition that the first access point has a failure sign, the terminal data cached in the first access point and the terminal mounted by the first access point includes:
receiving a fault report message indicating that the first access point has a sign of a fault;
sending a data request message according to the fault report message, wherein the data request message is used for requesting to acquire terminal data cached in the first access point and a terminal mounted by the first access point;
receiving terminal data cached in the first access point and a terminal mounted by the first access point;
the checking the number of the second access point mounted terminals and the number of the third access point mounted terminals includes:
acquiring the number of the second access point mounting terminals and the number of the third access point mounting terminals;
comparing the number of the second access point mounted terminals with the number of the third access point mounted terminals;
the allocating the terminal data and the mounted terminals cached in the first access point according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point includes:
under the condition that the number of the second access point mounting terminals is equal to that of the third access point mounting terminals, checking the uploaded data state information of the second access point and the third access point; the uploading data state information comprises the size of the uploading data volume or the urgency degree of the uploading data;
and when the size of the uploaded data volume or the urgent degree of the uploaded data of the second access point is larger than that of the third access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
With reference to the first aspect, in a fourth possible implementation manner, the acquiring, under a condition that the first access point has a failure sign, the terminal data cached in the first access point and the terminal mounted by the first access point includes:
receiving a fault report message indicating that the first access point has a sign of a fault;
sending a data request message according to the fault report message, wherein the data request message is used for requesting to acquire terminal data cached in the first access point and a terminal mounted by the first access point;
receiving terminal data cached in the first access point and a terminal mounted by the first access point;
the checking the number of the second access point mounted terminals and the number of the third access point mounted terminals includes:
acquiring the number of the second access point mounting terminals and the number of the third access point mounting terminals;
comparing the number of the second access point mounted terminals with the number of the third access point mounted terminals;
the allocating the terminal data and the mounted terminals cached in the first access point according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point includes:
under the condition that the number of the second access point mounted terminals is equal to that of the third access point mounted terminals, checking the distances between the second access point and the first access point and the distances between the third access point and the first access point respectively;
and under the condition that the distance between the second access point and the first access point is greater than the distance between the third access point and the first access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
In a second aspect, an embodiment of the present invention provides a fault handling apparatus based on an internet of things, which is characterized by including:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring terminal data cached in a first access point and a terminal mounted by the first access point under the condition that the first access point shows a fault sign;
the number viewing module is used for viewing the number of the second access point mounting terminals and the number of the third access point mounting terminals;
and the distribution module is used for distributing the terminal data cached in the first access point and the mounted terminals according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point.
With reference to the second aspect, in a first possible implementation manner, the allocating module includes:
a hot backup transfer unit, configured to hot backup terminal data cached in the first access point to the third access point when the number of terminals mounted in the second access point is smaller than the number of terminals mounted in the third access point;
a terminal migration unit: and the second access point is used for migrating and mounting the terminal mounted by the first access point to the second access point under the condition that the number of the terminals mounted by the second access point is smaller than that of the terminals mounted by the third access point.
With reference to the second aspect, in a second possible implementation manner, the allocating module includes:
and a random selection unit, configured to randomly select one of the second access point and the third access point to perform hot backup on data currently cached by the first access point when the number of the second access point mounted terminals is equal to the number of the third access point mounted terminals, and migrate the terminal mounted by the first access point to another access point to perform mounting.
With reference to the second aspect, in a third possible implementation manner, the obtaining module includes:
a first receiving unit, configured to receive a fault report message, where the fault report message indicates that the first access point has a fault sign;
a first request unit, configured to send a data request message according to the fault report message, where the data request message is used to request to acquire terminal data cached in the first access point and a terminal mounted on the first access point;
a first receiving unit, configured to receive terminal data cached in the first access point and a terminal mounted on the first access point;
the quantity viewing module includes:
a first number obtaining unit, configured to obtain the number of terminals mounted in the second access point and the number of terminals mounted in the third access point;
the first comparison unit is used for comparing the number of the second access point mounted terminals with the number of the third access point mounted terminals;
the distribution module includes:
the data state viewing unit is used for viewing the uploaded data state information of the second access point and the uploaded data state information of the third access point under the condition that the number of the second access point mounting terminals is equal to that of the third access point mounting terminals; the uploading data state information comprises the size of the uploading data volume or the urgency degree of the uploading data;
and when the size of the uploaded data volume or the urgent degree of the uploaded data of the second access point is larger than that of the third access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
With reference to the second aspect, in a fourth possible implementation manner, the obtaining module includes:
a second receiving unit, configured to receive a fault report message, where the fault report message indicates that the first access point has a fault sign;
a second request unit, configured to send a data request message according to the fault report message, where the data request message is used to request to acquire terminal data cached in the first access point and a terminal mounted on the first access point;
a second receiving unit, configured to receive the terminal data cached in the first access point and the terminal mounted on the first access point;
the quantity viewing module includes:
a second quantity obtaining unit, configured to obtain the quantity of the second access point mount terminals and the quantity of the third access point mount terminals;
the second comparison unit is used for comparing the number of the second access point mounted terminals with the number of the third access point mounted terminals;
the distribution module includes:
a distance checking unit, configured to check distances between the first access point and each of the second access point and the third access point when the number of the second access point mounted terminals is equal to the number of the third access point mounted terminals;
and under the condition that the distance between the second access point and the first access point is greater than the distance between the third access point and the first access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
By implementing the embodiment of the invention, when the access point has a fault sign in the operation process, the terminal data cached in the first access point and the terminal mounted by the first access point are obtained; checking the number of the second access point mounting terminals and the number of the third access point mounting terminals; and distributing the terminal data cached in the first access point and the mounted terminals according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point, so that the data can be continuously transmitted normally. And through the method of carrying out double backup under the fault, the fault resistance of the whole signal transmission device is further enhanced, so that the whole device can continue to work normally when the access point has the fault.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of a network architecture of the internet of things provided by the present invention;
FIG. 2 is a schematic flow chart of a fault handling method based on the Internet of things provided by the invention;
fig. 3 is a schematic flow chart of another embodiment of the fault handling method based on the internet of things provided by the present invention;
fig. 4 is a schematic flow chart of another embodiment of the fault handling method based on the internet of things provided by the present invention;
fig. 5 is a schematic flow chart of another embodiment of the fault handling method based on the internet of things provided by the present invention;
FIG. 6 is a block diagram of a fault handling device based on the Internet of things provided by the invention;
fig. 7 is a schematic diagram of a unit structure of an acquisition module of the fault handling device based on the internet of things provided by the invention;
FIG. 8 is a schematic diagram of a unit structure of a quantity checking module of the fault handling device based on the Internet of things provided by the invention;
fig. 9 is a schematic structural diagram of a unit of an allocation module of the fault handling device based on the internet of things provided by the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying 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.
It is noted that the terms "comprises" and "comprising," and any variations thereof, as used in the embodiments of the present invention, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or apparatus that comprises a list of steps or elements is not limited to those listed but may alternatively include other steps or elements not listed or inherent to such process, method, product, 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.
Fig. 1 is a schematic diagram of a network architecture of an internet of things provided by the present invention, and in a specific embodiment, the network architecture diagram of the internet of things may be as shown in fig. 1, and includes: network 101, fiber 102, gateway 103, Access Point (AP)104, first level terminal 105, and second level terminal 106, wherein:
the network 101 is connected to the gateway 103 through the optical fiber 102, the access point 104 is connected to the gateway 103, the repeaters in the first-stage terminal 105 are connected to the access point 104, and the terminals of the internet of things located in the first-stage terminal 105 and the second-stage terminal 106 may be directly connected to the access point 104 or connected to the repeaters in the first-stage terminal 105, wherein the repeaters connected to the same access point 104 are backup repeaters.
As can be seen from fig. 1, each of the terminals and the repeaters is connected to the network through the access point, and forms an internet of things with other terminals. Specifically, the internet of things terminal can be each smart home in a family, each smart home in the family is connected together through the internet of things, and a gateway in the family performs mutual coupling and data transmission through intermediate devices such as an access point. After a certain access point fails and cannot work continuously, the gateway performs hot backup on data on the failed access point to the second access point, and simultaneously transfers the intelligent home terminal mounted on the failed access point to the third access point for mounting, so that the normal operation of the whole intelligent home internet of things is ensured, and double safety guarantee is provided for the safe operation of the whole internet of things.
Fig. 2 is a schematic flow chart of a fault processing method based on the internet of things, which includes the following steps:
s201: acquiring terminal data cached in the first access point and a terminal mounted by the first access point;
specifically, when the first access point shows a fault, the terminal data cached by the first access point and the migrated mounted terminal are sent to the gateway, so that the overall data transmission is prevented from being influenced under the condition that the first access point cannot work due to the fault.
S202: checking the number of the second access point mounting terminals and the number of the third access point mounting terminals;
specifically, after receiving the cache data sent by the first access point, the gateway indicates that the first access point is about to appear or has appeared with a sign of failure and cannot continue to operate normally, and the gateway selects a second access point and a third access point in a network area controlled by the gateway, and compares the number of the mounted terminals of the second access point and the third access point.
The specific selection mode of the second access point and the third access point may be set in advance. Two access points with the least number of the mounted terminals can be selected from the network area to be respectively used as a second access point and a third access point, and two access points which are closest to the first access point in the network position can also be selected to be used as the second access point and the third access point.
It should be noted that the second access point and the third access point may be selected by the gateway, or the gateway may control the access point near the first access point to perform the selection.
S203: distributing the terminal data cached in the first access point and the mounted terminals according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point;
specifically, after the gateway selects the network locations of the second access point and the third access point, the number of terminals respectively mounted on the second access point and the third access point is compared, and the terminal data cached in the failed first access point and the mounted terminals are distributed according to the number of the terminals mounted on the second access point and the third access point. The specific allocation case is specifically described in the following implementation.
Fig. 3 is a schematic flow chart of another embodiment of the fault handling method based on the internet of things provided by the present invention, which includes the following steps:
s301: receiving a fault report message;
specifically, when the first access point shows a failure, the failure prompt message is sent to the gateway, where the failure prompt message may also be considered as a request for sending the data to be cached and the terminal to be migrated to the gateway, and after the gateway receives the failure prompt message sent by the first access point, the gateway sends a data request message to the first access point according to the failure prompt message, where the data request message is used to request to acquire the data to be cached and the terminal to be migrated from the first access point.
S302: sending a data request message;
specifically, the data request message is used to request to acquire terminal data and a mounted terminal cached in the first access point.
S303: receiving terminal data cached in the first access point and a terminal mounted by the first access point;
s304: checking the number of the second access point mounting terminals and the number of the third access point mounting terminals;
specifically, after receiving the cached data and the mounted terminals sent by the first access point, the gateway indicates that the first access point is about to appear or has appeared with a sign of failure and cannot continue to operate normally, and selects a second access point and a third access point in a network area controlled by the gateway, and compares the number of the mounted terminals of the second access point and the third access point.
The specific selection mode of the second access point and the third access point may be set in advance. Two access points with the least number of the mounted terminals can be selected from the network area to be respectively used as a second access point and a third access point, and two access points which are closest to the first access point in the network position can also be selected to be used as the second access point and the third access point.
It should be noted that the second access point and the third access point may be selected by the gateway, or the gateway may control the access point near the first access point to perform the selection.
S305: judging whether the number of the second access point mounted terminals is smaller than that of the third access point mounted terminals;
specifically, after determining that the number of terminals mounted by the second access point is smaller than the number of terminals mounted by the third access point, step S306 is executed.
S306: when the number of the second access point mounted terminals is smaller than that of the third access point mounted terminals, performing hot backup on terminal data cached in the first access point to the third access point, and migrating and mounting the terminals mounted by the first access point to the second access point;
s307: judging whether the number of the second access point mounted terminals is equal to the number of the third access point mounted terminals;
specifically, when the determination result in step S305 is no, it is further determined whether the number of terminals mounted on the second access point is equal to the number of terminals mounted on the third access point.
S308: carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point;
specifically, when the determination in step S307 is negative, that is, when the number of terminals mounted on the second access point is greater than the number of terminals mounted on the third access point, the terminal data cached in the first access point is hot backed up to the second access point, and the terminal mounted on the first access point is migrated and mounted on the third access point.
S309: randomly selecting one of the second access point or the third access point to perform hot backup on the data currently cached by the first access point, and migrating the terminal mounted on the first access point to the other access point to perform mounting;
specifically, when the determination result in the step S307 is that the number of the terminals mounted on the second access point is equal to the number of the terminals mounted on the third access point, one of the second access point and the third access point is randomly selected to perform hot backup on the data currently cached by the first access point, and the terminal mounted on the first access point is migrated to another access point to perform mounting.
Fig. 4 is a schematic flow chart of another embodiment of the fault handling method based on the internet of things provided by the present invention, which includes the following steps;
s401: receiving a fault report message;
specifically, when the first access point shows a failure, the failure prompt message is sent to the gateway, where the failure prompt message may also be considered as a request for sending the data to be cached and the terminal to be migrated to the gateway, and after the gateway receives the failure prompt message sent by the first access point, the gateway sends a data request message to the first access point according to the failure prompt message, where the data request message is used to request to acquire the data to be cached and the terminal to be migrated from the first access point.
S402: sending a data request message;
specifically, the data request message is used to request to acquire terminal data and a mounted terminal cached in the first access point.
S403: receiving terminal data cached in the first access point and a terminal mounted by the first access point;
s404: checking the number of the second access point mounting terminals and the number of the third access point mounting terminals;
specifically, after receiving the cached data and the mounted terminals sent by the first access point, the gateway indicates that the first access point is about to appear or has appeared with a sign of failure and cannot continue to operate normally, and selects a second access point and a third access point in a network area controlled by the gateway, and compares the number of the mounted terminals of the second access point and the third access point.
The specific selection mode of the second access point and the third access point may be set in advance. Two access points with the least number of the mounted terminals can be selected from the network area to be respectively used as a second access point and a third access point, and two access points which are closest to the first access point in the network position can also be selected to be used as the second access point and the third access point.
It should be noted that the second access point and the third access point may be selected by the gateway, or the gateway may control the access point near the first access point to perform the selection.
S405: judging whether the number of the second access point mounted terminals is smaller than that of the third access point mounted terminals;
specifically, after determining that the number of terminals mounted by the second access point is smaller than the number of terminals mounted by the third access point, step S406 is executed.
S406: when the number of the second access point mounted terminals is smaller than that of the third access point mounted terminals, performing hot backup on terminal data cached in the first access point to the third access point, and migrating and mounting the terminals mounted by the first access point to the second access point;
s407: judging whether the number of the second access point mounted terminals is equal to the number of the third access point mounted terminals;
specifically, when the determination result in step S405 is negative, it is further determined whether the number of terminals mounted by the second access point is equal to the number of terminals mounted by the third access point.
S408: carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point;
specifically, when the determination in step S407 is negative, that is, when the number of terminals mounted on the second access point is greater than the number of terminals mounted on the third access point, the terminal data cached in the first access point is hot backed up to the second access point, and the terminal mounted on the first access point is migrated and mounted on the third access point.
S409: checking the uploaded data state information of the second access point and the third access point and the first access point respectively;
specifically, when the determination in step 4307 is yes, that is, when the number of terminals mounted on the second access point is equal to the number of terminals mounted on the third access point, the upload data status information of the second access point and the upload data status information of the third access point are checked. The upload data state information comprises the size of upload data volume or the urgency of upload data.
S410: and when the size of the uploaded data volume or the urgent degree of the uploaded data of the second access point is larger than that of the third access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
Fig. 5 is a schematic flow chart of another embodiment of the fault handling method based on the internet of things provided by the present invention;
s501: receiving a fault report message;
specifically, when the first access point shows a failure, the failure prompt message is sent to the gateway, where the failure prompt message may also be considered as a request to send data to be cached to the gateway, and after receiving the failure prompt message sent by the first access point, the gateway sends a data request message to the first access point according to the failure prompt message, where the data request message is used to request to acquire the data to be cached in the first access point.
S502: sending a data request message;
specifically, the data request message is used to request to acquire terminal data cached in the first access point.
S503: receiving terminal data cached in the first access point;
s504: checking the number of the second access point mounting terminals and the number of the third access point mounting terminals;
specifically, after receiving the cache data sent by the first access point, the gateway indicates that the first access point is about to appear or has appeared with a sign of failure and cannot continue to operate normally, and the gateway selects a second access point and a third access point in a network area controlled by the gateway, and compares the number of the mounted terminals of the second access point and the third access point.
The specific selection mode of the second access point and the third access point may be set in advance. Two access points with the least number of the mounted terminals can be selected from the network area to be respectively used as a second access point and a third access point, and two access points which are closest to the first access point in the network position can also be selected to be used as the second access point and the third access point.
It should be noted that the second access point and the third access point may be selected by the gateway, or the gateway may control the access point near the first access point to perform the selection.
S505: judging whether the number of the second access point mounted terminals is smaller than that of the third access point mounted terminals;
specifically, after determining that the number of terminals mounted by the second access point is smaller than the number of terminals mounted by the third access point, step S506 is executed.
S506: carrying out hot backup on terminal data cached in the first access point to the third access point, and carrying out migration and mounting on the terminal mounted by the first access point to the second access point;
and after the number of the terminals mounted on the second access point is determined to be smaller than that of the terminals mounted on the third access point, performing hot backup on the terminal data cached in the first access point to the third access point, and performing migration mounting on the terminals mounted on the first access point to the second access point.
S507: judging whether the number of the second access point mounted terminals is equal to the number of the third access point mounted terminals;
specifically, when the determination result in step S505 is no, it is further determined whether the number of terminals mounted by the second access point is equal to the number of terminals mounted by the third access point.
S508: carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point;
specifically, when the determination in step S507 is negative, that is, when the number of terminals mounted on the second access point is greater than the number of terminals mounted on the third access point, the terminal data cached in the first access point is hot backed up to the second access point, and the terminal mounted on the first access point is migrated and mounted on the third access point.
S509: looking at the distances between the second access point and the third access point and the first access point respectively;
specifically, when the determination in step S507 is yes, that is, when the number of terminals mounted on the second access point is equal to the number of terminals mounted on the third access point, the distances between the first access point and each of the second access point and the third access point are checked.
S510: and under the condition that the distance between the second access point and the first access point is greater than the distance between the third access point and the first access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
Fig. 6 is a schematic block diagram of an internet-of-things-based fault handling apparatus provided in the present invention, where the internet-of-things-based data backup apparatus 60 includes: an obtaining module 601, a quantity viewing module 602, and a distributing module 603, wherein:
an obtaining module 601, configured to obtain terminal data cached in a first access point and a terminal mounted on the first access point when the first access point has a fault sign;
a number viewing module 602, configured to view the number of the second access point mounted terminals and the number of the third access point mounted terminals;
the allocating module 603 is configured to allocate the terminal data cached in the first access point and the mounted terminals according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point.
Fig. 7 is a schematic diagram of a unit structure of an acquisition module of the fault handling apparatus based on the internet of things, where the acquisition module 601 includes: a first message receiving unit 6011, a first request unit 6012, a first data receiving unit 6013, a second message receiving unit 6014, a second request unit 6015, and a second data receiving unit 6016, wherein,
a first message receiving unit 6011, configured to receive a failure report message, where the failure report message indicates that the first access point has a failure sign;
a first request unit 6012, configured to send a data request message according to the failure report message, where the data request message is used to request to acquire terminal data cached in the first access point and a terminal mounted on the first access point;
a first data receiving unit 6013, configured to receive the terminal data cached in the first access point and a terminal mounted by the first access point;
a second message receiving unit 6014, configured to receive a failure report message, where the failure report message indicates that the first access point has a failure sign;
a second requesting unit 6015, configured to send a data request message according to the failure report message, where the data request message is used to request to acquire the terminal data cached in the first access point and the terminal mounted on the first access point;
a second data receiving unit 6016, configured to receive the terminal data cached in the first access point and the terminal mounted by the first access point.
Fig. 8 is a schematic structural diagram of a unit of a quantity check module of the fault handling device based on the internet of things, where the quantity check module 602 includes: a first number acquisition unit 6021, a first comparison unit 6022, a second number acquisition unit 6023, and a second comparison unit 6024; wherein the content of the first and second substances,
a first number obtaining unit 6021, configured to obtain the number of terminals mounted by the second access point and the number of terminals mounted by the third access point;
a first comparing unit 6022, configured to compare the number of terminals mounted by the second access point with the number of terminals mounted by the third access point;
a second quantity obtaining unit 6023, configured to obtain the quantity of terminals mounted by the second access point and the quantity of terminals mounted by the third access point;
a second comparing unit 6024, configured to compare the number of terminals mounted by the second access point with the number of terminals mounted by the third access point.
Fig. 9 is a schematic unit structure diagram of an allocation module of the fault handling device based on the internet of things provided by the invention; the assignment module 603 includes: a hot backup transfer unit 6031, a terminal migration unit 6032, a random selection unit 6033, a data state viewing unit 6034, and a distance viewing unit 6035; wherein the content of the first and second substances,
a hot backup transferring unit 6031, configured to, when the number of terminals mounted on the second access point is smaller than the number of terminals mounted on the third access point, hot backup the terminal data cached in the first access point to the third access point;
a terminal migration unit 6032, configured to, when the number of terminals mounted on the second access point is smaller than the number of terminals mounted on the third access point, migrate and mount the terminal mounted on the first access point onto the second access point;
a random selecting unit 6033, configured to, when the number of terminals mounted on the second access point is equal to the number of terminals mounted on the third access point, randomly select one of the second access point and the third access point to perform hot backup on data currently cached by the first access point, and migrate the terminal mounted on the first access point to another access point to perform mounting
A data status check unit 6034, configured to check the uploaded data status information of the second access point and the third access point when the number of the second access point mounted terminals is equal to the number of the third access point mounted terminals; the uploading data state information comprises the size of the uploading data volume or the urgency degree of the uploading data;
a distance checking unit 6035, configured to, when the number of terminals mounted on the second access point is equal to the number of terminals mounted on the third access point, check distances between the first access point and each of the second access point and the third access point.
In summary, by implementing the embodiment of the present invention, when an access point has a failure sign during an operation process, the terminal data cached in the first access point is acquired; checking the number of the second access point mounting terminals and the number of the third access point mounting terminals; each access point is hung with at least one terminal, and the terminals are connected through the access points to form the Internet of things; and under the condition that the number of the terminals mounted on the second access point is less than that of the terminals mounted on the third access point, carrying out hot backup on the terminal data cached in the first access point to the third access point, and carrying out migration mounting on the terminals mounted on the first access point to the second access point, so that the data can be continuously transmitted normally. And through the method of carrying out double backup under the fault, the fault resistance of the whole signal transmission device is further enhanced, so that the whole device can continue to work normally when the access point has the fault.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. 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 by the invention.
In the foregoing 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.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one type of logical function division, and other division manners may be available in actual implementation, for example, a plurality of units or components may be combined or integrated into another device, 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 of some interfaces, devices or units, and may be an electric or other form.
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.
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, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 method according to the embodiments of the present invention.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A fault handling method based on the Internet of things is characterized by comprising the following steps:
under the condition that a first access point has a fault sign, acquiring terminal data cached in the first access point and a terminal mounted by the first access point;
checking the number of the second access point mounting terminals and the number of the third access point mounting terminals;
distributing the terminal data cached in the first access point and the mounted terminals according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point;
the acquiring the terminal data cached in the first access point and the terminal mounted by the first access point under the condition that the first access point has the fault sign includes:
receiving a fault report message indicating that the first access point has a sign of a fault;
sending a data request message according to the fault report message, wherein the data request message is used for requesting to acquire terminal data cached in the first access point and a terminal mounted by the first access point;
receiving terminal data cached in the first access point and a terminal mounted by the first access point;
the checking the number of the second access point mounted terminals and the number of the third access point mounted terminals includes:
acquiring the number of the second access point mounting terminals and the number of the third access point mounting terminals;
comparing the number of the second access point mounted terminals with the number of the third access point mounted terminals;
the allocating the terminal data and the mounted terminals cached in the first access point according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point includes:
under the condition that the number of the second access point mounting terminals is equal to that of the third access point mounting terminals, checking the uploaded data state information of the second access point and the third access point; the uploading data state information comprises the size of the uploading data volume or the urgency degree of the uploading data;
and when the size of the uploaded data volume or the urgent degree of the uploaded data of the second access point is larger than that of the third access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
2. The method of claim 1, wherein the allocating the terminal data and the mounted terminals buffered in the first access point according to the number of terminals mounted in the second access point and the number of terminals mounted in the third access point comprises:
and under the condition that the number of the terminals mounted on the second access point is smaller than that of the terminals mounted on the third access point, carrying out hot backup on the terminal data cached in the first access point to the third access point, and carrying out migration mounting on the terminals mounted on the first access point to the second access point.
3. The method of claim 1, wherein the allocating the terminal data and the mounted terminals buffered in the first access point according to the number of terminals mounted in the second access point and the number of terminals mounted in the third access point comprises:
and under the condition that the number of the second access point mounted terminals is equal to that of the third access point mounted terminals, randomly selecting one of the second access point or the third access point to perform hot backup on the data currently cached by the first access point, and transferring the terminal mounted by the first access point to the other access point to perform mounting.
4. The method of claim 1, wherein the obtaining the terminal data buffered in the first access point and the terminal mounted by the first access point in case of the first access point showing the fault sign comprises:
receiving a fault report message indicating that the first access point has a sign of a fault;
sending a data request message according to the fault report message, wherein the data request message is used for requesting to acquire terminal data cached in the first access point and a terminal mounted by the first access point;
receiving terminal data cached in the first access point and a terminal mounted by the first access point;
the checking the number of the second access point mounted terminals and the number of the third access point mounted terminals includes:
acquiring the number of the second access point mounting terminals and the number of the third access point mounting terminals;
comparing the number of the second access point mounted terminals with the number of the third access point mounted terminals;
the allocating the terminal data and the mounted terminals cached in the first access point according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point includes:
under the condition that the number of the second access point mounted terminals is equal to that of the third access point mounted terminals, checking the distances between the second access point and the first access point and the distances between the third access point and the first access point respectively;
and under the condition that the distance between the second access point and the first access point is greater than the distance between the third access point and the first access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
5. A fault handling device based on the Internet of things is characterized by comprising:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring terminal data cached in a first access point and a terminal mounted by the first access point under the condition that the first access point shows a fault sign;
the number viewing module is used for viewing the number of the second access point mounting terminals and the number of the third access point mounting terminals;
the distribution module is used for distributing the terminal data cached in the first access point and the mounted terminals according to the number of the mounted terminals of the second access point and the number of the mounted terminals of the third access point;
the acquisition module includes:
a first message receiving unit, configured to receive a fault report message, where the fault report message indicates that the first access point has a fault sign;
a first request unit, configured to send a data request message according to the fault report message, where the data request message is used to request to acquire terminal data cached in the first access point and a terminal mounted on the first access point;
a first data receiving unit, configured to receive terminal data cached in the first access point and a terminal mounted on the first access point;
the quantity viewing module includes:
a first number obtaining unit, configured to obtain the number of terminals mounted in the second access point and the number of terminals mounted in the third access point;
the first comparison unit is used for comparing the number of the second access point mounted terminals with the number of the third access point mounted terminals;
the distribution module includes:
the data state viewing unit is used for viewing the uploaded data state information of the second access point and the uploaded data state information of the third access point under the condition that the number of the second access point mounting terminals is equal to that of the third access point mounting terminals; the uploading data state information comprises the size of the uploading data volume or the urgency degree of the uploading data;
and when the size of the uploaded data volume or the urgent degree of the uploaded data of the second access point is larger than that of the third access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
6. The apparatus of claim 5, wherein the assignment module comprises:
a hot backup transfer unit, configured to hot backup terminal data cached in the first access point to the third access point when the number of terminals mounted in the second access point is smaller than the number of terminals mounted in the third access point;
a terminal migration unit: and the second access point is used for migrating and mounting the terminal mounted by the first access point to the second access point under the condition that the number of the terminals mounted by the second access point is smaller than that of the terminals mounted by the third access point.
7. The apparatus of claim 5, wherein the assignment module further comprises:
and a random selection unit, configured to randomly select one of the second access point and the third access point to perform hot backup on data currently cached by the first access point when the number of the second access point mounted terminals is equal to the number of the third access point mounted terminals, and migrate the terminal mounted by the first access point to another access point to perform mounting.
8. The apparatus of claim 5, wherein the acquisition module comprises:
a second message receiving unit, configured to receive a fault report message, where the fault report message indicates that the first access point has a fault sign;
a second request unit, configured to send a data request message according to the fault report message, where the data request message is used to request to acquire terminal data cached in the first access point and a terminal mounted on the first access point;
a second data receiving unit, configured to receive the terminal data cached in the first access point and the terminal mounted on the first access point;
the quantity viewing module includes:
a second quantity obtaining unit, configured to obtain the quantity of the second access point mount terminals and the quantity of the third access point mount terminals;
the second comparison unit is used for comparing the number of the second access point mounted terminals with the number of the third access point mounted terminals;
the distribution module includes:
a distance checking unit, configured to check distances between the first access point and each of the second access point and the third access point when the number of the second access point mounted terminals is equal to the number of the third access point mounted terminals;
and under the condition that the distance between the second access point and the first access point is greater than the distance between the third access point and the first access point, carrying out hot backup on the terminal data cached in the first access point to the second access point, and carrying out migration and mounting on the terminal mounted by the first access point to the third access point.
CN201710745464.9A 2017-08-26 2017-08-26 Fault processing method and device based on Internet of things Active CN107493196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710745464.9A CN107493196B (en) 2017-08-26 2017-08-26 Fault processing method and device based on Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710745464.9A CN107493196B (en) 2017-08-26 2017-08-26 Fault processing method and device based on Internet of things

Publications (2)

Publication Number Publication Date
CN107493196A CN107493196A (en) 2017-12-19
CN107493196B true CN107493196B (en) 2020-10-20

Family

ID=60645776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710745464.9A Active CN107493196B (en) 2017-08-26 2017-08-26 Fault processing method and device based on Internet of things

Country Status (1)

Country Link
CN (1) CN107493196B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110768840A (en) * 2019-10-30 2020-02-07 珠海格力电器股份有限公司 Control method, device, equipment and storage medium of communication equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761938A (en) * 2011-04-29 2012-10-31 华为终端有限公司 Access point and method for managing access point working group
CN103152191A (en) * 2011-12-06 2013-06-12 中国移动通信集团福建有限公司 Processing method and system of service gateway data of internet of things
CN103209447A (en) * 2013-03-04 2013-07-17 重庆邮电大学 Subscriber access terminal selecting device and method supporting multi-hopping wireless local area network (WLAN) in internet of vehicles
CN105554849A (en) * 2015-12-14 2016-05-04 中国联合网络通信集团有限公司 Access method and system of ultra-dense network, control node and data node
WO2017007510A1 (en) * 2014-07-07 2017-01-12 Symphony Teleca Corporation Remote embedded device update platform apparatuses, methods and systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761938A (en) * 2011-04-29 2012-10-31 华为终端有限公司 Access point and method for managing access point working group
CN103152191A (en) * 2011-12-06 2013-06-12 中国移动通信集团福建有限公司 Processing method and system of service gateway data of internet of things
CN103209447A (en) * 2013-03-04 2013-07-17 重庆邮电大学 Subscriber access terminal selecting device and method supporting multi-hopping wireless local area network (WLAN) in internet of vehicles
WO2017007510A1 (en) * 2014-07-07 2017-01-12 Symphony Teleca Corporation Remote embedded device update platform apparatuses, methods and systems
CN105554849A (en) * 2015-12-14 2016-05-04 中国联合网络通信集团有限公司 Access method and system of ultra-dense network, control node and data node

Also Published As

Publication number Publication date
CN107493196A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
US9424221B2 (en) Automated cabling process for a complex environment
CN108023967B (en) Data balancing method and device and management equipment in distributed storage system
CN108156240B (en) Method and system for accessing industrial adapter to server
CN104079445A (en) Distributed type pressure testing system and method
CN109151028A (en) A kind of distributed memory system disaster recovery method and device
CN104301140A (en) Service request responding method, device and system
CN111131505A (en) Data transmission method, equipment, system, device and medium based on P2P network
EP3865998A1 (en) Cluster management method, apparatus and system
CN103327051A (en) Long-distance desktop management system and method
CN112019378B (en) Troubleshooting method and device
CN108833205A (en) Information processing method, device, electronic equipment and storage medium
CN110677464A (en) Edge node device, content distribution system, method, computer device, and medium
CN110913362B (en) Method and device for realizing wireless signal test through client and test equipment
CN107493196B (en) Fault processing method and device based on Internet of things
CN108683561B (en) Site state detection method and device
CN115794423B (en) Intelligent machine room management method and device, electronic equipment and storage medium
CN114173396B (en) Method and device for determining terminal networking time, electronic equipment and storage medium
CN107733683B (en) Data backup method and device based on Internet of things
CN107666401A (en) A kind of configuration information obtaining method and terminal
CN107509097B (en) Video sharing method and device and sharing server
CN111935029B (en) Gateway load balancing method and device, storage medium and electronic equipment
CN105591467A (en) Relay protection fault information main station system based on service-oriented architecture
CN108848182B (en) Updating method of BMC firmware, related equipment and system
CN104065845A (en) Information Processing Device Information Processing Method
CN111092817A (en) Data transmission method and device

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