A common, and annoying, plumbing noise is called water hammer.
The best way to prevent water hammer is to make sure that the return pipes are inclined toward the boiler.
Another possibility is that you have a condition known as water hammer.
You can tell if water hammer is the problem by turning the cold water off slowly.
If this eliminates the banging, then you can be sure it is water hammer.
A valve that abruptly opens or shuts is the most common cause for water hammer.
The principle is the same as in the water hammer effect so well known to plumbers.
Vibration and water hammer may be a serious problem.
Plumbing systems are often built with devices that combat water hammer.
The most common occurrence of this is called water hammer.