Cloud computing virtual machine communication optimization method

By collecting virtual machine network traffic data in a cloud computing environment, using machine learning and optimization algorithms, combined with SDN and virtualization protocols, the problem of virtual machine communication efficiency and security is solved, and the cloud computing network is made efficient, reliable and secure. communication.

CN118784485AInactive Publication Date: 2024-10-15GUANGDONG LINGDUN ZHILIAN INFORMATION TECH CO LTD
View PDF 0 Cites 9 Cited by

Patent Information

Application Number
CN202411048417.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In a cloud computing environment, the communication efficiency and reliability between virtual machines are challenged by network congestion, heterogeneity, diversity, and security isolation, resulting in reduced network performance and difficulty in balancing communication efficiency, security, and scalability.

Method used

Collect network traffic data through the virtual machine management platform, use machine learning algorithms to identify traffic patterns, design intelligent scheduling strategies based on ant colonies and genetic algorithms, dynamically adjust network topology and resource allocation, use SDN and network virtualization protocols to optimize virtual machine communication, and integrate Performance optimization module to speed up data transfer.

Benefits of technology

It achieves dynamic optimization management of virtual machine network resources, improves network performance and operational efficiency, and ensures efficient and stable operation of business processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784485A_ABST
    Figure CN118784485A_ABST
Patent Text Reader

Abstract

The invention provides a cloud computing virtual machine communication optimization method, which comprises the following steps of: acquiring network flow data between virtual machines through a virtual machine management platform, acquiring flow statistical information including indexes such as flow size, communication frequency and protocol type by utilizing a network flow acquisition agent, and forming an original flow data set; the method comprises the following steps: preprocessing collected original flow data, removing noise data through operations such as data cleaning and feature extraction, extracting key feature indexes such as a flow peak value and average bandwidth occupation, and constructing a standardized flow feature data set; network virtualization protocols such as VXLAN and NVGRE are adopted, an independent virtual network space is distributed for each virtual machine, an isolated virtual network environment is constructed through a virtual switch and a virtual router, network interference between the virtual machines is reduced, and communication quality is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a cloud computing virtual machine communication optimization method. Background Art

[0002] In cloud computing environments, the efficiency and reliability of communication between virtual machines is a key technical issue. Virtual machines are deployed on shared physical infrastructure, and multiple virtual machines share network resources, resulting in network congestion and performance degradation. The dynamic migration and scheduling of virtual machines will also affect the network topology and routing configuration, further exacerbating communication problems. In addition, the heterogeneity and diversity of virtual machines also bring challenges to network communication. Different virtual machines may use different network protocols and configurations, leading to compatibility and interoperability issues. The communication volume and mode between virtual machines also show dynamic changes and burst characteristics, which brings difficulties to network capacity planning and resource allocation. At the same time, the security isolation and access control of virtual machines also need to be strictly controlled at the network level to prevent malicious traffic and illegal access. How to ensure efficient communication between virtual machines while taking into account the security, scalability and flexibility of the network is a major technical challenge facing cloud computing network optimization. Summary of the invention

[0003] The present invention provides a method for optimizing cloud computing virtual machine communications, which mainly includes:

[0004] Collect network traffic data between virtual machines through the virtual machine management platform, and use the network traffic collection agent to obtain traffic statistics;

[0005] Preprocess the collected raw traffic data, remove noise data through data cleaning, feature extraction and other operations, extract key feature indicators such as traffic peak value and average bandwidth occupancy, and build a standardized traffic feature data set;

[0006] Based on the standardized traffic feature data set, a traffic pattern recognition model is established using machine learning algorithms such as support vector machines and decision trees. The model is trained to identify typical traffic patterns in the virtual machine communication process, determine whether there are abnormal traffic and performance bottlenecks, and obtain traffic pattern analysis results.

[0007] Based on the traffic pattern analysis results, combined with the business characteristics and resource requirements of virtual machines, we use optimization methods such as ant colony algorithms and genetic algorithms to design intelligent scheduling algorithms, comprehensively consider factors such as virtual machine load and network topology, dynamically generate virtual machine scheduling strategies and migration plans, and determine the optimal virtual machine deployment plan;

[0008] Using software-defined networking (SDN) technology, network configuration rules are sent to virtual switches through the OpenF l ow protocol. According to the communication needs of virtual machines and network load conditions, the network topology and bandwidth allocation between virtual machines are dynamically adjusted to optimize the network data forwarding path and improve link utilization.

[0009] Adopt network virtualization protocols such as VXLAN and NVGRE to allocate independent virtual network space to each virtual machine, build an isolated virtual network environment through virtual switches and virtual routers, reduce network interference between virtual machines, and ensure communication quality;

[0010] A network performance optimization module is integrated into the virtual machine network protocol stack, and technologies such as transmission control protocol congestion control optimization, data compression, and caching are used to accelerate the transmission and redundant processing of virtual machine communication data, reduce network transmission delay and bandwidth occupancy, and improve the throughput and response speed of communication between virtual machines.

[0011] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:

[0012] The present invention discloses a virtual machine network management and optimization method. The method first collects network traffic data between virtual machines through a virtual machine management platform, and uses a network traffic collection agent to obtain traffic statistics information, including traffic size, communication frequency, protocol type and other indicators, to form an original traffic data set. Then, the collected original traffic data is preprocessed through data cleaning, feature extraction and other operations.

[0013] Remove noise data, extract key feature indicators such as traffic peak and average bandwidth occupancy, and build a standardized traffic feature data set.

[0014] The problem of unique business scenarios is how to dynamically adjust network resource allocation to optimize performance based on the communication characteristics and resource requirements between virtual machines. This invention establishes a traffic pattern recognition model and uses machine learning algorithms such as support vector machines and decision trees to identify typical traffic patterns and determine whether there are abnormal traffic and performance bottlenecks. According to the results of traffic pattern analysis, the present invention combines the business characteristics and resource requirements of virtual machines, adopts optimization methods such as ant colony algorithms and genetic algorithms, and designs intelligent scheduling algorithms. It comprehensively considers factors such as virtual machine load and network topology, dynamically generates virtual machine scheduling strategies and migration plans, and determines the optimal virtual machine deployment plan.

[0015] Furthermore, the present invention utilizes software defined network (SDN) technology, issues network configuration rules to virtual switches through the OpenF l ow protocol, dynamically adjusts the network topology and bandwidth allocation between virtual machines according to the communication requirements of the virtual machines and the network load, optimizes the network data forwarding path, and improves link utilization. In addition, network virtualization protocols such as VXLAN and NVGRE are adopted to allocate independent virtual network space to each virtual machine, and an isolated virtual network environment is constructed through virtual switches and virtual routers to reduce network interference between virtual machines and ensure communication quality. The present invention also integrates a network performance optimization module in the virtual machine network protocol stack, and adopts transmission control protocol congestion control optimization, data compression, caching and other technologies to accelerate the transmission and redundant processing of virtual machine communication data, reduce network transmission delay and bandwidth occupancy, and improve the throughput and response speed of communication between virtual machines.

[0016] In general, the technical effect or function of the present invention is to realize the dynamic optimization management of virtual machine network resources through the comprehensive use of data collection, machine learning analysis, optimization algorithm design, SDN technology, network virtualization protocol and communication performance optimization measures, improve network performance and virtual machine operation efficiency, and ensure efficient and stable operation of business processes. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 The present invention is a flow chart of a cloud computing virtual machine communication optimization method.

[0018] Figure 2 A schematic diagram of a cloud computing virtual machine communication optimization method of the present invention.

[0019] Figure 3 This is another schematic diagram of a cloud computing virtual machine communication optimization method of the present invention. DETAILED DESCRIPTION

[0020] In order to further understand the content of the present invention, the present invention is described in detail in conjunction with the accompanying drawings and embodiments. The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0021] like Figure 1-3 In this embodiment, a cloud computing virtual machine communication optimization method may specifically include:

[0022] Step S101, collect network traffic data between virtual machines through the virtual machine management platform, and use the network traffic collection agent to obtain traffic statistics information, the traffic statistics information includes indicators such as traffic size, communication frequency, protocol type, etc., to form an original traffic data set.

[0023] According to the application program interface provided by the virtual machine management platform, the configuration information and operation status data of the virtual machine are obtained, including the name, IP address, operating system type, CPU and memory usage of the virtual machine. The network traffic data between virtual machines is collected regularly through the network traffic collection agent. The collection agent establishes a connection with the virtual machine management platform and the virtual switch, and obtains the traffic data packet through port mirroring or network socket. The collected raw traffic data includes information such as the timestamp, source IP address, destination IP address, protocol type, port number and packet size of the data packet. The collected traffic data is preprocessed, and the noise data and redundant information are removed through operations such as data cleaning and feature extraction. The statistical features of the traffic data, such as traffic size, communication frequency, distribution of protocol types and other indicators, are extracted to construct a standardized traffic data set. According to the feature distribution of the traffic data set, a feature selection algorithm based on information gain, such as the mutual information method or the chi-square test method, is used to select the key feature subset that has a significant impact on the virtual machine communication mode, reduce the data dimension, and improve the efficiency and accuracy of subsequent analysis. Perform cluster analysis on the selected traffic feature subsets, and use density-based clustering algorithms, such as the DBSCAN algorithm, to divide virtual machines with similar communication patterns into the same cluster based on similarity metrics of traffic data, such as Euclidean distance or cosine similarity, and identify the communication community structure between virtual machines. Based on the virtual machine communication community division results obtained through cluster analysis, use network embedding algorithms, such as the DeepWa lk algorithm or the node2vec algorithm, to map the virtual machine communication network to a low-dimensional vector space, learn the embedded vector representation of each virtual machine node, and characterize the topological relationship and mutual influence between virtual machines. Based on the embedded vector representation of virtual machine nodes, build an anomaly detection model for virtual machine communication patterns, and use unsupervised anomaly detection methods such as the isolation forest algorithm or the local anomaly factor algorithm to determine whether the node has abnormal communication behavior by calculating the dissimilarity between the virtual machine node and its neighboring nodes, and identify potential security threats. Combine the anomaly detection results with the configuration information and operating status data of the virtual machine, and use a rule-based reasoning engine, such as the Droo ls rule engine, to comprehensively analyze the abnormal communication behavior and resource usage of the virtual machine according to predefined security policy rules, determine whether the virtual machine has security risks, and generate corresponding alarm information and disposal suggestions.

[0024] Specifically, the configuration information and running status data of the virtual machine are collected through the application program interface of the virtual machine management platform, including the name, IP address, operating system type, CPU and memory usage of the virtual machine. For example, the CPU usage of the virtual machine can be collected every 5 minutes. When the CPU usage exceeds 80% for 3 consecutive times, an alarm is triggered. At the same time, the network traffic collection agent is used to collect network traffic packets between 100 virtual machines per second through port mirroring to extract statistical features such as traffic size, communication frequency, and protocol type. The chi-square test method is used to screen the 20 extracted traffic features and select the 5 feature subsets that have the most significant impact on the virtual machine communication mode. Then, the DBSCAN clustering algorithm is used to divide the 1000 virtual machine nodes into several communication communities with Euclidean distance as the similarity measure. The communication mode of the virtual machines in each community is similar. Then, the node2vec algorithm is used to learn the 128-dimensional embedding vector representation of the virtual machine node to characterize the topological relationship between the nodes. Based on the embedding vector, the isolation forest algorithm is used to build an anomaly detection model. By calculating the dissimilarity between each node and its neighboring nodes, it is determined whether the node has abnormal communication behavior. Finally, the Droo ls rule engine is used to integrate the anomaly detection results and the CPU and memory usage of the virtual machine. According to the predefined 20 security policy rules, the security risks of the virtual machine are automatically identified, and corresponding alarm information and disposal suggestions are generated. For example, if a virtual machine is found to be running at a high load continuously and has abnormal external connections, it is recommended to limit the network bandwidth of the virtual machine to avoid the spread of security threats.

[0025] Step S102, pre-processing the collected raw traffic data, removing noise data through data cleaning, feature extraction and other operations, extracting key feature indicators such as traffic peak value and average bandwidth occupancy, and constructing a standardized traffic feature data set.

[0026] The collected raw traffic data is preprocessed. First, the minimum-maximum normalization method is used to normalize the raw traffic data, and the traffic data is mapped to the interval [0, 1] to eliminate the dimensional influence between different dimensional features. After the normalization, the traffic data below the threshold is determined as noise data and eliminated by setting the traffic threshold to obtain the denoised traffic data. According to the denoised traffic data, the wavelet analysis method is used to extract the features of the traffic data. The traffic data is converted from the time domain to the wavelet domain by wavelet transform, and the statistical features of the traffic are extracted in the wavelet domain, including feature indicators such as mean, variance, and skewness, to obtain the traffic statistical feature set. At the same time, the traffic data is decomposed into different frequency bands by wavelet packet decomposition, and the energy characteristics of each frequency band are extracted to obtain the frequency domain feature set of the traffic. The extracted traffic statistical features and frequency domain features are fused to construct a standardized traffic feature data set. The chi-square test method is used to screen the features, calculate the chi-square statistic of each feature, sort the importance of the features according to the size of the chi-square statistic, select the features with high importance as the final traffic feature subset, and obtain the optimized traffic feature data set. Through the above preprocessing operations, the original traffic data is converted into a standardized traffic feature data set, providing a high-quality data foundation for subsequent traffic anomaly detection.

[0027] Specifically, for the collected raw traffic data, the minimum-maximum normalization method is first used for normalization. Assuming that the minimum value of the raw traffic data is 100KB / s and the maximum value is 10MB / s, the normalized traffic data range is [0,1]. For example, the original traffic is 5MB / s, and the normalized value is (5MB / s-100KB / s) / (10MB / s-100KB / s)≈49. After normalization, the traffic threshold is set to 1, and the traffic data below the threshold is judged as noise data and removed. Then, the wavelet analysis method is used to extract features from the denoised traffic data. Using the Daubech i es4 wavelet basis function, the traffic data is decomposed into 4 layers of wavelets, and statistical features such as mean, variance, and skewness are extracted in the wavelet domain. At the same time, the traffic data is decomposed into 8 frequency bands through wavelet packet decomposition, and the energy characteristics of each frequency band are extracted. The extracted statistical features and frequency domain features are fused to construct a standardized traffic feature data set. The chi-square test is used to screen the features, the chi-square statistic of each feature is calculated, and the features with a chi-square statistic greater than 183 (degree of freedom is 1, significance level is 0.001) are selected as the final traffic feature subset. Through the above preprocessing operations, the original traffic data is converted into an optimized traffic feature data set, laying a data foundation for subsequent traffic anomaly detection.

[0028] Step S103, based on the standardized traffic feature data set, a traffic pattern recognition model is established using machine learning algorithms such as support vector machines and decision trees. The model is trained to identify typical traffic patterns in the virtual machine communication process, determine whether there is abnormal traffic and performance bottlenecks, and obtain traffic pattern analysis results.

[0029] Based on the standardized traffic feature data set, a traffic pattern recognition model is established using machine learning algorithms such as support vector machines and decision trees. First, the traffic feature data set is preprocessed, and high-quality training data is obtained through methods such as data cleaning and feature selection. Then, the support vector machine algorithm is selected, and the radial basis kernel function is used to optimize the algorithm hyperparameters through grid search, and the model is trained using the cross-validation method to obtain the support vector machine model with the best performance. At the same time, the C5 decision tree algorithm is selected to build a decision tree based on the information gain ratio criterion, and the tree structure is optimized using the pruning strategy to obtain a decision tree model with strong generalization ability. During the model training process, the confusion matrix, F1 value and other evaluation indicators are used to evaluate and optimize the model performance. According to the trained traffic pattern recognition model, the real-time traffic data in the virtual machine communication process is predicted and classified. The traffic data is converted into a feature vector and input into the support vector machine and decision tree model, and the classification result of the traffic pattern is obtained through model reasoning. If the traffic pattern is identified as an abnormal pattern, it is judged that there is a potential network security threat; if the traffic pattern is identified as a performance bottleneck pattern, it is judged that there is a virtual machine communication performance problem. Based on the traffic pattern classification results, a traffic pattern analysis report is generated to describe the abnormal traffic and performance bottlenecks in the virtual machine communication process, providing a basis for subsequent network security protection and performance optimization. At the same time, the traffic pattern analysis results are fed back to the model training module, and the traffic pattern recognition model is updated and optimized through the incremental learning method to improve the adaptability and accuracy of the model. Finally, a complete traffic pattern analysis result is obtained, including abnormal traffic detection results and performance bottleneck location results, which provides guarantee for the safe operation and efficient communication of the virtual machine network.

[0030] Specifically, in the preprocessing stage of the traffic feature data set, 3% of noise data and 5% of duplicate data were removed through data cleaning, and the chi-square test was used to select the 20 most discriminative feature subsets from 100 features. In the training of the support vector machine model, the Gaussian radial basis kernel function was used, and the penalty factor C was optimized to 10 through grid search, and the kernel function parameter γ was optimized to 01. The model was trained using the 5-fold cross-validation method, and a classification accuracy of 95% was obtained. In the training of the decision tree model, a decision tree was constructed based on the information gain ratio criterion. By setting the leaf node sample number threshold to 10 and the maximum depth of the tree to 8, the decision tree was pre-pruned and post-pruned to optimize the decision tree, and a decision tree model with strong generalization ability was obtained. The classification accuracy on the test set reached 93%. In the model evaluation process, the confusion matrix analysis was used to find that the recall rate of the support vector machine model for abnormal traffic reached 98%, and the precision rate of the decision tree model for performance bottleneck traffic reached 95%, and the comprehensive F1 value exceeded 95. In real-time traffic pattern recognition, the traffic data is segmented into a time window of 5 seconds, and a 20-dimensional feature vector is extracted and input into the trained support vector machine and decision tree model for classification. After model reasoning, 2% of abnormal traffic and 3% of performance bottleneck traffic in the virtual machine communication process are identified, and a detailed traffic pattern analysis report is generated. For abnormal traffic, the report points out that 80% of them are DDoS attack traffic, 15% are port scanning traffic, and 5% are worm virus traffic; for performance bottleneck traffic, the report analyzes that 70% are network bandwidth bottlenecks, 20% are transmission rate reductions caused by TCP congestion control, and 10% are packet delays caused by virtual machine CPU overload. Based on the traffic pattern analysis results, the network security administrator deployed corresponding security protection strategies, optimized virtual machine resource configuration and TCP parameter tuning, and effectively improved the security and communication efficiency of the virtual machine network. At the same time, the new traffic samples are fed back to the model training module, and the support vector machine and decision tree models are updated through incremental learning methods, which further improves the accuracy and adaptability of traffic pattern recognition. In the subsequent week of testing, the overall classification accuracy of the model has increased to more than 97%.

[0031] Step S104, based on the traffic pattern analysis results, combined with the business characteristics and resource requirements of the virtual machine, adopt optimization methods such as ant colony algorithm and genetic algorithm to design an intelligent scheduling algorithm, comprehensively consider factors such as virtual machine load and network topology, dynamically generate virtual machine scheduling strategies and migration plans, and determine the optimal virtual machine deployment plan.

[0032] According to the results of traffic pattern analysis, the business characteristics and resource demand information of virtual machines are obtained, and the intelligent scheduling algorithm is designed by using optimization methods such as ant colony algorithm and genetic algorithm. The virtual machine load, network topology and other factors are used as the input of the algorithm to dynamically generate virtual machine scheduling strategies and migration plans. In the ant colony algorithm, virtual machines and physical servers are mapped to ants, and the resource requirements of virtual machines and the resource capacity of physical servers are used as pheromones. The optimal virtual machine deployment plan is found by the movement and update of pheromones by ants in the search space. The genetic algorithm uses the virtual machine deployment plan as chromosomes, optimizes the chromosomes by crossover and mutation operations, evaluates the quality of chromosomes by fitness functions, selects chromosomes with high fitness as the next generation of parents, and obtains the optimal virtual machine deployment plan after multiple iterations of evolution. When generating the scheduling strategy, the communication dependency relationship and network topology between virtual machines are comprehensively considered, and virtual machines with frequent communication are deployed on the same physical server or adjacent servers as much as possible to reduce network transmission delay. At the same time, according to the load of the virtual machine and resource utilization, the deployment location and resource allocation of the virtual machine are dynamically adjusted to avoid load imbalance and resource waste. In the process of generating the migration plan, the operation status and resource usage of the virtual machine are monitored in real time to determine whether migration is necessary. If the resource utilization of the virtual machine is at a low level for a long time, or the resource utilization of the physical server is too high, the migration operation is triggered. When migrating, select the target server with low resource utilization and in line with the resource requirements of the virtual machine. At the same time, consider the impact of migration on network bandwidth and try to choose the plan with the lowest migration cost. Finally, apply the generated scheduling strategy and migration plan to the virtual machine management system to schedule and migrate the virtual machine in real time to ensure the efficient operation of the virtual machine and the reasonable allocation of resources.

[0033] Specifically, the business characteristics and resource demand information of the virtual machine are obtained according to the traffic pattern analysis results. For example, by analyzing the CPU utilization, memory usage, disk I / O and other indicators of the virtual machine in the past week, it is found that the CPU utilization of some virtual machines averages 80%, the memory usage averages 60%, and shows the characteristics of morning and evening peaks. It can be judged that these virtual machines carry user-oriented Web applications. The intelligent scheduling algorithm is designed by using optimization methods such as ant colony algorithm and genetic algorithm. In the ant colony algorithm, virtual machines are mapped to ants, physical servers are mapped to food sources, and the CPU, memory, disk and other resource requirements of virtual machines are used as pheromones. Parameters such as α=1, β=2, ρ=5 are set. Through 100 ants iterating 500 times in the search space, the optimal virtual machine deployment plan is found. The genetic algorithm uses a set of randomly generated virtual machine deployment plans as the initial population. Each chromosome consists of N genes, where N is the number of virtual machines, the gene value is 1~M, and M is the number of physical servers, indicating that the virtual machine is deployed on the corresponding numbered physical server. The chromosomes are optimized by single-point crossover and gene mutation, with a crossover probability of 6 and a mutation probability of 1. The fitness function comprehensively considers factors such as load balancing and resource utilization, and the optimal solution is obtained after 200 iterations. When generating the scheduling strategy, the network communication between virtual machines is analyzed. For example, it is found that there are an average of 100 requests per second between virtual machines A and B, and the delay requirement is within 5ms, while the communication frequency between virtual machines A and C is low, with an average of only 1 request per minute. Therefore, virtual machines A and B are preferentially deployed on the same physical server, or on adjacent servers in the same rack, while virtual machine C can be deployed on other racks. At the same time, it is monitored that the CPU utilization of virtual machine D exceeds 90% for 30 minutes, while the CPU utilization of the physical server where it is located is only 50%. Therefore, resource adjustment is triggered to add 1 CPU core to virtual machine D, and resource allocation is completed within 1 minute. During the generation of the migration plan, it was found through real-time monitoring that the CPU utilization of the physical server where virtual machine E was located exceeded 85% for 1 hour, and the CPU utilization of the virtual machine was lower than 10% for a long time, and the resource utilization was seriously unbalanced. Therefore, it was decided to migrate virtual machine E to physical server F with a CPU utilization of 40%. After 3 seconds of migration time, virtual machine E was successfully started on physical server F. The peak network bandwidth usage during the entire migration process was 80Mbps, which did not cause significant impact on the business. Finally, the generated scheduling strategy and migration plan were applied to the virtual machine management system to perform real-time scheduling and migration of virtual machines, which improved resource utilization by 15% and reduced energy consumption.

[0034] Step S105, using software defined network (SDN) technology, sends network configuration rules to the virtual switch through the OpenF low protocol, dynamically adjusts the network topology and bandwidth allocation between virtual machines according to the communication requirements of the virtual machines and the network load, optimizes the network data forwarding path, and improves link utilization.

[0035] According to the communication requirements of virtual machines and network load, the software defined network (SDN) technology is used to issue network configuration rules to the virtual switch through the OpenFl ow protocol. According to the issued network configuration rules, the virtual switch dynamically adjusts the network topology and bandwidth allocation between virtual machines. When dynamically adjusting the network topology, the depth-first search algorithm is used to traverse the network connection relationship between virtual machines to obtain the current network topology. According to the current network topology and the communication requirements of virtual machines, the minimum spanning tree algorithm is used to calculate the optimized network topology between virtual machines. According to the optimized network topology, the virtual switch reconfigures the network connection between virtual machines. When dynamically adjusting bandwidth allocation, the virtual switch obtains the network traffic statistics of each virtual machine and uses the maximum-minimum fairness algorithm to calculate the bandwidth allocation plan for each virtual machine. According to the bandwidth allocation plan, the virtual switch limits and schedules the network traffic of each virtual machine through traffic control technology to ensure the fairness of bandwidth allocation. When forwarding network data packets, according to the communication requirements of virtual machines and the optimized network topology, the virtual switch calculates the optimal forwarding path of the data packet through the Dijkstra algorithm. Based on the calculated optimal forwarding path, the virtual switch dynamically adjusts the forwarding rules of the data packet and forwards the data packet to the destination virtual machine, thereby improving the utilization of the link.

[0036] Specifically, in the SDN controller, the network configuration rules are sent to the virtual switch through the OpenFlow protocol. For example, the controller can send flow table rules to specify that the communication between virtual machines VM1 and VM2 needs to pass through virtual switches VS1 and VS2, and set the link bandwidth to 100Mbps. After receiving the rules, the virtual switch uses the depth-first search algorithm to traverse the network connections between virtual machines and obtains the current network topology as VM1-VS1-VS2-VM2. Then, the Kruska l minimum spanning tree algorithm is used, with the link bandwidth as the weight, to calculate the optimized network topology as VM1-VS2-VM2, reducing one hop forwarding. Based on this, the virtual switch adjusts the connection between VM1 and VM2 to a direct connection. At the same time, the virtual switch counts the network traffic of VM1 and VM2 and finds that the traffic of VM1 is 80Mbps and the traffic of VM2 is 60Mbps. Using the maximum-minimum fairness algorithm, the bandwidth of VM1 is allocated to 100Mbps and the bandwidth of VM2 is allocated to 80Mbps, ensuring the fairness of bandwidth allocation. Finally, when the virtual switch forwards the data packet from VM1 to VM2, it calculates the optimal forwarding path as VS2 through the Dijkstra shortest path algorithm, thereby improving the link utilization.

[0037] Step S106, using network virtualization protocols such as VXLAN and NVGRE, allocate an independent virtual network space to each virtual machine, build an isolated virtual network environment through virtual switches and virtual routers, reduce network interference between virtual machines, and ensure communication quality.

[0038] Using network virtualization protocols such as Virtual Extensible LAN (VXLAN) and Network Virtualization Generic Routing Encapsulation (NVGRE), an independent virtual network space is allocated to each virtual machine. Based on the network requirements of the virtual machine, an isolated virtual network environment is built through virtual switches and virtual routers. The virtual switch uses software-defined networking (SDN) technology to forward and process data packets based on flow table rules. The virtual router uses Border Gateway Protocol (BGP) and Open Shortest Path First (OSPF) protocols to achieve routing communication between virtual networks. Access control lists (ACLs) are applied in virtual switches and virtual routers to filter and restrict data packets according to predefined security policies to reduce network interference between virtual machines. Through the traffic mirroring function of the virtual switch, the network traffic of the virtual machine is copied to the specified port to monitor and analyze the network traffic. Using network address translation (NAT) technology, the internal IP address of the virtual machine is mapped to an external routable IP address to achieve communication between the virtual machine and the external network. Through the quality of service (QoS) mechanism of the virtual switch, the network traffic of the virtual machine is classified and prioritized to ensure the communication quality of key services. Through the policy routing function, the virtual router can flexibly control the forwarding path of the data packet according to the source address, destination address, protocol type and other attributes of the data packet, and realize the refined management of network traffic. Finally, through the centralized network management platform, the virtual switches and virtual routers are uniformly configured and managed, simplifying network operation and maintenance work and improving network management efficiency.

[0039] Specifically, in a virtualized environment, the VXLAN protocol can be used to isolate virtual machines from the network. Each virtual machine is assigned a 24-bit VXLAN network identifier (VNI). By encapsulating VNI, source and destination VTEP addresses and other information in the data frame, a virtual tunnel is established on the underlying network to realize the carrying of the second-layer network on the third-layer network. The virtual switch uses the OpenFlow protocol to issue flow table rules, match the source and destination MAC addresses, destination MAC addresses, VLAN ID and other fields of the data packet, perform the specified forwarding or discarding operations, and support refined QoS and ACL policies. The virtual router learns the routing information of other virtual routers through the BGP protocol, selects the best path to forward the data packet according to the routing table, and the OSPF protocol is used to exchange link state information between virtual routers, and uses the Dijkstra algorithm to calculate the shortest path tree. In the traffic mirroring function of the virtual switch, the traffic of the virtual machine can be copied to a dedicated mirroring port. By deploying traffic analysis tools, the network behavior of the virtual machine can be monitored in real time, and abnormal traffic and security threats can be discovered in time. For the needs of virtual machines to access external networks, SNAT rules can be configured on virtual routers to convert the internal IP address of the virtual machine (such as 10 / 24) to an external routable public IP address (such as 2090 / 24), and perform corresponding DNAT operations when returning data packets. Through a centralized SDN controller, administrators can use REST API or Web interface to uniformly distribute configuration, monitor status and troubleshoot all virtual switches and virtual routers, and execute network configuration tasks in batches based on automated operation and maintenance tools such as Ansible to improve network deployment and change efficiency.

[0040] Step S107, integrating a network performance optimization module into the virtual machine network protocol stack, using transmission control protocol congestion control optimization, data compression, caching and other technologies to accelerate the transmission and redundant processing of virtual machine communication data, reduce network transmission delay and bandwidth occupancy, and improve the throughput and response speed of communication between virtual machines.

[0041] The network performance optimization module is integrated into the virtual machine network protocol stack. The specific implementation process is as follows: By adding the transmission control protocol congestion control optimization module to the virtual machine network protocol stack, the random early detection algorithm (RED algorithm) and the explicit congestion notification algorithm (ECN algorithm) are used to dynamically adjust the congestion window size and slow start threshold according to the network congestion status to avoid packet loss and delay increase caused by network congestion. The average queue length calculated by the RED algorithm is used to judge the degree of network congestion. When the average queue length exceeds the maximum threshold, the ECN algorithm is triggered, and the congestion flag is set in the packet header to notify the sender to reduce the sending rate. The data compression module is introduced into the virtual machine network protocol stack, and the Huffman coding algorithm and the run-length coding algorithm are used to compress the virtual machine communication data to reduce the data transmission volume. By constructing the Huffman tree, the optimal code is generated according to the frequency of data occurrence, and a shorter code is used for high-frequency data and a longer code is used for low-frequency data to compress the data volume. The run-length coding algorithm is used to retain only one copy of the original data and the number of repetitions for repeated data, further compressing the data. A cache optimization module is added to the virtual machine network protocol stack, and the least recently used algorithm (LRU algorithm) and the least frequently used algorithm (LFU algorithm) are used to cache and manage virtual machine communication data to reduce repeated data transmission. A cache queue is maintained according to the LRU algorithm, and the most recently accessed data is placed at the head of the queue, and the longest unused data at the tail of the queue is eliminated. The LFU algorithm is used to count the access frequency of each data and eliminate the data with the lowest access frequency. By introducing a redundant data processing module in the virtual machine network protocol stack, the erasure code algorithm and the data segmentation algorithm are used to perform redundant processing on the virtual machine communication data to improve the reliability of data transmission. The RS erasure code algorithm is used to divide the original data into multiple data blocks and generate check blocks. Even if some data blocks are lost, the original data can be restored. According to the data segmentation algorithm, the large data is divided into multiple small data packets for transmission, reducing the retransmission overhead caused by the loss of a single data packet. Finally, the network performance optimization module transmits the optimized data to the next layer of the virtual machine network protocol stack to complete the accelerated transmission of virtual machine communication data. The virtual machine network protocol stack receives the optimized data, removes redundant data, decompresses the data, and transmits the data to the target virtual machine, thereby improving the throughput and response speed of communication between virtual machines.

[0042] Specifically, a network performance optimization module is integrated into the virtual machine network protocol stack, and the RED algorithm and ECN algorithm are adopted by adding a transmission control protocol congestion control optimization module. When the average queue length exceeds the maximum threshold of 80%, the ECN algorithm is triggered, and the congestion flag is set in the packet header to notify the sender to reduce the sending rate by 20%. A data compression module is introduced, and the Huffman coding algorithm is used to generate the optimal coding according to the frequency of data occurrence. 6-bit coding is used for high-frequency data with a frequency of more than 50%, and 10-bit coding is used for low-frequency data, which compresses the data volume by 35% on average. The run-length coding algorithm is used to retain only one copy of the original data and the number of repetitions for data that appears more than 3 times in a row, further compressing the data by 20%. A cache optimization module is added, and the LRU algorithm is used to maintain a cache queue of size 1024, putting the most recently accessed data at the head of the queue and eliminating the data that has not been used for the longest time at the tail of the queue. The LFU algorithm is used to count the access frequency of each data, eliminate the 10% data with the lowest access frequency, and reduce repeated data transmission by 45%. The redundant data processing module is introduced, and the RS (6,3) erasure code algorithm is used to divide the original data into 6 data blocks and generate 3 check blocks, which can tolerate the loss of 3 data blocks. According to the data segmentation algorithm, data larger than 1MB is divided into multiple 512KB small data packets for transmission, reducing the retransmission overhead caused by the loss of a single data packet by 30%. After being processed by the network performance optimization module, the virtual machine communication throughput is increased by 55%, and the average response delay is reduced by 40%, effectively improving the virtual machine network performance.

[0043] The description of the above embodiments is only used to help understand the technical solutions and core ideas of the present application. Ordinary technical personnel in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A cloud computing virtual machine communication optimization method, characterized in that: The method comprises: Collect network traffic data between virtual machines through the virtual machine management platform, and use the network traffic collection agent to obtain traffic statistics; Preprocess the collected raw traffic data, remove noise data through data cleaning and feature extraction operations, and extract key feature indicators, including traffic peak and average bandwidth occupancy; build a standardized traffic feature data set based on the extracted key feature indicators; Based on the standardized traffic feature data set, a traffic pattern recognition model is established using machine learning algorithms such as support vector machines and decision trees. The model is trained to identify typical traffic patterns in the virtual machine communication process, determine whether there are abnormal traffic and performance bottlenecks, and obtain traffic pattern analysis results. Based on the traffic pattern analysis results, combined with the business characteristics and resource requirements of the virtual machine, an ant colony algorithm or genetic algorithm is used to design an intelligent scheduling algorithm, which comprehensively considers the virtual machine load and network topology factors, dynamically generates virtual machine scheduling strategies and migration plans, and determines the optimal virtual machine deployment plan; Using software-defined networking (SDN) technology, network configuration rules are sent to virtual switches through the OpenFlow protocol. Based on the communication needs of virtual machines and network load, the network topology and bandwidth allocation between virtual machines are dynamically adjusted to optimize the network data forwarding path. Use VXLAN or NVGRE network virtualization protocols to allocate independent virtual network space to each virtual machine, and build an isolated virtual network environment through virtual switches and virtual routers; A network performance optimization module is integrated into the virtual machine network protocol stack, and transmission control protocol congestion control optimization, data compression, and caching technology are used to accelerate the transmission and redundant processing of virtual machine communication data.

2. The method according to claim 1, wherein: The method of collecting network traffic data between virtual machines through a virtual machine management platform and obtaining traffic statistics information using a network traffic collection agent includes: According to the application program interface provided by the virtual machine management platform, obtain the configuration information and operation status data of the virtual machine, including the name, IP address, operating system type, CPU and memory usage indicators of the virtual machine; The network traffic data between virtual machines is collected regularly through a network traffic collection agent. The collection agent establishes a connection with the virtual machine management platform and the virtual switch, and obtains traffic data packets through port mirroring or network sockets. The collected raw traffic data includes the packet’s timestamp, source IP address, destination IP address, protocol type, port number, and packet size information; Preprocess the collected traffic data, remove noise data and redundant information through data cleaning and feature extraction operations, extract statistical features of the traffic data, the statistical features of the traffic data include distribution indicators of traffic size, communication frequency and protocol type, and construct a standardized traffic data set; According to the characteristic distribution of the traffic data set, a feature selection algorithm based on information gain is used to select a subset of key features that have a significant impact on the virtual machine communication mode, reduce the data dimension, and improve the efficiency and accuracy of subsequent analysis; the feature selection algorithm based on information gain is a mutual information method or a chi-square test method; Cluster analysis is performed on the selected subset of traffic features. Density-based clustering algorithms, including the DBSCAN algorithm, are used to classify virtual machines with similar communication patterns into the same cluster based on similarity metrics of traffic data, including Euclidean distance or cosine similarity, and the communication community structure between virtual machines is identified.

3. The method according to claim 2, wherein the collecting network traffic data between virtual machines through a virtual machine management platform and obtaining traffic statistics information using a network traffic collection agent further comprises: Based on the virtual machine communication community division results obtained through cluster analysis, a network embedding algorithm, including the DeepWalk algorithm or the node2vec algorithm, is used to map the virtual machine communication network into a low-dimensional vector space, learn the embedded vector representation of each virtual machine node, and characterize the topological relationship and mutual influence between virtual machines; Based on the embedded vector representation of virtual machine nodes, an anomaly detection model for virtual machine communication patterns is constructed. Unsupervised anomaly detection methods such as the isolation forest algorithm or the local anomaly factor algorithm are used to determine whether the node has abnormal communication behavior by calculating the difference between the virtual machine node and its neighboring nodes, thereby identifying potential security threats. The anomaly detection results are combined with the configuration information and operating status data of the virtual machine. A rule-based reasoning engine, including the Drools rule engine, is used to comprehensively analyze the abnormal communication behavior and resource usage of the virtual machine according to predefined security policy rules, determine whether the virtual machine has security risks, and generate corresponding alarm information and disposal suggestions.

4. The method according to claim 1, wherein: The collected raw traffic data is preprocessed by removing noise data and extracting key characteristic indicators through data cleaning and feature extraction. The key indicators include traffic peak value and average bandwidth occupancy. A standardized traffic characteristic data set is constructed based on the extracted key characteristic indicators, including: The collected raw traffic data is preprocessed. First, the minimum-maximum normalization method is used to normalize the raw traffic data, and the traffic data is mapped to the interval [0, 1] to eliminate the dimensional influence between different dimensional features; The normalized flow data is processed by setting a flow threshold, and the flow data below the threshold is determined as noise data and removed to obtain denoised flow data; According to the denoised traffic data, wavelet analysis method is used to extract features of the traffic data; The flow data is converted from the time domain to the wavelet domain through wavelet transform, and the statistical characteristics of the flow are extracted in the wavelet domain, including the mean, variance and skewness characteristic indicators, to obtain the flow statistical feature set; At the same time, the flow data is decomposed into different frequency bands by wavelet packet decomposition, the energy characteristics of each frequency band are extracted, and the frequency domain feature set of the flow is obtained; The extracted traffic statistical features and frequency domain features are integrated to construct a standardized traffic feature dataset; The chi-square test method is used to screen the features, and the chi-square statistic of each feature is calculated. The importance of the features is sorted according to the size of the chi-square statistic, and the features with high importance are selected as the final traffic feature subset to obtain the optimized traffic feature data set; Through the above preprocessing operations, the original traffic data is converted into a standardized traffic feature data set, providing a high-quality data foundation for subsequent traffic anomaly detection.

5. The method according to claim 1, wherein: The method uses a standardized traffic feature data set and a machine learning algorithm such as a support vector machine and a decision tree to establish a traffic pattern recognition model, trains the model to recognize typical traffic patterns in the virtual machine communication process, determines whether there are abnormal traffic and performance bottlenecks, and obtains traffic pattern analysis results, including: Based on the standardized traffic feature data set, a traffic pattern recognition model is established using machine learning algorithms such as support vector machines and decision trees; First, the traffic feature dataset is preprocessed to obtain high-quality training data through data cleaning and feature selection methods; Then, we selected the support vector machine algorithm, used the radial basis kernel function, optimized the algorithm hyperparameters through grid search, and adopted the cross-validation method to train the model to obtain the support vector machine model with the best performance. At the same time, the C5 decision tree algorithm is selected to build a decision tree based on the information gain ratio criterion, and the pruning strategy is used to optimize the tree structure to obtain a decision tree model with strong generalization ability; During the model training process, evaluation indicators such as confusion matrix and F1 value are used to evaluate and optimize the model performance; According to the trained traffic pattern recognition model, the real-time traffic data in the virtual machine communication process is predicted and classified; The traffic data is converted into feature vectors and input into the support vector machine and decision tree models to obtain the classification results of the traffic pattern through model reasoning; If the traffic pattern is identified as an abnormal pattern, it is judged that there is a potential network security threat; If the traffic pattern is identified as a performance bottleneck pattern, it is determined that there is a virtual machine communication performance problem; Generate a traffic pattern analysis report based on the traffic pattern classification results, describing the abnormal traffic and performance bottlenecks in the virtual machine communication process, and providing a basis for subsequent network security protection and performance optimization; At the same time, the traffic pattern analysis results are fed back to the model training module, and the traffic pattern recognition model is updated and optimized through the incremental learning method to improve the adaptability and accuracy of the model; Finally, complete traffic pattern analysis results are obtained, including abnormal traffic detection results and performance bottleneck location results, which provide guarantee for the safe operation and efficient communication of the virtual machine network.

6. The method according to claim 1, wherein: Based on the traffic pattern analysis results, combined with the business characteristics and resource requirements of the virtual machine, an ant colony algorithm or a genetic algorithm optimization method is used to design an intelligent scheduling algorithm, comprehensively consider the virtual machine load and network topology factors, dynamically generate virtual machine scheduling strategies and migration plans, and determine the optimal virtual machine deployment plan, including: According to the traffic pattern analysis results, obtain the business characteristics and resource demand information of the virtual machine, use the ant colony algorithm or genetic algorithm optimization method to design an intelligent scheduling algorithm; Using virtual machine load and network topology factors as algorithm input, dynamically generate virtual machine scheduling strategies and migration plans; In the ant colony algorithm, virtual machines and physical servers are mapped to ants, and the resource requirements of virtual machines and the resource capacity of physical servers are used as pheromones. The ants move and update pheromones in the search space to find the optimal virtual machine deployment plan; The genetic algorithm uses the virtual machine deployment plan as chromosomes, uses crossover and mutation operations to optimize chromosomes, evaluates the quality of chromosomes through fitness functions, selects chromosomes with high fitness as the father of the next generation, and obtains the optimal virtual machine deployment plan after multiple iterations of evolution; When generating a scheduling strategy, the communication dependencies between virtual machines and the network topology are comprehensively considered, and virtual machines with frequent communications are deployed on the same physical server or adjacent servers as much as possible to reduce network transmission delays. At the same time, according to the load and resource utilization of the virtual machine, the deployment location and resource allocation of the virtual machine are dynamically adjusted to avoid load imbalance and resource waste; During the generation of the migration plan, the operation status and resource usage of the virtual machine are monitored in real time to determine whether migration is necessary; If the resource utilization of the virtual machine remains low for a long time, or the resource utilization of the physical server is too high, the migration operation is triggered; When migrating, select a target server with low resource utilization and that meets the resource requirements of the virtual machine. Also consider the impact of migration on network bandwidth and try to choose a solution with the lowest migration cost. Finally, the generated scheduling strategy and migration plan are applied to the virtual machine management system to perform real-time scheduling and migration of virtual machines to ensure efficient operation of virtual machines and reasonable allocation of resources.

7. The method according to claim 1, wherein: The software-defined network (SDN) technology is used to issue network configuration rules to virtual switches through the OpenFlow protocol, dynamically adjust the network topology and bandwidth allocation between virtual machines according to the communication requirements of the virtual machines and the network load, optimize the network data forwarding path, and improve the link utilization, including: According to the communication requirements of virtual machines and network load, software-defined networking (SDN) technology is used to send network configuration rules to virtual switches through the OpenFlow protocol; According to the issued network configuration rules, the virtual switch dynamically adjusts the network topology and bandwidth allocation between virtual machines; When dynamically adjusting the network topology, a depth-first search algorithm is used to traverse the network connection relationships between virtual machines to obtain the current network topology structure; According to the current network topology and the communication requirements of virtual machines, the optimized network topology between virtual machines is calculated through the minimum spanning tree algorithm; According to the optimized network topology, the virtual switch reconfigures the network connections between virtual machines; When dynamically adjusting bandwidth allocation, the virtual switch obtains the network traffic statistics of each virtual machine and uses the maximum-minimum fairness algorithm to calculate the bandwidth allocation plan for each virtual machine; According to the bandwidth allocation plan, the virtual switch uses traffic control technology to limit and schedule the network traffic of each virtual machine to ensure the fairness of bandwidth allocation; When forwarding network data packets, the virtual switch calculates the optimal forwarding path for the data packets based on the communication requirements of the virtual machines and the optimized network topology using the Dijkstra algorithm. Based on the calculated optimal forwarding path, the virtual switch dynamically adjusts the forwarding rules of the data packet and forwards the data packet to the destination virtual machine, thereby improving the utilization of the link.

8. The method according to claim 1, wherein: The VXLAN or NVGRE network virtualization protocol is used to allocate an independent virtual network space to each virtual machine, and an isolated virtual network environment is built through a virtual switch and a virtual router to reduce network interference between virtual machines and ensure communication quality, including: Use Virtual Extensible LAN (VXLAN) or Network Virtualization Generic Routing Encapsulation (NVGRE) network virtualization protocols to allocate independent virtual network space to each virtual machine; According to the network requirements of the virtual machine, an isolated virtual network environment is built through virtual switches and virtual routers; The virtual switch uses software-defined networking (SDN) technology to forward and process data packets based on flow table rules; The virtual router uses the Border Gateway Protocol (BGP) and Open Shortest Path First (OSPF) protocols to implement routing communications between virtual networks; Apply access control lists (ACLs) in virtual switches and virtual routers to filter and restrict data packets according to predefined security policies, reducing network interference between virtual machines; Through the traffic mirroring function of the virtual switch, the network traffic of the virtual machine is copied to the specified port to realize the monitoring and analysis of network traffic; Use Network Address Translation (NAT) technology to map the internal IP address of the virtual machine to an external routable IP address to enable communication between the virtual machine and the external network; The quality of service (QoS) mechanism of the virtual switch is used to classify and prioritize the network traffic of virtual machines to ensure the communication quality of key services. The virtual router uses the policy routing function to flexibly control the forwarding path of data packets according to the source address, destination address and protocol type attributes of the data packet, thus achieving refined management of network traffic. Finally, through the centralized network management platform, virtual switches and virtual routers can be uniformly configured and managed, simplifying network operation and maintenance and improving network management efficiency.

9. The method according to claim 1, wherein: The network performance optimization module is integrated into the virtual machine network protocol stack, and the transmission control protocol congestion control optimization, data compression, and caching technology are used to accelerate the transmission and redundant processing of virtual machine communication data, reduce network transmission delay and bandwidth occupancy, and improve the throughput and response speed of communication between virtual machines, including: The network performance optimization module is integrated into the virtual machine network protocol stack. The specific implementation process is as follows: by adding the transmission control protocol congestion control optimization module into the virtual machine network protocol stack, the random early detection algorithm (RED algorithm) and the explicit congestion notification algorithm (ECN algorithm) are used to dynamically adjust the congestion window size and slow start threshold according to the network congestion status to avoid packet loss and delay increase caused by network congestion; The average queue length calculated by the RED algorithm is used to determine the degree of network congestion. When the average queue length exceeds the maximum threshold, the ECN algorithm is triggered, and a congestion flag is set in the packet header to notify the sender to reduce the sending rate. Introducing a data compression module into the virtual machine network protocol stack, using the Huffman coding algorithm and run-length coding algorithm to compress virtual machine communication data and reduce data transmission volume; By constructing a Huffman tree, the optimal code is generated according to the frequency of data occurrence, and shorter codes are used for high-frequency data and longer codes are used for low-frequency data to compress the data volume; By using the run-length encoding algorithm, only one copy of the original data and the number of repetitions is retained for repeated data, further compressing the data.

10. The method according to claim 9, wherein the network performance optimization module is integrated into the virtual machine network protocol stack, and the transmission control protocol congestion control optimization, data compression, and caching technology are used to accelerate the transmission and redundant processing of virtual machine communication data, reduce network transmission delay and bandwidth occupancy, and improve the throughput and response speed of communication between virtual machines, and further comprises: Add a cache optimization module to the virtual machine network protocol stack, use the least recently used algorithm (LRU algorithm) and the least frequently used algorithm (LFU algorithm) to cache the virtual machine communication data and reduce repeated data transmission; A cache queue is maintained according to the LRU algorithm, which puts the most recently accessed data at the head of the queue and eliminates the longest unused data at the tail of the queue; Adopt LFU algorithm to count the access frequency of each data and eliminate the data with the lowest access frequency; By introducing a redundant data processing module into the virtual machine network protocol stack, using the erasure code algorithm and data segmentation algorithm, the virtual machine communication data is redundantly processed to improve the reliability of data transmission; The RS erasure code algorithm is used to divide the original data into multiple data blocks and generate check blocks. The original data can be restored even if some data blocks are lost. According to the data segmentation algorithm, large data is segmented into multiple small data packets for transmission, reducing the retransmission overhead caused by the loss of a single data packet; Finally, the network performance optimization module transmits the optimized data to the next layer of the virtual machine network protocol stack to complete the accelerated transmission of virtual machine communication data; The virtual machine network protocol stack receives the optimized data, removes redundant data, decompresses the data, and transmits the data to the target virtual machine, thereby improving the throughput and response speed of communication between virtual machines.

Citation Information

Cited By

  • Edge communication method and system based on big data combined with 5G technology

    CN118984469A

  • Network switch control method and system

    CN119583454A

  • PLC networking data acquisition system and method based on edge gateway

    CN119906736A

  • 5G-R core network virtual machine fault prediction method and system based on random forest algorithm

    CN120029717A

  • Source network operation risk monitoring and early warning method and system

    CN120151102A