added perfect routing for local network simulator