How does CBD oil work to alleviate pain and what are its benefits?

How does CBD oil work to alleviate pain and what are its benefits?