Dispersion compensation is achieved in an optical communications system by using an optical circulator with first, second, and third ports. The first and third ports are connected to system optical fibers. This grating is made so that faster wavelengths are reflected at the far end of the filter (therefore experiencing a. The 'optocirculator' commonly known as optical circulator is the circulator which is majorly used for optical communication. Normally, dispersion in fiber optic cable includes modal dispersion, chromatic dispersion and polarization mode dispersion.