Photonics in Switching