checking the src and dst network_id