An Optical Time-Domain Reflectometer or OTDR is a sophisticated test instrument used to probe the characteristics of long optical fibers.…