Optical fiber is a long thin cylindrical fiber that is made of glass or plasticthat is smaller than one tenth…