update router cost