主权项 |
1. A verifying method for consistency of forwarding behaviors of router data based on action codes, comprising following steps of:
S1, determining related functions for a plurality of functional modules of a router; S2, configuring action codes for the plurality of function modules of the router, each functional module sending configured action code to control layer after executing the related function; S3, configuring condition codes for the plurality of functional modules of the router; S4, combining parts or all of the functional modules according to a preset combination way; S5, constructing a Trie tree, nodes of the Trie tree storing the action codes of the functional modules; S6, detecting whether there is abnormal forwarding behavior in forwarding process of received data packet according to the Trie tree and the received data packet. |