Knocking is often caused by cavitation which occurs when the pump impeller forces dissolved gases out of solution. This causes high pressures which can damage your pump. Cavitation is the result of poor pump design or oversized pumps which try to move more water than is available. Suction leaks in the systems can contribute to cavitation by decreasing pump efficiency. Noise can also be from bad motor bearings.