Machine learning-based slice resource dynamic adjustment method and system
By combining interval prediction and robust optimization with machine learning algorithms, network resource allocation is dynamically adjusted, solving the problem of traditional slicing technology being unable to meet real-time needs and achieving more efficient and reliable network services and resource utilization.
Patent Information
- Application Number
- CN202410761117.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional slicing technology cannot dynamically adjust resource allocation according to real-time needs, resulting in low resource utilization and unable to meet the flexibility and scalability requirements of different application scenarios.
Using a machine learning algorithm that combines interval prediction and robust optimization, through data collection, preprocessing, modeling and training, it can predict and optimize network traffic, user needs and resource utilization, dynamically segment and configure network resources, and based on Real-time monitoring results automatically adjust slice resource allocation and configuration.
It achieves adaptive, intelligent, real-time and dynamic network management and optimization, improves network performance and resource utilization efficiency, and provides more efficient and reliable communication services.
Smart Images

Figure CN118540804A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of machine learning. Specifically, the present invention relates to a method and system for dynamically adjusting slice resources based on machine learning. Background Art
[0002] With the continuous development of technologies such as the Internet of Things, 5G, and cloud computing, network communication needs are increasing. Traditional network architectures have been unable to meet new business scenarios and application requirements. In order to improve the flexibility and scalability of the network, intelligent slicing technology has emerged.
[0003] Smart slicing is a new type of network architecture technology that can divide the network into multiple independent sub-networks, each of which can be independently managed and optimized, thereby providing more efficient, reliable and secure network services. Smart slicing technology can be implemented through technologies such as software-defined networking (SDN) and network function virtualization (NFV), while combining artificial intelligence technologies such as machine learning for intelligent management and optimization.
[0004] Traditional slicing technology usually divides the network into slices according to pre-defined rules, and these slices are often fixed and static, and cannot be flexibly adjusted according to real-time needs. This leads to low resource utilization and cannot meet the flexibility and scalability requirements of different application scenarios.
[0005] In view of this, how to analyze and learn network data, automatically adapt to different network environments and application scenarios, dynamically adjust slicing strategies and resource allocation, and provide more efficient and reliable network services is a technical problem that technical personnel in the relevant field need to solve. Summary of the invention
[0006] The present invention aims to overcome the shortcomings of the prior art and proposes a method and system for dynamic adjustment of slice resources based on machine learning to achieve the following objectives: Make full use of dynamic network slicing technology to solve the slice configuration problem in 5G networks and use machine learning algorithms to optimize and configure network slices. Specifically, a data and model-driven intelligent solution is designed to perform intelligent slicing by combining interval prediction with robust optimization, providing adaptive, intelligent, real-time dynamic network management and optimization, and providing more efficient and reliable communication services for new application scenarios and business needs.
[0007] In order to achieve the above object, the technical solution adopted by the present invention is: a method for dynamically adjusting slice resources based on machine learning, the method comprising the following steps:
[0008] S1. Collect data, and pre-process and analyze the data, the data including network traffic, user demand, and resource utilization;
[0009] S2. Model and train the pre-processed data based on machine learning to predict and optimize network traffic, user demand, and resource utilization;
[0010] S3. According to the prediction and optimization results of step S2, the network resources are divided into multiple logical slices as needed, and the slice resources are dynamically allocated and configured, and then a routing strategy is formulated according to the data traffic and network topology;
[0011] S4: Monitor the actual usage of network resources and user needs, and automatically adjust the allocation and configuration of slice resources based on the monitoring results;
[0012] S5. Real-time monitoring, diagnosis and management of network resources.
[0013] Preferably, in step S1, the operation of preprocessing the data includes:
[0014] S11, data denoising, using wavelet transform to reduce the dimension and compress the data, while removing the noise in the data, the calculation formula is as follows:
[0015]
[0016] Where f(t) represents the input signal, ψ(t) represents the wavelet basis function, and ψ * represents the conjugate of the wavelet basis function, a and b are scaling factors and translation factors;
[0017] S12. Outlier detection is performed based on Z-score detection. The deviation between the data point and the average value is calculated to determine whether the data point is an outlier. The calculation formula is as follows:
[0018]
[0019] Among them, x i is the value of the ith data point, is the mean value of all data points, s is the standard deviation of all data points, if Z i If the absolute value of the data point x is greater than the specified threshold, then the data point x i is an outlier.
[0020] Preferably, step S2 includes the construction of feature engineering, and the feature engineering includes an underlying network model, a user traffic model, and a traffic mapping model, wherein:
[0021] Underlying network model: The underlying network is modeled as a weighted directed graph in and ε represent the node and link sets respectively;
[0022] User traffic model: There are M flows in total, the set of flows is represented by K, and the kth flow is recorded as (s k ,d k ,μ k (t)), where s k ,d k ,μ k (t) represents the source node, destination node and flow demand of the kth flow at time t respectively;
[0023] Traffic mapping model: Consider the node mapping of flow k and introduce 0-1 variables Used to indicate whether node i provides flow k That is, if node i provides flow k but otherwise Since only Only nodes with The mapping target node, so there is
[0024]
[0025] in, represents the mth VNF of flow k, A virtual node.
[0026] Preferably, in step S4, according to real-time data and user needs, an optimization algorithm based on a Markov decision process is used to automatically adjust and optimize network resources:
[0027] Markov decision process modeling, complete the reconfiguration of network slices in advance according to the changes in traffic demand, dynamically adjust slices according to the decision time, make decisions and reconfigure network slices according to the optimal value function V(s) or the optimal action value function Q(s,a), and dynamically adjust slices. The specific calculation is as follows:
[0028]
[0029] in, is the transition probability matrix, which represents the probability of transferring to state s' after executing action a in state s. R(s,a,s') is the immediate reward function, which represents the immediate reward obtained when transferring to state s' after executing action a in state s. γ is the discount factor.
[0030] Preferably, step S5 comprises:
[0031] S51. Use network slicing to obtain status information of each network node in real time, including bandwidth utilization, delay, and packet loss rate;
[0032] S52, evaluating the state of the network according to the state information;
[0033] S53. Determine the fault situation based on the evaluation results. When a fault occurs, locate the cause of the fault and provide a solution; when there is no fault, provide performance optimization suggestions.
[0034] Preferably, step S5 performs real-time monitoring, diagnosis and management of network resources through a visual management interface, and the visual management interface is used to display and monitor network topology diagrams, node status information, bandwidth utilization, latency, packet loss rate, and perform real-time emergency alarms when faults occur.
[0035] At the same time, the present invention also proposes a slice resource dynamic adjustment system based on machine learning according to the above method, the system includes a data acquisition and analysis module, a machine learning modeling module, a slice optimization and configuration module, a dynamic slice adjustment module, and a monitoring and management module, wherein:
[0036] The data collection and analysis module is used to collect data and pre-process and analyze the data, the data including network traffic, user demand, and resource utilization;
[0037] The machine learning modeling module is used to model and train the preprocessed data based on machine learning to achieve prediction and optimization of network traffic, user demand, and resource utilization;
[0038] The slice optimization and configuration module is used to divide the network resources into multiple logical slices as needed according to the prediction and optimization results of the machine learning model, and dynamically allocate and configure the slice resources, and then formulate a routing strategy according to the data traffic and network topology;
[0039] The dynamic slice adjustment module is used to monitor the actual usage of network resources and user needs, and automatically adjust the allocation and configuration of slice resources according to the monitoring results;
[0040] The monitoring and management module is used to perform real-time monitoring, diagnosis and management of network resources.
[0041] The technical effects of the present invention are as follows: the present invention can automatically adapt to different network environments and application scenarios through real-time analysis and learning of network data. The present invention can dynamically adjust slicing strategies and resource allocation according to real-time network status and demand changes, thereby providing more efficient and reliable network services, and can achieve adaptive, intelligent, real-time dynamic network management and optimization. The present invention can improve network performance, resource utilization efficiency and user experience, adapt to changing network needs and challenges, and promote the development and application of network technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1This is a flow chart of a method for dynamically adjusting slice resources according to an embodiment of the present invention;
[0043] Figure 2 This is a structural diagram of the slice resource dynamic adjustment system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following is a further detailed description of the specific implementation of the present invention through the description of the embodiments with reference to the accompanying drawings, with the purpose of helping those skilled in the art to have a more complete, accurate and in-depth understanding of the inventive concept and technical solution of the present invention and to facilitate its implementation. In order to make the technical solution of the present invention clearer, the present invention is explained through the following embodiments:
[0045] A method for dynamically adjusting slice resources based on machine learning, such as Figure 1 As shown, the method comprises the following steps:
[0046] S1. Collect data and pre-process and analyze the data, wherein the data includes network traffic, user demand, and resource utilization.
[0047] S2. Model and train the pre-processed data based on machine learning to predict and optimize network traffic, user demand, and resource utilization;
[0048] S3. According to the prediction and optimization results of step S2, the network resources are divided into multiple logical slices as needed, and the slice resources are dynamically allocated and configured. Then, according to the data traffic and network topology, a routing strategy is formulated to achieve efficient transmission of data traffic and balance network load;
[0049] S4. Collect the actual usage of network resources and user needs through resource monitoring, and automatically adjust the allocation and configuration of slice resources according to the monitoring results. When network resources have bottlenecks or are idle for a long time, the allocation strategy of slice resources is automatically adjusted to maximize the utilization efficiency of network resources and rearrange and optimize slice resources;
[0050] S5. Real-time monitoring, diagnosis and management of network resources, that is, real-time monitoring of network resource usage, resource allocation of each slice and operation status of various services. When a fault occurs, quickly locate the cause of the fault and provide a solution. At the same time, by monitoring and analyzing the performance of network resources and services, provide performance optimization suggestions.
[0051] The present invention models and predicts network slices through machine learning algorithms, analyzes network traffic, user needs and resource utilization based on historical data and real-time information to predict future network needs and slice configuration solutions. Use random game theory (such as Markov decision process) to solve the problem of network resource allocation, and design a set of fair and effective resource allocation rules so that each slice can get appropriate resources and avoid resource waste and congestion. The advantage of the intelligent slicing system lies in its adaptability and flexibility. It can perform intelligent slice configuration according to actual conditions, reasonably solve the problem of reconfiguration within the core network slice, and improve the utilization efficiency and service quality of network resources.
[0052] Specifically, in step S1 of this embodiment, the collected data can provide support and basis for the subsequent process of the present invention. In actual implementation, this embodiment obtains information of the data source by communicating with network equipment, sensors, and user terminals, and then preprocesses the collected raw data, including denoising, missing value filling, outlier detection and correction, so as to ensure the accuracy and completeness of the data and provide better support for subsequent processes. Afterwards, statistical analysis is used to further discover the correlation between data, predict future network demand and resource utilization, and identify user behavior patterns. In this embodiment, the operations of preprocessing data include:
[0053] S11, data denoising, using wavelet transform to reduce the dimension and compress the data, while removing the noise in the data, the calculation formula is as follows:
[0054]
[0055] Where f(t) represents the input signal, ψ(t) represents the wavelet basis function, and ψ * represents the conjugate of the wavelet basis function, a and b are scaling factors and translation factors;
[0056] S12. Outlier detection is performed based on Z-score detection. The deviation between the data point and the average value is calculated to determine whether the data point is an outlier. The calculation formula is as follows:
[0057]
[0058] Among them, x i is the value of the ith data point, is the mean value of all data points, s is the standard deviation of all data points, if Z i If the absolute value of the data point x is greater than the specified threshold, then the data point x i is an outlier.
[0059] Specifically, step S2 of this embodiment includes the following sub-steps:
[0060] S21, construction feature engineering;
[0061] S22. Select machine learning algorithms and model structures based on modeling tasks and data characteristics;
[0062] S23, searching for a hyperparameter combination by using a model optimization algorithm, wherein the model optimization algorithm includes a grid search, a Bayesian optimization, etc. The model optimization algorithm is a common technique used by those skilled in the art, and the present invention will not be described in detail herein;
[0063] S24. Train a model with a combination of hyperparameters, and use the trained model to predict and optimize network traffic, user demand, and resource utilization.
[0064] Among them, in step S21, the feature engineering includes the underlying network model, the user traffic model, and the traffic mapping model. The specific construction process is as follows:
[0065] Underlying network model: The underlying network is modeled as a weighted directed graph in and ε represent the node and link sets respectively;
[0066] User traffic model: There are M flows in total, the set of flows is represented by K, and the kth flow is recorded as (s k ,d k ,μ k (t)), where s k ,d k ,μ k (t) represents the source node, destination node and flow demand of the kth flow at time t respectively;
[0067] Traffic mapping model: Consider the node mapping of flow k and introduce 0-1 variables Used to indicate whether node i provides flow k That is, if node i provides flow k but otherwise Since only Only nodes with The mapping target node, so there is
[0068]
[0069] in, represents the mth VNF of flow k, The present invention realizes interval prediction and robust optimization of network traffic, user demand, and resource utilization based on machine learning algorithms, making network management more intelligent and enabling slice management in advance based on prediction results.
[0070] Specifically, in step S4 of this embodiment, in order to adapt to the dynamics of traffic demand in the network slice, it is necessary to adaptively reconfigure the network slice, and the reconfiguration operation includes:
[0071] S41. Construct slice service cost: The resources consumed by serving slice users are equal to the sum of resources consumed by all flows in the network slice. The slice service cost is:
[0072]
[0073] where φ c (),φ b () represent the price functions of computing resources and bandwidth resources respectively; represents the computing resources required by physical node i to process flow k; represents the bandwidth resources consumed by flow k on the physical link (i, j);
[0074] S42. Reconfiguration cost of building a network slice: Slice reconfiguration itself will lead to resource consumption. The state of the network slice is represented by the node mapping variable x and the link mapping variable z. The reconfiguration cost of the network slice is defined as:
[0075]
[0076] Among them, x(t-1), z(t-1) are the mapping relationships of slices before reconfiguration. and are the cost coefficients of node and link reconfiguration, respectively. I() is an indicator function, when x≠0, I(x)=1, otherwise I(x)=0;
[0077] Therefore, at time t, when the network slice runs a reconfiguration, the total cost incurred is:
[0078] C(t)=C res (t)+C conf (t).
[0079] Furthermore, in step S4, according to the real-time data obtained through resource monitoring and user needs, the network resources are automatically adjusted and optimized using an optimization algorithm based on a Markov decision process:
[0080] Markov decision process modeling is used to complete the reconfiguration of network slices in advance according to the changes in traffic demand, dynamically adjust slices according to the decision time, make decisions and reconfigure network slices according to the optimal value function V(s) or the optimal action value function Q(s,a), and dynamically adjust slices. The specific calculation is as follows:
[0081]
[0082] in, is the transition probability matrix, which indicates the probability of transferring to state s' after executing action a in state s, R(s,a,s') is the immediate reward function, which indicates the immediate reward obtained when transferring to state s' after executing action a in state s, and γ is the discount factor. The Markov decision process solves the problem of network resource allocation and designs a set of fair and effective resource allocation rules so that each slice can get appropriate resources and avoid resource waste and congestion.
[0083] Specifically, step S5 of this embodiment includes:
[0084] S51. Use network slicing to obtain status information of each network node in real time, including bandwidth utilization, delay, and packet loss rate;
[0085] S52. Evaluate the state of the network according to the state information. In this embodiment, different safety thresholds may be set for different state information. When a certain state information exceeds its corresponding safety threshold, it is considered as an abnormal state and a failure occurs.
[0086] S53. Determine the fault situation based on the evaluation results. When a fault occurs, locate the cause of the fault and provide a solution. When there is no fault, provide performance optimization suggestions. For example, when certain status information is about to reach a safety threshold, provide performance optimization suggestions to reduce the status information.
[0087] Preferably, step S5 of this embodiment monitors, diagnoses and manages network resources in real time through a visual management interface. The visual management interface can select a device with control and display functions such as a touch screen. The visual management interface of this embodiment is used to display and monitor network topology diagrams, node status information, bandwidth utilization, latency, packet loss rate, and perform real-time emergency alarms when a fault occurs, thereby realizing human-computer interaction and more efficiently managing slice resources.
[0088] At the same time, the present invention also proposes a slice resource dynamic adjustment system based on machine learning according to the above method, such as Figure 2 As shown, the system includes a data collection and analysis module, a machine learning modeling module, a slice optimization and configuration module, a dynamic slice adjustment module, and a monitoring and management module, wherein:
[0089] The data collection and analysis module is used to collect data and pre-process and analyze the data, the data including network traffic, user demand, and resource utilization;
[0090] The machine learning modeling module is used to model and train the preprocessed data based on machine learning to achieve prediction and optimization of network traffic, user demand, and resource utilization;
[0091] The slice optimization and configuration module is used to divide the network resources into multiple logical slices as needed according to the prediction and optimization results of the machine learning model, and dynamically allocate and configure the slice resources, and then formulate a routing strategy according to the data traffic and network topology;
[0092] The dynamic slice adjustment module is used to monitor the actual usage of network resources and user needs, and automatically adjust the allocation and configuration of slice resources according to the monitoring results;
[0093] The monitoring and management module is used to perform real-time monitoring, diagnosis and management of network resources.
[0094] The present invention is described above by way of example in conjunction with the accompanying drawings. Obviously, the specific implementation of the present invention is not limited to the above-mentioned methods. As long as various non-substantial improvements are made using the method concept and technical solution of the present invention; or the above concept and technical solution of the present invention are directly applied to other occasions without improvement, they are all within the protection scope of the present invention.
Claims
1. A method for dynamically adjusting slice resources based on machine learning, characterized in that: The method comprises the following steps: S1. Collect data, and pre-process and analyze the data, the data including network traffic, user demand, and resource utilization; S2. Model and train the pre-processed data based on machine learning to predict and optimize network traffic, user demand, and resource utilization; S3. According to the prediction and optimization results of step S2, the network resources are divided into multiple logical slices as needed, and the slice resources are dynamically allocated and configured, and then a routing strategy is formulated according to the data traffic and network topology; S4: Monitor the actual usage of network resources and user needs, and automatically adjust the allocation and configuration of slice resources based on the monitoring results; S5. Real-time monitoring, diagnosis and management of network resources.
2. The method for dynamically adjusting slice resources based on machine learning according to claim 1, characterized in that: In step S1, the operation of preprocessing the data includes: S11, data denoising, using wavelet transform to reduce the dimension and compress the data, while removing the noise in the data, the calculation formula is as follows: Where f(t) represents the input signal, ψ(t) represents the wavelet basis function, and ψ * represents the conjugate of the wavelet basis function, a and b are scaling factors and translation factors; S12. Outlier detection is performed based on Z-score detection. The deviation between the data point and the average value is calculated to determine whether the data point is an outlier. The calculation formula is as follows: Among them, x i is the value of the ith data point, is the mean value of all data points, s is the standard deviation of all data points, if Z i If the absolute value of the data point x is greater than the specified threshold, then the data point x i is an outlier.
3. The method for dynamically adjusting slice resources based on machine learning according to claim 1, characterized in that: The step S2 includes the construction of feature engineering, which includes an underlying network model, a user traffic model, and a traffic mapping model, wherein: Underlying network model: The underlying network is modeled as a weighted directed graph in and ε represent the node and link sets respectively; User traffic model: There are M flows in total, the set of flows is represented by K, and the kth flow is recorded as (s k ,d k ,μ k (t)), where s k ,d k ,μ k (t) represents the source node, destination node and flow demand of the kth flow at time t respectively; Traffic mapping model: Consider the node mapping of flow k and introduce 0-1 variables Used to indicate whether node i provides flow k That is, if node i provides flow k but otherwise Since only Only nodes with The mapping target node, so there is in, represents the mth VNF of flow k, A virtual node.
4. The method for dynamically adjusting slice resources based on machine learning according to claim 1, characterized in that: In step S4, according to real-time data and user needs, an optimization algorithm based on a Markov decision process is used to automatically adjust and optimize network resources: Markov decision process modeling, complete the reconfiguration of network slices in advance according to the changes in traffic demand, dynamically adjust slices according to the decision time, make decisions and reconfigure network slices according to the optimal value function V(s) or the optimal action value function Q(s,a), and dynamically adjust slices. The specific calculation is as follows: in, is the transition probability matrix, which represents the probability of transferring to state s' after executing action a in state s. R(s,a,s') is the immediate reward function, which represents the immediate reward obtained when transferring to state s' after executing action a in state s. γ is the discount factor.
5. The method for dynamically adjusting slice resources based on machine learning according to claim 1, characterized in that: The step S5 comprises: S51. Use network slicing to obtain status information of each network node in real time, including bandwidth utilization, delay, and packet loss rate; S52, evaluating the state of the network according to the state information; S53. Determine the fault situation based on the evaluation results. When a fault occurs, locate the cause of the fault and provide a solution; when there is no fault, provide performance optimization suggestions.
6. The method for dynamically adjusting slice resources based on machine learning according to claim 1 or 5, characterized in that: The step S5 monitors, diagnoses and manages network resources in real time through a visual management interface, which is used to display and monitor network topology, node status information, bandwidth utilization, latency, packet loss rate, and issue real-time emergency alarms when a fault occurs.
7. A slice resource dynamic adjustment system based on machine learning according to the method of any one of claims 1 to 6, characterized in that: The system includes a data collection and analysis module, a machine learning modeling module, a slice optimization and configuration module, a dynamic slice adjustment module, and a monitoring and management module, wherein: The data collection and analysis module is used to collect data and pre-process and analyze the data, the data including network traffic, user demand, and resource utilization; The machine learning modeling module is used to model and train the preprocessed data based on machine learning to achieve prediction and optimization of network traffic, user demand, and resource utilization; The slice optimization and configuration module is used to divide the network resources into multiple logical slices as needed according to the prediction and optimization results of the machine learning model, and dynamically allocate and configure the slice resources, and then formulate routing strategies according to the data traffic and network topology; The dynamic slice adjustment module is used to monitor the actual usage of network resources and user needs, and automatically adjust the allocation and configuration of slice resources according to the monitoring results; The monitoring and management module is used to perform real-time monitoring, diagnosis and management of network resources.
Citation Information
Cited By
Server resource utilization rate improving method, system, device, medium and product
CN119292776A
Network resource optimization method for network slicing
CN119545433A
Network resource optimization method for network slicing
CN119545433B
Resource allocation service platform based on 5G slicing network
CN119835786A
Network slice resource allocation method and device, electronic equipment, medium and product
CN121056417A
