A dynamic bandwidth allocation method, system, electronic device and medium based on large model
Through a dynamic bandwidth allocation method based on large models, ChatGLM3 is used to model and integrate historical and multimodal data, predict future traffic, and define a dynamic priority adjustment mechanism, which solves the problem of inability to effectively deal with dynamic traffic changes in the existing technology, realizes efficient and intelligent bandwidth allocation, and improves network service quality and user experience.
Patent Information
- Application Number
- CN202411952292.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-12-27
AI Technical Summary
The existing network resource allocation scheme cannot effectively deal with changes in dynamic traffic, resulting in peak network congestion and user experience decline, and lacks intelligence, making it impossible to cope with the challenges brought by burst traffic.
The dynamic bandwidth allocation method based on large models is adopted, and the historical traffic data and multimodal data are modeled and fusion through the pre-training architecture of ChatGLM3, the fusion characteristics are obtained, and the ChatGLM3 model is used to predict future traffic, define dynamic priority adjustment mechanisms and intelligent bandwidth allocation, and realize dynamic adjustment and bandwidth allocation of multiple services.
It significantly improves the accuracy of traffic prediction, ensures efficient utilization of network resources, can adaptively adjust bandwidth allocation, avoid waste or insufficient resources, and improves network service quality and user experience.
Smart Images

Figure CN119383675B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a large model-based dynamic bandwidth allocation method, system, electronic equipment and medium. Background Art
[0002] With the rapid development of information technology and the continuous expansion of network applications, the surge in network traffic has become an indisputable fact. Especially in scenarios with high bandwidth requirements such as video streaming, cloud computing, and online games, users' expectations for network quality are constantly increasing. This change in demand has brought huge challenges to network management and resource allocation.
[0003] Existing network resource allocation solutions mainly include fixed bandwidth allocation, dynamic allocation based on priority scheduling, and load balancing solutions. Fixed bandwidth allocation cannot adapt to dynamic traffic changes, resulting in network congestion and reduced user experience during peak hours. Although the priority scheduling-based solution can provide priority protection for real-time services such as video calls, its static priority setting lacks intelligence and cannot cope with the challenges brought by burst traffic. At the same time, load balancing technology dynamically adjusts node loads by monitoring traffic. Although it can disperse pressure, it has deficiencies in refined control of bandwidth allocation and traffic prediction, making it difficult to effectively prevent the problem of insufficient bandwidth.
[0004] Therefore, it is of great significance to develop a method that can intelligently and adaptively allocate network resources. Summary of the invention
[0005] The purpose of the present invention is to provide a large model-based dynamic bandwidth allocation method, system, electronic device and medium to solve the deficiencies in the background technology.
[0006] In order to achieve the above object, the present invention provides the following technical solution: a dynamic bandwidth allocation method based on a large model, comprising:
[0007] The pre-trained architecture of ChatGLM3 is used to model and fuse historical traffic data and multimodal data to obtain fusion features, and the ChatGLM3 large model is used to predict future traffic based on the fusion features to obtain traffic prediction;
[0008] Define dynamic priority adjustment mechanism and intelligent bandwidth allocation based on traffic prediction to achieve dynamic adjustment and bandwidth allocation for multiple services;
[0009] Build a global resource optimization strategy, combine priority adjustment and bandwidth allocation based on traffic prediction, and realize comprehensive scheduling of bandwidth resources in the network.
[0010] In a new embodiment, the steps of using the pre-trained architecture of ChatGLM3 to model and fuse historical traffic data and multimodal data to obtain fusion features, and using the ChatGLM3 large model to predict future traffic based on the fusion features to obtain traffic prediction include:
[0011] Defining historical traffic datasets for large-scale networks ,in represents the number of time steps, represents the number of devices, and Indicates the device In time Traffic flow at the moment;
[0012] The pre-trained architecture of ChatGLM3 is used to perform global dependency modeling on the input historical traffic numbers through the self-attention mechanism to automatically capture the correlation in the time series:
[0013]
[0014] in, They are historical traffic datasets The query, key and value matrices obtained after linear transformation, is a learnable weight matrix, is the dimension of the key vector, the output of the self-attention mechanism Represents the weighted information of historical traffic data in the time series, which is used to show the trend and dependency of traffic changes;
[0015] At the same time, ChatGLM3's pre-trained architecture is used to perform multimodal data fusion to obtain a multimodal feature representation vector;
[0016] Use gating mechanism to fuse the multimodal feature representation vector and the output of self-attention mechanism The fusion features are obtained and the ChatGLM3 large model is used for traffic prediction.
[0017] In a new embodiment, the steps of using the pre-trained architecture of ChatGLM3 to perform multimodal data fusion are:
[0018] Define multimodal data input, respectively , represents the historical data under different modes;
[0019] Through the pre-trained architecture of ChatGLM3, the feature-level fusion method is used to perform multimodal data fusion, mapping historical data under different modalities into a unified feature space:
[0020]
[0021] in, is modal The feature extraction function is is a multimodal feature representation vector.
[0022] In a new embodiment, the steps of using a gating mechanism to fuse the multimodal feature representation vector and the output of the self-attention mechanism to obtain a fused feature, and using the ChatGLM3 large model to perform traffic prediction are:
[0023] Calculate a gating weight , used to decide and relative importance in the integration process;
[0024] Gating weight Through and After linear transformation and Sigmoid activation function, we get:
[0025]
[0026] in, represents the learnable weight matrix of the gating layer, is the bias term, Represents the Sigmoid activation function and limits the gate weight to the interval [0,1];
[0027] Using gated weights make and Perform weighted fusion to obtain fusion features:
[0028]
[0029] in, represents the fusion feature, Indicates element-wise multiplication. When g is larger, the model will pay more attention to , when g is small, the model will rely more on ;
[0030] Based on the fusion features, assuming that the predicted time step is , prediction results of the ChatGLM3 large model It can be expressed as:
[0031]
[0032] in, It is the prediction function of the ChatGLM3 model on multimodal data and historical traffic data, and the output It is the traffic forecast.
[0033] In a new embodiment, the steps of defining a dynamic priority adjustment mechanism and intelligent bandwidth allocation based on traffic prediction to achieve dynamic adjustment and bandwidth allocation of multiple services are as follows:
[0034] Define that there are N businesses in the system and the priority of each business and bandwidth requirements Changes over time;
[0035] The dynamic adjustment mechanism of priority is realized by the following formula:
[0036]
[0037] in, It's time business The priority of It's time Time business The priority of It's business In time The flow demand function at time, It's business In time Traffic information at the moment, is the predicted future traffic demand, where It's the future moment The traffic estimate, is a smoothing coefficient, which is used to balance the weight of current priority and real-time demand and control the speed of priority adjustment. is the balance factor, used to control the current moment and The relative weight of ;
[0038] Traffic demand function Used according to Calculate its bandwidth requirement, expressed as:
[0039]
[0040] Indicates business In time The traffic proportion at the moment is used to dynamically adjust its priority. When the traffic demand is large, its priority will increase; conversely, when the business traffic is small, its priority will decrease. The priority also increases as the business needs increase;
[0041] When priority The total bandwidth resources are determined by weighted bandwidth allocation method. Dynamic allocation to different services, expressed as:
[0042]
[0043] in, yes Time allocated to business bandwidth, yes Total bandwidth resources at the moment, It's business The priority of It is the sum of all business priorities;
[0044] formula This indicates that the bandwidth allocation for each service is proportional to its priority. The higher the priority of the service, the more bandwidth resources it will get.
[0045] Build a traffic anomaly detection mechanism to detect traffic anomaly services and determine whether the priority of traffic anomaly services needs to be adjusted.
[0046] In a new embodiment, the steps of constructing a traffic anomaly detection mechanism for detecting traffic anomaly services and determining whether the priority of traffic anomaly services needs to be adjusted are:
[0047] Collect the traffic change rate of each business and the standard deviation of flow rate variation ,in for:
[0048]
[0049] And assuming there is time points, the standard deviation for:
[0050]
[0051] in It represents the average value of the rate of change;
[0052] when When the system considers that abnormal traffic occurs, Threshold parameters for controlling anomaly detection;
[0053] When a traffic abnormality service occurs, the system increases the priority weight of the traffic abnormality service until the traffic of the traffic abnormality service returns to normal.
[0054] In a new embodiment, the steps of constructing a global resource optimization strategy, combining priority adjustment and bandwidth allocation based on traffic prediction, and realizing comprehensive scheduling of bandwidth resources in the network are:
[0055] The bandwidth resources in the network are divided into a finite number of clusters, and a utility function is defined to measure the benefits of bandwidth allocation:
[0056]
[0057] Based on the formula , then the global optimization goal of bandwidth resources in the network is:
[0058]
[0059] in, Is a cluster The weight is used to further reflect the business importance of the cluster.
[0060] The present invention also provides a large model-based dynamic bandwidth allocation system, comprising:
[0061] Traffic prediction model module: Use the pre-trained architecture of ChatGLM3 to model and fuse historical traffic data and multimodal data to obtain fusion features, and use the ChatGLM3 large model to predict future traffic based on the fusion features to obtain traffic prediction;
[0062] Dynamic priority adjustment module: connected with the traffic prediction model module, defines dynamic priority adjustment mechanism and intelligent bandwidth allocation based on traffic prediction, and realizes dynamic adjustment and bandwidth allocation of multiple services;
[0063] Global resource optimization module: connected with the dynamic priority adjustment module, builds a global resource optimization strategy, combines priority adjustment and bandwidth allocation based on traffic prediction, and realizes comprehensive scheduling of bandwidth resources in the network.
[0064] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0065] 1. This invention uses a pre-trained architecture to model and fuse historical traffic data and multimodal data input, significantly improving the accuracy of traffic prediction. Through the self-attention mechanism, this method can automatically capture the correlation and trend in the time series, providing a sufficient information basis for the model. Based on the use of historical and real-time data, ChatGLM3 can understand the complex patterns in the data and make accurate predictions of future traffic changes;
[0066] 2. The present invention ensures efficient use of network resources by constructing a dynamic priority adjustment mechanism. The system automatically adjusts the priority of each service according to the traffic demand at a specific time. When the traffic demand of a service increases, its priority also increases to ensure that the service can obtain the required bandwidth. Conversely, when the traffic demand decreases, the priority will also decrease. Such an adjustment can effectively avoid waste or shortage of resources under static strategies. By introducing smoothing coefficients and weight factors, the system can flexibly control the speed and amplitude of priority adjustment, thereby improving management accuracy. This mechanism ensures that key services can still be given priority when the network is highly loaded, enhancing the service quality and user experience of the entire network, and making it more adaptable in a changing environment;
[0067] 3. The present invention constructs an intelligent bandwidth allocation method, makes full use of the results of traffic prediction and dynamic priority adjustment, and adopts a weighted method to allocate bandwidth to different services. High-priority services obtain more bandwidth in the allocation, while low-priority services obtain relatively less bandwidth, ensuring that network resources are reasonably used. In addition, the system can monitor and analyze the traffic changes of each service in real time, and effectively identify any abnormal traffic service by calculating the traffic change rate and standard deviation of each service, and increase the priority through the anomaly detection mechanism, so that it can obtain the necessary bandwidth support and ensure the stable operation of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0069] Figure 1 is a flow chart of the method of the present invention;
[0070] Figure 2 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0072] Example 1, please refer to Figure 1 As shown, the large model-based dynamic bandwidth allocation method described in this embodiment includes:
[0073] S1. Use the pre-trained architecture of ChatGLM3 to model and fuse historical traffic data and multimodal data to obtain fusion features, and use the ChatGLM3 large model to predict future traffic based on the fusion features to obtain traffic prediction;
[0074] S2. Define dynamic priority adjustment mechanism and intelligent bandwidth allocation based on traffic prediction to achieve dynamic adjustment and bandwidth allocation for multiple services;
[0075] S3. Build a global resource optimization strategy, combine priority adjustment and bandwidth allocation based on traffic prediction, and realize comprehensive scheduling of bandwidth resources in the network;
[0076] As described in the above steps S1-S3, with the rapid development of information technology and the continuous expansion of network applications, the surge in network traffic has become an indisputable fact. Especially in scenarios with high bandwidth requirements such as video streaming, cloud computing, and online games, users' expectations for network quality are constantly increasing. This change in demand poses huge challenges to network management and resource allocation. Existing network resource allocation schemes mainly include fixed bandwidth allocation, dynamic allocation based on priority scheduling, and load balancing schemes. Fixed bandwidth allocation cannot adapt to dynamic traffic changes, resulting in peak network congestion and reduced user experience. Although the priority scheduling-based scheme can provide priority protection for high-real-time services such as video calls, its static priority setting lacks intelligence and cannot cope with the challenges brought by burst traffic. At the same time, load balancing technology dynamically adjusts node loads by monitoring traffic. Although it can disperse pressure, it has deficiencies in refined control of bandwidth allocation and traffic prediction, and it is difficult to effectively prevent the problem of insufficient bandwidth. The present invention models and fuses historical traffic data and multimodal data inputs through a pre-training architecture, significantly improving the accuracy of traffic prediction. Through the self-attention mechanism, the method can automatically capture the correlation and trend in the time series, providing a sufficient information basis for the model. Based on the use of historical and real-time data, ChatGLM3 can understand the complex patterns in the data and make accurate predictions about future traffic changes. By building a dynamic priority adjustment mechanism, it ensures efficient use of network resources. The system automatically adjusts the priority of each service based on its traffic demand at a specific time. When the traffic demand of a service increases, its priority also increases to ensure that the service can obtain the required bandwidth. Conversely, when traffic demand decreases, the priority will also be reduced. Such adjustments can effectively avoid waste or shortage of resources under static strategies. By introducing smoothing coefficients and weight factors, the system can flexibly control the speed and amplitude of priority adjustment, thereby improving management accuracy. This mechanism ensures that key services can still be given priority when the network is under high load, enhancing the service quality and user experience of the entire network, making it more adaptable in a changing environment; at the same time, by constructing an intelligent bandwidth allocation method, making full use of the results of traffic prediction and dynamic priority adjustment, and allocating bandwidth to different services in a weighted manner, high-priority services get more bandwidth in the allocation, while low-priority services get relatively less, ensuring that network resources are used reasonably. In addition, the system can monitor and analyze the traffic changes of each service in real time, and effectively identify any abnormal traffic service by calculating the traffic change rate and standard deviation of each service, and increase its priority through the anomaly detection mechanism, so that it can get the necessary bandwidth support and ensure the stable operation of the system.
[0077] In one embodiment, the step S1 of using the ChatGLM3 pre-trained architecture to model and fuse historical traffic data and multimodal data to obtain fusion features, and using the ChatGLM3 large model to predict future traffic based on the fusion features to obtain traffic prediction includes:
[0078] S11. Define historical traffic datasets for large-scale networks ,in represents the number of time steps, represents the number of devices, and Indicates the device In time Traffic flow at the moment;
[0079] S12. Use the pre-trained architecture of ChatGLM3 to perform global dependency modeling on the input historical traffic numbers through the self-attention mechanism to automatically capture the correlation in the time series:
[0080]
[0081] S13, among which, They are historical traffic datasets The query, key and value matrices obtained after linear transformation, is a learnable weight matrix, is the dimension of the key vector, the output of the self-attention mechanism Represents the weighted information of historical traffic data in the time series, which is used to show the trend and dependency of traffic changes;
[0082] S14. At the same time, ChatGLM3's pre-trained architecture is used to perform multimodal data fusion to obtain a multimodal feature representation vector;
[0083] S15. Use the gating mechanism to fuse the multimodal feature representation vector and the output of the self-attention mechanism Get fusion features and use ChatGLM3 large model for traffic prediction;
[0084] As described in the above steps S11-S15, there will be a large amount of historical traffic data in the network. Define the historical traffic data set, use the ChatGLM3 pre-training architecture to perform global dependency modeling on the input historical traffic data through the self-attention mechanism to obtain ,The historical traffic data X is linearly transformed by dynamically calculating the query (Q), key (K) and value (V) matrices. These matrices are combined with the learnable weight matrix to generate attention scores to measure the importance of traffic at different time points at the current moment. The output of the attention mechanism can be regarded as a weighted representation of historical traffic data, which effectively extracts information from the time series, enabling the model to accurately identify the trends and dependencies of traffic changes.
[0085] In one embodiment, the step S14 of using the pre-trained architecture of ChatGLM3 to perform multimodal data fusion includes:
[0086] S141. Define multimodal data input, which are , Represents historical data in different modes;
[0087] S142. Through the pre-training architecture of ChatGLM3, the feature-level fusion method is used to perform multimodal data fusion, and the historical data under different modalities are mapped to a unified feature space:
[0088]
[0089] S143, among which, is modal The feature extraction function is is a multimodal feature representation vector;
[0090] As described in the above steps S141-S143, in addition to the network traffic time series data, information such as the device status in the network, user behavior patterns, and environmental changes also affect the fluctuation of network traffic. Assuming that the system has multimodal input, and defining the historical traffic data set of each modality, the pre-trained architecture of ChatGLM3 is used to perform multimodal data fusion using the feature-level fusion method, and the historical traffic data under different modalities are mapped to a unified feature space. For example, Represented as user behavior history data, Represented as environmental historical data, the feature representation of user behavior history data and environmental history data is extracted through the pre-trained architecture of ChatGLM3 and the extracted feature representation is mapped into a unified feature space.
[0091] In one embodiment, the gating mechanism is used to fuse the multimodal feature representation vector and the output of the self-attention mechanism. Step S15 of obtaining the fusion features and using the ChatGLM3 large model to perform traffic prediction includes:
[0092] S151. Calculate a gating weight , used to decide and relative importance in the integration process;
[0093] S152, gate weight Through and After linear transformation and Sigmoid activation function, we get:
[0094]
[0095] S153, among which, represents the learnable weight matrix of the gating layer, is the bias term, Represents the Sigmoid activation function and limits the gate weight to the interval [0,1];
[0096] S154, using gated weights make and Perform weighted fusion to obtain fusion features:
[0097]
[0098] S155, among which, represents the fusion feature, Indicates element-wise multiplication. When g is larger, the model will pay more attention to , when g is small, the model will rely more on ;
[0099] S156. Based on the fusion features, assuming that the predicted time step is , prediction results of the ChatGLM3 large model It can be expressed as:
[0100]
[0101] S157, among which, It is the prediction function of the ChatGLM3 model on multimodal data and historical traffic data, and the output It is the traffic forecast;
[0102] As described in the above steps S151-S157, in order to determine the relative importance of different modal features in the feature fusion process, a gating weight is first calculated. This weight will be used to adjust the contribution of each modal input in the fusion process, and the multimodal feature representation vector and the historical traffic processed by the attention mechanism are weighted and fused using the gating weight. By calculating the gating weight, the ChatGLM3 large model can autonomously determine the relative importance of various input features in prediction under dynamic changes. For example, in some cases, user behavior characteristics may significantly affect traffic prediction. At this time, when the value of the gating weight is high, the contribution of user behavior characteristics will be amplified. At the same time, the combination of linear transformation and Sigmoid activation enables the gating weight to have the ability of self-learning and can be continuously adjusted according to the traffic pattern observed during the forward propagation process.
[0103] In one embodiment, the step S2 of defining a dynamic priority adjustment mechanism and intelligent bandwidth allocation based on traffic prediction to achieve dynamic adjustment and bandwidth allocation of multiple services includes:
[0104] S21. Define that there are N businesses in the system and the priority of each business and bandwidth requirements Changes over time;
[0105] S22, the dynamic adjustment mechanism of priority is realized by the following formula:
[0106]
[0107] S23, among which, It's time business The priority of It's time Time business The priority of It's business In time The flow demand function at time, It's business In time Traffic information at the moment, is the predicted future traffic demand, where It’s the future Traffic estimation at the moment, is a smoothing coefficient, which is used to balance the weight of current priority and real-time demand and control the speed of priority adjustment. is the balance factor, used to control the current moment and The relative weight of ;
[0108] S24. Flow demand function Used according to Calculate its bandwidth requirement, the expression is:
[0109]
[0110] S25, indicating business In time The traffic proportion at the moment is used to dynamically adjust its priority. When the traffic demand is large, its priority will increase; conversely, when the business traffic is small, its priority will decrease. The priority also increases as the business needs increase;
[0111] S26, when priority The total bandwidth resources are determined by weighted bandwidth allocation method. Dynamic allocation to different services, expressed as:
[0112]
[0113] S27, among which, yes Time allocated to business bandwidth, yes Total bandwidth resources at the moment, It's business The priority of It is the sum of all business priorities;
[0114] S28, formula This indicates that the bandwidth allocation for each service is proportional to its priority. The higher the priority of the service, the more bandwidth resources it will get.
[0115] S29, constructing a traffic anomaly detection mechanism to detect traffic anomaly services and determine whether the priority of traffic anomaly services needs to be adjusted;
[0116] As described in the above steps S21-S29, it is defined that there are N services in the system, and the priority and bandwidth requirements of each service change over time, and a dynamic adjustment formula for the service priority is defined. The dynamic adjustment formula is based on the traffic demand function combined with a smoothing coefficient and a weight factor to achieve real-time priority adjustment. The traffic demand function is used to calculate its bandwidth requirement according to the current traffic situation of the service, and the specific form of the function can be selected according to the actual situation of the network application. The present invention uses a linear proportional function, which can represent the traffic proportion of a certain service at the current moment and is used to dynamically adjust its priority. When the traffic demand of a certain service is large, its priority will increase accordingly; conversely, when the traffic of a certain service is small, the priority will be appropriately reduced. Through this traffic proportion adjustment method, it can be adaptively guaranteed that high-demand services obtain more bandwidth resources. When the priority of the service is determined, the formula for bandwidth allocation is defined based on the priority. ,This formula shows that the bandwidth allocation obtained by each service is proportional to its priority.,The higher the priority of the service is, the more bandwidth it obtains. Through this weighted allocation strategy, the system can dynamically adjust ,the bandwidth allocation according to real-time priority to ensure that key services are prioritized when ,high traffic demand is present.
[0117] In one embodiment, the step S29 of constructing a traffic anomaly detection mechanism for detecting traffic anomaly services and determining whether the priority of traffic anomaly services needs to be adjusted includes:
[0118] S291. Collect the traffic change rate of each service and the standard deviation of flow rate variation ,in for:
[0119]
[0120] S292, and assuming that time points, the standard deviation for:
[0121]
[0122] S293, among which It represents the average value of the rate of change;
[0123] S294, when When the system considers that abnormal traffic occurs, Threshold parameters for controlling anomaly detection;
[0124] S295. When an abnormal traffic service occurs, the system increases the priority weight of the abnormal traffic service until the traffic of the abnormal traffic service returns to normal;
[0125] As described in the above steps S291-S295, in order to ensure the reliability of the dynamic priority adjustment mechanism, a traffic anomaly detection mechanism is introduced. When a sudden anomaly occurs in the traffic of a certain service, such as a sudden and substantial increase or decrease, the system will trigger the anomaly detection mechanism, and by analyzing historical traffic data and current traffic changes, determine whether it is necessary to immediately adjust the priority of the service, or to perform a larger-scale bandwidth reallocation. By calculating the traffic change rate of each service and the standard deviation of the traffic change, and setting a judgment threshold, once a traffic anomaly is detected in a certain service, the system will temporarily increase the priority of the abnormal service according to its actual needs, which can be achieved by increasing the priority weight of the service. When resources are allocated, the service can obtain more bandwidth. If such situations are not responded to in a timely manner, the service quality of the abnormal service may be significantly reduced or even interrupted. Increasing the priority can help the service quickly obtain resources in case of emergencies and meet emergency needs. After temporarily increasing the priority of the abnormal service, the system will reallocate global bandwidth resources. The new bandwidth allocation priority order is usually: critical service > abnormal service > normal service, which means that during the existence of the abnormal service, its priority will be temporarily higher than that of the normal service, but still lower than that of the critical service. When the traffic of the abnormal service returns to normal, the system will stop the dynamic adjustment of its priority and allocate bandwidth according to the normal priority again.
[0126] In one embodiment, the step S3 of constructing a global resource optimization strategy, combining priority adjustment and bandwidth allocation based on traffic prediction, to achieve comprehensive scheduling of bandwidth resources in the network includes:
[0127] S31. Divide the bandwidth resources in the network into a finite number of clusters and define a utility function to measure the benefits of bandwidth allocation:
[0128]
[0129] S32, among which, yes Time allocated to the cluster The bandwidth is based on the formula , then the global optimization goal of bandwidth resources in the network is:
[0130]
[0131] S33, among which, Is a cluster The weight is used to further reflect the business importance of the cluster;
[0132] As described in the above steps S31-S33, in order to further improve the utilization efficiency of the overall network resources, a global resource optimization strategy is proposed, which combines priority update and bandwidth allocation based on traffic prediction to achieve comprehensive scheduling of bandwidth resources in the network. The global optimization strategy divides the bandwidth resources of each node in the network into multiple clusters through a clustered scheduling method, allocates bandwidth using a multi-objective optimization algorithm, and allocates bandwidth through the bandwidth allocation formula ,Ensure that high priority clusters get more bandwidth resources and meet the bandwidth requirements of important businesses.,Therefore, a utility function is defined and a logarithmic utility function is used to measure the ,benefits of bandwidth allocation to reflect the diminishing marginal effect.,This utility function ensures the efficient utilization of bandwidth resources while avoiding ,over-concentrated allocation to a certain cluster, which is conducive to fairness.,The global optimization goal of bandwidth allocation is defined.,By optimizing this objective function, we maximize the total utility under the ,constraint of total bandwidth resources and achieve the best resource utilization.
[0133] Example 2, please refer to Figure 2 As shown, the large model-based dynamic bandwidth allocation system described in this embodiment includes:
[0134] Traffic prediction model module: Use the pre-trained architecture of ChatGLM3 to model and fuse historical traffic data and multimodal data to obtain fusion features, and use the ChatGLM3 large model to predict future traffic based on the fusion features to obtain traffic prediction;
[0135] Dynamic priority adjustment module: connected with the traffic prediction model module, defines dynamic priority adjustment mechanism and intelligent bandwidth allocation based on traffic prediction, and realizes dynamic adjustment and bandwidth allocation of multiple services;
[0136] Global resource optimization module: connected with the dynamic priority adjustment module, builds a global resource optimization strategy, combines priority adjustment and bandwidth allocation based on traffic prediction, and realizes comprehensive scheduling of bandwidth resources in the network.
[0137] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A dynamic bandwidth allocation method based on a large model, characterized in that: The pre-trained architecture of ChatGLM3 is used to model and fuse historical traffic data and multimodal data to obtain fusion features, and the ChatGLM3 large model is used to predict future traffic based on the fusion features to obtain traffic prediction; Defining historical traffic datasets for large-scale networks ,in represents the number of time steps, represents the number of devices, and Indicates the device In time Traffic flow at the moment; The pre-trained architecture of ChatGLM3 is used to perform global dependency modeling on the input historical traffic numbers through the self-attention mechanism to automatically capture the correlation in the time series: in, They are historical traffic datasets The query, key and value matrices obtained after linear transformation, is a learnable weight matrix, is the dimension of the key vector, the output of the self-attention mechanism Represents the weighted information of historical traffic data in the time series, which is used to show the trend and dependency of traffic changes; At the same time, ChatGLM3's pre-trained architecture is used to perform multimodal data fusion to obtain a multimodal feature representation vector; Use gating mechanism to fuse the multimodal feature representation vector and the output of self-attention mechanism Get the fusion features and use the ChatGLM3 model to predict the traffic flow; Define dynamic priority adjustment mechanism and intelligent bandwidth allocation based on traffic prediction to achieve dynamic adjustment and bandwidth allocation for multiple services; Define that there are N businesses in the system and the priority of each business and bandwidth requirements Changes over time; The dynamic adjustment mechanism of priority is realized by the following formula: in, It's time Time business The priority of It's time Time business The priority of It's business In time The flow demand function at time, It's business In time Traffic information at the moment, is the predicted future traffic demand, where It’s the future Traffic estimation at the moment, is a smoothing coefficient, which is used to balance the weight of current priority and real-time demand and control the speed of priority adjustment. Is the balance factor, used to control the current moment and The relative weight of ; Traffic demand function Used according to Calculate its bandwidth requirement, expressed as: Indicates business In time The traffic proportion at the moment is used to dynamically adjust its priority. When the traffic demand is large, its priority will increase; conversely, when the business traffic is small, its priority will decrease. The priority of business rises with the rise in demand; When priority The total bandwidth resources are determined by weighted bandwidth allocation method. Dynamically allocated to different services, expressed as: in, yes Time allocated to business bandwidth, yes Total bandwidth resources at the moment, It's business The priority of It is the sum of all business priorities; formula This indicates that the bandwidth allocation for each service is proportional to its priority. The higher the priority of the service, the more bandwidth resources it will get. Build a traffic anomaly detection mechanism to detect traffic anomaly services and determine whether the priority of traffic anomaly services needs to be adjusted; Build a global resource optimization strategy, combine priority adjustment and bandwidth allocation based on traffic prediction, and realize comprehensive scheduling of bandwidth resources in the network.
2. The method for dynamic bandwidth allocation based on a large model according to claim 1, characterized in that: The steps of using the ChatGLM3 pre-training architecture to perform multimodal data fusion are: Define multimodal data input, respectively , represents the historical data under different modes; Through the pre-trained architecture of ChatGLM3, the feature-level fusion method is used to perform multimodal data fusion, mapping historical data under different modalities into a unified feature space: in, is modal The feature extraction function is is a multimodal feature representation vector.
3. The method for dynamic bandwidth allocation based on a large model according to claim 1, characterized in that: The gating mechanism is used to fuse the multimodal feature representation vector and the output of the self-attention mechanism The steps to obtain fusion features and use the ChatGLM3 model for traffic prediction are as follows: Calculate a gating weight , used to decide and relative importance in the integration process; Gating weight Through and After linear transformation and Sigmoid activation function, we get: in, represents the learnable weight matrix of the gating layer, is the bias term, Represents the Sigmoid activation function and limits the gate weight to the interval [0,1]; Using gated weights make and Perform weighted fusion to obtain fusion features: in, represents the fusion feature, Indicates element-wise multiplication. When g is larger, the model will pay more attention to , when g is small, the model will rely more on ; Based on the fusion features, assuming that the predicted time step is , prediction results of the ChatGLM3 large model It can be expressed as: in, It is the prediction function of the ChatGLM3 model on multimodal data and historical traffic data, and the output It is the traffic forecast.
4. The method for dynamic bandwidth allocation based on a large model according to claim 1, characterized in that: The steps of constructing a traffic anomaly detection mechanism for detecting traffic anomaly services and determining whether the priority of traffic anomaly services needs to be adjusted are as follows: Collect the traffic change rate of each business and the standard deviation of flow rate variation ,in for: And assuming there is time points, the standard deviation for: in It represents the average value of the rate of change; when When the system considers that abnormal traffic occurs, Threshold parameters for controlling anomaly detection; When a traffic abnormality service occurs, the system increases the priority weight of the traffic abnormality service until the traffic of the traffic abnormality service returns to normal.
5. The method for dynamic bandwidth allocation based on a large model according to claim 1, characterized in that: The steps of constructing a global resource optimization strategy, combining priority adjustment and bandwidth allocation based on traffic prediction, and realizing comprehensive scheduling of bandwidth resources in the network are as follows: The bandwidth resources in the network are divided into a finite number of clusters, and a utility function is defined to measure the benefits of bandwidth allocation: in, yes Time allocated to the cluster The bandwidth is based on the formula , then the global optimization goal of bandwidth resources in the network is: in, Is a cluster The weight is used to further reflect the business importance of the cluster.
6. A large model-based dynamic bandwidth allocation system, used to implement a large model-based dynamic bandwidth allocation method according to any one of claims 1 to 5, characterized in that: Traffic prediction model module: Use the pre-trained architecture of ChatGLM3 to model and fuse historical traffic data and multimodal data to obtain fusion features, and use the ChatGLM3 large model to predict future traffic based on the fusion features to obtain traffic prediction; Dynamic priority adjustment module: connected with the traffic prediction model module, defines dynamic priority adjustment mechanism and intelligent bandwidth allocation based on traffic prediction, and realizes dynamic adjustment and bandwidth allocation of multiple services; Global resource optimization module: connected with the dynamic priority adjustment module, builds a global resource optimization strategy, combines priority adjustment and bandwidth allocation based on traffic prediction, and realizes comprehensive scheduling of bandwidth resources in the network.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of a large model-based dynamic bandwidth allocation method described in any one of claims 1 to 5 are implemented.
8. A computer readable medium having a computer program stored thereon, characterized in that When the computer program is executed by a processor, the steps of a large model-based dynamic bandwidth allocation method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Satellite network access method based on predicted dynamic bandwidth allocation
CN105743562A
Multi-modal network node control method and device, equipment and storage medium
CN115632978A
Cited By
Multi-modal tumor data intelligent fusion and dynamic typing system
CN121148646A