The period of sleep when the brain is most active and primed for some serious dreaming is REM sleep.
Some of the behaviors dogs often exhibit while sleeping include tail wagging, facial twitching and leg movements, with a variety of barks, growls, whimpers, whines and yelps thrown in for good measure.