Combined wavelength division multiplexing, time division multiplexing, and asynchronous packet switching with common time reference