The diffusion model of cosmic-ray propagation