The invention provides a method and a
system for detecting data exception in a
border gateway protocol, and a storage medium. The method comprises the following steps: extracting features from to-be-detected data in the
border gateway protocol; generating a to-be-detected
time sequence and behavior information of a plurality of autonomous systems according to the features; selecting a suspicious autonomous
system from a plurality of autonomous systems according to the behavior information; obtaining a historical
time sequence set, and querying similar historical time sequences in the historical
time sequence set; inputting a to-be-measured time sequence into the time
sequence prediction model, and calculating a residual error between a predicted time sequence and an actual time sequence; inputting the to-be-detected time sequence into the
anomaly detection model, and outputting an abnormal state of the to-be-detected time sequence by the
anomaly detection model; integrating the to-be-detected time sequence, the suspicious autonomous
system, the similar historical time sequence, the residual error and the abnormal state into a prompt, inputting the prompt into a reasoning model, and generating a comprehensive detection result and a reasoning process expressed by a
natural language by the reasoning model. The accuracy of a detection result is improved.