Communication mode switching method and related apparatus
This application provides a communication mode switching method and a related apparatus. The method may include: A first terminal device sends a first message to a second terminal device, where the first message is used to request to switch at least one service between the first terminal device and the second terminal device from a PC5 interface communication mode to a Uu interface communication mode; and after receiving the first message of the first terminal device, the second terminal device sends a second message to the first terminal device, to notify that some or all of the at least one service are allowed to be switched from the PC5 interface communication mode to the Uu communication mode. According to the method, switching of one or more services from the PC5 interface communication mode to the Uu interface communication mode can be completed through negotiation between terminal devices.
1 . A communication mode switching method, comprising:
sending, by a first terminal device, a first message to a second terminal device, wherein the first message requests to switch at least one service between the first terminal device and the second terminal device from a proximity-based services communication 5 (PC5) interface communication mode to a Uu interface communication mode; and
receiving, by the first terminal device, a second message responsive to the first message from the second terminal device, wherein the second message notifies that switching of a first service from the PC5 interface communication mode to the Uu interface communication mode is accepted, and the at least one service comprises the first service,
wherein the method further comprises:
determining, by the first terminal device, a second quality of service (QoS) parameter based on a third QoS parameter, wherein the third QoS parameter is used by the first terminal device to transmit data of the first service in the PC5 interface communication mode; and
sending, by the first terminal device to the second terminal device, the second QoS parameter to be used by the second terminal device to transmit data of the first service in the Uu interface communication mode.
2 . The method according to claim 1 , wherein the second message carries identification information of the first service.
3 . The method according to claim 1 , wherein the first message carries identification information of the at least one service.
4 . The method according to claim 1 , wherein the first message is a path switch request message.
5 . The method according to claim 1 , wherein the sending, by the first terminal device, the first message to the second terminal device comprises:
sending, by the first terminal device, the first message to the second terminal device based on first reference information, wherein
the first reference information comprises at least one of: a path selection policy, a path switching policy, a quality of service (QoS) requirement of a PC5 QoS flow corresponding to the at least one service, or signal quality of transmitting data of the at least one service by the first terminal device in the PC5 interface communication mode.
6 . The method according to claim 5 , wherein the sending, by the first terminal device, the first message to the second terminal device based on the first reference information comprises:
in response to the signal quality of transmitting the data of the at least one service by the first terminal device in the PC5 interface communication mode being less than a first signal quality threshold, sending, by the first terminal device, the first message to the second terminal device.
7 . The method according to claim 1 , wherein the method further comprises:
determining, by the first terminal device, a first QoS parameter based on the third QoS parameter, wherein
the first QoS parameter is to be used by the first terminal device to transmit data of the first service in the Uu interface communication mode.
8 . The method according to claim 1 , wherein the first message carries the second QoS parameter to be used by the second terminal device to transmit data of the first service in the Uu interface communication mode.
9 . The method according to claim 1 , wherein the method further comprises:
sending, by the first terminal device to the second terminal device, address information of the first terminal device to be used to transmit data of the first service between the first terminal device and the second terminal device in the Uu interface communication mode; and
receiving, by the first terminal device from the second terminal device, address information of the second terminal device to be used to transmit data of the first service between the first terminal device and the second terminal device in the Uu interface communication mode.
10 . The method according to claim 1 , wherein the first message carries an identifier of a PC5 QoS flow corresponding to the at least one service requested to be switched from the PC5 interface communication mode to the Uu interface communication mode.
11 . A communication mode switching method, comprising:
receiving, by a second terminal device, a first message from a first terminal device, wherein the first message requests to switch at least one service between the first terminal device and the second terminal device from a proximity-based services communication 5 (PC5) interface communication mode to a Uu interface communication mode; and
sending, by the second terminal device and in response to the first message, a second message to the first terminal device, wherein the second message notifies that switching of a first service from the PC5 interface communication mode to the Uu interface communication mode is accepted, and the at least one service comprises the first service,
wherein the method further comprises:
receiving, by the second terminal device from the first terminal device, a second quality of service (QoS) parameter to be used by the second terminal device to transmit data of the first service in the Uu interface communication mode, wherein the second QoS parameter is determined by the first terminal device based on a third QoS parameter used by the first terminal device to transmit data of the first service in the PC5 interface communication mode.
12 . The method according to claim 11 , wherein the first message carries an identifier of a PC5 QoS flow corresponding to the at least one service requested to be switched from the PC5 interface communication mode to the Uu interface communication mode.
13 . A communication mode switching apparatus, comprising:
at least one processor coupled with a non-transitory storage medium storing executable instructions which are executable by the at least one processor to cause the apparatus to:
send a first message to a second terminal device, wherein the first message requests to switch at least one service between the apparatus and the second terminal device from a proximity-based services communication 5 (PC5) interface communication mode to a Uu interface communication mode; and
receive a second message responsive to the first message from the second terminal device, wherein the second message notifies that switching of a first service from the PC5 interface communication mode to the Uu interface communication mode is accepted, and the at least one service comprises the first service,
wherein the instructions are executable by the at least one processor to further cause the apparatus to:
determine a second quality of service (QoS) parameter based on a third QoS parameter, wherein the third QoS parameter is used by the apparatus to transmit data of the first service in the PC5 interface communication mode; and
send, to the second terminal device, the second QoS parameter to be used by the second terminal device to transmit data of the first service in the Uu interface communication mode.
14 . The apparatus according to claim 13 , wherein the instructions are executable by the at least one processor to cause the apparatus to:
send the first message to the second terminal device based on first reference information, wherein
the first reference information comprises at least one of: a path selection policy, a path switching policy, a quality of service (QoS) requirement of a PC5 QoS flow corresponding to the at least one service, or signal quality of transmitting data of the at least one service by the apparatus in the PC5 interface communication mode.
15 . The apparatus according to claim 14 , wherein the instructions are executable by the at least one processor to cause the apparatus to:
in response to the signal quality of transmitting the data of the at least one service by the apparatus in the PC5 interface communication mode being less than a first signal quality threshold, send the first message to the second terminal device.
16 . The apparatus according to claim 13 , wherein the instructions are executable by the at least one processor to further cause the apparatus to:
determine a first QoS parameter based on the third QoS parameter, wherein
the first QoS parameter is to be used by the apparatus to transmit data of the first service in the Uu interface communication mode.
17 . The apparatus according to claim 13 , wherein the first message carries an identifier of a PC5 QoS flow corresponding to the at least one service requested to be switched from the PC5 interface communication mode to the Uu interface communication mode.
18 . A communication mode switching apparatus, comprising:
at least one processor coupled with a non-transitory storage medium storing executable instructions which are executable by the at least one processor to cause the apparatus to:
receive a first message from a first terminal device, wherein the first message requests to switch at least one service between the first terminal device and the apparatus from a proximity-based services communication 5 (PC5) interface communication mode to a Uu interface communication mode; and
in response to the first message, send a second message to the first terminal device, wherein the second message notifies that switching of a first service from the PC5 interface communication mode to the Uu interface communication mode is accepted, and the at least one service comprises the first service,
wherein the instructions are executable by the at least one processor to further cause the apparatus to:
receive, from the first terminal device, a second quality of service (QoS) parameter to be used by the apparatus to transmit data of the first service in the Uu interface communication mode, wherein the second QoS parameter is determined by the first terminal device based on a third QoS parameter used by the first terminal device to transmit data of the first service in the PC5 interface communication mode.
19 . The apparatus according to claim 18 , wherein the first message carries an identifier of a PC5 QoS flow corresponding to the at least one service requested to be switched from the PC5 interface communication mode to the Uu interface communication mode.