A sample of obtaining the network state