First of all, make *sure* your car isn't running hot.
Knock is too much advance on the ignition timing, or an overheating engine.
Carbon build-up in the cylinders can also cause pinging.
Other things can sound like knock or ping also. For instance, a small pinhole exhaust leak, mis-adjusted valves, or loose connecting rods.