Cloud edge terminal hierarchical communication control method, edge gateway and storage medium
By prioritizing and dynamically adjusting resources for IoT business data through edge gateways, the transmission problem of critical business data during network fluctuations is solved, achieving efficient and reliable data transmission and resource utilization.
Patent Information
- Application Number
- CN202611505035.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-24
- Publication Date
- 2026-11-24
AI Technical Summary
Existing IoT communication gateways fail to effectively distinguish the priority of business data, resulting in delays or loss of critical business data during network congestion or signal interference, affecting device control and system stability, and leading to low resource utilization efficiency.
By prioritizing business data through edge gateways, configuring transmission resources based on business importance and latency sensitivity, and dynamically adjusting resource allocation methods when network conditions change, reliable transmission of high-priority data is ensured.
It improves the reliability of critical business data transmission and the efficiency of network resource utilization, ensuring the stability and continuity of the Internet of Things system and adapting to complex network environments.
Smart Images

Figure CN123164067A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of measurement technology, and in particular to a cloud-edge-device hierarchical communication control method, an edge gateway, and a storage medium. Background Technology
[0002] In IoT systems, edge gateways, as the core hub connecting cloud servers and terminal smart devices, bear the critical function of data transmission. However, currently widely used IoT communication gateways generally adopt a uniform transmission scheduling strategy, implementing an indiscriminate resource allocation mechanism for all business data channels. This design fails to fully consider the inherent differences in the characteristics of business data. For example, device control commands typically have high business importance and strict latency requirements, while routine sensor data, such as environmental monitoring information, has relatively less stringent timeliness requirements. Simultaneously, related technologies lack effective utilization of the cloud-edge-device layered architecture, failing to combine business priority mechanisms with the real-time processing capabilities of the edge side. This results in the system's vulnerability to complex deployment environments with significant network quality fluctuations. When network congestion, bandwidth limitations, or signal interference occur, critical and non-critical business data compete equally for limited link resources during transmission, causing high-priority control commands to fail to arrive in a timely manner due to transmission delays or packet loss. Summary of the Invention
[0003] The purpose of this application is to provide a cloud-edge-device hierarchical communication control method, an edge gateway, and a storage medium, which can improve the transmission reliability of critical business data and the efficiency of network resource utilization.
[0004] This application provides a cloud-edge-device hierarchical communication control method, applied to an edge gateway, comprising: Acquire business data from IoT smart devices; Based on the business importance and latency sensitivity of the business data, the business data is prioritized to determine the data priority level of the business data; Configure corresponding transmission resources for the service data according to the data priority level; During data transmission, the way in which the service data occupies the transmission resources is dynamically adjusted according to the current network status and the priority level.
[0005] In some embodiments, prioritizing the business data includes: Based on the business characteristic information of the business data, determine the business type of the business data; Based on the business type, determine the business importance and latency sensitivity of the business data; Calculate the priority score of the business data based on the business importance and the latency sensitivity; Based on the priority score, the business data is matched to the corresponding data priority level.
[0006] In some embodiments, configuring corresponding transmission resources for the service data according to the data priority level includes: Configure a transmission link that meets the latency requirements for the first priority level of service data, and configure dedicated bandwidth resources for the transmission link; Configure a primary link and a backup link for the service data of the second priority level, so as to perform redundant transmission of the service data of the second priority level through the primary link and / or the backup link; Configure a shared transmission link for the service data of the third priority level; the shared transmission link reuses the remaining bandwidth resources of the main link and / or the remaining bandwidth resources of the backup link, and the priority levels represented by the first priority level, the second priority level and the third priority level decrease in sequence.
[0007] In some embodiments, dynamically adjusting the way the service data occupies the transmission resources includes: When the network state meets the preset downgrade transmission conditions, the occupation of the transmission link by the target priority level service data is restricted, and the released link resources are used by the non-target priority level service data; the non-target priority level is a number of data priority levels with the highest priority, and the target priority level is any data priority level other than the non-target priority level.
[0008] In some embodiments, limiting the occupancy of the transmission link by target priority level service data includes: Based on the degree of network quality degradation in the network state, a target degradation level is determined from multiple preset degradation levels; the degradation level corresponds to a corresponding degree of restriction. Based on the degree of restriction corresponding to the target downgrade level, reduce the upload frequency of the service data at the target priority level and / or compress the data packet size of the service data at the target priority level.
[0009] In some embodiments, before restricting the occupancy of the transmission link by service data of the target priority level, the method further includes: Obtain the current task status of the IoT smart device; When the network status meets the preset degraded transmission conditions, and the current task status indicates that the IoT smart device is performing a critical task that depends on the non-target priority level business data, wait for the critical task to complete.
[0010] In some embodiments, dynamically adjusting the way the service data occupies the transmission resources includes: When the network is interrupted, the occupation of the transmission link by the service data is suspended, and the uncompleted service data is cached in the local buffer of the edge gateway. After the network is restored, the cached service data is actively resumed in order of priority from high to low. For service data at the first priority level, an immediate retransmission method is used for caching in the local cache partition configured for it. For service data at the second priority level, a circular caching method is used for caching in the local cache partition configured for it. For service data at the third priority level, a breakpoint marking method is used for caching in the local cache partition configured for it. The priority levels represented by the first, second, and third priority levels decrease sequentially.
[0011] In some embodiments, dynamically adjusting the way the service data occupies the transmission resources includes: In the event of a network outage, the IoT smart device is controlled according to the latest instructions cached locally by the edge gateway or a preset security policy to maintain the IoT smart device's offline operation.
[0012] This application embodiment also provides an edge gateway, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described cloud-edge-device hierarchical communication control method.
[0013] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described cloud-edge-device hierarchical communication control method.
[0014] The beneficial effects of this application are as follows: By introducing business importance and latency sensitivity to prioritize business data and configuring transmission resources according to the priority level, the way business data occupies transmission resources can be dynamically adjusted according to the real-time network status and priority level during data transmission. This can flexibly respond to changes in the network environment. When the network conditions are poor, the transmission of high-priority critical business data is prioritized, while non-critical business data is appropriately restricted, ensuring the continuity and stability of critical business, and improving the transmission reliability of critical business data and the efficiency of network resource utilization. Attached Figure Description
[0015] Figure 1 This is an application environment diagram of the cloud-edge-device hierarchical communication control method provided in the embodiments of this application.
[0016] Figure 2 This is a flowchart of the cloud-edge-device hierarchical communication control method provided in the embodiments of this application.
[0017] Figure 3 This is a flowchart of a method for prioritizing business data provided in an embodiment of this application.
[0018] Figure 4 This is a flowchart of a method for configuring corresponding transmission resources for business data, provided in an embodiment of this application.
[0019] Figure 5 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0021] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and drawings are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application. Furthermore, the information, data, and signals involved in the embodiments of this application are all authorized by relevant parties or have been fully authorized by all parties, and the collection, use, and processing of related data comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0023] In traditional IoT communication gateways, all data channels are configured with a uniform transmission scheduling strategy, failing to implement hierarchical management based on business priorities and cloud-edge-device architecture. This makes them ill-suited for complex deployment environments with significant network quality fluctuations. Specifically, the lack of a business priority differentiation mechanism means that device control commands and routine sensor reports compete equally for link resources during transmission. When network congestion occurs, critical control commands are delayed or lost, leading to equipment malfunctions. This issue prevents high-priority business data from receiving necessary transmission guarantees, reduces network resource allocation efficiency, and directly impacts system real-time performance and reliability. For example, in an industrial IoT application scenario, an edge gateway connects multiple CNC machine tools and environmental monitoring sensors. The CNC machine tools are configured to receive machining control commands in real time to maintain the production process, while the environmental monitoring sensors periodically report workshop temperature and humidity data. Furthermore, when the factory network experiences bandwidth degradation due to electromagnetic interference, control commands and sensor data are processed indiscriminately in the transmission queue, causing machine tool control command transmission delays to exceed process requirement thresholds, resulting in decreased machining accuracy or equipment downtime. As a result, during the competition for link resources between critical and non-critical business data, the reliability of equipment control command transmission cannot meet the stringent requirements of industrial automation scenarios.
[0024] If these issues are not addressed, the reliability of critical business data transmission cannot be guaranteed. Device control failures and system outages will occur under fluctuating network conditions, increasing security risks. Link resource contention reduces network resource utilization efficiency, impacting the overall stability and maintainability of the IoT system. Consequently, its adaptability in complex deployment environments is limited, and the probability of device malfunctions increases.
[0025] Based on this, embodiments of this application provide a cloud-edge-device hierarchical communication control method, an edge gateway, and a storage medium. The method prioritizes business data based on its importance and latency sensitivity, achieves differentiated resource allocation, and dynamically adjusts the way transmission resources are used during data transmission, thereby improving the transmission reliability of critical business data and the efficiency of network resource utilization.
[0026] Figure 1 This diagram illustrates the application environment of the cloud-edge-device hierarchical communication control method provided in this embodiment. (See also...) Figure 1This method is applied to a cloud-edge-device hierarchical communication control system. The system includes a cloud server 101, an edge gateway 102, and an IoT smart device 103. The cloud server 101 and the edge gateway 102 are connected via a network, and the edge gateway 102 and the IoT smart device 103 are communicatively connected. The cloud server 101 controls the IoT smart device 103 through the edge gateway 102. The IoT smart device 103 transmits service data to the cloud server 101 through the edge gateway 102. The edge gateway 102 acquires the service data from the IoT smart device 103, prioritizes the service data based on its importance and latency sensitivity to determine its data priority level, configures corresponding transmission resources for the service data according to the priority level, and dynamically adjusts the way the service data occupies transmission resources based on the current network status and priority level during data transmission.
[0027] See Figure 2 In one embodiment, a cloud-edge-device hierarchical communication control method is provided, wherein the execution subject of the method is an edge gateway, including but not limited to steps S201 to S204.
[0028] Step S201: Obtain business data from IoT smart devices.
[0029] Business data refers to various types of information generated or transmitted by IoT smart devices during operation, including but not limited to environmental data collected by sensors, device status information, control commands, video streams, etc. These data carry different business functions and are of varying importance.
[0030] Business data can be acquired in various ways. For example, an edge gateway can periodically poll connected IoT smart devices to obtain sensor data or status information they generate. Furthermore, IoT smart devices can proactively push business data to the edge gateway after data generation. The edge gateway can also receive business data published by specific IoT smart devices through a subscription mechanism.
[0031] Step S202: Based on the business importance and latency sensitivity of the business data, prioritize the business data to determine the data priority level.
[0032] Business importance is an indicator that measures how critical business data is to the overall operation of the system. For example, equipment fault alarm data usually has high business importance, while routine environmental monitoring data may have lower business importance.
[0033] Latency sensitivity is an indicator that measures how stringent the requirements of business data transmission latency are. For example, real-time control commands are highly sensitive to latency and require rapid transmission to ensure timely response; while historical data uploads are less sensitive to latency.
[0034] Data priority levels are assigned to business data based on a comprehensive assessment of the data's importance and latency sensitivity. Different priority levels correspond to different transmission strategies and resource configurations to ensure that critical data is transmitted with priority.
[0035] Prioritizing business data can be achieved by predefining a series of business data types and manually assigning business importance and latency sensitivity to each type. When the edge gateway receives business data, it can identify its type to determine its corresponding business importance and latency sensitivity, and then categorize it into the preset data priority level. For example, all control command data can be uniformly classified into a high priority level, and all log data into a low priority level.
[0036] Step S203: Configure corresponding transmission resources for business data according to data priority level.
[0037] Transmission resources refer to network infrastructure such as network bandwidth, transmission links, and buffer space used for business data transmission, and are the foundation for ensuring data transmission efficiency and reliability.
[0038] Configuring appropriate transmission resources for business data can be achieved by allocating a fixed proportion of bandwidth resources to data with different priority levels. For example, high-priority data can be allocated a larger proportion of the total bandwidth, while low-priority data can be allocated a smaller proportion. Another approach is to reserve a dedicated transmission channel for high-priority data, while low-priority data shares the remaining transmission channel.
[0039] Step S204: During data transmission, the way service data occupies transmission resources is dynamically adjusted according to the current network status and priority level.
[0040] Network status refers to the current operating condition of the network, including but not limited to indicators such as network bandwidth, latency, packet loss rate, and congestion level.
[0041] Dynamically adjusting the way service data occupies transmission resources allows all priority levels of data to be transmitted according to their configured resources when the network is in good condition. When network congestion or quality degradation occurs, the transmission of low-priority data can be suspended to ensure that the transmission of high-priority data is not affected. The transmission of low-priority data is then resumed once the network condition is restored. This adjustment method can provide an initial response to network changes.
[0042] Therefore, this embodiment prioritizes business data by introducing business importance and latency sensitivity, and configures transmission resources according to the priority level, fundamentally solving the problem of equal data competition. Furthermore, during data transmission, this embodiment can dynamically adjust the way business data occupies transmission resources based on real-time network conditions and priority levels. This dynamic adjustment mechanism can flexibly respond to changes in the network environment. When network conditions are poor, it prioritizes the transmission of high-priority critical business data while appropriately restricting non-critical business data, thereby ensuring the continuity and stability of critical services. For example, when the network is congested, this embodiment can ensure the timely transmission of robotic arm control commands while temporarily restricting video stream transmission, which contrasts sharply with the tendency for critical commands to be delayed or lost in existing technologies. Thus, this embodiment effectively avoids the delay or loss of critical control commands due to network congestion, thereby ensuring the stable operation of IoT smart devices.
[0043] See Figure 3 In one embodiment, the method for prioritizing business data includes, but is not limited to, steps S301 to S304.
[0044] Step S301: Determine the business type of the business data based on the business characteristic information of the business data.
[0045] Step S302: Determine the business importance and latency sensitivity of the business data based on the business type.
[0046] Step S303: Calculate the priority score of business data based on business importance and latency sensitivity.
[0047] Step S304: Based on the priority score, match the business data to the corresponding data priority level.
[0048] Business characteristic information is data used to identify the essential attributes of business data. It can originate from the metadata of data packets or from the actual content of the data packets. Edge gateways can be configured with a rule engine to identify business characteristics by parsing the packet headers (e.g., source IP, destination IP, port number, protocol type, etc.). Furthermore, edge gateways can also perform deep packet inspection on data payloads, extracting business characteristics by analyzing specific keywords, data structures, or application layer protocol identifiers within the data payload.
[0049] Business type is a label used to categorize business data, such as video surveillance data, sensor-collected data, control command data, and log data. A list of business types can be predefined, and a set of identification rules can be associated with each type. When business characteristics match a certain rule, its business type is determined. Alternatively, machine learning models can be used to automatically identify and classify new business data by training them on historical business data and its characteristics.
[0050] This application's solution addresses the challenge of prioritizing business data by introducing a refined process involving business feature information identification, business type classification, business importance and latency sensitivity assessment, and priority score calculation and matching. First, after receiving business data from IoT smart devices, the edge gateway analyzes the message header and / or data payload to extract key business feature information. Based on this information, the specific business type of the data is determined, such as real-time control commands, environmental monitoring data, or device status reports. After determining the business type, its inherent business importance and latency sensitivity are associated with it according to a pre-defined strategy or model. For example, control commands typically have high importance and high latency sensitivity, while log data may have lower importance and latency sensitivity. Subsequently, these quantified business importance and latency sensitivity are used as input to generate a comprehensive priority score through a calculation model. This score objectively reflects the urgency and criticality of the business data in the current communication environment. Finally, the calculated priority score is matched with a predefined data priority hierarchy, thereby accurately classifying the business data into the most suitable priority level. This series of steps forms a closed-loop and logically rigorous priority allocation mechanism, ensuring the accuracy and effectiveness of subsequent transmission resource configuration and dynamic adjustment. This enables edge gateways to manage and schedule IoT data streams more intelligently, thereby optimizing overall communication performance.
[0051] The following example illustrates this. When an edge gateway receives service data from an IoT smart device, it first parses it. For example, for a data packet from an industrial sensor, the edge gateway checks the source port number and protocol type in its header. If it finds that it uses the Modbus TCP protocol and the source port is 502, it initially determines that it may be industrial control data. Simultaneously, the edge gateway can further analyze the data payload to identify the device ID and register address contained within, thus determining that the service data belongs to the "device status reporting" service type. After determining the service type as "device status reporting," according to a preset strategy, its service importance is set to "medium," and its latency sensitivity is set to "medium-low." Subsequently, according to a preset weighted formula, for example: Priority Score = (Service Importance Value × 0.6) + (Latency Sensitivity Value × 0.4), the priority score of the service data is calculated. Assuming "medium" corresponds to a value of 5 and "medium-low" corresponds to a value of 3, then the priority score is (5 × 0.6) + (3 × 0.4) = 3.0 + 1.2 = 4.2. Finally, the score is compared with the preset priority score range. For example, if the score is between 4.0 and 6.0, which corresponds to the second priority level, then the "device status report" service data is matched to the second priority level.
[0052] See Figure 4 In one embodiment, the method for configuring corresponding transmission resources for service data includes, but is not limited to, steps S401 to S403.
[0053] Step S401: Configure a transmission link that meets the latency requirements for the service data of the first priority level, and configure dedicated bandwidth resources for the transmission link.
[0054] Step S402: Configure a primary link and a backup link for the service data of the second priority level, so as to perform redundant transmission of the service data of the second priority level through the primary link and / or the backup link.
[0055] Step S403: Configure a shared transmission link for the service data of the third priority level.
[0056] Shared transmission links reuse the remaining bandwidth resources of the primary link and / or the remaining bandwidth resources of the backup link.
[0057] The priority levels, from first to third, represent a decreasing order of importance. First-priority data refers to data with the highest priority among all data types, typically requiring extremely high latency and reliability. Second-priority data refers to data with the next highest priority, usually requiring high reliability but perhaps slightly less sensitive to latency than first-priority data. Third-priority data refers to data with relatively low priority, typically with lower latency and reliability requirements, but still requiring a certain level of transmission capacity.
[0058] This application's solution, after acquiring business data from IoT smart devices through an edge gateway and determining data priority levels based on their business importance and latency sensitivity, further proposes a differentiated resource configuration strategy for more refined management and allocation of transmission resources. Specifically, for the highest priority level business data, which has extremely stringent latency requirements, a dedicated transmission link is configured, ensuring that this link has exclusive bandwidth resources. This exclusive configuration guarantees that the first priority level data is not interfered with by other data during transmission, thereby maximizing its low latency requirements. For the second priority level business data, which has higher reliability requirements but slightly lower latency sensitivity than the first priority level, a primary link and a backup link are configured. This dual-link configuration allows for redundant transmission through the primary link and / or the backup link. For example, data copies can be sent simultaneously on both links, or a rapid switch to the backup link can occur if the primary link fails, thereby significantly improving the reliability and fault tolerance of data transmission and avoiding data loss or service interruption due to a single link failure. For the third priority level of service data, which has the lowest priority, the requirements for latency and reliability are relatively relaxed. A shared transmission link is configured for it, and this shared transmission link reuses the remaining bandwidth resources of the primary link and / or the remaining bandwidth resources of the backup link. This means that the third priority level data will utilize the bandwidth remaining after high-priority data transmission, thereby achieving full utilization of resources and avoiding bandwidth waste. Through this hierarchical and differentiated transmission resource configuration strategy, this application can ensure that service data of different priority levels receive transmission guarantees commensurate with their importance. First priority level data receives the highest latency guarantee, second priority level data receives high reliability guarantee, while third priority level data efficiently utilizes network resources while ensuring transmission capacity.
[0059] The following is a concrete example to illustrate this. Edge gateways can configure transmission resources in the following ways. For first-priority service data, such as emergency alarm data in industrial control systems or real-time control commands for autonomous vehicles, the edge gateway can allocate a dedicated virtual transmission link based on a 5G URLLC (Ultra-Reliable Low-Latency Communication) slice, ensuring that this slice has reserved, dedicated wireless air interface resources and core network transmission bandwidth. This can be pre-configured in the network by the network slice manager or dynamically established by the SDN controller. For second-priority service data, such as high-definition video surveillance streams or remote medical diagnostic images, the edge gateway can configure two transmission paths: one as the primary link, such as an Ethernet link connected via fiber optic cable; and the other as a backup link, such as a wireless link connected via a 4G / 5G cellular network. During data transmission, the edge gateway can employ multipath transmission technologies, such as MPTCP, to simultaneously send copies of the same data packets on both the primary and backup links, or immediately switch subsequent data to the backup link for transmission if packet loss or increased latency occurs on the primary link, thereby achieving redundant data transmission and ensuring the continuity of the video stream and the integrity of the images. For third-priority service data, such as device log uploads or periodic data from environmental sensors, the edge gateway can be configured with a shared transmission link. This shared link will reuse the bandwidth resources remaining after the first and second priority data transmissions. Specifically, when the data traffic of the first and second priority levels is low, the third priority data can utilize this idle bandwidth for transmission; when the high-priority data traffic increases, the data transmission rate of the third priority level will be limited to prioritize the transmission of high-priority data. This can be achieved by configuring a Weighted Fair Queuing (WFQ) scheduling algorithm in the edge gateway's QoS (Quality of Service) module, assigning different weights to data of different priority levels.
[0060] In some embodiments, dynamically adjusting the way service data occupies transmission resources includes: when the network state meets preset downgrade transmission conditions, restricting the occupation of transmission links by service data of the target priority level, and allowing the released link resources to be used by service data of non-target priority level.
[0061] Degraded transmission conditions refer to specific times when network resource adjustments are triggered. When the edge gateway detects a decline in network performance to a certain level, it initiates a degraded transmission strategy. Degraded transmission conditions may include, but are not limited to: network bandwidth falling below a certain threshold, network latency exceeding a certain threshold, packet loss rate exceeding a certain threshold, or receiving network congestion alarms from the upper-layer network management system or cloud platform. For example, a degraded transmission condition can be defined as being met when network bandwidth is below 5 Mbps for 10 consecutive seconds, or when the average round-trip latency exceeds 100 milliseconds for 30 consecutive seconds.
[0062] There are several ways to limit the occupancy of transmission links by target priority service data, such as: reducing the sending frequency of target priority service data, i.e. reducing the number of data packets sent per unit time; compressing target priority service data to reduce the size of a single data packet; or temporarily stopping or delaying the transmission of target priority service data, caching it locally, and resuming transmission after network conditions improve.
[0063] Non-target priority levels are the highest priority data levels, such as emergency control commands and security alarms. Target priority levels are any data priority level other than the non-target priority levels, such as regular logs and non-real-time monitoring videos. If first, second, and third priority levels exist, the first priority level can be set as a non-target priority level, while the second and third priority levels are target priority levels. Alternatively, the first and second priority levels can be set as non-target priority levels, while the third priority level is the target priority level.
[0064] This application's solution, based on the aforementioned cloud-edge-device hierarchical communication control method, further optimizes resource management strategies when network conditions are poor. When the edge gateway continuously monitors the current network status and finds it meets preset degraded transmission conditions, such as a significant drop in network bandwidth or a significant increase in latency, a degraded transmission mechanism is activated. The core of this mechanism lies in distinguishing the priorities of service data, defining the highest priority data levels as non-target priority levels, and defining other lower priority service data as target priority levels. Subsequently, the occupation of transmission links by target priority service data is limited, for example, by reducing its transmission frequency or performing data compression. Through this restriction, link resources originally occupied by target priority service data are released. These released link resources are immediately made available for non-target priority service data, thereby ensuring that the most critical and urgent service data still receives sufficient transmission guarantees even when network resources are limited. In the face of network degradation, it can strategically sacrifice the transmission quality of some non-critical services to ensure the continuity and reliability of core services, solving the problem of how to ensure the operation of critical services and optimize resource utilization when network conditions deteriorate.
[0065] The following is a concrete example. Assume an edge gateway is used in an Industrial Internet of Things (IIoT) scenario, which includes various IoT smart devices such as production line control robots, environmental sensors, and high-definition surveillance cameras. The business data generated by these devices is divided into three priority levels: first priority level (e.g., robot emergency stop commands, safety alarms), second priority level (e.g., real-time production line operating parameters, high-definition video streams), and third priority level (e.g., device operation logs, periodic environmental data reports). Under normal network conditions, all business data is transmitted according to its configured transmission resources. However, when the edge gateway detects a significant degradation in the connection quality with the cloud or upper-layer network—for example, a continuous packet loss rate exceeding 10% and an average latency exceeding 200 milliseconds—it determines that the network state meets the preset degraded transmission conditions. At this point, the business data in the first priority level is set to a non-target priority level, while the business data in the second and third priority levels is set to the target priority level. To limit the occupancy of transmission links by priority-level service data, the edge gateway can perform real-time encoding degradation on second-priority high-definition video streams, reducing their resolution from 1080p to 720p and lowering the frame rate. Simultaneously, for third-priority device operation logs, the upload frequency can be reduced from once per second to once per minute, and unuploaded data can be temporarily cached in local storage. These restrictions free up bandwidth and processing resources on the transmission links. These freed-up link resources will be prioritized for first-priority emergency shutdown commands and safety alarms, ensuring these critical commands are transmitted with minimal latency and maximum reliability, thereby guaranteeing the safe and stable operation of industrial production.
[0066] In some embodiments, limiting the occupancy of transmission links by target priority level service data includes: determining a target degradation level from multiple preset degradation levels based on the degree of network quality degradation in the network state; reducing the upload frequency of target priority level service data and / or compressing the data packet size of target priority level service data based on the degree of restriction corresponding to the target degradation level.
[0067] The degree of network quality degradation refers to a specific quantitative indicator of the deterioration in current network connectivity performance. This can include, but is not limited to, the magnitude of the decrease in network bandwidth, the increase in packet loss rate, the increase in network latency, and the exacerbation of jitter. For example, the degree of network quality degradation can be quantified as a bandwidth decrease of 20%, 50%, or 80% from its normal value, or an increase in packet loss rate from 1% to 5% or 10%, etc.
[0068] Degradation tiers refer to a predefined series of different restriction levels or modes, each corresponding to a specific degree of network quality degradation and a corresponding resource restriction policy. These tiers can be configured according to actual application scenarios and business needs. For example, tiers such as "mild degradation," "moderate degradation," and "severe degradation" can be set, or tiers can be divided according to the percentage of bandwidth reduction (e.g., 20%, 40%, 60%). Each degradation tier corresponds to a specific degree of restriction. The degree of restriction refers to the strength or scope of the specific resource restriction measures associated with each degradation tier. For example, one degradation tier might stipulate a 50% reduction in the upload frequency of target priority service data while compressing the packet size by 20%; while a more stringent degradation tier might stipulate an 80% reduction in upload frequency and a 50% compression of the packet size.
[0069] This application's solution implements a refined degradation strategy to restrict target priority-level service data. Specifically, it first continuously monitors the current network quality and dynamically matches it to one of a pre-defined target degradation level based on the degree of degradation. Each degradation level has a predefined level of restriction, which may include reducing the upload frequency of target priority-level service data and / or compressing its packet size. In this way, resource consumption of low-priority service data can be targeted and restricted according to the actual degree of network deterioration. This tiered restriction mechanism can adjust the restriction gradient according to the severity of network conditions, thereby ensuring the transmission of high-priority service data while maintaining the effective transmission of target priority-level service data as much as possible, avoiding unnecessary over-restriction or under-restriction, and achieving optimized utilization of transmission resources.
[0070] The following is a concrete example. When the edge gateway detects that the network status meets the preset degradation transmission conditions, for example, the network bandwidth has decreased by 35%, it determines a target degradation level from the preset degradation levels based on the degree of network quality degradation. Assume that the preset degradation levels include "mild degradation" (bandwidth decrease of 10%-30%), "moderate degradation" (bandwidth decrease of 30%-60%), and "severe degradation" (bandwidth decrease of more than 60%). In this case, "moderate degradation" will be determined as the target degradation level. This "moderate degradation" level might correspond to a 50% reduction in the upload frequency of target priority service data and a 30% compression of data packet size. In practice, the edge gateway's communication module can adjust its data transmission scheduler, increasing the transmission interval of target priority service data from 100 milliseconds to 200 milliseconds, thereby reducing the upload frequency. Meanwhile, before sending this service data, the data processing module can call a data compression library (e.g., a compression module based on the LZ4 algorithm) to compress the data to reduce the packet size. These measures effectively free up transmission link resources for use by non-target priority service data, while ensuring that target priority service data can still be transmitted with lower resource consumption.
[0071] In some embodiments, before restricting the occupation of the transmission link by target priority level service data, the method further includes: obtaining the current task status of the IoT smart device; and waiting for the critical task to complete when the network status meets the preset degraded transmission conditions and the current task status indicates that the IoT smart device is performing a critical task that depends on non-target priority level service data.
[0072] This application's solution introduces a mechanism to determine the current task status of IoT smart devices before dynamically adjusting the way business data occupies transmission resources. When the network status meets the conditions for degraded transmission, the current task status of the IoT smart device is first obtained. If it is found that the IoT smart device is executing a critical task that depends on non-target priority business data, the solution waits for the critical task to complete. In this way, this application's solution ensures the effective utilization of network resources while prioritizing the maintenance of the continuity and stability of critical services, thereby improving the robustness and reliability of the entire cloud-edge-device hierarchical communication control system.
[0073] The following is a concrete example. Assume a smart factory environment where an edge gateway manages multiple IoT smart devices, including an industrial robot performing a precision welding task. This precision welding task is defined as a critical task, and its control commands and real-time feedback data belong to a non-target priority level (e.g., first priority level), requiring extremely high latency and reliability. Simultaneously, there are environmental monitoring sensors in the factory, whose data belongs to a target priority level (e.g., third priority level), with relatively lower latency requirements. When the edge gateway detects congestion on the factory's internal network, meeting preset degradation transmission conditions, a conventional strategy might immediately restrict data transmission from the environmental monitoring sensors (target priority level) to free up bandwidth for the industrial robot (non-target priority level). However, in the scheme of this application, before performing the restriction operation, the edge gateway first obtains the current task status of the industrial robot. If the industrial robot reports that it is performing a "precision welding task," and the edge gateway identifies this as a critical task that relies on first priority level business data, then the edge gateway will not immediately restrict the data transmission from the environmental monitoring sensors. Instead, it continuously monitors the industrial robot's task status until it receives a "precision welding task completed" notification. Only after confirming the completion of the critical task will the edge gateway initiate restrictions on data transmission from environmental monitoring sensors, prioritizing the allocation of freed-up link resources to other high-priority business data.
[0074] In some embodiments, dynamically adjusting the way service data occupies transmission resources includes: suspending the occupation of transmission links by service data when the network is interrupted, caching the uncompleted transmission of service data in the local cache of the edge gateway, and actively resuming the transmission of cached service data in descending order of priority after the network is restored; for service data of the first priority level, caching is performed using an immediate retransmission method in the local cache partition configured for it; for service data of the second priority level, caching is performed using a circular caching method in the local cache partition configured for it; and for service data of the third priority level, caching is performed using a breakpoint marking method in the local cache partition configured for it.
[0075] When an edge gateway detects a connection interruption with the cloud or upstream network, it immediately halts ongoing business data transmission to avoid invalid data transmission attempts and resource waste. This can be achieved by monitoring network connectivity status, such as through heartbeat detection, link-layer status monitoring, or route reachability detection. Once an interruption is detected, all pending or ongoing business data streams will be temporarily suspended, no longer consuming transmission link resources.
[0076] To ensure data integrity and subsequent recovery during network outages, all service data that failed to be transmitted before the outage, as well as newly generated service data during the outage, will be stored in a local cache within the edge gateway. This local cache can use non-volatile storage media, such as solid-state drives, flash memory, or high-capacity random access memory, in conjunction with a backup power supply, to prevent data loss when the device loses power.
[0077] Once the gateway detects that the network connection has been restored, it will no longer passively wait but will actively initiate the data resumption process. The resumption order is not random but strictly follows the data priority hierarchy of the business data, starting with the highest priority data and transmitting it sequentially downwards. This mechanism ensures that the most critical and latency-sensitive data is processed and sent first, thereby minimizing the impact of business interruptions.
[0078] This application's solution effectively solves the problems of data loss and transmission efficiency caused by network interruptions by implementing tiered caching and ordered resumption of service data. Specifically, when the edge gateway detects a network connection interruption, it immediately suspends all ongoing service data transmission to avoid unnecessary resource consumption. Simultaneously, all uncompleted service data and newly generated service data during the interruption are reliably cached in the edge gateway's local cache. To address the different requirements for data integrity and latency of service data with varying priorities, this solution configures differentiated caching strategies for service data at different priority levels. For the highest priority (first priority level) service data, an immediate retransmission method is used for caching, ensuring that it can be scheduled for transmission with the highest priority and fastest speed after network recovery, meeting its extremely high latency sensitivity requirements. For the next highest priority (second priority level) service data, a circular caching method is used, ensuring data freshness while allowing older data to be overwritten when cache space is limited. This is suitable for scenarios with certain real-time requirements but where a small amount of data loss is acceptable. For the third-priority service data, which has the lowest priority, a breakpoint marking method is used for caching to accurately record the transmission progress and ensure that transmission can resume from the interruption point after network recovery, avoiding duplicate transmissions. This is suitable for scenarios with large data volumes and high integrity requirements. Once the network recovers, the edge gateway will proactively initiate the resumption mechanism, strictly scheduling the cached service data for transmission in descending order of data priority. This hierarchical caching and ordered resumption mechanism, combined with the overall scheme of prioritizing service data based on its importance and latency sensitivity, configuring transmission resources, and dynamically adjusting transmission resource usage, forms a cloud-edge-device hierarchical communication control system that can operate efficiently and reliably under both normal and abnormal network conditions. It not only optimizes resource allocation when the network is normal but also provides robust data protection and rapid recovery capabilities when the network is interrupted, ensuring the continuity and reliability of service data for IoT smart devices.
[0079] The following example illustrates this. Assume an edge gateway connects to various IoT smart devices, including industrial control sensors, high-definition video surveillance cameras, and environmental monitoring equipment. When the edge gateway's connection to the cloud network is suddenly interrupted, all ongoing upload tasks are suspended. At this time, the edge gateway's local cache begins to function. Emergency alarm data generated by the industrial control sensors is identified as first-priority business data and is immediately written to a dedicated local cache partition using an instant retransmission method. This means that once the network is restored, this alarm data will receive the highest priority, be immediately scheduled and attempted to be sent, ensuring that critical control commands or security events are reported as soon as possible. Real-time video stream data generated by the high-definition video surveillance cameras is identified as second-priority business data and is written to a local cache partition using a circular caching method. For example, this partition can be configured to store the most recent 5 minutes of video data. During the network outage, new video data continuously floods in. If the cache space is full, the oldest video data segment will be overwritten, ensuring that the latest video clips are always retained in the cache so that the latest video information can be resumed after the network is restored. Historical log data generated by environmental monitoring equipment is identified as third-priority business data and written to a local cache partition using a breakpoint marking method. The transmission status of each log file block is recorded. For example, if a 10MB log file has been transmitted for 3MB and the network is interrupted, the transmission breakpoint is marked at 3MB. When the network is restored, the log file will resume transmission from the 3MB mark without retransmitting the already transmitted 3MB, thus saving bandwidth and time. Once the network connection is restored, the edge gateway first checks the data in the first-priority cache partition and immediately begins transmitting these emergency alarm data. After the first-priority data transmission is complete, the latest video data in the second-priority cache partition is processed. Finally, based on the breakpoint marking, the historical log data in the third-priority cache partition is resumed from the point of interruption.
[0080] In some embodiments, dynamically adjusting the way business data occupies transmission resources includes: when the network is interrupted, controlling the IoT smart device according to the latest instructions cached locally by the edge gateway or a preset security policy to maintain the IoT smart device's offline operation.
[0081] This application's solution enables the edge gateway to proactively intervene during network outages, directly controlling IoT smart devices using its locally stored latest instructions and preset security policies. This mechanism allows IoT smart devices to continue performing critical tasks or enter a secure state under the coordination of the edge gateway, even when they lose connection to the cloud. This effectively complements methods that merely dynamically adjust transmission resources based on network conditions, addressing the potential loss of control or shutdown of IoT smart devices in the extreme case of complete network outages, thus ensuring the continuity and robustness of the entire IoT system.
[0082] The following is a concrete example. In a smart factory environment, an edge gateway manages multiple industrial robots on a production line. When a WAN connection interruption is detected, preventing the edge gateway from communicating with the cloud platform, it immediately activates its offline control module. At this time, the edge gateway reads the most recently synchronized robot production task instructions (latest instructions) from its local cache, and loads preset emergency stop and safe zone maintenance policies (preset safety policies). If the robot is performing a non-critical material handling task, the edge gateway may instruct the robot to continue executing the cached task sequence, but limit its maximum speed and range of motion. If the robot is performing a high-risk precision welding task, the edge gateway will, according to the safety policy, immediately send instructions to stop the robot's current operation and move it to a preset safe docking position, preventing potential safety accidents due to a lack of real-time monitoring. Thus, even during network outages, industrial robots can maintain a controlled offline operating state under the local control of the edge gateway, avoiding production interruptions and potential safety risks.
[0083] This application also provides an edge gateway. (See also...) Figure 5 , Figure 5 This is a schematic diagram of the main structure of an edge gateway according to an embodiment of this application. Figure 5 As shown, the edge gateway in this embodiment mainly includes a processor 501 and a memory 502. The memory 502 can be configured to store a program for executing the cloud-edge-device hierarchical communication control method of the above-described method embodiments. The processor 501 can be configured to execute the program in the memory 502, which includes, but is not limited to, a program for executing the cloud-edge-device hierarchical communication control method of the above-described method embodiments. For ease of explanation, only the parts related to the embodiments of this application are shown. For specific technical details not disclosed, please refer to the method section of the embodiments of this application.
[0084] In some possible implementations of this application, the edge gateway may include multiple processors 501 and multiple memories 502. The program executing the cloud-edge-device hierarchical communication control method of the above method embodiments can be divided into multiple subroutines. Each subroutine can be loaded and run by a processor 501 to execute different steps of the cloud-edge-device hierarchical communication control method of the above method embodiments. Specifically, each subroutine can be stored in a different memory 502, and each processor 501 can be configured to execute programs in one or more memories 502 to jointly implement the cloud-edge-device hierarchical communication control method of the above method embodiments. That is, each processor 501 executes different steps of the cloud-edge-device hierarchical communication control method of the above method embodiments to jointly implement the cloud-edge-device hierarchical communication control method of the above method embodiments.
[0085] This application also provides a computer-readable storage medium. In one embodiment of the computer-readable storage medium according to this application, the computer-readable storage medium can be configured to store a program that performs the cloud-edge-device hierarchical communication control method of the above-described method embodiments. This program can be loaded and run by a processor to implement the above-described cloud-edge-device hierarchical communication control method. For ease of explanation, only the parts related to the embodiments of this application are shown; for specific technical details not disclosed, please refer to the method section of the embodiments of this application. The computer-readable storage medium can be a memory comprising various edge gateways. Optionally, in the embodiments of this application, the computer-readable storage medium is a non-transitory computer-readable storage medium.
[0086] The cloud-edge-device hierarchical communication control method, edge gateway, and storage medium provided in this application prioritize service data by introducing service importance and latency sensitivity, and configure transmission resources according to the priority level. During data transmission, the way service data occupies transmission resources is dynamically adjusted according to the real-time network status and priority level. This allows for flexible responses to changes in the network environment. When network conditions are poor, the transmission of high-priority critical service data is prioritized, while non-critical service data is appropriately restricted, ensuring the continuity and stability of critical services and improving the transmission reliability of critical service data and the efficiency of network resource utilization.
[0087] Exemplary embodiments of this disclosure have been specifically shown and described above. It should be understood that this disclosure is not limited to the detailed structures, arrangements, or implementations described herein; rather, this disclosure is intended to cover various modifications and equivalent arrangements contained within the spirit and scope of the appended claims.
Claims
1. A cloud-edge-device hierarchical communication control method, applied to an edge gateway, characterized in that, The cloud-edge-device hierarchical communication control method includes: Acquire business data from IoT smart devices; Based on the business importance and latency sensitivity of the business data, the business data is prioritized to determine the data priority level of the business data; Configure corresponding transmission resources for the service data according to the data priority level; During data transmission, the way in which the service data occupies the transmission resources is dynamically adjusted according to the current network status and the priority level.
2. The cloud-edge-device hierarchical communication control method according to claim 1, characterized in that, The prioritization of the business data includes: Based on the business characteristic information of the business data, determine the business type of the business data; Based on the business type, determine the business importance and latency sensitivity of the business data; Calculate the priority score of the business data based on the business importance and the latency sensitivity; Based on the priority score, the business data is matched to the corresponding data priority level.
3. The cloud-edge-device hierarchical communication control method according to claim 1, characterized in that, The step of configuring corresponding transmission resources for the service data according to the data priority level includes: Configure a transmission link that meets the latency requirements for the first priority level of service data, and configure dedicated bandwidth resources for the transmission link; Configure a primary link and a backup link for the service data of the second priority level, so as to perform redundant transmission of the service data of the second priority level through the primary link and / or the backup link; Configure a shared transmission link for the service data of the third priority level; the shared transmission link reuses the remaining bandwidth resources of the main link and / or the remaining bandwidth resources of the backup link, and the priority levels represented by the first priority level, the second priority level and the third priority level decrease in sequence.
4. The cloud-edge-device hierarchical communication control method according to claim 1, characterized in that, The dynamic adjustment of the way the service data occupies the transmission resources includes: When the network state meets the preset downgrade transmission conditions, the occupation of the transmission link by the target priority level service data is restricted, and the released link resources are used by the non-target priority level service data; the non-target priority level is a number of data priority levels with the highest priority, and the target priority level is any data priority level other than the non-target priority level.
5. The cloud-edge-device hierarchical communication control method according to claim 4, characterized in that, The restriction on the use of the transmission link by the target priority level service data includes: Based on the degree of network quality degradation in the network state, a target degradation level is determined from multiple preset degradation levels; the degradation level corresponds to a corresponding degree of restriction. Based on the degree of restriction corresponding to the target downgrade level, reduce the upload frequency of the service data at the target priority level and / or compress the data packet size of the service data at the target priority level.
6. The cloud-edge-device hierarchical communication control method according to claim 4, characterized in that, Before restricting the use of the transmission link by service data at the target priority level, the method further includes: Obtain the current task status of the IoT smart device; When the network status meets the preset degraded transmission conditions, and the current task status indicates that the IoT smart device is performing a critical task that depends on the non-target priority level business data, wait for the critical task to complete.
7. The cloud-edge-device hierarchical communication control method according to claim 1, characterized in that, The dynamic adjustment of the way the service data occupies the transmission resources includes: When the network is interrupted, the occupation of the transmission link by the service data is suspended, and the uncompleted service data is cached in the local buffer of the edge gateway. After the network is restored, the cached service data is actively resumed in order of priority from high to low. For service data at the first priority level, an immediate retransmission method is used for caching in the local cache partition configured for it. For service data at the second priority level, a circular caching method is used for caching in the local cache partition configured for it. For service data at the third priority level, a breakpoint marking method is used for caching in the local cache partition configured for it. The priority levels represented by the first, second, and third priority levels decrease sequentially.
8. The cloud-edge-device hierarchical communication control method according to claim 1, characterized in that, The dynamic adjustment of the way the service data occupies the transmission resources includes: In the event of a network outage, the IoT smart device is controlled according to the latest instructions cached locally by the edge gateway or a preset security policy to maintain the IoT smart device's offline operation.
9. An edge gateway, characterized in that, The edge gateway includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the cloud-edge-device hierarchical communication control method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the cloud-edge-device hierarchical communication control method as described in any one of claims 1 to 8.
