Disclosed in the present invention is an SDN-architecture-based routing method for guaranteeing network QoS. The method comprises: on the basis of
network topology information, performing abstraction to obtain a
directed graph; then, on the basis of an improved K-means
algorithm, dividing data into mouse flows, elephant flows and mammoth flows; defining a traffic transmission constraint condition; constructing a DQN neural network; training the DQN neural network by using the maximum Q value, which corresponds to an action a having the maximum reward function R, as an objective, so as to obtain a QoS guarantee
routing model; obtaining an optimal path
weight value; determining a data packet sending path on the basis a Dijkstra
algorithm; and finally issuing path information to a switch. The present invention avoids the situations in which
data processing performed by using a conventional K-means
algorithm is not stable enough and a
classification result is not accurate enough. During the training of a DQN neural network, data is extracted from an experience
pool according to the priority of data, such that the neural network pays more attention to important data, thereby improving the learning efficiency of the neural network and the performance of the algorithm.