Natural gas pipelines, as a key infrastructure for energy delivery, methane (CH4) and ethane (C2H6) in municipal pipelines are the focus of monitoring. Laser gas sensing technology provides comprehensive support for safe pipeline operation and quality control by accurately detecting pipeline gas concentration and composition and distinguishing between methane and ethane leak sources and concentrations in real time. This technology provides an important guarantee for efficient natural gas transport and safe management of urban gas pipeline networks.