Intelligent gateway of Internet of Things

By calculating the activity level and data transmission volume of IoT devices, data packets from active devices are prioritized for forwarding while other data is cached, thus solving the problem of insufficient data packet forwarding capability of smart gateways and achieving timely and complete data transmission.

CN121547425AInactive Publication Date: 2026-02-17CHONGQING IND POLYTECHNIC COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310628415.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2026-02-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing smart gateways are prone to packet loss when their packet forwarding capabilities are insufficient, affecting data authenticity and timely transmission.

Method used

By calculating the activity coefficient and data transmission volume of IoT devices, a transmit/receive coefficient G is generated. Data packets from active devices are forwarded first, and other data packets are cached in a temporary storage unit. Once the gateway unit's capabilities are restored, the data packets are forwarded in descending order of the transmit/receive coefficient G.

Benefits of technology

It effectively reduced packet loss rate, ensured timely transmission of important data, and improved the user experience and data integrity of IoT devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FDA0004257664580000011
    Figure FDA0004257664580000011
  • Figure FDA0004257664580000012
    Figure FDA0004257664580000012
  • Figure FDA0004257664580000021
    Figure FDA0004257664580000021
Patent Text Reader

Abstract

The invention discloses an intelligent gateway of the Internet of Things, and belongs to the technical field of the Internet of Things. When the data packet forwarding capability of a gateway unit is not enough to forward data of Internet of Things equipment which is currently connected with the gateway unit, the data packet forwarding capability of the intelligent gateway is not enough; the forwarding sequence of the data packets corresponding to the Internet of Things devices is arranged through the receiving and transmitting coefficients G corresponding to the Internet of Things devices, the problem that the data authenticity and integrity are affected due to serious packet loss caused by over-limit work of the gateway unit is avoided, and the use experience of the Internet of Things devices is improved; according to the invention, the data packets corresponding to the important Internet of Things equipment can be timely processed as far as possible, the subsequent data processing steps are not influenced, and the influence of delayed transmission of part of data packets on the Internet of Things system is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of Internet of Things (IoT) technology, specifically, it relates to an IoT smart gateway. Background Technology

[0002] A smart gateway is a key device for realizing the intelligence of a local area network. It can perform functions such as information collection, input, output, centralized control, remote control, and linkage control of various sensors, network devices, cameras, and hosts within the local area network.

[0003] When forwarding data collected from connected IoT devices through a smart gateway, there are corresponding requirements for the smart gateway's line-speed forwarding capability. If the smart gateway's line-speed forwarding capability is insufficient to support the forwarding of information from the corresponding IoT devices, it may lead to significant packet loss in some data packets, affecting the authenticity of the data and causing packet forwarding lag, which is not conducive to the timely transmission of important information. In order to solve the above problems, this invention provides a method to reduce the impact of packet loss under the condition that the smart gateway's packet forwarding capability is limited. The invention provides the following technical solution. Summary of the Invention

[0004] The purpose of this invention is to provide an IoT smart gateway that solves the problem of packet loss and other issues that easily occur when the data packet forwarding capability of the smart gateway is limited in the prior art.

[0005] The objective of this invention can be achieved through the following technical solutions:

[0006] An Internet of Things (IoT) smart gateway, comprising:

[0007] The Internet of Things (IoT) device terminal includes several IoT devices, which communicate with traditional communication networks through a gateway unit;

[0008] The gateway unit is used to establish a communication connection between the sensing network of IoT device terminals and the traditional communication network;

[0009] Temporary storage unit, used for temporary storage of data packets corresponding to IoT devices;

[0010] The controller unit is used to obtain the forwarding strategy of the data packets corresponding to each IoT device;

[0011] The method by which the controller unit obtains the forwarding strategy of the data packets corresponding to each IoT device includes the following steps:

[0012] The first step is to divide a cycle into n response periods;

[0013] When an IoT device establishes a communication connection with a gateway unit, the activity coefficient R of the IoT device in each response period is obtained.

[0014] The activity coefficient R represents the activity level of IoT devices during each response period;

[0015] The second step is to obtain the total duration tz of the communication connection established between the sample device and the gateway unit within the past preset time T3.

[0016] Get the connection duration tsj for each time the sample device establishes a communication connection with the gateway unit within the past preset time T4, where 1≤j≤m, and m is the total number of times the sample device establishes a communication connection with the gateway unit within the past T4 time.

[0017] According to the formula The coefficient of variation F1 corresponding to the set of data from ts1 to tsm is calculated.

[0018] Where tsp=(ts1+ts2+,…,+tsm) / m;

[0019] Get the data transmission volume gj corresponding to each time the sample device establishes a communication connection with the gateway unit within the past preset time T4;

[0020] According to the formula The coefficient of variation F2 corresponding to the data set from g1 to gm was calculated.

[0021] Where gp = (g1 + g2 + ... + gm) / m;

[0022] The third step is to acquire IoT devices that have established a communication connection with the gateway unit while the gateway unit is working.

[0023] Obtain the current response time period and the activity coefficient R of each IoT device within that response time period;

[0024] According to the formula The transceiver coefficient G for each IoT device is calculated.

[0025] Where β1, β2, β3, and β4 are all preset coefficients;

[0026] The fourth step is to store the data packets to be forwarded by each IoT device in the temporary storage unit in ascending order of the transmit / receive coefficient G, when the data packet forwarding capability of the gateway unit is sufficient to support the forwarding of other data packets except the data packets currently being forwarded, and to forward the data packets in the temporary storage unit in descending order of the transmit / receive coefficient G of the corresponding IoT device.

[0027] As a further aspect of the present invention, the method for calculating the activity coefficient R of each IoT device within each response time period is as follows:

[0028] For an IoT device, it is marked as a sample device. When the sample device establishes a communication connection with the gateway unit, the initial time of the establishment of the communication connection between the sample device and the gateway unit and the time period of the establishment of the communication connection between the sample device and the gateway unit are obtained.

[0029] Within the past preset time T1, obtain the number of times ci, the initial time of establishing a communication connection between the sample device and the gateway unit falls within each response period, and the total number of times cz, the sample device and the gateway unit establish a communication connection. Calculate the point occupancy value ri of the sample device in the corresponding response period according to the formula ri = ci / cz.

[0030] The total duration ti of the portion of the time period during which the sample device establishes a communication connection with the gateway unit and overlaps with each response period is obtained within the past preset time T1, as well as the duration t of each response period. The area occupancy value di of the sample device in the corresponding response period is calculated according to the formula di = ti / nt.

[0031] Where 1≤i≤n, the duration of each response period is a preset value t;

[0032] According to the formula The activity coefficient R of the sample device during the corresponding response period was calculated;

[0033] α1 and α2 are both preset values;

[0034] The activity coefficients of each IoT device are calculated.

[0035] As a further aspect of the present invention, one cycle is one day, and the duration of one response period is 40 minutes.

[0036] As a further aspect of the present invention, the activity coefficient R of each sample device in each response period is updated every preset time T2.

[0037] As a further embodiment of the present invention, the gateway unit can meet the interface protocols of various platforms and also meet the access requirements of various IoT devices.

[0038] As a further aspect of the present invention, when the IoT devices actually connected to the gateway unit change, an updated queue list of each IoT device is generated in ascending order of the transmit / receive coefficient G. If the data packet forwarding capability of the gateway unit is insufficient, the operation in step four is performed according to the order of this queue list.

[0039] The beneficial effects of this invention are:

[0040] 1. When the data packet forwarding capability of the gateway unit is insufficient to simultaneously forward data from IoT devices currently connected to the gateway unit, this invention arranges the forwarding order of data packets for each IoT device by using the corresponding transmit / receive coefficient G. This avoids severe packet loss caused by the gateway unit working beyond its limits, which could affect the authenticity and integrity of the data and improve the user experience of IoT devices.

[0041] 2. This invention prioritizes forwarding data packets from IoT devices with good data collection regularity, and prioritizes transmitting data packets from IoT devices that are less active during the corresponding response period and have a shorter overall response time. This ensures that data packets from important IoT devices can be processed in a timely manner without affecting subsequent data processing steps, and reduces the impact of delayed transmission of some data packets on the IoT system.

[0042] 3. This invention generates a queue list of each IoT device in real time, ordered from smallest to largest according to the transmit / receive coefficient G. When the data packet forwarding capacity of the gateway unit is insufficient, the strategy is adjusted according to the queue list, which ensures the real-time update of the strategy while reducing the computational load of the controller unit. Detailed Implementation

[0043] The technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0044] An Internet of Things (IoT) smart gateway, comprising:

[0045] The Internet of Things (IoT) device terminal includes several IoT devices. The IoT devices are used to collect corresponding IoT information and communicate with traditional communication networks through a gateway unit.

[0046] The gateway unit is used to establish a communication connection between the sensing network of IoT device terminals and the traditional communication network;

[0047] Preferably, the gateway unit can meet the interface protocols of various platforms and also meet the access requirements of various IoT devices;

[0048] The temporary storage unit temporarily stores data packets corresponding to some IoT devices when the gateway unit's data packet forwarding capability is insufficient.

[0049] When a data packet in the temporary storage unit is forwarded, the corresponding data packet in the data packet is deleted.

[0050] The controller unit is used to analyze the information transmission status of IoT device terminals that have established communication connections with the gateway unit over a period of time, so as to obtain the forwarding strategy of each IoT device for the corresponding data packets when the line-speed forwarding capability of the gateway unit is insufficient to support the normal forwarding of all data packets.

[0051] The method by which the controller unit obtains the forwarding strategy of the data packets corresponding to each IoT device is as follows:

[0052] Includes the following steps:

[0053] The first step is to obtain the activity coefficient R of the IoT device in each response period when the IoT device establishes a communication connection with the gateway unit.

[0054] The activity coefficient R represents the activity level of IoT devices during each response period;

[0055] Specifically, the calculation method for the activity coefficient R of each IoT device within each response time period is as follows:

[0056] Divide a period of time into n response periods;

[0057] The specific duration of the response period is determined based on the type of IoT device terminal and the working environment, etc.

[0058] In one embodiment of the present invention, a cycle is 24 hours a day, and the duration of a response period is 40 minutes.

[0059] For an IoT device, it is marked as a sample device. When the sample device establishes a communication connection with the gateway unit, the initial time of the establishment of the communication connection between the sample device and the gateway unit and the time period of the establishment of the communication connection between the sample device and the gateway unit are obtained.

[0060] Within the past preset time T1, obtain the number of times ci, the initial time of establishing a communication connection between the sample device and the gateway unit falls within each response period, and the total number of times cz, the sample device and the gateway unit establish a communication connection. Calculate the point occupancy value ri of the sample device in the corresponding response period according to the formula ri = ci / cz.

[0061] The total duration ti of the portion of the time period during which the sample device establishes a communication connection with the gateway unit and overlaps with each response period is obtained within the past preset time T1, as well as the duration t of each response period. The area occupancy value di of the sample device in the corresponding response period is calculated according to the formula di = ti / nt.

[0062] Where 1≤i≤n, the duration of each response period is a preset value t;

[0063] According to the formula The activity coefficient R of the sample device during the corresponding response period was calculated;

[0064] α1 and α2 are both preset values;

[0065] The activity coefficients of each IoT device are calculated.

[0066] In one embodiment of the present invention, the activity coefficient R of each sample device in each response period is updated every preset time T2;

[0067] The second step is to obtain the total duration tz of the communication connection established between the sample device and the gateway unit within the past preset time T3.

[0068] Get the connection duration tsj for each time the sample device establishes a communication connection with the gateway unit within the past preset time T4, where 1≤j≤m, and m is the total number of times the sample device establishes a communication connection with the gateway unit within the past T4 time.

[0069] According to the formula The coefficient of variation F1 corresponding to the set of data from ts1 to tsm is calculated.

[0070] Where tsp=(ts1+ts2+,…,+tsm) / m;

[0071] Get the data transmission volume gj corresponding to each time the sample device establishes a communication connection with the gateway unit within the past preset time T4;

[0072] According to the formula The coefficient of variation F2 corresponding to the data set from g1 to gm was calculated.

[0073] Where gp = (g1 + g2 + ... + gm) / m;

[0074] The third step is to acquire IoT devices that have established a communication connection with the gateway unit while the gateway unit is working.

[0075] Obtain the current response time period and the activity coefficient R of each IoT device within that response time period;

[0076] According to the formula The transceiver coefficient G for each IoT device is calculated.

[0077] Where β1, β2, β3, and β4 are all preset coefficients;

[0078] The fourth step is to store the data packets to be forwarded by each IoT device in the temporary storage unit in the order of the transmit / receive coefficient G from small to large when the data packet forwarding capacity of the gateway unit is sufficient to support the gateway unit to forward additional data packets other than the data packets currently being forwarded. When the data packet forwarding capacity of the gateway unit is sufficient to support the gateway unit to forward additional data packets other than the data packets currently being forwarded, the data packets in the temporary storage unit are forwarded in the order of the transmit / receive coefficient G of the corresponding IoT device from large to small.

[0079] The insufficient data packet forwarding capability of the gateway unit refers to the fact that the gateway unit experiences packet loss or a packet loss rate exceeding a preset value during the forwarding of data packets.

[0080] In one embodiment of the present invention, when the IoT devices actually connected to the gateway unit change, an updated queue list of each IoT device is generated in ascending order of the transmit / receive coefficient G. If the data packet forwarding capability of the gateway unit is insufficient, the operation in the fourth step above is performed according to the order of the queue list.

[0081] When the data packet forwarding capacity of the gateway unit is insufficient to simultaneously forward data from IoT devices currently connected to the gateway unit, this invention arranges the forwarding order of data packets for each IoT device through the corresponding transmit / receive coefficient G. This avoids severe packet loss caused by the gateway unit exceeding its operating limits, which could affect the authenticity and integrity of the data. Specifically, data packets from IoT devices with good data collection regularity are forwarded first, while data packets from IoT devices that are less active during their corresponding response periods and have shorter overall response times are transmitted first. This ensures that data packets from important IoT devices can be processed in a timely manner without affecting subsequent data processing steps.

[0082] In the description of this specification, the references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0083] The above description is merely an example and illustration of the present invention. Those skilled in the art can make various modifications or additions to the specific embodiments described, or use similar methods to replace them, as long as they do not deviate from the invention or exceed the scope defined in the claims, all of which should fall within the protection scope of the present invention.

Claims

1. An Internet of Things (IoT) smart gateway, characterized in that, include: The Internet of Things (IoT) device terminal includes several IoT devices, which communicate with traditional communication networks through a gateway unit; The gateway unit is used to establish a communication connection between the sensing network of IoT device terminals and the traditional communication network; Temporary storage unit, used for temporary storage of data packets corresponding to IoT devices; The controller unit is used to obtain the forwarding strategy of the data packets corresponding to each IoT device; The method by which the controller unit obtains the forwarding strategy of the data packets corresponding to each IoT device includes the following steps: The first step is to divide a period of time into n response periods; When an IoT device establishes a communication connection with a gateway unit, the activity coefficient R of the IoT device in each response period is obtained. The activity coefficient R represents the activity level of IoT devices during each response period; The second step is to obtain the total duration tz of the communication connection established between the sample device and the gateway unit within the past preset time T3. Get the connection duration tsj for each time the sample device establishes a communication connection with the gateway unit within the past preset time T4, where 1≤j≤m, and m is the total number of times the sample device establishes a communication connection with the gateway unit within the past T4 time. According to the formula The coefficient of variation F1 corresponding to the set of data from ts1 to tsm is calculated. Where tsp=(ts1+ts2+,…,+tsm) / m; Get the data transmission volume gj corresponding to each time the sample device establishes a communication connection with the gateway unit within the past preset time T4; According to the formula The coefficient of variation F2 corresponding to the data set from g1 to gm was calculated. Where gp = (g1 + g2 + ... + gm) / m; The third step is to acquire IoT devices that have established a communication connection with the gateway unit while the gateway unit is working. Obtain the current response time period and the activity coefficient R of each IoT device within that response time period; According to the formula The transceiver coefficient G for each IoT device is calculated. Where β1, β2, β3, and β4 are all preset coefficients; The fourth step is to store the data packets to be forwarded by each IoT device in the temporary storage unit in ascending order of the transmit / receive coefficient G, when the data packet forwarding capability of the gateway unit is sufficient to support the forwarding of other data packets except the data packets currently being forwarded, and to forward the data packets in the temporary storage unit in descending order of the transmit / receive coefficient G of the corresponding IoT device.

2. The IoT smart gateway according to claim 1, characterized in that, The method for calculating the activity coefficient R of each IoT device within each response time period is as follows: For an IoT device, it is marked as a sample device. When the sample device establishes a communication connection with the gateway unit, the initial time of the establishment of the communication connection between the sample device and the gateway unit and the time period of the establishment of the communication connection between the sample device and the gateway unit are obtained. Within the past preset time T1, obtain the number of times ci, the initial time of establishing a communication connection between the sample device and the gateway unit falls within each response period, and the total number of times cz, the sample device and the gateway unit establish a communication connection. Calculate the point occupancy value ri of the sample device in the corresponding response period according to the formula ri = ci / cz. The total duration ti of the portion of the time period during which the sample device establishes a communication connection with the gateway unit and overlaps with each response period is obtained within the past preset time T1, as well as the duration t of each response period. The area occupancy value di of the sample device in the corresponding response period is calculated according to the formula di = ti / nt. Where 1≤i≤n, the duration of each response period is a preset value t; According to the formula The activity coefficient R of the sample device during the corresponding response period was calculated; α1 and α2 are both preset values; The activity coefficients of each IoT device are calculated.

3. The IoT smart gateway according to claim 2, characterized in that, One cycle is one day, and the duration of one response period is 40 minutes.

4. The IoT smart gateway according to claim 2, characterized in that, The activity coefficient R of each sample device is updated every preset time T2 during each response period.

5. The IoT smart gateway according to claim 1, characterized in that, The gateway unit can meet the interface protocols of various platforms and also enable access for various IoT devices.

6. The IoT smart gateway according to claim 1, characterized in that, When the IoT devices actually connected to the gateway unit change, an updated queue list of each IoT device is generated in ascending order of the transmit / receive coefficient G. If the gateway unit's data packet forwarding capacity is insufficient, the operation in step four is performed according to the order of this queue list.