Patent attributes
An apparatus and method for policy routing is provided. The method includes: A. configuring a policy routing to a label switching path and obtaining and saving forwarding information; and B. performing packet forwarding based on the forwarding information. The apparatus includes: a label switching path managing unit, for saving first forwarding information of the label switching path; a route managing unit, for saving second forwarding information of the label switching path; a configuring unit, for transmitting configuration parameters to the label switching path managing unit, and obtaining the first and/or second forwarding information of the label switching path from the label switching path managing unit and/or route managing unit; a forwarding information maintenance unit, for maintaining the first and second forwarding information of the label switching path saved in a node of policy; and a packet forwarding unit, together with the forwarding information maintenance unit, for forwarding the packet, which solves the problem that the prior art couldn't well support strategic route for a MPLS packet.