Using numerical methods, we study the fractal properties of the optical paths difference for rays propagating in a model of a homogeneous optical fiber with periodically curved (corrugated) wall and other wall periodically oscillating according to the sine law. Also the angle of entry of the rays into the optical fiber and their coordinates in the exit plane is investigated.