摘要 |
<p>A method and device for preventing ring network protocol messages from attacking the CPU of a device are disclosed, and solve the problems that the normal operation of a ring network is affected and ring network protocol is abnormal when the ring network protocol messages are prevented from attacking the CPU of the device in the prior art. The method includes: when a device detects that the number of messages processed by itself is exceeding, generating a random value for generating a ring network protocol eigenvalue and sending the random value to each device in the ring network, so that the hardware of each device detects the received messages by using the new generated eigenvalue, and sending the messages to the CPU for processing when the messages is not attacking messages. In the embodiments of the present invention, when the ring network protocol messages processed by itself are exceeding, the ring network protocol eigenvalue of each device in the ring network is updated, thus filtering the attacking messages in time, and effectively preventing the ring network protocol messages from attacking the CPU of the device by hardware judgment.</p> |