network detection

network type detection