How can CBD oil be used to alleviate pain?

How can CBD oil be used to alleviate pain?