Connection and distance