The paper presents a new wavelength assignment scheme based on path length to minimize average dispersion in optical networks, enhancing service quality while controlling costs. It compares this method to traditional first fit wavelength assignment (FFWA) and demonstrates through simulations that the proposed path length-based approach effectively reduces overall dispersion. The findings suggest that this method is especially beneficial for managing high connection request volumes.