implements dynamic routage protocol