Optical fiber communication is a communication mode that uses light wave as carrier and Optical fiber as transmission medium. Fiber optic communication is widely used in the communication field due to its long transmission distance, large communication capacity, high communication quality, low engineering cost, and high security and confidentiality. Optical time-domain reflectometer (OTDR) is the