XFP

Optical modules are composed of optoelectronic devices, functional circuits, and optical interfaces. Optoelectronic devices include two parts: transmitter and receiver

Simply put, the function of an optical module is to convert electrical signals into optical signals at the transmitting end, transmit them through optical fibers, and then convert the optical signals into electrical signals at the receiving end.