Optical packet switching of IP traffic