The invention relates to the technical field of
network routing, and provides a real-time
traffic analysis method and
system for
network routing, and the method comprises the steps: obtaining a
network data packet of the
network routing, carrying out the data preprocessing, generating a traffic event atlas, generating a dynamic
threat score, carrying out the
feature extraction of the traffic event atlas, and generating a behavior
abnormality matrix; analyzing the abnormal behavior matrix and the dynamic
threat score, generating an initial network routing strategy, and analyzing the initial network routing strategy to obtain
network performance and security evaluation indexes; and adjusting the network routing based on the evaluation index to obtain an adjustment strategy, carrying out iterative optimization on the adjustment strategy to obtain a target network routing strategy, and carrying out forwarding
processing on the
network data packet based on the target network routing strategy to obtain a real-time flow analysis result of the network routing. Through the above scheme, real-time, dynamic and accurate analysis of the network traffic is realized, and the problems of low detection precision,
slow response speed and lack of real-time adjustment capability in a highly dynamic and
complex network environment are improved.