sounds like water hammer, caused by sudden pressure changes within the pipework resulting in sound waves - maybe worth looking into some type of air trap to add to the pipework to add as a damper
check this article
http://en.wikipedia.org/wiki/Water_hammer