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