update lsa distances and routing