A new method for combining wavelength and packet switched network architectures