CN-122002446-A - Communication method and communication device
Abstract
A communication method and a communication device relate to the technical field of communication. The method comprises the steps of determining that equipment providing relay service for the far-end equipment is switched to relay equipment from a second terminal to a network, enabling the first intermediate relay equipment to be used for carrying out communication of first relay service between the far-end equipment and the relay equipment from the second terminal to the network, and sending first information to the far-end equipment or the relay equipment from the second terminal to the network, wherein the first information is used for triggering allocation of an address for the far-end equipment, and the address is used for enabling the far-end equipment to be used for carrying out communication of the first relay service with the relay equipment from the second terminal to the network. The method can enable the remote device and the relay device from the second terminal to the network after switching to communicate through the allocated address.
Inventors
- ZHANG CHENYU
- FU ZHANG
- XU SHENGFENG
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241108
Claims (20)
- 1. A method of communication, the method being applied to a first intermediate relay device, the method comprising: Determining that a device providing a relay service for a remote device is switched to a relay device from a second terminal to a network, wherein the first intermediate relay device is used for carrying out communication of a first relay service between the remote device and the relay device from the second terminal to the network; And sending first information to the remote equipment or the relay equipment from the second terminal to the network, wherein the first information is used for triggering the allocation of an address for the remote equipment, and the address is used for the communication of the first relay service between the remote equipment and the relay equipment from the second terminal to the network.
- 2. The method according to claim 1, wherein the method further comprises: Receiving a first request message from the remote device, wherein the first request message is used for requesting an address of the remote device from a relay device of the second terminal to a network; and sending the first request message.
- 3. The method according to claim 1 or 2, wherein said determining that the device providing the relay service for the remote device is handed over to the relay device of the second terminal to the network comprises: Receiving a discovery message from the second terminal-to-network relay device or a second intermediate relay device, the discovery message including a relay service code RSC supported by the second terminal-to-network relay device, the second intermediate relay device for communication between the remote device and the second terminal-to-network relay device; according to the discovery message, sending a direct communication request message to a relay device from the second terminal to a network or the second intermediate relay device, wherein the direct communication request message comprises a first RSC (reactive power control) which corresponds to the first relay service; And receiving a direct communication request acknowledgement message from the second terminal to a relay device of the network or the second intermediate relay device, the direct communication request acknowledgement message including the first RSC.
- 4. A method of communication, the method being applied to a remote device, the method comprising: receiving first information from a first intermediate relay device, wherein the first information is used for triggering the allocation of an address for the remote device; According to the first information, a first request message is sent, wherein the first request message is used for requesting the address of the remote equipment from the relay equipment from the second terminal to the network; And receiving a first address, wherein the first address is used for the communication of the first relay service between the remote device and the relay device of the second terminal to the network.
- 5. The method of any of claims 1-4, wherein the first information includes first indication information indicating a change in a device providing relay services for a remote device.
- 6. The method according to any of claims 1-5, wherein the first information is carried in a first connection modification request message.
- 7. The method according to any of claims 1-6, wherein the first information is a dynamic host configuration protocol dhcpforceew message.
- 8. A method of communication, the method being applied to a first intermediate relay device, the method comprising: determining that a device providing a relay service for a remote device is switched to a relay device from a second terminal to a network, wherein the first intermediate relay device is used for communication of a first relay service between the remote device and the relay device from the second terminal to the network; and sending the identification of the relay device from the second terminal to the network to the remote device.
- 9. The method of claim 8, wherein the method further comprises: Receiving a first request message from the remote device, wherein the first request message is used for requesting an address of the remote device from a relay device of the second terminal to a network; and sending the first request message.
- 10. The method according to claim 8 or 9, wherein said determining that the device providing the relay service for the remote device is handed over to the relay device of the second terminal to the network comprises: Receiving a discovery message from the second terminal-to-network relay device or a second intermediate relay device, the discovery message including RSCs supported by the second terminal-to-network relay device, the second intermediate relay device for communication between the remote device and the second terminal-to-network relay device; according to the discovery message, sending a direct communication request message to a relay device from the second terminal to a network or the second intermediate relay device, wherein the direct communication request message comprises a first RSC (reactive power control) which corresponds to the first relay service; And receiving a direct communication request acknowledgement message from the second terminal to a relay device of the network or the second intermediate relay device, the direct communication request acknowledgement message including the first RSC.
- 11. The method according to any of claims 8-10, characterized in that the identity of the relay device of the second terminal to the network is carried in a first connection modification request message.
- 12. A method of communication, the method being applied to a remote device, the method comprising: Receiving an identification of a second terminal to network relay device from a first intermediate relay device, wherein the first intermediate relay device is used for communication of a first relay service between the remote device and the second terminal to network relay device; Determining, based on the identification of the second terminal to network relay device, that a device providing relay service for the remote device switches to the second terminal to network relay device; Transmitting a first request message, wherein the first request message is used for requesting an address of the remote device from a relay device of the second terminal to a network; a first address is received, the first address being used for communication of the first relay service between the remote device and a relay device of the second terminal to a network.
- 13. The method of claim 12, wherein after the receiving the first address, the method further comprises: And sending second information to the relay device from the second terminal to the network, wherein the second information comprises the identification of the remote device and the first address of the remote device.
- 14. A method according to claim 12 or 13, characterized in that the identity of the relay device of the second terminal to the network is carried in a second connection modification request message.
- 15. The method according to any of claims 12-14, characterized in that before said receiving the identity of the relay device of the second terminal to the network, the method further comprises: Sending a direct communication request message; And receiving a direct communication confirmation message sent by the first terminal to the relay device of the network or a third intermediate relay device, wherein the direct communication confirmation message comprises an identification of the first terminal to the relay device of the network, and the first intermediate relay device communicates with the first terminal to the relay device of the network through the third intermediate relay device.
- 16. The method according to any of claims 12-15, characterized in that before said receiving the identity of the relay device of the second terminal to the network, the method further comprises: And receiving a discovery message sent by the first terminal-to-network relay device or a third intermediate relay device, wherein the discovery message comprises an identification of the first terminal-to-network relay device and/or a first RSC, and the first intermediate relay device communicates with the first terminal-to-network relay device through the third intermediate relay device.
- 17. A communication method, the method being applied to a relay device of a second terminal to a network, the method comprising: Receiving information of a remote device; and when the remote equipment is determined to not establish communication connection with the relay equipment of the second terminal to the network based on the information of the remote equipment, a first address is allocated to the remote equipment, wherein the first address is used for the communication of the first relay service between the remote equipment and the relay equipment of the second terminal to the network.
- 18. The method of claim 17, wherein the information of the remote device is carried in a second connection modification request message.
- 19. The method according to claim 17 or 18, wherein the information of the remote device comprises an identification of the remote device and/or a second address of the remote device, the second address being used for communication of the first relay service by the remote device with a first terminal to network relay device.
- 20. The method of claim 19, the information of the remote device comprising an identification of the remote device, the determining that the remote device does not establish a communication connection with a relay device of the second terminal to a network based on the information of the remote device, comprising: determining that the locally stored context information of the second terminal to the relay device of the network does not include an identification of the remote device.
Description
Communication method and communication device Technical Field The present application relates to the field of communications technologies, and in particular, to a communication method and a communication device. Background Proximity services (Proximity Service, proSe) communication allows User Equipment (UE) to communicate directly in close proximity to each other, thereby improving communication efficiency. ProSe communication may also enable terminal devices to communicate or access a network through other terminal devices without wireless network coverage. The terminal device not accessing the Network may access the Network through a terminal-to-Network (U2N) relay device, or the terminal device not accessing the Network may also connect to a U2N relay device through a plurality of intermediate relay devices (INTERMEDIATE U N relay) not directly accessing the Network, and then access the Network through the U2N relay device. Terminal devices that are not accessing the network may also be referred to as remote devices. Currently, when a remote device is connected to a U2N relay device through an intermediate relay device and a U2Nrelay device that provides a relay service for the remote device changes, the remote device may not be able to communicate with the changed U2N relay device. Disclosure of Invention The application provides a communication method and a communication device, which can ensure that when a U2N relay device for providing relay service for a remote device changes, the remote device can normally communicate with the changed U2N relay device. In a first aspect, a communication method is provided, the method comprising determining that a device providing a relay service for a remote device is handed over to a second terminal-to-network relay device, a first intermediate relay device for communication of a first relay service between the remote device and the second terminal-to-network relay device, and sending first information to the remote device or the second terminal-to-network relay device, the first information being used to trigger allocation of an address for the remote device, the address being used for communication of the first relay service between the remote device and the second terminal-to-network relay device. The communication method may be implemented by the first intermediate relay device, or may be implemented by a module, a unit, a processor, a circuit, a chip, or a chip system included in the first intermediate relay device. The method provided by the application, when the first intermediate relay device determines that the device providing the service for the remote device changes (for example, the device providing the relay service for the remote device is switched to the relay device from the second terminal to the network), the first intermediate relay device sends first information to the remote device, so that the remote device can trigger to allocate an address based on the first information, thereby enabling the remote device and the relay device from the second terminal to the network to communicate through the allocated address, or the first intermediate relay device directly sends first information to the relay device from the second terminal to the network, so that the relay device from the second terminal to the network allocates an address for the remote device, and the address is used for the remote device and the relay device from the second terminal to the network to communicate the first relay service. It should be noted that, in the relay service of 5G ProSe, different relay service types are supported, and the first relay service is any one of the different relay service types, and different relay services can be distinguished through the relay service code RSC, so that the network can correctly process different data flows and service requests. In some possible implementations, when a device connected to the first intermediate relay device changes, the first intermediate relay device sends first information to the remote device, where the first information is used to trigger allocation of an address to the remote device, where the address is used for communication between the remote device and the relay device of the second terminal to the network, and the first intermediate relay device is used for communication of the first relay service between the remote device and the relay device of the second terminal to the network. It should be understood that the device connected to the first intermediate relay device may be understood as a parent node of the first intermediate relay device, through which the first intermediate relay device communicates with the terminal-to-network relay device, the parent node being one intermediate relay device between the first intermediate relay device and the terminal-to-network relay device. In this implementation, when a device connected to the first intermediate relay device changes, the first intermediate relay