Implementation of the networking algorithms for link state and distance vector.