WO2020024991A1 - Internet of things gateway access method and device, and storage medium - Google Patents

Internet of things gateway access method and device, and storage medium Download PDF

Info

Publication number
WO2020024991A1
WO2020024991A1 PCT/CN2019/098655 CN2019098655W WO2020024991A1 WO 2020024991 A1 WO2020024991 A1 WO 2020024991A1 CN 2019098655 W CN2019098655 W CN 2019098655W WO 2020024991 A1 WO2020024991 A1 WO 2020024991A1
Authority
WO
WIPO (PCT)
Prior art keywords
access server
iot gateway
registration center
access
iot
Prior art date
Application number
PCT/CN2019/098655
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 WO2020024991A1 publication Critical patent/WO2020024991A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Definitions

  • the embodiments of the present disclosure relate to, but are not limited to, the technical field of the Internet of Things.
  • the link management between the IoT gateway and the access system is the foundation of the IoT service provision domain.
  • Internet-based protocol Internet Protocol
  • a method for accessing an IoT gateway including: an access server monitors a request reported by an IoT gateway to be accessed and information released by a registration center; The link establishment report reported by the networking gateway and / or the configuration information of the IoT gateway to be accessed released by the registration center, the access server saves the mapping model to the registration center, where the mapping model includes the identity of the IoT gateway to be accessed and Correspondence between the identifiers of the access servers; and the access server provides access services to the IoT gateway according to the mapping model.
  • an IoT gateway access device includes a memory and a processor.
  • a computer program is stored on the memory, and the computer program is executed by the processor.
  • the processor executes the method of accessing the Internet of Things gateway according to the present disclosure.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the processor executes an Internet of Things gateway connection according to the present disclosure. ⁇ ⁇ Into the method.
  • FIG. 1 is a flowchart of an IoT gateway access method according to an embodiment of the present disclosure.
  • FIG. 2 is a schematic structural diagram of an IoT gateway access system according to an embodiment of the present disclosure.
  • FIG. 3 is a timing diagram of preemption by an access server according to an embodiment of the present disclosure.
  • FIG. 4 is a timing diagram of an unavailable access server according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an IoT gateway access device according to an embodiment of the present disclosure.
  • the link management between the IoT gateway and the access system is the basis of the IoT service provision domain.
  • IoT service provision domain In the current mainstream IP-based networking, there are many types of access protocols and the total number of access devices in the IoT link management. Many constraints, such as huge, cause the existing IoT gateway access link to have low fault tolerance, is not conducive to capacity expansion, and does not have high availability.
  • an embodiment of the present disclosure provides a method for accessing an IoT gateway, which may include steps S11 to S13.
  • step S11 the access server monitors the request reported by the to-be-connected IoT gateway and the information released by the registration center.
  • the method may further include: registering the access server in the registration center.
  • the access server queries whether a cluster leader (Leader) server exists in the registration center. If the Leader server does not exist, the access server preempts and registers as the Leader server; if the access server preempts successfully, it registers in The center is registered as a leader server; if the access server preemption fails, that is, the leader server is preempted by another server, it is registered as a follower server in the registration center; if the leader server already exists, it is registered as a follower server in the registration center.
  • a cluster leader Leader server
  • the configuration information of the IoT gateway released by the registration center can be configured through the Leader server.
  • the Leader server configures the IoT gateway to be accessed to the registration center.
  • step S12 when the access server listens to the link establishment request reported by the IoT gateway to be accessed and / or when the access server listens to the configuration information of the IoT gateway to be accessed issued by the registration center , And save the mapping model of the identity of the IoT gateway and the identity of the access server to the registration center.
  • the format of the mapping model of the identifier of the IoT gateway and the identifier of the access server may be: (the identifier of the IoT gateway, the server identifier)
  • the identifier of the IoT gateway and the identifier of the access server in the mapping model are one One corresponding, but one access server can provide access servers for multiple IoT gateways.
  • step S13 an access service is provided to the IoT gateway according to the mapping model of the identity of the access server and the identity of the IoT gateway.
  • providing access services to the IoT gateway includes, but is not limited to, the establishment of a link between the access server and the IoT gateway, the processing of data sent by the IoT gateway, issuing commands to the IoT gateway, adding or deleting IoT gateway, configuration of IoT gateway communication parameters and protocol types, etc.
  • the method may further include: configuring the first IoT gateway support number in the access server.
  • the first IoT gateway support number is the maximum value of the supported IoT gateway when the access server actively establishes a link with the IoT gateway. When the maximum value is exceeded, the access server is no longer connected with the new The networking gateway establishes the link.
  • the step of saving the mapping model of the identity of the IoT gateway and the identity of the access server to the registration center includes: when the access server listens to the configuration information of the IoT gateway released by the registration center, querying the saved information in the registration center Map the model and calculate the number of IoT gateways managed by the access server; map the identity of the IoT gateway and the identity of the access server according to the number of IoT gateways managed by the access server and the number of first IoT gateway support The model is saved to the registry.
  • x min min ((x 1 , x 2 , ... x n )) (1)
  • x i is the number of all things the gateway access server management i, x i can be obtained by traversing (IOT gateway identification, server identification) mapping model. If the monitored access server is one of the smallest number of servers or servers that manages the IoT gateway, and at the same time: x min ⁇ s; the access server preempts the monitored IoT gateway. The mapping model of the identity of the gateway and the identity of the access server is saved to the registration center.
  • the method may further include: when the access server is unavailable, starting The backup server of the access server, and republish the configuration information of the IoT gateway managed by the access server in the registration center.
  • the Leader server if the Leader server is unavailable, all access servers (including the Leader server) perform Leader election again, and the election is still preemptive.
  • the new Leader server After the new Leader server preempts successfully, the new Leader server sends a message to the standby server (if there is a standby server), instructing the standby server to listen to the IoT gateway configuration information of the registration center.
  • the new Leader server finds all the IoT gateways managed by the unavailable access server through the registration center, re-publishes the IoT gateway change information in the registration center, and all access servers need to re-preempt. In this case, there will be a lot of changed IoT gateways, so the access server can preempt multiple IoT gateways at once, which improves the switching efficiency in high availability scenarios.
  • the method may further include: configuring a load balancer for the access server, and configuring the load balancer in the load balancer. Number of second IoT gateway support.
  • the load balancer is a software / hardware load balancer
  • the load balancing algorithm in the software / hardware load balancer can refer to the prior art, which is not limited herein.
  • the second IoT gateway support number is the maximum value of the IoT gateway when the IoT gateway actively establishes a link with the access server.
  • the load balancer no longer allocates the IoT The gateway is connected to the access server.
  • the step of the access server monitoring the request reported by the IoT gateway to be accessed includes: the access server monitors the link establishment request of the IoT gateway through the load balancer.
  • the step of saving the mapping model of the identity of the IoT gateway and the identity of the access server to the registration center includes: monitoring, by the load balancer, the access server to establish a link request to the IoT gateway to be accessed; and in the IoT When the number of gateways is not greater than the number supported by the second IoT gateway, the mapping model of the identity of the IoT gateway and the identity of the access server is saved to the registration center.
  • the method may further include: when the access server is unavailable, the load The equalizer distributes the link establishment request to be connected to the IoT gateway to the backup server of the access server or other access server.
  • the load balancer when the load balancer monitors that the status of the access server is unavailable, it allocates a link establishment request from the IoT gateway to a backup server or other access server, and reconnects with the access server at the IoT gateway. When a link is established, the original mapping model is overwritten.
  • the step of saving the mapping model of the identity of the IoT gateway and the identity of the access server to the registration center includes: mapping the identity of the IoT gateway, the identity of the access server, and a mapping model of preset field values. Save to the registry.
  • the stored mapping model may be (IoT gateway ID, server identification, downlink); in the scenario where the IoT gateway actively establishes a link with the access server, the stored The mapping model can be (Internet of things gateway identification, server identification, uplink); one access server can still provide access services for multiple IoT gateways.
  • IoT gateway access will be described in detail below with reference to FIGS. 2 to 4.
  • the access system of the IoT gateway includes a registration center and N access servers.
  • the registration center is implemented by distributed data services. All access servers and registration centers form a cluster.
  • the dashed lines in the figure represent data. flow.
  • the access server actively establishes a link with the IoT gateway and maintains the IoT gateway. Protocols for networking gateway links are typically REST and SNMP.
  • the IoT gateway actively establishes a link with the access server and maintains the protocol of the IoT gateway link, typically MQTT and AMQP, etc .; therefore, in the link management, due to the different entities that actively implement access, There are many access scenarios.
  • the first scenario is a scenario in which an access server actively establishes a link with an IoT gateway.
  • an IoT gateway to be accessed is configured into a registration center through a Leader server.
  • an access server (whether a Leader server or a Follower server) joins the cluster, it listens to the IoT gateway configuration change information released by the registration center. After listening to the IoT gateway configuration information released by the registration center, it preemptively sets the server's unique The ID is filled in the access server information item of the newly added gateway mapping in the registration center. The mapping is unique.
  • the gateway and server have an n-to-1 relationship, and the format is (Internet of things gateway ID, server ID).
  • the preempted access server starts to establish a link with the IoT gateway and subsequent link management (provided that the link information of the IoT gateway has been configured).
  • the data sent by the IoT gateway is subsequently processed by the preempted access server; for the operation and maintenance and management control commands of the device, it can be determined by querying the mapping model of the IoT gateway and the access server stored in the registration center. Access server processing.
  • the access server After listening to the IoT gateway configuration information released by the registration center, the access server first queries the registration center to calculate the number of IoT gateways managed by the access server. If the access server is ranked last, preemption is performed.
  • the specific calculation formula is formula (1).
  • x min min ((x 1 , x 2 , ... x n )) (1)
  • x i is the number of all things the gateway access server management i, x i can be obtained by traversing (IOT gateway identification, server identification) mapping model.
  • the IoT gateway configuration information of the registration center can be monitored to achieve automatic expansion.
  • the Leader server enables the backup access server, and the backup access server starts to monitor the IoT gateway configuration information of the registration center.
  • the Leader server finds all IoT gateways that cannot be managed by the Leader server through the registration center, republishes the IoT gateway change information in the registration center, and all access servers need to re-preempt. In this case, there will be a lot of changed IoT gateways, so the access server can preempt multiple IoT gateways at once, which improves the switching efficiency in high availability scenarios.
  • the second scenario is a scenario in which the IoT gateway actively establishes a link with the access server.
  • the mapping between the unique identifier of the IoT gateway and the server is saved to the registration center.
  • the mapping is unique.
  • the IoT gateway and server have an n-to-1 relationship, and the format is (IoT Gateway ID, server ID).
  • the access server processes the data sent from the IoT gateway actively. At the same time, if there is a command issued from the upper-level operation and maintenance management system, you only need to query the mapping of the IoT gateway to the server saved by the registration center to know which one. The access server processes the delivery.
  • a dedicated software / hardware load balancer is used to configure an appropriate load balancing algorithm to meet the application scenario.
  • the load balancer distributes the link establishment request of the IoT gateway to the backup server or other access server.
  • the access server actively establishes a link with the IoT gateway and the IoT gateway actively establishes a link with the access server.
  • the access server which has both the IoT gateway access in the first scenario and the IoT gateway access in the second scenario.
  • the first scenario uses short connections, so a single physical server can support more connections at the same time; while the second scenario is mostly long connections, so the number of connections supported at the same time is small. Therefore, in the load balancing in the first scenario, the maximum value of the supported IoT gateway needs to be configured. If this value is exceeded, the access server no longer participates in the preemption of the new IoT gateway.
  • the software / Related load balancing policies are configured in the hardware load balancer to ensure that the maximum number of such IoT gateways does not exceed the upper limit of access server capabilities.
  • the coexistence scenario where the access server actively establishes a link with the IoT gateway and the IoT gateway actively establishes a link with the access server.
  • mapping model stored in the first scenario may be (Internet of Things gateway identification, server identification, downlink)
  • mapping model stored in the second scenario may be (Internet of things gateway identification, server identification, uplink). Subsequent load balancing, capacity expansion, and high availability are similar to the foregoing, and will not be repeated here.
  • the method for accessing the Internet of Things gateway provides an access service to the Internet of Things gateway by monitoring the link establishment request of the Internet of Things gateway and the configuration information of the Internet of Things gateway issued by the registration center; the Internet of Things gateway access link is fault tolerant High performance, good capacity expansion and high availability.
  • an embodiment of the present disclosure further provides an IoT gateway access device, which may include a memory 21 and a processor 22.
  • an IoT gateway access device which may include a memory 21 and a processor 22.
  • the memory 21 stores a computer program
  • the processor 22 executes the method for accessing the Internet of Things gateway according to the embodiments of the present disclosure.
  • An embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored.
  • the processor executes the method for accessing the Internet of Things gateway according to the embodiments of the present disclosure.
  • Computer storage medium includes volatile and non-volatile implemented in any method or technology used to store information, such as computer-readable instructions, data structures, program modules or other data.
  • Removable, removable and non-removable media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Embodiments of the present disclosure provide an Internet of Things gateway access method and device, and a computer-readable storage medium. The method comprises: an access server monitors a request reported by an Internet of Things gateway to be accessed and information issued by a registration center; in response to a detected link establishment request reported by said Internet of Things gateway and/or configuration information of said Internet of Things gateway issued by the registration center, the access server stores a mapping model to the registration center, wherein the mapping model comprises a correspondence between an identifier of said Internet of Things gateway and an identifier of the access server; and the access server provides an access service for said Internet of Things gateway according to the mapping model.

Description

物联网网关接入方法、设备以及存储介质Internet of things gateway access method, equipment and storage medium 技术领域Technical field
本公开实施例涉及(但不限于)物联网技术领域。The embodiments of the present disclosure relate to, but are not limited to, the technical field of the Internet of Things.
背景技术Background technique
物联网网关与接入系统的链路管理,是物联网服务提供域的基础。在现今主流的基于物联网协议(Internet Protocol,IP)组网下,存在以下两方面约束。The link management between the IoT gateway and the access system is the foundation of the IoT service provision domain. Under the current mainstream Internet-based protocol (Internet Protocol) networking, there are the following two constraints.
1、接入协议类型众多。存在各种常用物联网协议,例如REST(Representational State Transfer,表述性状态转移)、CoAP(Constrained Application Protocol,受限制的应用协议)、LwM2M(Lightweight M2M,轻量级M2M)、MQTT(Message Queuing Telemetry Transport,消息队列遥测传输)、AMQP(Advanced Message Queuing Protocol,高级消息队列协议)、SNMP(Simple Network Management Protocol,简单网络管理协议);还存在各种行业协议,例如电力行业协议、电信动环监控行业、楼宇自动化行业的行业协议等;以及,各种私有协议,大量的设备厂商的自定义协议。1. There are many types of access protocols. There are various commonly used Internet of Things protocols, such as REST (Representational State Transfer), CoAP (Constrained Application Protocol), LwM2M (Lightweight M2M), MQTT (Message Queuing and Telemetry) Transport (message queue telemetry transmission), AMQP (Advanced Message Queuing Protocol), SNMP (Simple Network Management Protocol); various industry protocols also exist, such as power industry protocols, telecommunications dynamic ring monitoring Industry, building automation industry industry agreements, etc .; and various private agreements, a large number of custom protocols for equipment manufacturers.
2、接入设备总量巨大。随着组网规模和5G的普及,百万级乃至千万级的设备监控是很多行业需要面对的问题。2. The total amount of access equipment is huge. With the scale of networking and the popularity of 5G, the monitoring of millions of devices and even millions of devices is a problem that many industries need to face.
发明内容Summary of the invention
根据本公开实施例的一个方面,提供的一种物联网网关接入方法,包括:接入服务器监听待接入物联网网关上报的请求以及注册中心发布的信息;响应于监听到待接入物联网网关上报的建立链路请求和/或注册中心发布的待接入物联网网关的配置信息,接入服务器将映射模型保存到注册中心,其中,映射模型包括待接入物联网网关的标识和接入服务器的标识的对应关系;以及接入服务器根据映射模型,对待接入物联网网关提供接入服务。According to an aspect of the embodiments of the present disclosure, a method for accessing an IoT gateway is provided, including: an access server monitors a request reported by an IoT gateway to be accessed and information released by a registration center; The link establishment report reported by the networking gateway and / or the configuration information of the IoT gateway to be accessed released by the registration center, the access server saves the mapping model to the registration center, where the mapping model includes the identity of the IoT gateway to be accessed and Correspondence between the identifiers of the access servers; and the access server provides access services to the IoT gateway according to the mapping model.
根据本公开实施例的另一个方面,提供的一种物联网网关接入 设备,所述设备包括存储器和处理器,在所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时,所述处理器执行根据本公开的物联网网关接入方法。According to another aspect of the embodiments of the present disclosure, there is provided an IoT gateway access device. The device includes a memory and a processor. A computer program is stored on the memory, and the computer program is executed by the processor. When the processor executes the method of accessing the Internet of Things gateway according to the present disclosure.
根据本公开实施例的再一个方面,提供的一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,所述处理器执行根据本公开的物联网网关接入方法。According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the processor executes an Internet of Things gateway connection according to the present disclosure.入 方法。 Into the method.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为根据本公开实施例的物联网网关接入方法的流程图。FIG. 1 is a flowchart of an IoT gateway access method according to an embodiment of the present disclosure.
图2为根据本公开实施例的物联网网关接入系统的结构示意图。FIG. 2 is a schematic structural diagram of an IoT gateway access system according to an embodiment of the present disclosure.
图3为根据本公开实施例的接入服务器抢占的时序示意图。FIG. 3 is a timing diagram of preemption by an access server according to an embodiment of the present disclosure.
图4为根据本公开实施例的接入服务器不可用的时序示意图。FIG. 4 is a timing diagram of an unavailable access server according to an embodiment of the present disclosure.
图5为根据本公开实施例的物联网网关接入设备的结构示意图。FIG. 5 is a schematic structural diagram of an IoT gateway access device according to an embodiment of the present disclosure.
具体实施方式detailed description
为了使本公开所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本公开进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。In order to make the technical problems, technical solutions, and beneficial effects to be more clearly understood by the present disclosure, the present disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not intended to limit the present disclosure.
物联网网关与接入系统的链路管理,是物联网服务提供域的基础;而在现今主流的基于IP协议组网下,物联网链路管理存在接入协议类型众多、接入设备总量巨大等诸多约束,导致现有物联网网关接入链路容错性低、不利于扩容,且不具备高可用性。The link management between the IoT gateway and the access system is the basis of the IoT service provision domain. In the current mainstream IP-based networking, there are many types of access protocols and the total number of access devices in the IoT link management. Many constraints, such as huge, cause the existing IoT gateway access link to have low fault tolerance, is not conducive to capacity expansion, and does not have high availability.
有鉴于此,如图1所示,本公开实施例提供一种物联网网关接入方法,可包括步骤S11至步骤S13。In view of this, as shown in FIG. 1, an embodiment of the present disclosure provides a method for accessing an IoT gateway, which may include steps S11 to S13.
在步骤S11中,接入服务器监听待接入物联网网关上报的请求以及注册中心发布的信息。In step S11, the access server monitors the request reported by the to-be-connected IoT gateway and the information released by the registration center.
根据本公开实施例,在接入服务器监听待接入物联网网关上报的请求以及注册中心发布的信息之前,该方法还可包括:在注册中心 中注册该接入服务器。According to an embodiment of the present disclosure, before the access server listens to a request to be reported by the access IoT gateway and information released by the registration center, the method may further include: registering the access server in the registration center.
根据本公开实施例,接入服务器在注册中心中查询集群领导者(Leader)服务器是否存在,如果Leader服务器不存在,则接入服务器抢占注册为Leader服务器;如果接入服务器抢占成功,则在注册中心注册为Leader服务器;如果接入服务器抢占失败,即Leader服务器被其它服务器抢占,则在注册中心注册为跟随(Follower)服务器;如果Leader服务器已经存在的话,则在注册中心注册为Follower服务器。According to the embodiment of the present disclosure, the access server queries whether a cluster leader (Leader) server exists in the registration center. If the Leader server does not exist, the access server preempts and registers as the Leader server; if the access server preempts successfully, it registers in The center is registered as a leader server; if the access server preemption fails, that is, the leader server is preempted by another server, it is registered as a follower server in the registration center; if the leader server already exists, it is registered as a follower server in the registration center.
根据本公开实施例,注册中心发布的物联网网关配置信息,可通过Leader服务器进行配置。例如:Leader服务器将需要接入的物联网网关配置到注册中心。According to the embodiment of the present disclosure, the configuration information of the IoT gateway released by the registration center can be configured through the Leader server. For example: The Leader server configures the IoT gateway to be accessed to the registration center.
在步骤S12中,在接入服务器监听到待接入物联网网关上报的建立链路请求的情况下和/或在接入服务器监听到注册中心发布的待接入物联网网关配置信息的情况下,将物联网网关的标识和接入服务器的标识的映射模型保存到注册中心。In step S12, when the access server listens to the link establishment request reported by the IoT gateway to be accessed and / or when the access server listens to the configuration information of the IoT gateway to be accessed issued by the registration center , And save the mapping model of the identity of the IoT gateway and the identity of the access server to the registration center.
根据本公开实施例,物联网网关的标识和接入服务器的标识的映射模型的格式可为:(物联网网关标识,服务器标识)映射模型中物联网网关的标识和接入服务器的标识是一一对应的,但一个接入服务器可以为多个物联网网关提供接入服务器。According to the embodiment of the present disclosure, the format of the mapping model of the identifier of the IoT gateway and the identifier of the access server may be: (the identifier of the IoT gateway, the server identifier) The identifier of the IoT gateway and the identifier of the access server in the mapping model are one One corresponding, but one access server can provide access servers for multiple IoT gateways.
在步骤S13中,根据接入服务器的标识和物联网网关的标识的映射模型,对物联网网关提供接入服务。In step S13, an access service is provided to the IoT gateway according to the mapping model of the identity of the access server and the identity of the IoT gateway.
根据本公开实施例,对物联网网关提供接入服务包括但不限于:接入服务器与物联网网关建立链路、物联网网关上送数据的处理、下发命令到物联网网关、增加或者删除物联网网关、配置物联网网关通讯参数和协议类型等等。According to the embodiments of the present disclosure, providing access services to the IoT gateway includes, but is not limited to, the establishment of a link between the access server and the IoT gateway, the processing of data sent by the IoT gateway, issuing commands to the IoT gateway, adding or deleting IoT gateway, configuration of IoT gateway communication parameters and protocol types, etc.
根据本公开实施例,在接入服务器监听待接入物联网网关上报的请求以及注册中心发布的信息之前,该方法还可包括:在接入服务器中配置第一物联网网关支持数。According to the embodiment of the present disclosure, before the access server monitors the request reported by the access IoT gateway and the information released by the registration center, the method may further include: configuring the first IoT gateway support number in the access server.
根据本公开实施例,第一物联网网关支持数为接入服务器主动与物联网网关建立链路时,支持的物联网网关的最大值,超过该最大 值时,接入服务器不再与新物联网网关建立链路。According to the embodiment of the present disclosure, the first IoT gateway support number is the maximum value of the supported IoT gateway when the access server actively establishes a link with the IoT gateway. When the maximum value is exceeded, the access server is no longer connected with the new The networking gateway establishes the link.
根据本公开实施例,在接入服务器监听到待接入物联网网关上报的建立链路请求的情况下和/或在接入服务器监听到注册中心发布的待接入物联网网关配置信息的情况下,将物联网网关的标识和接入服务器的标识的映射模型保存到注册中心的步骤包括:在接入服务器监听到注册中心发布的物联网网关配置信息的情况下,查询注册中心中保存的映射模型并计算出接入服务器管理的物联网网关的数量;根据接入服务器管理的物联网网关的数量以及第一物联网网关支持数,将物联网网关的标识和接入服务器的标识的映射模型保存到注册中心。According to the embodiment of the present disclosure, when the access server monitors the link establishment request reported by the IoT gateway to be accessed and / or the access server monitors the configuration information of the IoT gateway to be accessed released by the registration center Next, the step of saving the mapping model of the identity of the IoT gateway and the identity of the access server to the registration center includes: when the access server listens to the configuration information of the IoT gateway released by the registration center, querying the saved information in the registration center Map the model and calculate the number of IoT gateways managed by the access server; map the identity of the IoT gateway and the identity of the access server according to the number of IoT gateways managed by the access server and the number of first IoT gateway support The model is saved to the registry.
作为示例地,假设配置的第一物联网网关支持数为s,在查询到注册中心中保存的映射模型之后,按照公式(1)进行计算。As an example, assuming that the configured first IoT gateway support number is s, after querying the mapping model saved in the registration center, calculation is performed according to formula (1).
x min=min({x 1,x 2,...x n})         (1) x min = min ((x 1 , x 2 , ... x n )) (1)
其中,x i是接入服务器i管理的所有物联网网关的数量,可以通过遍历(物联网网关标识,服务器标识)映射模型得到x i。如果监听的接入服务器是管理物联网网关的数量最少的服务器或者服务器之一,同时满足:x min≤s;则接入服务器抢占监听到的物联网网关,若抢占成功,则将该物联网网关的标识和接入服务器的标识的映射模型保存到注册中心。 Wherein, x i is the number of all things the gateway access server management i, x i can be obtained by traversing (IOT gateway identification, server identification) mapping model. If the monitored access server is one of the smallest number of servers or servers that manages the IoT gateway, and at the same time: x min ≤s; the access server preempts the monitored IoT gateway. The mapping model of the identity of the gateway and the identity of the access server is saved to the registration center.
根据本公开实施例,在根据接入服务器的标识和物联网网关的标识的映射模型,对物联网网关提供接入服务之后,该方法还可包括:在接入服务器不可用的情况下,启动接入服务器的备用服务器,并在注册中心中重新发布接入服务器管理的物联网网关的配置信息。According to the embodiment of the present disclosure, after the access service is provided to the IoT gateway according to the mapping model of the identification of the access server and the identification of the IoT gateway, the method may further include: when the access server is unavailable, starting The backup server of the access server, and republish the configuration information of the IoT gateway managed by the access server in the registration center.
根据本公开实施例,如不可用的是Leader服务器,则所有接入服务器(包括Leader服务器)重新进行Leader选举,选举仍然是抢占式。这要求所有Follower服务器要监控Leader服务器的状态,具体地可以通过注册中心实现,也可以每台Follower服务器直接点对点监控。新的Leader服务器抢占成功后,新的Leader服务器发送消息给备用服务器(如果有备用服务器的话),指示备用服务器监听注册中心的物联网网关配置信息。According to the embodiment of the present disclosure, if the Leader server is unavailable, all access servers (including the Leader server) perform Leader election again, and the election is still preemptive. This requires all Follower servers to monitor the status of the Leader server, which can be implemented specifically through a registration center, or each Follower server can be monitored directly point-to-point. After the new Leader server preempts successfully, the new Leader server sends a message to the standby server (if there is a standby server), instructing the standby server to listen to the IoT gateway configuration information of the registration center.
根据本公开实施例,新的Leader服务器通过注册中心,查找该不可用接入服务器管理的所有物联网网关,在注册中心中重新发布物联网网关变更信息,所有接入服务器需要重新进行抢占。在这种情况下,变更的物联网网关会很多,所以接入服务器可以一次抢占多个物联网网关,提高了高可用性场景下的切换效率。According to the embodiment of the present disclosure, the new Leader server finds all the IoT gateways managed by the unavailable access server through the registration center, re-publishes the IoT gateway change information in the registration center, and all access servers need to re-preempt. In this case, there will be a lot of changed IoT gateways, so the access server can preempt multiple IoT gateways at once, which improves the switching efficiency in high availability scenarios.
根据本公开实施例,在接入服务器监听待接入物联网网关上报的请求以及注册中心发布的信息之前,该方法还可包括:为接入服务器配置负载均衡器,并在负载均衡器中配置第二物联网网关支持数。According to an embodiment of the present disclosure, before the access server monitors a request to be reported by the access IoT gateway and information released by the registration center, the method may further include: configuring a load balancer for the access server, and configuring the load balancer in the load balancer. Number of second IoT gateway support.
根据本公开实施例,负载均衡器为软/硬件负载均衡器,软/硬件负载均衡器中的负载均衡算法可参考现有技术,在此不作限定。According to the embodiment of the present disclosure, the load balancer is a software / hardware load balancer, and the load balancing algorithm in the software / hardware load balancer can refer to the prior art, which is not limited herein.
根据本公开实施例,第二物联网网关支持数为物联网网关主动与接入服务器建立链路时,支持的物联网网关的最大值,超过该最大值时,负载均衡器不再分派物联网网关连接到该接入服务器。According to the embodiment of the present disclosure, the second IoT gateway support number is the maximum value of the IoT gateway when the IoT gateway actively establishes a link with the access server. When the maximum value is exceeded, the load balancer no longer allocates the IoT The gateway is connected to the access server.
根据本公开实施例,接入服务器监听待接入物联网网关上报的请求的步骤包括:接入服务器通过负载均衡器监听物联网网关的建立链路请求。According to the embodiment of the present disclosure, the step of the access server monitoring the request reported by the IoT gateway to be accessed includes: the access server monitors the link establishment request of the IoT gateway through the load balancer.
根据本公开实施例,在接入服务器监听到待接入物联网网关的建立链路请求的情况下和/或在接入服务器监听到注册中心发布的待接入物联网网关配置信息的情况下,将物联网网关的标识和接入服务器的标识的映射模型保存到注册中心的步骤包括:在接入服务器通过负载均衡器监听到待接入物联网网关的建立链路请求;以及在物联网网关的数量不大于第二物联网网关支持数的情况下,将物联网网关的标识和接入服务器的标识的映射模型保存到注册中心。According to the embodiments of the present disclosure, when the access server listens to the link establishment request of the IoT gateway to be accessed and / or when the access server listens to the configuration information of the IoT gateway to be accessed issued by the registration center, The step of saving the mapping model of the identity of the IoT gateway and the identity of the access server to the registration center includes: monitoring, by the load balancer, the access server to establish a link request to the IoT gateway to be accessed; and in the IoT When the number of gateways is not greater than the number supported by the second IoT gateway, the mapping model of the identity of the IoT gateway and the identity of the access server is saved to the registration center.
根据本公开实施例,在根据接入服务器的标识和物联网网关的标识的映射模型,对物联网网关提供接入服务之后,该方法还可包括:在接入服务器不可用的情况下,负载均衡器将待接入物联网网关的建立链路请求分配到接入服务器的备用服务器或者其它接入服务器。According to the embodiment of the present disclosure, after the access service is provided to the IoT gateway according to the mapping model of the identification of the access server and the identification of the IoT gateway, the method may further include: when the access server is unavailable, the load The equalizer distributes the link establishment request to be connected to the IoT gateway to the backup server of the access server or other access server.
根据本公开实施例,负载均衡器监控到接入服务器的状态为不可用时,将来自物联网网关的建立链路请求分配到备用服务器或者其它接入服务器中,在物联网网关重新与接入服务器建立链路时,覆盖 原映射模型。According to the embodiment of the present disclosure, when the load balancer monitors that the status of the access server is unavailable, it allocates a link establishment request from the IoT gateway to a backup server or other access server, and reconnects with the access server at the IoT gateway. When a link is established, the original mapping model is overwritten.
根据本公开实施例,将物联网网关的标识和接入服务器的标识的映射模型保存到注册中心的步骤体包括:将物联网网关的标识、接入服务器的标识以及预设字段值的映射模型保存到注册中心。According to the embodiment of the present disclosure, the step of saving the mapping model of the identity of the IoT gateway and the identity of the access server to the registration center includes: mapping the identity of the IoT gateway, the identity of the access server, and a mapping model of preset field values. Save to the registry.
根据本公开实施例,当接入服务器主动与物联网网关建立链路的场景、物联网网关主动与接入服务器建立链路的场景共存时,为了保证注册中心里物联网网关到服务器的映射的唯一,当注册中心存储映射时,可以加上预设字段值。例如:接入服务器主动与物联网网关建立链路的场景,存储的映射模型可以为(物联网网关标识,服务器标识,下行);物联网网关主动与接入服务器建立链路的场景,存储的映射模型可以为(物联网网关标识,服务器标识,上行);一个接入服务器仍可为多个物联网网关提供接入服务。According to the embodiment of the present disclosure, when the scenario where the access server actively establishes a link with the IoT gateway and the scenario where the IoT gateway actively establishes a link with the access server coexist, in order to ensure the mapping of the IoT gateway to the server in the registry, The only thing that can be added is the preset field value when the registry stores the mapping. For example, in the scenario where the access server actively establishes a link with the IoT gateway, the stored mapping model may be (IoT gateway ID, server identification, downlink); in the scenario where the IoT gateway actively establishes a link with the access server, the stored The mapping model can be (Internet of things gateway identification, server identification, uplink); one access server can still provide access services for multiple IoT gateways.
为了更好地阐述本实施例,下面结合图2至图4对物联网网关接入进行详细说明。In order to better explain this embodiment, the IoT gateway access will be described in detail below with reference to FIGS. 2 to 4.
如图2所示,物联网网关的接入系统包括注册中心和N个接入服务器,注册中心通过分布式数据服务来实现,所有的接入服务器和注册中心组成一个集群,图中虚线表示数据流。As shown in Figure 2, the access system of the IoT gateway includes a registration center and N access servers. The registration center is implemented by distributed data services. All access servers and registration centers form a cluster. The dashed lines in the figure represent data. flow.
物联网网关与接入系统的链路管理的接入协议类型众多,从交互手段上,所有的协议可以分为两类:A)由接入服务器主动与物联网网关建立链路,并维护物联网网关链路的协议,典型的有REST和SNMP等。B)由物联网网关主动与接入服务器建立链路,并维护物联网网关链路的协议,典型的有MQTT和AMQP等;从而导致在链路管理中,由于主动实施接入的主体不同,存在诸多接入场景。There are many types of access protocols for link management between the IoT gateway and the access system. From the interaction method, all protocols can be divided into two types: A) The access server actively establishes a link with the IoT gateway and maintains the IoT gateway. Protocols for networking gateway links are typically REST and SNMP. B) The IoT gateway actively establishes a link with the access server and maintains the protocol of the IoT gateway link, typically MQTT and AMQP, etc .; therefore, in the link management, due to the different entities that actively implement access, There are many access scenarios.
第1场景,接入服务器主动与物联网网关建立链路的场景。The first scenario is a scenario in which an access server actively establishes a link with an IoT gateway.
如图3所示,首先通过Leader服务器将需要接入的物联网网关配置到注册中心中。接入服务器(无论是Leader服务器还是Follower服务器)加入集群时,监听注册中心发布的物联网网关配置变更信息,在监听到注册中心发布的物联网网关配置信息之后,抢占式的将本服务器唯一的标识填入到注册中心里新增网关映射的接入服务器信息项中,映射是唯一的,网关和服务器是n对1关系,格式采用(物联 网网关标识,服务器标识)。As shown in FIG. 3, firstly, an IoT gateway to be accessed is configured into a registration center through a Leader server. When an access server (whether a Leader server or a Follower server) joins the cluster, it listens to the IoT gateway configuration change information released by the registration center. After listening to the IoT gateway configuration information released by the registration center, it preemptively sets the server's unique The ID is filled in the access server information item of the newly added gateway mapping in the registration center. The mapping is unique. The gateway and server have an n-to-1 relationship, and the format is (Internet of things gateway ID, server ID).
抢占成功的接入服务器开始与该物联网网关建立链路以及后续链路管理(前提是已经配置了该物联网网关的链路信息)。物联网网关上送的数据,由抢占成功的接入服务器进行后续处理;对于设备的运维和管控命令,通过查询注册中心保存的物联网网关和接入服务器的映射模型,就可确定由哪台接入服务器处理。The preempted access server starts to establish a link with the IoT gateway and subsequent link management (provided that the link information of the IoT gateway has been configured). The data sent by the IoT gateway is subsequently processed by the preempted access server; for the operation and maintenance and management control commands of the device, it can be determined by querying the mapping model of the IoT gateway and the access server stored in the registration center. Access server processing.
在监听到注册中心发布的物联网网关配置信息之后,接入服务器先通过查询注册中心,计算一下本接入服务器管理的物联网网关的数量,如果本接入服务器排名最后,则进行抢占。具体计算公式为公式(1)。After listening to the IoT gateway configuration information released by the registration center, the access server first queries the registration center to calculate the number of IoT gateways managed by the access server. If the access server is ranked last, preemption is performed. The specific calculation formula is formula (1).
x min=min({x 1,x 2,...x n})          (1) x min = min ((x 1 , x 2 , ... x n )) (1)
其中,x i是接入服务器i管理的所有物联网网关的数量,可以通过遍历(物联网网关标识,服务器标识)映射模型得到x iWherein, x i is the number of all things the gateway access server management i, x i can be obtained by traversing (IOT gateway identification, server identification) mapping model.
通过前述的负载均衡策略,将新的接入服务器加入集群时,监听注册中心的物联网网关配置信息,即可实现自动扩容。Through the aforementioned load balancing strategy, when a new access server is added to the cluster, the IoT gateway configuration information of the registration center can be monitored to achieve automatic expansion.
如图4所示,当Leader服务器不可用时,重新通知所有接入服务器(包括Leader服务器)进行Leader选举,选举仍然是抢占式。这要求所有Follower服务器要监控Leader服务器的状态,可以通过注册中心实现,也可以每台Follower服务器直接点对点监控。As shown in FIG. 4, when the Leader server is unavailable, all access servers (including the Leader server) are re-informed for Leader election, and the election is still preemptive. This requires all Follower servers to monitor the status of the Leader server, which can be achieved through the registration center, or each Follower server can be monitored directly point-to-point.
Leader服务器使能备用接入服务器,备用接入服务器开始监听注册中心的物联网网关配置信息。The Leader server enables the backup access server, and the backup access server starts to monitor the IoT gateway configuration information of the registration center.
Leader服务器通过注册中心,查找不可用Leader服务器管理的所有物联网网关,在注册中心中重新发布物联网网关变更信息,所有接入服务器需要重新进行抢占。在这种情况下,变更的物联网网关会很多,所以接入服务器可以一次抢占多个物联网网关,提高了高可用性场景下的切换效率。The Leader server finds all IoT gateways that cannot be managed by the Leader server through the registration center, republishes the IoT gateway change information in the registration center, and all access servers need to re-preempt. In this case, there will be a lot of changed IoT gateways, so the access server can preempt multiple IoT gateways at once, which improves the switching efficiency in high availability scenarios.
第2场景,物联网网关主动与接入服务器建立链路的场景。The second scenario is a scenario in which the IoT gateway actively establishes a link with the access server.
物联网网关主动与接入服务器建立链路之后,将物联网网关唯一标识和服务器的映射保存到注册中心中,映射是唯一的,物联网网关和服务器是n对1关系,格式采用(物联网网关标识,服务器标识)。After the IoT gateway actively establishes a link with the access server, the mapping between the unique identifier of the IoT gateway and the server is saved to the registration center. The mapping is unique. The IoT gateway and server have an n-to-1 relationship, and the format is (IoT Gateway ID, server ID).
接入服务器处理来自物联网网关主动上送的数据,同时,如有来自上层运维管控系统的下发命令,只需查询注册中心保存的物联网网关到服务器的映射,即可知悉由哪台接入服务器处理下发。The access server processes the data sent from the IoT gateway actively. At the same time, if there is a command issued from the upper-level operation and maintenance management system, you only need to query the mapping of the IoT gateway to the server saved by the registration center to know which one. The access server processes the delivery.
在该场景下,使用专门的软/硬件负载均衡器,配置合适的负载均衡算法来满足应用场景。In this scenario, a dedicated software / hardware load balancer is used to configure an appropriate load balancing algorithm to meet the application scenario.
通过前述步骤,将新的接入服务器加入到集群中,并配置到负载均衡器里,即可实现扩容。Through the foregoing steps, add a new access server to the cluster and configure it in a load balancer to achieve capacity expansion.
在接入服务器不可用的情况下,负载均衡器将物联网网关的建立链路请求分配到备用服务器或者其它接入服务器。When the access server is unavailable, the load balancer distributes the link establishment request of the IoT gateway to the backup server or other access server.
第3场景,接入服务器主动与物联网网关建立链路和物联网网关主动与接入服务器建立链路的混合场景。In the third scenario, the access server actively establishes a link with the IoT gateway and the IoT gateway actively establishes a link with the access server.
在进行负载均衡时,会存在同一台接入服务器,既有第1场景的物联网网关接入,又有第2场景的物联网网关接入。此时可以根据需要,配置这两种场景网关的比例。通常情况下,第1场景使用短连接,故单台物理服务器能同时支持的连接数较多;而第2场景多为长连接,故同时支持的连接数较少。因此,在第1场景的负载均衡中,需要配置支持的物联网网关的最大值,超过此值,接入服务器不再参与新物联网网关的抢占;在第2场景下,则需要在软/硬件负载均衡器中配置相关负载均衡策略,保证此种物联网网关最大数量不突破接入服务器能力上限。When performing load balancing, there will be the same access server, which has both the IoT gateway access in the first scenario and the IoT gateway access in the second scenario. In this case, you can configure the ratio of gateways in these two scenarios. Generally, the first scenario uses short connections, so a single physical server can support more connections at the same time; while the second scenario is mostly long connections, so the number of connections supported at the same time is small. Therefore, in the load balancing in the first scenario, the maximum value of the supported IoT gateway needs to be configured. If this value is exceeded, the access server no longer participates in the preemption of the new IoT gateway. In the second scenario, the software / Related load balancing policies are configured in the hardware load balancer to ensure that the maximum number of such IoT gateways does not exceed the upper limit of access server capabilities.
通过前述负载均衡,只要将新的接入服务器加入集群中,并在负载均衡器中进行相应配置,即可完成扩容。With the aforementioned load balancing, as long as a new access server is added to the cluster and corresponding configuration is performed in the load balancer, capacity expansion can be completed.
在该混合场景下,当出现接入服务器不可用时,一方面查找该服务器管理的所有物联网网关,发布物联网网关变更信息,重新抢占;另一方面,软/硬件负载均衡器即时将物联网网关重连请求转发到备用服务器或者其它接入服务器。In this hybrid scenario, when an access server becomes unavailable, on the one hand, all IoT gateways managed by the server are searched for, and information about the changes in the IoT gateway is published to re-preempt; on the other hand, the software / hardware load balancer immediately switches the IoT The gateway reconnection request is forwarded to the standby server or other access server.
第4场景,接入服务器主动与物联网网关建立链路和物联网网关主动与接入服务器建立链路的共存场景。In the fourth scenario, the coexistence scenario where the access server actively establishes a link with the IoT gateway and the IoT gateway actively establishes a link with the access server.
对于该共存场景,需要保证注册中心里物联网网关到服务器的映射的唯一,在注册中心存储映射时,设置一个字段值:上行/下行。 即第1场景存储的映射模型可以为(物联网网关标识,服务器标识,下行),第2场景存储的映射模型可以为(物联网网关标识,服务器标识,上行)。后续的负载均衡、扩容和高可用性与前述类似,在此不作赘述。For this coexistence scenario, it is necessary to ensure the unique mapping of the IoT gateway to the server in the registration center. When storing the mapping in the registration center, set a field value: uplink / downlink. That is, the mapping model stored in the first scenario may be (Internet of Things gateway identification, server identification, downlink), and the mapping model stored in the second scenario may be (Internet of things gateway identification, server identification, uplink). Subsequent load balancing, capacity expansion, and high availability are similar to the foregoing, and will not be repeated here.
本公开实施例提供的物联网网关接入方法,通过监听物联网网关的建立链路请求以及注册中心发布的物联网网关配置信息对物联网网关提供接入服务;物联网网关接入链路容错性高、利于扩容且具备高可用性。The method for accessing the Internet of Things gateway provided by the embodiment of the present disclosure provides an access service to the Internet of Things gateway by monitoring the link establishment request of the Internet of Things gateway and the configuration information of the Internet of Things gateway issued by the registration center; the Internet of Things gateway access link is fault tolerant High performance, good capacity expansion and high availability.
如图5所示,本公开实施例还提供一种物联网网关接入设备,可包括存储器21和处理器22。在所述存储器21存储有计算机程序,所述计算机程序被处理器22执行时,处理器22执行根据本公开各实施例的物联网网关接入方法。As shown in FIG. 5, an embodiment of the present disclosure further provides an IoT gateway access device, which may include a memory 21 and a processor 22. When the memory 21 stores a computer program, when the computer program is executed by the processor 22, the processor 22 executes the method for accessing the Internet of Things gateway according to the embodiments of the present disclosure.
本公开实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,所述处理器执行根据本公开各实施例的物联网网关接入方法。An embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the processor executes the method for accessing the Internet of Things gateway according to the embodiments of the present disclosure.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其它数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其它存储器技术、CD-ROM、数字多功能盘(DVD)或其它光盘存储、磁盒、磁带、磁盘存储或其它磁存储装置、或者可以 用于存储期望的信息并且可以被计算机访问的任何其它的介质。Those of ordinary skill in the art can understand that all or some of the steps, systems, and functional modules / units in the devices disclosed in the methods above can be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components execute cooperatively. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media). As is known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile implemented in any method or technology used to store information, such as computer-readable instructions, data structures, program modules or other data. Removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer.
以上参照附图说明了本公开的实施例,并非因此局限本公开的权利范围。本领域技术人员不脱离本公开的范围和实质内所作的任何修改、等同替换和改进,均应在本公开的权利范围之内。The embodiments of the present disclosure have been described above with reference to the accompanying drawings, and thus do not limit the scope of rights of the present disclosure. Any modification, equivalent replacement, and improvement made by those skilled in the art without departing from the scope and substance of the present disclosure shall fall within the scope of rights of the present disclosure.

Claims (11)

  1. 一种物联网网关接入方法,包括:An Internet of Things gateway access method includes:
    接入服务器监听待接入物联网网关上报的请求以及注册中心发布的信息;The access server monitors the requests reported by the IoT gateway to be accessed and the information released by the registration center;
    响应于监听到所述待接入物联网网关上报的建立链路请求和/或所述注册中心发布的所述待接入物联网网关的配置信息,所述接入服务器将映射模型保存到所述注册中心,其中,所述映射模型包括所述待接入物联网网关的标识和所述接入服务器的标识的对应关系;以及In response to listening to the link establishment request reported by the IoT gateway to be accessed and / or the configuration information of the IoT gateway to be published issued by the registration center, the access server saves the mapping model to all The registration center, wherein the mapping model includes a correspondence between an identifier of the IoT gateway to be accessed and an identifier of the access server; and
    所述接入服务器根据所述映射模型,对所述待接入物联网网关提供接入服务。The access server provides an access service to the IoT gateway to be accessed according to the mapping model.
  2. 根据权利要求1所述的物联网网关接入方法,其中,在所述接入服务器监听所述待接入物联网网关上报的请求以及所述注册中心发布的信息的步骤之前,所述方法还包括:The method of accessing an IoT gateway according to claim 1, wherein before the step of the access server monitoring the request reported by the IoT gateway to be accessed and the information released by the registration center, the method further include:
    所述接入服务器配置自身的第一物联网网关支持数,The access server configures its own number of first IoT gateway support,
    其中,所述第一物联网网关支持数为所述接入服务器主动建立链路时能够管理的物联网网关的数量的最大值。The first IoT gateway support number is a maximum value of the number of IoT gateways that can be managed when the access server actively establishes a link.
  3. 根据权利要求2所述的物联网网关接入方法,其中,响应于监听到所述建立链路请求和/或所述配置信息,所述接入服务器将所述映射模型保存到所述注册中心的步骤包括:The method for accessing an IoT gateway according to claim 2, wherein in response to monitoring the link establishment request and / or the configuration information, the access server saves the mapping model to the registration center The steps include:
    响应于监听到所述配置信息,所述接入服务器查询所述注册中心已保存的映射模型;In response to monitoring the configuration information, the access server queries the mapping model that the registration center has saved;
    根据所述注册中心已保存的映射模型,所述接入服务器确定所述接入服务器通过主动建立链路管理的物联网网关的数量小于所述第一物联网网关支持数;以及According to the mapping model saved by the registration center, the access server determines that the number of IoT gateways managed by the access server by actively establishing a link is less than the number supported by the first IoT gateway; and
    所述接入服务器将所述映射模型保存到所述注册中心。The access server saves the mapping model to the registration center.
  4. 根据权利要求3所述的物联网网关接入方法,其中,在所述接入服务器根据所述映射模型,对所述待接入物联网网关提供接入服务的步骤之后,所述方法还包括:The method for accessing an IoT gateway according to claim 3, wherein after the step of providing, by the access server, an access service to the IoT gateway to be accessed according to the mapping model, the method further comprises :
    响应于所述接入服务器不可用,所述接入服务器启动所述接入服务器的备用服务器,以及向所述注册中心重新发布所述接入服务器管理的物联网网关的配置信息。In response to the access server being unavailable, the access server starts a backup server of the access server and republishes the configuration information of the IoT gateway managed by the access server to the registration center.
  5. 根据权利要求1所述的物联网网关接入方法,其中,在所述接入服务器监听所述待接入物联网网关上报的请求以及所述注册中心发布的信息之前,所述方法还包括:The method for accessing an IoT gateway according to claim 1, wherein before the access server monitors a request reported by the IoT gateway to be accessed and information released by the registration center, the method further comprises:
    所述接入服务器在负载均衡器中配置自身的第二物联网网关支持数,其中,所述第二物联网网关支持数为物联网网关主动建立链路时所述接入服务器能够管理的物联网网关的数量的最大值。The access server configures its own second IoT gateway support number in a load balancer, wherein the second IoT gateway support number is an object that the access server can manage when the IoT gateway actively establishes a link. The maximum number of networked gateways.
  6. 根据权利要求5所述的物联网网关接入方法,其中,所述接入服务器监听所述待接入物联网网关上报的请求以及所述注册中心发布的信息的步骤包括:The method for accessing an IoT gateway according to claim 5, wherein the step of the access server monitoring the request reported by the IoT gateway to be accessed and the information released by the registration center comprises:
    所述接入服务器通过所述负载均衡器监听所述待接入物联网网关上报的请求,并且The access server monitors, through the load balancer, a request reported by the IoT gateway to be accessed, and
    响应于监听到所述建立链路请求和/或所述配置信息,所述接入服务器将所述映射模型保存到所述注册中心的步骤包括:In response to monitoring the link establishment request and / or the configuration information, the step of the access server saving the mapping model to the registration center includes:
    响应于通过所述负载均衡器监听到所述建立链路请求,所述接入服务器确定物联网网关主动建立链路管理的物联网网关的数量小于所述第二物联网网关支持数;以及In response to monitoring the link establishment request through the load balancer, the access server determines that the number of IoT gateways actively established by the IoT gateway to manage link is less than the number supported by the second IoT gateway; and
    将所述映射模型保存到所述注册中心。Save the mapping model to the registry.
  7. 根据权利要求5所述的物联网网关接入方法,其中,在所述接入服务器根据所述映射模型,对所述待接入物联网网关提供接入服务的步骤之后,所述方法还包括:The method of accessing an IoT gateway according to claim 5, wherein after the step of providing, by the access server, an access service to the IoT gateway to be accessed according to the mapping model, the method further comprises :
    响应于所述接入服务器不可用,所述接入服务器指示所述负载 均衡器将所述待接入物联网网关的建立链路请求发送到所述接入服务器的备用服务器或其它接入服务器。In response to the access server being unavailable, the access server instructs the load balancer to send the link establishment request of the IoT gateway to be accessed to a backup server or other access server of the access server .
  8. 根据权利要求1所述的物联网网关接入方法,其中,在所述接入服务器监听所述待接入物联网网关上报的请求以及所述注册中心发布的信息之前,所述方法还包括:The method for accessing an IoT gateway according to claim 1, wherein before the access server monitors a request reported by the IoT gateway to be accessed and information released by the registration center, the method further comprises:
    所述接入服务器在所述注册中心中注册。The access server is registered in the registration center.
  9. 根据权利要求1至8中任一项所述的物联网网关接入方法,其中,所述接入服务器将所述映射模型保存到所述注册中心的步骤包括:The method for accessing an IoT gateway according to any one of claims 1 to 8, wherein the step of the access server saving the mapping model to the registration center comprises:
    所述接入服务器将所述待接入物联网网关的标识和所述接入服务器的标识的对应关系,以及预设字段值保存到所述注册中心。The access server saves the correspondence between the identifier of the IoT gateway to be accessed and the identifier of the access server, and a preset field value to the registration center.
  10. 一种物联网网关接入设备,包括存储器和处理器,在所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,所述处理器执行根据权利要求1至9中任一项所述的物联网网关接入方法。An Internet of Things gateway access device includes a memory and a processor, and when the computer program is stored in the memory, the processor executes any one of claims 1 to 9 when the computer program is executed by the processor. The method for accessing the IoT gateway according to the item.
  11. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,所述处理器执行根据权利要求1至9中任一项所述的物联网网关接入方法。A computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the processor executes the method for accessing an Internet of Things gateway according to any one of claims 1 to 9.
PCT/CN2019/098655 2018-08-01 2019-07-31 Internet of things gateway access method and device, and storage medium WO2020024991A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810865805.0A CN110798329A (en) 2018-08-01 2018-08-01 Internet of things gateway access method, equipment and storage medium
CN201810865805.0 2018-08-01

Publications (1)

Publication Number Publication Date
WO2020024991A1 true WO2020024991A1 (en) 2020-02-06

Family

ID=69232374

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098655 WO2020024991A1 (en) 2018-08-01 2019-07-31 Internet of things gateway access method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN110798329A (en)
WO (1) WO2020024991A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531462A (en) * 2021-12-31 2022-05-24 山东浪潮工业互联网产业股份有限公司 Data processing method and equipment for Internet of things equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338827B (en) * 2020-09-29 2024-04-09 中移物联网有限公司 Internet of Things protocol adaptation gateway, method and readable storage medium
CN112866108A (en) * 2021-02-01 2021-05-28 迪莲娜(上海)大数据服务有限公司 Edge gateway link optimization method, system, medium and cloud management system
CN114598735B (en) * 2022-01-30 2024-05-14 阿里巴巴(中国)有限公司 Data processing method and system
CN114900479A (en) * 2022-06-28 2022-08-12 中国南方电网有限责任公司 Intelligent access method, system, device, equipment and storage medium of edge gateway

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699692A (en) * 2014-01-11 2014-04-02 樊建 Internet-of-things access platform data management method
CN104202420A (en) * 2014-09-18 2014-12-10 广州中国科学院软件应用技术研究所 Method and device for supporting expansion of internet-of-things middleware cluster
US9009230B1 (en) * 2014-09-10 2015-04-14 Citrix Systems, Inc. Machine-to-machine instant messaging
CN108322506A (en) * 2017-12-28 2018-07-24 华为技术有限公司 A kind of methods, devices and systems of internet of things equipment access network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638460B (en) * 2012-03-26 2016-08-10 华为终端有限公司 Home gateway, Cloud Server and the method communicated between the two
US9160791B2 (en) * 2013-08-13 2015-10-13 International Business Machines Corporation Managing connection failover in a load balancer
CN104640237B (en) * 2013-11-13 2018-09-14 中国电子科技集团公司第十五研究所 A kind of Internet of things system
CN104202365B (en) * 2014-08-15 2017-05-10 深圳市蜂联科技有限公司 Method for clustered intelligent gateway platform for deploying expanded business application
CN104158684B (en) * 2014-08-15 2017-04-05 深圳市蜂联科技有限公司 Gateway device status tracking based on open type intelligent Networking Platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699692A (en) * 2014-01-11 2014-04-02 樊建 Internet-of-things access platform data management method
US9009230B1 (en) * 2014-09-10 2015-04-14 Citrix Systems, Inc. Machine-to-machine instant messaging
CN104202420A (en) * 2014-09-18 2014-12-10 广州中国科学院软件应用技术研究所 Method and device for supporting expansion of internet-of-things middleware cluster
CN108322506A (en) * 2017-12-28 2018-07-24 华为技术有限公司 A kind of methods, devices and systems of internet of things equipment access network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531462A (en) * 2021-12-31 2022-05-24 山东浪潮工业互联网产业股份有限公司 Data processing method and equipment for Internet of things equipment
CN114531462B (en) * 2021-12-31 2024-05-03 浪潮工业互联网股份有限公司 Data processing method and device for Internet of things device

Also Published As

Publication number Publication date
CN110798329A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
WO2020024991A1 (en) Internet of things gateway access method and device, and storage medium
US10778527B2 (en) Methods, systems, and computer readable media for providing a service proxy function in a telecommunications network core using a service-based architecture
US10230587B2 (en) Dynamically deployable self configuring distributed network management system with specification defining trust domain membership and/or privileges and data management computing component
US11388082B2 (en) Methods, systems, and computer readable media for diameter routing using software defined network (SDN) functionality
WO2022033121A1 (en) Method and system for resource exposure in kubernetes, and device and medium
US9723069B1 (en) Redistributing a connection
CN114073043B (en) Method and device for managing Ethernet bridge ports
WO2004036344A2 (en) System and method for the optimization of database
WO2009117946A1 (en) Main-spare realizing method for dispatch servers and dispatch server
EP3788772B1 (en) On-node dhcp implementation for virtual machines
WO2017114363A1 (en) Packet processing method, bng and bng cluster system
WO2021170033A1 (en) Network configuration method and apparatus
WO2019242698A1 (en) Network element management method, device and system
JP2020500451A (en) Communication method and device
US20240106708A1 (en) Fabric availability and synchronization
WO2019223638A1 (en) Api information transmission method and device
WO2016065925A1 (en) Controller replacing method and device
US8285797B2 (en) Technique for controlling device management response messages
WO2017143722A1 (en) Network function implementing method, control device and network element
WO2015106506A1 (en) Methods for setting control information and establishing communication, management controller and controller
US11533250B2 (en) Common abstraction for network traffic migration
US11784762B2 (en) Methods, systems, and computer readable media for limiting network function (NF) repository function (NRF) forwarding
CN113595760B (en) System fault processing method and device
CN113438179B (en) Load balancing method, device and system based on network delay
WO2023185692A1 (en) Communication method and apparatus, and device

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

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 14/06/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19845084

Country of ref document: EP

Kind code of ref document: A1