Are the Knock sensor and Oxygen sensor the same thing? on 2005 Cadillac STS

I was told I need a Knock Sensor. When I went to look it up, all I find is the Mass airflow and Oxygen sensor. I know its not the Mass airflow, so what is it?

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer
A trouble code would be much more helpful.