Explanation of how link-state routing protocol works