Communication method, communications apparatus, and communications system
This application provides a communication method, a communications apparatus, and a communications system. The method includes: A terminal device generates first indication information, where the first indication information is used to indicate a plurality of non-public networks, the plurality of non-public networks include a first non-public network, and the first non-public network is a network that the terminal device requests to access; and the terminal device sends the first indication information to an access network device.
1 . A method, comprising:
determining, by a terminal device, a first non-public network with which the terminal device requests to set up a radio resource control (RRC) connection, and determining another non-public network that is deployed in a same cell of an access network device as the first non-public network based on the another non-public network having a same type as the first non-public network;
generating, by the terminal device, first indication information, wherein the first indication information comprises respective identity information of the first non-public network and the another non-public network; and
sending, by the terminal device, the first indication information to the access network device.
2 . The method according to claim 1 , wherein the identity information of the first non-public network and the another non-public network comprises an index of each of the first non-public network and the another non-public network.
3 . The method according to claim 1 , wherein the first non-public network and the another non-public network rely on a same public land mobile network (PLMN).
4 . The method according to claim 1 , wherein the identity information of the first non-public network comprises an index of the first non-public network, and the identity information of the another non-public network comprises an identity of the another non-public network.
5 . The method according to claim 1 , wherein the identity information of the first non-public network and the another non-public network comprise identities of the first non-public network and the another non-public network, and public land mobile network identities in the identities of the first non-public network and the another non-public network are the same.
6 . The method according to claim 1 , wherein the first indication information is carried in an RRC setup complete message.
7 . A terminal device, comprising:
at least one processor; and
a memory coupled to the at least one processor, the memory comprising instructions that, when executed by the at least one processor, cause the terminal device to perform operations comprising:
determining a first non-public network with which the terminal device requests to set up a radio resource control (RRC) connection, and determining another non-public network that is deployed in a same cell of an access network device as the first non-public network based on the another non-public network having a same type as the first non-public network;
generating first indication information, wherein the first indication information comprises respective identity information of the first non-public network and the another non-public network; and
sending the first indication information to the access network device.
8 . The terminal device according to claim 7 , wherein the identity information of the first non-public network and the another non-public network comprises an index of the first non-public network and the another non-public network.
9 . The terminal device according to claim 7 , wherein the first indication information is carried in an RRC setup complete message.
10 . The terminal device according to claim 7 , wherein the first non-public network and the another non-public network rely on a same public land mobile network (PLMN).
11 . The terminal device according to claim 7 , wherein the identity information of the first non-public network and the another non-public network comprise identities of the first non-public network and the another non-public network, and public land mobile network identities in the identities of the first non-public network and the another non-public network are the same.
12 . An access network device, comprising:
at least one processor; and
a memory coupled to the at least one processor, the memory comprising instructions that, when executed by the at least one processor, cause the access network device to perform operations comprising:
receiving first indication information sent by a terminal device, wherein the first indication information comprises respective identity information of each non-public network of a plurality of non-public networks, the plurality of non-public networks comprise a first non-public network and another non-public network, and the first non-public network is a network with which the terminal device requests to set up a radio resource control (RRC) connection;
determining second indication information based on the first indication information, wherein the second indication information indicates the plurality of non-public networks;
sending the second indication information to a core network device;
receiving third indication information sent by the core network device, wherein the third indication information indicates the first non-public network; and
determining, based on the third indication information, that the network that the terminal device requests to access in the plurality of non-public networks is the first non-public network.
13 . The access network device according to claim 12 , wherein the second indication information comprises the respective identity information of each non-public network of the plurality of non-public networks.
14 . The access network device according to claim 12 , wherein the second indication information comprises the first indication information.
15 . The access network device according to claim 12 , wherein the plurality of non-public networks correspond to a cell of the access network device.
16 . The access network device according to claim 12 , wherein a content of the second indication information is different than a content of the first indication information.
17 . The access network device according to claim 12 , wherein the identity information of the first non-public network and the another non-public network comprises an index of the first non-public network and the another non-public network.
18 . The access network device according to claim 12 , wherein the instructions, when executed by the at least one processor, cause the access network device to perform further operations comprising:
determining a connection status between the first non-public network and the terminal device.
19 . The access network device according to claim 18 , wherein the instructions, when executed by the at least one processor, cause the access network device to perform further operations comprising:
determining, based on the connection status, whether to allow a new terminal device to access the first non-public network.
20 . The access network device according to claim 18 , wherein the instructions, when executed by the at least one processor, cause the access network device to perform further operations comprising:
allocating a resource to the terminal device in the first non-public network based on the connection status.