diesel engine doesn't knock as it doesn't have spark plugs, the sound is similar to knocking in diesel engine is clanking or rattling sound on running diesel engine, this noise is caused by the compression of air in the cylinders and the ignition of the fuel as it is injected into the cylinder.