Implementation of a simplified version of Distance vector protocol