Cloud-edge collaborative scheduling method and device, equipment, storage medium and program product
By identifying data status using local models at edge nodes and processing it when the confidence level is high, and requesting cloud-based large language model generation strategies when the confidence level is low, the problem of high cloud server resource consumption is solved, and efficient cloud-edge collaborative scheduling is achieved.
Patent Information
- Application Number
- CN202611244578.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-17
- Publication Date
- 2026-11-27
AI Technical Summary
In existing SD-WAN technologies, the large amount of data reported by edge nodes leads to high resource consumption on cloud servers, causing performance bottlenecks.
Edge nodes identify data state types and confidence levels through local models. When the confidence level is higher than a threshold, it is processed locally. When it is lower than the threshold, it requests the cloud-based large language model to generate a global scheduling strategy, thereby reducing the resource consumption of the cloud server.
By combining rapid processing of the local model with the cloud model, the resource consumption of the cloud server is reduced, while the processing efficiency and scheduling response speed of the edge nodes are improved.
Smart Images

Figure CN123185265A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to cloud-edge collaborative scheduling methods, apparatus, devices, storage media, and program products. Background Technology
[0002] Software-defined wide area network (SD-WAN) is a wide area network technology that decouples the control plane from the forwarding plane and uses software to centrally manage and control edge nodes (such as edge gateways) distributed in various locations, thereby achieving multi-link collaborative scheduling.
[0003] In related technologies, SD-WAN management and control functions are centrally deployed on cloud servers. Each edge node reports link and traffic data, which is then analyzed, calculated, and distributed by the cloud. The edge nodes then execute the corresponding scheduling policies.
[0004] However, the large amount of data reported by edge nodes in related technologies leads to high resource consumption on cloud servers. Summary of the Invention
[0005] Therefore, it is necessary to provide a cloud-edge collaborative scheduling method, device, equipment, storage medium, and program product to address the aforementioned technical problems.
[0006] Firstly, this application provides a cloud-edge collaborative scheduling method applied to edge nodes, including:
[0007] The traffic characteristics of the data traffic are obtained, and a local model is used to identify the data status of the data traffic based on the traffic characteristics, so as to obtain the data status type and the confidence level of the data status type.
[0008] When the confidence level is greater than or equal to the preset threshold, the data traffic is scheduled and processed according to the processing action corresponding to the data status type.
[0009] If the confidence level is less than a preset threshold, the large language model requested from the cloud server is used as a global scheduling strategy to schedule and process data traffic according to the global scheduling strategy.
[0010] In one embodiment, a local model is used to identify the data state of data traffic based on traffic characteristics, obtaining the data state type and the confidence level of the data state type, including:
[0011] The traffic flow characteristics at different sampling times are obtained and concatenated in time sequence to obtain a time sequence feature vector;
[0012] The time-series feature vector is input into the local model to identify the data state, and the data state type and confidence level of the data state type are obtained from the output of the local model.
[0013] In one embodiment, obtaining traffic characteristics at different sampling times includes:
[0014] Obtain the load status information of edge nodes;
[0015] When it is determined that the edge node is in an overload state based on the load status information, the traffic characteristics are collected using the first sampling frequency;
[0016] When the edge node is determined to be in a non-overload state based on the load status information, the traffic characteristics are collected using a second sampling frequency; the second sampling frequency is greater than the first sampling frequency.
[0017] In one embodiment, the request to the cloud server to generate a global scheduling policy from a large language model includes:
[0018] Obtain the context summary of the data traffic and the policy request corresponding to the data state type;
[0019] Generate a control message that includes confidence level, context summary, and policy request;
[0020] Control messages are sent to the cloud server, which then inputs the control messages sent by at least two edge nodes into the large language model for global inference to obtain a global scheduling strategy.
[0021] In one embodiment, the method further includes:
[0022] Train the local model to obtain the model gradient parameters;
[0023] The model gradient parameters are sent to the cloud server so that the cloud server can update the large language model based on the model gradient parameters sent by at least two edge nodes and perform knowledge distillation to obtain the updated model.
[0024] Receive the updated model from the cloud server and update the local model accordingly.
[0025] In one embodiment, before using a local model to identify the data state of data traffic based on traffic characteristics, the method further includes:
[0026] The traffic characteristics are matched with the scheduling policies in the historical scheduling policy library; the historical scheduling policy library includes global scheduling policies generated by the large language model.
[0027] If a target scheduling policy that successfully matches the traffic characteristics exists in the historical scheduling policy library, the data traffic is scheduled and processed according to the target scheduling policy.
[0028] If the target scheduling strategy is not found in the historical scheduling strategy library, the step of using a local model to identify the data status of the data traffic based on the traffic characteristics is executed.
[0029] Secondly, this application also provides a cloud-edge collaborative scheduling device, comprising:
[0030] The data identification module is used to obtain the traffic characteristics of data traffic. It uses a local model to identify the data status of data traffic based on the traffic characteristics, and obtains the data status type and the confidence level of the data status type.
[0031] The local processing module is used to schedule and process data traffic according to the processing action corresponding to the data status type when the confidence level is greater than or equal to a preset threshold.
[0032] The cloud processing module is used to request the large language model of the cloud server to form a global scheduling strategy when the confidence level is less than a preset threshold, so as to schedule and process the data traffic according to the global scheduling strategy.
[0033] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in any of the cloud-edge collaborative scheduling methods described above.
[0034] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in any of the cloud-edge collaborative scheduling methods described above.
[0035] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps in any of the cloud-edge collaborative scheduling methods described above.
[0036] In the aforementioned cloud-edge collaborative scheduling method, device, equipment, storage medium, and program products, edge nodes acquire the traffic characteristics of data traffic, use a local model to identify the data status of the data traffic based on the traffic characteristics, obtain the data status type and the confidence level of the data status type, and schedule the data traffic according to the processing action corresponding to the data status type when the confidence level is greater than or equal to a preset threshold. When the confidence level is less than the preset threshold, a global scheduling strategy is generated by the large language model of the cloud server, and the data traffic is scheduled and processed according to the global scheduling strategy. In the above method, the edge nodes acquire the traffic characteristics of data traffic, and the local model identifies the data status type and confidence level. When the confidence level is greater than or equal to the preset threshold, the corresponding processing action is directly executed locally. When the confidence level is less than the preset threshold, a global scheduling strategy is generated by the large language model of the cloud server. This fully utilizes the local resources of the edge nodes, enabling some scheduling tasks to be completed locally on the edge nodes, thereby reducing the interaction with the cloud server and correspondingly reducing the resource consumption of the cloud server. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is an application environment diagram of the cloud-edge collaborative scheduling method in one embodiment;
[0039] Figure 2 This is a flowchart illustrating a cloud-edge collaborative scheduling method in one embodiment;
[0040] Figure 3 This is a flowchart illustrating the process of obtaining data status types and corresponding confidence levels in one embodiment;
[0041] Figure 4 This is a schematic diagram of the process for obtaining traffic characteristics in one embodiment;
[0042] Figure 5 This is a schematic diagram of the process for generating a global scheduling policy in one embodiment;
[0043] Figure 6 This is a schematic diagram of the process for updating the local model in one embodiment;
[0044] Figure 7 This is a schematic diagram illustrating the process of matching a target scheduling policy in the historical scheduling policy library in one embodiment;
[0045] Figure 8 This is a flowchart illustrating the cloud-edge collaborative scheduling method in another embodiment;
[0046] Figure 9 This is a structural block diagram of a cloud-edge collaborative scheduling device in one embodiment;
[0047] Figure 10 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0048] 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.
[0049] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0050] The cloud-edge collaborative scheduling method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, multiple edge nodes 102 communicate with the cloud server 104 via the network, and data traffic scheduling is completed through cloud-edge collaboration.
[0051] In this context, edge node 102 represents an SD-WAN gateway hardware / virtual gateway deployed locally on the application, serving as a local traffic processing unit. For example, edge node 102 may include a Customer-Premises Equipment (CPE) or an Access Point / Point of Presence (POP). Edge node 102 may be implemented using white-box node hardware.
[0052] In one exemplary embodiment, such as Figure 2 As shown, a cloud-edge collaborative scheduling method is provided, which can be applied to... Figure 1 Taking any edge node in the data as an example, the following steps are included:
[0053] S210. Obtain the traffic characteristics of the data traffic, and use a local model to identify the data status of the data traffic based on the traffic characteristics to obtain the data status type and the confidence level of the data status type.
[0054] Here, data traffic refers to the business data flow that the edge node needs to process. For example, data traffic can be video conferencing traffic, office messages, IoT sensor reporting traffic, etc. Traffic characteristics are used to characterize the features of data traffic and can include various types. For example, traffic characteristics can include at least one of the following: message transmission delay, jitter value, packet size distribution, Transport Layer Security (TLS) fingerprint, arrival time interval, number of bytes, and protocol type.
[0055] A local model refers to a lightweight inference model deployed locally at the edge, requiring low computing power and not relying on cloud servers. For example, a local model can be a lightweight CNN model, a lightweight Transformer / decision tree model, a Tiny Machine Learning (TinyML) model, or a Small Language Model (SLM). Data state types are used to characterize the state of data traffic. For example, data state types can include normal and abnormal; for abnormal situations, specific abnormality types can be included, such as congestion or attack.
[0056] Optionally, the edge node can collect traffic data in real time and process it to obtain at least one type of traffic feature. The obtained at least one type of traffic feature is then input into the local model for data state identification, so as to obtain the data state type of the data traffic and the confidence level of the data state type through local inference at the edge node.
[0057] S220. When the confidence level is greater than or equal to the preset threshold, the data traffic is scheduled and processed according to the processing action corresponding to the data status type.
[0058] Different data status types correspond to different processing actions. For example, when the data status type is normal, the corresponding processing action includes forwarding according to the requested link; when the data status type is congested, the corresponding processing action includes forwarding according to priority.
[0059] Optionally, after obtaining the data state type and corresponding confidence level of the local model output, the edge node can compare the confidence level with a preset threshold. If the confidence level is greater than or equal to the preset threshold, the edge node can obtain the corresponding data state type processing action and schedule the data traffic according to the processing action.
[0060] For example, the edge node locally stores a preset mapping table of data state types and processing actions. The edge node can determine the processing action corresponding to the data state type by querying the mapping table.
[0061] S230. If the confidence level is less than a preset threshold, request the large language model on the cloud server to generate a global scheduling strategy, so as to schedule and process the data traffic according to the global scheduling strategy.
[0062] The cloud server serves as the control center of the SD-WAN architecture, communicating with multiple edge nodes and handling global management. The Large Language Model (LLM) deployed on the cloud server undergoes knowledge distillation to obtain the local models on the edge nodes.
[0063] Optionally, the edge node can compare the confidence level with a preset threshold, and if the confidence level is less than the preset threshold, request the large language model of the cloud server to generate a global scheduling strategy, so as to schedule and process the data traffic according to the global scheduling strategy.
[0064] For example, edge nodes can directly forward the collected traffic features to the cloud server. The cloud server can receive traffic features sent by multiple edge nodes and input them into the LLM for deep inference to obtain the global scheduling strategy output by the LLM model.
[0065] It should be noted that if the edge node can execute the global scheduling strategy, the cloud server will send the global scheduling strategy to the corresponding edge node to instruct the edge node to use the global scheduling strategy to schedule and process the data traffic; if the cloud server needs to execute the global scheduling strategy, the cloud server can directly use the global scheduling strategy to schedule and process the data traffic.
[0066] In this embodiment, the edge node acquires the traffic characteristics of the data traffic and uses a local model to identify the data status of the data traffic based on the traffic characteristics, obtaining the data status type and the confidence level of the data status type. When the confidence level is greater than or equal to a preset threshold, the data traffic is scheduled according to the processing action corresponding to the data status type. When the confidence level is less than the preset threshold, the cloud server's large language model is requested to generate a global scheduling strategy, so that the data traffic is scheduled and processed according to the global scheduling strategy. In the above method, the edge node acquires the traffic characteristics of the data traffic, and the local model identifies the data status type and confidence level. When the confidence level is greater than or equal to the preset threshold, the corresponding processing action is directly executed locally. When the confidence level is less than the preset threshold, the cloud server's large language model is requested to generate a global scheduling strategy. This fully utilizes the local resources of the edge node, so that some scheduling tasks are completed locally on the edge node, thereby reducing the interaction with the cloud server and correspondingly reducing the resource consumption of the cloud server.
[0067] To obtain the data state type and corresponding confidence level, in one embodiment, such as Figure 3 As shown, in S210 above, a local model is used to identify the data status of data traffic based on traffic characteristics, obtaining the data status type and the confidence level of the data status type, including:
[0068] S310. Obtain the flow characteristics at different sampling times and concatenate them according to the time sequence to obtain the time sequence feature vector.
[0069] Optionally, edge nodes can sample data traffic in packets, process data packets at different sampling times to obtain traffic features at the corresponding sampling times, and then concatenate the traffic features at different sampling times in time sequence to obtain a time sequence feature vector.
[0070] S320. Input the time series feature vector into the local model to identify the data state, and obtain the data state type and the confidence level of the data state type output by the local model.
[0071] Optionally, edge nodes can feed the spliced temporal feature vector into the local model, so that the local model can perform traffic feature change analysis based on the temporal feature vector and output the data status type and confidence level of the data status type.
[0072] In this embodiment, traffic characteristics at different sampling times are obtained and concatenated in time sequence to obtain a time-series feature vector. The time-series feature vector is then input into a local model for data state identification to obtain the data state type and confidence level of the data state type output by the local model. In the above method, the time-series feature vector is obtained by concatenating traffic characteristics at different sampling times, which preserves the dynamic information of traffic characteristics changing over time. This helps the local model capture the changing patterns of traffic characteristics, thereby improving the accuracy and reliability of the local model in identifying traffic states.
[0073] Edge nodes have different sampling frequencies for traffic characteristics under different load states. Based on this, in one embodiment, such as Figure 4 As shown, S310 above, obtaining the flow characteristics at different sampling times, includes:
[0074] S410. Obtain the load status information of the edge nodes.
[0075] The load status information of the edge nodes is used to reflect the load status of the edge nodes. For example, the load status information can be at least one of CPU utilization and memory usage.
[0076] Optionally, edge nodes can periodically read local CPU utilization and memory usage, which can be used as load status information for the edge nodes.
[0077] S420. When it is determined that the edge node is in a non-overload state based on the load status information, the traffic characteristics are collected using the first sampling frequency.
[0078] S430. When it is determined that the edge node is in an overload state based on the load status information, the traffic characteristics are collected using a second sampling frequency; the second sampling frequency is less than the first sampling frequency.
[0079] The load status of edge nodes includes overload and non-overload states.
[0080] Optionally, the edge node can determine its load status based on the obtained load status information. If the edge node is determined to be in a non-overloaded state, a higher first sampling frequency can be used to collect traffic characteristics to fully utilize local resources and improve scheduling efficiency. If the edge node is determined to be in an overloaded state, a degradation mode is triggered, including reducing the sampling frequency and using a lower second sampling frequency to collect traffic characteristics to reduce local resource consumption until the edge node returns to a non-overloaded state.
[0081] For example, taking load status information including CPU utilization and memory usage as an example, if at least one of CPU utilization and memory usage is continuously greater than the corresponding preset threshold for a preset duration, the edge node can determine that the load status of the edge node is overloaded, and otherwise it is non-overloaded.
[0082] In practical applications, when it is determined that the edge node is in an overloaded state, triggering the reduction mode may include reducing the sampling frequency of traffic characteristics, or it may include activating a service whitelist. If the service type corresponding to the data traffic does not belong to the service whitelist, the edge node can directly discard the data traffic to reduce the efficiency of local resources. This ensures that the edge node guarantees basic forwarding, and local resources can be used as much as possible for scheduling and processing data traffic whose corresponding service type belongs to the service whitelist, until the edge node returns to an unloaded state.
[0083] In this embodiment, by acquiring the load status information of the edge node, a first sampling frequency is used to collect traffic characteristics when the edge node is determined to be in a non-overload state based on the load status information, and a second sampling frequency is used to collect traffic characteristics when the edge node is determined to be in an overload state based on the load status information; the second sampling frequency is less than the first sampling frequency; in the above method, the sampling frequency is dynamically and autonomously switched according to the load of the edge node, so as to ensure the sampling precision when the load is low and reduce the computational overhead of the edge node when overloaded, thereby realizing adaptive adjustment of sampling.
[0084] To obtain a global scheduling strategy, in one embodiment, such as Figure 5As shown, the global scheduling strategy for generating the large language model from the cloud server in S230 above includes:
[0085] S510. Obtain the context summary of the data traffic and obtain the policy request corresponding to the data state type.
[0086] The context summary of data traffic represents the summary information obtained by compressing the data traffic. Policy requests characterize scheduling needs initiated by edge nodes to the cloud server. Different data state types correspond to different policy requests. For example, for a data state type of congestion, the corresponding policy request includes requests for QoS priority adjustment or link switching.
[0087] Optionally, the edge node compresses and extracts the raw data traffic to obtain a lightweight context summary, and retrieves the policy request for the data state type corresponding to the local model output.
[0088] S520, Generate a control message including confidence level, context summary, and policy request.
[0089] Optionally, the edge node can generate a control message including the confidence level, context summary, and policy request based on the confidence level of the obtained data state type, the context summary of the obtained data traffic, and the policy request corresponding to the data state type.
[0090] In an alternative embodiment, the control message may also include other additional information, such as source / destination node IDs, timestamps, and the aforementioned confidence level, context summary, and policy request are located in the payload area of the control message.
[0091] S530: Send the control message to the cloud server so that the cloud server can input the control messages sent by at least two edge nodes into the large language model for global inference and obtain the global scheduling strategy.
[0092] Optionally, the edge nodes transmit the aforementioned control messages to the cloud server via the TLS encrypted channel of the SD-WAN control plane. The cloud server can receive control messages reported by multiple edge nodes, input them into the LLM for global inference, and combine the network topology and historical operation and maintenance knowledge base to deduce the global scheduling strategy for multiple edge nodes.
[0093] In this embodiment, a context summary of the data traffic is obtained, and a policy request corresponding to the data state type is obtained. A control message including confidence level, context summary, and policy request is generated and sent to the cloud server. The cloud server then inputs the control messages sent by at least two edge nodes into a large language model for global inference to obtain a global scheduling policy. In the above method, by fusing confidence level, context summary, and policy request to generate a control message and uploading it to the cloud server for global inference by the large language model to obtain a global scheduling policy, the data information reported by edge nodes to the cloud server is simplified, transmission overhead is reduced, and scheduling response timeliness is improved.
[0094] The LLM on the cloud server is also responsible for updating the local model on the edge nodes. In one embodiment, such as Figure 6 As shown, the above method also includes:
[0095] S610. Train the local model to obtain the model gradient parameters.
[0096] Here, the model gradient parameter refers to the weight gradient generated by the backpropagation training of the model, which is only an incremental parameter.
[0097] Optionally, edge nodes can use local traffic data to train and fine-tune the local model to obtain gradient update parameters generated during training.
[0098] S620. Send the model gradient parameters to the cloud server so that the cloud server can update the large language model based on the model gradient parameters sent by at least two edge nodes, and perform knowledge distillation to obtain the updated model.
[0099] Among them, the cloud server updates the LLM according to the model gradient parameters to realize federated learning evolution of the LLM, without the need to collect the original traffic data of each edge node.
[0100] Optionally, edge nodes periodically report the trained model gradient parameters to the cloud server. The cloud server integrates the model gradient parameters reported by different edge nodes to complete the global update of the LLM, and then obtains a lightweight updated model based on the updated LLM knowledge distillation.
[0101] S630 receives the updated model from the cloud server and updates the local model accordingly.
[0102] Optionally, edge nodes receive lightweight updated models from cloud servers to replace local models.
[0103] In this embodiment, the local model is trained to obtain model gradient parameters, which are then sent to a cloud server. The cloud server updates the large language model (LLM) based on the model gradient parameters reported by at least two edge nodes and performs knowledge distillation to obtain an updated model. The local model is then updated based on the updated model sent by the cloud server. In the above method, the gradient parameters obtained from the local model training are uploaded to the cloud server, which aggregates the model gradient parameters reported by multiple edge nodes to update the LLM. The updated model is then obtained through knowledge distillation and sent to the edge nodes, completing the iterative update of the local model at the edge nodes. This process protects edge data privacy, achieves multi-edge collaborative model optimization, reduces model sending overhead, and improves the efficiency of local model iterative updates.
[0104] To improve scheduling efficiency, in one embodiment, such as Figure 7 As shown, before using a local model to identify the data status of data traffic based on traffic characteristics in S210 above, the method further includes:
[0105] S710. Match traffic characteristics with scheduling policies in the historical scheduling policy library; the historical scheduling policy library includes global scheduling policies generated by the large language model.
[0106] The historical scheduling strategy library includes a variety of scheduling strategies, and the global scheduling strategy output by the LLM in the cloud server is also cached in the local historical scheduling strategy library by the edge nodes.
[0107] Optionally, after obtaining the traffic characteristics of the data traffic, the edge node can match the traffic characteristics with the scheduling policies in the local cached historical scheduling policy library to determine whether there are reusable scheduling policies locally.
[0108] S720. If a target scheduling strategy that successfully matches the traffic characteristics exists in the historical scheduling strategy library, the data traffic is scheduled and processed according to the target scheduling strategy.
[0109] Optionally, edge nodes can search the historical scheduling strategy library based on traffic characteristics. If a scheduling strategy that matches the traffic characteristics is found, the matching scheduling strategy is used as the target scheduling strategy, and the data traffic is scheduled and processed using the target scheduling strategy.
[0110] S730. If the target scheduling strategy is not found in the historical scheduling strategy library, perform the step of identifying the data status of the data traffic based on the traffic characteristics using the local model.
[0111] Optionally, the edge node can search the historical scheduling strategy library based on the traffic characteristics. If there is no scheduling strategy in the historical scheduling strategy library that matches the traffic characteristics, that is, if there is no target scheduling strategy, then the above-mentioned steps of using the local model to identify the data status of the data traffic based on the traffic characteristics and subsequent steps are executed in S210.
[0112] In this embodiment, traffic characteristics are matched with scheduling policies in the historical scheduling policy library. If a target scheduling policy that matches the traffic characteristics exists in the historical scheduling policy library, the data traffic is scheduled according to the target scheduling policy. If no target scheduling policy exists in the historical scheduling policy library, a step of using a local model to identify the data status of the data traffic based on the traffic characteristics is performed. The historical scheduling policy library includes global scheduling policies generated by a large language model. In the above method, the global scheduling policy output by the LLM in the cloud server is cached in the local historical scheduling policy library of the edge node. The traffic characteristics are first matched with the scheduling policies in the historical scheduling policy library. If a match is found, the target policy is directly reused to schedule the data traffic. If no match is found, the local model is used to identify the data status type, thereby realizing hierarchical processing of data traffic, reducing the number of model inferences, reducing computational overhead, and improving traffic scheduling efficiency.
[0113] To facilitate understanding by those skilled in the art, the cloud-edge collaborative scheduling method provided in this application is described in detail below, such as... Figure 8 As shown, the method may include:
[0114] S801, Obtain the traffic characteristics of the data traffic;
[0115] S802. Match the traffic characteristics with the scheduling policies in the historical scheduling policy library; the historical scheduling policy library includes global scheduling policies generated by the large language model in the cloud server.
[0116] S803. If a target scheduling policy that successfully matches the traffic characteristics exists in the historical scheduling policy library, the data traffic shall be scheduled and processed according to the target scheduling policy.
[0117] S804. If the target scheduling policy does not exist in the historical scheduling policy library, obtain the load status information of the edge node.
[0118] S805. When it is determined that the edge node is in an overload state based on the load status information, the first sampling frequency is used to collect the traffic characteristics.
[0119] S806. When it is determined that the edge node is in a non-overload state based on the load status information, the traffic characteristics are collected using a second sampling frequency; the second sampling frequency is greater than the first sampling frequency.
[0120] S807. The collected traffic flow features are concatenated according to time sequence to obtain a time sequence feature vector;
[0121] S808. Input the time-series feature vector into the local model to identify the data state, and obtain the data state type and the confidence level of the data state type output by the local model.
[0122] S809. When the confidence level is greater than or equal to the preset threshold, the data traffic is scheduled and processed according to the processing action corresponding to the data status type.
[0123] S810. If the confidence level is less than a preset threshold, obtain the context summary of the data traffic and obtain the policy request corresponding to the data state type.
[0124] S811. Generate a control message including confidence level, context summary, and policy request;
[0125] S812. Send the control message to the cloud server so that the cloud server can input the control messages sent by at least two edge nodes into the large language model for global reasoning to obtain a global scheduling policy, and schedule and process the data traffic according to the global scheduling policy.
[0126] S813. Train the local model to obtain the model gradient parameters;
[0127] S814. Send the model gradient parameters to the cloud server so that the cloud server can update the large language model based on the model gradient parameters sent by at least two edge nodes and perform knowledge distillation to obtain the updated model.
[0128] S815 receives the updated model from the cloud server and updates the local model accordingly.
[0129] It should be noted that the descriptions in S81-S815 above can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.
[0130] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0131] Based on the same inventive concept, this application also provides a cloud-edge collaborative scheduling device for implementing the cloud-edge collaborative scheduling method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more cloud-edge collaborative scheduling device embodiments provided below can be found in the limitations of the cloud-edge collaborative scheduling method described above, and will not be repeated here.
[0132] In one exemplary embodiment, such as Figure 9 As shown, a cloud-edge collaborative scheduling device is provided, including: a data identification module 901, a local processing module 902, and a cloud processing module 903, wherein:
[0133] The data identification module 901 is used to obtain the traffic characteristics of the data traffic, and uses a local model to identify the data status of the data traffic based on the traffic characteristics, thereby obtaining the data status type and the confidence level of the data status type.
[0134] The local processing module 902 is used to schedule and process data traffic according to the processing action corresponding to the data status type when the confidence level is greater than or equal to a preset threshold.
[0135] The cloud processing module 903 is used to request the large language model of the cloud server to form a global scheduling strategy when the confidence level is less than a preset threshold, so as to schedule and process the data traffic according to the global scheduling strategy.
[0136] Each module in the aforementioned cloud-edge collaborative scheduling device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0137] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 10 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a cloud-edge collaborative scheduling method.
[0138] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0139] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement any of the steps in the cloud-edge collaborative scheduling described above.
[0140] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements any of the steps in the cloud-edge collaborative scheduling described above.
[0141] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the steps in the cloud-edge collaborative scheduling described above.
[0142] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0143] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0144] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A cloud-edge collaborative scheduling method, applied to edge nodes, characterized in that, include: The traffic characteristics of the data traffic are obtained, and a local model is used to identify the data status of the data traffic based on the traffic characteristics to obtain the data status type and the confidence level of the data status type. If the confidence level is greater than or equal to a preset threshold, the data traffic is scheduled and processed according to the processing action corresponding to the data state type. If the confidence level is less than the preset threshold, a global scheduling strategy is requested from the cloud server to schedule the data traffic according to the global scheduling strategy.
2. The method according to claim 1, characterized in that, The step of using a local model to identify the data state of the data traffic based on the traffic characteristics, and obtaining the data state type and the confidence level of the data state type, includes: The traffic flow characteristics at different sampling times are obtained and concatenated in time sequence to obtain a time sequence feature vector; The time-series feature vector is input into the local model for data state identification, and the data state type and the confidence level of the data state type are obtained from the output of the local model.
3. The method according to claim 2, characterized in that, The acquisition of the flow characteristics at different sampling times includes: Obtain the load status information of the edge nodes; If it is determined that the edge node is in a non-overload state based on the load status information, the traffic characteristics are collected using a first sampling frequency. If the edge node is determined to be in an overload state based on the load status information, the traffic characteristics are collected using a second sampling frequency; the second sampling frequency is less than the first sampling frequency.
4. The method according to any one of claims 1-3, characterized in that, The request to the cloud server for a large language model to generate a global scheduling strategy includes: Obtain the context summary of the data traffic and the policy request corresponding to the data state type; Generate a control message that includes the confidence level, the context summary, and the policy request; The control message is sent to the cloud server, so that the cloud server can input the control messages sent by at least two edge nodes into the large language model for global inference to obtain the global scheduling strategy.
5. The method according to any one of claims 1-3, characterized in that, The method further includes: The local model is trained to obtain the model gradient parameters; The model gradient parameters are sent to the cloud server so that the cloud server can update the large language model based on the model gradient parameters sent by at least two edge nodes, and perform knowledge distillation to obtain an updated model. Receive the updated model from the cloud server, and update the local model according to the updated model.
6. The method according to any one of claims 1-3, characterized in that, Before using a local model to identify the data state of the data traffic based on the traffic characteristics, the method further includes: The traffic characteristics are matched with scheduling strategies in the historical scheduling strategy library; the historical scheduling strategy library includes the global scheduling strategy generated by the large language model. If a target scheduling policy that successfully matches the traffic characteristics exists in the historical scheduling policy library, the data traffic is scheduled and processed according to the target scheduling policy; If the target scheduling strategy is not found in the historical scheduling strategy library, the step of using a local model to identify the data status of the data traffic based on the traffic characteristics is executed.
7. A cloud-edge collaborative scheduling device, characterized in that, The device includes: The data identification module is used to acquire the traffic characteristics of the data traffic, and to use a local model to identify the data status of the data traffic based on the traffic characteristics, thereby obtaining the data status type and the confidence level of the data status type. The local processing module is used to schedule and process the data traffic according to the processing action corresponding to the data state type when the confidence level is greater than or equal to a preset threshold. The cloud processing module is used to request a global scheduling strategy from the cloud server for the large language model when the confidence level is less than the preset threshold, so as to schedule and process the data traffic according to the global scheduling strategy.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
