CN107404404B - Terminal routing method based on Internet of things and Internet of things terminal - Google Patents

Terminal routing method based on Internet of things and Internet of things terminal Download PDF

Info

Publication number
CN107404404B
CN107404404B CN201710633785.XA CN201710633785A CN107404404B CN 107404404 B CN107404404 B CN 107404404B CN 201710633785 A CN201710633785 A CN 201710633785A CN 107404404 B CN107404404 B CN 107404404B
Authority
CN
China
Prior art keywords
repeater
bandwidth
data transmission
backup
transmission state
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
CN201710633785.XA
Other languages
Chinese (zh)
Other versions
CN107404404A (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 CN201710633785.XA priority Critical patent/CN107404404B/en
Publication of CN107404404A publication Critical patent/CN107404404A/en
Application granted granted Critical
Publication of CN107404404B publication Critical patent/CN107404404B/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/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/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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/20Negotiating bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a terminal routing method based on the Internet of things and a terminal of the Internet of things. A terminal routing method based on the Internet of things comprises the following steps: determining the bandwidth requirement of first data to be transmitted currently when the first repeater connected currently is in an abnormal condition; acquiring a data transmission state condition corresponding to the bandwidth requirement of the first data; determining a second repeater which meets a data transmission state condition corresponding to the bandwidth requirement of the first data in a plurality of backup repeaters which are backup repeaters mutually with the first repeater; and establishing routing connection with the second repeater, and transmitting the first data through the second repeater. By adopting the technical scheme of the invention, other relays can be found for data transmission when the relays connected with the terminal of the Internet of things are in abnormal conditions, so that the normal operation of the transmission is ensured.

Description

Terminal routing method based on Internet of things and Internet of things terminal
Technical Field
The invention relates to the technical field of Internet of things, in particular to a terminal routing method based on the Internet of things and a terminal of the Internet of things.
Background
The technology of the internet of things is an important component of a new generation of information technology and an important development stage of the information era, and the internet of things realizes information exchange and communication between articles on the basis of the internet. The Internet of things is applied to various fields such as intelligent transportation, safe home, intelligent illumination and the like through communication sensing technologies such as intelligent sensing, identification technology and pervasive computing.
In order to make data transmission farther, repeaters are often used in the internet of things for signal regeneration and signal restoration, and usually, a plurality of terminals of the internet of things can be connected under one repeater, and the terminals of the internet of things transmit their own data from one network to another network through the repeater. However, when the repeater connected to the terminal of the internet of things is in an abnormal condition (such as the repeater is damaged and the load is too high), transmission delay or interruption is caused, and the terminal of the internet of things cannot successfully transmit data.
Disclosure of Invention
The invention provides a terminal routing method based on the Internet of things and an Internet of things terminal, which can find other repeaters for data transmission when the repeaters connected with the Internet of things terminal are abnormal, and ensure the normal operation of the transmission.
The first aspect of the embodiments of the present invention provides a terminal routing method based on the internet of things, where the method includes:
determining the bandwidth requirement of first data to be transmitted currently when the first repeater connected currently is in an abnormal condition;
acquiring a data transmission state condition corresponding to the bandwidth requirement of the first data;
determining a second repeater which meets a data transmission state condition corresponding to the bandwidth requirement of the first data in a plurality of backup repeaters which are backup repeaters mutually with the first repeater;
and establishing routing connection with the second repeater, and transmitting the first data through the second repeater.
In a first possible implementation manner of the first aspect of the embodiment of the present invention, before the establishing a routing connection with the second relay, the method further includes: determining that a current idle bandwidth of the second repeater is greater than a bandwidth requirement of the first data.
And acquiring the current idle bandwidth of the second repeater from the data transmission state information of the second repeater.
In a second possible implementation manner of the first aspect of the embodiment of the present invention, the data transmission state condition corresponding to the bandwidth requirement includes an occupied bandwidth value interval corresponding to the bandwidth requirement.
The larger the bandwidth requirement is, the smaller the occupied bandwidth value corresponding to the occupied bandwidth value interval corresponding to the bandwidth requirement is, and different occupied bandwidth value intervals are not overlapped with each other.
For example, the bandwidth requirements respectively correspond to two preset levels, the first preset level is that the bandwidth requirements are greater than a first preset threshold, the second preset level is less than the first preset threshold, and when the bandwidth requirements are in the first preset level, the data state transmission condition is that the currently occupied bandwidth value is less than the second preset threshold, that is, the occupied bandwidth value interval corresponding to the bandwidth requirements is [0, second preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the currently occupied bandwidth value is greater than a second preset threshold and smaller than a third preset threshold, that is, the occupied bandwidth value interval corresponding to the bandwidth requirement is [ a second preset threshold, a third preset threshold ].
In a third possible implementation manner of the first aspect of the embodiment of the present invention, the data transmission condition corresponding to the bandwidth requirement includes a numerical interval of the number of connected terminals corresponding to the bandwidth requirement.
The larger the bandwidth requirement is, the smaller the number value of the connected terminals corresponding to the numerical value interval of the number of the connected terminals corresponding to the bandwidth requirement is, and the numerical value intervals of the number of the different connected terminals are not overlapped with each other.
For example, the bandwidth requirements respectively correspond to two preset levels, the first preset level is that the bandwidth requirements are greater than a first preset threshold, the second preset level is less than the first preset threshold, and when the bandwidth requirements are in the first preset level, the data transmission state condition is that the number of currently connected terminals is less than a fourth preset threshold, that is, the numerical value interval of the number of connected terminals corresponding to the bandwidth requirements is [0, fourth preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the number of currently connected terminals is greater than a fourth preset threshold and smaller than a fifth preset threshold, that is, a numerical interval of the number of connected terminals corresponding to the bandwidth requirement is [ a fourth preset threshold, a fifth preset threshold ].
In a fourth possible implementation manner of the first aspect of the embodiment of the present invention, the data transmission state condition corresponding to the bandwidth requirement includes an idle bandwidth value interval corresponding to the bandwidth requirement.
The larger the bandwidth requirement is, the larger the idle bandwidth value corresponding to the idle bandwidth value interval is, and different idle bandwidth value intervals are not overlapped.
For example, the bandwidth requirement levels respectively correspond to two preset levels, the first preset level is that the bandwidth requirement is greater than a first preset threshold, the second preset level is less than the first preset threshold, when the bandwidth requirement is in the first preset level, the data transmission state condition is that the current idle bandwidth value is greater than a sixth preset threshold and less than a seventh preset threshold, that is, the idle bandwidth value interval corresponding to the bandwidth requirement is [ the sixth preset threshold, the seventh preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the current bandwidth value is smaller than a sixth preset threshold, that is, the idle bandwidth value interval corresponding to the bandwidth requirement is [0, sixth preset threshold ].
With reference to the first aspect of the embodiment of the present invention, the second possible implementation manner of the first aspect of the embodiment of the present invention, the third possible implementation manner of the first aspect of the embodiment of the present invention, or the fourth possible implementation manner of the first aspect of the embodiment of the present invention, the requirement levels respectively correspond to a plurality of preset levels, and the plurality of preset levels and the transmission state condition are in a one-to-one correspondence relationship.
In a further embodiment, the data transmission state condition corresponding to the bandwidth requirement is a data transmission state condition that combines the second possible implementation manner of the first aspect of the embodiment of the present invention, the third possible implementation manner of the first aspect of the embodiment of the present invention, or the fourth possible implementation manner of the first aspect of the embodiment of the present invention, that is, the data transmission state condition is a combination of one or more transmission state conditions in a numerical interval of occupied bandwidth, a numerical interval of the number of connected terminals, or a numerical interval of idle bandwidth corresponding to the bandwidth requirement.
In a fifth possible implementation manner of the first aspect of the embodiment of the present invention, before determining, among a plurality of backup repeaters that are backup repeaters with respect to the first repeater, a second repeater that satisfies a transmission state condition corresponding to a bandwidth requirement of the first data, the method further includes:
and acquiring data transmission state information of the plurality of backup repeaters.
In a sixth possible implementation manner of the first aspect of the embodiments of the present invention, the acquiring data transmission state information of multiple backup repeaters of the first repeater includes:
initiating a broadcast connection request in an internet of things where the first repeater is located, and receiving response information sent by a plurality of backup repeaters in the internet of things, wherein the plurality of backup repeaters are backup repeaters with the first repeater, and the response information comprises data transmission state information of the plurality of backup repeaters.
In a preferred embodiment, the broadcast connection request carries information of the first relay and data size information of the first data, so as to find a backup relay of the first relay more suitable for the first data transmission.
In an optional embodiment, a broadcast connection request is initiated in the internet of things where the first repeater is located through a bluetooth technology, an infrared technology, a Wifi technology or a ZigBee technology, and response information sent by the plurality of backup repeaters is received.
In a specific embodiment, the terminal of the internet of things sends a connection request message to the upper management device of the first relay through the first relay, the upper management device, after receiving the connection request message, queries, from a management table of the upper management device, a plurality of backup relays that are in backup relationship with the first relay and forwards the connection request message to the backup relays, respectively, the backup relays send response information to the terminal of the internet of things after receiving the connection request message, and the response information carries data transmission state information of the backup relays.
The upper management device of the first relay may be an Access Point (AP), a router, or other devices with a routing function.
In a specific embodiment taking Wifi technology as an example, an internet of things terminal initiates a Probe Request frame in the internet of things, where the Probe Request frame carries identification information of a first relay, a plurality of relays receiving the Probe Request frame inquire whether the identification information of the first relay exists in a backup relay information table of the plurality of relays, a target relay in the backup relay information table, in which the identification information of the first relay exists, sends response information to the internet of things terminal, and the response information carries data transmission state information of the target relay.
In another optional embodiment, the terminal of the internet of things receives response information sent by a plurality of backup relays in the internet of things, wherein the backup relays and the relays are backup relays, and the response information is sent by an upper management device of the backup relays in the internet of things, and when the upper management device detects that the first relay is abnormal, the backup relays in the current management range, which are backup relays and are backup relays with the first relay, are searched and the backup relays are notified to send response information to the terminal under the first relay, and the response information carries data transmission state information of the backup relays.
The communication mode between the upper management device and the plurality of repeaters may be a wireless or wired communication mode.
In a specific embodiment, the upper management device is an AP, the AP periodically acquires information of a first repeater and a plurality of backup repeaters that are backup repeaters with each other with the first repeater and are managed by the AP, and when the AP detects that the first repeater is abnormal, the AP acquires information of an internet of things terminal that has a connection relationship with the first repeater from the first repeater, and respectively sends notification information to the plurality of backup repeaters that are backup repeaters with each other with the first repeater, where the notification information carries information of the internet of things terminal, and the plurality of backup repeaters respectively send information to the internet of things terminal, where the information carries data transmission status information of the plurality of backup repeaters.
In a specific embodiment, the architecture of the internet of things may be as shown in fig. 1, an AP is connected to a gateway, a repeater is connected to the AP, and a terminal of the internet of things may be directly connected to the AP or may be connected to the repeater, where the repeaters connected to the same AP are backup repeaters.
In a seventh possible implementation manner of the first aspect of the embodiment of the present invention, the acquiring data transmission state information of multiple backup repeaters of the first repeater includes:
and acquiring data transmission state information of a plurality of backup relays which are backup relays with the first relay from the first relay.
In a specific embodiment, the first repeater periodically performs information interaction with a plurality of backup repeaters that are backup repeaters with respect to the first repeater, and stores data transmission status information of the backup repeaters obtained by the information interaction, and when an abnormal condition occurs in the first repeater, the terminal of the internet of things acquires the data transmission status information of the plurality of backup repeaters with respect to the first repeater from the first repeater.
In another embodiment, the first relay acquires, from an upper management device, data transmission status information of a plurality of backup relays that are backup relays for each other with the first relay, so as to be acquired by the terminal of the internet of things, where the upper management device of the first relay stores the data transmission status information of the first relay and the plurality of backup relays that are backup relays for each other with the first relay.
In an alternative embodiment, the backup relationship between the first repeater and the plurality of backup repeaters of the first repeater is stored in the first repeater or in an upper management device of the first repeater.
In an optional embodiment, the data transmission status information of the plurality of backup repeaters which are backup repeaters with respect to the first repeater is acquired from the first repeater by using a bluetooth technology, an infrared technology, a Wifi technology or a ZigBee technology.
A second aspect of an embodiment of the present invention provides an internet of things terminal, where the internet of things terminal includes:
the bandwidth transmission demand determining module is used for determining the bandwidth demand of the first data to be transmitted currently when the first repeater connected currently is in an abnormal condition;
the data transmission state condition acquisition module is used for acquiring a data transmission state condition corresponding to the bandwidth requirement of the first data;
a relay determination module, configured to determine, among a plurality of backup relays that are backup relays for each other with the first relay, a second relay that meets a data transmission state condition corresponding to a bandwidth requirement of the first data;
and the routing connection establishing module establishes routing connection with the second repeater and transmits the first data through the second repeater.
In a first possible implementation manner of the second aspect of the embodiment of the present invention, the internet of things terminal further includes:
and an idle bandwidth determining module, configured to determine that a current idle bandwidth of the second relay is greater than a bandwidth requirement of the first data.
The idle bandwidth determining module obtains the current idle bandwidth of the second relay from the data transmission state information of the second relay.
In a second possible implementation manner of the second aspect of the embodiment of the present invention, the data transmission state condition corresponding to the bandwidth requirement includes an occupied bandwidth value interval corresponding to the bandwidth requirement.
The larger the bandwidth requirement is, the smaller the occupied bandwidth value corresponding to the occupied bandwidth value interval corresponding to the bandwidth requirement is, and different occupied bandwidth value intervals are not overlapped with each other.
For example, the first preset level is that the bandwidth requirement is greater than a first preset threshold, the second preset level is less than the first preset threshold, and when the bandwidth requirement is in the first preset level, the data state transmission condition is that the currently occupied bandwidth value is less than the second preset threshold, that is, the occupied bandwidth value interval corresponding to the bandwidth requirement is [0, second preset threshold ]; and when the bandwidth requirement is in a second preset level, the data transmission state condition is that the currently occupied bandwidth value is larger than a second preset threshold value and smaller than a third preset threshold value.
In a third possible implementation manner of the second aspect of the embodiment of the present invention, the data transmission condition corresponding to the bandwidth requirement includes a numerical interval of the number of connected terminals corresponding to the bandwidth requirement, that is, an occupied bandwidth numerical interval corresponding to the bandwidth requirement is [ a second preset threshold, a third preset threshold ].
In a second possible implementation manner of the second aspect of the embodiment of the present invention, the data transmission condition corresponding to the bandwidth requirement includes a numerical interval of the number of connected terminals corresponding to the bandwidth requirement.
The larger the bandwidth requirement is, the smaller the number value of the connected terminals corresponding to the numerical value interval of the number of the connected terminals corresponding to the bandwidth requirement is, and the numerical value intervals of the number of the different connected terminals are not overlapped with each other.
For example, the bandwidth requirements respectively correspond to two preset levels, the first preset level is that the bandwidth requirements are greater than a first preset threshold, the second preset level is less than the first preset threshold, and when the bandwidth requirements are in the first preset level, the data transmission state condition is that the number of currently connected terminals is less than a fourth preset threshold, that is, the numerical value interval of the number of connected terminals corresponding to the bandwidth requirements is [0, fourth preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the number of currently connected terminals is greater than a fourth preset threshold and smaller than a fifth preset threshold, that is, a numerical interval of the number of connected terminals corresponding to the bandwidth requirement is [ a fourth preset threshold, a fifth preset threshold ].
In a fourth possible implementation manner of the second aspect of the embodiment of the present invention, the data transmission state condition corresponding to the bandwidth requirement includes an idle bandwidth value interval corresponding to the bandwidth requirement.
The larger the bandwidth requirement is, the larger the idle bandwidth value corresponding to the idle bandwidth value interval is, and different idle bandwidth value intervals are not overlapped.
For example, in an optional embodiment, the bandwidth requirement levels respectively correspond to two preset levels, where the first preset level is that the bandwidth requirement is greater than a first preset threshold, and the second preset level is less than the first preset threshold, and when the bandwidth requirement is in the first preset level, the data transmission state condition is that the current idle bandwidth value is greater than a sixth preset threshold and less than a seventh preset threshold, that is, an idle bandwidth value interval corresponding to the bandwidth requirement is [ a sixth preset threshold, a seventh preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the current bandwidth value is smaller than a sixth preset threshold, that is, the idle bandwidth value interval corresponding to the bandwidth requirement is [0, sixth preset threshold ].
With reference to the second aspect of the embodiment of the present invention, the second possible implementation manner of the second aspect of the embodiment of the present invention, the third possible implementation manner of the second aspect of the embodiment of the present invention, or the fourth possible implementation manner of the second aspect of the embodiment of the present invention, the requirement levels respectively correspond to a plurality of preset levels, and the plurality of preset levels and the transmission state condition are in a one-to-one correspondence relationship.
In a further embodiment, the data transmission state condition corresponding to the bandwidth requirement is a data transmission state condition that combines the second possible implementation manner of the second aspect of the embodiment of the present invention, the third possible implementation manner of the second aspect of the embodiment of the present invention, or the fourth possible implementation manner of the second aspect of the embodiment of the present invention, that is, the data transmission state condition is a combination of one or more transmission state conditions in a numerical interval of occupied bandwidth, a numerical interval of the number of connected terminals, or a numerical interval of idle bandwidth corresponding to the bandwidth requirement.
In a fifth possible implementation manner of the second aspect of the embodiment of the present invention, the internet of things terminal further includes:
and the data transmission state information acquisition module is used for acquiring the data transmission state information of the plurality of backup relays.
In a sixth possible implementation manner of the second aspect of the embodiment of the present invention, the data transmission state information obtaining module is specifically configured to:
initiating a broadcast connection request in the internet of things where the first repeater is located, and receiving response information sent by a plurality of backup repeaters in the internet of things, wherein the plurality of backup repeaters and the repeater are backup repeaters, and the response information comprises data transmission state information of the plurality of backup repeaters.
In a preferred embodiment, the broadcast connection request carries information of the first relay and data size information of the first data, so as to find a backup relay of the first relay more suitable for the first data transmission.
In an optional embodiment, the data transmission state information obtaining module initiates a broadcast connection request in the internet of things where the first repeater is located through a bluetooth technology, an infrared technology, a Wifi technology or a ZigBee technology, and receives response information sent by the plurality of backup repeaters.
In a specific embodiment, the terminal of the internet of things sends a connection request message to the upper management device of the first relay through the first relay, the upper management device, after receiving the connection request message, queries, from a management table of the upper management device, a plurality of backup relays that are in backup relationship with the first relay and forwards the connection request message to the backup relays, respectively, the backup relays send response information to the terminal of the internet of things after receiving the connection request message, and the response information carries data transmission state information of the backup relays.
The upper management device of the first relay may be an Access Point (AP), a router, or other devices with a routing function.
In a specific embodiment taking Wifi technology as an example, an internet of things terminal initiates a Probe Request frame in the internet of things, where the Probe Request frame carries identification information of a first relay, a plurality of relays receiving the Probe Request frame inquire whether the identification information of the first relay exists in a backup relay information table of the plurality of relays, a target relay in the backup relay information table, in which the identification information of the first relay exists, sends response information to the internet of things terminal, and the response information carries data transmission state information of the target relay.
In another optional embodiment, the data transmission state information obtaining module receives response information sent by a plurality of backup relays that are backup relays with each other with the relay in the internet of things without initiating a broadcast connection request, where the response information sent by the plurality of backup relays is controlled by upper management equipment of the plurality of backup relays in the internet of things, and when the upper management equipment detects that the first relay is abnormal, searches for the plurality of backup relays that are backup relays with each other with the first relay in a current management range and notifies the backup relays to send the response information to a terminal under the first relay, where the response information carries data transmission state information of the plurality of backup relays.
In a specific embodiment, the upper management device is an AP, the AP periodically acquires information of a first repeater and a plurality of backup repeaters that are backup repeaters with each other with the first repeater and are managed by the AP, and when the AP detects that the first repeater is abnormal, the AP acquires information of an internet of things terminal that has a connection relationship with the first repeater from the first repeater, and respectively sends notification information to the plurality of backup repeaters that are backup repeaters with each other with the first repeater, where the notification information carries information of the internet of things terminal, and the plurality of backup repeaters respectively send information to the internet of things terminal, where the information carries data transmission status information of the backup repeaters.
The communication mode between the upper management device and the plurality of repeaters may be a wireless or wired communication mode.
In a seventh possible implementation manner of the second aspect of the embodiment of the present invention, the data transmission state information obtaining module is specifically configured to:
and acquiring data transmission state information of a plurality of backup relays which are backup relays with the first relay from the first relay.
In a specific embodiment, the first repeater periodically performs information interaction with a plurality of backup repeaters that are backup repeaters with respect to the first repeater, and stores data transmission status information of the backup repeaters obtained by the information interaction, and when an abnormal condition occurs in the first repeater, the terminal of the internet of things acquires the data transmission status information of the plurality of backup repeaters with respect to the first repeater from the first repeater.
In another embodiment, the first relay acquires, from an upper management device, data transmission status information of a plurality of backup relays that are backup relays for each other with the first relay, so as to be acquired by the terminal of the internet of things, where the upper management device of the first relay stores the data transmission status information of the first relay and the plurality of backup relays that are backup relays for each other with the first relay.
In an alternative embodiment, the backup relationship between the first repeater and the plurality of backup repeaters of the first repeater is stored in the first repeater or in an upper management device of the first repeater.
In an optional embodiment, the data transmission state information obtaining module obtains the data transmission state information of the plurality of backup repeaters that are backup repeaters with each other with the first repeater from the first repeater through a bluetooth technology, an infrared technology, a Wifi technology, or a ZigBee technology.
According to the embodiment of the invention, when the first repeater connected currently is abnormal, the data transmission state information of a plurality of backup repeaters of the first repeater is acquired, the second repeater meeting the data transmission state condition corresponding to the bandwidth requirement is selected according to the bandwidth requirement of the first data to be transmitted per se, and the routing connection relation is established between the second repeater and the first repeater, so that the normal transmission of the data to be transmitted is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a network architecture diagram of the internet of things in an embodiment of the present invention;
fig. 2 is a schematic flow chart of a terminal routing method based on the internet of things in the embodiment of the present invention;
fig. 3-a is a schematic diagram illustrating that a terminal of the internet of things obtains transmission state information of a plurality of backup repeaters which are backup repeaters with respect to a first repeater by broadcasting a connection request;
fig. 3-b is a schematic diagram illustrating that the terminal of the internet of things acquires transmission state information of a plurality of backup repeaters from the first repeater, wherein the backup repeaters are backup repeaters with respect to the first repeater;
fig. 3-c is a schematic diagram of an internet of things terminal receiving information sent by a plurality of backup repeaters that are backup repeaters with a first repeater to obtain transmission state information of the plurality of backup repeaters;
fig. 4 is a schematic diagram of the terminal of the internet of things determining the connection of the second repeater according to the data transmission state information of the backup repeater;
fig. 5 is a schematic flow chart of another method for selecting a terminal route based on the internet of things according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal of the internet of things in the embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware composition structure of an internet of things terminal in the embodiment of the present invention.
Detailed Description
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.
The terms "first," "second," "third," and the like in the description and in the claims, and in the above-described drawings, are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, 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.
Referring to fig. 2, fig. 2 is a schematic flow chart of a terminal routing method based on the internet of things in the embodiment of the present invention, where the method may be implemented on an internet of things terminal with a certain communication capability, such as a mobile phone, a smart watch, and a wearable device, and as shown in the figure, the method at least includes:
s101, determining the bandwidth requirement of the first data to be transmitted when the first repeater connected at present is abnormal.
The abnormal condition may include an abnormal condition that the first repeater is damaged, and the current load of the first repeater is too high.
S102, acquiring a data transmission state condition corresponding to the bandwidth requirement of the first data.
Optionally, the data transmission state condition corresponding to the bandwidth requirement may be an occupied bandwidth value interval corresponding to the bandwidth requirement, where the larger the bandwidth requirement is, the smaller the occupied bandwidth value corresponding to the occupied bandwidth value interval corresponding to the bandwidth requirement is, and different occupied bandwidth value intervals do not overlap with each other.
Specifically, the bandwidth requirement may correspond to two preset levels, where the first preset level is that the bandwidth requirement is greater than a first preset threshold, and the second preset level is less than the first preset threshold, and when the bandwidth requirement is at the first preset level, the data state transmission condition is that a currently occupied bandwidth value is less than the second preset threshold, that is, an occupied bandwidth value interval corresponding to the bandwidth requirement is [0, second preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the currently occupied bandwidth value is greater than a second preset threshold and smaller than a third preset threshold, that is, the occupied bandwidth value interval corresponding to the bandwidth requirement is [ a second preset threshold, a third preset threshold ].
Optionally, the data transmission condition corresponding to the bandwidth requirement may be a numerical interval of the number of connected terminals corresponding to the bandwidth requirement, where the larger the bandwidth requirement is, the smaller the number of connected terminals corresponding to the numerical interval of the number of connected terminals corresponding to the bandwidth requirement is, and the numerical intervals of the number of different connected terminals do not overlap each other.
Specifically, the bandwidth requirements may correspond to two preset levels respectively, where the first preset level is that the bandwidth requirements are greater than a first preset threshold, and the second preset level is less than the first preset threshold, and when the bandwidth requirements are in the first preset level, the data transmission state condition is that the number of currently connected terminals is less than a fourth preset threshold, that is, a numerical interval of the number of connected terminals corresponding to the bandwidth requirements is [0, fourth preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the number of currently connected terminals is greater than a fourth preset threshold and smaller than a fifth preset threshold, that is, a numerical interval of the number of connected terminals corresponding to the bandwidth requirement is [ a fourth preset threshold, a fifth preset threshold ].
Optionally, the data transmission state condition corresponding to the bandwidth requirement may be an idle bandwidth value interval corresponding to the bandwidth requirement, where the larger the bandwidth requirement is, the larger the idle bandwidth value corresponding to the idle bandwidth value interval corresponding to the bandwidth requirement is, and different idle bandwidth value intervals are not overlapped with each other.
Specifically, the bandwidth demand levels may respectively correspond to two preset levels, the first preset level is that the bandwidth demand is greater than a first preset threshold, the second preset level is less than the first preset threshold, and when the bandwidth demand is in the first preset level, the data transmission state condition is that the current idle bandwidth value is greater than a sixth preset threshold and less than a seventh preset threshold, that is, the idle bandwidth value interval corresponding to the bandwidth demand is [ a sixth preset threshold, a seventh preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the current bandwidth value is smaller than a sixth preset threshold, that is, the idle bandwidth value interval corresponding to the bandwidth requirement is [0, sixth preset threshold ].
The first preset threshold, the second preset threshold, the third preset threshold, the fourth preset threshold, the fifth preset threshold, the sixth preset threshold and the seventh preset threshold are set according to the specific bandwidth condition and the performance condition of the repeater.
Optionally, the bandwidth requirement may not be limited to two preset levels in the above scheme, the bandwidth requirement may correspond to multiple preset levels respectively, each preset level corresponds to a transmission condition, and the bandwidth requirement may be set according to an actual requirement and a specific situation of a relay of the internet of things network, which are not discussed herein one by one.
In a further specific implementation, the data transmission state condition corresponding to the bandwidth requirement may be a combination of one or more transmission state conditions in an occupied bandwidth value interval, a connected terminal number value interval, or an idle bandwidth value interval corresponding to the bandwidth requirement.
And S103, determining a second repeater which meets the data transmission state condition corresponding to the bandwidth requirement of the first data in a plurality of backup repeaters which are backup repeaters with the first repeater.
Optionally, before step S103 is executed, data transmission status information of the plurality of backup repeaters may be acquired.
Optionally, the transmission status information may include information such as a currently occupied bandwidth value of the backup relay, a currently connected number of terminals of the backup relay, a currently idle bandwidth value of the backup relay, and a device identifier of the backup relay.
Optionally, the obtaining the data transmission status information of the multiple backup repeaters of the first repeater may include:
initiating a broadcast connection request in the Internet of things where the first repeater is located;
receiving response information sent by a plurality of backup relays in the Internet of things, wherein the plurality of backup relays and the first relay are backup relays, and the response information comprises data transmission state information of the plurality of backup relays.
Optionally, a broadcast connection request may be initiated in the internet of things where the first repeater is located through a bluetooth technology, an infrared technology, a Wifi technology, or a ZigBee technology, and response information sent by the plurality of backup repeaters is received.
Taking Wifi technology as an example, in a specific implementation, an internet of things terminal initiates a Probe Request frame in the internet of things, where the Probe Request frame carries identification information of a first relay, a plurality of relays receiving the Probe Request frame query whether the identification information of the first relay exists in a backup relay information table of the plurality of relays, a target relay in the backup relay information table, where the identification information of the first relay exists, sends response information to the internet of things terminal, and the response information carries data transmission state information of the target relay.
Specifically, as shown in fig. 3-a, fig. 3-a is a schematic diagram of an internet of things terminal acquiring transmission state information of a plurality of backup relays that are backup relays with a first relay by broadcasting a connection request. In fig. 3-B, there are a repeater a, a repeater B, a repeater C, and a repeater D that are backup repeaters with respect to the first repeater, when the first repeater is abnormal, the terminal of the internet of things initiates a connection request to the repeater a, the repeater B, the repeater C, and the repeater D, respectively, and after receiving the connection request, the repeater a, the repeater B, the repeater C, and the repeater D send response information carrying transmission state information of the repeater to the terminal of the internet of things, and the terminal of the internet of things acquires the transmission state information of the repeater A, B, C, D from the response information.
Optionally, the data transmission status information of the plurality of backup repeaters of the first repeater may be acquired from the first repeater.
Specifically, as shown in fig. 3-b, fig. 3-b is a schematic diagram of the terminal of the internet of things obtaining transmission state information of a plurality of backup repeaters from the first repeater, the backup repeaters mutually serving as backup repeaters with the first repeater. In fig. 3-b, when an abnormal condition occurs in the first repeater, the transmission status information of the first repeater is respectively acquired from the backup repeater A, B, C, D which is a backup repeater with the first repeater, and the terminal of the internet of things acquires the transmission status information of the repeater A, B, C, D from the first repeater.
In another specific implementation, the first relay may obtain, from the upper management device of the first relay, data transmission state information of a plurality of backup relays that are backup relays for each other with the first relay, so that the terminal of the internet of things can obtain the transmission state information of the plurality of backup relays.
Optionally, the obtaining the data transmission status information of the multiple backup repeaters of the first repeater may include:
receiving response information sent by a backup repeater which informs the Internet of things where the first repeater is located and the first repeater to be a backup repeater for the first repeater, wherein the response information carries transmission state information of the backup repeater.
Specifically, as shown in fig. 3-c, fig. 3-c is a schematic diagram of an internet of things terminal receiving information sent by a plurality of backup repeaters that are backup repeaters with respect to a first repeater to acquire transmission state information of the plurality of backup repeaters. In fig. 3-c, there is A, B, C, D a backup repeater which is a backup repeater with the first repeater, and when the upper management device of the first repeater detects that the first repeater is abnormal, the backup repeater A, B, C, D is notified to send information carrying self transmission state information to the terminal of the internet of things.
Specifically, as shown in fig. 4, fig. 4 is a schematic diagram of determining, by the terminal of the internet of things, the connection of the second relay according to the data transmission state information of the backup relay. In fig. 4, it is assumed that the data transmission state condition is an occupied bandwidth numerical interval, the first preset threshold is 2M, the second preset threshold is 5M, the third preset threshold is 8M, the terminal has currently acquired the transmission state information of the backup relay A, B, C, D of the first relay, it is assumed that the bandwidth requirement of the first data to be transmitted at present of the internet of things terminal is 1M, the bandwidth occupied at present of a is 4M, the bandwidth occupied at present of B is 3M, the bandwidth occupied at present of C is 6M, the bandwidth occupied at present of D is 10M, and C is the second relay meeting the transmission state condition.
And S104, establishing routing connection with the second repeater, and transmitting the first data through the second repeater.
Optionally, the second repeater may establish a path connection with the second repeater through a bluetooth technology, an infrared technology, a Wifi technology, or a ZigBee technology, and specifically, the path connection may be determined according to a connection technology adopted in the current internet of things.
Optionally, before establishing the routing connection with the second relay, the method further includes:
determining that a current idle bandwidth of the second repeater is greater than a bandwidth requirement of the first data.
Optionally, the current idle bandwidth of the second relay may be obtained from the data transmission status information of the second relay.
According to the embodiment of the invention, when the first repeater connected currently is abnormal, the data transmission state information of a plurality of backup repeaters of the first repeater is acquired, the second repeater meeting the data transmission state condition corresponding to the bandwidth requirement is selected according to the bandwidth requirement of the first data to be transmitted per se, and the routing connection relation is established between the second repeater and the first repeater, so that the normal transmission of the data to be transmitted is ensured.
Further, referring to fig. 5, fig. 5 is a schematic flow chart of another terminal routing method based on the internet of things in the embodiment of the present invention, where the method may be implemented on an internet of things terminal with a certain communication capability, such as a mobile phone, a smart watch, and a wearable device, and as shown in the figure, the method at least includes:
s201, when the first repeater connected at present is abnormal, determining the bandwidth requirement of the first data to be transmitted at present.
The abnormal condition may include an abnormal condition that the first repeater is damaged, and the current load of the first repeater is too high.
S202, initiating a broadcast connection request in the Internet of things where the first repeater is located, and receiving response information sent by a plurality of backup repeaters in the Internet of things, wherein the plurality of backup repeaters and the first repeater are backup repeaters, and the response information comprises data transmission state information of the plurality of backup repeaters.
Optionally, the data transmission status information may include information such as a currently occupied bandwidth value of the backup relay, a currently connected number of terminals of the backup relay, a currently idle bandwidth value of the backup relay, and a device identifier of the backup relay.
Optionally, the broadcast connection request may be initiated in the internet of things where the first repeater is located through a bluetooth technology, an infrared technology, a Wifi technology, or a ZigBee technology.
Taking Wifi technology as an example, in a specific implementation, an internet of things terminal initiates a Probe Request frame in the internet of things, and a plurality of backup relays receiving the Probe Request frame send Response information to the internet of things terminal through the Probe Response frame, where the Response information carries transmission state information of the plurality of backup relays.
Specifically, as shown in fig. 3-a, fig. 3-a is a schematic diagram of an internet of things terminal acquiring transmission state information of a plurality of backup relays that are backup relays with a first relay by broadcasting a connection request. In fig. 3-a, there are a repeater a, a repeater B, a repeater C, and a repeater D that are backup repeaters with respect to the first repeater, when the first repeater is abnormal, the terminal of the internet of things initiates a connection request to the repeater a, the repeater B, the repeater C, and the repeater D, respectively, and after receiving the connection request, the repeater a, the repeater B, the repeater C, and the repeater D send response information carrying transmission state information of the repeater to the terminal of the internet of things, and the terminal of the internet of things acquires the transmission state information of the repeater A, B, C, D from the response information.
S203, judging whether the bandwidth requirement of the first data is larger than a first preset threshold value.
Optionally, the first preset threshold may be various bandwidth values such as 1M, 2M, and the like.
And S204, when the bandwidth requirement of the first data is smaller than a first preset threshold, determining that the target backup relay, which is occupied currently and larger than a second preset threshold and smaller than a third preset threshold and is connected currently and larger than a fourth preset threshold and smaller than a fifth preset threshold, is a second relay from the plurality of backup relays.
Optionally, the currently occupied bandwidth and the number of currently connected terminals of the backup relay may be obtained from the obtained data transmission state information of the backup relay.
S205, when the bandwidth requirement of the first data is greater than a first preset threshold, determining a target backup relay, which is occupied currently and has a bandwidth less than a second preset threshold and the number of terminals connected currently and is less than a fourth preset threshold, from the plurality of backup relays as a second relay.
S206, establishing routing connection with the second repeater, and transmitting the first data through the second repeater.
Optionally, the second repeater may establish a path connection with the second repeater through a bluetooth technology, an infrared technology, a Wifi technology, or a ZigBee technology, and specifically, the path connection may be determined according to a connection technology adopted in the current internet of things.
Optionally, before establishing the routing connection with the second relay, the method further includes:
determining that a current idle bandwidth of the second repeater is greater than a bandwidth requirement of the first data.
Optionally, the current idle bandwidth of the second relay may be obtained from the data transmission status information of the second relay.
The embodiment of the invention initiates a broadcast connection request in the Internet of things where the first repeater is located when the first repeater currently connected is in an abnormal condition, acquires the data transmission state information of a plurality of backup repeaters of the first repeater, compares the bandwidth requirement of the first data to be transmitted with the size of a first preset threshold value, when the bandwidth requirement of the first data is smaller than a first preset threshold value, determining a target backup repeater which is larger than a second preset threshold value and smaller than a third preset threshold value in the current occupied bandwidth and larger than a fourth preset threshold value and smaller than a fifth preset threshold value in the current connected terminal quantity as a second repeater, establishing a routing connection relation with the second repeater to ensure the normal transmission of the data to be transmitted, and meanwhile, a proper repeater is selected according to the bandwidth requirement of the first data, so that the bandwidth resource of the repeater is reasonably distributed and utilized.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal of the internet of things in the embodiment of the present invention, and as shown in the figure, the terminal of the internet of things at least includes:
the bandwidth transmission requirement determining module 310 is configured to determine a bandwidth requirement of the first data to be currently transmitted when an abnormal condition occurs in the currently connected first repeater.
The abnormal condition may include an abnormal condition that the first repeater is damaged, and the current load of the first repeater is too high.
A data transmission status condition obtaining module 320, configured to obtain a data transmission status condition corresponding to a bandwidth requirement of the first data.
Optionally, the data transmission state condition corresponding to the bandwidth requirement may be an occupied bandwidth value interval corresponding to the bandwidth requirement, where the larger the bandwidth requirement is, the smaller the occupied bandwidth value corresponding to the occupied bandwidth value interval corresponding to the bandwidth requirement is, and different occupied bandwidth value intervals do not overlap with each other.
Specifically, the bandwidth requirement may correspond to two preset levels, where the first preset level is that the bandwidth requirement is greater than a first preset threshold, and the second preset level is less than the first preset threshold, and when the bandwidth requirement is at the first preset level, the data state transmission condition is that a currently occupied bandwidth value is less than the second preset threshold, that is, an occupied bandwidth value interval corresponding to the bandwidth requirement is [0, second preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the currently occupied bandwidth value is greater than a second preset threshold and smaller than a third preset threshold, that is, the occupied bandwidth value interval corresponding to the bandwidth requirement is [ a second preset threshold, a third preset threshold ].
Optionally, the data transmission condition corresponding to the bandwidth requirement may be a numerical interval of the number of connected terminals corresponding to the bandwidth requirement, where the larger the bandwidth requirement is, the smaller the number of connected terminals corresponding to the numerical interval of the number of connected terminals corresponding to the bandwidth requirement is, and the numerical intervals of the number of different connected terminals do not overlap each other.
Specifically, the bandwidth requirements may correspond to two preset levels respectively, where the first preset level is that the bandwidth requirements are greater than a first preset threshold, and the second preset level is less than the first preset threshold, and when the bandwidth requirements are in the first preset level, the data transmission state condition is that the number of currently connected terminals is less than a fourth preset threshold, that is, a numerical interval of the number of connected terminals corresponding to the bandwidth requirements is [0, fourth preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the number of currently connected terminals is greater than a fourth preset threshold and smaller than a fifth preset threshold, that is, a numerical interval of the number of connected terminals corresponding to the bandwidth requirement is [ a fourth preset threshold, a fifth preset threshold ].
Optionally, the data transmission state condition corresponding to the bandwidth requirement may be an idle bandwidth value interval corresponding to the bandwidth requirement, where the larger the bandwidth requirement is, the larger the idle bandwidth value corresponding to the idle bandwidth value interval corresponding to the bandwidth requirement is, and different idle bandwidth value intervals are not overlapped with each other.
Specifically, the bandwidth demand levels may respectively correspond to two preset levels, the first preset level is that the bandwidth demand is greater than a first preset threshold, the second preset level is less than the first preset threshold, and when the bandwidth demand is in the first preset level, the data transmission state condition is that the current idle bandwidth value is greater than a sixth preset threshold and less than a seventh preset threshold, that is, the idle bandwidth value interval corresponding to the bandwidth demand is [ a sixth preset threshold, a seventh preset threshold ]; when the bandwidth requirement is in a second preset level, the data transmission state condition is that the current bandwidth value is smaller than a sixth preset threshold, that is, the idle bandwidth value interval corresponding to the bandwidth requirement is [0, sixth preset threshold ].
The first preset threshold, the second preset threshold, the third preset threshold, the fourth preset threshold, the fifth preset threshold, the sixth preset threshold and the seventh preset threshold are set according to the specific bandwidth condition and the performance condition of the repeater.
Optionally, the bandwidth requirement may not be limited to two preset levels in the above scheme, the bandwidth requirement may correspond to multiple preset levels respectively, each preset level corresponds to a transmission condition, and the bandwidth requirement may be set according to a specific situation of a repeater of an actual internet of things network, which is not discussed herein one by one.
In a further specific implementation, the data transmission state condition corresponding to the bandwidth requirement may be a combination of one or more transmission state conditions of an occupied bandwidth value interval, a connected terminal number value interval, and an idle bandwidth value interval corresponding to the bandwidth requirement.
A relay determining module 330, configured to determine, according to the data transmission status information of the multiple backup relays, a second relay that meets a data transmission status condition corresponding to the bandwidth requirement of the first data among the multiple backup relays.
Specifically, as shown in fig. 4, fig. 4 is a schematic diagram of determining, by the terminal of the internet of things, the connection of the second relay according to the data transmission state information of the backup relay. In fig. 4, it is assumed that the data transmission state condition is an occupied bandwidth numerical interval, the first preset threshold is 2M, the second preset threshold is 5M, the third preset threshold is 8M, the terminal has currently acquired the transmission state information of the backup relay A, B, C, D of the first relay, it is assumed that the bandwidth requirement of the first data to be transmitted at present of the internet of things terminal is 1M, the bandwidth occupied at present of a is 4M, the bandwidth occupied at present of B is 3M, the bandwidth occupied at present of C is 6M, the bandwidth occupied at present of D is 10M, and C is the second relay meeting the transmission state condition.
And a routing connection establishing module 340, configured to establish a routing connection with the second relay, and transmit the first data through the second relay.
Optionally, the routing connection establishing module 340 may establish a routing connection with the second repeater through a bluetooth technology, an infrared technology, a Wifi technology, or a ZigBee technology, and specifically may be determined according to a connection technology adopted in the current internet of things.
Optionally, the internet of things terminal may further include a data transmission state information obtaining module 350.
Optionally, the transmission status information may include information such as a currently occupied bandwidth value of the backup relay, a currently connected number of terminals of the backup relay, a currently idle bandwidth value of the backup relay, and a device identifier of the backup relay.
Optionally, the data transmission state information obtaining module 350 is specifically configured to:
initiating a broadcast connection request in the Internet of things where the first repeater is located;
receiving response information sent by a plurality of backup relays in the Internet of things, wherein the plurality of backup relays and the first relay are backup relays, and the response information comprises data transmission state information of the plurality of backup relays.
Optionally, a broadcast connection request may be initiated in the internet of things where the first repeater is located through a bluetooth technology, an infrared technology, a Wifi technology, or a ZigBee technology, and response information sent by the plurality of backup repeaters is received.
Taking Wifi technology as an example, in a specific implementation, an internet of things terminal initiates a Probe Request frame in the internet of things, where the Probe Request frame carries identification information of a first relay, a plurality of relays receiving the Probe Request frame query whether the identification information of the first relay exists in a backup relay information table of the plurality of relays, a target relay in the backup relay information table, where the identification information of the first relay exists, sends response information to the internet of things terminal, and the response information carries data transmission state information of the target relay.
Specifically, as shown in fig. 3-a, fig. 3-a is a schematic diagram of an internet of things terminal acquiring transmission state information of a plurality of backup relays that are backup relays with a first relay by broadcasting a connection request. In fig. 3-a, there are a repeater a, a repeater B, a repeater C, and a repeater D that are backup repeaters with respect to the first repeater, when the first repeater is abnormal, the terminal of the internet of things initiates a connection request to the repeater a, the repeater B, the repeater C, and the repeater D, respectively, and after receiving the connection request, the repeater a, the repeater B, the repeater C, and the repeater D send response information carrying transmission state information of the repeater to the terminal of the internet of things, and the terminal of the internet of things acquires the transmission state information of the repeater A, B, C, D from the response information.
Alternatively, the data transmission status information obtaining module 350 may obtain the data transmission status information of a plurality of backup repeaters of the first repeater from the first repeater.
Specifically, as shown in fig. 3-b, fig. 3-b is a schematic diagram of the terminal of the internet of things obtaining transmission state information of a plurality of backup repeaters from the first repeater, the backup repeaters mutually serving as backup repeaters with the first repeater. In fig. 3-b, when an abnormal condition occurs in the first repeater, the transmission status information of the first repeater is respectively acquired from the backup repeater A, B, C, D which is a backup repeater with the first repeater, and the terminal of the internet of things acquires the transmission status information of the repeater A, B, C, D from the first repeater.
In another specific implementation, the first relay may obtain, from the upper management device of the first relay, data transmission state information of a plurality of backup relays that are backup relays for each other with the first relay, so that the terminal of the internet of things can obtain the transmission state information of the plurality of backup relays.
Optionally, the data transmission state information obtaining module 350 is specifically configured to:
receiving response information sent by a backup repeater which informs the Internet of things where the first repeater is located and the first repeater to be a backup repeater for the first repeater, wherein the response information carries transmission state information of the backup repeater.
Specifically, as shown in fig. 3-c, fig. 3-c is a schematic diagram of an internet of things terminal receiving information sent by a plurality of backup repeaters that are backup repeaters with respect to a first repeater to acquire transmission state information of the plurality of backup repeaters. In fig. 3-c, there is A, B, C, D a backup repeater which is a backup repeater with the first repeater, and when the upper management device of the first repeater detects that the first repeater is abnormal, the backup repeater A, B, C, D is notified to send information carrying self transmission state information to the terminal of the internet of things.
Optionally, the internet of things terminal may further include an idle bandwidth determining module 360, configured to determine that the current idle bandwidth of the second relay is greater than the bandwidth requirement of the first data.
Optionally, the idle bandwidth determining module 360 may obtain the current idle bandwidth of the second relay from the data transmission status information of the second relay.
According to the embodiment of the invention, when the first repeater connected currently is abnormal, the data transmission state information of a plurality of backup repeaters of the first repeater is acquired, the second repeater meeting the data transmission state condition corresponding to the bandwidth requirement is selected according to the bandwidth requirement of the first data to be transmitted per se, and the routing connection relation is established between the second repeater and the first repeater, so that the normal transmission of the data to be transmitted is ensured.
It should be noted that the internet of things terminal at least includes a database for storing data and a processor for data processing, and may include a built-in storage medium or a storage medium provided separately.
As for the processor for data Processing, when executing Processing, the processor can be implemented by a microprocessor, a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or a Programmable logic Array (FPGA); for the storage medium, the storage medium contains operation instructions, which may be computer executable codes, and the operation instructions implement the steps in the terminal routing process based on the internet of things described in the embodiment of the present invention, for example, in conjunction with fig. 1 or fig. 3.
An example of an internet of things terminal as a hardware entity is shown in fig. 7. The apparatus comprises a processor 401, a storage medium 402 and at least one external communication interface 403; the processor 401, storage medium 402, and communication interface 403 are all connected by a bus 404.
The processor 401 of the terminal of the internet of things may call the operation instructions in the storage medium 402 to execute the following processes:
determining the bandwidth requirement of first data to be transmitted currently when the first repeater connected currently is in an abnormal condition;
acquiring a data transmission state condition corresponding to the bandwidth requirement of the first data;
determining a second repeater which meets a data transmission state condition corresponding to the bandwidth requirement of the first data in a plurality of backup repeaters which are backup repeaters mutually with the first repeater;
and establishing routing connection with the second repeater, and transmitting the first data through the second repeater.
Here, it should be noted that: the above description related to the terminal of the internet of things is similar to the foregoing description of the terminal routing method based on the internet of things, and the description of the beneficial effects of the method is omitted for brevity. For technical details that are not disclosed in the terminal embodiment of the internet of things, please refer to the description of the method embodiment of the present invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device provided by the embodiment of the invention can be combined, divided and deleted according to actual needs.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (6)

1. A terminal routing method based on the Internet of things is characterized by comprising the following steps:
determining a bandwidth requirement of first data to be transmitted currently when a first repeater connected currently is in an abnormal condition, wherein the first repeater is damaged or the current load capacity of the first repeater is too high when the first repeater is in the abnormal condition;
acquiring data transmission state conditions corresponding to the bandwidth requirements of the first data according to preset levels corresponding to the bandwidth requirements, wherein one or more preset levels corresponding to the bandwidth requirements are provided, different preset levels respectively correspond to different data transmission state conditions, and the data transmission state conditions corresponding to the bandwidth requirements include:
occupied bandwidth value intervals corresponding to the bandwidth requirements are larger, occupied bandwidth values corresponding to the occupied bandwidth value intervals are smaller, and different occupied bandwidth value intervals are not overlapped;
or, the numerical value interval of the number of connected terminals corresponding to the bandwidth requirement is larger, the numerical value of the number of connected terminals corresponding to the numerical value interval of the number of connected terminals corresponding to the bandwidth requirement is smaller, and the numerical value intervals of the number of different connected terminals are not overlapped;
or, the idle bandwidth value interval corresponding to the bandwidth requirement is larger, the idle bandwidth value corresponding to the idle bandwidth value interval is larger, and different idle bandwidth value intervals are not overlapped;
acquiring data transmission state information of a plurality of backup repeaters;
according to the data transmission state information of the backup relays, determining a second relay which meets a data transmission state condition corresponding to the bandwidth requirement of the first data in the backup relays which are backup relays with the first relay;
and establishing routing connection with the second repeater, and transmitting the first data through the second repeater.
2. The method of claim 1, wherein said establishing a routing connection with said second repeater further comprises, prior to said establishing a routing connection with said second repeater:
determining that a current idle bandwidth of the second repeater is greater than a bandwidth requirement of the first data.
3. The method of claim 2, wherein said obtaining data transmission status information for the plurality of backup repeaters comprises:
sending a connection request message to upper management equipment of the first repeater through the first repeater, wherein the connection request message carries information of the first repeater and data volume information of first data;
and receiving response information sent by a plurality of backup relays in the Internet of things, wherein the backup relays and the first relay are backup relays and the response information comprises data transmission state information of the backup relays after receiving the connection request message.
4. The utility model provides a thing networking terminal which characterized in that, thing networking terminal includes:
the bandwidth transmission demand determining module is configured to determine a bandwidth demand of first data to be currently transmitted when an abnormal condition occurs in a first repeater currently connected, where the abnormal condition of the first repeater includes that the first repeater is damaged or a current load capacity of the first repeater is too high;
the data transmission state condition obtaining module is configured to obtain a data transmission state condition corresponding to a bandwidth requirement of the first data according to a preset level corresponding to the bandwidth requirement, where one or more preset levels corresponding to the bandwidth requirement are provided, different preset levels respectively correspond to different data transmission state conditions, and the data transmission state condition corresponding to the bandwidth requirement includes:
occupied bandwidth value intervals corresponding to the bandwidth requirements are larger, occupied bandwidth values corresponding to the occupied bandwidth value intervals are smaller, and different occupied bandwidth value intervals are not overlapped;
or, the numerical value interval of the number of connected terminals corresponding to the bandwidth requirement is larger, the numerical value of the number of connected terminals corresponding to the numerical value interval of the number of connected terminals corresponding to the bandwidth requirement is smaller, and the numerical value intervals of the number of different connected terminals are not overlapped;
or, the idle bandwidth value interval corresponding to the bandwidth requirement is larger, the idle bandwidth value corresponding to the idle bandwidth value interval is larger, and different idle bandwidth value intervals are not overlapped;
the data transmission state information acquisition module is used for acquiring data transmission state information of a plurality of backup relays;
a relay determining module, configured to determine, according to the data transmission state information of the multiple backup relays, a second relay that meets a data transmission state condition corresponding to a bandwidth requirement of the first data among the multiple backup relays that are backup relays with the first relay;
and the routing connection establishing module establishes routing connection with the second repeater and transmits the first data through the second repeater.
5. The terminal of the internet of things of claim 4, wherein the terminal of the internet of things further comprises:
and an idle bandwidth determining module, configured to determine that a current idle bandwidth of the second relay is greater than a bandwidth requirement of the first data.
6. The internet of things terminal of claim 5, wherein the data transmission state information acquisition module is specifically configured to:
sending a connection request message to upper management equipment of the first repeater through the first repeater, wherein the connection request message carries information of the first repeater and data volume information of first data;
and receiving response information sent by a plurality of backup relays in the Internet of things, wherein the backup relays and the first relay are backup relays and the response information comprises data transmission state information of the backup relays after receiving the connection request message.
CN201710633785.XA 2017-07-29 2017-07-29 Terminal routing method based on Internet of things and Internet of things terminal Active CN107404404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710633785.XA CN107404404B (en) 2017-07-29 2017-07-29 Terminal routing method based on Internet of things and Internet of things terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710633785.XA CN107404404B (en) 2017-07-29 2017-07-29 Terminal routing method based on Internet of things and Internet of things terminal

Publications (2)

Publication Number Publication Date
CN107404404A CN107404404A (en) 2017-11-28
CN107404404B true CN107404404B (en) 2021-05-28

Family

ID=60401442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710633785.XA Active CN107404404B (en) 2017-07-29 2017-07-29 Terminal routing method based on Internet of things and Internet of things terminal

Country Status (1)

Country Link
CN (1) CN107404404B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093459A (en) * 2017-12-29 2018-05-29 上海京颐科技股份有限公司 The data transmission method and device of medical terminal, storage medium, terminal
CN116456224A (en) * 2022-01-05 2023-07-18 华为技术有限公司 Data stream transmission method, optical communication system and related device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7769848B2 (en) * 2004-09-22 2010-08-03 International Business Machines Corporation Method and systems for copying data components between nodes of a wireless sensor network
CN101047638A (en) * 2006-06-28 2007-10-03 华为技术有限公司 Mesh network route method and device
CN101159701B (en) * 2007-12-04 2010-06-09 杭州华三通信技术有限公司 VRRP based router dynamic bandwidth assignment method and system
WO2011093324A1 (en) * 2010-01-26 2011-08-04 京セラ株式会社 Wireless relay station and control method
CN103581014B (en) * 2012-07-20 2018-02-06 中兴通讯股份有限公司 VRRP routers dynamic adjusting method and device
US9621411B2 (en) * 2012-07-25 2017-04-11 Itron, Inc. Relaying information for an unreliably heard utility node
CN103997425B (en) * 2014-05-24 2017-07-14 上海新时达电气股份有限公司 A kind of self-recovery method of node, collector and repeater
CN104301370A (en) * 2014-07-11 2015-01-21 陕西东辉智能仪器有限公司 Industrial field data internet-of-things management system

Also Published As

Publication number Publication date
CN107404404A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
US10952143B2 (en) Sleeping and wake-up methods and apparatuses of master-slave network, and power saving system of master-slave network
CN107465609B (en) Terminal routing method based on Internet of things and Internet of things terminal
US11070986B2 (en) Communication processing system, method, apparatus and control program, for optimizing power consumption
CN110691384A (en) Network slice using method and device
CN114007204B (en) Communication selection method and device based on relay communication and direct communication
CN107404404B (en) Terminal routing method based on Internet of things and Internet of things terminal
EP3952459A1 (en) Base station device, terminal device, wireless communication system, and method for changing connection
CN107547264B (en) Data backup method and device based on Internet of things
CN106102133B (en) Method and system for realizing dynamic wireless network based on mobile terminal
US9198057B2 (en) Wireless communication device, base station, wireless communication method, and wireless communication system
JP2013207760A (en) Data collecting method, mobile terminal and data storage device
CN104010312A (en) Automatic obtaining and distributing method and system for Femto base station location area codes
JP5957494B2 (en) WiFi connection system, WiFi connection terminal, WiFi connection method, and WiFi connection program
CN109714722B (en) Management method and device of indoor antenna, electronic equipment and storage medium
CN111194011B (en) Data sending method, data receiving method, platform server and terminal
CN114630346A (en) Data interaction method and device based on wireless intelligent control platform
CN105682181A (en) Local area network access method, gateway equipment and user equipment
CN105682173A (en) Network access method and equipment
CN107733980B (en) Internet of things data transmission system based on ring network and first repeater
JP5320322B2 (en) Wireless communication system and method for acquiring mobile device location information in wireless communication system
CN107580056B (en) Internet of things communication method and internet of things gateway
JP2016015607A (en) Communication device, program, and communication method
US20160143023A1 (en) Management device, communication system, and communication control method
CN110300035B (en) Method, system, device and server for judging load state of storage system
CN103596249A (en) System and method for setting wireless network

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