Method and device for realizing multicasting flow load sharing based on equal-cost multi-path (ECMP) routing

The invention discloses a method for realizing multicasting flow load sharing based on equal-cost multi-path (ECMP), comprising the following steps: when an ECMP fails, calculating the acquired ECMP identifications of a current ECMP routing table, wherein the current ECMP routing table comprises a current ECMP; according to the ECMP identification in the current ECMP table and the mapping relationship between a current ECMP table and a global ECMP table which are synchronized, determining to replace the ECMP, wherein the global ECMP table is the current ECMP table when a system initializes; and transferring the multicasting flow of the failure ECMP routing to the replaced ECMP. The invention also provides a corresponding device. By using the method and the device for realizing the multicasting flow load sharing based on the ECMP, the multicast service oscillation can be avoided when the ECMP between devices is out of order.