Transient phenomena in one-dimensional ducts