Longitudinal dispersion in steady and unsteady pipe flow