Discuss the theoretical principles and methodologies involved in the design and analysis of water distribution networks in urban infrastructure. Explore topics such as hydraulic modeling, pipe network optimization, and theoretical considerations for ensuring efficient water supply, pressure management, and system resilience against factors like leaks and pipe degradation.