simulation of the network algorithms