Distance distribution and reliability of small-world networks