An internet of things system, an internet of things system control method, and related devices
By introducing partition routing servers and related modules, the problem of public cloud services being unable to customize device access parsing rules is solved. The customization and dynamic management of device access rules are realized, supporting the access of massive devices and suitable for private deployment scenarios.
Patent Information
- Application Number
- CN202310084017.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-18
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2043-01-18
AI Technical Summary
Existing public cloud services cannot customize device access resolution rules, cannot dynamically register or log off, have slow resolution effectiveness, have uncontrollable costs, cannot meet the business needs of private deployment scenarios, and have a limited number of devices that can be connected to a single physical machine.
The partition routing server is introduced to realize the customization and dynamic management of dynamic device access machine parsing rules through the intelligent routing selection module, network connection service module, access machine registration module and access machine health check module, supporting the access of massive devices.
It realizes the customization, dynamic issuance and real-time effectiveness of device access rules, supports the access of massive devices, breaks the upper limit of the number of physical connections of a single device access machine, and is suitable for private deployment scenarios.
Smart Images

Figure CN116055544B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of Internet of Things, and more specifically, to an Internet of Things system, an Internet of Things system control method, and related equipment. Background Art
[0002] With the rapid development of the Internet of Things (IoT), the interconnection of everything (IoE) has become a growing trend. IoT platforms need to support massive device access, but the number of devices that can be connected to a single physical machine is physically limited. However, current device access mechanisms struggle with dynamic horizontal expansion. Public cloud service providers currently offer DNS resolution services, but these services lack the ability to customize device access resolution rules, enabling dynamic registration and deregistration, slow resolution validation, and unmanageable costs. Furthermore, when delivered privately, these services cannot meet business requirements such as data retention and physical network isolation, making them unsuitable for private deployment scenarios. Summary of the Invention
[0003] The Summary of the Invention introduces a series of simplified concepts that will be further described in the Detailed Description of the Invention. The Summary of the Invention of this application is not intended to limit the key features and essential technical features of the claimed technical solution, nor is it intended to determine the scope of protection of the claimed technical solution.
[0004] In order to provide an Internet of Things system that can support access to a large number of devices, in a first aspect, the present application proposes an Internet of Things system, comprising:
[0005] terminal equipment;
[0006] At least two device access devices, used to interact with the above-mentioned terminal devices;
[0007] The partition routing server is used to recommend a target access machine to the terminal device according to the network connection request of the terminal device and the built-in routing selection rules, so that the terminal device can establish a network connection with the target access machine.
[0008] Optionally, the partition router includes an intelligent routing selection module, which stores the built-in routing selection rules. The built-in routing selection rules include a first routing selection rule, which is determined based on the domain name information corresponding to the network connection request.
[0009] Optionally, the above-mentioned built-in routing selection rule also includes a second routing selection rule, and the above-mentioned second routing selection rule is determined based on the occupancy information of the above-mentioned device access machine and / or the geographical location information of the above-mentioned terminal device, and the above-mentioned occupancy information includes load occupancy information and port occupancy information.
[0010] Optionally, the above-mentioned partition router includes a network connection service module, which is used to perform DNS or HTTPDNS domain name resolution according to the above-mentioned network connection request to obtain the IP address of the access machine.
[0011] Optionally, the above-mentioned partition router includes an access machine registration module, which is used to register a new device access machine in the form of HTTP protocol or RPC protocol.
[0012] Optionally, the partition router includes an access machine health check module, which is used to determine the current health score of the device access machine based on the load occupancy information and port occupancy information of the access machine, and control the port access status of the device access machine based on the current health score.
[0013] In a second aspect, the present application further proposes an Internet of Things system control method, which is used for the partition routing server described in any one of the first aspects, comprising:
[0014] Obtaining a network connection request from the terminal device;
[0015] A target access machine is recommended to the terminal device according to the network connection request and the built-in routing selection rule, so that the terminal device establishes a network connection with the target access machine.
[0016] Optionally, the step of recommending a target access device to the terminal device based on the network connection request and the built-in routing selection rule includes:
[0017] In a case where the built-in routing rule includes the first routing rule and the domain name information corresponding to the network connection request includes a dedicated domain name, the device access machine associated with the dedicated domain name is determined as the target access machine.
[0018] Optionally, the step of recommending a target access device to the terminal device based on the network connection request and the built-in routing selection rule includes:
[0019] In the case where the built-in routing selection rule further includes a second routing selection rule, obtaining the current number of terminal accesses to the port of each of the device access machines;
[0020] The device access machine with the smaller number of currently connected terminals is determined as the target access machine.
[0021] Optionally, the step of recommending a target access device to the terminal device based on the network connection request and the built-in routing selection rule includes:
[0022] In the case where the built-in routing selection rule further includes a second routing selection rule, obtaining current load occupancy information of each of the device access machines;
[0023] determine the device access machine with lower current load occupation information as the target access machine.
[0024] Optionally, the recommending the target access machine for the terminal device according to the network connection request and the built-in routing rule comprises:
[0025] In a case that the built-in routing rule further comprises a second routing rule, acquiring geographical position information of the terminal device according to the network connection request;
[0026] determining the device access machine with closer distance to the terminal device as the target access machine according to the geographical position information.
[0027] Optionally, the method further comprises:
[0028] acquiring load occupation information and port occupation information of each device access machine;
[0029] determining a current health score of the device access machine according to the load occupation information and the port occupation information;
[0030] switching the device access machine with the current health score less than or equal to a preset health score to an inaccessible state.
[0031] Optionally, the method further comprises:
[0032] acquiring a remaining number of access ports of all device access machines;
[0033] in a case that the remaining number is less than a preset number, issuing a horizontal expansion instruction to register a new device access machine through a HTTP protocol or a RPC protocol.
[0034] In a third aspect, the present application further provides an Internet of Things system control device, comprising:
[0035] an acquisition unit configured to acquire a network connection request of a terminal device;
[0036] a control unit configured to recommend a target access machine for the terminal device according to the network connection request and a built-in routing rule, so that the terminal device establishes network connection with the target access machine.
[0037] In a fourth aspect, the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the computer program stored in the memory to implement the steps of the Internet of Things system control method according to any one of the second aspect.
[0038] In a fifth aspect, the present application further proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the Internet of Things system control method of any one of the above items in the second aspect.
[0039] In summary, the Internet of Things system proposed in the embodiment of the present application includes: a terminal device; at least two device access machines for interacting with the above-mentioned terminal device for data; a partition routing server for recommending a target access machine for the above-mentioned terminal device based on the network connection request of the above-mentioned terminal device and the built-in routing selection rules, so that the above-mentioned terminal device can establish a network connection with the above-mentioned target access machine. The Internet of Things system proposed in the embodiment of the present application, by adding a partition routing server between the terminal device and the device access machine, can perform domain name resolution based on the network request of the terminal device, and recommend a suitable target access machine based on the built-in routing selection rule matching. By setting up multiple device access machines, the device access machine can be horizontally expanded, breaking through the upper limit of the number of physical connections of a single device access machine, and can support the simultaneous access of a large number of Internet of Things devices. By setting built-in routing selection rules, it is possible to realize the customization of business rules, dynamic issuance, and real-time effectiveness of device access machine resolution rules.
[0040] The Internet of Things system control method proposed in the embodiments of the present application, and other advantages, objectives and features of the present application will be reflected in part through the following description, and in part will also be understood by technical personnel in this field through research and practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present description. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0042] Figure 1 A schematic diagram of the structure of an Internet of Things system provided in an embodiment of the present application;
[0043] Figure 2 A flowchart of an Internet of Things system control method provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the structure of an Internet of Things system control device provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0046] Figure 1 The corresponding relationship between the reference numerals and the appendix names is as follows:
[0047] 101 terminal device; 102 device access machine; 103 partition routing server; 1031 intelligent routing selection module; 1032 network connection service module; 1033 access machine registration module; 1034 access machine health check module. DETAILED DESCRIPTION
[0048] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or that are inherent to these processes, methods, products or devices. The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments.
[0049] This application proposes an Internet of Things system 100, see Figure 1 , which is a schematic diagram of an Internet of Things system provided in an embodiment of the present application, may specifically include:
[0050] Terminal device 101;
[0051] At least two device access devices 102, used to interact with the terminal device 101;
[0052] The partition routing server 103 is configured to recommend a target access terminal to the terminal device 101 based on the network connection request of the terminal device 101 and built-in routing selection rules, so that the terminal device 101 can establish a network connection with the target access terminal.
[0053] For example, the terminal device 101 may be a smart home appliance, smart sensor device, or smart camera with IoT functionality. The device access machine 102 has one end connected to the terminal device 101 and the other end connected to the server. The network connection is established between the terminal device 101 and the device access machine 102, enabling the terminal device 101 to interact with the target server to display data. The IoT system proposed in this application proposes a partition routing server 103. By connecting the partition routing server 103 between the terminal device 101 and the device access machine 102, before the terminal device 101 requests a connection with the device access machine 102 corresponding to the target server, the partition routing server 103 first receives the network connection request from the terminal device 101, performs domain name resolution based on the network connection request, recommends a suitable target access machine for the terminal device 101 based on built-in routing selection rules, and sends the IP address of the suitable target access machine to the terminal device 101. The terminal device 101 then establishes a network connection with the target access machine based on the IP address of the target access machine, thereby enabling data interaction between the terminal device 101 and the device access machine 102. The device access machine 102 can be expanded horizontally, breaking through the upper limit of the number of physical connections of devices of a single device access machine 102, and can support the simultaneous access of massive IoT devices.
[0054] In summary, the IoT system proposed in the embodiments of the present application, by adding a partitioned routing server 103 between the terminal device 101 and the device access machine 102, can perform domain name resolution based on the network request of the terminal device 101 and recommend a suitable target access machine based on built-in routing selection rules. By setting up multiple device access machines 102, the device access machine 102 can be horizontally expanded, exceeding the upper limit of the number of physical device connections of a single device access machine 102, and can support the simultaneous access of a large number of IoT devices. By setting up built-in routing selection rules, business rules can be customized, dynamically issued, and the device access machine resolution rules that take effect in real time can be implemented.
[0055] In some examples, the partition router includes an intelligent routing module 1031, which stores the built-in routing rules. The built-in routing rules include a first routing rule, which is determined based on the domain name information corresponding to the network connection request.
[0056] Exemplarily, intelligent routing primarily implements service-defined routing rules. When a terminal device 101 initiates a DNS or HTTP / DNS request, the intelligent routing rules are invoked to match the IP address of an access point that meets the rules and return the result to the terminal. After obtaining the IP address of the device access point 102, the terminal device 101 performs subsequent access authentication, completing the final device access process. The partition router includes an intelligent routing module 1031, which stores built-in routing rules. These built-in routing rules include a first routing rule, which is determined based on the domain name information corresponding to the network connection request. This domain name information corresponds to the domain name information of the smart terminal. For example, if the domain name information is a VIP domain (dedicated domain), the IP address of the dedicated access point is provided to the smart terminal, and a connection is established between the smart terminal and the dedicated access point in accordance with the above-described method, thereby providing a higher level of network service for the smart terminal in the VIP domain name. It should be noted that the routing rules support service customization, dynamic distribution, and real-time effectiveness, resulting in high flexibility. It is understandable that the domain name information may also be a common domain name. When the domain name information is a common domain name, a common access device is provided to the terminal device 101 for connection.
[0057] In summary, the Internet of Things system proposed in the embodiment of the present application can provide a redirect access machine for the smart terminal based on the domain name information corresponding to the smart terminal when the domain name information is a VIP domain name, thereby providing better network services and improving user experience.
[0058] In some examples, the built-in routing selection rule further includes a second routing selection rule, which is determined based on the occupancy information of the device access machine 102 and / or the geographic location information of the terminal device 101, where the occupancy information includes load occupancy information and port occupancy information.
[0059] Exemplarily, the routing selection rules also include a second routing selection rule, which is determined based on the occupancy information of the device access machine 102 and the geographic location information of the terminal device 101. For example, the principle of the second routing selection rule determined based on the geographic location information of the terminal device 101 is that the geographic location information of the terminal device 101 can be determined by the IP address of the network request of the terminal device 101, and the device access machine 102 that is closer to the geographic location information is selected to connect to the terminal device 101. The principle of the second routing selection rule determined based on the occupancy information is that the occupancy information includes load occupancy information and port occupancy information. The load occupancy information includes resource indicators such as the CPU load and memory load of the device access machine 102. The port occupancy information is the number of terminal devices 101 connected to the device access machine 102. The device access machine 102 with lower load occupancy and port occupancy can be provided to the terminal device 101 to be connected, thereby balancing the workload between the various device access machines 102.
[0060] In summary, the Internet of Things system provided in the embodiment of the present application can combine the load and port usage of each device access machine 102 through the second routing selection rule, thereby balancing the working pressure between each device access machine 102.
[0061] In some examples, the partition router includes a network connection service module 1032, configured to perform DNS or HTTPDNS domain name resolution according to the network connection request to obtain the IP address of the access machine.
[0062] Exemplarily, the partition routing server 103 includes a network connection service module 1032, which can perform DNS or HTTPDNS domain name resolution to obtain the IP address of the access machine, thereby achieving network connection with the terminal device 101 and the device access machine 102. DNS (Domain Name System) is a service of the Internet. As a distributed database that maps domain names and IP addresses to each other, it enables people to access the Internet more conveniently. HTTPDNS uses the HTTP protocol to request port 80 of the DNS server, instead of the traditional DNS protocol to request port 53 of the DNS server. That is, the HTTP protocol is used to perform DNS resolution requests, and the resolution result returned by the server (the server IP corresponding to the domain name) is used to directly initiate a corresponding API service request to the IP address, instead of using the domain name.
[0063] In summary, the Internet of Things system provided in the embodiment of the present application can provide two network services, DNS or HTTPDNS, through the network connection service module 1032, and is compatible with device terminals of more networking methods.
[0064] In some examples, the partition router includes an access machine registration module 1033 for registering a new device access machine 102 in an HTTP protocol or an RPC protocol.
[0065] Exemplarily, the partition router also includes an access machine registration module 1033. When the number of device access machines 102 is insufficient to support the access of more terminal devices 101, or when some access machines malfunction, the access machine registration module 1033 registers new device access machines 102 via HTTP or RPC protocols, thereby promptly replenishing the needs of more terminal devices 101 to connect to the network. When a new device access machine 102 is connected to the partition routing server 103, it is necessary to adapt the dynamic registration interface of the device access machine 102. When the device access machine 102 goes online, the IP address drifts, or there is dynamic scaling, the access machine registration interface needs to be called to register the access machine IP address with the partition routing service server.
[0066] In summary, the IoT system proposed in the embodiment of the present application implements dynamic registration of the device access machine 102 through the access machine registration module 1033. Without modifying the original access process, the device access machine 102 can be horizontally expanded to support the access of massive devices.
[0067] In some examples, the partition router includes an access machine health check module 1034, which is used to determine the current health score of the device access machine 102 based on the load occupancy information and port occupancy information of the access machine, and control the port access status of the device access machine 102 based on the current health score.
[0068] For example, the health status of the device access machine 102 is checked and the health score is obtained by polling. The service provider can dynamically set the health index and disable the new terminal access function of the unhealthy device access machine 102 when the trigger condition is met, or directly shut down the device access machine 102.
[0069] In summary, the IoT system proposed in the embodiment of the present application uses the access machine health check module 1034 to monitor the health of the device access machine 102 and implement dynamic isolation to ensure that network services are normally provided to IoT terminals.
[0070] In a second aspect, the present application further proposes an Internet of Things system control method, which is used for the partition routing server in any embodiment of the first aspect, comprising:
[0071] S210: Obtain a network connection request from the terminal device;
[0072] For example, the terminal device may be a smart home appliance with IoT functionality, a smart sensor device, or a smart camera. The device access device establishes a network connection with the terminal device at one end and with the server at the other end. The terminal device establishes a network connection with the device access device, enabling the terminal device to interact with the target server for display data. The network connection request received by the partition routing server from the terminal device may be a DNS network connection request or an HTTP / NDS network connection request.
[0073] S220: Recommend a target access terminal to the terminal device according to the network connection request and the built-in routing selection rule, so that the terminal device establishes a network connection with the target access terminal.
[0074] For example, a partitioned routing server performs domain name resolution based on network connection requests and recommends a suitable target access point for the terminal device based on built-in routing selection rules. The server then sends the IP address of the target access point to the terminal device, which then establishes a network connection with the target access point based on the IP address, thereby enabling data exchange between the terminal device and the device access point. Through the partitioned routing server, device access points can also be scaled out, exceeding the upper limit on the number of physical connections for a single device access point and supporting the simultaneous access of massive numbers of IoT devices.
[0075] In summary, the IoT system control method proposed in the embodiment of the present application is that the partition routing server can perform domain name resolution based on the network request of the terminal device, and recommend a suitable target access machine based on the set routing selection rule matching. By controlling the partition routing server, more device access machines can be connected, and the device access machine can be horizontally expanded, breaking through the upper limit of the number of physical connections of a single device access machine, and can support the simultaneous access of massive IoT devices.
[0076] In some examples, recommending a target access device for the terminal device based on the network connection request and the built-in routing selection rule includes:
[0077] In a case where the built-in routing rule includes the first routing rule and the domain name information corresponding to the network connection request includes a dedicated domain name, the device access machine associated with the dedicated domain name is determined as the target access machine.
[0078] Exemplarily, the built-in routing rules include a first routing rule, which is determined based on the domain name information corresponding to the network connection request. The domain name information corresponds to the domain name information of the smart terminal. For example, if the domain name information is a VIP domain name (dedicated domain name), the IP address of the dedicated access machine is provided to the smart terminal, and a connection is established between the smart terminal and the dedicated access machine according to the above method, thereby providing a higher level of network service for the smart terminal in the VIP domain name. It should be noted that the routing rules support business customization, dynamic issuance, and real-time effectiveness, which is highly flexible. It is understood that the domain name information can also be a common domain name. When the domain name information is a common domain name, the common access machine is provided to the terminal device for connection.
[0079] In summary, the Internet of Things control method proposed in the embodiment of the present application can provide a redirection access machine for the smart terminal based on the domain name information corresponding to the smart terminal when the domain name information corresponds to a VIP domain name, thereby providing better network services and improving user experience.
[0080] In some examples, recommending a target access device for the terminal device based on the network connection request and the built-in routing selection rule includes:
[0081] In the case where the built-in routing selection rule further includes a second routing selection rule, obtaining the current number of terminal accesses to the port of each of the device access machines;
[0082] The device access machine with the smaller number of currently connected terminals is determined as the target access machine.
[0083] Exemplarily, the routing selection rules further include a second routing selection rule, which is determined based on occupancy information of the device access machine and geographic location information of the terminal device. The occupancy information includes load occupancy information and port occupancy information. The current number of terminal accesses at the port of each device access machine is obtained, and the device access machine with the lowest number of terminal accesses is determined as the target access machine, so that the terminal device establishes a network connection with the target access machine.
[0084] In summary, the IoT control method proposed in the embodiment of the present application balances the pressure on the access ports between the various device access machines by obtaining the current number of terminal accesses to the port of each device access machine and determining the device access machine with the smaller number of current terminal accesses as the target access machine.
[0085] In some examples, recommending a target access device for the terminal device based on the network connection request and the built-in routing selection rule includes:
[0086] In the case where the built-in routing selection rule further includes a second routing selection rule, obtaining current load occupancy information of each of the device access machines;
[0087] The device access machine with the lower current load occupancy information is determined as the target access machine.
[0088] Exemplarily, the load occupancy information includes resource indicators such as the CPU load and memory load of the device access machine. By obtaining the current load occupancy information of the device access machine and determining the device access machine with lower current load occupancy information as the above-mentioned target access machine, the load occupancy pressure between the various device access machines can be balanced.
[0089] In some examples, recommending a target access device for the terminal device based on the network connection request and the built-in routing selection rule includes:
[0090] In a case where the built-in routing rule further includes a second routing rule, obtaining geographical location information of the terminal device according to the network connection request;
[0091] According to the geographic location information, the device access terminal that is closer to the terminal device is determined as the target access terminal.
[0092] For example, the geographical location of the terminal device can be determined by the IP address of the terminal device's network request, and a device access terminal that is closer to the geographical location can be selected for connection to the terminal device, thereby improving the network connection speed and data transmission speed between the device terminal and the device access terminal.
[0093] In some examples, the method further includes:
[0094] Obtaining the load occupancy information and port occupancy information of each of the above-mentioned device access machines;
[0095] Determine the current health score of the device access device based on the load occupancy information and the port occupancy information;
[0096] The device access machine whose current health score is less than or equal to the preset health score is switched to an inaccessible state.
[0097] For example, the health status of the device access machine is checked in a polling manner to obtain a health score, the business party can dynamically set a health index, and when a triggering condition is met, the access of a new terminal to the unhealthy device access machine is closed, or the device access machine is directly closed. For example, if the CPU, memory or IO of the device access machine has any abnormality, 10 points are deducted from the full score of 100 points, and if the number of access terminal devices reaches a preset threshold, 20 points are deducted. The health index (preset health score) can be set to 80 points, and the device access machine with a health index less than or equal to the preset health score is switched to an inaccessible state.
[0098] In summary, the Internet of Things system control method provided in the embodiments of the present application realizes health monitoring of the device access machine through the access machine health check module and realizes dynamic isolation, thereby ensuring normal network service for the Internet of Things terminal.
[0099] In some examples, the above method further includes:
[0100] obtaining the remaining number of access ports of all device access machines;
[0101] In the case where the remaining number is less than the preset number, a horizontal expansion instruction is issued to register a new device access machine in the partition routing server in a manner of HTTP protocol or RPC protocol, thereby providing more terminal interfaces for the Internet of Things system and realizing horizontal expansion of the device access machine.
[0102] For example, the remaining number of access ports of all device access machines is obtained, and in the case where the remaining number is less than the preset number, the subsequent intelligent terminal cannot access the device access machine. At this time, a horizontal expansion instruction is issued to register a new device access machine in the partition routing server in a manner of HTTP protocol or RPC protocol, thereby providing more terminal interfaces for the Internet of Things system and realizing horizontal expansion of the device access machine.
[0103] Referring to Figure 3 An embodiment of the Internet of Things system control device in the embodiments of the present application can include:
[0104] The obtaining unit 31 is configured to obtain a network connection request of the terminal device;
[0105] The control unit 32 is configured to recommend a target access machine for the terminal device according to the network connection request and the built-in routing selection rule, so that the terminal device establishes network connection with the target access machine.
[0106] As Figure 4 shown, the embodiments of the present application further provide an electronic device 400, which includes a memory 410, a processor 420 and a computer program 411 stored in the memory 410 and executable on the processor. When the processor 420 executes the computer program 411, the steps of any method of the above Internet of Things system control are implemented.
[0107] Since the electronic device introduced in this embodiment is a device used to implement an Internet of Things system control device in the embodiment of the present application, based on the method introduced in the embodiment of the present application, technical personnel in this field can understand the specific implementation of the electronic device of this embodiment and its various variations. Therefore, how the electronic device implements the method in the embodiment of the present application is no longer introduced in detail here. As long as the equipment used by technical personnel in this field to implement the method in the embodiment of the present application falls within the scope of protection to be protected by this application.
[0108] In a specific implementation process, the computer program 411 can be implemented when executed by a processor. Figure 2 Any implementation manner in the corresponding embodiments.
[0109] It should be noted that, in the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0110] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0111] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0112] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1The function specified in one or more boxes.
[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0114] The present application also provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device is caused to execute the following Figure 2 The process of the Internet of Things system control method in the corresponding embodiment.
[0115] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0116] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0117] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0119] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An Internet of Things system, characterized in that: include: terminal equipment; At least two device access devices, used for data interaction with the terminal device; A partition routing server, configured to recommend a target access machine to the terminal device based on the network connection request of the terminal device and built-in routing selection rules, so that the terminal device establishes a network connection with the target access machine; The partition routing server includes an intelligent routing selection module, which stores the built-in routing selection rules. The built-in routing selection rules support business customization, dynamic distribution and real-time effectiveness; The built-in routing selection rule includes a first routing selection rule, which is determined based on the domain name information corresponding to the network connection request; when the domain name information is a dedicated domain name, a dedicated access machine is recommended to the terminal device so that the terminal device establishes a connection with the dedicated access machine; when the domain name information is a common domain name, a common access machine is recommended to the terminal device so that the terminal device establishes a connection with the common access machine; The built-in routing selection rule also includes a second routing selection rule, which is determined based on the occupancy information of the device access machine and / or the geographical location information of the terminal device, wherein the occupancy information includes load occupancy information and port occupancy information; the principle of the second routing selection rule determined based on the geographical location information of the terminal device is to determine the geographical location information of the terminal device through the IP address of the network connection request of the terminal device, and select a device access machine that is closer to the geographical location information to connect to the terminal device; the principle of the second routing selection rule determined based on the occupancy information of the device access machine is to provide the terminal device with a device access machine with lower load occupancy and port occupancy for connection.
2. The Internet of Things system according to claim 1, characterized in that The partition routing server includes a network connection service module, which is used to perform DNS or HTTPDNS domain name resolution according to the network connection request to obtain the IP address of the access machine.
3. The Internet of Things system according to claim 1, characterized in that The partition routing server includes an access machine registration module, which is used to register a new device access machine in the form of HTTP protocol or RPC protocol.
4. The Internet of Things system according to claim 1, characterized in that The partition routing server includes an access machine health check module, which is used to determine the current health score of the device access machine according to the load occupancy information and port occupancy information of the access machine, and control the port access status of the device access machine based on the current health score.
5. A method for controlling an Internet of Things system, used for the partition routing server according to any one of claims 1 to 4, characterized in that: include: Obtaining a network connection request from the terminal device; recommending a target access machine for the terminal device according to the network connection request and the built-in routing selection rule, so that the terminal device establishes a network connection with the target access machine; The built-in routing rules support business customization, dynamic issuance and real-time effectiveness; The recommending a target access device for the terminal device according to the network connection request and the built-in routing selection rule includes: In a case where the built-in routing rule includes the first routing rule and the domain name information corresponding to the network connection request includes a dedicated domain name, determining a device access machine associated with the dedicated domain name as the target access machine; In a case where the built-in routing rule includes the first routing rule and the domain name information corresponding to the network connection request includes a common domain name, providing a common access machine to the terminal device for connection; In a case where the built-in routing selection rule further includes a second routing selection rule, obtaining the current number of terminal accesses at the port of each device access machine, and determining a device access machine with a smaller current number of terminal accesses as the target access machine; In a case where the built-in routing selection rule further includes a second routing selection rule, obtaining current load occupancy information of each of the device access terminals, and determining the device access terminal with the lower current load occupancy information as the target access terminal; In the case that the built-in routing selection rule further includes a second routing selection rule, geographical location information of the terminal device is acquired according to the network connection request, and a device access device that is closer to the terminal device is determined as the target access device according to the geographical location information.
6. The method according to claim 5, characterized in that Also includes: Obtaining load occupancy information and port occupancy information of each device access machine; Determine a current health score of the device access device according to the load occupancy information and the port occupancy information; The device access machine whose current health score is less than or equal to the preset health score is switched to an inaccessible state.
7. The method according to claim 5, characterized in that Also includes: Get the remaining number of access ports of all device access machines; When the remaining number is less than the preset number, a horizontal expansion instruction is issued to register a new device access machine through the HTTP protocol or the RPC protocol.
8. An Internet of Things system control device, used for the partition routing server according to any one of claims 1 to 4, characterized in that: include: an acquiring unit, configured to acquire a network connection request from the terminal device; a control unit, configured to recommend a target access machine to the terminal device according to the network connection request and the built-in routing selection rule, so that the terminal device establishes a network connection with the target access machine; The built-in routing rules support business customization, dynamic issuance and real-time effectiveness; The built-in routing selection rule includes a first routing selection rule, which is determined based on the domain name information corresponding to the network connection request; when the domain name information is a dedicated domain name, a dedicated access machine is recommended to the terminal device so that the terminal device establishes a connection with the dedicated access machine; when the domain name information is a common domain name, a common access machine is recommended to the terminal device so that the terminal device establishes a connection with the common access machine; The built-in routing selection rule also includes a second routing selection rule, which is determined based on the occupancy information of the device access machine and / or the geographical location information of the terminal device, wherein the occupancy information includes load occupancy information and port occupancy information; the principle of the second routing selection rule determined based on the geographical location information of the terminal device is to determine the geographical location information of the terminal device through the IP address of the network connection request of the terminal device, and select a device access machine that is closer to the geographical location information to connect to the terminal device; the principle of the second routing selection rule determined based on the occupancy information of the device access machine is to provide the terminal device with a device access machine with lower load occupancy and port occupancy for connection.
9. An electronic device comprising: A memory and a processor, wherein the processor is configured to implement the steps of the Internet of Things system control method according to any one of claims 5 to 7 when executing a computer program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the Internet of Things system control method according to any one of claims 5 to 7 are implemented.
Citation Information
Patent Citations
IoT (Internet of Things) platform access management method, device and system
CN109660593A
Public cloud multi-node device access routing method and system
CN114189469A