Implementation of distance vector routing protocol