The embodiment of the present application belongs to the field of
network communication technology, and relates to a load balancing method based on an MPLS-VPN network, including: obtaining the routing strategy of the
forwarding equivalence class of each MPLS-VPN network; determining the candidate path of each
forwarding equivalence class in the MPLS network, and obtaining the transit nodes involved in each candidate path; taking the transit node as a backpack, the node bandwidth as the backpack capacity, the candidate path as the item, and the forwarding bandwidth of the candidate path as the item weight, pre-allocating the items based on the routing strategy and the backpack
algorithm, and calculating the total value of each item in the backpack to obtain a
dynamic planning table, and the total value is obtained according to the load balancing evaluation value and the
service quality evaluation value; determining the reserved path of each transit node according to the
dynamic planning table, and then determining the forwarding path of each
forwarding equivalence class; obtaining the data packet associated with the MPLS-VPN network, and forwarding the data packet according to the forwarding path of the forwarding equivalence class to which the data packet belongs. The present application realizes load balancing in an MPLS-VPN network.