Network selection method and apparatus, device, and storage medium
This application discloses a network selection method and apparatus, a device, and a storage medium, and belongs to the field of communication technologies. The method includes: obtaining, in a case that fault occurs on a first network of the terminal, disaster condition DC information from a target network; and performing network selection based on the DC information, where the target network includes: the first network and/or a second network, where the first network is a network that does not exist in a forbidden network list of the terminal; and the second network is a network that exists in the forbidden network list of the terminal.
1 . A network selection method performed by a terminal, comprising:
obtaining, in a case that fault occurs on a first network of the terminal, first information indicating whether a second network supports providing a first service for the terminal from the second network; wherein the second network is a network that exists in a forbidden network list of the terminal;
the method further comprises: obtaining a list of third networks from the first network; wherein the third networks are networks that support providing the first service to the terminal, and the first network is a network that does not exist in the forbidden network list of the terminal; and
performing network selection based on the first information and the list of third networks.
2 . The network selection method according to claim 1 , wherein the obtaining, in a case that fault occurs on a first network of the terminal, first information from the second network comprises:
obtaining, in a case that networks corresponding to network identifiers obtained from a non-access stratum (NAS) are all in the forbidden network list of the terminal, and the terminal supports a minimization of service interruption (MINT) feature, the first information-from the second network.
3 . The network selection method according to claim 1 , wherein the obtaining a list of third networks from the first network comprises:
receiving the list of third networks sent by the first network after fault.
4 . The network selection method according to claim 3 , wherein the list of third networks is sent through at least one of the following messages:
a non-access stratum (NAS) message; or an access stratum (AS) message.
5 . The network selection method according to claim 1 , wherein the obtaining the first information from the second network comprises: receiving the first information broadcast by the second network;
the obtaining the list of third networks from the first network comprises: receiving the list of third networks broadcast by the first network.
6 . The network selection method according to claim 5 , wherein the first information and the list of third networks is sent through at least one of the following messages:
a master information block (MIB); a system information block type 1 (SIB1); or other system information block (SIB) information.
7 . The network selection method according to claim 1 , wherein the obtaining first information from the second network comprises:
sending request information to the second network, wherein the request information is used for requesting the first information.
8 . The network selection method according to claim 7 , wherein the request information is sent through at least one of the following messages:
a non-access stratum (NAS) message; or an access stratum (AS) message.
9 . The network selection method according to claim 1 , wherein the first service comprises any one or a combination of the following:
an emergency service;
a data service;
a voice service; and
a video service.
10 . A terminal, comprising:
a memory, configured to store a program or an instruction; and
a processor,
wherein the program or the instruction, when executed by the processor, causes the terminal to:
obtain, in a case that fault occurs on a first network of the terminal, first information indicating whether a second network supports providing a first service for the terminal from the second network; wherein the second network is a network that exists in a forbidden network list of the terminal;
the program or the instruction, when executed by the processor, causes the terminal further to: obtain a list of third networks from the first network; wherein the third networks are networks that support providing the first service to the terminal, and the first network is a network that does not exist in the forbidden network list of the terminal; and
perform network selection based on the first information and the list of third networks.
11 . The terminal according to claim 10 , wherein the program or the instruction, when executed by the processor, causes the terminal to:
obtain, in a case that networks corresponding to network identifiers obtained from a non-access stratum (NAS) are all in the forbidden network list of the terminal, and the terminal supports a minimization of service interruption (MINT) feature, the first information from the second network.
12 . The terminal according to claim 10 , wherein the program or the instruction, when executed by the processor, causes the terminal to:
receive the list of third networks sent by the first network after fault.
13 . The terminal according to claim 12 , wherein the list of third networks is sent through at least one of the following messages:
a non-access stratum (NAS) message; or an access stratum (AS) message.
14 . The terminal according to claim 10 , wherein the program or the instruction, when executed by the processor, causes the terminal to:
send request information to the second network, wherein the request information is used for requesting the first information.
15 . The terminal according to claim 14 , wherein the request information is sent through at least one of the following messages:
a non-access stratum (NAS) message; or an access stratum (AS) message.
16 . The terminal according to claim 10 , wherein the first service comprises any one or a combination of the following:
an emergency service;
a data service;
a voice service; and
a video service.
17 . A non-transitory readable storage medium storing a program or an instruction, wherein the program or the instruction, when executed by a processor of a terminal, causes the terminal to perform:
obtaining, in a case that fault occurs on a first network of the terminal, first information indicating whether a second network supports providing a first service for the terminal from the second network; wherein the second network is a network that exists in a forbidden network list of the terminal;
obtaining a list of third networks from the first network; wherein the third networks are networks that support providing the first service to the terminal, and the first network is a network that does not exist in the forbidden network list of the terminal; and
performing network selection based on the first information and the list of third networks.
18 . The non-transitory readable storage medium according to 17 , wherein the terminal further performs:
obtaining, in a case that networks corresponding to network identifiers obtained from a non-access stratum (NAS) are all in the forbidden network list of the terminal, and the terminal supports a minimization of service interruption (MINT) feature, the first information from the second network.
19 . The non-transitory readable storage medium according to 17 , wherein the terminal further performs:
receiving the list of third networks sent by the first network after fault.
20 . The non-transitory readable storage medium according to 19 , wherein the list of third networks is sent through at least one of the following messages:
a non-access stratum (NAS) message; or an access stratum (AS) message.