Implemantation of Link-state and distance-vector routing algorithms