Light travelling along a glass fibre hits the edge at a steep angle and is totally reflected back in, again and again (total internal reflection). This carries internet data as flashes of light around the world.