Method, apparatus, device, medium and product for controlling internet of things device communication
By dividing the communication addresses of IoT devices into three segments and managing the entire lifecycle of multicast, the network congestion problem caused by the surge in broadcast data volume was solved, enabling efficient and stable communication of large-scale IoT device clusters and improving the utilization rate of communication resources and the quality of network services.
Patent Information
- Application Number
- CN202611654236.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-20
AI Technical Summary
In IoT device communication, the surge in broadcast data volume leads to a large amount of network resources being occupied, causing network congestion and a decline in communication efficiency. It is impossible to effectively constrain the broadcast packet sending permissions and frequency, resulting in frequent terminal broadcasting, repeated packet sending, and the long-term existence of invalid communication nodes, making it difficult to meet the efficient, stable, and low-redundancy collaborative communication requirements of large-scale IoT clusters.
By dividing the entire network communication addresses into three segments, the boundary isolation of unicast, multicast, and broadcast communication modes is achieved. A unified and standardized management and control system for multicast groups, addresses, and members is established. A real-time monitoring and periodic polling mechanism is implemented, offline devices are automatically cleared, broadcast authorization and frequency limiting mechanisms are set, and network load is monitored in real time for adaptive switching.
It achieves the isolation and differentiation of unicast, multicast and broadcast communication resources, reduces the ineffective resource consumption of irrelevant devices, avoids network congestion and bandwidth waste, improves the utilization rate and stability of communication resources, and ensures the overall service quality of the network.
Smart Images

Figure CN123145237A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet of Things (IoT) technology, and in particular to methods, apparatus, devices, media, and products for communication control of IoT devices. Background Technology
[0002] In related technologies, the communication methods between IoT devices are mainly divided into unicast and broadcast.
[0003] Unicast refers to a device sending data to a single target device in the network. The sender needs to know the receiver's short network address. After the data packet is sent from the source device, it is forwarded through one or more hops to reach the target device. Broadcast refers to a device sending data to all devices in the network. The sender sets the destination address of the data packet to a specific broadcast address. The data packet is relayed layer by layer by routers or coordinator nodes to achieve full network coverage.
[0004] However, when using the above communication method, any device can initiate a network-wide broadcast simply by setting the destination address to a broadcast address. When a device sends broadcast data packets at high frequency, all devices on the network will be continuously awakened and processed to handle a large number of invalid broadcast messages. This leads to the bandwidth of legitimate communication being squeezed, making it difficult for normal business data to be effectively transmitted in the channel, resulting in a decline in the overall network service quality. In large-scale networks, a surge in broadcast data volume can lead to a large occupation of network resources, thereby causing network congestion and a decrease in communication efficiency. Summary of the Invention
[0005] In view of the above problems, methods, apparatus, devices, media, and products for communication control of Internet of Things (IoT) devices are proposed to overcome or at least partially solve the above problems, including: In a first aspect, the present invention provides a method for communication control of an Internet of Things (IoT) device, the method comprising: Obtain independent address ranges obtained by dividing the entire network communication addresses into address ranges; wherein, the independent address ranges include unicast address ranges, multicast address ranges, and broadcast address ranges; From the unicast address range, unicast addresses are allocated to IoT devices in the current IoT device cluster, and multiple device communication groups are created for the current IoT device cluster. From the multicast address range, multicast addresses are allocated to the multiple device communication groups. Maintain a multicast member list for each device communication group, and perform multicast full lifecycle management on the device communication group based on the multicast member list, including: continuously verifying the online status of IoT devices in the multicast member list, and / or removing IoT devices from the multicast member list; Obtain broadcast configuration parameters and control the broadcast data packets in the current IoT device cluster according to the broadcast configuration parameters; wherein the broadcast data packets use addresses in the broadcast address range.
[0006] Optionally, it also includes: Monitor the current network load parameters; When the network load parameter indicates that the current network is under high load, the broadcast data packet to be sent is converted into a multicast data packet for the target communication group and sent to the target communication group.
[0007] Optionally, before converting the broadcast data packets to be sent into multicast data packets for the target communication group, the method further includes: Determine the service semantic information in the broadcast data packet to be sent, and determine the target communication group mapped to the broadcast data packet to be sent based on the service semantic information; And / or, determine the topic subscription relationship of the broadcast data packet to be sent, and determine the target communication group mapped to the broadcast data packet to be sent based on the topic subscription relationship.
[0008] Optionally, the network load parameters include any one or more of the following: channel occupancy rate and communication concurrency.
[0009] Optionally, multiple device communication groups can be created for the current IoT device cluster, including: Determine the device attribute information of the IoT devices in the current IoT device cluster; By setting IoT devices with the same device attribute information as the same device communication group, multiple device communication groups are obtained in the current IoT device cluster.
[0010] Optionally, the device attribute information includes any one or more of the following: device type, deployment area, and application scenario.
[0011] Optionally, based on the multicast member list, multicast lifecycle management is performed on the device communication group, including: The online status of IoT devices in the multicast member list is continuously verified through real-time status monitoring and periodic polling mechanisms in order to update the multicast member list. And / or, when a device is detected to be offline, powered off, or disconnected from the network, the corresponding IoT device is removed from the multicast member list to update the multicast member list.
[0012] Optionally, the broadcast configuration parameters include a list of authorized devices with broadcast permissions; based on the broadcast configuration parameters, control is exercised over broadcast data packets in the current IoT device cluster, including: When an IoT device initiates a broadcast request in the current IoT device cluster, the broadcast permission of the corresponding IoT device is verified according to the authorized device list. If the corresponding IoT device has broadcast permissions, then sending broadcast data packets is permitted; If the corresponding IoT device does not have broadcast permissions, it is not allowed to send broadcast data packets.
[0013] Optionally, the broadcast configuration parameters include a broadcast frequency threshold; according to the broadcast configuration parameters, controlling the broadcast data packets in the current IoT device cluster includes: When an IoT device in the current IoT device cluster initiates a broadcast request and has broadcast permissions, the frequency of broadcast data packets is limited according to the broadcast frequency threshold.
[0014] Optionally, the network-wide communication address is a 16-bit network short address based on a short-range wireless communication standard protocol.
[0015] Secondly, the present invention provides an apparatus for communication control of Internet of Things (IoT) devices, the apparatus comprising: An independent address range acquisition module is used to acquire independent address ranges obtained by dividing the entire network communication addresses into address ranges; wherein, the independent address ranges include unicast address ranges, multicast address ranges, and broadcast address ranges; The address allocation module is used to allocate unicast addresses to IoT devices in the current IoT device cluster from the unicast address range, and to create multiple device communication groups for the current IoT device cluster, and allocate multicast addresses to the multiple device communication groups from the multicast address range. The multicast lifecycle management module is used to maintain a multicast member list for each device communication group and, based on the multicast member list, to perform multicast lifecycle management on the device communication group, including: continuously verifying the online status of IoT devices in the multicast member list, and / or removing IoT devices from the multicast member list; The broadcast control module is used to acquire broadcast configuration parameters and control the broadcast data packets in the current IoT device cluster according to the broadcast configuration parameters; wherein the broadcast data packets use addresses in the broadcast address range.
[0016] Thirdly, the present invention provides an electronic device including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method described above.
[0017] Fourthly, the present invention provides a computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method described above.
[0018] Fifthly, the present invention provides a computer program product, including a computer program that, when executed by a processor, implements the method described above.
[0019] The embodiments of the present invention have the following advantages: In this embodiment of the invention, an independent address range is obtained by dividing the entire network communication address into address ranges; unicast addresses are allocated to IoT devices in the current IoT device cluster from the unicast address range, and multiple device communication groups are created for the current IoT device cluster; multicast addresses are allocated to multiple device communication groups from the multicast address range; a multicast member list is maintained for each device communication group, and multicast lifecycle management is performed on the device communication group based on the multicast member list; broadcast configuration parameters are obtained, and broadcast data packets in the current IoT device cluster are controlled according to the broadcast configuration parameters. This achieves the isolation and differentiation of address resources for unicast, multicast, and broadcast communication through address range division. It can not only achieve targeted data transmission within a specific device group by using multicast communication, reducing the invalid resource consumption of irrelevant devices, but also control the broadcast data packets of the entire network through broadcast configuration parameters, avoiding network congestion and bandwidth waste caused by unlimited broadcast data packets, improving the utilization rate of communication resources and the overall communication stability under large-scale IoT device clusters, thereby ensuring the overall service quality of the network. Attached Figure Description
[0020] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart of the steps of a method for communication control of an Internet of Things (IoT) device provided in some embodiments of the present invention; Figure 2 This is a schematic diagram of address scenario-based segmentation provided in some embodiments of the present invention; Figure 3 This is a schematic diagram of a multicast full lifecycle management process provided by some embodiments of the present invention; Figure 4 This is a schematic diagram of a broadcast data packet control and communication mode switching process provided in some embodiments of the present invention; Figure 5This is a flowchart of the steps of a second method for communication control of an Internet of Things (IoT) device provided in some embodiments of the present invention; Figure 6 This is a structural block diagram of an Internet of Things (IoT) device communication control apparatus provided in some embodiments of the present invention. Detailed Implementation
[0022] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0023] In related technologies, communication methods between devices are mainly divided into unicast and broadcast.
[0024] Unicast refers to a device sending data to a single target device in the network. The sender needs to know the receiver's short network address. After the data packet is sent from the source device, it is forwarded through one or more hops to reach the target device. Broadcast refers to a device sending data to all devices in the network. The sender sets the destination address of the data packet to a specific broadcast address. The data packet is relayed layer by layer by routers or coordinator nodes to achieve full network coverage.
[0025] However, when using the above communication method, any device can initiate a network-wide broadcast as long as the destination address is set to the broadcast address. In large-scale networks, the surge in broadcast data volume will lead to a large amount of network resources being occupied, which in turn will cause network congestion and a decrease in communication efficiency.
[0026] Secondly, in large-scale terminal cluster networking scenarios, the inability to effectively constrain broadcast packet sending permissions and frequency can easily lead to problems such as frequent terminal broadcasting, duplicate packet sending, and network-wide flooding. Furthermore, because devices cannot automatically leave their corresponding multicast groups after being de-networked, offline, or malfunctioning, a large number of invalid communication nodes remain in the network for extended periods, continuously generating invalid and redundant messages. This results in network channel congestion, increased communication latency, low efficiency in group-based communication, and poor resource utilization, making it difficult to meet the efficient, stable, and low-redundancy collaborative communication requirements of large-scale IoT cluster devices.
[0027] Based on this, this invention proposes to build a controller-driven global multicast management service to achieve unified and standardized management and control of multicast groups, addresses, and members; it supports multi-dimensional custom grouping based on region, device type, and business scenario, with each group having a unique multicast address; it establishes a dual maintenance mechanism of real-time monitoring and periodic polling to automatically remove offline, deactivated, and faulty devices. By upgrading online device detection to dynamic operation and maintenance throughout the multicast lifecycle, dynamic and accurate updates of multicast members can be achieved.
[0028] This invention proposes a three-segment scenario division for 16-bit communication addresses to achieve boundary isolation of three communication modes; it restricts illegal and frequent broadcast packet sending by setting broadcast authorization and frequency limiting mechanisms; and it monitors network load in real time, implementing broadcast rate limiting and adaptive switching between broadcast and multicast based on thresholds. By standardizing the use of communication resources from the bottom layer, it enables layered management and control of network communication.
[0029] Reference Figure 1 The diagram illustrates a flowchart of a method for communication control of an Internet of Things (IoT) device according to some embodiments of the present invention, which may specifically include the following steps: Step 101: Obtain the independent address ranges obtained by dividing the entire network communication addresses into address ranges; wherein, the independent address ranges include unicast address ranges, multicast address ranges and broadcast address ranges.
[0030] In some embodiments of the present invention, the network communication address is a 16-bit network short address based on a short-range wireless communication standard protocol.
[0031] In some examples, the global communication address can be a short address used to identify each device within an IoT local area network. This address can be assigned by the network controller when a device joins the network and is only valid within that network. Short-range wireless communication standards can include standardized protocols such as Zigbee, IEEE 802.15.4, Thread, or Bluetooth Mesh, used for short-range networking communication of IoT devices.
[0032] In practical applications, the network controller can divide the entire network communication addresses into address ranges according to pre-configured address allocation rules to obtain independent address ranges.
[0033] In some examples, the unicast address range, multicast address range, and broadcast address range do not overlap and together cover the entire range of available values for the network communication addresses. Each range can be dedicated to a specific communication mode.
[0034] For example, in a smart building's Zifeng protocol network, the controller can divide the 16-bit short address space 0x0001~0xFFFF into three intervals: 0x0001~0x7FFE as the unicast address interval, 0x8000~0xFEFF as the multicast address interval, and 0xFF00~0xFFFF as the broadcast address interval. The controller reads this division rule and executes the division during system initialization to obtain the independent address intervals.
[0035] In the example above, because the network communication address is divided into three independent and non-overlapping address ranges—unicast, multicast, and broadcast—the three communication modes can be isolated at the address level, avoiding communication conflicts caused by address misuse. Secondly, the broadcast address is confined to an independent range, allowing the destination address of broadcast data packets to be clearly distinguished at the address level from data packets of the other two communication modes, providing an address-level basis for subsequent broadcast access control and frequency limiting.
[0036] like Figure 2 As shown, the 16-bit address space is first divided into three non-overlapping intervals: broadcast segment, multicast segment, and unicast segment, and then the specific address ranges corresponding to the three communication modes are defined.
[0037] The broadcast segment occupies the range 0xFF00 to 0xFFFF and is only used for broadcast communication in emergency scenarios and system initialization scenarios; the multicast segment occupies the range 0x8000 to 0xFEFF and is used for business communication between communication groups of various devices; the unicast segment occupies the range 0x0001 to 0x7FFE and is used for point-to-point precise communication between devices.
[0038] Step 102: Allocate unicast addresses to IoT devices in the current IoT device cluster from the unicast address range, and create multiple device communication groups for the current IoT device cluster, and allocate multicast addresses to the multiple device communication groups from the multicast address range.
[0039] In some examples, assigning a unicast address can be done by taking an unused address from a unicast address range, binding it to an IoT device, and enabling the device to use that unicast address for point-to-point unicast communication.
[0040] In some examples, a device communication group can be a logical collection of multiple IoT devices, and devices belonging to the same group can receive data packets sent to the group's multicast address.
[0041] In some examples, assigning multicast addresses to multiple device communication groups may mean taking a unique, unused address from the multicast address range for each group, binding a multicast address to a group, and using it as the group identifier for that group.
[0042] In practical applications, the network controller extracts addresses from the unicast address range and assigns them to each IoT device. At the same time, it creates multiple device communication groups based on the device's attribute information and assigns a unique multicast address to each group from the multicast address range.
[0043] For example, the controller takes 0x0001 from the 0x0001 to 0x7FFE range and assigns it to a thermostat, and takes 0x0002 and assigns it to a light fixture; by grouping all thermostats in Building B into one group and assigning multicast address 0x8001 from the 0x8000 to 0xFEFF range, all thermostats on the 3rd floor of Building A into another group and assigning 0x8002.
[0044] In the above example, by obtaining a unique unicast address for each device from the unicast address range, point-to-point communication between devices can be precisely addressed, avoiding address conflicts. By obtaining a unique multicast address for each device communication group from the multicast address range, group communication can be clearly identified at the address level, and crosstalk between different groups will not occur due to address overlap.
[0045] Step 103: Maintain a multicast member list for each device communication group, and perform multicast full lifecycle management on the device communication group based on the multicast member list.
[0046] In some examples, multicast lifecycle management includes: continuously verifying the online status of IoT devices in the multicast member list, and / or removing IoT devices from the multicast member list.
[0047] In some examples, the multicast member list can be a list that records the identifiers of IoT devices that are currently online and should receive multicast data in each device communication group. The multicast member list can be maintained and updated by the network controller.
[0048] In some examples, multicast lifecycle management can be the management of the entire process of a device communication group, from creation, member joining, member online maintenance, member leaving to group disbandment, ensuring that members in the group are always in a communicable state.
[0049] In practical applications, the network controller can maintain a multicast member list for each device communication group. This multicast member list can record all currently active member devices in the group and manage the group from the moment a member joins to the moment a member leaves, based on the multicast member list.
[0050] For example, the controller maintains a member list for the group corresponding to multicast address 0x8001. The initial record includes four devices: air conditioner, TV, living room light, and curtain motor. When the living room light is powered off and offline, the controller removes the living room light from the list. Subsequent multicast data sent to the group will only reach the three valid devices in the list (i.e., TV, living room light, and curtain motor).
[0051] In the example above, by maintaining a multicast member list for each group and managing the entire lifecycle accordingly, multicast packets can be sent only to currently active group members, avoiding the sending of invalid packets to offline or decommissioned devices.
[0052] Step 104: Obtain broadcast configuration parameters, and control the broadcast data packets in the current IoT device cluster according to the broadcast configuration parameters; wherein the broadcast data packets use addresses in the broadcast address range.
[0053] In some examples, broadcast configuration parameters can be a set of rules pre-set and stored in the network controller. Broadcast configuration parameters can be used to control which devices can send broadcasts and at what frequency.
[0054] In some examples, controlling broadcast packets may refer to verifying the permissions of broadcast requests initiated by the device, and limiting the frequency of broadcast packets that pass the permission verification.
[0055] In some examples, broadcast packets using an address within the broadcast address range can mean that the destination address field of the broadcast packet is set to an address within the broadcast address range, such as 0xFF00 or 0xFFFF.
[0056] For example, the controller obtains the broadcast authorization table (only the gateway allows broadcasting) and the broadcast frequency threshold (no more than 1 packet per second). When a sensor attempts to send a broadcast data packet with a destination address of 0xFFFF at a high frequency with a 100ms interval, the controller finds that the sensor does not have the permission by querying the authorization table and can directly reject the broadcast request.
[0057] In the example above, controlling broadcast data packets through broadcast configuration parameters can restrict the permission to send broadcast packets across the entire network to a specific range of devices, and constrain the frequency of broadcast packets, thus preventing broadcast flooding caused by any device in the network arbitrarily initiating broadcasts.
[0058] In this embodiment of the invention, an independent address range is obtained by dividing the entire network communication address into address ranges; unicast addresses are allocated to IoT devices in the current IoT device cluster from the unicast address range, and multiple device communication groups are created for the current IoT device cluster; multicast addresses are allocated to multiple device communication groups from the multicast address range; a multicast member list is maintained for each device communication group, and multicast lifecycle management is performed on the device communication group based on the multicast member list; broadcast configuration parameters are obtained, and broadcast data packets in the current IoT device cluster are controlled according to the broadcast configuration parameters. This achieves the isolation and differentiation of address resources for unicast, multicast, and broadcast communication through address range division. It can not only achieve targeted data transmission within a specific device group by using multicast communication, reducing the invalid resource consumption of irrelevant devices, but also control the broadcast data packets of the entire network through broadcast configuration parameters, avoiding network congestion and bandwidth waste caused by unlimited broadcast data packets, improving the utilization rate of communication resources and the overall communication stability under large-scale IoT device clusters, thereby ensuring the overall service quality of the network.
[0059] In some embodiments of the present invention, step 102 above, which involves creating multiple device communication groups for the current IoT device cluster, includes: Determine the device attribute information of IoT devices in the current IoT device cluster; set IoT devices with the same device attribute information into the same device communication group to obtain multiple device communication groups in the current IoT device cluster.
[0060] In some examples, device attribute information can be data describing the functional category, installation location, and business affiliation of IoT devices. Device attribute information can be reported by the device when it joins the network or configured by the administrator.
[0061] Having the same device attribute information can mean that two or more devices have the same value in a certain device attribute dimension. For example, two devices both have the attribute "device type = thermostat".
[0062] In practical applications, when creating multiple device communication groups, one or more device attribute information of each IoT device can be obtained, and devices with the same value on a certain attribute dimension can be grouped into the same group.
[0063] For example, the controller obtains the attribute information of device A (thermostat, located in Building B) and device B (thermostat, also located in Building B), and groups them into the same group according to "device type = thermostat"; and groups device A and other types of devices on the same floor into another group according to "deployment area = Building B".
[0064] In some embodiments of the present invention, the device attribute information includes any one or more of the following: device type, deployment area, and application scenario.
[0065] In some examples, the device type can be a functional category of IoT devices, such as temperature sensors, humidity sensors, lighting control, door and window control, audio acquisition, video acquisition, access control, etc. The deployment area can be the physical location where the IoT devices are installed, such as a specific building number, floor number, room number, area name, or factory area name.
[0066] In some examples, the application scenario can be the semantic tag corresponding to the business function supported by the IoT device, such as energy-saving operation, security protection, emergency response, equipment inspection, and meeting mode.
[0067] In some embodiments of the present invention, step 103 above involves multicast lifecycle management of the device communication group based on the multicast member list, including sub-step 11 and / or sub-step 12: Sub-step 11 involves continuously verifying the online status of IoT devices in the multicast member list through real-time status monitoring and periodic polling mechanisms, in order to update the multicast member list.
[0068] In some examples, real-time status monitoring can be a monitoring method that instantly detects changes in device status based on events actively reported by the device (such as heartbeat messages and disconnection notifications). A timed polling mechanism can be a monitoring method where the controller periodically and proactively sends query requests to each device in the group and waits for a response; if a device does not respond within a specified time, it can be determined to be offline.
[0069] In practical applications, the status signals actively reported by the receiving devices can be monitored in real time, and the controller can actively send query requests to the devices in the group through periodic polling, so as to jointly perform online status verification of the devices in the multicast member list and update the list according to the verification results.
[0070] For example, a living room group includes four devices: air conditioner, television, living room light, and curtain motor. When the living room light loses power, the real-time monitoring side detects the anomaly because the parent router reports a link disconnection, and the timed polling side also determines that the light is offline after not receiving a response report from the light twice in a row. The controller can mark the light as offline in the member list.
[0071] And / or, in sub-step 12, when a device is detected to be offline, powered off, or disconnected from the network, the corresponding IoT device is removed from the multicast member list to update the multicast member list.
[0072] In some examples, device offline can be a state where the device is no longer able to receive network messages due to reasons such as power failure, communication interruption, or voluntary disconnection from the network.
[0073] In practical applications, when a device is detected to be offline, powered off, or disconnected from the network, it can be removed from the list.
[0074] For example, a living room group includes four devices: air conditioner, TV, living room light, and curtain motor. When the living room light loses power, the real-time monitoring side detects the anomaly because the parent router reports a link disconnection, and the timed polling side also determines that the light is offline after not receiving a response report from the light twice in a row. The controller can then remove the light from the member list.
[0075] In the example above, by employing a dual maintenance mechanism combining real-time status monitoring and periodic polling, the detection of device offline status can achieve immediate response through proactive reporting by the device, and can also be proactively detected by the controller when the device does not report. By automatically removing a device from the multicast member list after detecting its offline status, subsequent multicast data packets will no longer be sent to that device.
[0076] like Figure 3 As shown, the global multicast management service creates differentiated groups based on region, device type, and business scenario. When a device joins the network, it is bound to the corresponding group. After the group is established, it enters the device status monitoring phase, continuously verifying the online status of devices within the group through real-time heartbeat monitoring and periodic polling (10-second cycle).
[0077] During the verification process, if the device is determined to be online, its record in the multicast member list will be maintained; if the device is determined to be offline, faulty, or disconnected from the network, the device will be automatically removed from the multicast member list to clear invalid nodes and update the member list.
[0078] In some embodiments of the present invention, the broadcast configuration parameters include a list of authorized devices with broadcast permissions; in step 104 above, controlling the broadcast data packets in the current IoT device cluster according to the broadcast configuration parameters includes: When an IoT device initiates a broadcast request in the current IoT device cluster, the broadcast permission of the corresponding IoT device is verified according to the authorized device list; if the corresponding IoT device has broadcast permission, it is allowed to send broadcast data packets; if the corresponding IoT device does not have broadcast permission, it is not allowed to send broadcast data packets.
[0079] In some examples, the authorized device list can be a list recording the identifiers of all IoT devices permitted to initiate network-wide broadcasts, and this list can be maintained by the network controller. Broadcast permission verification can refer to comparing the identifier of the device initiating the broadcast request with the record in the authorized device list to confirm whether the device is on the authorized list. Disallowing broadcast packets can mean that the controller directly rejects the broadcast request, and the broadcast packet will not be sent into the network.
[0080] In practical applications, the network controller can obtain a list of authorized devices as part of the broadcast configuration parameters. When a device initiates a broadcast request, the controller can extract the device's identifier and compare it with the record in the list of authorized devices. If the device's identifier is in the list, the controller can allow the broadcast data packet to be sent; if it is not in the list, the controller can reject the broadcast request.
[0081] For example, if a third-party app attempts to launch a network-wide broadcast through the gateway, the controller can directly reject the broadcast request if it finds that the app or the corresponding sensor type device has not been granted broadcast permissions after checking the broadcast authorization table; however, if the gateway device is listed in the authorized device list, its broadcast request can be allowed.
[0082] In some embodiments of the present invention, the broadcast configuration parameters include a broadcast frequency threshold; in step 104 above, controlling the broadcast data packets in the current IoT device cluster according to the broadcast configuration parameters includes: when an IoT device in the current IoT device cluster initiates a broadcast request and has broadcast permissions, limiting the transmission frequency of the broadcast data packets according to the broadcast frequency threshold.
[0083] In some examples, the broadcast frequency threshold can be the maximum number of broadcast packets that a single device is allowed to send per unit of time. When a device's broadcast packet sending rate exceeds the broadcast frequency threshold, the excess packets can be restricted from being sent.
[0084] In some examples, limiting the frequency of broadcast packets can mean controlling the device's broadcast packet sending rate to a range no greater than a broadcast frequency threshold. Broadcast requests exceeding the threshold can be dropped or converted to multicast mode for transmission.
[0085] For example, if the broadcast frequency threshold is no more than 1 packet per second for a single device, and a gateway sends broadcast data packets at a high frequency of 100ms interval (i.e., 10 packets per second), although its broadcast permission verification passes, the available tokens in the token bucket for that second have been exhausted. The controller can discard the excess 9 data packets (or downgrade them to multicast transmission).
[0086] In the example above, by adding a packet transmission frequency limit based on the broadcast frequency threshold after the broadcast permission verification, even devices with broadcast permissions cannot send broadcasts at high frequencies without restraint. This prevents broadcast flooding caused by a single device malfunctioning or being maliciously controlled, thereby reducing the invalid bandwidth occupation of the entire IoT network and ensuring the bandwidth resources for normal unicast and multicast communication.
[0087] In some embodiments of the present invention, the method further includes: monitoring network load parameters of the current network; when the network load parameters indicate that the current network is in a high-load state, converting the broadcast data packet to be sent into a multicast data packet for the target communication group and sending it to the target communication group.
[0088] In some examples, network load parameters can be one or more quantitative indicators used to characterize the current level of data transmission activity in the network. A high-load state can refer to a network load parameter value exceeding a preset threshold. The target communication group can refer to the device communication group corresponding to the service content involved in the broadcast data packet to be sent, and this target communication group can be determined by the controller by parsing the service semantics of the broadcast data packet.
[0089] In practical applications, the network controller can also collect the current network load parameters in real time and compare the values of the load parameters with the preset high load threshold. When it is determined that the load parameters exceed the threshold and the current network is in a high load state, the controller can determine the target communication group corresponding to the broadcast data packet, then rewrite the destination address of the broadcast data packet to the multicast address of the target communication group, and then send it only to the target communication group in multicast mode.
[0090] For example, in a smart building at 8:30 am on a weekday, about 2,000 devices are woken up simultaneously, the channel occupancy rate soars to over 80%, and the average communication latency degrades to over 200ms. The controller detects that the channel occupancy rate exceeds the preset 70% threshold and judges that the current network is under high load. At this time, the property management platform attempts to send a "daytime mode" policy packet to the entire network. The controller can intercept the broadcast packet, parse its business semantics, and determine that its target is the lighting group, air conditioning group, and curtain group. It then converts the broadcast into three multicast commands and sends them to the corresponding groups respectively.
[0091] In the example above, by monitoring network load parameters in real time and converting broadcast to multicast under high load conditions, broadcast packets are not indiscriminately sent to all devices on the network in high-concurrency scenarios, but only to the target groups that actually need to receive the message. By triggering the conversion only when the network is under high load, the network can still use broadcast mode to reduce processing overhead when under low load, and automatically switch to multicast when the load is high to save channel resources.
[0092] In some embodiments of the present invention, the network load parameters include any one or more of the following: channel occupancy rate and communication concurrency.
[0093] In some examples, channel occupancy can refer to the proportion of time actually used for data transmission out of the total available communication time in the network; a higher channel occupancy indicates a busier channel. Communication concurrency can refer to the total number of messages transmitted in the network per unit of time, or the number of broadcast requests per unit of time; a higher communication concurrency indicates that the network is handling more communication tasks simultaneously.
[0094] For example, the controller sets a preset threshold for channel occupancy of 70%, and triggers broadcast to multicast when the channel occupancy reaches 80% in real time; or it monitors two indicators at the same time, and triggers switching only when the channel occupancy exceeds 70% and the number of packets per second exceeds the rated capacity.
[0095] like Figure 4 As shown, by implementing broadcast permission control, only gateway devices in the network can initiate network-wide broadcasts, while other devices do not have broadcast sending permissions; after permission verification, the frequency limiting stage is entered to limit the frequency of broadcast data packets.
[0096] Furthermore, network load parameters are monitored in real time to determine whether the channel occupancy rate exceeds a preset threshold. When the channel occupancy rate is not higher than the threshold, the current communication mode is maintained, allowing network-wide broadcast communication. When the channel occupancy rate exceeds the threshold (i.e., network load parameters indicate that the current network is under high load), adaptive switching is triggered, reducing invalid data transmission and directing broadcast commands to the corresponding target groups (i.e., converting the broadcast data packets to be sent into multicast data packets for the target communication group and sending them to the target communication group), thus achieving efficient and stable communication.
[0097] In some embodiments of the present invention, before converting the broadcast data packet to be sent into a multicast data packet for the target communication group, the method further includes: Determine the service semantic information in the broadcast data packet to be sent, and determine the target communication group mapped to the broadcast data packet based on the service semantic information; and / or determine the topic subscription relationship of the broadcast data packet to be sent, and determine the target communication group mapped to the broadcast data packet based on the topic subscription relationship.
[0098] In some examples, business semantic information may be fields related to business meaning extracted from broadcast data packets, such as an identifier indicating the region where the object being operated is located, or an identifier indicating the device type of the object being operated.
[0099] In some examples, a topic subscription relationship can refer to a device's pre-registered interest in a specific communication topic with the controller, and when the controller receives a data packet on that topic, it only forwards it to devices that have registered for that topic.
[0100] Before converting broadcast packets into multicast packets, business semantic information can be parsed from the broadcast packets, and the parsing results can be used to query a preset group mapping table to determine the target communication group corresponding to the broadcast packet; and / or, the topic corresponding to the broadcast packet can be determined first, and then it can be queried which devices have subscribed to the topic, and then these devices can be grouped into a logical group as the target communication group.
[0101] For example, after the controller intercepts a broadcast command of "Building A, 3rd Floor + Air Conditioner", it parses the area identifier "Building A, 3rd Floor" and the device type identifier "Air Conditioner". Then, it uses these two identifiers to query the group mapping table and finds the corresponding group Group_A3_AC. If the query does not find the target group, the controller can parse the topic field (such as "building / floor / ac") in the broadcast data packet to find out which devices have subscribed to the topic and use the set of subscribed devices as the target communication group.
[0102] Reference Figure 5 The diagram illustrates a flowchart of another method for communication control of an Internet of Things (IoT) device provided by some embodiments of the present invention, which may specifically include the following steps: Step 501: Obtain the independent address range obtained by dividing the entire network communication address into address ranges; wherein, the independent address range includes unicast address range, multicast address range and broadcast address range.
[0103] Step 502: Allocate unicast addresses to IoT devices in the current IoT device cluster from the unicast address range, and create multiple device communication groups for the current IoT device cluster, and allocate multicast addresses to the multiple device communication groups from the multicast address range.
[0104] Step 503: Maintain a multicast member list for each device communication group, and perform multicast full lifecycle management on the device communication group based on the multicast member list.
[0105] Step 504: Obtain broadcast configuration parameters, and control the broadcast data packets in the current IoT device cluster according to the broadcast configuration parameters; wherein the broadcast data packets use addresses in the broadcast address range.
[0106] Step 505: Monitor the current network load parameters.
[0107] Step 506: When the network load parameter indicates that the current network is in a high load state, the broadcast data packet to be sent is converted into a multicast data packet for the target communication group and sent to the target communication group.
[0108] Step 507: Determine the service semantic information in the broadcast data packet to be sent, and determine the target communication group mapped to the broadcast data packet to be sent based on the service semantic information.
[0109] In this embodiment of the invention, by obtaining independent address ranges obtained by dividing the entire network communication addresses into address ranges, unicast, multicast, and broadcast communication can each have their own dedicated ranges at the address level, achieving boundary isolation between the three communication modes. By allocating unicast addresses to IoT devices from the unicast address range, each IoT device can obtain a unique unicast address, avoiding address conflicts between devices. By creating multiple device communication groups for the IoT device cluster and allocating multicast addresses to each group from the multicast address range, each group can have an independent group identifier at the address level, avoiding crosstalk between different groups due to address overlap.
[0110] In this embodiment of the invention, by maintaining a multicast member list for each device communication group and performing full lifecycle management of multicast based on this list, the member list can be updated promptly when group members change, removing offline, deactivated, or faulty devices from the list and reducing resource waste caused by sending multicast messages to invalid nodes. By obtaining broadcast configuration parameters and controlling broadcast data packets according to these parameters, the identity verification and frequency limitation of broadcasting devices can be performed, reducing the network resource consumption caused by unauthorized devices arbitrarily initiating broadcasts and high-frequency broadcasts by a single device.
[0111] In this embodiment of the invention, by monitoring the network load parameters of the current network, the current network congestion level can be perceived in real time, providing a basis for communication mode switching decisions. By converting broadcast data packets into multicast data packets targeting a specific communication group and sending them to that group when the network load parameters indicate that the current network is under high load, the ineffective wake-up and transmission overhead of broadcast data packets for all devices on the network under high concurrency scenarios can be reduced. Data is directed to the target group that truly needs to receive the message, alleviating network congestion. By determining the service semantic information in the broadcast data packet and determining the corresponding target communication group based on the service semantic information, the process of determining the target group for broadcast-to-multicast conversion can have a clear mapping basis, accurately mapping the broadcast data packet to the group related to the service content of the data packet.
[0112] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0113] Reference Figure 6 The diagram illustrates a structural schematic of an IoT device communication control apparatus according to some embodiments of the present invention, which may specifically include the following modules: The independent address range acquisition module 601 is used to acquire independent address ranges obtained by dividing the entire network communication addresses into address ranges; wherein, the independent address ranges include unicast address ranges, multicast address ranges and broadcast address ranges; Address allocation module 602 is used to allocate unicast addresses to IoT devices in the current IoT device cluster from the unicast address range, and to create multiple device communication groups for the current IoT device cluster, and allocate multicast addresses to the multiple device communication groups from the multicast address range. The multicast lifecycle management module 603 is used to maintain a multicast member list for each device communication group, and to perform multicast lifecycle management on the device communication group based on the multicast member list, including: continuously verifying the online status of IoT devices in the multicast member list, and / or removing IoT devices from the multicast member list; The broadcast control module 604 is used to acquire broadcast configuration parameters and control the broadcast data packets in the current IoT device cluster according to the broadcast configuration parameters; wherein the broadcast data packets use addresses in the broadcast address range.
[0114] In some embodiments of the present invention, the apparatus further includes: The network load parameter monitoring module is used to monitor the current network load parameters. The data packet conversion module is used to convert broadcast data packets to be sent into multicast data packets for a target communication group when the network load parameter indicates that the current network is in a high load state, and then send them to the target communication group.
[0115] In some embodiments of the present invention, the apparatus further includes: The first target communication group determination module is used to determine the service semantic information in the broadcast data packet to be sent, and determine the target communication group mapped to the broadcast data packet to be sent based on the service semantic information. And / or, a second target communication group determination module is used to determine the topic subscription relationship of the broadcast data packet to be sent, and determine the target communication group mapped to the broadcast data packet to be sent based on the topic subscription relationship.
[0116] In some embodiments of the present invention, the network load parameters include any one or more of the following: channel occupancy rate and communication concurrency.
[0117] In some embodiments of the present invention, the address allocation module 602 includes: The device attribute information determination submodule is used to determine the device attribute information of IoT devices in the current IoT device cluster; The Device Communication Group Determination Submodule is used to set IoT devices with the same device attribute information into the same device communication group, thereby obtaining multiple device communication groups in the current IoT device cluster.
[0118] In some embodiments of the present invention, the device attribute information includes any one or more of the following: device type, deployment area, and application scenario.
[0119] In some embodiments of the present invention, the multicast lifecycle management module 603 includes: The first multicast member list update submodule is used to continuously verify the online status of IoT devices in the multicast member list through real-time status monitoring and timed polling mechanisms, so as to update the multicast member list. And / or, the second multicast member list update submodule is used to remove the corresponding IoT device from the multicast member list when a device is detected to be offline, powered off, or disconnected from the network, so as to update the multicast member list.
[0120] In some embodiments of the present invention, the broadcast configuration parameters include a list of authorized devices with broadcast permissions; the broadcast control module 604 includes: The broadcast permission verification submodule is used to verify the broadcast permission of the corresponding IoT devices according to the authorized device list when an IoT device in the current IoT device cluster initiates a broadcast request. The broadcast permission submodule is used to allow the sending of broadcast data packets if the corresponding IoT device has broadcast permissions; The broadcast interception submodule is used to prevent the sending of broadcast data packets if the corresponding IoT device does not have broadcast permissions.
[0121] In some embodiments of the present invention, the broadcast configuration parameters include a broadcast frequency threshold; the broadcast control module 604 includes: The broadcast frequency limiting submodule is used to limit the frequency of broadcast data packets based on the broadcast frequency threshold when an IoT device in the current IoT device cluster initiates a broadcast request and has broadcast permissions.
[0122] In some embodiments of the present invention, the network communication address is a 16-bit network short address based on a short-range wireless communication standard protocol.
[0123] Some embodiments of the present invention also provide an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method described above.
[0124] Some embodiments of the present invention also provide a computer-readable storage medium on which a computer program is stored, and which, when executed by a processor, implements the method described above.
[0125] Some embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the method described above.
[0126] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0127] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this invention are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0128] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0129] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0130] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0131] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0133] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0134] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes the aforementioned element.
[0135] The methods, apparatus, devices, media, and products for communication control of IoT devices have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for communication control of Internet of Things (IoT) devices, characterized in that, The method includes: Obtain independent address ranges obtained by dividing the entire network communication addresses into address ranges; wherein, the independent address ranges include unicast address ranges, multicast address ranges, and broadcast address ranges; From the unicast address range, unicast addresses are allocated to IoT devices in the current IoT device cluster, and multiple device communication groups are created for the current IoT device cluster. From the multicast address range, multicast addresses are allocated to the multiple device communication groups. Maintain a multicast member list for each device communication group, and perform multicast full lifecycle management on the device communication group based on the multicast member list, including: continuously verifying the online status of IoT devices in the multicast member list, and / or removing IoT devices from the multicast member list; Obtain broadcast configuration parameters and control the broadcast data packets in the current IoT device cluster according to the broadcast configuration parameters; wherein the broadcast data packets use addresses in the broadcast address range.
2. The method according to claim 1, characterized in that, Also includes: Monitor the current network load parameters; When the network load parameter indicates that the current network is under high load, the broadcast data packet to be sent is converted into a multicast data packet for the target communication group and sent to the target communication group.
3. The method according to claim 2, characterized in that, Before converting the broadcast data packets to be sent into multicast data packets for the target communication group, the process also includes: Determine the service semantic information in the broadcast data packet to be sent, and determine the target communication group mapped to the broadcast data packet to be sent based on the service semantic information; And / or, determine the topic subscription relationship of the broadcast data packet to be sent, and determine the target communication group mapped to the broadcast data packet to be sent based on the topic subscription relationship.
4. The method according to claim 2, characterized in that, The network load parameters include one or more of the following: channel occupancy rate and communication concurrency.
5. The method according to any one of claims 1-4, characterized in that, Create multiple device communication groups for the current IoT device cluster, including: Determine the device attribute information of the IoT devices in the current IoT device cluster; By setting IoT devices with the same device attribute information as the same device communication group, multiple device communication groups are obtained in the current IoT device cluster.
6. The method according to claim 5, characterized in that, The device attribute information includes one or more of the following: device type, deployment area, and application scenario.
7. The method according to any one of claims 1-4, characterized in that, Based on the multicast member list, multicast lifecycle management is performed on the device communication group, including: The online status of IoT devices in the multicast member list is continuously verified through real-time status monitoring and periodic polling mechanisms in order to update the multicast member list. And / or, when a device is detected to be offline, powered off, or disconnected from the network, the corresponding IoT device is removed from the multicast member list to update the multicast member list.
8. The method according to any one of claims 1-4, characterized in that, The broadcast configuration parameters include a list of authorized devices with broadcast permissions; Based on the broadcast configuration parameters, control is exercised over broadcast data packets in the current IoT device cluster, including: When an IoT device initiates a broadcast request in the current IoT device cluster, the broadcast permission of the corresponding IoT device is verified according to the authorized device list. If the corresponding IoT device has broadcast permissions, then sending broadcast data packets is permitted; If the corresponding IoT device does not have broadcast permissions, it is not allowed to send broadcast data packets.
9. The method according to any one of claims 1-4, characterized in that, The broadcast configuration parameters include a broadcast frequency threshold; based on the broadcast configuration parameters, control is exercised over broadcast data packets in the current IoT device cluster, including: When an IoT device in the current IoT device cluster initiates a broadcast request and has broadcast permissions, the frequency of broadcast data packets is limited according to the broadcast frequency threshold.
10. The method according to any one of claims 1-4, characterized in that, The network-wide communication address is a 16-bit network short address based on the short-range wireless communication standard protocol.
11. A device for communication control of Internet of Things (IoT) devices, characterized in that, The device includes: An independent address range acquisition module is used to acquire independent address ranges obtained by dividing the entire network communication addresses into address ranges; wherein, the independent address ranges include unicast address ranges, multicast address ranges, and broadcast address ranges; The address allocation module is used to allocate unicast addresses to IoT devices in the current IoT device cluster from the unicast address range, and to create multiple device communication groups for the current IoT device cluster, and allocate multicast addresses to the multiple device communication groups from the multicast address range. The multicast lifecycle management module is used to maintain a multicast member list for each device communication group and, based on the multicast member list, to perform multicast lifecycle management on the device communication group, including: continuously verifying the online status of IoT devices in the multicast member list, and / or removing IoT devices from the multicast member list; The broadcast control module is used to acquire broadcast configuration parameters and control the broadcast data packets in the current IoT device cluster according to the broadcast configuration parameters; wherein the broadcast data packets use addresses in the broadcast address range.
12. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the method as described in any one of claims 1 to 10.
14. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 10.
