Method for controlling connection switching
A method for controlling connection switching in a communication network is executed by an access network device and includes sending first indication information to a terminal device, the first indication information being used for indicating a connection switching configuration to the terminal device, and the terminal device comprising at least two user identity recognition modules. Therefore, the terminal device may disconnect a connection with the access network device according to an instruction of a network device, so as to ensure that the communication transmission of a currently connected access network device is not affected, and also that the failure of another access network service is prevented, thereby improving the reliability of a multi-card terminal device.
1 . A method for controlling connection switching, performed by an access network device and comprising:
sending first indication information to a terminal device, wherein the first indication information indicates a connection switching configuration for the terminal device, and the terminal device comprises at least two subscriber identity recognition modules;
wherein the first indication information comprises N connection switching configurations, where N is a positive integer greater than 1, and wherein the method further comprises:
sending second indication information to the terminal device, wherein the second indication information activates at least one connection switching configuration;
wherein sending the second indication information to the terminal device comprises:
sending the second indication information to the terminal device via a media access control (MAC) control element (CE);
wherein
a number of bits contained in the MAC CE is:
(
[
⌈
log
2
N
⌉
8
]
+
1
)
*
8
-
1
;
or
a number of bits contained in the MAC CE is:
(
[
N
8
]
+
1
)
*
8
-
1
.
2 . The method according to claim 1 , wherein sending the first indication information to the terminal device comprises:
sending the first indication information to the terminal device via a radio resource control (RRC) message.
3 . The method according to claim 2 , wherein the RRC message is one of: an RRC reconfiguration message and an RRC connection reconfiguration message.
4 . The method according to claim 1 , wherein the first indication information comprises at least one of:
a duration for which the terminal device is disconnected from the access network device;
a time pattern for the terminal device to be disconnected from the access network device;
a triggering event for the terminal device to be disconnected from the access network device;
the triggering event for the terminal device to be disconnected from the access network device and a disconnection duration corresponding to each triggering event;
the triggering event for the terminal device to be disconnected from the access network device and a disconnection time pattern corresponding to each triggering event; and
the triggering event for the terminal device to be disconnected from the access network device and a disconnection time interval corresponding to each triggering event.
5 . The method according to claim 4 , wherein
the time pattern comprises a plurality of time pairs, wherein time intervals between disconnection moments and connection moments in individual time pairs are the same, or time intervals between disconnection moments and connection moments in individual time pairs are different.
6 . The method according to claim 4 , wherein the time pattern comprises a plurality of time pairs, wherein every two adjacent time pairs meet one of the following conditions:
time intervals between disconnection moments in every two adjacent time pairs being the same;
the time intervals between the disconnection moments in every two adjacent time pairs being different;
time intervals between connection moments in every two adjacent time pairs being the same; and
the time intervals between the connection moments in every two adjacent time pairs being different.
7 . The method according to claim 4 , further comprising:
receiving third indication information sent by the terminal device, wherein the third indication information comprises the triggering event.
8 . The method according to claim 1 , further comprising:
determining a to-be-activated connection switching configuration; and
determining values of individual bits in the MAC CE configured to send the second indication information according to the to-be-activated connection switching configuration.
9 . The method according to claim 1 , wherein sending the first indication information to the terminal device comprises:
in response to receiving a request sent by the terminal device to acquire the connection switching configuration, sending the first indication information to the terminal device; or
in response to establishing a connection with the terminal device, sending the first indication information to the terminal device.
10 . An access network device, comprising:
a processor; and
a memory having stored therein a computer program that, when executed by the processor, causes a method for controlling connection switching to be implemented, the method comprising:
sending first indication information to a terminal device, wherein the first indication information indicates a connection switching configuration for the terminal device, and the terminal device comprises at least two subscriber identity recognition modules;
wherein the first indication information comprises N connection switching configurations, where N is a positive integer greater than 1, and wherein the method further comprises:
sending second indication information to the terminal device, wherein the second indication information activates at least one connection switching configuration;
wherein sending the second indication information to the terminal device comprises:
sending the second indication information to the terminal device via a media access control (MAC) control element (CE);
wherein
a number of bits contained in the MAC CE is:
(
[
⌈
log
2
N
⌉
8
]
+
1
)
*
8
-
1
;
or
a number of bits contained in the MAC CE is:
(
[
N
8
]
+
1
)
*
8
-
1.
11 . The access network device according to claim 10 , wherein sending the first indication information to the terminal device comprises:
sending the first indication information to the terminal device via a radio resource control (RRC) message, wherein the RRC message is one of: an RRC reconfiguration message and an RRC connection reconfiguration message.
12 . The access network device according to claim 10 , wherein the first indication information comprises at least one of:
a duration for which the terminal device is disconnected from the access network device;
a time pattern for the terminal device to be disconnected from the access network device;
a triggering event for the terminal device to be disconnected from the access network device;
the triggering event for the terminal device to be disconnected from the access network device and a disconnection duration corresponding to each triggering event;
the triggering event for the terminal device to be disconnected from the access network device and a disconnection time pattern corresponding to each triggering event; and
the triggering event for the terminal device to be disconnected from the access network device and a disconnection time interval corresponding to each triggering event.
13 . The access network device according to claim 12 , wherein
the time pattern comprises a plurality of time pairs, wherein time intervals between disconnection moments and connection moments in individual time pairs are the same, or time intervals between disconnection moments and connection moments in individual time pairs are different.
14 . The access network device according to claim 12 , wherein the time pattern comprises a plurality of time pairs, wherein every two adjacent time pairs meet one of the following conditions:
time intervals between disconnection moments in every two adjacent time pairs being the same;
the time intervals between the disconnection moments in every two adjacent time pairs being different;
time intervals between connection moments in every two adjacent time pairs being the same;
the time intervals between the connection moments in every two adjacent time pairs being different.
15 . A communication device, comprising:
a processor; and
an interface circuit configured to receive a code instruction and transmit the code instruction to the processor;
wherein the processor is configured to run the code instruction to implement the method according to claim 1 .
16 . A non-transitory computer-readable storage medium having stored therein instructions that, when executed, cause a method for controlling connection switching to be implemented, the method comprising:
sending first indication information to a terminal device, wherein the first indication information indicates a connection switching configuration for the terminal device, and the terminal device comprises at least two subscriber identity recognition modules;
wherein the first indication information comprises N connection switching configurations, where N is a positive integer greater than 1, and wherein the method further comprises:
sending second indication information to the terminal device, wherein the second indication information activates at least one connection switching configuration;
wherein sending the second indication information to the terminal device comprises:
sending the second indication information to the terminal device via a media access control (MAC) control element (CE);
wherein
a number of bits contained in the MAC CE is:
(
[
⌈
log
2
N
⌉
8
]
+
1
)
*
8
-
1
;
or
a number of bits contained in the MAC CE is:
(
[
N
8
]
+
1
)
*
8
-
1.