This paper presents a method for minimizing failures in all-optical networks by employing routing and wavelength assignment (RWA) techniques that maintain network performance criteria. The proposed Minimum Reconfiguration Probability Routing (MRPR) algorithm utilizes Kalman filter techniques to predict network states and optimize light path routing while considering the reliability of routes. The findings suggest that this approach effectively reduces blocking probability and enhances management of dynamic traffic demands in wavelength routing networks.