A Traffic Matrix Modeling Method Supporting Deterministic Applications
By optimizing parameters through the ON/OFF model and LSTM neural network, the problem of low accuracy in fitting deterministic traffic with existing technology is solved, and more accurate traffic matrix prediction is achieved, especially for the time correlation characteristics of deterministic traffic. of capture.
Patent Information
- Application Number
- CN202111424649.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-11-26
AI Technical Summary
Existing flow matrix modeling methods have low fitting accuracy for deterministic flow and cannot effectively capture the irregular periodic characteristics of small-amplitude changes.
The ON/OFF model is used to remove the heavy-tail distribution effect of traditional network traffic, a cold start matrix is generated through a statistical model, and the LSTM neural network is used to combine regression models and reinforcement learning algorithms to optimize model parameters to improve the prediction accuracy of the traffic matrix.
It significantly improves the fitting accuracy of deterministic flow, can better capture its time correlation characteristics, and provides more accurate flow matrix prediction.
Smart Images

Figure CN114254734B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data communication networks, and in particular to a traffic matrix modeling method supporting deterministic applications. Background Art
[0002] Network operators need to understand the status of traffic passing through network nodes in order to make better management decisions. Traffic is usually described by a traffic matrix, which expresses the traffic transmitted between each pair of entry points and exit points in the network. Each element in the matrix is usually called a source-destination (OD) pair of traffic. Most network engineering tasks require a traffic matrix as input, such as fault management, resource allocation, traffic engineering, routing policy design, and load balancing. Although the current existing network measurement technology supports the direct measurement of the traffic matrix, the network overhead is extremely large and does not support the generation of large-scale traffic matrices. Therefore, the present invention still uses the link load measured by the SNMP protocol as the main input data, and uses the measured matrix as an auxiliary means to improve the accuracy of the fitting.
[0003] At present, the more mainstream traffic matrix modeling is based on gravity model fitting, which takes information such as link load as input, and fits the matrix using the idea of statistical model by associating the in-and-out degree information of each node and the establishment of friction coefficient. There are also ARIMA fitting methods, which take the measured real matrix as input, determine the parameters of AR and MA models by inputting cold start data, and fit the matrix using the idea of regression model. The matrices fitted by the above methods can better meet the overall distribution characteristics of traditional Internet traffic, because the model mainly targets the characteristics of self-similarity, heavy-tail distribution and long-distance dependence of traditional Internet traffic. However, deterministic traffic: such as communication data and remote industrial control traffic are not exactly the same as traditional Internet traffic characteristics, and their irregular periodicity of small changes makes the time correlation of deterministic flow particularly obvious. Therefore, the existing modeling methods are not very accurate in fitting deterministic traffic. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a flow matrix modeling method supporting deterministic applications, thereby overcoming the shortcoming of existing modeling methods that the fitting accuracy of deterministic flows is not high.
[0005] In order to solve the above technical problems, the present invention provides a traffic matrix modeling method supporting deterministic applications, comprising the following steps:
[0006] Step 1: Measure the traffic data of the communication network and establish a network topology model; build a database to generate consistent information such as traffic matrix, link load information, and routing configuration.
[0007] Step 2: Use the ON / OFF model to define conversion parameters that conform to the exponential distribution by measuring the continuous sending time of traffic, and determine the start and end time of traffic sending to remove the heavy-tailed distribution effect of traditional network traffic reflected in the initial model fitting.
[0008] Step 3: Use the statistical model to generate a cold start matrix as the data of traffic slow start, which is not used to consider the tail characteristics of traffic.
[0009] Step 4: Take the cold start matrix sequence generated in step 3 as input and determine the initial parameters of the regression model based on the classification and characteristics of the deterministic flow.
[0010] Step 5: Based on the initial model determined in step 4, the generated matrix sequence is input into the LSTM neural network and then activated by the softmin function. Specifically, the LSTM is used to calculate and output the predicted traffic matrix at the next moment.
[0011] Step 6: Optimize the model parameters based on the training results of step 5. Specifically, optimize the parameters in the model by defining the root mean square error between the true value and the estimated value.
[0012] Preferably, step 2 includes the following sub-steps:
[0013] Step 2-1: Determine the sending of traffic by defining the conversion intensity W and the call intensity Q. The conversion intensity and the call intensity determine the time distribution probability P of each traffic;
[0014] Step 2-2: Measure the duration of each flow to obtain the time distribution ratio R, calculate the mean of the call intensity, and finally determine the conversion parameters; remove the heavy-tail distribution effect of traditional network traffic reflected in the initial model fitting through the ON / OFF mechanism.
[0015] Preferably, step 3 includes the following sub-steps:
[0016] Step 3-1: Calculate the traffic volume entering and leaving each node based on the link load information;
[0017] Step 3-2: Generate the initial estimated traffic matrix through the in-and-out degrees of the nodes. This matrix is only used as data for slow start of traffic and is not used to consider the tail characteristics of traffic.
[0018] Preferably, step 4 includes the following sub-steps:
[0019] Step 4-1: Generate a traffic matrix sequence with time correlation according to link load data at multiple moments;
[0020] Step 4-2: Transform the generated traffic matrix sequence to ensure the smoothness of the matrix in time;
[0021] Step 4-3: Use the transformed matrix as input and determine the parameters to obtain the initial model.
[0022] Preferably, step 5 includes the following sub-steps:
[0023] Step 5-1: Divide the test set and training set according to the matrix generated in the above steps for training the LSTM network.
[0024] Step 5-2: Determine the LSTM network parameters and estimate the matrix at the next moment.
[0025] Preferably, step 6 includes the following sub-steps:
[0026] Step 6-1: If Figure 1 As shown, the reinforcement learning parameters are set according to the LSTM network layer provided in step 5.
[0027] Step 6-2: Define the reward function and optimize the parameters in the model.
[0028] This method pays more attention to the time correlation of deterministic flow in the setting of reward function, effectively distinguishes the characteristics of deterministic flow and best-effort flow, and the modeling method is more in line with the overall distribution characteristics of deterministic flow. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0030] Figure 1 This is the structure diagram of the LSTM-based reinforcement learning algorithm.
[0031] Figure 2 Flowchart of the traffic matrix modeling approach supporting deterministic applications. DETAILED DESCRIPTION
[0032] The present invention provides a traffic matrix modeling method supporting deterministic applications. The method comprises the following steps:
[0033] Step 1: Measure the traffic data of the communication network and establish a network topology model. Build a database to generate consistent information such as traffic matrix, link load information, and routing configuration.
[0034] Step 1 includes the following sub-steps:
[0035] Step 1-1: Collect data from the communication network, including network topology, current routing configuration, link load measured by SNMP protocol, and directly measured data packet information. The data is measured every 10 minutes for 24 hours, with a total of 144 sets of data. The topology information is represented by an undirected graph G = (V, E), where V represents the set of nodes and |V| = N; E represents the set of links and |E| = L;
[0036] Step 1-2: Preprocess the data information, remove unnecessary data, parse the data to obtain the point-to-point traffic demand between all nodes in the topology at each time, and generate a total of 144 traffic matrices. The traffic matrix at time t is represented by x t , a two-dimensional array of size N*N, whose rows correspond to the receiving nodes of the traffic, and columns correspond to the sending nodes of the traffic. The value of each element represents the traffic demand size sent between the corresponding OD pairs. X=x1+x2+x3+…+x n represents the set of traffic matrices;
[0037] Step 1-3: Parse the routing configuration information and obtain the corresponding routing matrix A, whose size is L*N 2 A is a two-dimensional array. A is a zero-one matrix, whose rows correspond to directed links and columns correspond to OD pairs. The value of each element indicates whether the link is on the path that the OD pair needs to pass through. If so, it is 1, otherwise it is 0;
[0038] Step 1-4: Parse SNMP measurement data to obtain link load information at time t, represented by y t , a vector of length L, the value of each element represents the load size on the current link. Y = y1 + y2 + y3 + ... + y n represents the set of link loads. The traffic matrix X, routing matrix A, and link load Y are consistent and can be represented by the following highly under-constrained ill-posed linear equation, where m represents the possible noise.
[0039] Y=AX+m.
[0040] Step 2: Use the ON / OFF model to define the conversion parameters that conform to the exponential distribution by measuring the continuous sending time of the traffic, and determine the start and end time of the traffic sending to remove the heavy-tail distribution effect of traditional network traffic reflected in the initial model fitting. It includes the following sub-steps:
[0041] Step 2-1: Define the start and end time of each flow by defining the conversion intensity W and the call intensity Q. The conversion intensity and the call intensity determine the time distribution probability P of each flow.
[0042]
[0043] The time distribution probability of traffic can be expressed as It means that it depends on the duration t of each observed flow. i ;
[0044] Step 2-2: Measure the duration t of each flow rate i , we can get its time distribution ratio The mean values of call strength are as follows:
[0045]
[0046] ev(λ)=R1λ1+R2λ2+R3λ3+…+R n λ n
[0047] The conversion parameters are determined by measuring the duration of traffic flow. The heavy-tail distribution effect of traditional network traffic reflected in the initial model fitting is removed through the ON / OFF mechanism.
[0048] Step 3: Use the statistical model to generate a cold start matrix as the data for slow start of traffic, which is not used to consider the tail characteristics of traffic. It includes the following sub-steps:
[0049] Step 3-1: Based on the link load information, calculate the traffic volume entering and leaving each node. Specifically, based on the link load y at time t, t The current traffic status of the entire network topology can be obtained, and the traffic flowing into each node i can be calculated. and the flow out of each node j The final matrix T is as follows, with a size of 2*N, where the columns represent inflow or outflow, and the rows represent each node;
[0050]
[0051] Step 3-2: Generate the initial estimated traffic matrix through the in-and-out degrees of the nodes, which is only used as data for slow start of traffic and is not used to consider the tail characteristics of traffic. Specifically, it includes: Generate the initial estimated traffic matrix x through the in-and-out degrees of the nodes, with a size of N*N, where the columns represent the nodes sending traffic and the rows represent the nodes receiving traffic:
[0052]
[0053] The value of each element x represents the traffic demand between the corresponding OD pair, and the value is determined by the following formula: They represent the total flow of all nodes into and out of the network respectively.
[0054]
[0055] Step 4: Take the cold start matrix sequence generated in step 3 as input and determine the initial parameters of the regression model based on the classification and characteristics of the deterministic flow. It includes the following sub-steps:
[0056] Step 4-1: Generate a flow matrix sequence with time correlation according to the link load data at multiple times; specifically, including: according to the method provided in step 3, process the collected link load and other information at multiple times, generate flow matrices at different times, and finally obtain a flow matrix sequence with time correlation;
[0057] X=x1+x2+x3+…+x t
[0058] Step 4-2: Based on the characteristics of deterministic traffic, the matrix is logarithmically transformed according to the following formula to further reflect the smoothness in time and improve the accuracy of model estimation;
[0059] v t =ln x t
[0060] Step 4-3: Use the transformed matrix as input and determine the parameters to obtain the initial model. Specifically, the following steps are included: Apply the idea of linear regression and estimate the traffic matrix at the next moment according to the following formula:
[0061]
[0062] In order to further distinguish the current best-effort traditional Internet traffic, aiming at the stability of deterministic traffic and reflecting different classifications of deterministic traffic, the following parameter restrictions are added: where ε t =v t z t , z t The normal distribution satisfies the following conditions: E(z t )=0,Var(z t )=1.
[0063]
[0064] Step 5: Based on the initial model determined in step 4, the generated matrix sequence is input into the LSTM neural network and then activated by the softmin function. Step 5 includes the following sub-steps:
[0065] Step 5-1: The estimated traffic matrix sequence generated by the initial model provided in step 4 is used as the training set, and the measured real matrix sequence provided in step 1 is used as the test set for training the LSTM network;
[0066] Step 5-2: Determine the LSTM network parameters and estimate the matrix at the next moment. Specifically, it includes: determining the number of input layer units m, the number of output layer units n, the number of hidden layer units l and their parameters in the LSTM network. Set the network input to m variables per batch as the matrix history information, n variables as the output traffic matrix, and the number of units in the hidden layer is determined by multiple trial experiments of inputting the measured matrix. It is initially decided to set m=10 and n=1, that is, to predict the traffic matrix at the next moment in the future through the traffic data of each batch of 10 moments.
[0067] Step 6: Optimize the model parameters based on the training results of step 5. Specifically, optimize the parameters in the model by defining the root mean square error between the true value and the estimated value. It includes the following sub-steps:
[0068] Step 6-1: Set the reinforcement learning parameters according to the LSTM network layer provided in step 5. Specifically include: Figure 1 As shown in the figure, the environment is the underlying topology and the link load, routing configuration and other information it contains. The state is the traffic matrix sequence estimated by the model. The environment provides the state to the LSTM layer. The LSTM layer estimates the traffic matrix at the next moment as the output according to step 5, and feeds back to the network layer and the underlying interaction environment through the reward function.
[0069] Step 6-2: Define the reward function and optimize the parameters in the model. Specifically, the root mean square error between the estimated value and the true value is used in the model training process, and the gap between the two distributions is minimized as the reward function. The general expression is as follows:
[0070]
[0071] where x t represents the true value of the matrix, Represents the estimated value of the matrix. The parameters of the model are optimized through the feedback of the reward function.
[0072] Finally, it should be noted that the above specific implementation methods are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. A traffic matrix modeling method supporting deterministic applications, characterized in that: The following steps are involved: Step 1: Measure the traffic data of the communication network and establish a network topology model; build a database to generate consistent information, including traffic matrix, link load information, and routing configuration information; Step 2: Use the ON / OFF model to define the conversion parameters that conform to the exponential distribution by measuring the continuous sending time of the traffic, and determine the start and end time of traffic sending; Step 3: Use the statistical model to generate a cold start matrix as the data of traffic slow start; Step 4: Take the cold start matrix sequence generated in step 3 as input and determine the initial parameters of the regression model according to the classification and characteristics of the deterministic flow; Step 5: Based on the initial regression model determined in step 4, the generated matrix sequence is input into the LSTM neural network and then activated by the softmin function; Step 6: Optimize the model parameters based on the training results of step 5. Specifically, optimize the parameters in the model by defining the root mean square error between the true value and the estimated value.
2. The traffic matrix modeling method supporting deterministic applications according to claim 1, characterized in that: The step 2 includes the following sub-steps: Step 2-1: Determine the sending of traffic by defining the conversion intensity W and the call intensity Q. The conversion intensity and the call intensity determine the time distribution probability P of each traffic; Step 2-2: Measure the duration of each flow to obtain the time distribution ratio R, calculate the mean of the call intensity, and finally determine the conversion parameters; remove the heavy-tail distribution effect of traditional network traffic reflected in the initial model fitting through the ON / OFF mechanism.
3. The traffic matrix modeling method supporting deterministic applications according to claim 2, characterized in that: The step 3 includes the following sub-steps: Step 3-1: Calculate the traffic volume entering and leaving each node based on the link load information; Step 3-2: Generate the initial estimated traffic matrix through the in-and-out degrees of the nodes. This matrix is only used as data for slow start of traffic and is not used to consider the tail characteristics of traffic.
4. The traffic matrix modeling method supporting deterministic applications according to claim 3 is characterized in that: The step 4 includes the following sub-steps: Step 4-1: Generate a traffic matrix sequence with time correlation according to link load data at multiple moments; Step 4-2: Transform the generated traffic matrix sequence to ensure the smoothness of the matrix in time; Step 4-3: Use the transformed matrix as input and determine the parameters to obtain the initial model.
5. The traffic matrix modeling method supporting deterministic applications according to claim 4, characterized in that: The step 5 comprises the following sub-steps: Step 5-1: Divide the test set and training set according to the matrix generated in the above steps for training the LSTM network; Step 5-2: Determine the LSTM network parameters and estimate the matrix at the next moment.
6. The traffic matrix modeling method supporting deterministic applications according to claim 5, characterized in that: The step 6 comprises the following sub-steps: Step 6-1: Set the reinforcement learning parameters according to the LSTM network layer provided in step 5; Step 6-2: Define the reward function and optimize the parameters in the model.
