nociception
Nociception is the body's damage-detection system: the way specialised sensors notice that something harmful is happening — a burn, a cut, a crushing pressure — and send a warning signal up to the brain. It is the raw alarm wiring, separate from the conscious experience of "ouch". You can have nociception without feeling pain (for instance under anaesthesia) and pain without obvious nociception (as in some nerve-injury states), so pharmacologists keep the two ideas apart.
The pathway has four stages, and analgesic drugs can intervene at each one. First, special nerve endings called nociceptors transduce a harmful stimulus into an electrical signal; local anaesthetics block this by shutting the sodium channels that carry the signal. Next the signal is transmitted up sensory nerves to the spinal cord, where it is modulated — turned up or down by other signals — before being relayed to the brain. Opioids act largely here and above, in the spinal cord and brain, to dampen the relay. Finally the brain perceives the signal as pain.
Understanding nociception as a multi-step pathway is what makes rational, layered pain control possible. Inflammatory mediators such as prostaglandins sensitise the nociceptors at the start, which is why NSAIDs help at the periphery; opioids dampen transmission and perception centrally; local anaesthetics interrupt the wire itself. Matching the drug to the stage — and recognising when pain has become a malfunction of the system rather than a true alarm — is the foundation of modern analgesia.
Nociception is the physiological process; pain is the conscious, subjective experience it can produce. The distinction matters because chronic pain can persist with no ongoing tissue damage to detect.