A mountain plumbing system moves more than a valley one. The water arrives cold, the spaces it travels through are cold, and the temperature difference across a single run can be large enough to make a tight pipe knock against framing.
What the timing tells you
A single thump when a tap closes. Water hammer, travelling back down the run. Long runs and fast-closing appliance valves make it more noticeable.
A knock during heating. Thermal expansion, often with a weeping relief valve as a companion symptom. A waterlogged expansion tank is the usual culprit.
A rattle at first draw on a cold morning. Pipe movement as cold water is displaced by hot. Common where runs are tight against framing in a crawlspace.
A gurgle rather than a knock. That is sediment and steam, and it belongs with the popping diagnosis rather than here.
Winter complications
A partly frozen or airlocked line changes flow, and flow changes produce noise. Before condemning a pipe run, confirm that water is moving freely at every fixture and that no exposed section is blocked.
How it is traced
Reproduce the sound, then check the expansion tank's charge and the air side for water, watch the relief valve through a cycle, and inspect the run for loose sections and missing restraints. Sediment is assessed at the same time.
What fixing it involves
Restraints on loose runs, correction of the expansion capacity, and in some cases an arrestor at the offending valve. The work is modest; leaving it alone is what gets expensive.
What to have ready
When the noise occurs, whether it followed a cold snap, and whether the relief valve has ever dripped. Those three answers narrow it quickly.