Dynamic ECMP implementation method based on network chips

The invention discloses a dynamic ECMP implementation method based on network chips. The method includes the steps that firstly, a routing table is looked up according to a destination IP of a message, and next-hop exit information is acquired as an ECMP set; secondly, whether dynamic ECMP information is acquired in the ECMP set or not is judged; if no dynamic ECMP information is enabled in the ECMP set, the message is forwarded through a static ECMP link determined by the message Hash value, if the dynamic ECMP information is enabled in the ECMP set, a dynamic ECMP flow table is looked up, and the message is automatically routed and forwarded according to information in the dynamic ECMP flow table and a load trigger chip of the ECMP link. A network switch can automatically conduct routing operation according to the state of data flow and the load timely trigger chip of the ECMP link, one link with the lightest load in ECMP members is selected each time, the link load balanced effect is achieved, the situation that delay and even packet loss are caused due to too heavy loads of a certain link and bandwidth waste caused by unbalanced link loads is avoided, implementation is simple, system cost is low, and the network bandwidth utilization rate can be greatly increased.