Exogenous traffic flow perturbations: a network design procedure and automatic detection