optical fiber is a thin cylindrical fiber that is made of glass or plasticthat is as tiny as one tenth…