In a hotel or a large apartment plant, a knock is often a circulation problem rather than a heating one. The loop is long, the pump runs continuously, and the sound travels through the piping to places far from its source.
Water hammer
Shutting a valve fast halts a moving column, and that momentum needs somewhere to go. The pipe kicks, and where the runs are long the pulse carries several floors.
The fixes are at the piping: secure loose sections, fit arrestors at quick-closing valves, and check the pressure. On a shared system, that is a property-level job, and the engineer is part of the conversation.
Pumps and check valves
A recirculation pump that is failing, mounted loosely, or paired with a chattering check valve will knock. The timing is the clue: if the noise starts when the pump starts, the pump is the suspect.
A pump that is air-bound can also be noisy, and a strainer that is blocked will make it worse. Those are service items, not replacements.
Thermal expansion
Where the building service carries a backflow preventer, the plant is effectively a sealed vessel. Heated water needs more room than cold water, and with no room to take it the pressure rises until a valve weeps or a pipe complains. Once a plant has been running for a while, the noise arriving at a fixed time of day is often this rather than the burner.
Expansion control belongs on the cold main, sized to the volume the building actually heats. On a property with several plant rooms that is a calculation, not a guess, and a tank that is too small will not stop the noise it was bought for.
The heater's part
A loose stand or a failing element can produce a knock, but those are less common in a commercial room. The heater is examined after the piping, the pump and the expansion control are checked.
How the sound is traced
The complaints usually name a room, and the source is rarely in it. Pressure is logged over a heating cycle, the pump is isolated to see whether the knock survives, the check valve is watched for chatter, and the isolation valves are worked one at a time. Each test removes a suspect. What is repaired is what the tests pointed at, not whichever pipe was loudest.