To solve the optical network congestion caused by load imbalance, this paper proposes a load balance based routing and wavelength assignment algorithm. According to network topology features and characteristics of the task request arrives, combining with the most used and least used wavelength assignment algorithm, the algorithm calculates routing and assigns wavelengths. The simulation results show that the algorithm can reduce the network blocking probability, achieve load balance and improve utilization ratio of resources effectively.