Research work of dynamic routing based on traffic engineering is investigated firstly and a new routing algorithm with bandwidth guaranteed is introduced for MPLS networks. It is characterized by taking into account network topology, traffic distribution condition and available bandwidth of links. In this algorithm traffic engineering objective can be translated into path constraint, which combines link saturation and link criticality. Simulation results show that the proposed algorithm is prior to some traditional methods in optimizing network resource distribution.