CN118118420A - Communication network flow optimization method and system based on artificial intelligence - Google Patents
Communication network flow optimization method and system based on artificial intelligence Download PDFInfo
- Publication number
- CN118118420A CN118118420A CN202410375660.1A CN202410375660A CN118118420A CN 118118420 A CN118118420 A CN 118118420A CN 202410375660 A CN202410375660 A CN 202410375660A CN 118118420 A CN118118420 A CN 118118420A
- Authority
- CN
- China
- Prior art keywords
- communication network
- data
- network flow
- gnn
- gru
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/042—Knowledge-based neural networks; Logical representations of neural networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
- G06N3/0442—Recurrent networks, e.g. Hopfield networks characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2491—Mapping quality of service [QoS] requirements between different networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/60—Software-defined switches
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Life Sciences & Earth Sciences (AREA)
- Molecular Biology (AREA)
- Artificial Intelligence (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及人工智能领域,特别是一种基于人工智能的通信网络流量优化方法及系统。The present invention relates to the field of artificial intelligence, and in particular to a communication network traffic optimization method and system based on artificial intelligence.
背景技术Background technique
随着通信技术发展,人们对网络需求日益增大,通信网络已经成为了支撑社会运转的关键基础设施。然而,随着网络规模的不断扩大、业务需求的日益复杂,通信网络面临着越来越大的流量压力。传统的流量管理方法往往难以应对这种动态变化的环境,导致网络性能下降。同样计算机网络也需要像移动通信网络一样不断更新和发展,才能适应未来不断增加的需求。与此同时,各种新的应用不断出现,在大数据、云服务、人工智能、元宇宙等新兴技术,新的技术应用需要高质量的网络作为保障,面对不断发展的科技应用,传统通信网络流量的分配逐渐力不从心。因此如何针对通信网络流量的优化是现阶段丞待解决的技术问题。With the development of communication technology, people's demand for the network is increasing, and communication networks have become a key infrastructure to support the operation of society. However, with the continuous expansion of network scale and the increasing complexity of business needs, communication networks are facing increasing traffic pressure. Traditional traffic management methods are often unable to cope with this dynamically changing environment, resulting in decreased network performance. Similarly, computer networks also need to be constantly updated and developed like mobile communication networks in order to adapt to the increasing demand in the future. At the same time, various new applications continue to emerge. In emerging technologies such as big data, cloud services, artificial intelligence, and the metaverse, new technical applications require high-quality networks as a guarantee. In the face of the continuous development of scientific and technological applications, the distribution of traditional communication network traffic is gradually unable to cope with it. Therefore, how to optimize the communication network traffic is a technical problem that needs to be solved at this stage.
发明内容Summary of the invention
本发明的目的是为了解决上述问题,设计了一种基于人工智能的通信网络流量优化方法及系统。The purpose of the present invention is to solve the above problems and to design a communication network traffic optimization method and system based on artificial intelligence.
实现上述目的本发明的技术方案为,进一步,在上述一种基于人工智能的通信网络流量优化方法中,所述通信网络流量优化方法包括以下步骤:To achieve the above-mentioned purpose, the technical solution of the present invention is that, further, in the above-mentioned communication network traffic optimization method based on artificial intelligence, the communication network traffic optimization method comprises the following steps:
获取系统中的历史通信网络流量数据,对所述历史通信网络流量数据进行数据预处理,得到训练通信网络流量数据集;Acquire historical communication network traffic data in the system, perform data preprocessing on the historical communication network traffic data, and obtain a training communication network traffic data set;
基于GRU双通道门控循环单元和GNN图神经网络进行组合建立GRU-GNN通信网络流量预测模型,得到初始GRU-GNN通信网络流量预测模型;Based on the combination of GRU dual-channel gated recurrent unit and GNN graph neural network, a GRU-GNN communication network traffic prediction model is established to obtain the initial GRU-GNN communication network traffic prediction model;
将所述初始GRU-GNN通信网络流量预测模型和Self-Attention自注意力机制进行结合,得到目标GRU-GNN通信网络流量预测模型;Combining the initial GRU-GNN communication network traffic prediction model with the Self-Attention mechanism to obtain a target GRU-GNN communication network traffic prediction model;
获取系统中的训练通信网络流量数据集,将所述训练通信网络流量数据集输入至所述目标GRU-GNN通信网络流量预测模型中进行预测,得到预测通信网络流量数据;Acquire a training communication network traffic data set in the system, input the training communication network traffic data set into the target GRU-GNN communication network traffic prediction model for prediction, and obtain predicted communication network traffic data;
根据所述预测通信网络流量数据生成第一网络流量管理策略,基于所述第一网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理,得到目标通信网络流量数据;Generate a first network traffic management strategy according to the predicted communication network traffic data, and based on the first network traffic management strategy, use the openflow protocol to configure and manage the communication network traffic on the wireless router flow table to obtain the target communication network traffic data;
对所述目标通信网络流量数据进行监测,实时获取所述目标通信网络流量数据的数据变化范围,若所述数据变化范围大于设定的阈值,则生成第二网络流量管理策略。The target communication network traffic data is monitored to obtain the data change range of the target communication network traffic data in real time, and if the data change range is greater than a set threshold, a second network traffic management strategy is generated.
进一步,在上述通信网络流量优化方法中,所述获取系统中的历史通信网络流量数据,对所述历史通信网络流量数据进行数据预处理,得到训练通信网络流量数据集,包括:Further, in the above communication network traffic optimization method, the acquisition system acquires historical communication network traffic data, performs data preprocessing on the historical communication network traffic data, and obtains a training communication network traffic data set, including:
获取系统中的历史通信网络流量数据,所述历史通信网络流量数据至少包括通过基站获取的通信数据包大小数据、通信流量类型数据、源和目标地址数据、带宽使用情况数据、通信流量分布数据、通信流量异常检测数据、用户行为数据;Acquire historical communication network traffic data in the system, wherein the historical communication network traffic data at least includes communication data packet size data, communication traffic type data, source and destination address data, bandwidth usage data, communication traffic distribution data, communication traffic anomaly detection data, and user behavior data acquired through the base station;
对所述历史通信网络流量数据进行数据增强处理,得到增强通信网络流量数据;Performing data enhancement processing on the historical communication network traffic data to obtain enhanced communication network traffic data;
对所述增强通信网络流量数据中的缺失值进行补充,得到完整通信网络流量数据;Supplementing the missing values in the enhanced communication network flow data to obtain complete communication network flow data;
对所述完整通信网络流量数据中的异常值进行处理后进行数据归一化,得到训练通信网络流量数据集。After processing the abnormal values in the complete communication network traffic data, the data is normalized to obtain a training communication network traffic data set.
进一步,在上述通信网络流量优化方法中,所述基于GRU双通道门控循环单元和GNN图神经网络进行组合建立GRU-GNN通信网络流量预测模型,得到初始GRU-GNN通信网络流量预测模型,包括:Further, in the above communication network traffic optimization method, the GRU dual-channel gated recurrent unit and the GNN graph neural network are combined to establish a GRU-GNN communication network traffic prediction model to obtain an initial GRU-GNN communication network traffic prediction model, including:
所述GRU双通道门控循环单元包括复位门和更新门,其中复位门的计算公式如下:The GRU dual-channel gated recurrent unit includes a reset gate and an update gate, wherein the calculation formula of the reset gate is as follows:
rt=σ(Wr·[ht-1,Xt]+br)r t =σ(W r ·[h t-1 ,X t ]+b r )
ht=tanh(Wh·[rt*ht-1,Xt]+bh)h t = tanh(W h ·[r t *h t-1 ,X t ]+b h )
其中,σ为sigmoid函数,tanh为模型的激活函数,ht-1为上一时刻的输出状态向量,Xt为当前时刻的输入向量;Wr,Wh为模型的权重参数;br,bh为模型的偏置参数;Among them, σ is the sigmoid function, tanh is the activation function of the model, h t-1 is the output state vector of the previous moment, X t is the input vector of the current moment; W r , W h are the weight parameters of the model; b r , b h are the bias parameters of the model;
其中更新门的计算公式如下:The calculation formula of the update gate is as follows:
Zt=σ(WZ·[ht-1,Xt]+bZ)Z t =σ(W Z ·[h t-1 ,X t ]+b Z )
其中,WZ,bZ为权重参数和偏置参数,所述更新门用于控制上一时刻的输出状态向量ht-1和新输入ht对当前时刻输出向量h’t的影响程度;经过复位门和更新门后当前时刻t的最终输出向量为:Wherein, W Z , b Z are weight parameters and bias parameters, and the update gate is used to control the influence of the output state vector h t-1 at the previous moment and the new input h t on the output vector h' t at the current moment; after the reset gate and the update gate, the final output vector at the current moment t is:
h’t=(1-Zt)*ht-1+Zt*ht h' t =(1-Z t )*h t-1 +Z t *h t
在所述GNN图神经网络中,利用傅里叶变换将空间域的数据映射到频域进行卷积,利用反傅里叶变换将结果映射回空间域;In the GNN graph neural network, Fourier transform is used to map the data in the spatial domain to the frequency domain for convolution, and inverse Fourier transform is used to map the result back to the spatial domain;
将GRU双通道门控循环单元和GNN图神经网络进行组合建立GRU-GNN通信网络流量预测模型,得到初始GRU-GNN通信网络流量预测模型。The GRU dual-channel gated recurrent unit and the GNN graph neural network are combined to establish a GRU-GNN communication network traffic prediction model, and the initial GRU-GNN communication network traffic prediction model is obtained.
进一步,在上述通信网络流量优化方法中,所述将所述初始GRU-GNN通信网络流量预测模型和Self-Attention自注意力机制进行结合,得到目标GRU-GNN通信网络流量预测模型,包括:Further, in the above communication network traffic optimization method, the initial GRU-GNN communication network traffic prediction model and the Self-Attention mechanism are combined to obtain a target GRU-GNN communication network traffic prediction model, including:
基于GRU-GNN通信网络流量预测模型和Self-Attention自注意力机制相结合;Based on the combination of GRU-GNN communication network traffic prediction model and Self-Attention mechanism;
所述Self-Attention自注意力机制的计算公式如下:The calculation formula of the Self-Attention mechanism is as follows:
其中,TA是时间注意力矩阵,VT,bT,U1,U2和U3都是模型中需要学习的矩阵参数;Among them, TA is the temporal attention matrix, VT , bT , U1 , U2 and U3 are all matrix parameters that need to be learned in the model;
对所述TA中的元素进行归一化处理,所述归一化处理的计算公式如下:The elements in the TA are normalized, and the calculation formula of the normalization is as follows:
将归一化后的时间注意力矩阵与通信网络流量数据相乘进行动态调整所述初始GRU-GNN通信网络流量预测模型的输入数据;所述初始GRU-GNN通信网络流量预测模型至少包括三个表征学习组件;Multiplying the normalized time attention matrix with the communication network traffic data to dynamically adjust the input data of the initial GRU-GNN communication network traffic prediction model; the initial GRU-GNN communication network traffic prediction model includes at least three representation learning components;
利用所述表征学习组件用于对通信网络流量数据中的动态时空信息进行表征学习,将三个表征学习组件通过自适应融合后输出预测结果;The representation learning component is used to perform representation learning on dynamic spatiotemporal information in communication network traffic data, and three representation learning components are adaptively fused to output prediction results;
所述表征学习组件由4个时空卷积模块组成,所示时空卷积模块中由自注意力层对网络拓扑和时间权重进行调整;The representation learning component consists of four spatiotemporal convolution modules, in which the network topology and time weight are adjusted by the self-attention layer;
利用GNN图神经网络组成的卷积模块对时空特征进行学习,得到目标GRU-GNN通信网络流量预测模型。The convolutional module composed of GNN graph neural network is used to learn the spatiotemporal features and obtain the target GRU-GNN communication network traffic prediction model.
进一步,在上述通信网络流量优化方法中,所述获取系统中的实时通信网络流量数据,将所述实时通信网络流量数据输入至所述目标GRU-GNN通信网络流量预测模型中进行预测,得到预测通信网络流量数据,包括:Further, in the above communication network traffic optimization method, the real-time communication network traffic data in the acquisition system is input into the target GRU-GNN communication network traffic prediction model for prediction to obtain the predicted communication network traffic data, including:
获取系统中的实时通信网络流量数据,将所述实时通信网络流量数据输入至所述目标GRU-GNN通信网络流量预测模型中进行预测;Acquire real-time communication network traffic data in the system, and input the real-time communication network traffic data into the target GRU-GNN communication network traffic prediction model for prediction;
利用RMSE均方根误差对所述目标GRU-GNN通信网络流量预测模型的精度进行评估;The accuracy of the target GRU-GNN communication network traffic prediction model is evaluated using the RMSE root mean square error;
将Adam优化器设置为所述目标GRU-GNN通信网络流量预测模型的训练的优化器;Setting the Adam optimizer as the optimizer for training the target GRU-GNN communication network traffic prediction model;
将MSE损失函数设置为所述目标GRU-GNN通信网络流量预测模型的训练损失函数;The MSE loss function is set as the training loss function of the target GRU-GNN communication network traffic prediction model;
将所述所述目标GRU-GNN通信网络流量预测模型的的初始学习率设为0.006,每32个epoch判断一次验证集的loss值,若所述loss值不下降,则将学习率减少到原来的二分之一,训练得到预测通信网络流量数据;The initial learning rate of the target GRU-GNN communication network traffic prediction model is set to 0.006, and the loss value of the validation set is determined every 32 epochs. If the loss value does not decrease, the learning rate is reduced to half of the original value, and the predicted communication network traffic data is obtained through training;
所述预测通信网络流量数据至少包括通信流量大小数据、通信流量类型数据、通信流量分布数据。The predicted communication network traffic data at least includes communication traffic size data, communication traffic type data, and communication traffic distribution data.
进一步,在上述通信网络流量优化方法中,所述根据所述预测通信网络流量数据生成第一网络流量管理策略,基于所述第一网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理,得到目标通信网络流量数据,包括:Further, in the above communication network traffic optimization method, generating a first network traffic management strategy according to the predicted communication network traffic data, and based on the first network traffic management strategy, using the openflow protocol to configure and manage the communication network traffic on the wireless router flow table to obtain the target communication network traffic data, including:
根据所述预测通信网络流量数据生成第一网络流量管理策略,所述第一网络流量管理策略至少包括流量优先级传输策略、流量整形策略、流量控制策略、流量隔离策略;Generate a first network traffic management strategy based on the predicted communication network traffic data, wherein the first network traffic management strategy includes at least a traffic priority transmission strategy, a traffic shaping strategy, a traffic control strategy, and a traffic isolation strategy;
通过openflow协议对底层网络进行通信获取网络设备信息并连接到网络设备,所述openflow协议允许SDN控制器通过远程方式控制SDN交换机;Communicate with the underlying network through the openflow protocol to obtain network device information and connect to the network device. The openflow protocol allows the SDN controller to control the SDN switch remotely.
利用openflow协议对无线路由器流表进行通信网络流量的流表和计量表进行配置管理;Use the openflow protocol to configure and manage the flow tables and metering tables of wireless routers for communication network traffic;
基于openflow协议将所述第一网络流量管理策略发送到网络设备,配置网络设备数据库执行增加和删除命令,得到目标通信网络流量数据。The first network traffic management policy is sent to the network device based on the openflow protocol, and the network device database is configured to execute add and delete commands to obtain the target communication network traffic data.
进一步,在上述通信网络流量优化方法中,所述对所述目标通信网络流量数据进行监测,实时获取所述目标通信网络流量数据的数据变化范围,若所述数据变化范围大于设定的阈值,则生成第二网络流量管理策略,包括:Further, in the above communication network traffic optimization method, the target communication network traffic data is monitored, and the data change range of the target communication network traffic data is obtained in real time. If the data change range is greater than a set threshold, a second network traffic management strategy is generated, including:
对所述目标通信网络流量数据进行监测,每隔30秒获取所述目标通信网络流量数据的数据变化范围;Monitor the target communication network traffic data, and obtain the data change range of the target communication network traffic data every 30 seconds;
若30秒内所述目标通信网络流量数据的数据变化范围小于20%,则记录所述目标通信网络流量数据;If the data change range of the target communication network flow data is less than 20% within 30 seconds, the target communication network flow data is recorded;
若30秒内所述目标通信网络流量数据的数据变化范围大于20%,则计算所述目标通信网络流量数据在60秒内的变化范围;If the data variation range of the target communication network traffic data within 30 seconds is greater than 20%, then the variation range of the target communication network traffic data within 60 seconds is calculated;
若所述目标通信网络流量数据在60秒内的变化范围大于25%,则生成第二网络流量管理策略;If the target communication network traffic data changes by more than 25% within 60 seconds, a second network traffic management strategy is generated;
基于所述第二网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理。Based on the second network traffic management strategy, the openflow protocol is used to configure and manage the communication network traffic on the wireless router flow table.
进一步,在上述一种基于人工智能的通信网络流量优化系统中,所述通信网络流量优化系统包括以下模块:Furthermore, in the above-mentioned artificial intelligence-based communication network traffic optimization system, the communication network traffic optimization system includes the following modules:
流量数据获取模块,用于获取系统中的历史通信网络流量数据,对所述历史通信网络流量数据进行数据预处理,得到训练通信网络流量数据集;A flow data acquisition module is used to acquire historical communication network flow data in the system, perform data preprocessing on the historical communication network flow data, and obtain a training communication network flow data set;
预测模型建立模块,用于将GRU双通道门控循环单元和GNN图神经网络进行组合建立GRU-GNN通信网络流量预测模型,得到初始GRU-GNN通信网络流量预测模型;A prediction model building module is used to combine the GRU dual-channel gated recurrent unit and the GNN graph neural network to establish a GRU-GNN communication network traffic prediction model, and obtain an initial GRU-GNN communication network traffic prediction model;
预测模型优化模块,用于将所述初始GRU-GNN通信网络流量预测模型和Self-Attention自注意力机制进行结合,得到目标GRU-GNN通信网络流量预测模型;A prediction model optimization module, used to combine the initial GRU-GNN communication network traffic prediction model with the Self-Attention mechanism to obtain a target GRU-GNN communication network traffic prediction model;
通信流量预测模型,用于获取系统中的训练通信网络流量数据集,将所述训练通信网络流量数据集输入至所述目标GRU-GNN通信网络流量预测模型中进行预测,得到预测通信网络流量数据;A communication traffic prediction model is used to obtain a training communication network traffic data set in the system, input the training communication network traffic data set into the target GRU-GNN communication network traffic prediction model for prediction, and obtain predicted communication network traffic data;
通信流量管理模块,用于根据所述预测通信网络流量数据生成第一网络流量管理策略,基于所述第一网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理,得到目标通信网络流量数据;A communication traffic management module, configured to generate a first network traffic management strategy according to the predicted communication network traffic data, and to configure and manage the communication network traffic of the wireless router flow table using the openflow protocol based on the first network traffic management strategy to obtain target communication network traffic data;
通信流量优化模块,用于对所述目标通信网络流量数据进行监测,实时获取所述目标通信网络流量数据的数据变化范围,若所述数据变化范围大于设定的阈值,则生成第二网络流量管理策略。The communication traffic optimization module is used to monitor the target communication network traffic data and obtain the data change range of the target communication network traffic data in real time. If the data change range is greater than a set threshold, a second network traffic management strategy is generated.
进一步,在上述一种基于人工智能的通信网络流量优化系统中,所述流量数据获取模块包括以下子模块:Furthermore, in the above-mentioned artificial intelligence-based communication network traffic optimization system, the traffic data acquisition module includes the following submodules:
获取子模块,用于获取系统中的历史通信网络流量数据,所述历史通信网络流量数据至少包括通过基站获取的通信数据包大小数据、通信流量类型数据、源和目标地址数据、带宽使用情况数据、通信流量分布数据、通信流量异常检测数据、用户行为数据;An acquisition submodule is used to acquire historical communication network traffic data in the system, wherein the historical communication network traffic data at least includes communication data packet size data, communication traffic type data, source and destination address data, bandwidth usage data, communication traffic distribution data, communication traffic anomaly detection data, and user behavior data acquired through a base station;
增强子模块,用于对所述历史通信网络流量数据进行数据增强处理,得到增强通信网络流量数据;An enhancement submodule, used to perform data enhancement processing on the historical communication network flow data to obtain enhanced communication network flow data;
补充子模块,用于对所述增强通信网络流量数据中的缺失值进行补充,得到完整通信网络流量数据;A supplement submodule, used to supplement the missing values in the enhanced communication network flow data to obtain complete communication network flow data;
得到子模块,用于对所述完整通信网络流量数据中的异常值进行处理后进行数据归一化,得到训练通信网络流量数据集。A submodule is obtained, which is used to process the abnormal values in the complete communication network flow data and then perform data normalization to obtain a training communication network flow data set.
进一步,在上述一种基于人工智能的通信网络流量优化系统中,所述通信流量预测模型包括以下子模块:Furthermore, in the above-mentioned artificial intelligence-based communication network traffic optimization system, the communication traffic prediction model includes the following submodules:
输入子模块,用于获取系统中的实时通信网络流量数据,将所述实时通信网络流量数据输入至所述目标GRU-GNN通信网络流量预测模型中进行预测;An input submodule, used for acquiring real-time communication network traffic data in the system, and inputting the real-time communication network traffic data into the target GRU-GNN communication network traffic prediction model for prediction;
评估子模块,用于利用RMSE均方根误差对所述目标GRU-GNN通信网络流量预测模型的精度进行评估;An evaluation submodule, used to evaluate the accuracy of the target GRU-GNN communication network traffic prediction model using RMSE root mean square error;
优化器子模块,用于将Adam优化器设置为所述目标GRU-GNN通信网络流量预测模型的训练的优化器;An optimizer submodule, used to set the Adam optimizer as the optimizer for training the target GRU-GNN communication network traffic prediction model;
损失函数子模块,用于将MSE损失函数设置为所述目标GRU-GNN通信网络流量预测模型的训练损失函数;A loss function submodule, used to set the MSE loss function as the training loss function of the target GRU-GNN communication network traffic prediction model;
学习率子模块,用于将所述所述目标GRU-GNN通信网络流量预测模型的的初始学习率设为0.006,每32个epoch判断一次验证集的loss值,若所述loss值不下降,则将学习率减少到原来的二分之一,训练得到预测通信网络流量数据;A learning rate submodule is used to set the initial learning rate of the target GRU-GNN communication network traffic prediction model to 0.006, and to determine the loss value of the validation set every 32 epochs. If the loss value does not decrease, the learning rate is reduced to half of the original value, and the predicted communication network traffic data is obtained through training;
类型子模块,用于确定所述预测通信网络流量数据至少包括通信流量大小数据、通信流量类型数据、通信流量分布数据。The type submodule is used to determine that the predicted communication network traffic data at least includes communication traffic size data, communication traffic type data, and communication traffic distribution data.
其有益效果在于,获取系统中的历史通信网络流量数据,对所述历史通信网络流量数据进行数据预处理,得到训练通信网络流量数据集;基于GRU双通道门控循环单元和GNN图神经网络进行组合建立GRU-GNN通信网络流量预测模型,得到初始GRU-GNN通信网络流量预测模型;将所述初始GRU-GNN通信网络流量预测模型和Self-Attention自注意力机制进行结合,得到目标GRU-GNN通信网络流量预测模型;获取系统中的训练通信网络流量数据集,将所述训练通信网络流量数据集输入至所述目标GRU-GNN通信网络流量预测模型中进行预测,得到预测通信网络流量数据;根据所述预测通信网络流量数据生成第一网络流量管理策略,基于所述第一网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理,得到目标通信网络流量数据;对所述目标通信网络流量数据进行监测,实时获取所述目标通信网络流量数据的数据变化范围,若所述数据变化范围大于设定的阈值,则生成第二网络流量管理策略。首先能够实现对网络流量的动态管理和优化。可以根据实时的网络状况和业务需求,动态地调整流量管理策略,从而实现对网络流量的精准控制。可以通过对网络流量的实时监测和预测,发现网络拥堵和瓶颈的位置,然后通过调整路由、优化资源分配等方式,实现流量的均衡分布和高效传输。其次,它能够提升网络资源的利用效率。通过对网络流量数据的深入分析,基于人工智能的方法可以发现网络中的冗余和浪费资源,并通过优化资源配置,实现资源的合理利用和最大化利用。最后,它能够提高用户体验。通过精准地控制和管理网络流量,基于人工智能的方法可以确保关键业务的流畅运行,减少网络拥堵和延迟,从而提升用户的满意度和体验。The beneficial effects are that the historical communication network traffic data in the system is obtained, the historical communication network traffic data is preprocessed to obtain the training communication network traffic data set; the GRU-GNN communication network traffic prediction model is established based on the combination of the GRU dual-channel gated recurrent unit and the GNN graph neural network to obtain the initial GRU-GNN communication network traffic prediction model; the initial GRU-GNN communication network traffic prediction model is combined with the Self-Attention self-attention mechanism to obtain the target GRU-GNN communication network traffic prediction model; the training communication network traffic data set in the system is obtained, and the training communication network traffic data set is input into the target GRU-GNN communication network traffic prediction model for prediction to obtain the predicted communication network traffic data; the first network traffic management strategy is generated according to the predicted communication network traffic data, and the wireless router flow table is configured and managed based on the first network traffic management strategy. The communication network traffic data is configured and managed using the openflow protocol to obtain the target communication network traffic data; the target communication network traffic data is monitored to obtain the data change range of the target communication network traffic data in real time, and if the data change range is greater than the set threshold, the second network traffic management strategy is generated. First, the dynamic management and optimization of network traffic can be realized. Traffic management strategies can be adjusted dynamically according to real-time network conditions and business needs, thereby achieving precise control of network traffic. Through real-time monitoring and prediction of network traffic, the location of network congestion and bottlenecks can be discovered, and then balanced distribution and efficient transmission of traffic can be achieved by adjusting routes and optimizing resource allocation. Secondly, it can improve the utilization efficiency of network resources. Through in-depth analysis of network traffic data, AI-based methods can discover redundant and wasted resources in the network, and achieve rational and maximized utilization of resources by optimizing resource allocation. Finally, it can improve user experience. By accurately controlling and managing network traffic, AI-based methods can ensure the smooth operation of key businesses, reduce network congestion and latency, and thus improve user satisfaction and experience.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.
图1为本发明实施例中一种基于人工智能的通信网络流量优化方法的第一个实施例示意图;FIG1 is a schematic diagram of a first embodiment of a communication network traffic optimization method based on artificial intelligence in an embodiment of the present invention;
图2为本发明实施例中一种基于人工智能的通信网络流量优化方法的第二个实施例示意图;FIG2 is a schematic diagram of a second embodiment of a communication network traffic optimization method based on artificial intelligence in an embodiment of the present invention;
图3为本发明实施例中一种基于人工智能的通信网络流量优化方法的第三个实施例示意图;FIG3 is a schematic diagram of a third embodiment of a communication network traffic optimization method based on artificial intelligence in an embodiment of the present invention;
图4为本发明实施例中一种基于人工智能的通信网络流量优化系统的第一个实施例示意图。FIG4 is a schematic diagram of a first embodiment of a communication network traffic optimization system based on artificial intelligence in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”也可包括复数形式。应所述进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groups thereof.
下面结合附图对本发明进行具体描述,如图1所示,一种基于人工智能的通信网络流量优化方法,通信网络流量优化方法包括以下步骤:The present invention is described in detail below with reference to the accompanying drawings. As shown in FIG1 , a communication network traffic optimization method based on artificial intelligence is provided. The communication network traffic optimization method comprises the following steps:
步骤101、获取系统中的历史通信网络流量数据,对历史通信网络流量数据进行数据预处理,得到训练通信网络流量数据集;Step 101: Acquire historical communication network traffic data in the system, perform data preprocessing on the historical communication network traffic data, and obtain a training communication network traffic data set;
具体的,本实施例中获取系统中的历史通信网络流量数据,历史通信网络流量数据至少包括通过基站获取的通信数据包大小数据、通信流量类型数据、源和目标地址数据、带宽使用情况数据、通信流量分布数据、通信流量异常检测数据、用户行为数据;对历史通信网络流量数据进行数据增强处理,得到增强通信网络流量数据;对增强通信网络流量数据中的缺失值进行补充,得到完整通信网络流量数据;对完整通信网络流量数据中的异常值进行处理,得到训练通信网络流量数据集。Specifically, in this embodiment, historical communication network traffic data in the system is obtained, and the historical communication network traffic data at least includes communication data packet size data, communication traffic type data, source and destination address data, bandwidth usage data, communication traffic distribution data, communication traffic anomaly detection data, and user behavior data obtained through the base station; data enhancement processing is performed on the historical communication network traffic data to obtain enhanced communication network traffic data; missing values in the enhanced communication network traffic data are supplemented to obtain complete communication network traffic data; outliers in the complete communication network traffic data are processed to obtain a training communication network traffic data set.
具体的,本实施例中异常值处理是数据预处理的一个重要步骤,其目的是筛选出数据中的异常值并进行纠正,保证数据的准确性和可靠性。异常值筛选步骤包括以下三步:1)对数据进行可视化分析,用散点图和直方图等图形方法找出数值明显异常的点,作为初步筛选结果。2)利用箱线图(boxplot)找到异常值所在的范围,结合可视化图对这个范围内的数据进行判断,决定是否将其标记为异常值。3)利用数据所在领域的专业知识和经验,判断数据是否含有离群值。Specifically, in this embodiment, outlier processing is an important step in data preprocessing, and its purpose is to screen out outliers in the data and correct them to ensure the accuracy and reliability of the data. The outlier screening step includes the following three steps: 1) Visualize the data and use graphical methods such as scatter plots and histograms to find points with obviously abnormal values as preliminary screening results. 2) Use boxplots to find the range of outliers, and use visualizations to judge the data within this range to decide whether to mark it as an outlier. 3) Use professional knowledge and experience in the field where the data is located to determine whether the data contains outliers.
具体的,本实施例中通信网络流量数据主要涵盖了在网络传输过程中产生的各种数据量及相关信息。这些数据不仅有助于衡量网络的使用情况和负载,还能为网络性能分析、资源监控、结构优化、安全确保以及问题诊断提供重要依据。通信网络流量数据主要包括以下几个方面:数据包数量与大小:这反映了在特定时间段内,通过网络传输的数据包的数量及其大小。数据包是网络传输的基本单位,其数量和大小直接关联到网络的负载和传输效率。流量类型:根据通信协议和应用类型,流量可以分为多种类型,如HTTP流量、FTP流量、视频流量等。每种流量类型对网络的需求和性能影响都有所不同。源和目标地址:每个数据包都有明确的源地址和目标地址,这有助于追踪数据的来源和去向,对于网络安全和流量分析至关重要。带宽使用情况:网络流量数据可以反映网络带宽的使用情况,包括带宽的利用率、峰值带宽等,这有助于评估网络容量和规划网络扩展。流量分布:即流量在不同时间段、不同地点或不同用户之间的分布情况。这有助于了解网络使用的模式和特点,为网络优化提供依据。流量异常检测:通过对流量数据的分析,可以检测出异常流量,如DDoS攻击、恶意软件传播等,为网络安全防护提供预警。用户行为分析:通过分析网络流量数据,可以了解用户的上网习惯、偏好等信息,为个性化服务和精准营销提供支持。Specifically, the communication network traffic data in this embodiment mainly covers various data volumes and related information generated during network transmission. These data not only help to measure the usage and load of the network, but also provide important basis for network performance analysis, resource monitoring, structure optimization, security assurance and problem diagnosis. The communication network traffic data mainly includes the following aspects: Number and size of data packets: This reflects the number and size of data packets transmitted through the network in a specific time period. Data packets are the basic unit of network transmission, and their number and size are directly related to the load and transmission efficiency of the network. Traffic type: According to the communication protocol and application type, traffic can be divided into multiple types, such as HTTP traffic, FTP traffic, video traffic, etc. Each traffic type has different requirements and performance impacts on the network. Source and destination address: Each data packet has a clear source address and destination address, which helps to track the source and destination of the data, which is crucial for network security and traffic analysis. Bandwidth usage: Network traffic data can reflect the usage of network bandwidth, including bandwidth utilization, peak bandwidth, etc., which helps to evaluate network capacity and plan network expansion. Traffic distribution: that is, the distribution of traffic in different time periods, different locations or different users. This helps to understand the mode and characteristics of network usage and provide a basis for network optimization. Traffic anomaly detection: By analyzing traffic data, abnormal traffic can be detected, such as DDoS attacks, malware propagation, etc., to provide early warning for network security protection. User behavior analysis: By analyzing network traffic data, users' Internet habits, preferences and other information can be understood to provide support for personalized services and precision marketing.
步骤102、将GRU双通道门控循环单元和GNN图神经网络进行组合建立GRU-GNN通信网络流量预测模型,得到初始GRU-GNN通信网络流量预测模型;Step 102: Combine the GRU dual-channel gated recurrent unit and the GNN graph neural network to establish a GRU-GNN communication network traffic prediction model, and obtain an initial GRU-GNN communication network traffic prediction model;
具体的,本实施例中GRU双通道门控循环单元包括复位门和更新门,其中复位门的计算公式如下:Specifically, the GRU dual-channel gated recurrent unit in this embodiment includes a reset gate and an update gate, wherein the calculation formula of the reset gate is as follows:
rt=σ(Wr·[ht-1,Xt]+br)r t =σ(W r ·[h t-1 ,X t ]+b r )
ht=tanh(Wh·[rt*ht-1,Xt]+bh)h t = tanh(W h ·[r t *h t-1 ,X t ]+b h )
其中,σ为sigmoid函数,tanh为模型的激活函数,ht-1为上一时刻的输出状态向量,Xt为当前时刻的输入向量;Wr,Wh为模型的权重参数;br,bh为模型的偏置参数;其中更新门的计算公式如下:Among them, σ is the sigmoid function, tanh is the activation function of the model, h t-1 is the output state vector of the previous moment, X t is the input vector of the current moment; W r , W h are the weight parameters of the model; b r , b h are the bias parameters of the model; the calculation formula of the update gate is as follows:
Zt=σ(WZ·[ht-1,Xt]+bZ)Z t =σ(W Z ·[h t-1 ,X t ]+b Z )
其中,WZ,bZ为权重参数和偏置参数,更新门用于控制上一时刻的输出状态向量ht-1和新输入ht对当前时刻输出向量h’t的影响程度;经过复位门和更新门后当前时刻t的最终输出向量为:Among them, W Z , b Z are weight parameters and bias parameters, and the update gate is used to control the influence of the output state vector h t-1 at the previous moment and the new input h t on the output vector h' t at the current moment; after the reset gate and the update gate, the final output vector at the current moment t is:
h’t=(1-Zt)*ht-1+Zt*ht h' t =(1-Z t )*h t-1 +Z t *h t
在GNN图神经网络中,利用傅里叶变换将空间域的数据映射到频域进行卷积,利用反傅里叶变换将结果映射回空间域;将GRU双通道门控循环单元和GNN图神经网络进行组合建立GRU-GNN通信网络流量预测模型,得到初始GRU-GNN通信网络流量预测模型。In the GNN graph neural network, Fourier transform is used to map the spatial domain data to the frequency domain for convolution, and inverse Fourier transform is used to map the result back to the spatial domain; the GRU dual-channel gated recurrent unit and the GNN graph neural network are combined to establish a GRU-GNN communication network traffic prediction model, and the initial GRU-GNN communication network traffic prediction model is obtained.
步骤103、将初始GRU-GNN通信网络流量预测模型和Self-Attention自注意力机制进行结合,得到目标GRU-GNN通信网络流量预测模型;Step 103: Combine the initial GRU-GNN communication network traffic prediction model and the Self-Attention mechanism to obtain a target GRU-GNN communication network traffic prediction model;
具体的,本实施例中基于GRU-GNN通信网络流量预测模型和Self-Attention自注意力机制相结合;Self-Attention自注意力机制的计算公式如下:Specifically, this embodiment is based on the combination of the GRU-GNN communication network traffic prediction model and the Self-Attention mechanism; the calculation formula of the Self-Attention mechanism is as follows:
其中,TA是时间注意力矩阵,VT,bT,U1,U2和U3都是模型中需要学习的矩阵参数;对TA中的元素进行归一化处理,归一化处理的计算公式如下:Among them, TA is the temporal attention matrix, V T , b T , U 1 , U 2 and U 3 are all matrix parameters that need to be learned in the model; the elements in TA are normalized, and the calculation formula for normalization is as follows:
将归一化后的时间注意力矩阵与通信网络流量数据相乘进行动态调整初始GRU-GNN通信网络流量预测模型的输入数据;初始GRU-GNN通信网络流量预测模型至少包括三个表征学习组件;利用表征学习组件用于对通信网络流量数据中的动态时空信息进行表征学习,将三个表征学习组件通过自适应融合后输出预测结果;表征学习组件由4个时空卷积模块组成,所示时空卷积模块中由自注意力层对网络拓扑和时间权重进行调整;利用GNN图神经网络组成的卷积模块对时空特征进行学习,得到目标GRU-GNN通信网络流量预测模型。The normalized time attention matrix is multiplied by the communication network traffic data to dynamically adjust the input data of the initial GRU-GNN communication network traffic prediction model; the initial GRU-GNN communication network traffic prediction model includes at least three representation learning components; the representation learning component is used to represent the dynamic spatiotemporal information in the communication network traffic data, and the three representation learning components are adaptively fused to output the prediction results; the representation learning component is composed of 4 spatiotemporal convolution modules, and the network topology and time weight are adjusted by the self-attention layer in the spatiotemporal convolution module shown; the convolution module composed of the GNN graph neural network is used to learn the spatiotemporal features to obtain the target GRU-GNN communication network traffic prediction model.
步骤104、获取系统中的训练通信网络流量数据集,将训练通信网络流量数据集输入至目标GRU-GNN通信网络流量预测模型中进行预测,得到预测通信网络流量数据;Step 104: Obtain a training communication network traffic data set in the system, input the training communication network traffic data set into a target GRU-GNN communication network traffic prediction model for prediction, and obtain predicted communication network traffic data;
具体的,本实施例中获取系统中的实时通信网络流量数据,将实时通信网络流量数据输入至目标GRU-GNN通信网络流量预测模型中进行预测;利用RMSE均方根误差对目标GRU-GNN通信网络流量预测模型的精度进行评估;将Adam优化器设置为目标GRU-GNN通信网络流量预测模型的训练的优化器;将MSE损失函数设置为目标GRU-GNN通信网络流量预测模型的训练损失函数;将目标GRU-GNN通信网络流量预测模型的的初始学习率设为0.006,每32个epoch判断一次验证集的loss值,若loss值不下降,则将学习率减少到原来的二分之一,训练得到预测通信网络流量数据;预测通信网络流量数据至少包括通信流量大小数据、通信流量类型数据、通信流量分布数据。Specifically, in this embodiment, real-time communication network traffic data in the system is obtained, and the real-time communication network traffic data is input into the target GRU-GNN communication network traffic prediction model for prediction; the accuracy of the target GRU-GNN communication network traffic prediction model is evaluated using the RMSE root mean square error; the Adam optimizer is set as the optimizer for training the target GRU-GNN communication network traffic prediction model; the MSE loss function is set as the training loss function of the target GRU-GNN communication network traffic prediction model; the initial learning rate of the target GRU-GNN communication network traffic prediction model is set to 0.006, and the loss value of the validation set is judged every 32 epochs. If the loss value does not decrease, the learning rate is reduced to half of the original value, and the predicted communication network traffic data is obtained through training; the predicted communication network traffic data at least includes communication traffic size data, communication traffic type data, and communication traffic distribution data.
步骤105、根据预测通信网络流量数据生成第一网络流量管理策略,基于第一网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理,得到目标通信网络流量数据;Step 105: Generate a first network traffic management strategy according to the predicted communication network traffic data, and based on the first network traffic management strategy, use the openflow protocol to configure and manage the communication network traffic on the wireless router flow table to obtain the target communication network traffic data;
具体的,本实施例中根据预测通信网络流量数据生成第一网络流量管理策略,第一网络流量管理策略至少包括流量优先级传输策略、流量整形策略、流量控制策略、流量隔离策略;通过openflow协议对底层网络进行通信获取网络设备信息并连接到网络设备,openflow协议允许SDN控制器通过远程方式控制SDN交换机;利用openflow协议对无线路由器流表进行通信网络流量的流表和计量表进行配置管理;基于openflow协议将第一网络流量管理策略发送到网络设备,配置网络设备数据库执行增加和删除命令,得到目标通信网络流量数据。Specifically, in this embodiment, a first network traffic management strategy is generated according to the predicted communication network traffic data, and the first network traffic management strategy at least includes a traffic priority transmission strategy, a traffic shaping strategy, a traffic control strategy, and a traffic isolation strategy; the underlying network is communicated with through the openflow protocol to obtain network device information and connect to the network device, and the openflow protocol allows the SDN controller to remotely control the SDN switch; the openflow protocol is used to configure and manage the flow table and metering table of the communication network traffic of the wireless router flow table; based on the openflow protocol, the first network traffic management strategy is sent to the network device, and the network device database is configured to execute add and delete commands to obtain the target communication network traffic data.
具体的,本实施例中第一网络流量管理策略包括QoS(服务质量)管理:QoS管理通过对网络流量进行分类和优先级划分,确保关键应用的数据传输质量。通过QoS策略,可以为不同的流量类型(如语音、视频、数据等)设置不同的优先级和带宽保障,从而优化网络性能,提升用户体验。流量整形与流量控制:流量整形是一种通过限制网络中流量的传输速率来平滑网络流量变化的策略。它有助于避免突发的高峰流量造成网络拥塞,确保网络稳定运行。流量控制则是根据网络负载水平设置流量阈值和限制,控制用户网络使用速率,以维护网络的稳定性和公平性。智能流量管理:通过行为识别技术,智能流量管理可以感知和分析用户的网络使用行为,从而进行个性化的带宽分配和流量管理。这种策略可以根据用户的需求和使用模式,提供有针对性的服务,提高网络资源的利用效率。安全管理与策略:网络安全是网络流量管理的重要方面。通过实施防火墙、入侵检测系统(IDS)和入侵防御系统(IPS)等安全策略,可以有效防范网络攻击和恶意流量,保护网络的安全和稳定。流量优化策略:流量优化策略包括压缩传输、缓存技术和内容分发网络(CDN)等。这些技术可以减少数据传输量,提高网络传输效率,加速网络数据的访问速度,从而提升用户体验。差异化服务策略:根据不同用户的需求和使用模式,提供差异化的服务,如家庭网优、流媒体加速等。这种策略有助于满足不同用户的个性化需求,提高用户满意度。流量隔离策略:在虚拟专用网络(VPN)等场景中,通过流量隔离策略将不同的流量隔离在不同的虚拟专用网络中,避免相互干扰,提高网络性能和安全性。Specifically, the first network traffic management strategy in this embodiment includes QoS (Quality of Service) management: QoS management ensures the data transmission quality of key applications by classifying and prioritizing network traffic. Through QoS strategies, different priorities and bandwidth guarantees can be set for different traffic types (such as voice, video, data, etc.), thereby optimizing network performance and improving user experience. Traffic shaping and traffic control: Traffic shaping is a strategy that smoothes network traffic changes by limiting the transmission rate of traffic in the network. It helps to avoid network congestion caused by sudden peak traffic and ensure stable network operation. Traffic control sets traffic thresholds and restrictions based on network load levels to control user network usage rates to maintain network stability and fairness. Intelligent traffic management: Through behavior recognition technology, intelligent traffic management can perceive and analyze users' network usage behaviors, thereby performing personalized bandwidth allocation and traffic management. This strategy can provide targeted services based on user needs and usage patterns, and improve the utilization efficiency of network resources. Security management and strategy: Network security is an important aspect of network traffic management. By implementing security strategies such as firewalls, intrusion detection systems (IDS) and intrusion prevention systems (IPS), network attacks and malicious traffic can be effectively prevented to protect the security and stability of the network. Traffic optimization strategy: Traffic optimization strategies include compression transmission, caching technology, and content distribution network (CDN). These technologies can reduce the amount of data transmission, improve network transmission efficiency, and accelerate the access speed of network data, thereby improving user experience. Differentiated service strategy: Provide differentiated services such as home network optimization and streaming media acceleration based on the needs and usage patterns of different users. This strategy helps to meet the personalized needs of different users and improve user satisfaction. Traffic isolation strategy: In scenarios such as virtual private networks (VPNs), different traffic is isolated in different virtual private networks through traffic isolation strategies to avoid mutual interference and improve network performance and security.
具体的,本实施例中openflow协议包括:网络控制器发起消息:网络控制器首先发起一个消息,将其流表更新消息发送给OpenFlow交换机。这个消息封装了从网络控制器发给OpenFlow交换机的所有信息,包括网络控制器中定义的规则以及所有其他消息,如更新和请求。Specifically, the openflow protocol in this embodiment includes: Network controller initiates a message: The network controller first initiates a message to send its flow table update message to the OpenFlow switch. This message encapsulates all information sent from the network controller to the OpenFlow switch, including the rules defined in the network controller and all other messages, such as updates and requests.
OpenFlow交换机存储流表信息:OpenFlow交换机接收到消息后,将其存入其内部的流表中。流表是由网络控制器设置的一组规则,它定义了OpenFlow交换机如何根据流量分析结果执行相应的动作。每个表项可能包括源IP地址、目的IP地址、协议类型,以及网络控制器中定义的要求行为,如转发流量到特定端口、限制流量速度等。OpenFlow switches store flow table information: After receiving a message, the OpenFlow switch stores it in its internal flow table. A flow table is a set of rules set by a network controller that defines how the OpenFlow switch performs corresponding actions based on the results of traffic analysis. Each table entry may include the source IP address, destination IP address, protocol type, and required behaviors defined in the network controller, such as forwarding traffic to a specific port, limiting traffic speed, etc.
OpenFlow交换机检测和分析流量:OpenFlow交换机检测网络中的流量,并根据存储的流表信息对其进行分析。交换机将数据包的源和目标地址与其流表进行匹配,以找到相应的转发规则。OpenFlow switches detect and analyze traffic: OpenFlow switches detect traffic in the network and analyze it based on stored flow table information. The switch matches the source and destination addresses of the data packet with its flow table to find the corresponding forwarding rules.
OpenFlow交换机执行动作:根据流量分析结果,OpenFlow交换机执行相应的动作,如转发流量到特定的设备或端口。如果交换机在流表中找到了匹配项,则执行相应的指令,例如转发或丢弃数据包等。如果交换机无法在流表中找到匹配项,它会向控制器发送一条消息以请求帮助,控制器可以对该消息做出回应并重新定义流表规则以满足需求。OpenFlow switch performs actions: Based on the traffic analysis results, the OpenFlow switch performs corresponding actions, such as forwarding traffic to a specific device or port. If the switch finds a match in the flow table, it executes the corresponding instructions, such as forwarding or discarding the packet. If the switch cannot find a match in the flow table, it sends a message to the controller for help. The controller can respond to the message and redefine the flow table rules to meet the needs.
步骤106、对目标通信网络流量数据进行监测,实时获取目标通信网络流量数据的数据变化范围,若数据变化范围大于设定的阈值,则生成第二网络流量管理策略。Step 106: Monitor the target communication network traffic data, and obtain the data change range of the target communication network traffic data in real time. If the data change range is greater than a set threshold, generate a second network traffic management strategy.
具体的,本实施例中对目标通信网络流量数据进行监测,每隔30秒获取目标通信网络流量数据的数据变化范围;若30秒内目标通信网络流量数据的数据变化范围小于20%,则记录目标通信网络流量数据;若30秒内目标通信网络流量数据的数据变化范围大于20%,则计算目标通信网络流量数据在60秒内的变化范围;若目标通信网络流量数据在60秒内的变化范围大于25%,则生成第二网络流量管理策略;基于第二网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理。Specifically, in this embodiment, the target communication network traffic data is monitored, and the data change range of the target communication network traffic data is obtained every 30 seconds; if the data change range of the target communication network traffic data within 30 seconds is less than 20%, the target communication network traffic data is recorded; if the data change range of the target communication network traffic data within 30 seconds is greater than 20%, the change range of the target communication network traffic data within 60 seconds is calculated; if the change range of the target communication network traffic data within 60 seconds is greater than 25%, a second network traffic management strategy is generated; based on the second network traffic management strategy, the openflow protocol is used to configure and manage the communication network traffic on the wireless router flow table.
其有益效果在于,首先能够实现对网络流量的动态管理和优化。可以根据实时的网络状况和业务需求,动态地调整流量管理策略,从而实现对网络流量的精准控制。可以通过对网络流量的实时监测和预测,发现网络拥堵和瓶颈的位置,然后通过调整路由、优化资源分配等方式,实现流量的均衡分布和高效传输。其次,它能够提升网络资源的利用效率。通过对网络流量数据的深入分析,基于人工智能的方法可以发现网络中的冗余和浪费资源,并通过优化资源配置,实现资源的合理利用和最大化利用。最后,它能够提高用户体验。通过精准地控制和管理网络流量,基于人工智能的方法可以确保关键业务的流畅运行,减少网络拥堵和延迟,从而提升用户的满意度和体验。Its beneficial effects are that, first of all, it can realize dynamic management and optimization of network traffic. According to the real-time network status and business needs, the traffic management strategy can be dynamically adjusted to achieve precise control of network traffic. Through real-time monitoring and prediction of network traffic, the location of network congestion and bottlenecks can be found, and then the balanced distribution and efficient transmission of traffic can be achieved by adjusting routes, optimizing resource allocation, etc. Secondly, it can improve the utilization efficiency of network resources. Through in-depth analysis of network traffic data, artificial intelligence-based methods can find redundant and wasted resources in the network, and realize the rational use and maximum utilization of resources by optimizing resource allocation. Finally, it can improve user experience. By accurately controlling and managing network traffic, artificial intelligence-based methods can ensure the smooth operation of key businesses, reduce network congestion and delays, and thus improve user satisfaction and experience.
本实施例中,请参阅图2,本发明实施例中一种基于人工智能的通信网络流量优化方法的第二个实施例,根据预测通信网络流量数据生成第一网络流量管理策略,基于第一网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理,得到目标通信网络流量数据包括以下步骤:In this embodiment, please refer to FIG. 2, a second embodiment of a communication network traffic optimization method based on artificial intelligence in an embodiment of the present invention generates a first network traffic management strategy according to predicted communication network traffic data, and based on the first network traffic management strategy, uses the openflow protocol to configure and manage the communication network traffic on the wireless router flow table, and obtains the target communication network traffic data, including the following steps:
步骤201、根据预测通信网络流量数据生成第一网络流量管理策略,第一网络流量管理策略至少包括流量优先级传输策略、流量整形策略、流量控制策略、流量隔离策略;Step 201: Generate a first network traffic management strategy based on predicted communication network traffic data, the first network traffic management strategy at least including a traffic priority transmission strategy, a traffic shaping strategy, a traffic control strategy, and a traffic isolation strategy;
步骤201、通过openflow协议对底层网络进行通信获取网络设备信息并连接到网络设备,openflow协议允许SDN控制器通过远程方式控制SDN交换机;Step 201: Communicate with the underlying network through the openflow protocol to obtain network device information and connect to the network device. The openflow protocol allows the SDN controller to control the SDN switch remotely.
步骤201、利用openflow协议对无线路由器流表进行通信网络流量的流表和计量表进行配置管理;Step 201: Use the openflow protocol to configure and manage the flow table and metering table of the wireless router flow table for communication network traffic;
步骤201、基于openflow协议将第一网络流量管理策略发送到网络设备,配置网络设备数据库执行增加和删除命令,得到目标通信网络流量数据。Step 201: Send a first network traffic management policy to a network device based on the openflow protocol, configure a network device database to execute add and delete commands, and obtain target communication network traffic data.
本实施例中,请参阅图3,本发明实施例中一种基于人工智能的通信网络流量优化方法的第三个实施例,对目标通信网络流量数据进行监测,实时获取目标通信网络流量数据的数据变化范围,若数据变化范围大于设定的阈值,则生成第二网络流量管理策略包括以下步骤:In this embodiment, please refer to FIG. 3, a third embodiment of a communication network traffic optimization method based on artificial intelligence in an embodiment of the present invention monitors the target communication network traffic data, obtains the data change range of the target communication network traffic data in real time, and if the data change range is greater than the set threshold, generates a second network traffic management strategy including the following steps:
步骤301、对目标通信网络流量数据进行监测,每隔30秒获取目标通信网络流量数据的数据变化范围;Step 301: Monitor the target communication network traffic data and obtain the data change range of the target communication network traffic data every 30 seconds;
步骤302、若30秒内目标通信网络流量数据的数据变化范围小于20%,则记录目标通信网络流量数据;Step 302: If the data variation range of the target communication network flow data is less than 20% within 30 seconds, the target communication network flow data is recorded;
步骤303、若30秒内目标通信网络流量数据的数据变化范围大于20%,则计算目标通信网络流量数据在60秒内的变化范围;Step 303: If the data variation range of the target communication network flow data within 30 seconds is greater than 20%, then the variation range of the target communication network flow data within 60 seconds is calculated;
步骤304、若目标通信网络流量数据在60秒内的变化范围大于25%,则生成第二网络流量管理策略;Step 304: If the change range of the target communication network traffic data within 60 seconds is greater than 25%, a second network traffic management strategy is generated;
步骤305、基于第二网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理。Step 305: Based on the second network traffic management strategy, the openflow protocol is used to configure and manage the communication network traffic on the wireless router flow table.
上面对本发明实施例提供的一种基于人工智能的通信网络流量优化方法进行了描述,下面对本发明实施例的一种基于人工智能的通信网络流量优化系统进行描述,请参阅图4,本发明实施例中通信网络流量优化系统一个实施例包括:A communication network traffic optimization method based on artificial intelligence provided by an embodiment of the present invention is described above. A communication network traffic optimization system based on artificial intelligence according to an embodiment of the present invention is described below. Please refer to FIG. 4. An embodiment of the communication network traffic optimization system according to an embodiment of the present invention includes:
流量数据获取模块,用于获取系统中的历史通信网络流量数据,对历史通信网络流量数据进行数据预处理,得到训练通信网络流量数据集;A traffic data acquisition module is used to acquire historical communication network traffic data in the system, perform data preprocessing on the historical communication network traffic data, and obtain a training communication network traffic data set;
预测模型建立模块,用于将GRU双通道门控循环单元和GNN图神经网络进行组合建立GRU-GNN通信网络流量预测模型,得到初始GRU-GNN通信网络流量预测模型;A prediction model building module is used to combine the GRU dual-channel gated recurrent unit and the GNN graph neural network to establish a GRU-GNN communication network traffic prediction model, and obtain an initial GRU-GNN communication network traffic prediction model;
预测模型优化模块,用于将初始GRU-GNN通信网络流量预测模型和Self-Attention自注意力机制进行结合,得到目标GRU-GNN通信网络流量预测模型;The prediction model optimization module is used to combine the initial GRU-GNN communication network traffic prediction model with the Self-Attention mechanism to obtain the target GRU-GNN communication network traffic prediction model;
通信流量预测模型,用于获取系统中的训练通信网络流量数据集,将训练通信网络流量数据集输入至目标GRU-GNN通信网络流量预测模型中进行预测,得到预测通信网络流量数据;The communication traffic prediction model is used to obtain a training communication network traffic data set in the system, input the training communication network traffic data set into a target GRU-GNN communication network traffic prediction model for prediction, and obtain predicted communication network traffic data;
通信流量管理模块,用于根据预测通信网络流量数据生成第一网络流量管理策略,基于第一网络流量管理策略,利用openflow协议对无线路由器流表进行通信网络流量的配置管理,得到目标通信网络流量数据;A communication traffic management module is used to generate a first network traffic management strategy according to the predicted communication network traffic data, and based on the first network traffic management strategy, use the openflow protocol to configure and manage the communication network traffic on the wireless router flow table to obtain the target communication network traffic data;
通信流量优化模块,用于对目标通信网络流量数据进行监测,实时获取目标通信网络流量数据的数据变化范围,若数据变化范围大于设定的阈值,则生成第二网络流量管理策略。The communication traffic optimization module is used to monitor the target communication network traffic data and obtain the data change range of the target communication network traffic data in real time. If the data change range is greater than a set threshold, a second network traffic management strategy is generated.
以上显示和描述了本发明的基本原理、主要特征和本发明的优点。本行业的技术人员应所述了解,本发明不受上述实施例的限制,上述实施例和说明书中描述的仅为本发明的优选例,并不用来限制本发明,在不脱离本发明精神和范围的前提下,本发明还会有各种变和改进,这些变和改进都落入要求保护的本发明范围内。本发明要求保护范围由所附的权利要求书及其等效物界定。The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410375660.1A CN118118420A (en) | 2024-03-29 | 2024-03-29 | Communication network flow optimization method and system based on artificial intelligence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410375660.1A CN118118420A (en) | 2024-03-29 | 2024-03-29 | Communication network flow optimization method and system based on artificial intelligence |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118118420A true CN118118420A (en) | 2024-05-31 |
Family
ID=91214156
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410375660.1A Pending CN118118420A (en) | 2024-03-29 | 2024-03-29 | Communication network flow optimization method and system based on artificial intelligence |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118118420A (en) |
-
2024
- 2024-03-29 CN CN202410375660.1A patent/CN118118420A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10044741B2 (en) | Information reporting for anomaly detection | |
US10320824B2 (en) | Anomaly detection using network traffic data | |
Petrangeli et al. | QoE-driven rate adaptation heuristic for fair adaptive video streaming | |
US10757121B2 (en) | Distributed anomaly detection management | |
US9929949B2 (en) | Systems and methods for inferring network topology and path metrics in wide area networks | |
US7269157B2 (en) | System and method to assure network service levels with intelligent routing | |
Sivaraman et al. | An experimental study of the learnability of congestion control | |
CN114465962B (en) | Data stream type identification method and related equipment | |
US20170279685A1 (en) | Adjusting anomaly detection operations based on network resources | |
JP7743629B2 (en) | Method, device and readable storage medium for analyzing model transmission status in a subscription network | |
Zhu et al. | Centralized QoS routing using network calculus for SDN-based streaming media networks | |
WO2020079986A1 (en) | Estimating device, system, method, and computer-readable medium, and learning device, method, and computer-readable medium | |
CN113328953A (en) | Method, device and storage medium for network congestion adjustment | |
Huang et al. | Machine learning for broad-sensed internet congestion control and avoidance: A comprehensive survey | |
Tong et al. | SDN-based application-aware segment routing for large-scale network | |
Reis et al. | An unsupervised approach to infer quality of service for large-scale wireless networking | |
Houidi et al. | Multi-agent graph convolutional reinforcement learning for intelligent load balancing | |
KR20220029142A (en) | Sdn controller server and method for analysing sdn based network traffic usage thereof | |
Osman et al. | A Novel Network Optimization Framework Based on Software-Defined Networking (SDN) and Deep Learning (DL) Approach | |
Qin et al. | Edge computing aided congestion control using neuro-dynamic programming in NDN | |
EP4371325A1 (en) | Detecting anomalous behaviour in an edge communication network | |
CN118118420A (en) | Communication network flow optimization method and system based on artificial intelligence | |
Kattepur et al. | Automated Configuration of Router Port Queues via Model-Based Reinforcement Learning | |
Kołakowski et al. | Hierarchical Deep Reinforcement Learning-Based Load Balancing Algorithm for Multi-Domain Software-Defined Networks | |
Villalba et al. | Analysis of MP4 videos in 5G using SDN |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |