CN111669322B - Relay bridging method and gateway - Google Patents

Relay bridging method and gateway Download PDF

Info

Publication number
CN111669322B
CN111669322B CN202010553564.3A CN202010553564A CN111669322B CN 111669322 B CN111669322 B CN 111669322B CN 202010553564 A CN202010553564 A CN 202010553564A CN 111669322 B CN111669322 B CN 111669322B
Authority
CN
China
Prior art keywords
repeater
target
gateway
repeaters
relay
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
CN202010553564.3A
Other languages
Chinese (zh)
Other versions
CN111669322A (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 CN202010553564.3A priority Critical patent/CN111669322B/en
Publication of CN111669322A publication Critical patent/CN111669322A/en
Application granted granted Critical
Publication of CN111669322B publication Critical patent/CN111669322B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

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

Abstract

The invention discloses a relay bridging method, which comprises the following steps: if the gateway does not receive the feedback message of the first repeater within a preset time period, the gateway selects a target repeater from the plurality of second repeaters; the plurality of second repeaters are alternative repeaters of the first repeater; the gateway sends a bridging instruction to the target repeater, wherein the bridging instruction is used for indicating the target repeater to bridge with the first repeater. The embodiment of the invention also provides a gateway. The embodiment of the invention can solve the problem of keeping normal data exchange among different devices in the Internet of things when the data exchange link is abnormal.

Description

Relay bridging method and gateway
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a relay bridging method and a gateway.
Background
The Internet of things is an important component of a new generation of information technology and is also an important development stage of the 'informatization' era. Its english name is: "Internet of things (IoT)". The internet of things is widely applied to network fusion through communication perception technologies such as intelligent perception, identification technology and pervasive computing, and is also called as the third wave of development of the world information industry after computers and the internet. The internet of things is an application expansion of the internet, and is not a network, but a business and an application. Therefore, the application innovation is the core of the development of the internet of things, and the innovation 2.0 taking the user experience as the core is the soul of the development of the internet of things.
The internet of things solves the problems of interconnection of different networks and data exchange between objects, and when a data exchange link in the internet of things fails, data between different devices cannot be normally exchanged, so that how to keep normal data exchange between different devices when the data exchange link in the internet of things fails is a technical problem to be urgently solved in the field.
Disclosure of Invention
The embodiment of the invention provides a repeater bridging method, which is used for solving the problem of keeping normal data exchange among different devices in an Internet of things when a data exchange link is abnormal.
In a first aspect, an embodiment of the present invention provides a relay bridging method, which is applied to an internet of things system, where the internet of things system includes a gateway, and a first relay and a plurality of second relays connected to the gateway, and includes:
if the gateway does not receive the feedback message of the first repeater within a preset time period, the gateway selects a target repeater from the plurality of second repeaters; the plurality of second repeaters are alternative repeaters of the first repeater;
the gateway sends a bridging instruction to the target repeater, wherein the bridging instruction is used for indicating the target repeater to bridge with the first repeater.
In some possible embodiments, the gateway selects a target relay from the plurality of second relays, including:
and the gateway selects a repeater with the distance to the first repeater being less than or equal to a preset distance from the plurality of second repeaters as a target repeater. So that a relatively good quality repeater is selected from the plurality of second repeaters.
In some possible embodiments, the gateway selects a target relay from the plurality of second relays, including:
and the gateway selects a repeater with the current data forwarding rate larger than or equal to the preset data forwarding rate from the plurality of second repeaters as a target repeater. So that a relatively good quality repeater is selected from the plurality of second repeaters.
In some possible embodiments, the gateway selects a target relay from the plurality of second relays, including:
and the gateway selects a relay with the residual space of the current cache region larger than or equal to a preset threshold value from the plurality of second relays as a target relay. So that a relatively good quality repeater is selected from the plurality of second repeaters.
In some possible embodiments, after the gateway sends the bridging instruction to the target relay, the method further includes:
the gateway sends a data forwarding instruction to the target repeater, the data forwarding instruction carries interactive data of the terminal i of the internet of things borne by the first repeater, and the data forwarding instruction is used for indicating the target repeater to forward the interactive data of the terminal i of the internet of things to the first repeater.
In some possible embodiments, the number of target repeaters is N, where N is an integer greater than 1, and the gateway sends a bridging instruction to the target repeaters, including:
the gateway determines the number W of the terminals of the Internet of things borne by the first repeater, wherein W is an integer larger than 1;
if W is greater than a preset threshold, where W/preset threshold is K, and K is less than N, the gateway sends a bridging instruction to K target repeaters out of the N target repeaters, where K is a positive integer;
if W is greater than a preset threshold, where W/preset threshold is K, and K is greater than or equal to N, the gateway sends a bridging instruction to the N target repeaters, where K is a positive integer;
if W is greater than a preset threshold, K … … K is set as W/preset threshold, and K +1 is smaller than N, the gateway sends a bridging instruction to K +1 target repeaters out of the N target repeaters, where K is a quotient and K is a remainder;
if W is greater than a preset threshold, where W/preset threshold is K, and K +1 is greater than or equal to N, the gateway sends a bridging instruction to the N target repeaters, where K is a quotient and K is a remainder;
and if the W is smaller than a preset threshold value, the gateway sends a bridging instruction to one of the N target relays. It can be seen that, when there are a plurality of target relays, the gateway may determine the relays to be bridged with the gateway according to the number of the terminals of the internet of things carried by the first relay, so that the subsequent target relays after bridging may have balanced carrying capacity.
In a second aspect, an embodiment of the present invention provides a gateway, which is suitable for being used in an internet of things system, where the internet of things system includes a gateway and a first repeater and a plurality of second repeaters connected to the gateway, and includes:
the selecting module is used for selecting a target repeater from the plurality of second repeaters if the gateway does not receive the feedback message of the first repeater within a preset time period; the plurality of second repeaters are alternative repeaters of the first repeater;
a bridging module, configured to send a bridging instruction to the target relay, where the bridging instruction is used to instruct the target relay to bridge with the first relay.
In some possible embodiments, the selecting module includes:
and the first selection unit is used for selecting the relay with the distance less than or equal to the preset distance from the first relay from the plurality of second relays as the target relay.
In some possible embodiments, the selecting module includes:
and the second selection unit is used for selecting the relay with the current data forwarding rate greater than or equal to the preset data forwarding rate from the plurality of second relays as the target relay.
In some possible embodiments, the selecting module includes:
and the third selecting unit is used for selecting the relay with the residual space of the current cache area larger than or equal to a preset threshold value from the plurality of second relays as the target relay.
In some possible embodiments, the gateway further comprises:
the sending module is configured to send a data forwarding instruction to the target relay, where the data forwarding instruction carries interactive data of the internet of things terminal i borne by the first relay, and the data forwarding instruction is used to instruct the target relay to forward the interactive data of the internet of things terminal i to the first relay.
In a third aspect, an embodiment of the present invention provides a gateway, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform some or all of the steps as described in the first aspect of an embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present invention, and the computer includes a gateway.
In a fifth aspect, the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in the first aspect of the present invention. The computer program product may be a software installation package, said computer comprising a gateway.
In a fifth aspect, the present invention provides an internet of things communication system, including a gateway and a first repeater and a plurality of second repeaters connected to the gateway, the second repeaters including a target repeater, including:
the first repeater is used for sending interaction information to the gateway;
the gateway is configured to select a target relay from the plurality of second relays if a feedback message fed back by the first relay for the interaction information is not received within a preset time period, where the plurality of second relays are alternative relays of the first relay;
the gateway is further configured to send a bridging instruction to the target relay, where the bridging instruction is used to instruct the target relay to bridge with the first relay.
In some possible embodiments, the gateway selects a target relay from the plurality of second relays by: and selecting a relay with the distance to the first relay being less than or equal to a preset distance from the plurality of second relays as a target relay.
In some possible embodiments, the gateway selects a target relay from the plurality of second relays by: and selecting the relay with the current data forwarding rate greater than or equal to the preset data forwarding rate from the plurality of second relays as a target relay.
In some possible embodiments, the gateway selects a target relay from the plurality of second relays by: and selecting the relay with the residual space of the current cache region larger than or equal to a preset threshold value from the plurality of second relays as a target relay.
In some possible embodiments, after the gateway sends the bridging instruction to the target repeater,
the gateway is further configured to send a data forwarding instruction to the target relay, where the data forwarding instruction carries interactive data of the internet of things terminal i carried by the first relay, and the data forwarding instruction is used to instruct the target relay to forward the interactive data of the internet of things terminal i to the first relay;
the target repeater is used for receiving the data forwarding instruction sent by the gateway and forwarding the interactive data of the internet of things terminal i borne by the first repeater to the first repeater.
In the embodiment of the invention, if the gateway does not receive the feedback message of the first repeater in the preset time period, the gateway selects the target repeater from the plurality of second repeaters; the plurality of second repeaters are alternative repeaters of the first repeater; the gateway sends a bridging instruction to the target repeater, wherein the bridging instruction is used for indicating the target repeater to bridge with the first repeater. Therefore, when a communication link between the gateway and the first repeater is abnormal, the gateway sends a bridging instruction to the target repeater to indicate the target repeater to be bridged with the first repeater, so that data interaction between the internet of things terminal borne by the first repeater and the gateway is ensured to be normally carried out, and the problem of keeping normal data exchange between different devices in the internet of things network when the data exchange link is abnormal is solved.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an internet of things according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for bridging a relay according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another method for bridging a relay according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an effect of a relay bridging method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a gateway structure provided in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a gateway part according to an embodiment of the present invention;
fig. 7 is a schematic diagram of another gateway structure provided in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of an internet of things communication system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying 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.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
1) Internet of things terminal Equipment, also called User Equipment (UE), is a device providing voice and/or data connectivity to a User, for example, a handheld device with a wireless connection function, a vehicle-mounted device, and the like. Common internet of things terminals include, for example: the mobile phone includes a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), and a wearable device such as a smart watch, a smart bracelet, a pedometer, and the like.
2) The repeater has the following English name: "repeater (rp)", is a connected device that operates on the physical layer. The method is suitable for interconnection of two types of networks which are identical, and the main function is to enlarge the transmission distance of the networks by retransmitting or forwarding data signals.
3) Gateway, the english name is: gateway is also called Gateway, or protocol converter. The gateway realizes network interconnection above a network layer, is the most complex network interconnection equipment and is only used for interconnection of two networks with different high-level protocols. The gateway can be used for interconnection of both wide area networks and local area networks. A gateway is a computer system or device that acts as a switch-operative. The gateway is a translator used between two systems that differ in communication protocol, data format or language, or even in an entirely different architecture. Instead of the bridge simply communicating the information, the gateway repackages the received information to accommodate the needs of the destination system.
4) MAC (Media Access Control) address, which is translated into Media Access Control, or physical address, hardware address, which defines the location of the network device. In the OSI model, a third layer network layer is responsible for IP addresses and a second layer data link layer is responsible for MAC addresses. Thus, a host will have a MAC address and each network location will have an IP address specific to it.
5) "plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Embodiments of the present application are described below with reference to the drawings.
According to an aspect of the present invention, there is provided a relay bridging method. The method is applied to an internet of things network shown in fig. 1, and as shown in fig. 1, the internet of things network includes: the internet of things terminal may have different expression forms according to different situations, for example, the terminal may specifically be: the system comprises a mobile phone, a tablet computer, a computer and other devices, and can also comprise other devices with networking functions, such as a smart television, a smart air conditioner, a smart water bottle or some smart devices of the internet of things; the internet of things terminal 10 is connected to the repeater 20 in a wireless manner, and the repeater 20 accesses the internet with the gateway 30 in a wireless manner or a wired manner, where the wireless manner includes but is not limited to: bluetooth, WIFI, ZigBee, GPRS, 3G, 4G, Wimax and the like. Fig. 1 is a wired example, and for convenience of representation, only one solid line is shown here.
Referring to fig. 2, fig. 2 is a schematic flowchart of a repeater bridging method according to an embodiment of the present invention, which is suitable for being used in an internet of things system, where the internet of things system includes a gateway, and a first repeater and a plurality of second repeaters connected to the gateway, and includes the following steps:
201. if the gateway does not receive the feedback message of the first repeater within a preset time period, the gateway selects a target repeater from the plurality of second repeaters; the plurality of second repeaters are alternative repeaters to the first repeater.
Wherein the candidate relay is a relay selected by the gateway from the candidate relays when the link between the first relay and the gateway is abnormal.
Wherein, the feedback message is a feedback message that the relay sends the data information to the gateway after the gateway sends the data information to the relay.
The gateway establishes a connection link with a plurality of repeaters, and the gateway generates and stores a device link table including a MAC address of the gateway, MAC addresses of the repeaters, data transfer rates of the repeaters, and remaining space sizes and location information of buffers of the repeaters. When the gateway does not receive the feedback message of the first relay within a preset time period, the gateway selects a target relay from a plurality of second relays, wherein the plurality of second relays are relays except the first relay.
Optionally, the value range of the preset time period is greater than or equal to 5s and less than or equal to 15s, for example, may be equal to 5s, 8s, 10s, 12s, 15s, or other values. Preferably, the preset time period is 8 s.
Optionally, the first feedback message of the first relay that is not received by the gateway in the first period may be caused by an uplink abnormality of the relay, or an uplink abnormality of the downlink, or an uplink and downlink abnormality of the relay.
Wherein the selecting, by the gateway, a target repeater from the plurality of second repeaters includes:
and the gateway selects a repeater with the distance to the first repeater being less than or equal to a preset distance from the plurality of second repeaters as a target repeater.
The gateway queries distances between the plurality of second repeaters and the first repeater by querying the device link table, and selects a repeater having a distance to the first repeater which is less than or equal to a preset distance from the plurality of second repeaters as a target repeater.
Optionally, the preset distance has a value range of greater than or equal to 50m and less than or equal to 150 m. The preset distance may be 50m, 80m, 100m, 120m, 150 m. Preferably, the preset distance is 100 m.
Wherein the selecting, by the gateway, a target repeater from the plurality of second repeaters includes:
and the gateway selects a repeater with the current data forwarding rate larger than or equal to the preset data forwarding rate from the plurality of second repeaters as a target repeater.
The gateway queries the data forwarding rates of the plurality of second repeaters by querying the device link table, and selects a repeater with the data forwarding rate greater than or equal to a preset data forwarding rate as a target repeater.
Optionally, the value range of the preset data forwarding rate may be greater than 0 and less than or equal to 1024Mbps, for example, may be equal to 32Mbps, 64Mbps, 128Mbps, 256Mbps, 512Mbps, 1024Mbps, or other values, and preferably, the preset data forwarding rate is 256 Mbps.
Wherein the selecting, by the gateway, a target repeater from the plurality of second repeaters includes:
and the gateway selects a relay with the residual space of the current cache region larger than or equal to a preset threshold value from the plurality of second relays as a target relay.
The gateway queries the size of the remaining space of the cache area of the plurality of second repeaters by querying the device link table, and selects a repeater with the remaining space of the cache area larger than or equal to a preset threshold value as a target repeater.
Alternatively, the value range of the preset threshold may be greater than 0 and less than or equal to 512Mb, for example, may be equal to 32Mb, 64Mb, 128Mb, 256Mb, 512Mb or other values, and preferably, the preset threshold is 256 Mb.
202. The gateway sends a bridging instruction to the target repeater, wherein the bridging instruction is used for indicating the target repeater to bridge with the first repeater.
After the target relay is bridged with the first relay, the method further includes:
if the target repeater is selected from the plurality of second repeaters according to the gateway, the target repeater selects a repeater whose distance from the first repeater is smaller than or equal to a preset distance from the plurality of second repeaters, and the gateway forwards the data to the gateway through the target repeater according to a preset data forwarding rule according to the priority of the data to be forwarded by the first repeater.
For the preset data forwarding rule, for example:
assuming that the target repeater has M repeaters, and N pieces of data to be forwarded exist on the first repeater; the N pieces of data to be forwarded have different priorities. And when M is greater than N, the gateway enables the data with the priority I of the N pieces of band forwarding data to be forwarded to the gateway through the relay with the distance grade I in the target relay. The smaller the value I in the data with the priority I is, the higher the priority is; the smaller the I value of the relay having the distance rank I, the shorter the distance between the relay and the first relay.
When M is<When N is available, N/M equals to J … K, the gateway sends data Ni*J+1、Ni*J+2……Ni*J+JBy repeater M in the target repeateri+1Forwarding to a gateway; wherein the data Ni*J+1The priority is data with i x J +1, and the smaller the value of i x J +1 is, the higher the priority of the corresponding data is; m abovei+1The distance rank is i +1, and the smaller the value of i +1, the shorter the distance between the corresponding repeater and the first repeater. The K pieces of data to be forwarded are M>And the data forwarding method for N times is used for forwarding data.
If the target repeater is selected from the plurality of second repeaters according to the gateway, the current data forwarding rate of the target repeater is greater than or equal to the preset data forwarding rate, and the gateway forwards the data to the gateway through the target repeater according to the priority of the data to be forwarded by the first repeater and the preset data forwarding rule.
For the preset data forwarding rule, for example:
assuming that the target repeater has M repeaters, and N pieces of data to be forwarded exist on the first repeater; the N pieces of data to be forwarded have different priorities. And when M is greater than N, the gateway enables the data with the priority I of the N pieces of band forwarding data to be forwarded to the gateway through the relay with the data forwarding rate grade I in the target relay. The smaller the value I in the data with the priority I is, the higher the priority is; the smaller the I value of the repeater having the distance level I, the faster the data transfer rate of the repeater.
When M is<When N is N, N/M is J … K,the gateway sends data Ni*J+1、Ni*J+2……Ni*J+JBy repeater M in the target repeateri+1Forwarding to a gateway; wherein the data Ni*J+1The priority is data with i x J +1, and the smaller the value of i x J +1 is, the higher the priority of the corresponding data is; m abovei+1For a repeater with a distance level of i +1, the smaller the value of i +1, the faster the data forwarding rate of the corresponding repeater. The K pieces of data to be forwarded are M>And the data forwarding method for N times is used for forwarding data.
And if the target repeater is selected from the plurality of second repeaters according to the gateway, the target repeater selects the repeater with the remaining space of the cache region larger than or equal to a preset threshold value, and the gateway forwards the data to the gateway through the target repeater according to the priority of the data to be forwarded by the first repeater and a preset data forwarding rule.
For the preset data forwarding rule, for example:
assuming that the target repeater has M repeaters, and N pieces of data to be forwarded exist on the first repeater; the N pieces of data to be forwarded have different priorities. And when M is greater than N, the gateway enables the data with the priority I of the N pieces of band forwarding data to be forwarded to the gateway through the relay with the data forwarding rate grade I in the target relay. The smaller the value I in the data with the priority I is, the higher the priority is; the smaller the I value of the repeater having the distance level I, the larger the buffer remaining space of the repeater.
When M is<When N is available, N/M is J … K, the gateway sends the data to be forwarded to the Ni*J+1、Ni*J+2……Ni*J+JBy repeater M in the target repeateri+1Forwarding to a gateway; wherein the data Ni*J+1The priority is data with i x J +1, and the smaller the value of i x J +1 is, the higher the priority of the corresponding data is; m abovei+1The distance level is the repeater of i +1, and the smaller the value of i +1 is, the larger the residual space of the buffer area of the corresponding repeater is. The K pieces of data to be forwarded are M>And the data forwarding method for N times is used for forwarding data.
Wherein after the gateway sends the bridging instruction to the target repeater, the method further comprises:
the gateway sends a data forwarding instruction to the target repeater, the data forwarding instruction carries interactive data of the terminal i of the internet of things borne by the first repeater, and the data forwarding instruction is used for indicating the target repeater to forward the interactive data of the terminal i of the internet of things to the first repeater.
The internet of things terminal i is any one of the internet of things terminals borne by the first repeater.
Here, when the link between the gateway and the first relay returns to normal, the bridged link between the first relay and the target relay is disconnected.
Optionally, the number of the target repeaters is N, where N is an integer greater than 1, and the sending, by the gateway, a bridging instruction to the target repeaters includes:
the gateway determines the number W of the terminals of the Internet of things borne by the first repeater, wherein W is an integer larger than 1;
if W is greater than a preset threshold, where W/preset threshold is K, and K is less than N, the gateway sends a bridging instruction to K target repeaters out of the N target repeaters, where K is a positive integer;
if W is greater than a preset threshold, where W/preset threshold is K, and K is greater than or equal to N, the gateway sends a bridging instruction to the N target repeaters, where K is a positive integer;
if W is greater than a preset threshold, K … … K is set as W/preset threshold, and K +1 is smaller than N, the gateway sends a bridging instruction to K +1 target repeaters out of the N target repeaters, where K is a quotient and K is a remainder;
if W is greater than a preset threshold, where W/preset threshold is K, and K +1 is greater than or equal to N, the gateway sends a bridging instruction to the N target repeaters, where K is a quotient and K is a remainder;
and if the W is smaller than a preset threshold value, the gateway sends a bridging instruction to one of the N target relays.
The preset threshold may be, for example, 30, 40, 45, 60, 48, 100 or other values.
It should be noted that the gateway sends the bridging instruction to one of the N target repeaters, where one of the target repeaters may be a repeater that carries the fewest number of terminals in the internet of things, may also be a repeater closest to the first repeater, may also be the one with the strongest data forwarding capability, may also be any one, and the like, and the present invention is not limited thereto. The gateway sends a bridging instruction to K or K +1 target repeaters in the N target repeaters, where the K or K +1 target repeaters may be K or K +1 repeaters in the N target repeaters that carry the fewest number of terminals in the internet of things, or K +1 repeaters in the N target repeaters that have the strongest data forwarding capability, or K +1 repeaters in the N target repeaters that are closest to the first repeater, or K +1 repeaters in the N target repeaters that have the strongest data forwarding capability, or any K or K +1 repeaters in the N target repeaters, and the like, and the present invention is not limited.
In the embodiment of the invention, if the gateway does not receive the feedback message of the first repeater in the preset time period, the gateway selects the target repeater from the plurality of second repeaters; the plurality of second repeaters are alternative repeaters of the first repeater; the gateway sends a bridging instruction to the target repeater, wherein the bridging instruction is used for indicating the target repeater to bridge with the first repeater. Therefore, when a communication link between the gateway and the first repeater is abnormal, the gateway sends a bridging instruction to the target repeater to indicate the target repeater to be bridged with the first repeater, so that data interaction between the internet of things terminal borne by the first repeater and the gateway is ensured to be normally carried out, and the problem of keeping normal data exchange between different devices in the internet of things network when the data exchange link is abnormal is solved.
The embodiment of the present invention further provides another more detailed method flow, as shown in fig. 3, including:
301. the gateway sends the interaction information to the first repeater.
The interactive information is interactive information before the gateway and the internet of things terminal borne by the first repeater.
302. If the gateway does not receive a feedback message fed back by a first repeater aiming at the interaction information within a preset time period, the gateway selects a target repeater from a plurality of second repeaters; the plurality of second repeaters are alternative repeaters to the first repeater.
Wherein the candidate relay is a relay selected by the gateway from the candidate relays when the link between the first relay and the gateway is abnormal.
Wherein, the feedback message is a feedback message that the relay sends the data information to the gateway after the gateway sends the data information to the relay.
The gateway establishes a connection link with a plurality of repeaters, and the gateway generates and stores a device link table including a MAC address of the gateway, MAC addresses of the repeaters, data transfer rates of the repeaters, and remaining space sizes and location information of buffers of the repeaters. When the gateway does not receive the feedback message of the first relay within a preset time period, the gateway selects a target relay from a plurality of second relays, wherein the plurality of second relays are relays except the first relay.
Optionally, the value range of the preset time period is greater than or equal to 5s and less than or equal to 15s, for example, may be equal to 5s, 8s, 10s, 12s, 15s, or other values. Preferably, the preset time period is 8 s.
Optionally, the first feedback message of the first relay that is not received by the gateway in the first period may be caused by an uplink abnormality of the relay, or an uplink abnormality of the downlink, or an uplink and downlink abnormality of the relay.
Wherein the selecting, by the gateway, a target repeater from the plurality of second repeaters includes:
and the gateway selects a repeater with the distance to the first repeater being less than or equal to a preset distance from the plurality of second repeaters as a target repeater.
The gateway queries distances between the plurality of second repeaters and the first repeater by querying the device link table, and selects a repeater having a distance to the first repeater which is less than or equal to a preset distance from the plurality of second repeaters as a target repeater.
Optionally, the preset distance has a value range of greater than or equal to 50m and less than or equal to 150 m. The preset distance may be 50m, 80m, 100m, 120m, 150 m. Preferably, the preset distance is 100 m.
Wherein the selecting, by the gateway, a target repeater from the plurality of second repeaters includes:
and the gateway selects a repeater with the current data forwarding rate larger than or equal to the preset data forwarding rate from the plurality of second repeaters as a target repeater.
The gateway queries the data forwarding rates of the plurality of second repeaters by querying the device link table, and selects a repeater with the data forwarding rate greater than or equal to a preset data forwarding rate as a target repeater.
Optionally, the value range of the preset data forwarding rate may be greater than 0 and less than or equal to 1024Mbps, for example, may be equal to 32Mbps, 64Mbps, 128Mbps, 256Mbps, 512Mbps, 1024Mbps, or other values, and preferably, the preset data forwarding rate is 256 Mbps.
Wherein the selecting, by the gateway, a target repeater from the plurality of second repeaters includes:
and the gateway selects a relay with the residual space of the current cache region larger than or equal to a preset threshold value from the plurality of second relays as a target relay.
And the gateway inquires the data forwarding rates of the plurality of second repeaters by inquiring the equipment link table, and selects the repeater with the residual space of the cache region larger than or equal to a preset threshold value as a target repeater.
Alternatively, the value range of the preset threshold may be greater than 0 and less than or equal to 512Mb, for example, may be equal to 32Mb, 64Mb, 128Mb, 256Mb, 512Mb or other values, and preferably, the preset threshold is 256 Mb.
303. And the gateway inquires and acquires the MAC address of the first repeater and the MAC address of the target repeater from the equipment link table.
304. And the gateway sends a bridging instruction carrying the MAC address of the first repeater to the target repeater.
The gateway sends a bridging command to the target repeater through the obtained MAC address of the target repeater. The bridging instruction is used for instructing the target repeater to bridge with the first repeater.
305. And the target repeater sends a bridging request to the first repeater according to the MAC address of the first repeater carried in the bridging instruction.
306. And the first repeater receives the bridging request and bridges with the target repeater.
After the target relay is bridged with the first relay, the method further includes:
if the target repeater is selected from the plurality of second repeaters according to the gateway, the target repeater selects a repeater whose distance from the first repeater is smaller than or equal to a preset distance from the plurality of second repeaters, and the gateway forwards the data to the gateway through the target repeater according to a preset data forwarding rule according to the priority of the data to be forwarded by the first repeater.
For the preset data forwarding rule, for example:
assuming that the target repeater has M repeaters, and N pieces of data to be forwarded exist on the first repeater; the N pieces of data to be forwarded have different priorities. And when M is greater than N, the gateway enables the data with the priority I of the N pieces of band forwarding data to be forwarded to the gateway through the relay with the distance grade I in the target relay. The smaller the value I in the data with the priority I is, the higher the priority is; the smaller the I value of the relay having the distance rank I, the shorter the distance between the relay and the first relay.
When M is<When N is available, N/M equals to J … K, the gateway sends data Ni*J+1、Ni*J+2……Ni*J+JBy repeater M in the target repeateri+1Forwarding to a gateway; wherein the data Ni*J+1The priority is data with i x J +1, and the smaller the value of i x J +1 is, the higher the priority of the corresponding data is; m abovei+1The distance rank is i +1, and the smaller the value of i +1, the shorter the distance between the corresponding repeater and the first repeater. The K pieces of data to be forwarded are M>And the data forwarding method for N times is used for forwarding data.
If the target repeater is selected from the plurality of second repeaters according to the gateway, the current data forwarding rate of the target repeater is greater than or equal to the preset data forwarding rate, and the gateway forwards the data to the gateway through the target repeater according to the priority of the data to be forwarded by the first repeater and the preset data forwarding rule.
For the preset data forwarding rule, for example:
assuming that the target repeater has M repeaters, and N pieces of data to be forwarded exist on the first repeater; the N pieces of data to be forwarded have different priorities. And when M is greater than N, the gateway enables the data with the priority I of the N pieces of band forwarding data to be forwarded to the gateway through the relay with the data forwarding rate grade I in the target relay. The smaller the value I in the data with the priority I is, the higher the priority is; the smaller the I value of the repeater having the distance level I, the faster the data transfer rate of the repeater.
When M is<When N is available, N/M equals to J … K, the gateway sends data Ni*J+1、Ni*J+2……Ni*J+JBy repeater M in the target repeateri+1Forwarding to a gateway; wherein the data Ni*J+1Is data with priority i x J +1, the smaller the value of i x J +1,the higher the priority of the corresponding data; m abovei+1For a repeater with a distance level of i +1, the smaller the value of i +1, the faster the data forwarding rate of the corresponding repeater. The K pieces of data to be forwarded are M>And the data forwarding method for N times is used for forwarding data.
And if the target repeater is selected from the plurality of second repeaters according to the gateway, the target repeater selects the repeater with the remaining space of the cache region larger than or equal to a preset threshold value, and the gateway forwards the data to the gateway through the target repeater according to the priority of the data to be forwarded by the first repeater and a preset data forwarding rule.
For the preset data forwarding rule, for example:
assuming that the target repeater has M repeaters, and N pieces of data to be forwarded exist on the first repeater; the N pieces of data to be forwarded have different priorities. And when M is greater than N, the gateway enables the data with the priority I of the N pieces of band forwarding data to be forwarded to the gateway through the relay with the data forwarding rate grade I in the target relay. The smaller the value I in the data with the priority I is, the higher the priority is; the smaller the I value of the repeater having the distance level I, the larger the buffer remaining space of the repeater.
When M is<When N is available, N/M is J … K, the gateway sends the data to be forwarded to the Ni*J+1、Ni*J+2……Ni*J+JBy repeater M in the target repeateri+1Forwarding to a gateway; wherein the data Ni*J+1The priority is data with i x J +1, and the smaller the value of i x J +1 is, the higher the priority of the corresponding data is; m abovei+1The distance level is the repeater of i +1, and the smaller the value of i +1 is, the larger the residual space of the buffer area of the corresponding repeater is. The K pieces of data to be forwarded are M>And the data forwarding method for N times is used for forwarding data.
Wherein after the gateway sends the bridging instruction to the target repeater, the method further comprises:
the gateway sends a data forwarding instruction to the target repeater, the data forwarding instruction carries interactive data of the terminal i of the internet of things borne by the first repeater, and the data forwarding instruction is used for indicating the target repeater to forward the interactive data of the terminal i of the internet of things to the first repeater.
The internet of things terminal i is any one of the internet of things terminals borne by the first repeater.
Here, when the link between the gateway and the first relay returns to normal, the bridged link between the first relay and the target relay is disconnected.
It should be noted that, the specific implementation of the steps of the method shown in fig. 3 can refer to the specific implementation described in the above method, and will not be described here.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a result of the terminal migration method of the internet of things according to the embodiment of the present invention. As shown in the figure a, the first repeater and the target repeater, the target repeater comprises a repeater 1 and a repeater 2, and the link connection between the first repeater and the gateway is normal. As shown in fig. b, when the link connection between the first relay and the gateway is abnormal, after the gateway acquires the relay 1 and the relay 2 as target relays according to step 302 of the method, the gateway instructs the relay 1 in the target relays to bridge with the first relay according to steps 304, 305 and 306 of the method, so that the terminals of the internet of things carried by the relays maintain normal data interaction.
An embodiment of the present invention further provides an internet of things terminal device 500, as shown in fig. 5, including:
a selecting module 501, configured to select a target relay from multiple second relays if the gateway does not receive the feedback message of the first relay within a preset time period; the plurality of second repeaters are alternative repeaters of the first repeater;
a bridging module 502, configured to send a bridging instruction to the target relay, where the bridging instruction is used to instruct the target relay to bridge with the first relay.
Optionally, the selecting module 501 includes:
the first selecting unit 5011 is configured to select, as a target repeater, a repeater whose distance from the first repeater is smaller than or equal to a preset distance from the plurality of second repeaters.
Optionally, the selecting module 501 includes:
the second selecting unit 5012 is configured to select a relay with a current data forwarding rate greater than or equal to a preset data forwarding rate from the plurality of second relays as a target relay.
Optionally, the selecting module 501 includes:
the third selecting unit 5013 is configured to select a relay with a remaining space of the current buffer greater than or equal to a preset threshold from the plurality of second relays as the target relay.
Optionally, after the bridging module 502 sends the bridging instruction to the target relay, the gateway further includes:
a sending module 503, configured to send a data forwarding instruction to the target relay, where the data forwarding instruction carries interactive data of the internet of things terminal i carried by the first relay, and the data forwarding instruction is used to instruct the target relay to forward the interactive data of the internet of things terminal i to the first relay.
It should be noted that the above modules (the selecting module 501 and the bridging module 502) are used for executing the relevant steps of the above method. For example, the selecting module 501 is used to perform the relevant steps of the above step 201. The bridging module 502 is used to perform the relevant steps of step 202 above. In addition, since the modules are used for executing the relevant steps of the method, the specific implementation process of each step of the method is the specific implementation process executed by each module, and is not described here.
In the present embodiment, the gateway 500 is presented in the form of a module. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality. The selecting module 501 and the bridging module 502 may be implemented by the processor 701 of the gateway shown in fig. 7, and the sending module 503 may be implemented by the communication interface processor 703 of the gateway shown in fig. 7.
As shown in fig. 7, the gateway 700 may be implemented in the structure of fig. 7, the gateway 700 comprising at least one processor 701, at least one memory 702 and at least one communication interface 703. The processor 701, the memory 702 and the communication interface 703 are connected by the communication bus to complete communication therebetween.
The processor 701 may be a general purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs according to the above schemes.
Communication interface 703 is used for communicating with other devices or communication Networks, such as ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.
The Memory 702 may be, but is not limited to, a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 702 is used for storing application program codes for executing the above schemes, and the processor 701 controls the execution. The processor 701 is configured to execute application program code stored in the memory 702.
The codes stored in the memory 702 may perform the above-mentioned application upgrading method executed by the terminal device of the internet of things, for example, if the gateway does not receive the feedback message of the first relay within a preset time period, the gateway selects a target relay from the plurality of second relays; the plurality of second repeaters are alternative repeaters of the first repeater; the gateway sends a bridging instruction to the target repeater, wherein the bridging instruction is used for indicating the target repeater to bridge with the first repeater.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an internet of things communication system according to an embodiment of the present invention, where the internet of things communication system includes a gateway 801, and a first repeater 802 and a second repeater 803 that are connected to the gateway 801, and the second repeater includes a target repeater 8031, where:
a first repeater 802, configured to send interaction information to the gateway 801;
a gateway 801, configured to select a target relay 8031 from the multiple second relays 803 if a feedback message fed back by the first relay 801 for the interaction information is not received within a preset time period, where the multiple second relays 803 are candidate relays of the first relay 802;
the gateway 801 is further configured to send a bridging instruction to the target relay 8031, where the bridging instruction is used to instruct the target relay 8031 to bridge with the first relay 802.
Optionally, the specific implementation manner of the gateway 801 selecting the target relay 8031 from the plurality of second relays 803 is as follows: a relay whose distance from the first relay 802 is less than or equal to a preset distance is selected from the plurality of second relays 803 as a target relay 8031.
Optionally, the specific implementation manner of the gateway 801 selecting the target relay 8031 from the plurality of second relays 803 is as follows: a repeater having a current data forwarding rate greater than or equal to a preset data forwarding rate is selected from the plurality of second repeaters 803 as the target repeater 8031.
Optionally, the specific implementation manner of the gateway 801 selecting the target relay 8031 from the plurality of second relays 803 is as follows: a relay having a remaining space of the current buffer area greater than or equal to a preset threshold is selected from the plurality of second relays 803 as a target relay 8031.
Optionally, after the gateway 801 sends the bridging instruction to the target repeater,
the gateway 801 is further configured to send a data forwarding instruction to a target repeater 8031, where the data forwarding instruction carries interactive data of the internet of things terminal i carried by the first repeater, and the data forwarding instruction is used to instruct the target repeater 8031 to forward the interactive data of the internet of things terminal i to the first repeater 802;
the target relay 8031 is configured to receive the data forwarding instruction sent by the gateway 801, and forward the interaction data of the internet of things terminal i carried by the first relay 802 to the first relay 802.
It should be noted that, for specific implementation processes of steps executed by each device in the communication system of the internet of things shown in fig. 8, reference may be made to the specific implementation processes described in the above method, and a description thereof is omitted here.
Embodiments of the present invention also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods as described in the above method embodiments, and the computer includes a gateway.
Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as recited in the above method embodiments. The computer program product may be a software installation package, said computer comprising a gateway.
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 embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. 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 memory. 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 memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present invention.

Claims (5)

1. A repeater bridging method is applied to an Internet of things system, the Internet of things system comprises a gateway and a first repeater and a plurality of second repeaters connected with the gateway, and the method is characterized by comprising the following steps:
if the gateway does not receive the feedback message of the first repeater within a preset time period, the gateway selects a target repeater from the second repeaters, wherein the second repeaters are alternative repeaters of the first repeater;
the gateway sends a bridging instruction to the target repeater, wherein the bridging instruction is used for indicating the target repeater to bridge with the first repeater;
wherein the content of the first and second substances,
the number of the target repeaters is N, where N is an integer greater than 1, and the gateway sends a bridging instruction to the target repeaters, including:
the gateway determines the number W of the terminals of the Internet of things borne by the first repeater, wherein W is an integer larger than 1;
if W is greater than a preset threshold, where W/preset threshold is K, and K is less than N, the gateway sends a bridging instruction to K target repeaters out of the N target repeaters, where K is a positive integer;
if W is greater than a preset threshold, where W/preset threshold is K, and K is greater than or equal to N, the gateway sends a bridging instruction to the N target repeaters, where K is a positive integer;
if W is greater than a preset threshold, K … … K is set as W/preset threshold, and K +1 is smaller than N, the gateway sends a bridging instruction to K +1 target repeaters out of the N target repeaters, where K is a quotient and K is a remainder;
if W is greater than a preset threshold, where W/preset threshold is K, and K +1 is greater than or equal to N, the gateway sends a bridging instruction to the N target repeaters, where K is a quotient and K is a remainder;
if W is smaller than a preset threshold value, the gateway sends a bridging instruction to one of the N target relays;
wherein the selecting, by the gateway, a target repeater from the plurality of second repeaters comprises: the gateway selects a repeater with the distance to the first repeater being smaller than or equal to a preset distance from the plurality of second repeaters as a target repeater;
alternatively, the first and second electrodes may be,
wherein the selecting, by the gateway, a target repeater from the plurality of second repeaters comprises: the gateway selects a repeater with the current data forwarding rate larger than or equal to the preset data forwarding rate from the plurality of second repeaters as a target repeater;
alternatively, the first and second electrodes may be,
wherein the selecting, by the gateway, a target repeater from the plurality of second repeaters comprises: and the gateway selects a relay with the residual space of the current cache region larger than or equal to a preset threshold value from the plurality of second relays as a target relay.
2. The method of claim 1, wherein after the gateway sends the bridging instruction to the target relay, the method further comprises:
the gateway sends a data forwarding instruction to the target repeater, the data forwarding instruction carries interactive data of the terminal i of the internet of things borne by the first repeater, and the data forwarding instruction is used for indicating the target repeater to forward the interactive data of the terminal i of the internet of things to the first repeater.
3. A gateway, adapted for use in an IOT system including the gateway and a first repeater and a plurality of second repeaters connected to the gateway, comprising:
the selecting module is used for selecting a target repeater from the plurality of second repeaters if the gateway does not receive the feedback message of the first repeater within a preset time period; the plurality of second repeaters are alternative repeaters of the first repeater;
a bridging module, configured to send a bridging instruction to the target relay, where the bridging instruction is used to instruct the target relay to bridge with the first relay;
wherein the content of the first and second substances,
the number of the target repeaters is N, where N is an integer greater than 1, and the sending the bridging instruction to the target repeaters includes: determining the number W of the terminals of the Internet of things borne by the first repeater, wherein W is an integer larger than 1;
if the W is larger than a preset threshold, the W/preset threshold is K, and the K is smaller than the N, sending bridging instructions to K target repeaters in the N target repeaters, wherein the K is a positive integer;
if the W is larger than a preset threshold, the W/preset threshold is equal to K, and when the K is larger than or equal to the N, a bridging instruction is sent to the N target repeaters, wherein the K is a positive integer;
if W is greater than a preset threshold, where W/preset threshold is K … … K, and K +1 is less than N, sending a bridging instruction to K +1 target repeaters out of the N target repeaters, where K is a quotient and K is a remainder;
if W is greater than a preset threshold, where W/preset threshold is K, and K +1 is greater than or equal to N, sending a bridging instruction to the N target repeaters, where K is a quotient and K is a remainder;
if W is smaller than a preset threshold value, sending a bridging instruction to one of the N target relays;
wherein, the selection module comprises:
a first selecting unit, configured to select, as a target repeater, a repeater whose distance from the first repeater is smaller than or equal to a preset distance from the plurality of second repeaters;
or, the selecting module comprises:
a second selecting unit, configured to select a relay with a current data forwarding rate greater than or equal to a preset data forwarding rate from the plurality of second relays, as a target relay;
alternatively, the first and second electrodes may be,
the selecting module comprises:
and the third selecting unit is used for selecting the relay with the residual space of the current cache area larger than or equal to a preset threshold value from the plurality of second relays as the target relay.
4. A gateway, comprising:
a processor, a communication interface, and a memory; wherein the communication interface, the processor and the memory are connected to each other by a bus;
wherein the processor is adapted to execute a computer program stored in the memory to implement the method of any of claims 1 to 2.
5. A computer storage medium comprising, in combination,
the computer storage medium may store a program that when executed by a processor is for implementing the method of any of claims 1 to 2.
CN202010553564.3A 2017-07-20 2017-07-20 Relay bridging method and gateway Active CN111669322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010553564.3A CN111669322B (en) 2017-07-20 2017-07-20 Relay bridging method and gateway

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710593838.XA CN107483330B (en) 2017-07-20 2017-07-20 Relay bridging method and gateway
CN202010553564.3A CN111669322B (en) 2017-07-20 2017-07-20 Relay bridging method and gateway

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201710593838.XA Division CN107483330B (en) 2017-07-20 2017-07-20 Relay bridging method and gateway

Publications (2)

Publication Number Publication Date
CN111669322A CN111669322A (en) 2020-09-15
CN111669322B true CN111669322B (en) 2022-04-22

Family

ID=60595912

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010553564.3A Active CN111669322B (en) 2017-07-20 2017-07-20 Relay bridging method and gateway
CN201710593838.XA Active CN107483330B (en) 2017-07-20 2017-07-20 Relay bridging method and gateway

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201710593838.XA Active CN107483330B (en) 2017-07-20 2017-07-20 Relay bridging method and gateway

Country Status (2)

Country Link
CN (2) CN111669322B (en)
WO (1) WO2019015036A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282852B (en) * 2018-02-06 2021-04-27 Oppo广东移动通信有限公司 WiFi bridging management method and device, mobile terminal and computer readable storage medium
CN111343700A (en) * 2018-12-19 2020-06-26 南宁富桂精密工业有限公司 Wireless sensor network communication method
CN113067763B (en) * 2020-11-24 2022-07-01 国网浙江余姚市供电有限公司 High-reliability mountain area distribution network communication system and communication method thereof

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7440397B2 (en) * 2004-03-17 2008-10-21 Fujitsu Limited Protection that automatic and speedily restore of Ethernet ring network
CN101466169A (en) * 2008-12-23 2009-06-24 福建先创电子有限公司 Method for searching transmission path in direct discharging station system and relay equipment thereof
CN101656624A (en) * 2008-08-18 2010-02-24 中兴通讯股份有限公司 Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method
CN102843716A (en) * 2011-06-24 2012-12-26 中国移动通信集团公司 Switching method, system and device in mobile relay network
CN102905309A (en) * 2012-11-06 2013-01-30 重庆邮电大学 Relay communication method based on cooperated multi-access control (MAC) protocol in vehicular automatic organization network
CN105099793A (en) * 2015-09-24 2015-11-25 华为技术有限公司 Hot-standby method, hot-standby device and hot-standby system
CN105682176A (en) * 2016-01-19 2016-06-15 南京邮电大学 Node incentive method based on buying-selling model and two-layer optimization
CN106161057A (en) * 2015-04-02 2016-11-23 中兴通讯股份有限公司 The gateway guard method of a kind of user side, gateway device and system
CN106330525A (en) * 2015-06-30 2017-01-11 阿里巴巴集团控股有限公司 Data transmission method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4204619B2 (en) * 2005-01-21 2009-01-07 パナソニック株式会社 Backup system, relay device, information terminal, backup device
CN102932855B (en) * 2011-08-11 2017-05-17 中兴通讯股份有限公司 Method and system for switching relay nodes (RN)
EP2739081A1 (en) * 2012-11-29 2014-06-04 British Telecommunications public limited company Network access restoration
CN106888494B (en) * 2015-12-15 2020-10-27 上海诺基亚贝尔股份有限公司 Method, device and system for selecting relay UE
CN105898807B (en) * 2016-06-08 2019-04-23 北京邮电大学 A kind of selection of joint access point and resource allocation under super-intensive network from cure method
CN106535238B (en) * 2016-11-02 2020-04-07 青岛海信移动通信技术股份有限公司 Link switching method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7440397B2 (en) * 2004-03-17 2008-10-21 Fujitsu Limited Protection that automatic and speedily restore of Ethernet ring network
CN101656624A (en) * 2008-08-18 2010-02-24 中兴通讯股份有限公司 Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method
CN101466169A (en) * 2008-12-23 2009-06-24 福建先创电子有限公司 Method for searching transmission path in direct discharging station system and relay equipment thereof
CN102843716A (en) * 2011-06-24 2012-12-26 中国移动通信集团公司 Switching method, system and device in mobile relay network
CN102905309A (en) * 2012-11-06 2013-01-30 重庆邮电大学 Relay communication method based on cooperated multi-access control (MAC) protocol in vehicular automatic organization network
CN106161057A (en) * 2015-04-02 2016-11-23 中兴通讯股份有限公司 The gateway guard method of a kind of user side, gateway device and system
CN106330525A (en) * 2015-06-30 2017-01-11 阿里巴巴集团控股有限公司 Data transmission method and system
CN105099793A (en) * 2015-09-24 2015-11-25 华为技术有限公司 Hot-standby method, hot-standby device and hot-standby system
CN105682176A (en) * 2016-01-19 2016-06-15 南京邮电大学 Node incentive method based on buying-selling model and two-layer optimization

Also Published As

Publication number Publication date
WO2019015036A1 (en) 2019-01-24
CN107483330B (en) 2020-07-03
CN111669322A (en) 2020-09-15
CN107483330A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
US20200351204A1 (en) Method, apparatus, and system for load balancing of service chain
CN110557798B (en) Method and device for determining URSP
CN103731907A (en) Network selection method based on multi-network convergence and multi-mode terminal device
CN111669322B (en) Relay bridging method and gateway
US10716032B2 (en) Path processing method and apparatus, and terminal
CN110784432A (en) Session creation method and device
US20160308824A1 (en) Method for determining gre tunnel, gateway device, and access site
CN109891929A (en) Data cached acquisition methods, relevant device and communication system
CN105554125B (en) A kind of method and its system for realizing webpage fit using CDN
CN111654852A (en) Data card switching method and device, terminal and storage medium
CN107465538B (en) Internet of things terminal migration method and gateway
EP3585010A1 (en) Routing priority configuration method, device, and controller
CN107820246A (en) The methods, devices and systems of user authentication
CN106792923A (en) A kind of method and device for configuring qos policy
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
CN111641565B (en) Method, device and system for transmitting Ethernet message
US9509559B2 (en) Bandwidth control apparatus, bandwidth control method, and bandwidth control program
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN114745375B (en) Service function realization method and device and electronic equipment
US11451513B2 (en) Notification device and notification method
CN109429285B (en) Data processing method, network equipment and computer storage medium
CN113543238A (en) Data transmission method and base station
CN110324857B (en) Method and device for processing service quality data stream
KR102049044B1 (en) Method for controlling communication path in transport network and apparatus for the same
WO2022133852A1 (en) Paging method and apparatus, and storage medium

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