Optical fiber is a flexible transparent fiber made of high quality glass or plastic that transmits light between two ends. It functions as a waveguide or light pipe. Optical fibers are widely used for fiber optic communications due to their ability to transmit signals over longer distances and higher bandwidths compared to other forms of communication. Fibers are used instead of metal wires because signals travel along them with less loss and are safe from electromagnetic interference. Optical fibers have been used for communication since the 1840s and are now used for transmitting data at rates as high as 400 gigabits per second. Optical fiber provides benefits such as greater bandwidth, immunity to electrical interference, and lower signal attenuation over long distances compared to conventional copper cables.