WO2019033475A1 - 自动中继切换方法及相关产品 - Google Patents

自动中继切换方法及相关产品 Download PDF

Info

Publication number
WO2019033475A1
WO2019033475A1 PCT/CN2017/100790 CN2017100790W WO2019033475A1 WO 2019033475 A1 WO2019033475 A1 WO 2019033475A1 CN 2017100790 W CN2017100790 W CN 2017100790W WO 2019033475 A1 WO2019033475 A1 WO 2019033475A1
Authority
WO
WIPO (PCT)
Prior art keywords
gateway
terminals
target
target gateway
backup
Prior art date
Application number
PCT/CN2017/100790
Other languages
English (en)
French (fr)
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 WO2019033475A1 publication Critical patent/WO2019033475A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • H04W36/0094Definition of hand-off measurement parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/12Reselecting a serving backbone network switching or routing node

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to an automatic relay switching method and related products.
  • the Internet of Things can be understood as: communication between things and things. It is not human-oriented like communication between people. Usually, the characteristics of people-oriented communication are misinformation or missed information. The dominant person can be corrected in various ways. However, in the communication of the Internet of Things, in most cases, both sides of the communication are objects, and they cannot perform manual intervention. Therefore, in the process of IoT communication, higher requirements are placed on the reliability of the wireless communication system.
  • the inventor of the present invention has found in practice that if a certain gateway in the Internet of Things fails, the other terminals connected to the gateway will lose contact with the Internet of Things, thereby causing the terminal data to be unreported and reducing the Internet of Things communication. Reliability.
  • the embodiment of the invention provides an automatic relay switching method and related products, which can ensure normal data transmission in the case of a gateway interruption.
  • a first aspect of the embodiments of the present invention provides an automatic relay switching method, including:
  • the N terminals connected to the target gateway are switched to the backup gateway of the target gateway, and the backup gateway is instructed to send to the network management center for requesting maintenance.
  • the maintenance request of the target gateway where N is an integer greater than one;
  • the N terminals are switched from the backup gateway to the target gateway.
  • a second aspect of the embodiments of the present invention provides an access point, including:
  • An indicating unit when the target gateway in the IoT ad hoc network fails, switching the N terminals connected to the target gateway to the backup gateway of the target gateway, and instructing the backup gateway to the network management center Sending a maintenance request for requesting maintenance of the target gateway, where N is an integer greater than one;
  • a switching unit configured to switch the N terminals from the backup gateway to the target gateway when the target gateway returns to normal.
  • a third aspect of the embodiments of the present invention provides an access point, including:
  • a processor and a memory wherein the processor, by invoking code or instructions in the memory, executes instructions of 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 is configured to store a computer program, wherein the computer program causes a computer to perform the first aspect of the embodiment of the present invention. Instructions for some or all of the steps described in the section.
  • 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 execute The instructions of some or all of the steps described in the first aspect of the invention.
  • the computer program product can be a software installation package.
  • FIG. 1 is a network architecture diagram of an automatic relay switching method based on device grouping according to an embodiment of the present invention
  • FIG. 1-1 is a schematic diagram of handover based on the gateway failure in FIG. 1 according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an embodiment of an automatic relay switching method according to an embodiment of the present invention
  • FIG. 2-1 is a schematic flowchart of the refinement of the step 200 added in FIG. 2 according to an embodiment of the present invention
  • FIG. 2-2 is a schematic flowchart of the refinement of step 202 described in FIG. 2 according to an embodiment of the present invention
  • 2-3 is a schematic flowchart of the refinement of step 202 described in FIG. 2 according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a first embodiment of an access point according to an embodiment of the present disclosure
  • FIG. 3b is a schematic structural diagram of an indication unit of the access point depicted in FIG. 3a according to an embodiment of the present disclosure
  • 3c is a schematic structural diagram of a switching unit of the access point described in FIG. 3a according to an embodiment of the present invention
  • FIG. 3d is still another schematic structural diagram of a switching unit of the access point depicted in FIG. 3a according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a second embodiment of an access point 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.
  • the terminal described in the embodiment of the present invention may also generally refer to a terminal in which an IoT sensor is installed, for example.
  • a terminal in which an IoT sensor is installed, for example.
  • it may include a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable device, and of course, it may also include Other devices with networking capabilities, such as smart TVs, smart air conditioners, smart water bottles, smart lights, smart switches or some IoT smart devices.
  • the above terminals are merely examples, not exhaustive, and include but are not limited to the above terminals.
  • the ad hoc network is a network combining mobile communication and computer network.
  • the information exchange of the network uses the packet exchange mechanism in the computer network.
  • the terminal is a portable terminal that can be moved.
  • Each terminal in the ad hoc network is Both router and host functions.
  • As a host the terminal needs to run various user-oriented applications, such as an editor, a browser, etc.
  • As a router the terminal needs to run a corresponding routing protocol, and completes data packet forwarding and routing maintenance according to the routing policy and the routing table.
  • the node is required to implement a suitable routing protocol.
  • the goal of the self-organizing network routing protocol is to be fast, accurate, and efficient.
  • the embodiment of the invention is implemented based on the Internet of Things self-organizing network, wherein the sensor can be installed on the terminal or can be used alone.
  • FIG. 1 is a network architecture diagram, where: the access point (Access Point), the gateway and its backup gateway, and multiple terminals accessing the gateway and the backup gateway (only terminal A, Terminal B, terminal C and terminal D are indicated).
  • the gateway is configured to receive the reported data sent by the multiple terminals.
  • the backup gateway may be instructed to notify the network management center to perform the gateway. Maintenance or maintenance, and switching the terminal A and the terminal B accessed by the gateway to the backup gateway. Further, after the gateway is restored, the terminal A and the terminal B can continue to switch to the gateway.
  • the manner in which the gateway sends a data packet to the AP may be sent by using a wireless connection, including but not limited to: Bluetooth, wireless protection. Wireless (English: Wireless Fidelity, WIFI) or Zigbee, etc., where the above WIFI needs to comply with the IEEE802.11b standard.
  • the Internet of Things and APs here are only for wireless APs, because for the Internet of Things, the number of devices accessed by them is large.
  • the connection is through a wired connection, the number of APs to access first will be The limitation is, and for the family, the wired connection is unimaginable for the wiring of the home user, and the cost of the cable is also very high, so the Internet of Things terminal and the AP in the technical solution of the present invention The connection between them is limited to wireless connections.
  • FIG. 2 is a schematic flowchart of an embodiment of an automatic relay switching method according to an embodiment of the present invention.
  • the automatic relay switching method described in this embodiment includes the following steps:
  • the N terminals connected to the target gateway are switched to the backup gateway of the target gateway, and the standby gateway is instructed to send to the network management center Requesting to maintain a maintenance request of the target gateway, where N is an integer greater than one.
  • the method for determining that the target gateway is faulty may be: if the data that needs to be reported by any one of the N terminals is not received within a preset time, the target gateway may be determined to be faulty.
  • the N terminals connected to the target gateway are switched to the backup gateway of the target gateway, and the backup gateway is instructed to send a maintenance request for requesting maintenance of the target gateway to the network management center. After receiving the maintenance request from the network management center, the administrator can be instructed to perform maintenance on the target gateway.
  • the embodiment of the present invention is described by only one standby gateway.
  • the foregoing step of switching the N terminals connected to the target gateway to the backup gateway of the target gateway may include the following steps:
  • N terminals connected to the target gateway are switched to the backup gateway.
  • the preset range may be set by the user or the system defaults, for example, within a range of 10 meters, within a range of 20 meters, within a range of 100 meters, within a range of 1000 meters, within a range of 100-500 meters, and the like.
  • the target network may be centered to obtain multiple gateways in the preset range, and the load of each of the multiple gateways may be acquired, thereby determining the gateway with the smallest load as the backup gateway, and thus, the load is minimum.
  • the gateway may carry more terminals, and thus, the entire IoT system can be guaranteed to operate normally, and then the N terminals connected to the target gateway are switched to the standby gateway.
  • step 201 the following steps may be included between step 201 and step 202:
  • step 200 may include the following steps:
  • the reporting data may include the status information, and the status information may include status information, where the status information may include, but is not limited to, reporting rate, stability, dropped status, and load. Changes and so on.
  • the reporting rate is the rate at which the target gateway sends data to the AP.
  • the stability refers to the working stability of the target gateway.
  • the load change refers to the change in the load of the target gateway.
  • the above reported data may include a header file and an IP address. Therefore, the reported data may be parsed to obtain status information of the target gateway, and then the status information is matched with the preset status information. If the matching is successful, the target gateway has been restored.
  • the preset state information may be at least one of a reporting rate, a stability, a dropped condition, and a load change.
  • the preset status information is status information of the target gateway under normal working conditions. If the received status information does not match the preset status information of the target gateway, the target gateway does not return to normal, and the backup gateway may be redirected to the network again.
  • the management center sends a maintenance request of the target gateway to maintain the target gateway.
  • the N terminals can be switched back from the backup gateway, so that the load of the backup gateway can be alleviated.
  • step 202 may include the following steps:
  • the preset load value may be set by the system default or by the user. Of course, when the backup gateway load is small, switching is performed, and thus, the data loss rate can be reduced.
  • the AP obtains the load value of the standby gateway, and obtains an average transmission rate of each of the N terminals to send the reported data to the backup gateway when the load value is less than the preset load value, where the average transmission rate may be within a certain period of time. The average of the transmission rates.
  • the above N terminals are switched to the target gateway according to the average transmission rate from small to large.
  • step 202 may include the following steps:
  • the target gateway when the target gateway receives the reporting data of the M terminals, the other terminals except the M terminals of the N terminals are switched to the target gateway.
  • the AP may select some terminals from the N terminals as test terminals, and assume that M terminals are used to detect whether the target gateway is actually restored to normal. Therefore, the M terminals may be preferentially switched to the target gateway first. By detecting whether the target gateway receives the reported data of the M terminals is normal to determine whether the target gateway is truly restored, and when the target gateway receives the reporting data of the M terminals, the other terminals of the N terminals are all switched to the target. Gateway.
  • selecting the M terminals of the N terminals including:
  • the amount of reported data sent by each terminal of the N terminals to the backup gateway is obtained, and the N reported data amounts are obtained, and the N terminals are divided into M groups according to the reported data amount in descending order, The proportion (weight) of the number of terminals occupied by each group is selected from each group, thereby obtaining M terminals.
  • the order of the N reported data is in descending order: A, B, C, D, E, F, G, H, and I, and M is 3.
  • 3 groups namely: the first group (A, B and C), the second group (D, E and F) and the third group (G, H and I), one of each group can be selected
  • the terminal gets 3 terminals.
  • the target gateway in the IoT ad hoc network fails, the N terminals connected to the target gateway are switched to the backup gateway of the target gateway, and the standby is indicated.
  • the gateway sends a maintenance request for requesting maintenance of the target gateway to the network management center, where N is an integer greater than 1; detecting whether the target gateway returns to normal; and when the target gateway returns to normal, the N
  • the terminal is switched by the backup gateway to the target gateway. Therefore, when a certain gateway is interrupted, the alternate gateway is automatically switched, and after the certain gateway is restored, the gateway can be switched again to ensure normal data transmission.
  • the gateway for implementing the automatic relay switching method provided by the embodiment of the present invention is as follows:
  • FIG. 3 is a schematic structural diagram of a first embodiment of an access point according to an embodiment of the present invention.
  • the access point described in this embodiment includes: an indicating unit 301 and a switching unit 302, as follows:
  • the indicating unit 301 is configured to switch, when the target gateway in the IoT ad hoc network fails, the N terminals connected to the target gateway to the backup gateway of the target gateway, and instruct the backup gateway to manage the network
  • the center sends a maintenance request for requesting maintenance of the target gateway, where N is an integer greater than one;
  • the switching unit 302 is configured to switch the N terminals from the backup gateway to the target gateway when the target gateway returns to normal.
  • the indication unit 301 of the access point described in FIG. 3a may include: a first selection module 3011, a determination module 3012, and a first switching module 3013, as follows:
  • the first selecting module 3011 is configured to select multiple gateways within a preset range centered on the target network
  • a determining module 3012 configured to use a gateway with a minimum load among the multiple gateways as the backup gateway;
  • the first switching module 3013 is configured to switch the N terminals connected to the target gateway to the backup gateway.
  • the indication unit 301 may further include an indication module (not shown) for instructing the backup gateway to send a maintenance request for requesting maintenance of the target gateway to the network management center.
  • the switching unit 302 of the access point described in FIG. 3a may include: a first obtaining module 3021 and a second switching module 3022, as follows:
  • the first obtaining module 3021 is configured to acquire a load value of the backup gateway.
  • the first obtaining module 3021 is further configured to:
  • a second switching module configured to switch the N terminals from the backup gateway to the target gateway according to the average transmission rate from small to large.
  • the switching unit 303 of the access point as described in FIG. 3c and FIG. 3a may include: a second selecting module 3023, a third switching module 3024, and a detecting module 3025, as follows:
  • a second selection module 3023 configured to select M terminals of the N terminals, where the M is a positive integer smaller than the N;
  • a third switching module 3024 configured to preferentially switch the M terminals to the target gateway
  • the detecting module 3025 is configured to detect whether the reporting data received by the target gateway by the M terminal is normal.
  • the third switching module 3024 is further configured to:
  • the target gateway receives the reporting data of the M terminals, the other terminals except the M terminals of the N terminals are switched to the target gateway.
  • the second selection module 3023 may include: a second acquisition module (not shown), an allocation module (not shown), and a third selection module (not shown), as follows:
  • a second acquiring module configured to acquire, by the terminal, the amount of reported data sent by each terminal of the N terminals to the backup gateway;
  • An allocating module configured to divide the M terminals into the M groups according to the reported data amount
  • a third selecting module configured to select M terminals of the N terminals according to weights in each of the M groups.
  • the access point depicted in FIG. 3a may further include: a monitoring unit (not shown), a monitoring unit (not shown), and a matching unit (not shown), as follows:
  • a monitoring unit configured to monitor, after the indication unit 3021, the N terminals connected to the target gateway switch to the backup gateway of the target gateway, whether the report data of the target gateway is received, where the report data includes Status information of the target gateway;
  • a monitoring unit configured to parse the data to obtain status information of the target gateway when receiving the reported data of the target gateway
  • a matching unit configured to match the state information with the preset state information, where the switching unit 302 performs the matching when the matching result of the matching unit is that the state information matches the preset state information
  • the access point described in the embodiment of the present invention can switch the N terminals connected to the target gateway to the backup gateway of the target gateway when the target gateway in the IoT ad hoc network fails. And instructing the backup gateway to send to the network management center for requesting maintenance of the target network
  • the N is an integer greater than 1; detecting whether the target gateway returns to normal; and when the target gateway returns to normal, switching the N terminals from the standby gateway to the target gateway. Therefore, when a certain gateway is interrupted, the alternate gateway is automatically switched, and after the certain gateway is restored, the gateway can be switched again to ensure normal data transmission.
  • FIG. 4 it is a schematic structural diagram of a second embodiment of an access point according to an embodiment of the present invention.
  • the access point described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, and the processor 3000 And the memory 4000 is connected through the bus 5000.
  • the processor 3000 herein may be a processing component or a general term of multiple processing components.
  • the processing component may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • DSPs digital singal processors
  • FPGAs Field Programmable Gate Arrays
  • the memory 4000 may be a storage device or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the application running device to operate. And the memory 4000 may include random access memory (RAM), and may also include non-volatile memory such as a magnetic disk memory, a flash memory, or the like.
  • RAM random access memory
  • non-volatile memory such as a magnetic disk memory, a flash memory, or the like.
  • the bus 5000 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 4, but it does not mean that there is only one bus or one type of bus.
  • the processor 3000 is configured to:
  • the N terminals connected to the target gateway are switched to the backup gateway of the target gateway, and the backup gateway is instructed to send to the network management center for requesting maintenance.
  • the maintenance request of the target gateway where N is an integer greater than one;
  • the N terminals are switched from the backup gateway to the target gateway.
  • the foregoing processor 3000 switches the N terminals connected to the target gateway to the backup gateway of the target gateway, including:
  • N terminals connected to the target gateway are switched to the backup gateway.
  • the foregoing processor 3000 is configured to: switch the N terminals from the backup gateway to the target gateway, where:
  • the N terminals are switched from the backup gateway to the target gateway in an order of small to large according to the average transmission rate.
  • the foregoing processor 3000 is configured to: switch the N terminals from the backup gateway to the target gateway, where:
  • the target gateway receives the reporting data of the M terminals, the other terminals except the M terminals of the N terminals are switched to the target gateway.
  • the processor 3000 in the selecting the M terminals of the N terminals, includes:
  • the processor 3000 is configured to: after the N terminals connected to the target gateway are switched to the backup gateway of the target gateway, and when the target gateway returns to normal, Before the N terminals are switched from the backup gateway to the target gateway, the method is further specifically configured to:
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the automatic relay switching methods described in the foregoing method embodiments.
  • 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 Any or all of the steps of any automatic relay switching method.
  • embodiments of the present invention can be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

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)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供了一种自动中继切换方法及相关产品,所述方法包括如下步骤:在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数;在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。通过本发明实施例可在某一网关中断时,自动切换备用网关,并在该某一网关恢复后,可再次切换到该某一网关,保证数据的正常传输。

Description

自动中继切换方法及相关产品
本发明要求2017年08月17日递交的发明名称为“自动中继切换方法及装置”的申请号201710707085.0的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及互联网技术领域,具体涉及一种自动中继切换方法及相关产品。
背景技术
随着信息技术的快速发展,也给生活带来了巨大的改变,例如,物联网的出现。物联网可理解为:物与物之间的通讯,它不像人与人之间的通讯那样以人为主导,通常情况下,以人为主导的通讯特点是信息若有误发或者漏发,作为主导的人是可以通过各种方式纠正过来的。但物联网中的通讯,多数情况下通讯双方都是物体,自身不能进行人工干预,因而,在物联网通讯过程中,对无线通讯系统的可靠性提出了更高的要求。
本发明的发明人在实践中发现,倘若物联网中某一网关发生故障,那么,与该网关连接的其他终端便会与物联网失去联系,因此,导致该终端数据无法上报,降低物联网通信的可靠性。
发明内容
本发明实施例提供了一种自动中继切换方法及相关产品,可以在网关中断的情况下,保证数据的正常传输。
本发明实施例第一方面提供了一种自动中继切换方法,包括:
在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数;
检测所述目标网关是否恢复正常;
在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。
本发明实施例第二方面提供了一种接入点,包括:
指示单元,用于在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数;
切换单元,用于在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。
本发明实施例第三方面提供了一种接入点,包括:
处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如本发明实施例第一方面中所描述的部分或全部步骤的指令。
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤的指令。
第五方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤的指令。该计算机程序产品可以为一个软件安装包。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的实施基于设备分组的自动中继切换方法的网络架构图;
图1-1是本发明实施例提供的基于图1中网关故障时的切换示意图;
图2本发明实施例提供的一种自动中继切换方法的实施例流程示意图;
图2-1是本发明实施例提供的图2所追加的步骤200的细化流程示意图;
图2-2是本发明实施例提供的图2中所描述的步骤202的细化流程示意图;
图2-3是本发明实施例提供的图2中所描述的步骤202的细化流程示意图;
图3a是本发明实施例提供的一种接入点的第一实施例结构示意图;
图3b是本发明实施例提供的图3a中所描述的接入点的指示单元的结构示意图;
图3c是本发明实施例提供的图3a中所描述的接入点的切换单元的结构示意图;
图3d是本发明实施例提供的图3a中所描述的接入点的切换单元的又一结构示意图;
图4是本发明实施例提供的一种接入点的第二实施例结构示意图;
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置展示该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明实施例所描述的终端还可以泛指安装了物联网传感器的终端,例 如,可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,当然其也可以包含带有联网功能的其他设备,例如智能电视、智能空调、智能水壶、智能灯、智能开关或一些物联网的智能设备。上述终端仅是举例,而非穷举,包含但不限于上述终端。本发明实施例中所涉及的传感器可以为温度传感器、距离传感器、湿度传感器、摄像头、压力传感器、水位检测器等等,因此,本发明实施例可应用于智能交通、交警监控、水位监控、智能农业、工业物联网等应用场景。当然,本发明实施例中所涉及的传感器可为智能传感器,在一定程度上,可等同于终端。
需要解释的是,自组网是一种移动通信和计算机网络相结合的网络,网络的信息交换采用计算机网络中的分组交换机制,终端是可以移动的便携式终端,自组网中每个终端都兼有路由器和主机两种功能。作为主机,终端需要运行各种面向用户的应用程序,如编辑器、浏览器等;作为路由器,终端需要运行相应的路由协议,根据路由策略和路由表完成数据分组的转发和路由维护工作,故要求节点实现合适的路由协议。自组网路由协议的目标是快速、准确和高效,要求在尽可能短的时间内查找到准确可用的路由信息,并能适应网络拓扑的快速变化,同时减小引入的额外时延和维护路由的控制信息,降低路由协议的开销,以满足移动终端计算能力、储存空间以及电源等方面的限制。本发明实施例基于物联网自组网进行实施,其中,传感器可安装在终端上,也可以单独使用。
为更好的理解本发明技术方案,下面先对本发明实施例提供的基于设备分组的数据传输控制方法所适用的网络架构进行简要介绍。如图1所示,图1为该网络架构图,其中,它包括:接入点(Access Point)、网关及其备用网关以及接入该网关和备用网关的多个终端(仅以终端A、终端B、终端C和终端D加以表示)。网关可用于接收该多个终端发送的上报数据。本网络架构中的网关可用于执行:在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数;检测所述目标网关是否恢复正常;在所述目标网关恢复正常时,将所 述N个终端由所述备用网关切换到所述目标网关。当然,图1所描述的网络架构只是物联网自组网的一部分,网关还可以接入互联网。具体实际中,物联网自组网不仅仅包含一个网关,还可能包含多个网关,该网关可接入多个终端。进一步地,例如,如图1-1所示,若图1中的网关出现故障时(其中,图1-1中的虚线X表示网关出现故障),可指示备用网关通知网络管理中心对网关进行维修或者维护,并将该网关所接入的终端A和终端B切换到备用网关,进一步地,在该网关恢复后,可将终端A和终端B继续切换到该网关。
进一步地,上述网关向AP发送数据包(终端向网关发送数据包,备用网关向网络管理中心发送请求)的方式可以为通过无线连接的方式发送,该无线方式包括但不限于:蓝牙、无线保真(英文:Wireless Fidelity,WIFI)或Zigbee等无线方式,其中,上述WIFI需要遵守IEEE802.11b的标准。
需要说明的是,这里的物联网以及AP仅仅只是针对无线AP,因为对于物联网来说,其接入的设备数量众多,对于AP来说,如果通过有线连接,首先AP的接入数量会有所限制,并且对于家庭来说,均用有线连接,对于家庭用户的布线来说是无法想象的,另外此有线的成本也非常高,所以本发明的技术方案中的中物联网终端与AP之间的连接仅限无线连接。
基于图1所描述的网络架构,请参阅图2,为本发明实施例提供的一种自动中继切换方法的实施例流程示意图。本实施例中所描述的自动中继切换方法,包括以下步骤:
201、在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数。
其中,在物联网自组网内,若目标网关发生故障,则可将目标网关所连接的N个终端切换到其对应的备用网关,其中,N为大于1的整数,并指示备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,网络管理中心可通知维护人员对该目标网关进行维修或者维护。
可选地,判断目标网关故障的方式可为:在预设的时间内,没有接收到所述N终端中任一个终端需要上报的数据,则可判定为目标网关发生故障,可 将目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求。在网络管理中心进接收到维护请求后,可指示管理员对目标网关进行维修。
可选地,上述备用网关不只一个,可为多个,本发明实施例仅以一个备用网关进行说明。
可选地,上述将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,可包括如下步骤:
选取以所述目标网络为中心的预设范围内的多个网关;
将所述多个网关中负载最小的网关作为所述备用网关;
将与所述目标网关连接的N个终端切换到所述备用网关。
其中,预设范围可由用户自行设置或者系统默认,例如,10米范围内,20米范围内,100米范围内,1000米范围内,100-500米范围内等等。具体地,可以以目标网络为中心,以得到其预设范围内的多个网关,可获取该多个网关中每一网关的负载,从而,确定负载最小的网关作为备用网关,因而,负载最小的网关其可能承载更多的终端数目,因而,可保证整个物联网系统正常运行,进而,将目标网关连接的N个终端切换到该备用网关。
可选地,在步骤201-步骤202之间还可以包含如下步骤:
200、检测所述目标网关是否恢复正常。
可选地,如图2-1所示,上述步骤200可包含如下步骤:
221)、监测是否接收到所述目标网关的上报数据,所述上报数据包含所述目标网关的状态信息;
222)、在接收到所述目标网关的上报数据时,解析所述上述数据,得到所述目标网关的状态信息;
223)、将所述状态信息与预设状态信息进行匹配,在所述状态信息与所述预设状态信息匹配时,确认所述目标网关已恢复正常。
其中,可监测是否接受到目标网关的上报数据,该上报数据可含有状态信息,该状态信息中可包含多个指标,该指标可包括但不仅限于:上报速率、稳定性、掉线情况、负载变化情况等等。其中,上报速率为目标网关向AP发送数据的速率,稳定性是指目标网关的工作稳定性,掉线情况可为目标网关在预 设时间内的掉线情况,负载变化情况是指目标网关的负荷量变化。上述上报数据可包含头文件,IP地址,因而,可对上报数据进行解析,得到目标网关的状态信息,再将该状态信息与预设状态信息进行匹配,匹配成功,则说明该目标网关已经恢复正常,上述预设状态信息可为上报速率、稳定性、掉线情况、负载变化情况中的至少一个。
可选地,预设状态信息为目标网关正常工作情况下的状态信息,若接收到的状态信息与目标网关的预设状态信息不匹配,说明目标网关没有恢复正常,可再次指示备用网关向网络管理中心发送目标网关的维护请求,对目标网关进行维护。
202、在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。
其中,在目标网关恢复正常时,可将N个终端由备用网关再切换回来,如此,可减轻备用网关的负荷。
可选地,如图2-2所示,上述步骤202可包含如下步骤:
231)、获取所述备用网关的负载值;
232)、在所述负载值小于预设负载值时,获取所述N个终端中每一终端向所述备用网关发送上报数据的平均传输速率;
233)、按照所述平均传输速率由小到大的顺序将所述N个终端由所述备用网关切换到所述目标网关。
其中,上述预设负载值可由系统默认或者用户自行设置。当然,在备用网关负载较小时,进行切换,如此,则可减少数据丢失率。AP可获取备用网关的负载值,在其负载值小于预设负载值时,获取N个终端中每一终端向备用网关发送上报数据的平均传输速率,该平均传输速率可为某一段时间内的传输速率的均值。根据该平均传输速率由小到大的顺序将上述N个终端切换到目标网关。
可选地,上述步骤202可包含如下步骤:
234)、选取所述N个终端中的M个终端,其中,所述M为小于所述N的正整数;
235)、将所述M个终端优先切换到所述目标网关;
236)、检测所述目标网关接收所述M个终端的上报数据是否正常;
237)、在所述目标网关接收所述M个终端的上报数据正常时,将所述N个终端中除了所述M个终端之外的其他终端切换到所述目标网关。
其中,AP可从N个终端中选取部分终端作为测试终端,假设M个终端,该M个终端用于检测目标网关是否真的恢复正常,从而,可先将该M个终端优先切换到目标网关,通过检测目标网关接收该M个终端的上报数据是否正常以判断目标网关是否真的恢复正常,在目标网关接收M个终端的上报数据正常时,将N个终端中的其他终端均切换到目标网关。
可选地,上述选取所述N个终端中的M个终端,包括:
获取所述N个终端中每一终端向所述备用网关发送的上报数据量;
根据所述上报数据量将所述M个终端分为所述M个组;
根据所述M个组中每一组中的权重选取所述N个终端中的M个终端。
其中,可获取N个终端中每一终端向备用网关发送的上报数据量,得到N个上报数据量,按照上报数据量由大到小的顺序将N个终端分为M个组,即可根据每一组占的终端的数目比重(权重)从每一组中选取终端,从而,得到M个终端。例如N个上报数据量由大到小的顺序依次为:A、B、C、D、E、F、G、H和I,M为3,那么,按照该由大到小的顺序,可分为:3个组,分别为:第一组(A、B和C)、第二组(D、E和F)和第三组(G、H和I),可从每一组中选取一个终端,从而,得到3个终端。
可以看出,通过本发明实施例,在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数;检测所述目标网关是否恢复正常;在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。从而,在某一网关中断时,自动切换备用网关,并在该某一网关恢复后,可再次切换到该某一网关,保证数据的正常传输。
与上述一致地,以下为实施上述本发明实施例提供的自动中继切换方法的网关,具体如下:
请参阅图3a,为本发明实施例提供的一种接入点的第一实施例结构示意图。本实施例中所描述的接入点,包括:指示单元301和切换单元302,具体如下:
指示单元301,用于在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数;
切换单元302,用于在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。
可选地,如图3b,图3a中所描述的接入点的指示单元301可包括:第一选取模块3011、确定模块3012和第一切换模块3013,具体如下:
第一选取模块3011,用于选取以所述目标网络为中心的预设范围内的多个网关;
确定模块3012,用于将所述多个网关中负载最小的网关作为所述备用网关;
第一切换模块3013,用于将与所述目标网关连接的N个终端切换到所述备用网关。
当然,指示单元301还可以包含指示模块(图中未标出),用于指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,
可选地,如图3b,图3a中所描述的接入点的切换单元302可包括:第一获取模块3021和第二切换模块3022,具体如下:
第一获取模块3021,用于获取所述备用网关的负载值;
所述第一获取模块3021还用于:
在所述负载值小于预设负载值时,获取所述N个终端中每一终端向所述备用网关发送上报数据的平均传输速率;
第二切换模块,用于按照所述平均传输速率由小到大的顺序将所述N个终端由所述备用网关切换到所述目标网关。
可选地,如图3c,图3a中所描述的接入点的切换单元303可包括:第二选取模块3023、第三切换模块3024和检测模块3025,具体如下:
第二选取模块3023,用于选取所述N个终端中的M个终端,其中,所述M为小于所述N的正整数;
第三切换模块3024,用于将所述M个终端优先切换到所述目标网关;
检测模块3025,用于检测所述目标网关接收所述M个终端的上报数据是否正常;
所述第三切换模块3024,还用于:
在所述目标网关接收所述M个终端的上报数据正常时,将所述N个终端中除了所述M个终端之外的其他终端切换到所述目标网关。
进一步地,上述第二选取模块3023可包括:第二获取模块(图中未标出)、分配模块(图中未标出)和第三选取模块(图中未标出),具体如下:
第二获取模块,用于获取所述N个终端中每一终端向所述备用网关发送的上报数据量;
分配模块,用于根据所述上报数据量将所述M个终端分为所述M个组;
第三选取模块,用于根据所述M个组中每一组中的权重选取所述N个终端中的M个终端。
可选地,图3a所描述的接入点还可包括:监测单元(图中未标出)、监测单元(图中未标出)和匹配单元(图中未标出),具体如下:
监测单元,用于在所述指示单元3021将与所述目标网关连接的N个终端切换到所述目标网关的备用网关之后,监测是否接收到所述目标网关的上报数据,所述上报数据包含所述目标网关的状态信息;
监测单元,用于在接收到所述目标网关的上报数据时,解析所述上述数据,得到所述目标网关的状态信息;
匹配单元,用于将所述状态信息与预设状态信息进行匹配,在所述匹配单元的匹配结果为所述状态信息与所述预设状态信息匹配时,由所述切换单元302执行所述在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。
可以看出,通过本发明实施例所描述的接入点可在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网 关的维护请求,所述N为大于1的整数;检测所述目标网关是否恢复正常;在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。从而,在某一网关中断时,自动切换备用网关,并在该某一网关恢复后,可再次切换到该某一网关,保证数据的正常传输。
与上述一致地,请参阅图4,为本发明实施例提供的一种接入点的第二实施例结构示意图。本实施例中所描述的接入点,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。
需要说明的是,这里的处理器3000可以是一个处理元件,也可以是多个处理元件的统称。例如,该处理元件可以是中央处理器(Central Processing Unit,CPU),也可以是特定集成电路(Application Specific Integrated Circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)。
存储器4000可以是一个存储装置,也可以是多个存储元件的统称,且用于存储可执行程序代码或应用程序运行装置运行所需要参数、数据等。且存储器4000可以包括随机存储器(RAM),也可以包括非易失性存储器(non-volatile memory),例如磁盘存储器,闪存(Flash)等。
总线5000可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
上述处理器3000,用于:
在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数;
检测所述目标网关是否恢复正常;
在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。
可选地,上述处理器3000将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,包括:
选取以所述目标网络为中心的预设范围内的多个网关;
将所述多个网关中负载最小的网关作为所述备用网关;
将与所述目标网关连接的N个终端切换到所述备用网关。
可选地,上述处理器3000在所述将所述N个终端由所述备用网关切换到所述目标网关,包括:
获取所述备用网关的负载值;
在所述负载值小于预设负载值时,获取所述N个终端中每一终端向所述备用网关发送上报数据的平均传输速率;
按照所述平均传输速率由小到大的顺序将所述N个终端由所述备用网关切换到所述目标网关。
可选地,上述处理器3000在所述将所述N个终端由所述备用网关切换到所述目标网关,包括:
选取所述N个终端中的M个终端,其中,所述M为小于所述N的正整数;
将所述M个终端优先切换到所述目标网关;
检测所述目标网关接收所述M个终端的上报数据是否正常;
在所述目标网关接收所述M个终端的上报数据正常时,将所述N个终端中除了所述M个终端之外的其他终端切换到所述目标网关。
可选地,上述处理器3000在所述选取所述N个终端中的M个终端,包括:
获取所述N个终端中每一终端向所述备用网关发送的上报数据量;
根据所述上报数据量将所述M个终端分为所述M个组;
根据所述M个组中每一组中的权重选取所述N个终端中的M个终端。
可选地,上述处理器3000在所述将与所述目标网关连接的N个终端切换到所述目标网关的备用网关之后,以及所述在所述目标网关恢复正常时,将所 述N个终端由所述备用网关切换到所述目标网关之前,还具体用于:
监测是否接收到所述目标网关的上报数据,所述上报数据包含所述目标网关的状态信息;
在接收到所述目标网关的上报数据时,解析所述上报数据,得到所述目标网关的状态信息;
将所述状态信息与预设状态信息进行匹配,在所述状态信息与所述预设状态信息匹配时,执行所述在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种自动中继切换方法的部分或全部步骤。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种自动中继切换方法的部分或全部步骤。
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。
本发明是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (13)

  1. 一种自动中继切换方法,其特征在于,包括:
    在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数;
    在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。
  2. 根据权利要求1所述的方法,其特征在于,所述将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,包括:
    选取以所述目标网络为中心的预设范围内的多个网关;
    将所述多个网关中负载最小的网关作为所述备用网关;
    将与所述目标网关连接的N个终端切换到所述备用网关。
  3. 根据权利要求1或2任一项所述的方法,其特征在于,所述将所述N个终端由所述备用网关切换到所述目标网关,包括:
    获取所述备用网关的负载值;
    在所述负载值小于预设负载值时,获取所述N个终端中每一终端向所述备用网关发送上报数据的平均传输速率;
    按照所述平均传输速率由小到大的顺序将所述N个终端由所述备用网关切换到所述目标网关。
  4. 根据权利要求1或2任一项所述的方法,其特征在于,所述将所述N个终端由所述备用网关切换到所述目标网关,包括:
    选取所述N个终端中的M个终端,其中,所述M为小于所述N的正整数;
    将所述M个终端优先切换到所述目标网关;
    检测所述目标网关接收所述M个终端的上报数据是否正常;
    在所述目标网关接收所述M个终端的上报数据正常时,将所述N个终端中除了所述M个终端之外的其他终端切换到所述目标网关。
  5. 根据权利要求4所述的方法,其特征在于,所述选取所述N个终端中的M个终端,包括:
    获取所述N个终端中每一终端向所述备用网关发送的上报数据量;
    根据所述上报数据量将所述M个终端分为所述M个组;
    根据所述M个组中每一组中的权重选取所述N个终端中的M个终端。
  6. 一种接入点,其特征在于,包括:
    指示单元,用于在物联网自组网内的目标网关发生故障时,将与所述目标网关连接的N个终端切换到所述目标网关的备用网关,并指示所述备用网关向网络管理中心发送用于请求维护所述目标网关的维护请求,所述N为大于1的整数;
    切换单元,用于在所述目标网关恢复正常时,将所述N个终端由所述备用网关切换到所述目标网关。
  7. 根据权利要求6所述的接入点,其特征在于,所述指示单元包括:
    第一选取模块,用于选取以所述目标网络为中心的预设范围内的多个网关;
    确定模块,用于将所述多个网关中负载最小的网关作为所述备用网关;
    第一切换模块,用于将与所述目标网关连接的N个终端切换到所述备用网关。
  8. 根据权利要求6或7任一项所述的接入点,其特征在于,所述切换单元包括:
    第一获取模块,用于获取所述备用网关的负载值;
    所述第一获取模块还用于:
    在所述负载值小于预设负载值时,获取所述N个终端中每一终端向所述 备用网关发送上报数据的平均传输速率;
    第二切换模块,用于按照所述平均传输速率由小到大的顺序将所述N个终端由所述备用网关切换到所述目标网关。
  9. 根据权利要求6或7任一项所述的接入点,其特征在于,所述切换单元包括:
    第二选取模块,用于选取所述N个终端中的M个终端,其中,所述M为小于所述N的正整数;
    第三切换模块,用于将所述M个终端优先切换到所述目标网关;
    检测模块,用于检测所述目标网关接收所述M个终端的上报数据是否正常;
    所述第三切换模块,还用于:
    在所述目标网关接收所述M个终端的上报数据正常时,将所述N个终端中除了所述M个终端之外的其他终端切换到所述目标网关。
  10. 根据权利要求9所述的接入点,其特征在于,所述第二选取模块包括:
    第二获取模块,用于获取所述N个终端中每一终端向所述备用网关发送的上报数据量;
    分配模块,用于根据所述上报数据量将所述M个终端分为所述M个组;
    第三选取模块,用于根据所述M个组中每一组中的权重选取所述N个终端中的M个终端。
  11. 一种接入点,其特征在于,包括:
    处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如权利要求1至5任意一项所述的方法。
  12. 一种计算机存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-5任一项所述的方法。
  13. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-5任一项所述的方法。
PCT/CN2017/100790 2017-08-17 2017-09-06 自动中继切换方法及相关产品 WO2019033475A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710707085.0 2017-08-17
CN201710707085.0A CN107466079B (zh) 2017-08-17 2017-08-17 自动中继切换方法及装置

Publications (1)

Publication Number Publication Date
WO2019033475A1 true WO2019033475A1 (zh) 2019-02-21

Family

ID=60549864

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100790 WO2019033475A1 (zh) 2017-08-17 2017-09-06 自动中继切换方法及相关产品

Country Status (2)

Country Link
CN (1) CN107466079B (zh)
WO (1) WO2019033475A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020171747A1 (en) 2019-02-22 2020-08-27 Telefonaktiebolaget Lm Ericsson (Publ) Method for mitigating disruption during maintenance of an edge gateway node
CN113949605A (zh) * 2021-11-03 2022-01-18 珠海格力电器股份有限公司 一种网关、自动控制系统及网关控制方法

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109410554B (zh) * 2018-11-20 2020-09-01 北京千丁互联科技有限公司 基于智能门锁的智能抄表系统和方法
CN110768840A (zh) * 2019-10-30 2020-02-07 珠海格力电器股份有限公司 通信设备的控制方法、装置、设备及存储介质
CN110995513B (zh) * 2019-12-27 2023-02-17 远景智能国际私人投资有限公司 物联网系统中的数据发送、接收方法、物联网设备及平台
CN111262864B (zh) * 2020-01-16 2022-07-08 广州酷狗计算机科技有限公司 直播状态数据的发送方法、装置、系统及存储介质
CN112055347A (zh) * 2020-09-14 2020-12-08 厦门阳光恩耐照明有限公司 一种多网关协同工作方法及系统
CN112822735B (zh) * 2020-12-31 2022-02-01 广州技象科技有限公司 基于物联网的网关切换管理方法、装置、设备及存储介质
CN113660109A (zh) * 2021-07-06 2021-11-16 深圳市联洲国际技术有限公司 网关切换方法、装置、终端设备及计算机可读存储介质
CN114884805B (zh) * 2022-05-25 2023-07-21 远景智能国际私人投资有限公司 数据传输方法、装置、终端及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624929A (zh) * 2012-04-20 2012-08-01 武汉邮电科学研究院 一种基于虚拟网关的无线传感网网关冗余方法
CN103607306A (zh) * 2013-11-26 2014-02-26 网神信息技术(北京)股份有限公司 多机热备用系统的切换方法和装置
CN103840956A (zh) * 2012-11-23 2014-06-04 于智为 一种物联网网关设备的备份方法
CN103888277A (zh) * 2012-12-19 2014-06-25 中国移动通信集团公司 一种网关容灾备份方法、装置和系统
CN103888994A (zh) * 2012-12-21 2014-06-25 中国科学院计算技术研究所 一种具有热灾备能力的多网关处理方法及系统
US20170105131A1 (en) * 2015-10-08 2017-04-13 Samsung Electronics Co., Ltd. Electronic device and method for implementing service thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387514B (zh) * 2010-08-27 2016-06-29 中兴通讯股份有限公司 无线传感器网络网关的备份方法及系统
JP5821467B2 (ja) * 2011-09-26 2015-11-24 富士通株式会社 無線端末
CN103796271B (zh) * 2014-02-19 2017-03-29 重庆邮电大学 一种适用于树型无线传感网的IPv6路由器冗余方法
CN104468776B (zh) * 2014-12-04 2018-05-29 中国联合网络通信集团有限公司 一种实现传感器网络数据传输的方法及汇聚节点

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624929A (zh) * 2012-04-20 2012-08-01 武汉邮电科学研究院 一种基于虚拟网关的无线传感网网关冗余方法
CN103840956A (zh) * 2012-11-23 2014-06-04 于智为 一种物联网网关设备的备份方法
CN103888277A (zh) * 2012-12-19 2014-06-25 中国移动通信集团公司 一种网关容灾备份方法、装置和系统
CN103888994A (zh) * 2012-12-21 2014-06-25 中国科学院计算技术研究所 一种具有热灾备能力的多网关处理方法及系统
CN103607306A (zh) * 2013-11-26 2014-02-26 网神信息技术(北京)股份有限公司 多机热备用系统的切换方法和装置
US20170105131A1 (en) * 2015-10-08 2017-04-13 Samsung Electronics Co., Ltd. Electronic device and method for implementing service thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020171747A1 (en) 2019-02-22 2020-08-27 Telefonaktiebolaget Lm Ericsson (Publ) Method for mitigating disruption during maintenance of an edge gateway node
CN113678404A (zh) * 2019-02-22 2021-11-19 瑞典爱立信有限公司 用于在对边缘网关节点的维护期间减轻中断的方法
EP3928470A4 (en) * 2019-02-22 2022-03-02 Telefonaktiebolaget Lm Ericsson (Publ) METHOD FOR MITIGATING INTERRUPTION DURING MAINTENANCE OF A NETWORK EDGE GATEWAY NODE
US11722383B2 (en) 2019-02-22 2023-08-08 Telefonaktiebolaget Lm Ericsson (Publ) Method for mitigating disruption during maintenance of an edge gateway node
CN113678404B (zh) * 2019-02-22 2024-03-08 瑞典爱立信有限公司 用于在对边缘网关节点的维护期间减轻中断的方法
CN113949605A (zh) * 2021-11-03 2022-01-18 珠海格力电器股份有限公司 一种网关、自动控制系统及网关控制方法
CN113949605B (zh) * 2021-11-03 2024-03-08 珠海格力电器股份有限公司 一种网关、自动控制系统及网关控制方法

Also Published As

Publication number Publication date
CN107466079B (zh) 2020-11-13
CN107466079A (zh) 2017-12-12

Similar Documents

Publication Publication Date Title
WO2019033475A1 (zh) 自动中继切换方法及相关产品
US9628384B2 (en) Adaptive industrial network
WO2019033476A1 (zh) 基于设备分组的数据传输控制方法及相关产品
EP4027587A1 (en) Oam method and apparatus for network
US20180338278A1 (en) Wi-fi roaming management
JP2016103829A5 (zh)
US10944667B2 (en) Loop check packets
JP6377565B2 (ja) ワイヤレス通信環境において送信する複数のアクセス端末ための分散チャネルアクセスを可能にすること
CN114071560B (zh) 网络优化方法、装置及存储介质
WO2012072035A1 (zh) 告警信息传输方法、无线传感器节点设备、网关节点设备
CN104283780A (zh) 建立数据传输路径的方法和装置
CN107846715A (zh) 物联网基于传输速率的接入点切换方法及装置
CN105763463B (zh) 一种链路探测报文的传输方法和装置
WO2019015040A1 (zh) 基于信号强度的频点选取方法及物联网终端
CN108683561B (zh) 一种站点状态检测方法及装置
CN113261249A (zh) 一种数据传输方法、相关设备及计算机存储介质
CN108235800B (zh) 一种网络故障探测方法、控制中心设备及计算机存储介质
EP3024200A1 (en) Port number extension method and switch
WO2015180265A1 (zh) 多链路保护倒换的方法及装置
CN108599984B (zh) 共享端口状态的方法、接入设备及支持双归属保护的系统
US10079893B2 (en) M2M application request sending method, CSE and system
WO2019000954A1 (zh) 监测节点存活状态的方法、装置及系统
CN104486787A (zh) 一种无线链路故障检测方法及装置
WO2017000549A1 (zh) 一种变电站一体化中数据处理方法、系统及装置
CN109086292B (zh) 一种数据库的切换方法及系统

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: 17921679

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 09.09.2020 )

122 Ep: pct application non-entry in european phase

Ref document number: 17921679

Country of ref document: EP

Kind code of ref document: A1