on network algo