what do you mean by engine knock?

as in knocking means gasoline detonates before the spark plug produces a spark?

or

knocking as in literally sounds like there is something banging or knocking in the engine compartment?