The chemical reactions and pathways involving dolichyl diphosphate, a diphosphorylated dolichol derivative. In eukaryotes, these function as carriers of mono- and oligosaccharide residues in the glycosylation of lipids and proteins within intracellular membranes.