The invention discloses a method for customizing a
multicast path, comprising the following steps: S1, establishing an initial first-level
routing table item and an initial second-level
routing table item; S2, establishing an initial first-level
routing table item and an initial second-level routing table item Carry out customization, improve the
mask in the table item, and obtain the customized
multicast reverse path information table; S3, search for the customized first-level routing table item, and match to obtain the corresponding
unicast address; S4, search for the customized second-level routing table item, and match Obtain the corresponding
multicast group address; S5. According to the multicast group address, determine the reverse routing RPF neighbor and RPF interface of the multicast traffic, and realize the customization of the multicast forwarding path based on the multicast sender and the multicast service; the present invention solves the problem of The RPF information in the prior art actually uses common
unicast routing information. For the same multicast source or RP, the multicast paths of different multicast traffic are the same, and there is no problem of optimizing the multicast path.