This application discloses a method for transmitting traffic-guiding routing information. The method is applied to a cleaning apparatus in a multi-protocol
label switching virtual
private network (
MPLS VPN) so as to solve the problem of incapability of effectively defending
attack traffic in a multi-protocol
label switching virtual
private network (
MPLS VPN) scene existing in an existing traffic cleaning scheme. The method includes the following steps that: the cleaning apparatus generates traffic-guiding routing information, wherein the traffic-guiding routing information carries an autonomous
system (AS) number and the
IP address of a protected node, wherein the autonomous
system (AS) number is an autonomous
system (AS) number of a first custom edge (CE)
router connected with a network section to which the protected node belongs; and the cleaning apparatus transmits the traffic-guiding routing information to the first custom edge (CE)
router and a second custom edge (CE)
router, and therefore, the first custom edge (CE) router can be made to discard the traffic-guiding routing information according to the autonomous system (AS) number and an external
border gateway protocol (EBGP) loop-prevention mechanism, and the second custom edge (CE) router can be made to save the traffic-guiding routing information according to the autonomous system (AS) number and the external
border gateway protocol (EBGP) loop-prevention mechanism. The invention also discloses a cleaning apparatus.