The invention discloses a
processing method and
system for real-time sensing of a network anomaly message of a power switch. The method comprises the steps that a CPU configures an APPID needing to be recognized by an FPGA to the FPGA; the FPGA receives the message of each port of the switch, forwards the message to the switch
chip, and forwards the message sent by the switch
chip to each port at the same time; caching and analyzing the message received by each port by using a message caching
branch and a message analysis
branch; and sending the message with the abnormal information to the CPU, and sending a cache message corresponding to the abnormal information in the DDR to the CPU for storage and alarm. According to the method, the
panorama of the fault message can be recorded in a targeted manner, the abnormal message brief report is clear and visual, the fault message
record is comprehensive and detailed, and
accident analysis can be greatly facilitated.