Optical switching technologies allow for more efficient routing of data in fiber optic networks. Spectral switching routes different wavelength channels to different output ports, while spatial switching routes light to different fiber locations. Few optical switching technologies have been widely deployed, but some successes include wavelength selective switches used in reconfigurable optical add-drop multiplexer nodes. Optical switching can benefit terrestrial networks, undersea cable systems, and networks supporting 5G/6G by enabling increased data transmission and more flexible routing of traffic. Data center interconnect networks also rely on high-speed optical fiber links with optical switching to share resources between data centers.