WO2019015036A1 - Repeater bridging method and gateway - Google Patents

Repeater bridging method and gateway Download PDF

Info

Publication number
WO2019015036A1
WO2019015036A1 PCT/CN2017/100744 CN2017100744W WO2019015036A1 WO 2019015036 A1 WO2019015036 A1 WO 2019015036A1 CN 2017100744 W CN2017100744 W CN 2017100744W WO 2019015036 A1 WO2019015036 A1 WO 2019015036A1
Authority
WO
WIPO (PCT)
Prior art keywords
repeater
gateway
target
repeaters
data
Prior art date
Application number
PCT/CN2017/100744
Other languages
French (fr)
Chinese (zh)
Inventor
杜光东
Original Assignee
深圳市盛路物联通讯技术有限公司
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 深圳市盛路物联通讯技术有限公司 filed Critical 深圳市盛路物联通讯技术有限公司
Publication of WO2019015036A1 publication Critical patent/WO2019015036A1/en

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

Definitions

  • the present invention relates to the field of Internet of Things communication technologies, and in particular, to a repeater bridging method and a gateway.
  • the Internet of Things is an important part of the new generation of information technology, and an important stage of development in the era of "informatization.” Its English name is: “Internet of things (IoT)".
  • the Internet of Things is widely used in the convergence of networks through communication-aware technologies such as intelligent sensing, identification technology and pervasive computing. It is also called the third wave of the development of the world information industry after computers and the Internet.
  • the Internet of Things is the application expansion of the Internet. It is not so much that the Internet of Things is a network, but the Internet of Things is a business and application. Therefore, application innovation is the core of the development of the Internet of Things. Innovation 2.0 with user experience as the core is the soul of the development of the Internet of Things.
  • the Internet of Things solves the problem of the interconnection of different networks and the exchange of data between objects.
  • the data exchange link in the Internet of Things fails, data between different devices cannot interact normally, so how to be in the Internet of Things.
  • a data exchange link fails, maintaining normal data exchange between different devices is a technical problem to be solved in the field.
  • the embodiment of the invention provides a method for bridging a relay, which is used to solve the problem of maintaining normal data exchange between different devices in the Internet of Things when the data exchange link is abnormal.
  • an embodiment of the present invention provides a repeater bridging method, which is applicable to an Internet of Things system, where the Internet of Things system includes a gateway and a first repeater and multiple second relays connected to the gateway. , including:
  • the gateway selects a target repeater from the plurality of second repeaters; the plurality of second repeaters are An alternate repeater of the first repeater;
  • the gateway sends a bridging instruction to the target repeater, the bridging instruction is used to instruct the target repeater to bridge with the first repeater.
  • the gateway selects a target repeater from the plurality of second repeaters, including:
  • the gateway selects, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater. In order to select a relatively high quality repeater from a plurality of second repeaters.
  • the gateway selects a target repeater from the plurality of second repeaters, including:
  • the gateway selects, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate as a target repeater. In order to select a relatively high quality repeater from a plurality of second repeaters.
  • the gateway selects a target repeater from the plurality of second repeaters, including:
  • the gateway selects, as the target repeater, a repeater that has a remaining space of the current buffer area greater than or equal to a preset threshold from the plurality of second repeaters. In order to select a relatively high quality repeater from a plurality of second repeaters.
  • the method further includes:
  • the relay forwards the interaction data of the Internet of Things terminal i to the first repeater.
  • the number of the target repeaters is N, and the N is an integer greater than 1.
  • the gateway sends a bridging instruction to the target relay, including:
  • the gateway sends a bridging instruction to K target repeaters in the N target repeaters.
  • the K is a positive integer
  • the gateway sends a bridging instruction to the N target repeaters, where K is positive Integer
  • the gateway sends K+1 to the N target repeaters.
  • the target repeater sends a bridge command, the K is a quotient, and the k is a remainder;
  • the gateway sends a bridging instruction to the N target repeaters, where the K For quotient, the k is the remainder;
  • the gateway sends a bridging instruction to one of the N target repeaters. It can be seen that when there are multiple target repeaters, the gateway can determine the repeater to be bridged with the gateway according to the number of IoT terminals carried by the first repeater, so that the target relay after the subsequent bridge can be carried. The balance of capabilities.
  • an embodiment of the present invention provides a gateway, which is applicable to 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, including :
  • a selecting module configured to: if the gateway does not receive the feedback message of the first repeater within the preset time period, the selecting module selects a target repeater from the plurality of second repeaters;
  • the second repeater is an alternate repeater of the first repeater;
  • a bridging module configured to send a bridging instruction to the target repeater, where the bridging instruction is used to indicate that the target repeater is bridged with the first repeater.
  • the selecting module includes:
  • a first selecting unit configured to select, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater.
  • the selecting module includes:
  • a second selecting unit configured to select, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate, as the target repeater.
  • the selecting module includes:
  • a third selecting unit configured to select, from the plurality of second repeaters, a repeater whose remaining space of the current buffer area is greater than or equal to a preset threshold, as a target repeater.
  • the gateway further includes:
  • a sending module configured to send a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first repeater, where the data forwarding instruction is used to indicate the The target repeater forwards the interaction data of the Internet of Things terminal i to the first repeater.
  • an embodiment of the present invention provides a gateway, including:
  • a processor coupled to the memory
  • the processor invokes the executable program code stored in the memory to perform some or all of the steps as described in the first aspect of the embodiments of the present invention.
  • an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the embodiment of the present invention.
  • the computer includes a gateway.
  • an embodiment of 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, the computer program being operative to cause a computer to perform the implementation of the present invention.
  • the computer program product can be a software installation package, and the computer includes a gateway.
  • the present invention provides an Internet of Things communication system, where the Internet of Things communication system includes a network And a first repeater and a plurality of second repeaters connected to the gateway, where the second repeater includes a target repeater, including:
  • the first repeater is configured to send interaction information to the gateway
  • the gateway if the feedback message fed back by the first repeater for the interaction information is not received within a preset time period, selecting a target repeater from the plurality of second repeaters
  • the plurality of second repeaters are alternate repeaters of the first repeater
  • the gateway is further configured to send a bridging instruction to the target relay, where the bridging instruction is used to indicate that the target repeater is bridged with the first repeater.
  • the gateway selects a target repeater from the plurality of second repeaters, and selects, from the plurality of second repeaters, the first A repeater whose distance of the repeater is less than or equal to the preset distance is used as the target repeater.
  • the specific implementation manner of the gateway selecting a target repeater from the plurality of second repeaters is: selecting a current data forwarding rate from the plurality of second repeaters A repeater that is greater than or equal to the preset data forwarding rate as the target repeater.
  • the specific embodiment of the gateway selecting a target repeater from the plurality of second repeaters is: selecting a current cache area from the plurality of second repeaters A repeater with a remaining space greater than or equal to a preset threshold as a target repeater.
  • the gateway sends a 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 interaction data of the Internet of Things terminal i carried by the first relay, where the data forwarding instruction is used to indicate The target repeater forwards the interaction data of the Internet of Things terminal i to the first repeater;
  • the target repeater is configured to receive the data forwarding instruction sent by the gateway, and forward interaction data of the Internet of Things terminal i carried by the first relay to the first repeater.
  • the gateway if the gateway does not receive the feedback message of the first repeater within the preset time period, the gateway selects a target repeater from the plurality of second repeaters; a repeater is an alternate repeater of the first repeater; the gateway sends a bridge command to the target repeater, the bridge command is used to indicate the target repeater and the first The repeater is bridged.
  • the gateway when an abnormality occurs in the communication link between the gateway and the first repeater, the gateway sends a bridge command to the target repeater to indicate that the target repeater is bridged with the first repeater to ensure the first
  • the data exchange between the IoT terminal and the gateway carried on the repeater is normal, thereby solving the problem of maintaining normal data exchange between different devices in the Internet of Things when the data exchange link is abnormal.
  • FIG. 1 is a schematic diagram of an object network according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for bridging a repeater according to an embodiment of the present invention
  • FIG. 3 is a schematic flow chart of another repeater bridging method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an effect of a repeater bridging method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a gateway according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a gateway part according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another gateway according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of an Internet of Things communication system according to an embodiment of the present invention.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • An Internet of Things terminal device also known as a User Equipment (UE)
  • UE User Equipment
  • UE User Equipment
  • Common Internet of Things terminals include, for example, mobile phones, tablets, notebook computers, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, smart bracelets, pedometers, and the like.
  • RP Repeater
  • gateway is also known as the network connector, protocol converter.
  • the gateway implements network interconnection above the network layer. It is the most complex network interconnection device and is only used for different network interconnections of two high-level protocols. Gateways can be used for both WAN and LAN interconnections.
  • a gateway is a computer system or device that acts as a conversion. The gateway is a translator between two systems that use different communication protocols, data formats or languages, or even completely different architectures. Unlike bridges that simply convey information, the gateway repackages the received information to suit the needs of the destination system.
  • MAC Media Access Control or Medium Access Control
  • physical address hardware address
  • Multiple means two or more. "and/or”, describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately.
  • the character "/" generally indicates that the contextual object is an "or" relationship.
  • a repeater bridging method is provided.
  • the method is applied to the object network shown in FIG. 1.
  • the object network includes: a plurality of Internet of Things terminals 10, a plurality of repeaters 20, and a gateway 30, and the foregoing Internet of Things
  • the networked terminal can have different manifestations according to different situations.
  • the terminal device can be: a mobile phone, a tablet computer, a computer, etc., of course, it can also include other devices with networking functions, such as smart TV, smart air conditioner, and smart device.
  • the above-mentioned Internet of Things terminal 10 is connected to the repeater 20 in a wireless manner, and the repeater 20 accesses the Internet through the wireless device or the wired device 30, including but not limited to: Bluetooth , WIFI, ZigBee, GPRS, 3G, 4G, Wimax and other methods.
  • the wired mode is taken as an example, and for convenience of representation, only one solid line is shown here.
  • FIG. 2 is a schematic flowchart diagram of a method for bridging a repeater according to an embodiment of the present invention, which is applicable to an Internet of Things system, where the Internet of Things system includes a gateway and a first connection with the gateway.
  • the relay and the plurality of second repeaters include the following steps:
  • the gateway selects a target repeater from the plurality of second repeaters; the multiple second repeaters are An alternate repeater of the first repeater.
  • the above alternative repeater is that when the link between the first repeater and the gateway is abnormal, the gateway selects a target repeater from the candidate repeaters.
  • the feedback message is that after the gateway sends the data information to the repeater, the repeater sends a feedback message indicating that the information is received to the gateway.
  • the gateway establishes a connection link with a plurality of repeaters, and the gateway generates and stores a device link table, where the device link table includes a MAC address of the gateway, a MAC address of the plurality of repeaters, and the foregoing The data forwarding rate of the repeaters, the remaining space size of the buffer areas of the plurality of repeaters, and the location information.
  • the gateway selects a target repeater from the plurality of second repeaters, and the plurality of second repeaters are the foregoing A repeater other than the first repeater described above among the plurality of repeaters.
  • the preset period of time ranges from greater than or equal to 5 s and less than or equal to 15 s, for example, may be equal to 5 s, 8 s, 10 s, 12 s, 15 s, or other values.
  • the preset period of time is 8 s.
  • the first feedback message of the first relay that is not received by the gateway in the first time period may be the uplink abnormality of the repeater or the downlink abnormality or the uplink and downlink of the repeater.
  • the road is abnormally caused.
  • the gateway selects a target repeater from multiple second repeaters, including:
  • the gateway selects, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater.
  • the gateway queries the distance between the plurality of second repeaters and the first repeater by querying the device link table, and selects a distance from the first repeater that is less than or equal to a preset distance. Relay, as the target repeater.
  • the preset distance ranges from 50 m or more and less than or equal to 150 m.
  • the above preset distances may be 50m, 80m, 100m, 120m, 150m.
  • the preset distance is 100 m.
  • the gateway selects a target repeater from multiple second repeaters, including:
  • the gateway selects, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate as a target repeater.
  • the gateway queries the data of the multiple second repeaters by querying the device link table.
  • the forwarding rate, from which the above-mentioned repeater whose data forwarding rate is greater than or equal to the preset data forwarding rate is selected as the target repeater.
  • the preset data forwarding rate may be greater than 0 and less than or equal to 1024 Mbps, for example, may be equal to 32 Mbps, 64 Mbps, 128 Mbps, 256 Mbps, 512 Mbps, 1024 Mbps, or other values.
  • the preset data forwarding is performed.
  • the rate is 256Mbps.
  • the gateway selects a target repeater from multiple second repeaters, including:
  • the gateway selects, as the target repeater, a repeater that has a remaining space of the current buffer area greater than or equal to a preset threshold from the plurality of second repeaters.
  • the gateway queries the foregoing device link table to query the remaining space of the buffer area of the plurality of second repeaters, and selects a repeater whose remaining space of the buffer area is greater than or equal to a preset threshold, as a target. Relay.
  • the preset threshold may be greater than 0 and less than or equal to 512 Mb, for example, may be equal to 32 Mb, 64 Mb, 128 Mb, 256 Mb, 512 Mb, or other values.
  • the preset threshold is 256 Mb.
  • the gateway sends a bridging instruction to the target repeater, where the bridging instruction is used to indicate that the target repeater is bridged with the first repeater.
  • the method further includes:
  • the gateway is configured according to the The priority of the first repeater to forward data is forwarded to the gateway by the target repeater according to a preset data forwarding rule.
  • the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities.
  • the gateway forwards the data of the N-band forwarding data with priority I to the gateway by the repeater of the distance class I in the target repeater.
  • the above gateway passes the data N i*J+1 , N i*J+2 ... N i*J+J through the repeater M in the target repeater i+1 is forwarded to the gateway; wherein the above data N i*J+1 is data with priority i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; the above M i+ 1 is a repeater with a distance class i+1, and the smaller the i+1 value is, the shorter the distance between the corresponding repeater and the first repeater is.
  • the above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
  • the gateway is configured according to the The priority of the first repeater to forward data is forwarded to the gateway by the target repeater according to a preset data forwarding rule.
  • the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities.
  • the gateway forwards the data of the N-band forwarding data with the priority I to the gateway through the repeater of the data forwarding rate class I in the target repeater.
  • the above gateway passes the data N i*J+1 , N i*J+2 ... N i*J+J through the repeater M in the target repeater i+1 is forwarded to the gateway; wherein the above data N i*J+1 is data with priority i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; the above M i+ 1 is a repeater with a distance level of i+1, and the smaller the above i+1 value, the faster the data forwarding rate of the corresponding repeater.
  • the above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
  • the gateway is configured according to the The priority of the data to be forwarded by a repeater is forwarded to the gateway through the target repeater according to a preset data forwarding rule.
  • the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities.
  • the gateway forwards the data of the N-band forwarding data with the priority I to the gateway through the repeater of the data forwarding rate class I in the target repeater.
  • the above gateway passes the above-mentioned data to be forwarded N i*J+1 , N i*J+2 ... N i*J+J through the target repeater.
  • the relay M i+1 is forwarded to the gateway; wherein the data N i*J+1 is data with a priority of i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; M i+1 is a repeater with a distance level of i+1, and the smaller the above i+1 value is, the larger the remaining space of the buffer corresponding to the repeater is.
  • the above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
  • the method further includes:
  • the relay forwards the interaction data of the Internet of Things terminal i to the first repeater.
  • the Internet of Things terminal i is any one of the Internet of Things terminals carried by the first repeater.
  • the number of the target repeaters is N, and the N is an integer greater than 1.
  • the gateway sends a bridging instruction to the target relay, including:
  • the gateway sends a bridging instruction to K target repeaters in the N target repeaters.
  • the K is a positive integer
  • the gateway sends a bridging instruction to the N target repeaters, where K is positive Integer
  • the gateway sends K+1 to the N target repeaters.
  • the target repeater sends a bridge command, the K is a quotient, and the k is a remainder;
  • the gateway sends a bridging instruction to the N target repeaters, where the K For quotient, the k is the remainder;
  • the gateway sends a bridging instruction to one of the N target repeaters.
  • the preset threshold may be, for example, 30, 40, 45, 60, 48, 100 or other values.
  • the gateway sends a bridging instruction to one of the N target repeaters, where one of the target repeaters may be a repeater carrying the least number of IoT terminals, or may be a distance.
  • the most recent repeater of the first repeater may be the most capable of forwarding data, or may be any one, and the like, which is not limited by the present invention.
  • the gateway sends a bridging instruction to K or K+1 target repeaters in the N target repeaters, where K or K+1 target repeaters may be the N target relays
  • the K or K+1 repeaters carrying the fewest number of IoT terminals in the device may also be the K or K+1 repeaters with the strongest forwarding data among the N target repeaters. It may be K or K+1 repeaters of the repeater closest to the first repeater, or K or K+1 repeaters with the strongest data forwarding capability, or N Any K or K+1 repeaters in the target repeater, etc., are not limited in the present invention.
  • the gateway if the gateway does not receive the feedback message of the first repeater within the preset time period, the gateway selects a target repeater from the plurality of second repeaters; a repeater is an alternate repeater of the first repeater; the gateway sends a bridge command to the target repeater, the bridge command is used to indicate the target repeater and the first The repeater is bridged. It can be seen that when an abnormality occurs in the communication link between the gateway and the first repeater, the gateway sends a bridge command to the target repeater.
  • the target repeater is bridged with the first repeater to ensure normal data interaction between the IoT terminal and the gateway carried on the first repeater, thereby solving the problem that when the data exchange link is abnormal, Maintain the problem of normal data exchange between different devices within the IoT.
  • the embodiment of the present invention further provides another more detailed method flow, as shown in FIG. 3, including:
  • the gateway sends the interaction information to the first repeater.
  • the interaction information is interaction information between the gateway and the Internet of Things terminal carried by the first repeater.
  • the gateway If the gateway does not receive the feedback message that the first repeater feeds back to the interaction information within a preset time period, the gateway selects a target repeater from multiple second repeaters;
  • the second repeater is an alternate repeater of the first repeater.
  • the above alternative repeater is that when the link between the first repeater and the gateway is abnormal, the gateway selects a target repeater from the candidate repeaters.
  • the feedback message is that after the gateway sends the data information to the repeater, the repeater sends a feedback message indicating that the information is received to the gateway.
  • the gateway establishes a connection link with a plurality of repeaters, and the gateway generates and stores a device link table, where the device link table includes a MAC address of the gateway, a MAC address of the plurality of repeaters, and the foregoing The data forwarding rate of the repeaters, the remaining space size of the buffer areas of the plurality of repeaters, and the location information.
  • the gateway selects a target repeater from the plurality of second repeaters, and the plurality of second repeaters are the foregoing A repeater other than the first repeater described above among the plurality of repeaters.
  • the preset period of time ranges from greater than or equal to 5 s and less than or equal to 15 s, for example, may be equal to 5 s, 8 s, 10 s, 12 s, 15 s, or other values.
  • the preset period of time is 8 s.
  • the first feedback message of the first relay that is not received by the gateway in the first time period may be the uplink abnormality of the repeater or the downlink abnormality or the uplink and downlink of the repeater.
  • the road is abnormally caused.
  • the gateway selects a target repeater from multiple second repeaters, including:
  • the gateway selects, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater.
  • the gateway queries the distance between the plurality of second repeaters and the first repeater by querying the device link table, and selects a distance from the first repeater that is less than or equal to a preset distance. Relay, as the target repeater.
  • the preset distance ranges from 50 m or more and less than or equal to 150 m.
  • the above preset distances may be 50m, 80m, 100m, 120m, 150m.
  • the preset distance is 100 m.
  • the gateway selects a target repeater from multiple second repeaters, including:
  • the gateway selects, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate as a target repeater.
  • the gateway queries the data link forwarding rate of the multiple second repeaters by querying the device link table, and selects the repeater whose data forwarding rate is greater than or equal to the preset data forwarding rate as the target repeater. .
  • the preset data forwarding rate may be greater than 0 and less than or equal to 1024 Mbps, for example, may be equal to 32 Mbps, 64 Mbps, 128 Mbps, 256 Mbps, 512 Mbps, 1024 Mbps, or other values.
  • the preset data forwarding is performed.
  • the rate is 256Mbps.
  • the gateway selects a target repeater from multiple second repeaters, including:
  • the gateway selects, as the target repeater, a repeater that has a remaining space of the current buffer area greater than or equal to a preset threshold from the plurality of second repeaters.
  • the gateway queries the data link forwarding rate of the multiple second repeaters by querying the device link table, and selects a repeater whose remaining space of the buffer area is greater than or equal to a preset threshold, as a target repeater. .
  • the preset threshold may be greater than 0 and less than or equal to 512 Mb, for example, may be equal to 32 Mb, 64 Mb, 128 Mb, 256 Mb, 512 Mb, or other values.
  • the preset threshold is 256 Mb.
  • the gateway queries, in the device link table, the MAC address of the first repeater and the MAC address of the target repeater.
  • the gateway sends, to the target relay, a bridging instruction that carries a MAC address of the first repeater.
  • the gateway sends a bridge command to the target repeater through the obtained MAC address of the target repeater.
  • the bridging command is used to indicate that the target repeater is bridged with the first repeater.
  • the target repeater sends a bridging request to the first repeater according to the MAC address of the first repeater carried in the bridging command.
  • the first repeater receives the bridging request and bridges with a target repeater.
  • the method further includes:
  • the gateway is configured according to the The priority of the first repeater to forward data is forwarded to the gateway by the target repeater according to a preset data forwarding rule.
  • the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities.
  • the gateway forwards the data of the N-band forwarding data with priority I to the gateway by the repeater of the distance class I in the target repeater.
  • the above gateway passes the data N i*J+1 , N i*J+2 ... N i*J+J through the repeater M in the target repeater i+1 is forwarded to the gateway; wherein the above data N i*J+1 is data with priority i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; the above M i+ 1 is a repeater with a distance class i+1, and the smaller the i+1 value is, the shorter the distance between the corresponding repeater and the first repeater is.
  • the above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
  • the target repeater is selected according to the gateway from the plurality of second repeaters, the current data forwarding rate is greater than or equal to a preset data forwarding rate, and the gateway is according to the first
  • the priority of the data to be forwarded by the relay is forwarded to the gateway by the target repeater according to a preset data forwarding rule.
  • the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities.
  • the gateway forwards the data of the N-band forwarding data with the priority I to the gateway through the repeater of the data forwarding rate class I in the target repeater.
  • the above gateway passes the data N i*J+1 , N i*J+2 ... N i*J+J through the repeater M in the target repeater i+1 is forwarded to the gateway; wherein the above data N i*J+1 is data with priority i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; the above M i+ 1 is a repeater with a distance level of i+1, and the smaller the above i+1 value, the faster the data forwarding rate of the corresponding repeater.
  • the above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
  • the gateway is configured according to the The priority of the data to be forwarded by a repeater is forwarded to the gateway through the target repeater according to a preset data forwarding rule.
  • the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities.
  • the gateway forwards the data of the N-band forwarding data with the priority I to the gateway through the repeater of the data forwarding rate class I in the target repeater.
  • the smaller the I value of the repeater of the above distance class I the larger the remaining space of the buffer of the above repeater.
  • the above gateway passes the above-mentioned data to be forwarded N i*J+1 , N i*J+2 ... N i*J+J through the target repeater.
  • the relay M i+1 is forwarded to the gateway; wherein the data N i*J+1 is data with a priority of i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; M i+1 is a repeater with a distance level of i+1, and the smaller the above i+1 value is, the larger the remaining space of the buffer corresponding to the repeater is.
  • the above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
  • the method further includes:
  • the relay forwards the interaction data of the Internet of Things terminal i to the first repeater.
  • the Internet of Things terminal i is any one of the Internet of Things terminals carried by the first repeater.
  • FIG. 4 is a schematic diagram showing the result of a method for migration of an Internet of Things terminal according to an embodiment of the present invention.
  • the first repeater and the target repeater includes the repeater 1 and the repeater 2
  • the link connection between the first repeater and the gateway is normal.
  • the link connection between the first repeater and the gateway is abnormal, and the gateway obtains the repeater 1 and the repeater 2 as the target repeater according to the step 302 of the foregoing method, according to the above method.
  • Step 304, step 305 and step 306 indicate that the repeater 1 in the target repeater is bridged with the first repeater, so that the Internet of Things terminal carried by the repeater maintains normal data interaction.
  • An embodiment of the present invention further provides an Internet of Things terminal device 500, as shown in FIG. 5, including:
  • the selecting module 501 is configured to: if the gateway does not receive the feedback message of the first repeater within the preset time period, the selecting module selects a target repeater from the plurality of second repeaters;
  • the second repeater is an alternate repeater of the first repeater;
  • the bridging module 502 is configured to send a bridging instruction to the target repeater, where the bridging instruction is used to indicate that the target repeater is bridged with the first repeater.
  • the selecting module 501 includes:
  • the first selecting unit 5011 is configured to select, as the target repeater, a repeater that is less than or equal to a preset distance from the first repeater from the plurality of second repeaters.
  • the selecting module 501 includes:
  • a second selecting unit 5012 configured to select a current data forwarding speed from the plurality of second repeaters A repeater with a rate greater than or equal to the preset data forwarding rate as the target repeater.
  • the selecting module 501 includes:
  • the third selecting unit 5013 is configured to select, as the target repeater, a repeater that has a remaining space of the current buffer area greater than or equal to a preset threshold from the plurality of second repeaters.
  • the gateway further includes:
  • the sending module 503 is configured to send a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first repeater, where the data forwarding instruction is used to indicate The target repeater forwards the interaction data of the Internet of Things terminal i to the first repeater.
  • each of the above modules (the selection module 501 and the bridge module 502) is used to perform the relevant steps of the above method.
  • the selection module 501 is configured to perform the relevant steps of step 201 above.
  • the bridging module 502 is configured to perform the relevant steps of step 202 above.
  • the specific implementation process of each step of the foregoing method is a specific implementation process performed by each module, and is not described herein.
  • 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 executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality.
  • ASIC application-specific integrated circuit
  • the above selection module 501 and the bridge module 502 can be implemented by the processor 701 of the gateway shown in FIG. 7, and the sending module 503 can be implemented by the communication interface processor 703 of the gateway shown in FIG.
  • gateway 700 can be implemented in the structure of FIG. 7, which includes 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 and complete communication with each other.
  • the processor 701 can 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 the above program.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the communication interface 703 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
  • RAN Radio Access Network
  • WLAN Wireless Local Area Networks
  • the memory 702 can be 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 that can store information and instructions.
  • Dynamic storage device can also Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs) , a disc, a digital versatile disc, a Blu-ray disc, etc.), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and accessible by a computer, But it is not limited to this.
  • the memory can exist independently and be connected to the processor via a bus.
  • the memory can also be integrated with the processor.
  • the memory 702 is configured to store application code that executes the above solution, and is controlled by the processor 701 for execution.
  • the processor 701 is configured to execute application code stored in the memory 702.
  • the code stored in the memory 702 may perform the upgrade method of the foregoing application performed by the Internet of Things terminal device provided above, for example, if the gateway does not receive the feedback message of the first repeater within a preset time period, the gateway is from multiple Selecting a target repeater in the second repeater; the plurality of second repeaters are alternate repeaters of the first repeater; the gateway sends a bridge command to the target repeater, The bridging command is used to instruct the target repeater to bridge with the first repeater.
  • FIG. 8 is a schematic structural diagram of an Internet of Things communication system according to an embodiment of the present invention.
  • the Internet of Things communication system includes a gateway 801 and a first repeater 802 and a second repeater 803 connected to the gateway 801.
  • the second repeater includes a target repeater 8031, wherein:
  • the first repeater 802 is configured to send the interaction information to the gateway 801.
  • the gateway 801 is configured to select a target repeater 8031 from the plurality of second repeaters 803 if the feedback message fed back by the first repeater 801 for the interaction information is not received within a preset time period.
  • the second repeater 803 is an alternate repeater of the first repeater 802;
  • the gateway 801 is further configured to send a bridging instruction to the target relay 8031, where the bridging instruction is used to indicate that the target repeater 8031 is bridged with the first repeater 802.
  • the specific embodiment of the gateway 801 selecting the target repeater 8031 from the plurality of second repeaters 803 is: selecting the first repeater from the plurality of second repeaters 803
  • the repeater of 802 is less than or equal to the preset distance as the target repeater 8031.
  • the specific embodiment of the gateway 801 selecting the target repeater 8031 from the plurality of second repeaters 803 is: selecting, from the plurality of second repeaters 803, that the current data forwarding rate is greater than or equal to the pre-predetermined A repeater of the data transfer rate is set as the target repeater 8031.
  • the specific embodiment of the gateway 801 selecting the target repeater 8031 from the plurality of second repeaters 803 is: selecting, from the plurality of second repeaters 803, that the remaining space of the current buffer area is greater than or A repeater equal to a preset threshold is used as the target repeater 8031.
  • gateway 801 sends a bridging instruction to the target repeater
  • the gateway 801 is further configured to send a data forwarding instruction to the target relay 8031, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first relay, where the data forwarding instruction is used to indicate the The target repeater 8031 forwards the interaction data of the Internet of Things terminal i to the first repeater 802;
  • the target repeater 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. .
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments.
  • 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, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Part or all of the steps of either method.
  • the computer program product can be a software installation package, the computer including a gateway.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or It can also be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the 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 standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

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

Disclosed in the present invention is a repeater bridging method, comprising: if a gateway does not receive a feedback message from a first repeater within a preset time period, selecting by the gateway a target repeater from multiple second repeaters, the multiple second repeaters being backup repeaters of the first repeater; and sending by the gateway a bridging instruction to the target repeater, the bridging instruction being used for indicating the target repeater to perform bridging with the first repeater. The embodiment of the present invention further provides a gateway. The embodiment of the present invention can maintain normal data exchange between different devices in the Internet of things when a data exchange link becomes abnormal.

Description

一种中继器桥接方法和网关Repeater bridging method and gateway 技术领域Technical field
本发明涉及物联网通信技术领域,尤其涉及一种中继器桥接方法和网关。The present invention relates to the field of Internet of Things communication technologies, and in particular, to a repeater bridging method and a gateway.
背景技术Background technique
物联网是新一代信息技术的重要组成部分,也是“信息化”时代的重要发展阶段。其英文名称是:“Internet of things(IoT)”。物联网通过智能感知、识别技术与普适计算等通信感知技术,广泛应用于网络的融合中,也因此被称为继计算机、互联网之后世界信息产业发展的第三次浪潮。物联网是互联网的应用拓展,与其说物联网是网络,不如说物联网是业务和应用。因此,应用创新是物联网发展的核心,以用户体验为核心的创新2.0是物联网发展的灵魂。The Internet of Things is an important part of the new generation of information technology, and an important stage of development in the era of "informatization." Its English name is: "Internet of things (IoT)". The Internet of Things is widely used in the convergence of networks through communication-aware technologies such as intelligent sensing, identification technology and pervasive computing. It is also called the third wave of the development of the world information industry after computers and the Internet. The Internet of Things is the application expansion of the Internet. It is not so much that the Internet of Things is a network, but the Internet of Things is a business and application. Therefore, application innovation is the core of the development of the Internet of Things. Innovation 2.0 with user experience as the core is the soul of the development of the Internet of Things.
物联网解决的是不同网络的互联以及物物之间的数据交换的问题,当物联网内数据交换链路出现故障时,会导致不同设备之间的数据无法正常交互,因此如何在物联网内数据交换链路出现故障时,保持不同设备之间的正常数据交换是本领域亟待解决的技术问题。The Internet of Things solves the problem of the interconnection of different networks and the exchange of data between objects. When the data exchange link in the Internet of Things fails, data between different devices cannot interact normally, so how to be in the Internet of Things. When a data exchange link fails, maintaining normal data exchange between different devices is a technical problem to be solved in the field.
发明内容Summary of the invention
本发明实施例提供一种中继器桥接方法,用于解决在数据交换链路异常时,保持物联网内不同设备之间的正常数据交换的问题。The embodiment of the invention provides a method for bridging a relay, which is used to solve the problem of maintaining normal data exchange between different devices in the Internet of Things when the data exchange link is abnormal.
第一方面,本发明实施例提供一种中继器桥接方法,适用于物联网***中,所述物联网***包括网关和与所述网关连接的第一中继器和多个第二中继器,包括:In a first aspect, an embodiment of the present invention provides a repeater bridging method, which is applicable to an Internet of Things system, where the Internet of Things system includes a gateway and a first repeater and multiple second relays connected to the gateway. , including:
若网关在预设时段内未接收到第一中继器的反馈消息,则所述网关从所述多个第二中继器中选取目标中继器;所述多个第二中继器为所述第一中继器的备选中继器;If the gateway does not receive the feedback message of the first repeater within the preset time period, the gateway selects a target repeater from the plurality of second repeaters; the plurality of second repeaters are An alternate repeater of the first repeater;
所述网关向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。The gateway sends a bridging instruction to the target repeater, the bridging instruction is used to instruct the target repeater to bridge with the first repeater.
在一些可行的实施方式中,所述网关从所述多个第二中继器中选取目标中继器,包括:In some possible implementations, the gateway selects a target repeater from the plurality of second repeaters, including:
所述网关从所述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。以使得从多个第二中继器中选取出比较优质的中继器。 The gateway selects, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater. In order to select a relatively high quality repeater from a plurality of second repeaters.
在一些可行的实施方式中,所述网关从所述多个第二中继器中选取目标中继器,包括:In some possible implementations, the gateway selects a target repeater from the plurality of second repeaters, including:
所述网关从所述多个第二中继器中选出当前数据转发速率大于或等于预设数据转发速率的中继器,作为目标中继器。以使得从多个第二中继器中选取出比较优质的中继器。The gateway selects, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate as a target repeater. In order to select a relatively high quality repeater from a plurality of second repeaters.
在一些可行的实施方式中,所述网关从所述多个第二中继器中选取目标中继器,包括:In some possible implementations, the gateway selects a target repeater from the plurality of second repeaters, including:
所述网关从所述多个第二中继器中选出当前缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。以使得从多个第二中继器中选取出比较优质的中继器。The gateway selects, as the target repeater, a repeater that has a remaining space of the current buffer area greater than or equal to a preset threshold from the plurality of second repeaters. In order to select a relatively high quality repeater from a plurality of second repeaters.
在一些可行的实施方式中,所述网关向所述目标中继器发送桥接指令之后,所述方法还包括:In some possible implementations, after the gateway sends a bridging instruction to the target relay, the method further includes:
所述网关向所述目标中继器发送数据转发指令,所述数据转发指令携带所述第一中继器承载的物联网终端i的交互数据,所述数据转发指令用于指示所述目标中继器将所述物联网终端i的交互数据转发至所述第一中继器。Transmitting, by the gateway, a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first relay, where the data forwarding instruction is used to indicate the target The relay forwards the interaction data of the Internet of Things terminal i to the first repeater.
在一些可行的实施方式中,所述目标中继器的数量为N,所述N为大于1的整数,所述网关向所述目标中继器发送桥接指令,包括:In some possible implementations, the number of the target repeaters is N, and the N is an integer greater than 1. The gateway sends a bridging instruction to the target relay, including:
所述网关确定所述第一中继器所承载的物联网终端的数量W,所述W为大于1的整数;Determining, by the gateway, the number W of the Internet of Things terminals carried by the first repeater, where W is an integer greater than one;
若所述W大于预设阈值,W/预设阈值=K,且所述K小于所述N时,所述网关向所述N个目标中继器中的K个目标中继器发送桥接指令,所述K为正整数;If the W is greater than a preset threshold, W/preset threshold=K, and the K is smaller than the N, the gateway sends a bridging instruction to K target repeaters in the N target repeaters. , the K is a positive integer;
若所述W大于预设阈值,W/预设阈值=K,且所述K大于或等所述N时,所述网关向所述N个目标中继器发送桥接指令,所述K为正整数;If the W is greater than a preset threshold, W/preset threshold=K, and the K is greater than or equal to the N, the gateway sends a bridging instruction to the N target repeaters, where K is positive Integer
若所述W大于预设阈值,W/预设阈值=K……k,且所述K+1小于所述N时,所述网关向所述N个目标中继器中的K+1个目标中继器发送桥接指令,所述K为商,所述k为余数;If the W is greater than a preset threshold, W/preset threshold=K...k, and the K+1 is less than the N, the gateway sends K+1 to the N target repeaters. The target repeater sends a bridge command, the K is a quotient, and the k is a remainder;
若所述W大于预设阈值,W/预设阈值=K,且所述K+1大于或等于所述N时,所述网关向所述N个目标中继器发送桥接指令,所述K为商,所述k为余数;If the W is greater than a preset threshold, W/preset threshold=K, and the K+1 is greater than or equal to the N, the gateway sends a bridging instruction to the N target repeaters, where the K For quotient, the k is the remainder;
若所述W小于预设阈值,所述网关向所述N个目标中继器其中一个目标中继器发送桥接指令。可见,当目标中继器有多个时,网关可根据第一中继器所承载的物联网终端的数量确定待与网关桥接的中继器,这样可使得后续桥接后的目标中继器承载能力的均衡性。 If the W is less than a preset threshold, the gateway sends a bridging instruction to one of the N target repeaters. It can be seen that when there are multiple target repeaters, the gateway can determine the repeater to be bridged with the gateway according to the number of IoT terminals carried by the first repeater, so that the target relay after the subsequent bridge can be carried. The balance of capabilities.
第二方面,本发明实施例提供一种网关,适用用于物联网***中,所述物联网***包括网关和与所述网关连接的第一中继器和多个第二中继器,包括:In a second aspect, an embodiment of the present invention provides a gateway, which is applicable to 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, including :
选取模块,用于若网关在预设时段内未接收到第一中继器的反馈消息,则所述选取模块从所述多个第二中继器中选取目标中继器;所述多个第二中继器为所述第一中继器的备选中继器;a selecting module, configured to: if the gateway does not receive the feedback message of the first repeater within the preset time period, the selecting module selects a target repeater from the plurality of second repeaters; The second repeater is an alternate repeater of the first repeater;
桥接模块,用于向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。And a bridging module, configured to send a bridging instruction to the target repeater, where the bridging instruction is used to indicate that the target repeater is bridged with the first repeater.
在一些可行的实施方式中,所述选取模块包括:In some possible implementations, the selecting module includes:
第一选取单元,用于从所述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。And a first selecting unit, configured to select, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater.
在一些可行的实施方式中,所述选取模块包括:In some possible implementations, the selecting module includes:
第二选取单元,用于从所述多个第二中继器中选出当前数据转发速率大于或等于预设数据转发速率的中继器,作为目标中继器。And a second selecting unit, configured to select, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate, as the target repeater.
在一些可行的实施方式中,所述选取模块包括:In some possible implementations, the selecting module includes:
第三选取单元,用于从所述多个第二中继器中选出当前缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。And a third selecting unit, configured to select, from the plurality of second repeaters, a repeater whose remaining space of the current buffer area is greater than or equal to a preset threshold, as a target repeater.
在一些可行的实施方式中,所述网关还包括:In some possible implementations, the gateway further includes:
发送模块,用于向所述目标中继器发送数据转发指令,所述数据转发指令携带所述第一中继器承载的物联网终端i的交互数据,所述数据转发指令用于指示所述目标中继器将所述物联网终端i的交互数据转发至所述第一中继器。a sending module, configured to send a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first repeater, where the data forwarding instruction is used to indicate the The target repeater forwards the interaction data of the Internet of Things terminal i to the first repeater.
第三方面,本发明实施例提供一种网关,包括:In a third aspect, an embodiment of the present invention provides a gateway, including:
存储有可执行程序代码的存储器;a memory storing executable program code;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行如本发明实施例第一方面中所描述的部分或全部步骤。The processor invokes the executable program code stored in the memory to perform some or all of the steps as described in the first aspect of the embodiments of the present invention.
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本发明实施例第一方面所描述的部分或全部步骤,上述计算机包括网关。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the embodiment of the present invention. In some or all of the steps described on the one hand, the computer includes a gateway.
第五方面,本发明实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本发明实施例第一方面所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括网关。In a fifth aspect, an embodiment of 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, the computer program being operative to cause a computer to perform the implementation of the present invention. Some or all of the steps described in the first aspect of the example. The computer program product can be a software installation package, and the computer includes a gateway.
第五方面,本发明提供一种物联网通信***,所述物联网通信***包括网 关和与所述网关连接的第一中继器和多个第二中继器,所述第二中继器包括目标中继器,包括:In a fifth aspect, the present invention provides an Internet of Things communication system, where the Internet of Things communication system includes a network And a first repeater and a plurality of second repeaters connected to the gateway, where the second repeater includes a target repeater, including:
所述第一中继器,用于向所述网关发送交互信息;The first repeater is configured to send interaction information to the gateway;
所述网关,用于若在预设时段内未接收到所述第一中继器针对所述交互信息而反馈的反馈消息,则从所述多个第二中继器中选取目标中继器,所述多个第二中继器为所述第一中继器的备选中继器;The gateway, if the feedback message fed back by the first repeater for the interaction information is not received within a preset time period, selecting a target repeater from the plurality of second repeaters The plurality of second repeaters are alternate repeaters of the first repeater;
所述网关,还用于向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。The gateway is further configured to send a bridging instruction to the target relay, where the bridging instruction is used to indicate that the target repeater is bridged with the first repeater.
在一些可行的实施方式中,所述网关从所述多个第二中继器中选取目标中继器的具体实施方式有:从所述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。In some implementations, the gateway selects a target repeater from the plurality of second repeaters, and selects, from the plurality of second repeaters, the first A repeater whose distance of the repeater is less than or equal to the preset distance is used as the target repeater.
在一些可行的实施方式中,所述网关从所述多个第二中继器中选取目标中继器的具体实施方式有:从所述多个第二中继器中选出当前数据转发速率大于或等于预设数据转发速率的中继器,作为目标中继器。In some possible implementations, the specific implementation manner of the gateway selecting a target repeater from the plurality of second repeaters is: selecting a current data forwarding rate from the plurality of second repeaters A repeater that is greater than or equal to the preset data forwarding rate as the target repeater.
在一些可行的实施方式中,所述网关从所述多个第二中继器中选取目标中继器的具体实施方式有:从所述多个第二中继器中选出当前缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。In some implementations, the specific embodiment of the gateway selecting a target repeater from the plurality of second repeaters is: selecting a current cache area from the plurality of second repeaters A repeater with a remaining space greater than or equal to a preset threshold as a target repeater.
在一些可行的实施方式中,所述网关向所述目标中继器发送桥接指令之后,In some possible implementations, after the gateway sends a bridging instruction to the target repeater,
所述网关,还用于向所述目标中继器发送数据转发指令,所述数据转发指令携带所述第一中继器承载的物联网终端i的交互数据,所述数据转发指令用于指示所述目标中继器将所述物联网终端i的交互数据转发至所述第一中继器;The gateway is further configured to send a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first relay, where the data forwarding instruction is used to indicate The target repeater forwards the interaction data of the Internet of Things terminal i to the first repeater;
所述目标中继器,用于接收所述网关发送的所述数据转发指令,以及将所述第一中继器承载的物联网终端i的交互数据转发至所述第一中继器。The target repeater is configured to receive the data forwarding instruction sent by the gateway, and forward interaction data of the Internet of Things terminal i carried by the first relay to the first repeater.
本发明实施例中,若网关在预设时段内未接收到第一中继器的反馈消息,则所述网关从多个第二中继器中选取目标中继器;所述多个第二中继器为所述第一中继器的备选中继器;所述网关向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。可见,在网关与第一中继器之间的通信链路出现异常时,网关通过向目标中继器发送桥接指令用于指示目标中继器与第一中继器进行桥接,以保证第一中继器上所承载的物联网终端与网关之间正常进行数据交互,进而解决了在数据交换链路异常时,保持物联网内不同设备之间的正常数据交换的问题。In the embodiment of the present invention, if the gateway does not receive the feedback message of the first repeater within the preset time period, the gateway selects a target repeater from the plurality of second repeaters; a repeater is an alternate repeater of the first repeater; the gateway sends a bridge command to the target repeater, the bridge command is used to indicate the target repeater and the first The repeater is bridged. It can be seen that when an abnormality occurs in the communication link between the gateway and the first repeater, the gateway sends a bridge command to the target repeater to indicate that the target repeater is bridged with the first repeater to ensure the first The data exchange between the IoT terminal and the gateway carried on the repeater is normal, thereby solving the problem of maintaining normal data exchange between different devices in the Internet of Things when the data exchange link is abnormal.
本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。 These and other aspects of the invention will be more apparent from the following description of the embodiments.
附图说明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 embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例提供的一种物联网络示意图;1 is a schematic diagram of an object network according to an embodiment of the present invention;
图2是本发明实施例提供的一种中继器桥接方法流程示意图;2 is a schematic flowchart of a method for bridging a repeater according to an embodiment of the present invention;
图3是本发明实施例提供的另一种中继器桥接方法流程示意图;3 is a schematic flow chart of another repeater bridging method according to an embodiment of the present invention;
图4是本发明实施例提供的一种中继器桥接方法效果示意图;4 is a schematic diagram of an effect of a repeater bridging method according to an embodiment of the present invention;
图5是本发明实施例提供的一种网关结构示意图;FIG. 5 is a schematic structural diagram of a gateway according to an embodiment of the present disclosure;
图6是本发明实施例提供的一种网关部分结构示意图;6 is a schematic structural diagram of a gateway part according to an embodiment of the present invention;
图7是本发明实施例提供的另一种网关结构示意图;FIG. 7 is a schematic structural diagram of another gateway according to an embodiment of the present disclosure;
图8是本发明实施例提供的一种物联网通信***结构示意图。FIG. 8 is a schematic structural diagram of an Internet of Things communication system according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
以下分别进行详细说明。The details are described below separately.
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present invention are used to distinguish different objects, and are not intended to describe a specific order. . Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or, optionally, Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。 Hereinafter, some of the terms in the present application will be explained to be understood by those skilled in the art.
1)、物联网终端设备,又称之为用户设备(User Equipment,UE),是一种向用户提供语音和/或数据连通性的设备,例如,具有无线连接功能的手持式设备、车载设备等。常见的物联网终端例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,例如智能手表、智能手环、计步器等。1) An Internet of Things terminal device, also known as a User Equipment (UE), is a device that provides voice and/or data connectivity to users, for example, a handheld device with a wireless connection function, and an in-vehicle device. Wait. Common Internet of Things terminals include, for example, mobile phones, tablets, notebook computers, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, smart bracelets, pedometers, and the like.
2)、中继器,其英文名是:“Repeater(RP)”,是一种工作在物理层上的连接设备。适用于完全相同的两类网络的互连,主要功能是通过对数据信号的重新发送或者转发,来扩大网络传输的距离。2), repeater, its English name is: "Repeater (RP)", is a connected device working on the physical layer. Applicable to the interconnection of two identical types of networks. The main function is to expand the distance of network transmission by retransmitting or forwarding data signals.
3)、网关,英文名是:“Gateway”,网关(Gateway)又称网间连接器、协议转换器。网关在网络层以上实现网络互连,是最复杂的网络互连设备,仅用于两个高层协议不同的网络互连。网关既可以用于广域网互连,也可以用于局域网互连。网关是一种充当转换重任的计算机***或设备。使用在不同的通信协议、数据格式或语言,甚至体系结构完全不同的两种***之间,网关是一个翻译器。与网桥只是简单地传达信息不同,网关对收到的信息要重新打包,以适应目的***的需求。3), the gateway, the English name is: "Gateway", gateway (Gateway) is also known as the network connector, protocol converter. The gateway implements network interconnection above the network layer. It is the most complex network interconnection device and is only used for different network interconnections of two high-level protocols. Gateways can be used for both WAN and LAN interconnections. A gateway is a computer system or device that acts as a conversion. The gateway is a translator between two systems that use different communication protocols, data formats or languages, or even completely different architectures. Unlike bridges that simply convey information, the gateway repackages the received information to suit the needs of the destination system.
4)、MAC(Media Access Control或者Medium Access Control)地址,意译为媒体访问控制,或称为物理地址、硬件地址,用来定义网络设备的位置。在OSI模型中,第三层网络层负责IP地址,第二层数据链路层则负责MAC地址。因此一个主机会有一个MAC地址,而每个网络位置会有一个专属于它的IP地址。4), MAC (Media Access Control or Medium Access Control) address, meaning translated as media access control, or physical address, hardware address, used to define the location of the network device. In the OSI model, the Layer 3 network layer is responsible for the IP address, and the Layer 2 data link layer is responsible for the MAC address. Therefore, a host will have a MAC address, and each network location will have an IP address specific to it.
5)、“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。5) "Multiple" means two or more. "and/or", describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. The character "/" generally indicates that the contextual object is an "or" relationship.
下面结合附图对本申请的实施例进行描述。Embodiments of the present application will be described below with reference to the accompanying drawings.
根据本发明的一个方面,提供了一种中继器桥接方法。其中,该方法应用在如图1所示的物联网络中,如图1所示,该物联网络包括:多个物联网终端10、多个中继器20以及网关30,上述物联网物联网终端根据不同的情况可以具有不同的表现形式,例如该终具体可以为:手机、平板电脑、计算机等设备,当然其也可以包含带有联网功能的其他设备,例如智能电视、智能空调、智能水壶或一些物联网的智能设备;上述物联网终端10通过无线方式与中继器20连接,中继器20通过无线方式或者有线方式与网关30接入互联网,上述无线方式包括但不限于:蓝牙、WIFI、ZigBee、GPRS、3G、4G、Wimax等方式。图1中以有线方式为示例,为了方便表示,这里仅以一根实线表示。 According to one aspect of the invention, a repeater bridging method is provided. The method is applied to the object network shown in FIG. 1. As shown in FIG. 1, the object network includes: a plurality of Internet of Things terminals 10, a plurality of repeaters 20, and a gateway 30, and the foregoing Internet of Things The networked terminal can have different manifestations according to different situations. For example, the terminal device can be: a mobile phone, a tablet computer, a computer, etc., of course, it can also include other devices with networking functions, such as smart TV, smart air conditioner, and smart device. a kettle or some IoT smart device; the above-mentioned Internet of Things terminal 10 is connected to the repeater 20 in a wireless manner, and the repeater 20 accesses the Internet through the wireless device or the wired device 30, including but not limited to: Bluetooth , WIFI, ZigBee, GPRS, 3G, 4G, Wimax and other methods. In Fig. 1, the wired mode is taken as an example, and for convenience of representation, only one solid line is shown here.
请参见图2,图2为本发明实施例提供的一种中继器桥接方法的流程示意图,适用用于物联网***中,所述物联网***包括网关和与所述网关连接的第一中继器和多个第二中继器,包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a method for bridging a repeater according to an embodiment of the present invention, which is applicable to an Internet of Things system, where the Internet of Things system includes a gateway and a first connection with the gateway. The relay and the plurality of second repeaters include the following steps:
201、若网关在预设时段内未接收到第一中继器的反馈消息,则所述网关从多个第二中继器中选取目标中继器;所述多个第二中继器为所述第一中继器的备选中继器。201. If the gateway does not receive the feedback message of the first repeater within the preset time period, the gateway selects a target repeater from the plurality of second repeaters; the multiple second repeaters are An alternate repeater of the first repeater.
其中,上述备选中继器为当第一中继器与上述网关之间的链路异常时,上述网关从上述备选中继器中选出目标中继器。Wherein, the above alternative repeater is that when the link between the first repeater and the gateway is abnormal, the gateway selects a target repeater from the candidate repeaters.
其中,上述反馈消息为上述网关向上述中继器发送数据信息后,上述中继器向上述网关发送表示接收到该信息的反馈消息。The feedback message is that after the gateway sends the data information to the repeater, the repeater sends a feedback message indicating that the information is received to the gateway.
其中,上述网关与多个中继器建立连接链路,同时上述网关生成并存储设备链路表,该设备链路表包含上述网关的MAC地址、上述多个中继器的MAC地址、上述多个中继器的数据转发速率、上述多个中继器的缓存区的剩余空间大小和位置信息。当上述若网关在预设时段内未接收到第一中继器的反馈消息,则所述网关从多个第二中继器中选取目标中继器,上述多个第二中继器为上述多个中继器中除了上述第一中继器之外的中继器。The gateway establishes a connection link with a plurality of repeaters, and the gateway generates and stores a device link table, where the device link table includes a MAC address of the gateway, a MAC address of the plurality of repeaters, and the foregoing The data forwarding rate of the repeaters, the remaining space size of the buffer areas of the plurality of repeaters, and the location information. When the gateway does not receive the feedback message of the first repeater within the preset time period, the gateway selects a target repeater from the plurality of second repeaters, and the plurality of second repeaters are the foregoing A repeater other than the first repeater described above among the plurality of repeaters.
可选地,上述预设时段的取值范围为大于或等于5s且小于或等于15s,例如可以等于5s、8s、10s、12s、15s或者其他值。优选地,上述预设时段为8s。Optionally, the preset period of time ranges from greater than or equal to 5 s and less than or equal to 15 s, for example, may be equal to 5 s, 8 s, 10 s, 12 s, 15 s, or other values. Preferably, the preset period of time is 8 s.
可选地,上述网关在第一时段内未接收的第一中继的第一反馈消息,可以是上述中继器上行链路异常或者上述下行链路异常或者上述中继器的上、下行链路均异常造成的。Optionally, the first feedback message of the first relay that is not received by the gateway in the first time period may be the uplink abnormality of the repeater or the downlink abnormality or the uplink and downlink of the repeater. The road is abnormally caused.
其中,所述网关从多个第二中继器中选取目标中继器,包括:The gateway selects a target repeater from multiple second repeaters, including:
所述网关从所述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。The gateway selects, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater.
其中,上述网关通过查询上述设备链路表查询上述多个第二中继器与上述第一中继器的距离,从中选出与上述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。The gateway queries the distance between the plurality of second repeaters and the first repeater by querying the device link table, and selects a distance from the first repeater that is less than or equal to a preset distance. Relay, as the target repeater.
可选地,上述预设距离的取值范围为大于或等于50m并且小于或者等于150m。上述预设距离可为50m、80m、100m、120m、150m。优选地,上述预设距离为100m。Optionally, the preset distance ranges from 50 m or more and less than or equal to 150 m. The above preset distances may be 50m, 80m, 100m, 120m, 150m. Preferably, the preset distance is 100 m.
其中,所述网关从多个第二中继器中选取目标中继器,包括:The gateway selects a target repeater from multiple second repeaters, including:
所述网关从所述多个第二中继器中选出当前数据转发速率大于或等于预设数据转发速率的中继器,作为目标中继器。The gateway selects, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate as a target repeater.
其中,上述网关通过查询上述设备链路表查询上述多个第二中继器的数据 转发速率,从中选出上述数据转发速率大于或者等于预设数据转发速率的中继器,作为目标中继器。The gateway queries the data of the multiple second repeaters by querying the device link table. The forwarding rate, from which the above-mentioned repeater whose data forwarding rate is greater than or equal to the preset data forwarding rate is selected as the target repeater.
可选地,上述预设数据转发速率的取值范围可为大于0且小于或等于1024Mbps,例如可以等于32Mbps、64Mbps、128Mbps、256Mbps、512Mbps、1024Mbps或者其他值,优选地,上述预设数据转发速率为256Mbps。Optionally, the preset data forwarding rate may be greater than 0 and less than or equal to 1024 Mbps, for example, may be equal to 32 Mbps, 64 Mbps, 128 Mbps, 256 Mbps, 512 Mbps, 1024 Mbps, or other values. Preferably, the preset data forwarding is performed. The rate is 256Mbps.
其中,所述网关从多个第二中继器中选取目标中继器,包括:The gateway selects a target repeater from multiple second repeaters, including:
所述网关从所述多个第二中继器中选出当前缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。The gateway selects, as the target repeater, a repeater that has a remaining space of the current buffer area greater than or equal to a preset threshold from the plurality of second repeaters.
其中,上述网关通过查询上述设备链路表查询上述多个第二中继器的缓存区剩余空间大小,从中选出上述缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。The gateway queries the foregoing device link table to query the remaining space of the buffer area of the plurality of second repeaters, and selects a repeater whose remaining space of the buffer area is greater than or equal to a preset threshold, as a target. Relay.
可选地,上述预设阈值的取值范围可为大于0且小于或等于512Mb,例如可以等于32Mb、64Mb、128Mb、256Mb、512Mb或者其他值,优选地,上述预设阈值为256Mb。Optionally, the preset threshold may be greater than 0 and less than or equal to 512 Mb, for example, may be equal to 32 Mb, 64 Mb, 128 Mb, 256 Mb, 512 Mb, or other values. Preferably, the preset threshold is 256 Mb.
202、所述网关向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。202. The gateway sends a bridging instruction to the target repeater, where the bridging instruction is used to indicate that the target repeater is bridged with the first repeater.
上述目标中继器与上述第一中继器进行桥接后,还包括:After the foregoing target repeater is bridged with the first repeater, the method further includes:
其中,若上述目标中继器是根据上述网关从上述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器选取的,上述网关根据第一中继器所需转发数据的优先级按照预设数据转发规则通过上述目标中继器转发至上述网关。Wherein, if the target repeater is selected according to the gateway from the plurality of second repeaters and the distance from the first repeater is less than or equal to a preset distance, the gateway is configured according to the The priority of the first repeater to forward data is forwarded to the gateway by the target repeater according to a preset data forwarding rule.
针对上述预设数据转发规则,举例说明:For the above preset data forwarding rules, an example is as follows:
假设上述目标中继器有M个中继器,第一中继器上有N条待转发数据;上述N条待转发数据有不同的优先级。当M>N时,上述网关使上述N条带转发数据的优先级为I的数据通过上述目标中继器中的距离等级为I的中继器转发至上述网关。上述优先级为I的数据中的I值越小,优先级越高;上述距离等级为I的中继器的I值越小,上述中继器与第一中继器的距离越短。It is assumed that the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities. When M>N, the gateway forwards the data of the N-band forwarding data with priority I to the gateway by the repeater of the distance class I in the target repeater. The smaller the I value in the data of the priority I is, the higher the priority is; the smaller the I value of the repeater of the distance class I is, the shorter the distance between the repeater and the first repeater is.
当M<N时,N/M=J…K,上述网关将数据Ni*J+1、Ni*J+2……Ni*J+J通过目标中继器中的中继器Mi+1转发至网关;其中,上述数据Ni*J+1是优先级为i*J+1的数据,i*J+1值越小,对应数据的优先级越高;上述Mi+1为距离等级为i+1的中继器,上述i+1值越小,对应中继器与上述第一中继器的距离越短。上述K条待转发数据按照当M>N时的数据转发方法进行数据转发。When M<N, N/M=J...K, the above gateway passes the data N i*J+1 , N i*J+2 ... N i*J+J through the repeater M in the target repeater i+1 is forwarded to the gateway; wherein the above data N i*J+1 is data with priority i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; the above M i+ 1 is a repeater with a distance class i+1, and the smaller the i+1 value is, the shorter the distance between the corresponding repeater and the first repeater is. The above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
其中,若上述目标中继器是根据上述网关从所述多个第二中继器中选出当前数据转发速率大于或等于预设数据转发速率的中继器选取的,上述网关根据 第一中继器所需转发数据的优先级按照预设数据转发规则通过上述目标中继器转发至上述网关。Wherein, if the target repeater is selected according to the gateway from the plurality of second repeaters and the current data forwarding rate is greater than or equal to a preset data forwarding rate, the gateway is configured according to the The priority of the first repeater to forward data is forwarded to the gateway by the target repeater according to a preset data forwarding rule.
针对上述预设数据转发规则,举例说明:For the above preset data forwarding rules, an example is as follows:
假设上述目标中继器有M个中继器,第一中继器上有N条待转发数据;上述N条待转发数据有不同的优先级。当M>N时,上述网关使上述N条带转发数据的优先级为I的数据通过上述目标中继器中的数据转发速率等级为I的中继器转发至上述网关。上述优先级为I的数据中的I值越小,优先级越高;上述距离等级为I的中继器的I值越小,上述中继器的数据转发速率越快。It is assumed that the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities. When M>N, the gateway forwards the data of the N-band forwarding data with the priority I to the gateway through the repeater of the data forwarding rate class I in the target repeater. The smaller the I value in the data of the priority I is, the higher the priority is; the smaller the I value of the repeater with the distance class I is, the faster the data forwarding rate of the repeater is.
当M<N时,N/M=J…K,上述网关将数据Ni*J+1、Ni*J+2……Ni*J+J通过目标中继器中的中继器Mi+1转发至网关;其中,上述数据Ni*J+1是优先级为i*J+1的数据,i*J+1值越小,对应数据的优先级越高;上述Mi+1为距离等级为i+1的中继器,上述i+1值越小,对应中继器的数据转发速率越快。上述K条待转发数据按照当M>N时的数据转发方法进行数据转发。When M<N, N/M=J...K, the above gateway passes the data N i*J+1 , N i*J+2 ... N i*J+J through the repeater M in the target repeater i+1 is forwarded to the gateway; wherein the above data N i*J+1 is data with priority i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; the above M i+ 1 is a repeater with a distance level of i+1, and the smaller the above i+1 value, the faster the data forwarding rate of the corresponding repeater. The above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
其中,若上述目标中继器是根据上述网关从所述多个第二中继器中选出选出上述缓存区的剩余空间大于或者等于预设阈值的中继器选取的,上述网关根据第一中继器所需转发数据的优先级按照预设数据转发规则通过上述目标中继器转发至上述网关。If the target repeater is selected according to the gateway from the plurality of second repeaters and the remaining space of the buffer area is greater than or equal to a preset threshold, the gateway is configured according to the The priority of the data to be forwarded by a repeater is forwarded to the gateway through the target repeater according to a preset data forwarding rule.
针对上述预设数据转发规则,举例说明:For the above preset data forwarding rules, an example is as follows:
假设上述目标中继器有M个中继器,第一中继器上有N条待转发数据;上述N条待转发数据有不同的优先级。当M>N时,上述网关使上述N条带转发数据的优先级为I的数据通过上述目标中继器中的数据转发速率等级为I的中继器转发至上述网关。上述优先级为I的数据中的I值越小,优先级越高;上述距离等级为I的中继器的I值越小,上述中继器的缓存区剩余空间越大。It is assumed that the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities. When M>N, the gateway forwards the data of the N-band forwarding data with the priority I to the gateway through the repeater of the data forwarding rate class I in the target repeater. The smaller the I value in the data of the priority I is, the higher the priority is; the smaller the I value of the repeater with the distance class I is, the larger the remaining space of the buffer of the repeater is.
当M<N时,N/M=J…K,上述网关将上述待转发数据Ni*J+1、Ni*J+2……Ni*J+J通过目标中继器中的中继器Mi+1转发至网关;其中,上述数据Ni*J+1是优先级为i*J+1的数据,i*J+1值越小,对应数据的优先级越高;上述Mi+1为距离等级为i+1的中继器,上述i+1值越小,对应中继器的缓存区剩余空间越大。上述K条待转发数据按照当M>N时的数据转发方法进行数据转发。When M<N, N/M=J...K, the above gateway passes the above-mentioned data to be forwarded N i*J+1 , N i*J+2 ... N i*J+J through the target repeater. The relay M i+1 is forwarded to the gateway; wherein the data N i*J+1 is data with a priority of i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; M i+1 is a repeater with a distance level of i+1, and the smaller the above i+1 value is, the larger the remaining space of the buffer corresponding to the repeater is. The above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
其中,所述网关向所述目标中继器发送桥接指令之后,所述方法还包括:After the gateway sends a bridging instruction to the target relay, the method further includes:
所述网关向所述目标中继器发送数据转发指令,所述数据转发指令携带所述第一中继器承载的物联网终端i的交互数据,所述数据转发指令用于指示所述目标中继器将所述物联网终端i的交互数据转发至所述第一中继器。Transmitting, by the gateway, a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first relay, where the data forwarding instruction is used to indicate the target The relay forwards the interaction data of the Internet of Things terminal i to the first repeater.
上述物联网终端i是上述第一中继器所承载物联网终端中的任意一个。The Internet of Things terminal i is any one of the Internet of Things terminals carried by the first repeater.
在此需要说明的是,当上述网关与上述第一中继器之间的链路恢复正常 时,上述第一中继器与上述目标中继器之间的桥接链路断开。It should be noted here that when the link between the above gateway and the first repeater returns to normal At the time, the bridge link between the first repeater and the target repeater is disconnected.
可选地,所述目标中继器的数量为N,所述N为大于1的整数,所述网关向所述目标中继器发送桥接指令,包括:Optionally, the number of the target repeaters is N, and the N is an integer greater than 1. The gateway sends a bridging instruction to the target relay, including:
所述网关确定所述第一中继器所承载的物联网终端的数量W,所述W为大于1的整数;Determining, by the gateway, the number W of the Internet of Things terminals carried by the first repeater, where W is an integer greater than one;
若所述W大于预设阈值,W/预设阈值=K,且所述K小于所述N时,所述网关向所述N个目标中继器中的K个目标中继器发送桥接指令,所述K为正整数;If the W is greater than a preset threshold, W/preset threshold=K, and the K is smaller than the N, the gateway sends a bridging instruction to K target repeaters in the N target repeaters. , the K is a positive integer;
若所述W大于预设阈值,W/预设阈值=K,且所述K大于或等所述N时,所述网关向所述N个目标中继器发送桥接指令,所述K为正整数;If the W is greater than a preset threshold, W/preset threshold=K, and the K is greater than or equal to the N, the gateway sends a bridging instruction to the N target repeaters, where K is positive Integer
若所述W大于预设阈值,W/预设阈值=K……k,且所述K+1小于所述N时,所述网关向所述N个目标中继器中的K+1个目标中继器发送桥接指令,所述K为商,所述k为余数;If the W is greater than a preset threshold, W/preset threshold=K...k, and the K+1 is less than the N, the gateway sends K+1 to the N target repeaters. The target repeater sends a bridge command, the K is a quotient, and the k is a remainder;
若所述W大于预设阈值,W/预设阈值=K,且所述K+1大于或等于所述N时,所述网关向所述N个目标中继器发送桥接指令,所述K为商,所述k为余数;If the W is greater than a preset threshold, W/preset threshold=K, and the K+1 is greater than or equal to the N, the gateway sends a bridging instruction to the N target repeaters, where the K For quotient, the k is the remainder;
若所述W小于预设阈值,所述网关向所述N个目标中继器其中一个目标中继器发送桥接指令。If the W is less than a preset threshold, the gateway sends a bridging instruction to one of the N target repeaters.
其中,预设阈值例如可以是30、40、45、60、48、100或是其他值。The preset threshold may be, for example, 30, 40, 45, 60, 48, 100 or other values.
需要说明的是,网关向所述N个目标中继器其中一个目标中继器发送桥接指令,这里的其中一个目标中继器可以是承载物联网终端数量最少的中继器、也可以是距离第一中继器最近的中继器、也可以是转发数据能力最强的、也可以是任意一个等等,本发明不作限定。所述网关向所述N个目标中继器中的K个或K+1个目标中继器发送桥接指令,这里的K个或K+1个目标中继器可以是这N个目标中继器中的承载物联网终端数量最少的K个或K+1个中继器,也可以是N个目标中继器中的转发数据能力最强的K个或K+1个中继器,也可以是距离第一中继器最近的中继器的K个或K+1个中继器,也可以是转发数据能力最强的K个或K+1个中继器,也可以是N个目标中继器中任意K个或K+1个中继器等等,本发明不作限定。It should be noted that the gateway sends a bridging instruction to one of the N target repeaters, where one of the target repeaters may be a repeater carrying the least number of IoT terminals, or may be a distance. The most recent repeater of the first repeater may be the most capable of forwarding data, or may be any one, and the like, which is not limited by the present invention. The gateway sends a bridging instruction to K or K+1 target repeaters in the N target repeaters, where K or K+1 target repeaters may be the N target relays The K or K+1 repeaters carrying the fewest number of IoT terminals in the device may also be the K or K+1 repeaters with the strongest forwarding data among the N target repeaters. It may be K or K+1 repeaters of the repeater closest to the first repeater, or K or K+1 repeaters with the strongest data forwarding capability, or N Any K or K+1 repeaters in the target repeater, etc., are not limited in the present invention.
本发明实施例中,若网关在预设时段内未接收到第一中继器的反馈消息,则所述网关从多个第二中继器中选取目标中继器;所述多个第二中继器为所述第一中继器的备选中继器;所述网关向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。可见,在网关与第一中继器之间的通信链路出现异常时,网关通过向目标中继器发送桥接指令 用于指示目标中继器与第一中继器进行桥接,以保证第一中继器上所承载的物联网终端与网关之间正常进行数据交互,进而解决了在数据交换链路异常时,保持物联网内不同设备之间的正常数据交换的问题。In the embodiment of the present invention, if the gateway does not receive the feedback message of the first repeater within the preset time period, the gateway selects a target repeater from the plurality of second repeaters; a repeater is an alternate repeater of the first repeater; the gateway sends a bridge command to the target repeater, the bridge command is used to indicate the target repeater and the first The repeater is bridged. It can be seen that when an abnormality occurs in the communication link between the gateway and the first repeater, the gateway sends a bridge command to the target repeater. It is used to indicate that the target repeater is bridged with the first repeater to ensure normal data interaction between the IoT terminal and the gateway carried on the first repeater, thereby solving the problem that when the data exchange link is abnormal, Maintain the problem of normal data exchange between different devices within the IoT.
本发明实施例还提供了另一更为详细的方法流程,如图3所示,包括:The embodiment of the present invention further provides another more detailed method flow, as shown in FIG. 3, including:
301、网关向第一中继器发送交互信息。301. The gateway sends the interaction information to the first repeater.
其中,上述交互信息为上述网关与上述第一中继器所承载物联网终端之前的交互信息。The interaction information is interaction information between the gateway and the Internet of Things terminal carried by the first repeater.
302、若网关在预设时段内未接收到第一中继器针对所述交互信息反馈的反馈消息,则所述网关从多个第二中继器中选取目标中继器;所述多个第二中继器为所述第一中继器的备选中继器。302. If the gateway does not receive the feedback message that the first repeater feeds back to the interaction information within a preset time period, the gateway selects a target repeater from multiple second repeaters; The second repeater is an alternate repeater of the first repeater.
其中,上述备选中继器为当第一中继器与上述网关之间的链路异常时,上述网关从上述备选中继器中选出目标中继器。Wherein, the above alternative repeater is that when the link between the first repeater and the gateway is abnormal, the gateway selects a target repeater from the candidate repeaters.
其中,上述反馈消息为上述网关向上述中继器发送数据信息后,上述中继器向上述网关发送表示接收到该信息的反馈消息。The feedback message is that after the gateway sends the data information to the repeater, the repeater sends a feedback message indicating that the information is received to the gateway.
其中,上述网关与多个中继器建立连接链路,同时上述网关生成并存储设备链路表,该设备链路表包含上述网关的MAC地址、上述多个中继器的MAC地址、上述多个中继器的数据转发速率、上述多个中继器的缓存区的剩余空间大小和位置信息。当上述若网关在预设时段内未接收到第一中继器的反馈消息,则所述网关从多个第二中继器中选取目标中继器,上述多个第二中继器为上述多个中继器中除了上述第一中继器之外的中继器。The gateway establishes a connection link with a plurality of repeaters, and the gateway generates and stores a device link table, where the device link table includes a MAC address of the gateway, a MAC address of the plurality of repeaters, and the foregoing The data forwarding rate of the repeaters, the remaining space size of the buffer areas of the plurality of repeaters, and the location information. When the gateway does not receive the feedback message of the first repeater within the preset time period, the gateway selects a target repeater from the plurality of second repeaters, and the plurality of second repeaters are the foregoing A repeater other than the first repeater described above among the plurality of repeaters.
可选地,上述预设时段的取值范围为大于或等于5s且小于或等于15s,例如可以等于5s、8s、10s、12s、15s或者其他值。优选地,上述预设时段为8s。Optionally, the preset period of time ranges from greater than or equal to 5 s and less than or equal to 15 s, for example, may be equal to 5 s, 8 s, 10 s, 12 s, 15 s, or other values. Preferably, the preset period of time is 8 s.
可选地,上述网关在第一时段内未接收的第一中继的第一反馈消息,可以是上述中继器上行链路异常或者上述下行链路异常或者上述中继器的上、下行链路均异常造成的。Optionally, the first feedback message of the first relay that is not received by the gateway in the first time period may be the uplink abnormality of the repeater or the downlink abnormality or the uplink and downlink of the repeater. The road is abnormally caused.
其中,所述网关从多个第二中继器中选取目标中继器,包括:The gateway selects a target repeater from multiple second repeaters, including:
所述网关从所述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。The gateway selects, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater.
其中,上述网关通过查询上述设备链路表查询上述多个第二中继器与上述第一中继器的距离,从中选出与上述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。The gateway queries the distance between the plurality of second repeaters and the first repeater by querying the device link table, and selects a distance from the first repeater that is less than or equal to a preset distance. Relay, as the target repeater.
可选地,上述预设距离的取值范围为大于或等于50m并且小于或者等于150m。上述预设距离可为50m、80m、100m、120m、150m。优选地,上述预设距离为100m。 Optionally, the preset distance ranges from 50 m or more and less than or equal to 150 m. The above preset distances may be 50m, 80m, 100m, 120m, 150m. Preferably, the preset distance is 100 m.
其中,所述网关从多个第二中继器中选取目标中继器,包括:The gateway selects a target repeater from multiple second repeaters, including:
所述网关从所述多个第二中继器中选出当前数据转发速率大于或等于预设数据转发速率的中继器,作为目标中继器。The gateway selects, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate as a target repeater.
其中,上述网关通过查询上述设备链路表查询上述多个第二中继器的数据转发速率,从中选出上述数据转发速率大于或者等于预设数据转发速率的中继器,作为目标中继器。The gateway queries the data link forwarding rate of the multiple second repeaters by querying the device link table, and selects the repeater whose data forwarding rate is greater than or equal to the preset data forwarding rate as the target repeater. .
可选地,上述预设数据转发速率的取值范围可为大于0且小于或等于1024Mbps,例如可以等于32Mbps、64Mbps、128Mbps、256Mbps、512Mbps、1024Mbps或者其他值,优选地,上述预设数据转发速率为256Mbps。Optionally, the preset data forwarding rate may be greater than 0 and less than or equal to 1024 Mbps, for example, may be equal to 32 Mbps, 64 Mbps, 128 Mbps, 256 Mbps, 512 Mbps, 1024 Mbps, or other values. Preferably, the preset data forwarding is performed. The rate is 256Mbps.
其中,所述网关从多个第二中继器中选取目标中继器,包括:The gateway selects a target repeater from multiple second repeaters, including:
所述网关从所述多个第二中继器中选出当前缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。The gateway selects, as the target repeater, a repeater that has a remaining space of the current buffer area greater than or equal to a preset threshold from the plurality of second repeaters.
其中,上述网关通过查询上述设备链路表查询上述多个第二中继器的数据转发速率,从中选出上述缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。The gateway queries the data link forwarding rate of the multiple second repeaters by querying the device link table, and selects a repeater whose remaining space of the buffer area is greater than or equal to a preset threshold, as a target repeater. .
可选地,上述预设阈值的取值范围可为大于0且小于或等于512Mb,例如可以等于32Mb、64Mb、128Mb、256Mb、512Mb或者其他值,优选地,上述预设阈值为256Mb。Optionally, the preset threshold may be greater than 0 and less than or equal to 512 Mb, for example, may be equal to 32 Mb, 64 Mb, 128 Mb, 256 Mb, 512 Mb, or other values. Preferably, the preset threshold is 256 Mb.
303、所述网关从设备链路表中查询获取第一中继器的MAC地址和目标中继器的MAC地址。303. The gateway queries, in the device link table, the MAC address of the first repeater and the MAC address of the target repeater.
304、所述网关向所述目标中继器发送携带所述第一中继器的MAC地址的桥接指令。304. The gateway sends, to the target relay, a bridging instruction that carries a MAC address of the first repeater.
上述网关是通过获得的上述目标中继器的MAC地址向上述目标中继器发送桥接指令。上述桥接指令用于指示上述目标中继器与上述第一中继器进行桥接。The gateway sends a bridge command to the target repeater through the obtained MAC address of the target repeater. The bridging command is used to indicate that the target repeater is bridged with the first repeater.
305、所述目标中继器根据上述桥接指令中携带的上述第一中继器的MAC地址向上述第一中继器发送桥接请求。305. The target repeater sends a bridging request to the first repeater according to the MAC address of the first repeater carried in the bridging command.
306、所述第一中继器接收上述桥接请求,并与目标中继器进行桥接。306. The first repeater receives the bridging request and bridges with a target repeater.
上述目标中继器与上述第一中继器进行桥接后,还包括:After the foregoing target repeater is bridged with the first repeater, the method further includes:
其中,若上述目标中继器是根据上述网关从上述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器选取的,上述网关根据第一中继器所需转发数据的优先级按照预设数据转发规则通过上述目标中继器转发至上述网关。Wherein, if the target repeater is selected according to the gateway from the plurality of second repeaters and the distance from the first repeater is less than or equal to a preset distance, the gateway is configured according to the The priority of the first repeater to forward data is forwarded to the gateway by the target repeater according to a preset data forwarding rule.
针对上述预设数据转发规则,举例说明: For the above preset data forwarding rules, an example is as follows:
假设上述目标中继器有M个中继器,第一中继器上有N条待转发数据;上述N条待转发数据有不同的优先级。当M>N时,上述网关使上述N条带转发数据的优先级为I的数据通过上述目标中继器中的距离等级为I的中继器转发至上述网关。上述优先级为I的数据中的I值越小,优先级越高;上述距离等级为I的中继器的I值越小,上述中继器与第一中继器的距离越短。It is assumed that the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities. When M>N, the gateway forwards the data of the N-band forwarding data with priority I to the gateway by the repeater of the distance class I in the target repeater. The smaller the I value in the data of the priority I is, the higher the priority is; the smaller the I value of the repeater of the distance class I is, the shorter the distance between the repeater and the first repeater is.
当M<N时,N/M=J…K,上述网关将数据Ni*J+1、Ni*J+2……Ni*J+J通过目标中继器中的中继器Mi+1转发至网关;其中,上述数据Ni*J+1是优先级为i*J+1的数据,i*J+1值越小,对应数据的优先级越高;上述Mi+1为距离等级为i+1的中继器,上述i+1值越小,对应中继器与上述第一中继器的距离越短。上述K条待转发数据按照当M>N时的数据转发方法进行数据转发。When M<N, N/M=J...K, the above gateway passes the data N i*J+1 , N i*J+2 ... N i*J+J through the repeater M in the target repeater i+1 is forwarded to the gateway; wherein the above data N i*J+1 is data with priority i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; the above M i+ 1 is a repeater with a distance class i+1, and the smaller the i+1 value is, the shorter the distance between the corresponding repeater and the first repeater is. The above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
其中,若上述目标中继器是根据上述网关从所述多个第二中继器中选出当前数据转发速率大于或等于预设数据转发速率的中继器选取的,上述网关根据第一中继器所需转发数据的优先级按照预设数据转发规则通过上述目标中继器转发至上述网关。Wherein, if the target repeater is selected according to the gateway from the plurality of second repeaters, the current data forwarding rate is greater than or equal to a preset data forwarding rate, and the gateway is according to the first The priority of the data to be forwarded by the relay is forwarded to the gateway by the target repeater according to a preset data forwarding rule.
针对上述预设数据转发规则,举例说明:For the above preset data forwarding rules, an example is as follows:
假设上述目标中继器有M个中继器,第一中继器上有N条待转发数据;上述N条待转发数据有不同的优先级。当M>N时,上述网关使上述N条带转发数据的优先级为I的数据通过上述目标中继器中的数据转发速率等级为I的中继器转发至上述网关。上述优先级为I的数据中的I值越小,优先级越高;上述距离等级为I的中继器的I值越小,上述中继器的数据转发速率越快。It is assumed that the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities. When M>N, the gateway forwards the data of the N-band forwarding data with the priority I to the gateway through the repeater of the data forwarding rate class I in the target repeater. The smaller the I value in the data of the priority I is, the higher the priority is; the smaller the I value of the repeater with the distance class I is, the faster the data forwarding rate of the repeater is.
当M<N时,N/M=J…K,上述网关将数据Ni*J+1、Ni*J+2……Ni*J+J通过目标中继器中的中继器Mi+1转发至网关;其中,上述数据Ni*J+1是优先级为i*J+1的数据,i*J+1值越小,对应数据的优先级越高;上述Mi+1为距离等级为i+1的中继器,上述i+1值越小,对应中继器的数据转发速率越快。上述K条待转发数据按照当M>N时的数据转发方法进行数据转发。When M<N, N/M=J...K, the above gateway passes the data N i*J+1 , N i*J+2 ... N i*J+J through the repeater M in the target repeater i+1 is forwarded to the gateway; wherein the above data N i*J+1 is data with priority i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; the above M i+ 1 is a repeater with a distance level of i+1, and the smaller the above i+1 value, the faster the data forwarding rate of the corresponding repeater. The above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
其中,若上述目标中继器是根据上述网关从所述多个第二中继器中选出选出上述缓存区的剩余空间大于或者等于预设阈值的中继器选取的,上述网关根据第一中继器所需转发数据的优先级按照预设数据转发规则通过上述目标中继器转发至上述网关。If the target repeater is selected according to the gateway from the plurality of second repeaters and the remaining space of the buffer area is greater than or equal to a preset threshold, the gateway is configured according to the The priority of the data to be forwarded by a repeater is forwarded to the gateway through the target repeater according to a preset data forwarding rule.
针对上述预设数据转发规则,举例说明:For the above preset data forwarding rules, an example is as follows:
假设上述目标中继器有M个中继器,第一中继器上有N条待转发数据;上述N条待转发数据有不同的优先级。当M>N时,上述网关使上述N条带转发数据的优先级为I的数据通过上述目标中继器中的数据转发速率等级为I的中继器转发至上述网关。上述优先级为I的数据中的I值越小,优先级越高; 上述距离等级为I的中继器的I值越小,上述中继器的缓存区剩余空间越大。It is assumed that the target repeater has M repeaters, and the first repeater has N pieces of data to be forwarded; the N pieces of data to be forwarded have different priorities. When M>N, the gateway forwards the data of the N-band forwarding data with the priority I to the gateway through the repeater of the data forwarding rate class I in the target repeater. The smaller the I value in the data with the priority I above, the higher the priority; The smaller the I value of the repeater of the above distance class I, the larger the remaining space of the buffer of the above repeater.
当M<N时,N/M=J…K,上述网关将上述待转发数据Ni*J+1、Ni*J+2……Ni*J+J通过目标中继器中的中继器Mi+1转发至网关;其中,上述数据Ni*J+1是优先级为i*J+1的数据,i*J+1值越小,对应数据的优先级越高;上述Mi+1为距离等级为i+1的中继器,上述i+1值越小,对应中继器的缓存区剩余空间越大。上述K条待转发数据按照当M>N时的数据转发方法进行数据转发。When M<N, N/M=J...K, the above gateway passes the above-mentioned data to be forwarded N i*J+1 , N i*J+2 ... N i*J+J through the target repeater. The relay M i+1 is forwarded to the gateway; wherein the data N i*J+1 is data with a priority of i*J+1, and the smaller the i*J+1 value, the higher the priority of the corresponding data; M i+1 is a repeater with a distance level of i+1, and the smaller the above i+1 value is, the larger the remaining space of the buffer corresponding to the repeater is. The above K pieces of data to be forwarded are forwarded according to the data forwarding method when M>N.
其中,所述网关向所述目标中继器发送桥接指令之后,所述方法还包括:After the gateway sends a bridging instruction to the target relay, the method further includes:
所述网关向所述目标中继器发送数据转发指令,所述数据转发指令携带所述第一中继器承载的物联网终端i的交互数据,所述数据转发指令用于指示所述目标中继器将所述物联网终端i的交互数据转发至所述第一中继器。Transmitting, by the gateway, a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first relay, where the data forwarding instruction is used to indicate the target The relay forwards the interaction data of the Internet of Things terminal i to the first repeater.
上述物联网终端i是上述第一中继器所承载物联网终端中的任意一个。The Internet of Things terminal i is any one of the Internet of Things terminals carried by the first repeater.
在此需要说明的是,当上述网关与上述第一中继器之间的链路恢复正常时,上述第一中继器与上述目标中继器之间的桥接链路断开。It should be noted that when the link between the gateway and the first repeater returns to normal, the bridge link between the first repeater and the target repeater is disconnected.
需要说明的是,图3所示的方法的各个步骤的具体实现过程可参见上述方法所述的具体实现过程,在此不再叙述。It should be noted that the specific implementation process of each step of the method shown in FIG. 3 can be referred to the specific implementation process described in the foregoing method, and is not described herein.
参见图4,图4是本发明实施例提供的一种物联网终端迁移方法的结果示意图。如图a所示,第一中继器和目标中继器,上述目标中继器包含中继器1和中继器2,并且上述第一中继器与网关之间链路连接正常。如图b所示,上述第一中继器与网关之间的链路连接异常,上述网关按照上述方法的步骤302获取中继器1和中继器2作为目标中继器后,按照上述方法的步骤304、步骤305和步骤306指示上述目标中继器中的中继器1与上述第一中继器进行桥接,使得上述中继器所承载的物联网终端保持正常的数据交互。Referring to FIG. 4, FIG. 4 is a schematic diagram showing the result of a method for migration of an Internet of Things terminal according to an embodiment of the present invention. As shown in FIG. a, the first repeater and the target repeater, the target repeater includes the repeater 1 and the repeater 2, and the link connection between the first repeater and the gateway is normal. As shown in FIG. b, the link connection between the first repeater and the gateway is abnormal, and the gateway obtains the repeater 1 and the repeater 2 as the target repeater according to the step 302 of the foregoing method, according to the above method. Step 304, step 305 and step 306 indicate that the repeater 1 in the target repeater is bridged with the first repeater, so that the Internet of Things terminal carried by the repeater maintains normal data interaction.
本发明实施例还提供了一种物联网终端设备500,如图5所示,包括:An embodiment of the present invention further provides an Internet of Things terminal device 500, as shown in FIG. 5, including:
选取模块501,用于若网关在预设时段内未接收到第一中继器的反馈消息,则所述选取模块从多个第二中继器中选取目标中继器;所述多个第二中继器为所述第一中继器的备选中继器;The selecting module 501 is configured to: if the gateway does not receive the feedback message of the first repeater within the preset time period, the selecting module selects a target repeater from the plurality of second repeaters; The second repeater is an alternate repeater of the first repeater;
桥接模块502,用于向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。The bridging module 502 is configured to send a bridging instruction to the target repeater, where the bridging instruction is used to indicate that the target repeater is bridged with the first repeater.
可选地,所述选取模块501包括:Optionally, the selecting module 501 includes:
第一选取单元5011,用于从所述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。The first selecting unit 5011 is configured to select, as the target repeater, a repeater that is less than or equal to a preset distance from the first repeater from the plurality of second repeaters.
可选地,所述选取模块501包括:Optionally, the selecting module 501 includes:
第二选取单元5012,用于从所述多个第二中继器中选出当前数据转发速 率大于或等于预设数据转发速率的中继器,作为目标中继器。a second selecting unit 5012, configured to select a current data forwarding speed from the plurality of second repeaters A repeater with a rate greater than or equal to the preset data forwarding rate as the target repeater.
可选地,所述选取模块501包括:Optionally, the selecting module 501 includes:
第三选取单元5013,用于从所述多个第二中继器中选出当前缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。The third selecting unit 5013 is configured to select, as the target repeater, a repeater that has a remaining space of the current buffer area greater than or equal to a preset threshold from the plurality of second repeaters.
可选地,桥接模块502向所述目标中继器发送桥接指令之后,所述网关还包括:Optionally, after the bridging module 502 sends the bridging instruction to the target relay, the gateway further includes:
发送模块503,用于向所述目标中继器发送数据转发指令,所述数据转发指令携带所述第一中继器承载的物联网终端i的交互数据,所述数据转发指令用于指示所述目标中继器将所述物联网终端i的交互数据转发至所述第一中继器。The sending module 503 is configured to send a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first repeater, where the data forwarding instruction is used to indicate The target repeater forwards the interaction data of the Internet of Things terminal i to the first repeater.
需要说明的是,上述各模块(选取模块501和桥接模块502)用于执行上述方法的相关步骤。比如,选取模块501用于执行以上步骤201的相关步骤。桥接模块502用于执行以上步骤202的相关步骤。此外由于上述各模块用于执行上述方法的相关步骤,因此上述方法的各个步骤的具体实现过程即是上述各模块执行的具体实现过程,在此不再叙述。It should be noted that each of the above modules (the selection module 501 and the bridge module 502) is used to perform the relevant steps of the above method. For example, the selection module 501 is configured to perform the relevant steps of step 201 above. The bridging module 502 is configured to perform the relevant steps of step 202 above. In addition, since each module is used to perform the related steps of the foregoing method, the specific implementation process of each step of the foregoing method is a specific implementation process performed by each module, and is not described herein.
在本实施例中,网关500是以模块的形式来呈现。这里的“模块”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。此外,以上选取模块501、桥接模块502可通过图7所示的网关的处理器701来实现,发送模块503可通过图7所示的网关的通信接口处理器703来实现。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 executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality. . In addition, the above selection module 501 and the bridge module 502 can be implemented by the processor 701 of the gateway shown in FIG. 7, and the sending module 503 can be implemented by the communication interface processor 703 of the gateway shown in FIG.
如图7所示,网关700可以以图7中的结构来实现,该网关700包括至少一个处理器701,至少一个存储器702以及至少一个通信接口703。所述处理器701、所述存储器702和所述通信接口703通过所述通信总线连接并完成相互间的通信。As shown in FIG. 7, gateway 700 can be implemented in the structure of FIG. 7, which includes 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 and complete communication with each other.
处理器701可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。The processor 701 can 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 the above program.
通信接口703,用于与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。The communication interface 703 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
存储器702可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以 是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The memory 702 can be 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 that can store information and instructions. Dynamic storage device can also Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs) , a disc, a digital versatile disc, a Blu-ray disc, etc.), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and accessible by a computer, But it is not limited to this. The memory can exist independently and be connected to the processor via a bus. The memory can also be integrated with the processor.
其中,所述存储器702用于存储执行以上方案的应用程序代码,并由处理器701来控制执行。所述处理器701用于执行所述存储器702中存储的应用程序代码。The memory 702 is configured to store application code that executes the above solution, and is controlled by the processor 701 for execution. The processor 701 is configured to execute application code stored in the memory 702.
存储器702存储的代码可执行以上提供的物联网终端设备执行的上述应用的升级方法,比如若网关在预设时段内未接收到第一中继器的反馈消息,则所述网关从多个第二中继器中选取目标中继器;所述多个第二中继器为所述第一中继器的备选中继器;所述网关向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。The code stored in the memory 702 may perform the upgrade method of the foregoing application performed by the Internet of Things terminal device provided above, for example, if the gateway does not receive the feedback message of the first repeater within a preset time period, the gateway is from multiple Selecting a target repeater in the second repeater; the plurality of second repeaters are alternate repeaters of the first repeater; the gateway sends a bridge command to the target repeater, The bridging command is used to instruct the target repeater to bridge with the first repeater.
请参见图8,图8为本发明实施例提供的一种物联网通信***结构示意图,该物联网通信***包括网关801和与网关801连接的第一中继器802和第二中继器803,所述第二中继器包括目标中继器8031,其中: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. The Internet of Things communication system includes a gateway 801 and a first repeater 802 and a second repeater 803 connected to the gateway 801. The second repeater includes a target repeater 8031, wherein:
第一中继器802,用于向网关801发送交互信息;The first repeater 802 is configured to send the interaction information to the gateway 801.
网关801,用于若在预设时段内未接收到第一中继器801针对所述交互信息而反馈的反馈消息,则从多个第二中继器803中选取目标中继器8031,多个第二中继器803为第一中继器802的备选中继器;The gateway 801 is configured to select a target repeater 8031 from the plurality of second repeaters 803 if the feedback message fed back by the first repeater 801 for the interaction information is not received within a preset time period. The second repeater 803 is an alternate repeater of the first repeater 802;
网关801,还用于向目标中继器8031发送桥接指令,所述桥接指令用于指示目标中继器8031与第一中继器802进行桥接。The gateway 801 is further configured to send a bridging instruction to the target relay 8031, where the bridging instruction is used to indicate that the target repeater 8031 is bridged with the first repeater 802.
可选地,网关801从多个第二中继器803中选取目标中继器8031的具体实施方式有:从所述多个第二中继器803中选出与所述第一中继器802的距离小于或者等于预设距离的中继器,作为目标中继器8031。Optionally, the specific embodiment of the gateway 801 selecting the target repeater 8031 from the plurality of second repeaters 803 is: selecting the first repeater from the plurality of second repeaters 803 The repeater of 802 is less than or equal to the preset distance as the target repeater 8031.
可选地,网关801从多个第二中继器803中选取目标中继器8031的具体实施方式有:从所述多个第二中继器803中选出当前数据转发速率大于或等于预设数据转发速率的中继器,作为目标中继器8031。Optionally, the specific embodiment of the gateway 801 selecting the target repeater 8031 from the plurality of second repeaters 803 is: selecting, from the plurality of second repeaters 803, that the current data forwarding rate is greater than or equal to the pre-predetermined A repeater of the data transfer rate is set as the target repeater 8031.
可选地,网关801从多个第二中继器803中选取目标中继器8031的具体实施方式有:从所述多个第二中继器803中选出当前缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器8031。 Optionally, the specific embodiment of the gateway 801 selecting the target repeater 8031 from the plurality of second repeaters 803 is: selecting, from the plurality of second repeaters 803, that the remaining space of the current buffer area is greater than or A repeater equal to a preset threshold is used as the target repeater 8031.
可选地,网关801向所述目标中继器发送桥接指令之后,Optionally, after the gateway 801 sends a bridging instruction to the target repeater,
网关801,还用于向目标中继器8031发送数据转发指令,所述数据转发指令携带所述第一中继器承载的物联网终端i的交互数据,所述数据转发指令用于指示所述目标中继器8031将所述物联网终端i的交互数据转发至所述第一中继器802;The gateway 801 is further configured to send a data forwarding instruction to the target relay 8031, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first relay, where the data forwarding instruction is used to indicate the The target repeater 8031 forwards the interaction data of the Internet of Things terminal i to the first repeater 802;
目标中继器8031,用于接收所述网关801发送的所述数据转发指令,以及将所述第一中继器802承载的物联网终端i的交互数据转发至所述第一中继器802。The target repeater 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. .
需要说明的是,图8所示的物联网通信***中各个设备执行的步骤的具体实现过程可参见上述方法所述的具体实现过程,在此不再叙述。It should be noted that the specific implementation process of the steps performed by the devices in the Internet of Things communication system shown in FIG. 8 can be referred to the specific implementation process described in the foregoing method, and is not described herein.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括网关。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments. 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, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Part or all of the steps of either method. The computer program product can be a software installation package, the computer including a gateway.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or It can also be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本发明的限制。 The embodiments of the present invention have been described in detail above, and the principles and implementations of the present invention are described in detail herein. The description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; A person of ordinary skill in the art, in light of the above, the present invention is not limited by the scope of the present invention.

Claims (10)

  1. 一种中继器桥接方法,适用用于物联网***中,所述物联网***包括网关和与所述网关连接的第一中继器和多个第二中继器,其特征在于,包括:A repeater bridging method is applicable to an IoT system, where the IoT system includes a gateway and a first repeater and a plurality of second repeaters connected to the gateway, and the method 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 The repeater is an alternate repeater of the first repeater;
    所述网关向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。The gateway sends a bridging instruction to the target repeater, the bridging instruction is used to instruct the target repeater to bridge with the first repeater.
  2. 根据权利要求1所述的方法,其特征在于,所述网关从所述多个第二中继器中选取目标中继器,包括:The method according to claim 1, wherein the gateway selects a target repeater from the plurality of second repeaters, including:
    所述网关从所述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。The gateway selects, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater.
  3. 根据权利要求1所述的方法,其特征在于,所述网关从所述多个第二中继器中选取目标中继器,包括:The method according to claim 1, wherein the gateway selects a target repeater from the plurality of second repeaters, including:
    所述网关从所述多个第二中继器中选出当前数据转发速率大于或等于预设数据转发速率的中继器,作为目标中继器。The gateway selects, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate as a target repeater.
  4. 根据权利要求1所述的方法,其特征在于,所述网关从所述多个第二中继器中选取目标中继器,包括:The method according to claim 1, wherein the gateway selects a target repeater from the plurality of second repeaters, including:
    所述网关从所述多个第二中继器中选出当前缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。The gateway selects, as the target repeater, a repeater that has a remaining space of the current buffer area greater than or equal to a preset threshold from the plurality of second repeaters.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述网关向所述目标中继器发送桥接指令之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein after the gateway sends a bridging instruction to the target relay, the method further includes:
    所述网关向所述目标中继器发送数据转发指令,所述数据转发指令携带所述第一中继器承载的物联网终端i的交互数据,所述数据转发指令用于指示所述目标中继器将所述物联网终端i的交互数据转发至所述第一中继器。Transmitting, by the gateway, a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first relay, where the data forwarding instruction is used to indicate the target The relay forwards the interaction data of the Internet of Things terminal i to the first repeater.
  6. 一种网关,其特征在于,适用用于物联网***中,所述物联网***包括网关和与所述网关连接的第一中继器和多个第二中继器,包括:A gateway, which is suitable for use in an Internet of Things system, the Internet of Things system comprising a gateway and a first repeater and a plurality of second repeaters connected to the gateway, including:
    选取模块,用于若网关在预设时段内未接收到第一中继器的反馈消息,则 所述选取模块从所述多个第二中继器中选取目标中继器;所述多个第二中继器为所述第一中继器的备选中继器;Selecting a module, if the gateway does not receive the feedback message of the first repeater within a preset time period, The selecting module selects a target repeater from the plurality of second repeaters; the plurality of second repeaters are candidate repeaters of the first repeater;
    桥接模块,用于向所述目标中继器发送桥接指令,所述桥接指令用于指示所述目标中继器与所述第一中继器进行桥接。And a bridging module, configured to send a bridging instruction to the target repeater, where the bridging instruction is used to indicate that the target repeater is bridged with the first repeater.
  7. 根据权利要求6所述的网关,其特征在于,所述选取模块包括:The gateway according to claim 6, wherein the selection module comprises:
    第一选取单元,用于从所述多个第二中继器中选出与所述第一中继器的距离小于或者等于预设距离的中继器,作为目标中继器。And a first selecting unit, configured to select, from the plurality of second repeaters, a repeater that is less than or equal to a preset distance from the first repeater as a target repeater.
  8. 根据权利要求6所述的网关,其特征在于,所述选取模块包括:The gateway according to claim 6, wherein the selection module comprises:
    第二选取单元,用于从所述多个第二中继器中选出当前数据转发速率大于或等于预设数据转发速率的中继器,作为目标中继器。And a second selecting unit, configured to select, from the plurality of second repeaters, a repeater whose current data forwarding rate is greater than or equal to a preset data forwarding rate, as the target repeater.
  9. 根据权利要求6所述的网关,其特征在于,所述选取模块包括:The gateway according to claim 6, wherein the selection module comprises:
    第三选取单元,用于从所述多个第二中继器中选出当前缓存区的剩余空间大于或者等于预设阈值的中继器,作为目标中继器。And a third selecting unit, configured to select, from the plurality of second repeaters, a repeater whose remaining space of the current buffer area is greater than or equal to a preset threshold, as a target repeater.
  10. 根据权利要求6-9任一项所述的网关,其特征在于,所述网关还包括:The gateway according to any one of claims 6-9, wherein the gateway further comprises:
    发送模块,用于向所述目标中继器发送数据转发指令,所述数据转发指令携带所述第一中继器承载的物联网终端i的交互数据,所述数据转发指令用于指示所述目标中继器将所述物联网终端i的交互数据转发至所述第一中继器。 a sending module, configured to send a data forwarding instruction to the target relay, where the data forwarding instruction carries interaction data of the Internet of Things terminal i carried by the first repeater, where the data forwarding instruction is used to indicate the The target repeater forwards the interaction data of the Internet of Things terminal i to the first repeater.
PCT/CN2017/100744 2017-07-20 2017-09-06 Repeater bridging method and gateway WO2019015036A1 (en)

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
CN201710593838.X 2017-07-20

Publications (1)

Publication Number Publication Date
WO2019015036A1 true WO2019015036A1 (en) 2019-01-24

Family

ID=60595912

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100744 WO2019015036A1 (en) 2017-07-20 2017-09-06 Repeater 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656624A (en) * 2008-08-18 2010-02-24 中兴通讯股份有限公司 Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method
US20110119458A1 (en) * 2005-01-21 2011-05-19 Natsume Matsuzaki Relay device
CN105099793A (en) * 2015-09-24 2015-11-25 华为技术有限公司 Hot-standby method, hot-standby device and hot-standby system
CN105898807A (en) * 2016-06-08 2016-08-24 北京邮电大学 Access point selection and resource distribution combined self-healing method in ultra-dense network

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005269059A (en) * 2004-03-17 2005-09-29 Fujitsu Ltd Data repeater, repeating method and program
CN101466169B (en) * 2008-12-23 2011-06-15 福建先创电子有限公司 Method for searching transmission path in direct discharging station system and relay equipment thereof
CN102843716B (en) * 2011-06-24 2015-11-25 ***通信集团公司 Changing method in a kind of mobile relay network, system and equipment
CN102932855B (en) * 2011-08-11 2017-05-17 中兴通讯股份有限公司 Method and system for switching relay nodes (RN)
CN102905309B (en) * 2012-11-06 2015-10-28 重庆邮电大学 A kind of relay communication method based on cooperative MAC protocol in vehicle self-organizing network
EP2739081A1 (en) * 2012-11-29 2014-06-04 British Telecommunications public limited company Network access restoration
CN106161057B (en) * 2015-04-02 2020-03-27 中兴通讯股份有限公司 User side gateway protection method, gateway equipment and system
CN106330525A (en) * 2015-06-30 2017-01-11 阿里巴巴集团控股有限公司 Data transmission method and system
CN106888494B (en) * 2015-12-15 2020-10-27 上海诺基亚贝尔股份有限公司 Method, device and system for selecting relay UE
CN105682176B (en) * 2016-01-19 2019-03-05 南京邮电大学 Node activations method based on dealing model and bilevel optimization
CN106535238B (en) * 2016-11-02 2020-04-07 青岛海信移动通信技术股份有限公司 Link switching method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110119458A1 (en) * 2005-01-21 2011-05-19 Natsume Matsuzaki Relay device
CN101656624A (en) * 2008-08-18 2010-02-24 中兴通讯股份有限公司 Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method
CN105099793A (en) * 2015-09-24 2015-11-25 华为技术有限公司 Hot-standby method, hot-standby device and hot-standby system
CN105898807A (en) * 2016-06-08 2016-08-24 北京邮电大学 Access point selection and resource distribution combined self-healing method in ultra-dense network

Also Published As

Publication number Publication date
CN107483330B (en) 2020-07-03
CN111669322A (en) 2020-09-15
CN111669322B (en) 2022-04-22
CN107483330A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
WO2023134119A1 (en) Uwb-based positioning method, system, device, and storage medium
JP2009124505A (en) Mobile communication terminal, data transmission method, communication apparatus, and data reception method
WO2019015036A1 (en) Repeater bridging method and gateway
WO2018053894A1 (en) Internet-of-things access point handover method and device based on transmission rate
TW201826822A (en) Method for rlc layer status report control pdu transmission and related apparatus
WO2019041371A1 (en) Internet of things number-of-connections-based router switching method and device
WO2019010799A1 (en) Internet of things terminal migration method and gateway
JP2016208513A (en) Repeating method and corresponding communication network device, system, computer program and computer readable storage medium
WO2019015051A1 (en) Method and apparatus for switching operating modes
US9838313B2 (en) Method, system, control device and node device for data transmission
WO2019015040A1 (en) Signal strength based frequency point selection method and internet of things terminal
WO2019019285A1 (en) Resource control method and apparatus
CN111585817B (en) Power-saving mode switching method and device
US9807780B2 (en) Data sharing system
US20230147734A1 (en) Communication method and apparatus
WO2020147081A1 (en) Data transmission method, related device, and computer storage medium
US9509559B2 (en) Bandwidth control apparatus, bandwidth control method, and bandwidth control program
US9203760B2 (en) Communication device and route search method
CN113726608B (en) Data processing method and device
JP6460117B2 (en) Wireless terminal, application program, and method
WO2020143605A1 (en) Data transmission method, terminal and network side device
US11451513B2 (en) Notification device and notification method
KR102526770B1 (en) Electronic device providing fast packet forwarding with reference to additional network address translation table
US20140372502A1 (en) Communication device searching method, communication device, and ad hoc network system
WO2019019289A1 (en) Energy saving method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17918471

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19/05/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17918471

Country of ref document: EP

Kind code of ref document: A1