This paper mainly studies on the route selection for the dynamic traffic grooming in Wavelength Division Multiplexing(WDM) optical networks and proposes a topology-integration-based dynamic traffic grooming algorithm.Its most important feature is merging physical topology and virtual topology and using the minimum-weight preferred method for route selection.Simulation results show that this algorithm improves resource utilization and reduces congestion rate without increasing link-setup delay