In what ways is transfer pricing like cost allocation? In what ways is it different?

In what ways is transfer pricing like cost allocation? In what ways is it different?