This paper surveys the mathematical understanding of flux quantization laws that complete perturbative string theory backgrounds, focusing on B-, RR-, and C-field fluxes in 10- and 11-dimensional supergravity theories. Key concepts covered include higher gauge theory, characteristic L-infinity algebras, nonabelian de Rham cohomology, and differential nonabelian cohomology.