Alliteration is the occurrence of the same consonant sound at the beginning or closely connected words. The repetition of the consonance sound must occur in a stressed part of a word, for it to be termed as alliteration.
Consonance is the repetition of consonant sounds in words that are in close proximity. Unlike in Alliteration, the repeated sound can appear anywhere in the word.