Faulty compressor may be the primary cause of a loud knocking noise. If suspected to be the cause of the noise, it should be serviced by a professional.