Optical fibers carry light along their length and work on the principle of total internal reflection. Light is kept in the core of the fiber due to the difference in refractive index between the core and cladding materials. Total internal reflection occurs when light traveling through the higher refractive index core strikes the core-cladding boundary at an angle greater than the critical angle, causing it to reflect back into the core rather than refracting out of the fiber. Optical fibers come in different types depending on their construction, propagation mode, refractive index profile, and applications in telecommunications and local area networks.