Electric communication network flow control method and control system based on artificial intelligence
Through artificial intelligence technology, algorithms such as deep learning and reinforcement learning are used to dynamically analyze and adjust network traffic, identify bottlenecks and abnormal behaviors, solve the problem of existing technology being unable to cope with network changes, and improve network performance and security.
Patent Information
- Application Number
- CN202410692494.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-05-31
AI Technical Summary
Existing network traffic control technology cannot flexibly respond to real-time changes in network status, and cannot effectively identify and predict bottlenecks and potential abnormal behaviors, resulting in inefficient network management and inability to meet the demand for high-quality services.
Adopt artificial intelligence-based telecommunications network traffic control methods, use deep learning algorithms to analyze topology structures, and combine reinforcement learning and genetic algorithms to dynamically adjust traffic control strategies, identify and defend against abnormal behaviors, and optimize resource utilization and user experience.
It realizes intelligent monitoring and dynamic management of network traffic, quickly responds to traffic surges and congestion, improves network performance and user experience, enhances the network's self-learning and adaptive capabilities, timely detects and defends against network attacks, and reduces human errors. and administrative costs.
Smart Images

Figure CN118282919B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric communication networks, and in particular to an electric communication network flow control method and control system based on artificial intelligence. Background Art
[0002] With the rapid development of telecommunication networks and the widespread application of new technologies, network traffic management has become increasingly complex. Existing network traffic control technologies usually rely on static routing configurations and predefined traffic management policies, which are often unable to flexibly respond to real-time changes in network status, such as traffic surges, network congestion, and various security threats. In addition, traditional methods have difficulty effectively identifying and predicting bottlenecks and potential abnormal behaviors in the network when processing large-scale network data, resulting in inefficient network management and failure to meet the needs of high-quality services.
[0003] The limitations of existing technologies are mainly reflected in two aspects: first, there is a lack of efficient data analysis tools to monitor and analyze network status in real time, making it impossible to dynamically adjust traffic control strategies; second, traditional traffic control methods do not have the ability of self-learning and self-adaptation, and are difficult to optimize according to the actual operation of the network.
[0004] Therefore, there is an urgent need for a new technical solution that can integrate advanced artificial intelligence technology to achieve intelligent monitoring and dynamic management of network traffic. Summary of the invention
[0005] Based on the above objectives, the present invention provides an artificial intelligence-based electrical communication network traffic control method and control system.
[0006] The method for controlling traffic in an electric communication network based on artificial intelligence comprises the following steps:
[0007] S1: Analyze the topology of the electrical communication network using deep learning algorithms to identify potential bottleneck nodes and links;
[0008] S2: Based on the identification results in S1, take corresponding traffic adjustment measures to alleviate the bottleneck through dynamic path reorganization or traffic restriction;
[0009] S3: Apply the preset reinforcement learning algorithm to optimize the traffic control strategy based on the real-time network status and performance indicators;
[0010] S4: Identify abnormal network behavior by combining spatiotemporal features, including using time series models and spatial correlation analysis to identify and defend against abnormal traffic;
[0011] S5: Use genetic algorithms to optimize traffic control strategies to improve network resource utilization and service quality;
[0012] S6: Monitor and feedback user experience data in real time, take user needs and feedback into account when adjusting traffic control strategies, and optimize user perceived quality.
[0013] Furthermore, the S1 specifically includes:
[0014] S11: Collecting operation data of the electric communication network, including data flow, delay, packet loss rate and bandwidth utilization;
[0015] S12: Construct a topological structure model of the network, where each node represents a network device and each edge represents a connection between nodes;
[0016] S13: Use graph neural network algorithm to learn the features of topological structure model to learn the feature representation of nodes and edges from the graph structure;
[0017] S14: The features learned by the graph neural network algorithm are used to score the performance of each node and edge in the network, including indicators of traffic capacity and latency;
[0018] S15: Based on the performance scores, a threshold decision method is applied to identify nodes and links with performance below the threshold and identify them as potential bottlenecks;
[0019] S16: Verify the accuracy of the identified potential bottleneck nodes and links in combination with real-time network usage data.
[0020] Furthermore, the S12 specifically includes:
[0021] S121: Collect identification information of each device in the network and connection data between devices, including device IP address, port information and connection type;
[0022] S122: creating a graph data structure based on the collected device connection data, where each node represents a network device and each edge represents a direct connection between devices;
[0023] S123: Assign a weight to each node in the graph. The calculation formula for the node weight is:
[0024] Among them, W i represents the weight of node i, d i is the degree of the ith node;
[0025] S124: Assign a weight to each edge in the graph. The calculation formula for the edge weight is: Among them, W ij represents the weight of the edge between nodes i and j, b ij is the bandwidth connecting node i and node j, ∈ is a positive number;
[0026] S125: Apply force-directed algorithms to visualize the layout of network topology. By simulating physical spring forces and repulsive forces, node positions are determined, making densely connected areas more visually concentrated, making it easier to identify structural features and potential problems in the network.
[0027] Furthermore, the S13 specifically includes:
[0028] S131: Initialize the graph neural network model, using node features and edge features. Node features include device type, traffic processing capability, and historical failure rate; edge features include bandwidth, latency, and historical traffic data.
[0029] S132: Apply the graph convolution layer to process the graph data, where the update formula of each layer of graph convolution is:
[0030] in, is the feature representation of node i at layer l; is the set of neighbor nodes of node i; W (l) is the weight matrix of the lth layer, which is used to transform node features in graph convolution and learn the dependencies and interactions between nodes; B (l) is the bias term of the lth layer, which is used to provide additional adjustment space in graph convolution; c ij is the normalization constant between node i and node j, which is usually calculated based on the connection strength or number of adjacent nodes; σ is a nonlinear activation function;
[0031] S133: Through multi-layer graph convolution, the information of neighbors is aggregated layer by layer to increase the perception range of the model, so that each node can capture a wide range of topological structure information;
[0032] S134: In the last layer of the graph convolutional network, a global pooling layer is integrated, which aggregates the features of all nodes into a full-graph level representation for global performance evaluation;
[0033] S135: Apply the trained graph neural network model to evaluate the performance of network nodes and links to identify potential bottlenecks and high-risk areas.
[0034] Furthermore, the S16 specifically includes:
[0035] S161: collects network traffic data in real time, including traffic load, response time and error rate of each node and link;
[0036] S162: Apply the Pearson correlation coefficient method to calculate the correlation between the real-time data and the model prediction data. The specific calculation formula is: Where r is the Pearson correlation coefficient, which is used to measure the degree of linear correlation between two variables; x and y are data set vectors, where x represents the measured value of real-time network usage data and y represents the corresponding data predicted by the graph neural network model; and are the means of vectors x and y respectively; represents the sum of the products of the deviations between x and y; and are the sum of squared deviations of x and y respectively;
[0037] S163: When the correlation coefficient r calculated in S162 is higher than a preset threshold, it is considered that the bottleneck nodes and links predicted by the model are accurate;
[0038] S164: For nodes and links with low prediction accuracy, adjust parameters or training data of the graph neural network model to improve the prediction accuracy of the model;
[0039] S165: Repeat steps S161 to S164 until the accuracy of the model prediction meets the preset network performance optimization requirements.
[0040] Furthermore, the S2 specifically includes:
[0041] S21: First determine the bottleneck nodes and links identified in S1, and set priorities for each bottleneck node and link based on the degree of impact on network performance. The specific formula is: Among them, P i is the priority of node or link i, L i is the current traffic load, C i is the maximum capacity of the node or link;
[0042] S23: For high-priority bottleneck links, dynamic path reorganization is implemented, using software-defined network technology to dynamically change the data flow direction, guide the data flow to bypass the bottleneck area through alternative paths, and use the Dijkstra algorithm to calculate the optimal path from the source to the destination to ensure that the alternative path does not introduce new bottlenecks. The Dijkstra algorithm formula is: Where Cost(p) is the cost of path p, L l and C l are the current flow and capacity on link l respectively;
[0043] S24: For bottleneck nodes with medium and low priorities, traffic restriction measures are implemented. Traffic restriction is to reduce the impact of high traffic on bottleneck nodes by setting traffic thresholds. Specifically, traffic shaping technologies including token bucket or leaky bucket algorithm are used to queue and schedule data packets to reduce instantaneous traffic peaks.
[0044] Furthermore, the S3 specifically includes:
[0045] S31: Initialize the environment of the reinforcement learning model, which is used to map the real-time network status and performance indicators as the state of the model;
[0046] S32: Define a reward function based on network performance indicators including latency, bandwidth utilization and data packet loss rate. The reward function formula is: Among them, α, β and γ are weight coefficients for adjusting the importance of each indicator, ∈ is a small constant added to avoid division by zero, and R(s, a) is a reward function, which is used to reflect the improvement or deterioration of network performance after executing action a in state s;
[0047] S33: Deploy a deep Q-network as a reinforcement learning algorithm to learn to take actions in a given state to maximize future rewards;
[0048] S34: Obtain sample data by interacting with the network, including the current state, action taken, reward, and next state, for training the DQN model;
[0049] S35: Continuously update the DQN model and use the experience replay mechanism to optimize the learning process. The update formula of experience replay is: Q(s, a)←Q(s, a)+η(R(s, a)+δmax a′ Q(s′, a′)-Q(s, a)), where Q(s, a) is the expected reward for taking action a in state s, R(s, a) is the received reward, η is the learning rate, δ is the discount factor, and max a′ Q(s′, a′) is the maximum expected reward for taking an action in the next state s′;
[0050] S36: Apply the best actions predicted by the trained DQN model in real time to adjust network traffic control policies, including adjusting routing, bandwidth allocation, and traffic limit settings.
[0051] Furthermore, the S4 specifically includes:
[0052] S41: Collect network traffic data, including time series data and spatial location information of each node;
[0053] S42: Deploy a time series model to analyze the traffic time series on each node or link to identify potential abnormal patterns. Specifically, the autoregressive integrated moving average model is used to model the time series. The calculation formula is: Among them, Y t is the flow value at time t, c is a constant term, ∈ t is the error term, is the autoregressive parameter, θ i is the moving average parameter, p and q are the orders of autoregression and moving average respectively;
[0054] S43: Use spatial correlation analysis to evaluate the correlation of traffic patterns between adjacent nodes to determine the path of anomaly propagation. Specifically, the Pearson correlation coefficient is used to quantify the correlation of traffic between nodes.
[0055] S44: Determine the source and propagation path of abnormal traffic by combining the results of the time series model and spatial correlation analysis;
[0056] S45: Implement defensive measures, including isolating suspected attack source nodes, adjusting traffic routing, or applying rate limiting measures to slow down or prevent the impact of abnormal traffic.
[0057] Furthermore, the S5 specifically includes:
[0058] S51: defining a gene encoding method of a genetic algorithm, encoding parameters of a network traffic control strategy including bandwidth allocation, routing priority, and traffic limit settings into chromosomes;
[0059] S52: Initialize the population and generate multiple randomly coded chromosomes, each chromosome representing a flow control strategy;
[0060] S53: Define a fitness function to evaluate the effect of the flow control strategy represented by the chromosome. The fitness function is calculated based on the network performance index. The specific formula is: Among them, c represents a chromosome, ω 1 ,ω 2 ,ω 3 is a weight factor used to adjust the importance of different performance indicators, ∈ is a small constant to prevent division by zero errors, and F(c) is a fitness function used to evaluate the effect of flow control strategy c and calculate its contribution to network performance;
[0061] S54: Apply selection, crossover and mutation operations to generate new generations of chromosomes;
[0062] S55: repeatedly performing selection, crossover and mutation operations until a preset number of iterations is reached or the fitness no longer increases;
[0063] S56: Select the chromosome with the highest fitness from the final population, decode it into a specific flow control strategy, and implement it in the network.
[0064] The electric communication network flow control system based on artificial intelligence is used to implement the above-mentioned electric communication network flow control method based on artificial intelligence, and includes the following modules:
[0065] Data collection module: including flow sensors, performance monitors and topology detectors, used to collect network flow data, performance indicators and topology information in real time;
[0066] Data analysis module: uses preset artificial intelligence algorithms to analyze the collected data and identify bottleneck nodes and links in the network;
[0067] Traffic control module: used to dynamically adjust network traffic, implement path reorganization and traffic restriction based on the information provided by the data analysis module;
[0068] Anomaly detection module: combines spatiotemporal features to identify abnormal network behavior, including DDoS attacks or unexpected traffic peaks;
[0069] Optimized self-learning module: Optimizes traffic control strategies based on historical data and real-time feedback, and uses a preset reinforcement learning algorithm for continuous learning and adjustment.
[0070] Beneficial effects of the present invention:
[0071] The present invention, by utilizing artificial intelligence algorithms to perform real-time analysis and processing of network traffic data, can quickly identify and respond to changes in network status, such as traffic surges and network congestion. This dynamic traffic management strategy enables the network to utilize its resources more efficiently, reduce latency, and increase data transmission speeds, thereby significantly improving the performance of the entire network and user experience.
[0072] The present invention adopts advanced reinforcement learning and graph neural network technology to make network management not only rely on preset rules, but also be able to self-learn and adapt according to real-time network status and historical data. This intelligent traffic control method can automatically optimize routing and traffic distribution strategies, and effectively respond to the challenges of expanding network scale and changing usage patterns.
[0073] The present invention, through the integrated anomaly detection module, can timely discover and defend against network attacks and other security threats, such as DDoS attacks and illegal data infiltration. The system can use spatiotemporal feature analysis to track the source and propagation path of abnormal behavior, and quickly take isolation or mitigation measures to maintain the security and stable operation of the network. In addition, continuous monitoring and automatic adjustment mechanisms can also reduce human errors and management costs, further improving the reliability and efficiency of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0075] Figure 1 A schematic diagram of a flow chart of a method for controlling traffic in an electric communication network according to an embodiment of the present invention;
[0076] Figure 2 Schematic diagram of an electrical communication network traffic control system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0077] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.
[0078] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0079] like Figure 1 As shown, the traffic control method of the electric communication network based on artificial intelligence includes the following steps:
[0080] S1: Analyze the topology of the electrical communication network using deep learning algorithms to identify potential bottleneck nodes and links;
[0081] S2: Based on the identification results in S1, take corresponding traffic adjustment measures to alleviate the bottleneck through dynamic path reorganization or traffic restriction;
[0082] S3: Apply the preset reinforcement learning algorithm to optimize the traffic control strategy based on the real-time network status and performance indicators;
[0083] S4: Identify abnormal network behavior by combining spatiotemporal features, including using time series models and spatial correlation analysis to identify and defend against abnormal traffic;
[0084] S5: Use genetic algorithms to optimize traffic control strategies to improve network resource utilization and service quality;
[0085] S6: Monitor and feedback user experience data in real time, take user needs and feedback into account when adjusting traffic control strategies, and optimize user perceived quality.
[0086] S1 specifically includes:
[0087] S11: Collecting operation data of the electric communication network, including data flow, delay, packet loss rate and bandwidth utilization;
[0088] S12: Construct a topological structure model of the network, where each node represents a network device and each edge represents a connection between nodes;
[0089] S13: Use the graph neural network (GNN) algorithm to perform feature learning on the topological structure model to learn the feature representation of nodes and edges from the graph structure;
[0090] S14: The features learned by the graph neural network algorithm are used to score the performance of each node and edge in the network, including indicators of traffic capacity and latency;
[0091] S15: Based on the performance scores, a threshold decision method is applied to identify nodes and links with performance below the threshold and identify them as potential bottlenecks;
[0092] S16: Verify the accuracy of the identified potential bottleneck nodes and links in combination with real-time network usage data.
[0093] S12 specifically includes:
[0094] S121: Collect identification information of each device in the network and connection data between devices, including device IP address, port information and connection type;
[0095] S122: creating a graph data structure based on the collected device connection data, where each node represents a network device and each edge represents a direct connection between devices;
[0096] S123: Assign a weight to each node in the graph. The calculation formula for the node weight is:
[0097] Among them, W i Represents the weight of node i, which is used to represent the importance or centrality of the node in the network. i is the degree of the ith node (i.e., the number of other nodes directly connected to it); the node weight is assigned based on the node's connectivity. The higher the node's connectivity, the greater its centrality in the network and the smaller its weight, which helps highlight devices that have fewer connections but may be critical paths or bottlenecks.
[0098] S124: Assign a weight to each edge in the graph. The calculation formula for the edge weight is: Among them, W ij represents the weight of the edge between nodes i and j, which is used to identify the importance or carrying capacity of this connection in the graph. ij is the bandwidth connecting node i and node j, ∈ is a positive number to prevent bandwidth b ij The edge weight calculation takes into account the impact of bandwidth. Connections with lower bandwidth receive higher weights in the graph model, indicating that these connections may be bottlenecks in network performance.
[0099] S125: Apply force-directed algorithms to visualize the network topology and determine the node positions by simulating physical spring forces and repulsive forces, so that densely connected areas are more visually concentrated, making it easier to identify structural features and potential problems in the network;
[0100] Through the precise construction and analysis of the network topology structure in the above steps, the ability to intuitively identify bottlenecks in the electrical communication network and provide optimization suggestions is provided, which not only enhances the performance management of the network, but also prevents potential network failures, thereby significantly improving the operating efficiency and reliability of the entire network.
[0101] S13 specifically includes:
[0102] S131: Initialize the graph neural network model, using node features and edge features. Node features include device type, traffic processing capability, and historical failure rate; edge features include bandwidth, latency, and historical traffic data.
[0103] S132: Apply the graph convolution layer to process the graph data, where the update formula of each layer of graph convolution is:
[0104] in, is the feature representation of node i at layer l, which is a vector containing the relevant network attributes of the node (such as traffic handling capacity, historical failure rate, etc.) and the information obtained from the previous layer through graph convolution; is the set of neighbor nodes of node i, that is, all other nodes directly connected to node i; W (l) is the weight matrix of the lth layer, which is used to transform node features in graph convolution and learn the dependencies and interactions between nodes. This is a learning parameter that is optimized through the training process; B (l) The bias term of the lth layer is used to provide additional adjustment space in graph convolution and enhance the expressiveness of the model. The bias term is also a parameter adjusted during the learning process. ijis the normalization constant between nodes i and j, which is usually calculated based on the connection strength or number of adjacent nodes, and is used to balance the contribution of different nodes to i and ensure the balance of information aggregation; σ is a nonlinear activation function, such as ReLU, which is used to introduce nonlinearity after each layer of graph convolution so that the network can capture more complex patterns; the above update formula indicates that the feature of node i at layer l+1 is obtained by aggregating the features of all its neighbors j at layer l. To update, in the specific aggregation process, the features of each neighbor are first updated through the weight matrix W (l) Convert and then multiply by the normalization constant 1 / c ij , to ensure that the contributions of all neighbors are balanced; Represents the product of the bias term and the node's own features at layer l, adding more degrees of freedom to the model;
[0105] S133: Through multi-layer graph convolution, the information of neighbors is aggregated layer by layer to increase the perception range of the model, so that each node can capture a wide range of topological structure information;
[0106] S134: In the last layer of the graph convolutional network, a global pooling layer is integrated, which aggregates the features of all nodes into a full-graph level representation for global performance evaluation;
[0107] S135: Use the trained graph neural network model to evaluate the performance of network nodes and links and identify potential bottlenecks and high-risk areas. The above method greatly improves the accuracy and efficiency of network topology feature learning by introducing more detailed node and edge features and utilizing the multi-layer structure of the graph neural network. The application of the global pooling layer makes the performance evaluation of the entire network more comprehensive, thereby more effectively supporting network management and optimization decisions, and improving network stability and user experience.
[0108] S16 specifically includes:
[0109] S161: collects network traffic data in real time, including traffic load, response time and error rate of each node and link;
[0110] S162: Apply the Pearson correlation coefficient method to calculate the correlation between the real-time data and the model prediction data. The specific calculation formula is: Where r is the Pearson correlation coefficient, which is used to measure the degree of linear correlation between two variables. The value of the coefficient is between 1 and 1, where 1 indicates a complete positive correlation, 1 indicates a complete negative correlation, and 0 indicates no correlation; x and y are data set vectors, where x represents the measured value of real-time network usage data (such as traffic load, response time, etc.), and y represents the corresponding data predicted by the graph neural network model; and are the means of vectors x and y, i.e., the average of all real-time data measurements and the average of all model predictions; It represents the sum of the products of the deviations between x and y, and is used to calculate the covariance between the two, reflecting the degree to which the two variables deviate from their means at the same time; and are the sum of squared deviations of x and y, respectively, used to calculate their respective variances;
[0111] S163: When the correlation coefficient r calculated in S162 is higher than a preset threshold (eg, 0.8), it is considered that the bottleneck nodes and links predicted by the model are accurate;
[0112] S164: For nodes and links with low prediction accuracy, adjust parameters or training data of the graph neural network model to improve the prediction accuracy of the model;
[0113] S165: Repeat steps S161 to S164 until the accuracy of the model prediction meets the preset network performance optimization requirements; the method of the above steps provides a systematic method to verify and optimize the prediction accuracy of the network traffic control model by combining real-time network usage data. Through continuous monitoring and model adjustment, it can ensure that network performance management decisions are based on the most accurate data, significantly improving the operating efficiency and stability of the network.
[0114] S2 specifically includes:
[0115] S21: First determine the bottleneck nodes and links identified in S1, and set priorities for each bottleneck node and link based on the degree of impact on network performance. The specific formula is: Among them, P i is the priority of node or link i, L i is the current traffic load, C i is the maximum capacity of the node or link. A higher priority means a more immediate intervention is needed.
[0116] S23: For high-priority bottleneck links, dynamic path reorganization is implemented, using software-defined networking (SDN) technology to dynamically change the data flow direction, guide the data flow to bypass the bottleneck area through alternative paths, and use the Dijkstra algorithm to calculate the optimal path from the source to the destination to ensure that the alternative path does not introduce new bottlenecks. The Dijkstra algorithm formula is: Where Cost(p) is the cost of path p, L l and C l are the current flow and capacity on link l, respectively. This formula ensures that the selected path is away from the high-load link by increasing the term of the ratio of the current flow to the remaining capacity;
[0117] S24: For bottleneck nodes with medium and low priorities, traffic limiting measures are implemented. Traffic limiting is to reduce the impact of high traffic on bottleneck nodes by setting traffic thresholds. Specifically, traffic shaping technologies including token bucket or leaky bucket algorithm are used to queue and schedule data packets to reduce instantaneous traffic peaks. The above steps are combined with SDN's dynamic path reorganization and traffic limiting strategies to effectively solve the bottleneck problem in the network, improve the utilization efficiency of network resources, optimize network performance, and enhance the adaptability and stability of the network.
[0118] S3 specifically includes:
[0119] S31: Initialize the environment of the reinforcement learning model, which is used to map the real-time network status and performance indicators as the state of the model;
[0120] S32: Define a reward function based on network performance indicators including latency, bandwidth utilization and data packet loss rate. The reward function formula is: Among them, α, β and γ are weight coefficients for adjusting the importance of each indicator, ∈ is a small constant added to avoid division by zero, and R(s, a) is a reward function, which is used to reflect the improvement or deterioration of network performance after executing action a in state s. The higher the reward value, the more obvious the improvement of network performance.
[0121] S33: Deploy a deep Q-network as a reinforcement learning algorithm to learn to take actions in a given state to maximize future rewards;
[0122] S34: Obtain sample data by interacting with the network, including the current state, action taken, reward, and next state, for training the DQN model;
[0123] S35: Continuously update the DQN model and use the experience replay mechanism to optimize the learning process. The update formula of experience replay is: Q(s, a)←Q(s, a)+η(R(s, a)+δmax a′ Q(s′, a′)-Q(s, a)), where Q(s, a) is the expected reward for taking action a in state s, R(s, a) is the received reward, η is the learning rate, δ is the discount factor, and max a′ Q(s′, a′) is the maximum expected reward for taking an action in the next state s′;
[0124] S36: Apply the best actions predicted by the trained DQN model in real time to adjust the network traffic control strategy, including adjusting routing, bandwidth allocation, and traffic limit settings; the above steps and methods can dynamically optimize the network traffic control strategy in real time and improve the overall performance and reliability of the network. The application of reinforcement learning improves the adaptive ability of the strategy, enabling the network to automatically adjust to cope with changing traffic conditions and network environment.
[0125] S4 specifically includes:
[0126] S41: Collect network traffic data, including time series data and spatial location information of each node;
[0127] S42: Deploy a time series model to analyze the traffic time series on each node or link to identify potential abnormal patterns. Specifically, the autoregressive integrated moving average model (ARIMA) is used to model the time series. The calculation formula is: Among them, Y t is the flow value at time t, c is a constant term, ∈ t is the error term, is the autoregressive parameter, θ i is the moving average parameter, p and q are the orders of autoregression and moving average respectively;
[0128] S43: Use spatial correlation analysis to evaluate the correlation of traffic patterns between adjacent nodes to determine the path of anomaly propagation. Specifically, the Pearson correlation coefficient is used to quantify the correlation of traffic between nodes. The calculation formula has been provided previously.
[0129] S44: Determine the source and propagation path of abnormal traffic by combining the results of the time series model and spatial correlation analysis;
[0130] S45: Implement defensive measures, including isolating suspected attack source nodes, adjusting traffic routing, or applying rate limiting measures to slow down or prevent the impact of abnormal traffic;
[0131] The above method uses time series analysis and spatial correlation analysis to identify and defend against abnormal network behavior, improves the accuracy of anomaly detection and the effectiveness of network defense, and dynamically adjusts defense strategies to ensure that the network can continuously adapt to new threat environments and protect network resources and user data security.
[0132] S5 specifically includes:
[0133] S51: defining a gene encoding method of a genetic algorithm, encoding parameters of a network traffic control strategy including bandwidth allocation, routing priority, and traffic limit settings into chromosomes;
[0134] S52: Initialize the population and generate multiple randomly coded chromosomes, each chromosome representing a flow control strategy;
[0135] S53: Define a fitness function to evaluate the effect of the flow control strategy represented by the chromosome. The fitness function is calculated based on network performance indicators (such as total delay, packet loss rate, and network throughput). The specific formula is: Among them, c represents a chromosome, ω 1 ,ω 2 ,ω 3 is a weight factor used to adjust the importance of different performance indicators, ∈ is a small constant to prevent division by zero errors, and F(c) is a fitness function used to evaluate the effect of flow control strategy c and calculate its contribution to network performance;
[0136] S54: Apply selection, crossover and mutation operations to generate a new generation of chromosomes; the specific steps include:
[0137] S541: Select the best performing chromosome for reproduction according to the fitness function;
[0138] S542: Randomly select two chromosomes for crossover, exchange some of their genes with a predetermined probability, and generate new chromosomes;
[0139] S543: Randomly change certain genes in chromosomes with a certain probability to introduce genetic diversity.
[0140] S55: repeatedly performing selection, crossover and mutation operations until a preset number of iterations is reached or the fitness no longer increases;
[0141] S56: Select the chromosome with the highest fitness from the final population, decode it into a specific traffic control strategy, and implement it in the network; the above method can systematically explore and optimize network traffic control strategies, and automatically adjust and improve strategies by simulating natural selection and genetic mechanisms. This method not only improves the operating efficiency and service quality of the network, but also has a high degree of adaptability and flexibility, and can cope with complex and changing network environments.
[0142] like Figure 2 As shown, the electric communication network flow control system based on artificial intelligence is used to implement the above-mentioned electric communication network flow control method based on artificial intelligence, and includes the following modules:
[0143] Data collection module: including flow sensors, performance monitors and topology detectors, used to collect network flow data, performance indicators and topology information in real time;
[0144] Data analysis module: uses preset artificial intelligence algorithms to analyze the collected data and identify bottleneck nodes and links in the network;
[0145] Traffic control module: used to dynamically adjust network traffic, implement path reorganization and traffic restriction based on the information provided by the data analysis module;
[0146] Anomaly detection module: combines spatiotemporal features to identify abnormal network behavior, including DDoS attacks or unexpected traffic peaks;
[0147] Optimized self-learning module: Optimizes flow control strategies based on historical data and real-time feedback, and uses a preset reinforcement learning algorithm for continuous learning and adjustment;
[0148] The system integrates multiple intelligent modules to achieve comprehensive network traffic monitoring and management. It can respond to changes in network status in real time, effectively optimize network performance, reduce latency and packet loss, and improve the overall stability and security of the network.
[0149] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.
[0150] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An artificial intelligence-based electric communication network flow control method, characterized in that: The following steps are involved: S1: Analyze the topology of the electrical communication network using deep learning algorithms to identify potential bottleneck nodes and links; The S1 specifically includes: S11: Collecting operation data of the electric communication network, including data flow, delay, packet loss rate and bandwidth utilization; S12: Construct a topological structure model of the network, where each node represents a network device and each edge represents a connection between nodes; S13: Use graph neural network algorithm to learn the features of topological structure model to learn the feature representation of nodes and edges from the graph structure; S14: The features learned by the graph neural network algorithm are used to score the performance of each node and edge in the network, including indicators of traffic capacity and latency; S15: Based on the performance scores, a threshold decision method is applied to identify nodes and links with performance below the threshold and identify them as potential bottlenecks; S16: Verify the accuracy of the identified potential bottleneck nodes and links in combination with real-time network usage data; The S12 specifically includes: S121: Collect identification information of each device in the network and connection data between devices, including device IP address, port information and connection type; S122: creating a graph data structure based on the collected device connection data, where each node represents a network device and each edge represents a direct connection between devices; S123: Assign a weight to each node in the graph. The calculation formula for the node weight is: Among them, W i represents the weight of node i, d i is the degree of the ith node; S124: Assign a weight to each edge in the graph. The calculation formula for the edge weight is: Among them, W ij represents the weight of the edge between nodes i and j, b ij is the bandwidth connecting node i and node j, ∈ is a positive number; S125: Apply force-directed algorithms to visualize the network topology and determine the node positions by simulating physical spring forces and repulsive forces, so that densely connected areas are more visually concentrated, making it easier to identify structural features and potential problems in the network; The S13 specifically includes: S131: Initialize the graph neural network model, using node features and edge features. Node features include device type, traffic processing capability, and historical failure rate; edge features include bandwidth, latency, and historical traffic data. S132: Apply the graph convolution layer to process the graph data, where the update formula of each layer of graph convolution is: in, is the feature representation of node i at layer l; is the set of neighbor nodes of node i; W (l) is the weight matrix of the lth layer, which is used to transform node features in graph convolution and learn the dependencies and interactions between nodes; B (l) is the bias term of the lth layer, which is used to provide additional adjustment space in graph convolution; c ij is the normalization constant between node i and node j, which is usually calculated based on the connection strength or number of adjacent nodes; σ is a nonlinear activation function; S133: Through multi-layer graph convolution, the information of neighbors is aggregated layer by layer to increase the perception range of the model, so that each node can capture a wide range of topological structure information; S134: In the last layer of the graph convolutional network, a global pooling layer is integrated, which aggregates the features of all nodes into a full-graph level representation for global performance evaluation; S135: Apply the trained graph neural network model to evaluate the performance of network nodes and links, and identify potential bottlenecks and high-risk areas; The S16 specifically includes: S161: collects network traffic data in real time, including traffic load, response time and error rate of each node and link; S162: Apply the Pearson correlation coefficient method to calculate the correlation between the real-time data and the model prediction data. The specific calculation formula is: Where r is the Pearson correlation coefficient, which is used to measure the degree of linear correlation between two variables; x and y are data set vectors, where x represents the measured value of real-time network usage data and y represents the corresponding data predicted by the graph neural network model; and are the means of vectors x and y respectively; represents the sum of the products of the deviations between x and y; and are the sum of squared deviations of x and y respectively; S163: When the correlation coefficient r calculated in S162 is higher than a preset threshold, it is considered that the bottleneck nodes and links predicted by the model are accurate; S164: For nodes and links with low prediction accuracy, adjust parameters or training data of the graph neural network model to improve the prediction accuracy of the model; S165: Repeat steps S161 to S164 until the accuracy of the model prediction meets the preset network performance optimization requirements; S2: Based on the identification results in S1, take corresponding traffic adjustment measures to alleviate the bottleneck through dynamic path reorganization or traffic restriction; S3: Apply the preset reinforcement learning algorithm to optimize the traffic control strategy based on the real-time network status and performance indicators, including: S31: Initialize the environment of the reinforcement learning model, which is used to map the real-time network status and performance indicators as the state of the model; S32: Define a reward function based on network performance indicators including latency, bandwidth utilization and data packet loss rate. The reward function formula is: Among them, α, β and γ are weight coefficients for adjusting the importance of each indicator, ∈ is a small constant added to avoid division by zero, and R(s, a) is a reward function, which is used to reflect the improvement or deterioration of network performance after executing action a in state s; S33: Deploy a deep Q-network as a reinforcement learning algorithm to learn to take actions in a given state to maximize future rewards; S34: Obtain sample data by interacting with the network, including the current state, action taken, reward, and next state, for training the DQN model; S35: Continuously update the DQN model and use the experience replay mechanism to optimize the learning process. The update formula for experience replay is: Q(s,a)←Q(s,a)+η(R(s,a)+δmax a′ Q(s′, a′)-Q(s, a)), where Q(s, a) is the expected reward for taking action a in state s, R(s, a) is the received reward, η is the learning rate, δ is the discount factor, and max a′ Q(s′, a′) is the maximum expected reward for taking an action in the next state s′; S36: Apply the best actions predicted by the trained DQN model in real time to adjust network traffic control policies, including adjusting routing, bandwidth allocation, and traffic limit settings; S4: Identify abnormal network behavior by combining spatiotemporal features, including using time series models and spatial correlation analysis to identify and defend against abnormal traffic; S5: Use genetic algorithms to optimize traffic control strategies to improve network resource utilization and service quality, including: S51: defining a gene encoding method of a genetic algorithm, encoding parameters of a network traffic control strategy including bandwidth allocation, routing priority, and traffic limit settings into chromosomes; S52: Initialize the population and generate multiple randomly coded chromosomes, each chromosome representing a flow control strategy; S53: Define a fitness function to evaluate the effect of the flow control strategy represented by the chromosome. The fitness function is calculated based on the network performance index. The specific formula is: Where c represents a chromosome, ω1, ω2, ω3 are weight factors used to adjust the importance of different performance indicators, ∈ is a small constant to prevent division by zero errors, and F(c) is the fitness function used to evaluate the effect of the flow control strategy c and calculate its contribution to network performance; S54: Apply selection, crossover and mutation operations to generate new generations of chromosomes; S55: repeatedly performing selection, crossover and mutation operations until a preset number of iterations is reached or the fitness no longer increases; S56: Select the chromosome with the highest fitness from the final population, decode it into a specific flow control strategy, and implement it in the network; S6: Monitor and feedback user experience data in real time, take user needs and feedback into account when adjusting traffic control strategies, and optimize user perceived quality.
2. The method for controlling traffic in an electric communication network based on artificial intelligence according to claim 1, characterized in that: The S2 specifically includes: S21: First determine the bottleneck nodes and links identified in S1, and set priorities for each bottleneck node and link based on the degree of impact on network performance. The specific formula is: Among them, P i is the priority of node or link i, L i is the current traffic load, C i is the maximum capacity of the node or link; S23: For high-priority bottleneck links, dynamic path reorganization is implemented, using software-defined network technology to dynamically change the data flow direction, guide the data flow to bypass the bottleneck area through alternative paths, and use the Dijkstra algorithm to calculate the optimal path from the source to the destination to ensure that the alternative path does not introduce new bottlenecks. The Dijkstra algorithm formula is: Where Cost(p) is the cost of path p, L l and C l are the current flow and capacity on link l respectively; S24: For bottleneck nodes with medium and low priorities, traffic restriction measures are implemented. Traffic restriction is to reduce the impact of high traffic on bottleneck nodes by setting traffic thresholds. Specifically, traffic shaping technologies including token bucket or leaky bucket algorithm are used to queue and schedule data packets to reduce instantaneous traffic peaks.
3. The method for controlling traffic in an electric communication network based on artificial intelligence according to claim 1, characterized in that: The S4 specifically includes: S41: Collect network traffic data, including time series data and spatial location information of each node; S42: Deploy a time series model to analyze the traffic time series on each node or link to identify potential abnormal patterns. Specifically, the autoregressive integrated moving average model is used to model the time series. The calculation formula is: Among them, Y t is the flow value at time t, c is a constant term, ∈ t is the error term, is the autoregressive parameter, θ i is the moving average parameter, p and q are the orders of autoregression and moving average respectively; S43: Use spatial correlation analysis to evaluate the correlation of traffic patterns between adjacent nodes to determine the path of anomaly propagation. Specifically, the Pearson correlation coefficient is used to quantify the correlation of traffic between nodes. S44: Determine the source and propagation path of abnormal traffic by combining the results of the time series model and spatial correlation analysis; S45: Implement defensive measures, including isolating suspected attack source nodes, adjusting traffic routing, or applying rate limiting measures to slow down or prevent the impact of abnormal traffic.
4. An artificial intelligence-based electric communication network traffic control system, used to implement an artificial intelligence-based electric communication network traffic control method as claimed in any one of claims 1 to 3, characterized in that: Includes the following modules: Data collection module: including flow sensors, performance monitors and topology detectors, used to collect network flow data, performance indicators and topology information in real time; Data analysis module: uses preset artificial intelligence algorithms to analyze the collected data and identify bottleneck nodes and links in the network; Traffic control module: used to dynamically adjust network traffic, implement path reorganization and traffic restriction based on the information provided by the data analysis module; Anomaly detection module: combines spatiotemporal features to identify abnormal network behavior, including DDoS attacks or unexpected traffic peaks; Optimized self-learning module: Optimizes traffic control strategies based on historical data and real-time feedback, and uses a preset reinforcement learning algorithm for continuous learning and adjustment.
Citation Information
Patent Citations
Signal lamp timing method and device
CN114333361A
Distributed intrusion detection system task scheduling unloading method based on DQN algorithm
CN115766241A
Processor network security vulnerability detection method and system
CN117592060A
Real-time communication system and method suitable for non-stationary network environment
CN117749775A
Wireless network optimization system based on TD-LTE
CN117768921A
