static and dynamic wavelength allocation