Communication method and apparatus
By acquiring and sending service information, and prioritizing the establishment of supported service connections, the problem of high connection establishment latency in multi-hop relay scenarios is solved, and a more efficient connection establishment process is achieved.
Patent Information
- Application Number
- PCT/CN2026/095269
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-09
- Filing Date
- 2026-05-07
- Publication Date
- 2026-11-12
AI Technical Summary
In multi-hop relay scenarios, because the relay terminal devices on the same path do not support the relay service code of the remote terminal devices, multi-hop PC5 connections cannot be established, resulting in large delays in PC5 connection establishment.
By acquiring and sending service information that is supported by instructions, connections with the next-hop terminal device are established first to avoid multi-hop connection failures. Connections are established reasonably using priority instructions to ensure the consistency of services supported by each hop terminal device.
It reduces connection establishment latency, decreases connection failures due to relay terminal equipment not supporting the service, and improves the success rate and efficiency of connection establishment.
Smart Images

Figure CN2026095269_12112026_PF_FP_ABST
Abstract
Description
A communication method and apparatus
[0001] This application claims priority to Chinese Patent Application No. 202510604055.1, filed with the State Intellectual Property Office of China on May 9, 2025, entitled “A Communication Method and Apparatus”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of communication technology, and in particular to a communication method and apparatus. Background Technology
[0003] In multi-hop relay scenarios, a multi-hop PC5 connection can only be established if all relay terminal devices (such as Relay UEs) on the same path support the relay service code (RSC) of the remote terminal device (such as Remote UE). Conversely, if at least one of the multiple relay terminal devices (such as Relay UEs) on the same path does not support the RSC of the remote terminal device (such as Remote UE), the multi-hop PC5 connection cannot be established. Consequently, the remote terminal device (such as Remote UE) re-initiates the discovery process, resulting in a significant delay in PC5 connection establishment. Summary of the Invention
[0004] To address the aforementioned technical problems, this application provides a communication method and apparatus that can reduce connection establishment latency. To achieve the above objective, this application adopts the following technical solution:
[0005] Firstly, a communication method is provided. This method can be executed by a first terminal device, or by a component within the first terminal device (e.g., a processor, chip, or chip system), or by a logic module or software capable of implementing all or part of the functions of the first terminal device. The following description uses the first terminal device as the executing entity. The method includes:
[0006] Obtain first information, the first information indicating a first service, the first service being a service supported by the first terminal device, and the first service being a service supported by a second terminal device, the second terminal device being used to provide relay services to the first terminal device.
[0007] Send the first message.
[0008] In other words, the first service is a service supported by the first terminal device and also by the terminal device preceding the first terminal device (such as the second terminal device). In this case, the first terminal device sends the first information to instruct the first service, so that the next-hop terminal device (such as the third terminal device) of the first terminal device can establish a first connection based on the first information. This reduces the phenomenon of multi-hop connection establishment failure due to some relay terminal devices on the same path not supporting the first service. Correspondingly, the possibility of the next-hop terminal device (such as the third terminal device) of the first terminal device re-initiating the discovery process is low, which helps to reduce connection establishment latency.
[0009] In one possible design, the first information is associated with a first connection, the first connection is associated with a first service, the first connection is a connection between the first terminal device and a third terminal device, and the first terminal device is used to provide relay services to the third terminal device.
[0010] The first connection is associated with the first service, which can be understood as the first connection being used to transmit data of the first service.
[0011] In one possible design, the method further includes: receiving second information, the second information indicating a second service, the second service being a service supported by the second terminal device, and the second service being a service supported by a fourth terminal device, the fourth terminal device being used to provide a relay service to the second terminal device, the second service including the first service.
[0012] Obtaining the first information includes: determining the first information based on the second information.
[0013] In other words, the first terminal device obtains the second service from the previous hop terminal device (such as the second terminal device), and then uses the services it supports in the second service as the first service. In this way, the first service is a service supported by the first terminal device, and the first service is a service supported by each hop terminal device from the first terminal device to the first network device, so that the next hop terminal device of the first terminal device (such as the third terminal device) can establish a multi-hop connection associated with the first service as successfully as possible.
[0014] In one possible design, the first information is included in the discovery message. For example, the discovery message may include one of the following: an announcement message, a request message, or a response message.
[0015] In one possible design, the method further includes: establishing a second connection associated with the first service, the second connection being a connection between the first terminal device and the second terminal device, to establish a previous-hop connection for the first terminal device.
[0016] In one possible design, the method further includes: sending a first priority, the first priority indicating the establishment priority of the first connection, so as to reasonably establish a next-hop connection for the first terminal device.
[0017] Secondly, a communication method is provided. This method can be executed by a third terminal device, or by a component within the third terminal device (e.g., a processor, chip, or chip system), or by a logic module or software capable of implementing all or part of the functions of the third terminal device. The following description uses the third terminal device as the executing entity. The method includes:
[0018] The system receives first information from a first terminal device, the first information indicating a first service, the first service being a service supported by the first terminal device, and the first service being a service supported by a second terminal device, the second terminal device being used to provide relay services to the first terminal device.
[0019] Based on the first information, establish the first connection.
[0020] The services supported by the third terminal device are included in the first service.
[0021] The first connection is associated with the first service, and the first connection is a connection between the first terminal device and the third terminal device. The first terminal device is used to provide relay services for the third terminal device.
[0022] In one possible design, the first information is included in the discovery message.
[0023] In one possible design, establishing the first connection includes:
[0024] When the first priority is higher than the second priority, the first connection is established. The first priority indicates the priority for establishing the first connection, and the second priority indicates the priority for establishing the third connection. The third connection is a connection between the fifth terminal device and the third terminal device. The first service is also a service supported by the fifth terminal device, and the first service is also a service supported by the sixth terminal device. The sixth terminal device is used to provide relay services for the fifth terminal device.
[0025] In other words, the third terminal device determines which connection to establish first based on the establishment priority, so as to improve the rationality of connection establishment.
[0026] In one possible design, the method further includes: receiving third information from the fifth terminal device, the third information indicating the first service.
[0027] In other words, the third terminal device is within the signal coverage area of the fifth terminal device and can establish a connection with the fifth terminal device.
[0028] In one possible design, the method further includes: receiving the first priority from the first terminal device; and / or receiving the second priority from the fifth terminal device.
[0029] The technical effects of the second aspect and any of the design methods in the second aspect can be found in the first aspect and the technical effects of different design methods in the first aspect, and will not be repeated here.
[0030] Thirdly, a communication method is provided. This method can be executed by a seventh terminal device, or by a component within the seventh terminal device (e.g., a processor, chip, or chip system), or by a logic module or software capable of implementing all or part of the functions of the seventh terminal device. The following description uses the seventh terminal device as the executing entity. The method includes:
[0031] Obtain fourth information, which indicates the connection status between the seventh terminal device and the eighth terminal device, wherein the eighth terminal device is used to provide relay services for the seventh terminal device.
[0032] Based on the fourth information, send the first message.
[0033] Based on the above technical solution, it can be seen that the seventh terminal device determines whether to send the first message according to the connection status between the seventh terminal device and the eighth terminal device. Since the first message is associated with the fourth connection, associating the connection status between the seventh terminal device and the eighth terminal device with whether the fourth connection is established helps to reduce the phenomenon of multiple connections between two terminal devices.
[0034] In one possible design, the first message is associated with a fourth connection, which is a connection between the seventh terminal device and the ninth terminal device, and the seventh terminal device is used to provide relay services to the ninth terminal device.
[0035] In one possible design, the connection between the seventh terminal device and the eighth terminal device includes: a connection exists between the seventh terminal device and the eighth terminal device, and the associated service is a third service, which is a service supported by the ninth terminal device, and the seventh terminal device is used to provide relay services for the ninth terminal device.
[0036] In other words, if a connection exists between the seventh terminal device and the eighth terminal device, and the associated service is the third service, then the connection between the seventh terminal device and the eighth terminal device is considered to be a single connection. Therefore, the seventh terminal device sends the first message to establish the fourth connection between the seventh terminal device and the ninth terminal device. Since the connection between the seventh terminal device and the eighth terminal device is considered to be a single connection, there is no phenomenon of multiple connections between the two terminal devices.
[0037] In one possible design, the connection between the seventh terminal device and the eighth terminal device includes: there is no connection between the seventh terminal device and the eighth terminal device.
[0038] In other words, when the connection between the seventh terminal device and the eighth terminal device does not exist, the seventh terminal device sends the first message to establish the fourth connection between the seventh terminal device and the ninth terminal device. Since the connection between the seventh terminal device and the eighth terminal device does not exist, there is no phenomenon of multiple connections between the two terminal devices.
[0039] In one possible design, the method further includes: receiving a first request from a ninth terminal device, the first request being for requesting the establishment of a fourth connection, the fourth connection being a connection between the seventh terminal device and the ninth terminal device.
[0040] Based on the fourth information, the first message is sent, including:
[0041] Based on the fourth information and the first request, a first response is sent to the ninth terminal device, the first message including the first response.
[0042] In other words, the discovery process between the seventh terminal device and the ninth terminal device is mode B, so as to establish the fourth connection through mode B.
[0043] In one possible design, when the connection between the seventh terminal device and the eighth terminal device does not exist, the method further includes: sending a second request based on the fourth information and the first request, the second request being used to request the establishment of a fifth connection, the fifth connection being the connection between the seventh terminal device and the eighth terminal device.
[0044] In other words, the discovery process between the seventh terminal device and the eighth terminal device is mode B, so as to establish the fifth connection through mode B.
[0045] In one possible design, the method further includes sending the fourth information to indicate the connection status between the seventh terminal device and the eighth terminal device.
[0046] In one possible design, the fourth information is included in the first message.
[0047] Fourthly, a communication method is provided. This method can be executed by a tenth terminal device, or by a component within the tenth terminal device (e.g., a processor, chip, or chip system), or by a logic module or software capable of implementing all or part of the functions of the tenth terminal device. The following description uses the tenth terminal device as the executing entity. The method includes:
[0048] The fifth piece of information is obtained, which indicates that a sixth connection has been established. The sixth connection is a connection between the tenth terminal device and the eleventh terminal device, and the eleventh terminal device is used to provide relay services for the tenth terminal device.
[0049] Send the fifth message.
[0050] Based on the above technical solution, for the tenth terminal device, when the sixth connection between the tenth terminal device and the eleventh terminal device has been established, the fifth information is sent to indicate that the sixth connection between the tenth terminal device and the eleventh terminal device has been established, so that the twelfth terminal device can establish a seventh connection between the twelfth terminal device and the tenth terminal device based on the fifth information. Conversely, when the fifth information indicates that the sixth connection between the tenth terminal device and the eleventh terminal device has not been established, the seventh connection is not established, that is, the tenth terminal device does not act as a relay terminal device.
[0051] Therefore, when the relay terminal device in a single-hop relay scenario is the eleventh terminal device and the remote terminal device is the tenth terminal device, the tenth terminal device performs the above operation to establish the seventh connection between the tenth terminal device and the twelfth terminal device after the sixth connection between the tenth terminal device and the eleventh terminal device has been established. Since there are no multiple connections between the two terminal devices in a single-hop relay scenario, the connection between the tenth terminal device and the eleventh terminal device is at most one. Based on this, the connection between the tenth terminal device and the twelfth terminal device is also at most one, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0052] Alternatively, when the first relay terminal device in a multi-hop relay scenario is the eleventh terminal device and the remote terminal device is the tenth terminal device, the tenth terminal device performs the above operation to establish the seventh connection between the tenth terminal device and the eleventh terminal device after the sixth connection between the tenth terminal device and the eleventh terminal device has been established. Since the connection between the remote terminal device and its relay terminal device in a multi-hop relay scenario is established based on the above technical solution, the connection between the remote terminal device and its relay terminal device in a multi-hop relay scenario is at most one. Therefore, the connection between the tenth terminal device and the twelfth terminal device is also at most one, thus avoiding the phenomenon of multiple connections between the two terminal devices.
[0053] In one possible design, the fifth information is associated with a seventh connection, which is a connection between the tenth terminal device and the twelfth terminal device. The tenth terminal device is used to provide relay services to the twelfth terminal device, and the sixth connection and the seventh connection are associated with the same service.
[0054] In one possible design, the sixth connection is associated with a fourth service, and the method further includes sending a sixth message that instructs the fourth service to indicate the service associated with the sixth connection.
[0055] In one possible design, the fifth piece of information is included in the discovery message.
[0056] Fifthly, a communication method is provided. This method can be executed by a twelfth terminal device, by a component within the twelfth terminal device (e.g., a processor, chip, or chip system), or by a logic module or software capable of implementing all or part of the functions of the twelfth terminal device. The following description uses the twelfth terminal device as the executing entity.
[0057] The method includes:
[0058] The system receives a fifth message from the tenth terminal device, which indicates that a sixth connection has been established. The sixth connection is a connection between the tenth terminal device and the eleventh terminal device, and the eleventh terminal device is used to provide relay services to the tenth terminal device.
[0059] Based on the fifth information, a seventh connection is established, which is a connection between the tenth terminal device and the twelfth terminal device. The tenth terminal device is used to provide relay services for the twelfth terminal device. The sixth connection and the seventh connection are associated with the same service.
[0060] In one possible design, the sixth connection is associated with the fourth service, and the method further includes: receiving sixth information from the tenth terminal device, the sixth information indicating the fourth service.
[0061] In one possible design, the fifth piece of information is included in the discovery message.
[0062] The technical effects of the fifth aspect and any of the design methods in the fifth aspect can be found in the technical effects of the different design methods in the fourth aspect, and will not be repeated here.
[0063] Sixthly, a communication method is provided. This method can be executed by a first terminal device, or by a component within the first terminal device (e.g., a processor, chip, or chip system), or by a logic module or software capable of implementing all or part of the functions of the first terminal device. The following description uses the first terminal device as the executing entity. The method includes:
[0064] A first connection is established, the first connection is associated with a first service, the first connection is a connection between the first terminal device and the second terminal device, the second terminal device is used to provide relay services to the first terminal device, or the first terminal device is used to provide relay services to the second terminal device.
[0065] Based on the first connection, the sending of the first information is cancelled. The first information indicates a second service, which is a service supported by the first terminal device and is different from the first service.
[0066] Based on the above technical solution, when the preceding or next-hop connection of the first terminal device is the first connection, and the first connection is associated with the first service, the first terminal device, according to the first connection, cancels sending the first information and no longer indicates the second service it supports through the first information, thus it cannot / does not establish a connection associated with the second service. In this way, both the preceding and next-hop connections of the first terminal device are associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0067] In one possible design, the first information is included in the discovery message.
[0068] In one possible design, determining the first connection includes: determining that the first connection has been initiated, is being established, or has been established.
[0069] Seventhly, a communication method is provided. This method can be executed by a first terminal device, or by a component within the first terminal device (e.g., a processor, chip, or chip system), or by a logic module or software capable of implementing all or part of the functions of the first terminal device. The following description uses the first terminal device as the executing entity. The method includes:
[0070] A first connection is established, the first connection is associated with a first service, the first connection is a connection between the first terminal device and the second terminal device, the second terminal device is used to provide relay services to the first terminal device, or the first terminal device is used to provide relay services to the second terminal device.
[0071] Based on the first connection, it is determined that the establishment of a second connection is refused. The second connection is associated with a second service. The second connection is a connection between the first terminal device and the third terminal device. The first terminal device is used to provide relay services to the third terminal device.
[0072] Based on the above technical solution, when the first connection is associated with the first service and the second connection is associated with the second service, the first terminal device determines to refuse to establish the second connection based on the first connection. For example, if the first connection has already been initiated, is being established, or has already been established, then the establishment of the second connection is refused. In this way, the previous or next hop connection of the first terminal device is associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0073] In one possible design, the method further includes: receiving a first request, the first request being used to request the establishment of the second connection.
[0074] Determining to refuse to establish the second connection based on the first connection includes: sending a first message based on the first connection, the first message indicating that the establishment of the second connection is refused.
[0075] In other words, when the first connection is associated with the first service and the second connection is associated with the second service, the first terminal device, based on the first connection, refuses to establish the second connection during the connection establishment process of the second connection via the first message. In this way, both the previous-hop connection and the next-hop connection of the first terminal device are associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0076] In one possible design, determining to refuse to establish the second connection includes: not sending a first message that instructs the second service.
[0077] In other words, when the first connection is associated with the first service, and the first connection has been initiated, is being established, or has already been established, the first terminal device will no longer send the first information. Since the first information indicates the second service it supports, the first terminal device will no longer send the first information, and therefore cannot / will not establish the second connection associated with the second service. In this way, both the previous and next hop connections of the first terminal device are associated with the first service, thus avoiding the phenomenon of multiple connections between the two terminal devices.
[0078] In one possible design, determining the first connection includes: determining that the first connection has been initiated, is being established, or has been established.
[0079] Eighthly, a communication method is provided. This method can be executed by a first terminal device, or by a component within the first terminal device (e.g., a processor, chip, or chip system), or by a logic module or software capable of implementing all or part of the functions of the first terminal device. The following description assumes the first terminal device is the executing entity. The method includes:
[0080] A first connection is established, the first connection is associated with a first service, the first connection is a connection between the first terminal device and the second terminal device, and the first terminal device is used to provide relay services to the second terminal device.
[0081] Based on the first connection, it is determined that the establishment of a second connection and / or a third connection is refused. Both the second connection and the third connection are associated with a second service. The second connection is a connection between the first terminal device and the third terminal device, whereby the first terminal device is used to provide relay services to the third terminal device. The third connection is a connection between the first terminal device and a fourth terminal device, whereby the fourth terminal device is used to provide relay services to the first terminal device.
[0082] Based on the above technical solution, the next-hop connection of the first terminal device includes the first connection and the second connection. The first connection is associated with the first service, and the second connection is associated with the second service. The first terminal device determines to refuse to establish the second connection based on the first connection. For example, if the first connection has already been initiated, is being established, or has already been established, then the establishment of the second connection is refused. In this way, both the next-hop connection and the previous-hop connection of the first terminal device are associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0083] Based on the above technical solution, the next-hop connection of the first terminal device includes the first connection, the previous-hop connection includes the third connection, and the first connection is associated with the first service. When the third connection is associated with the second service, the first terminal device determines to refuse to establish the third connection based on the first connection. For example, if the first connection has been initiated, is being established, or has already been established, then the establishment of the third connection is refused. In this way, both the next-hop connection and the previous-hop connection of the first terminal device are associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0084] In one possible design, the method further includes: receiving a first request, the first request being used to request the establishment of the second connection.
[0085] Determining to refuse to establish the second connection and / or the third connection includes: not forwarding the first request, the forwarded first request being used to request the establishment of the third connection.
[0086] In other words, both the second connection and the third connection are associated with the second service. When the previous hop connection of the first terminal device is the third connection and the next hop connection is the second connection, the third connection is established first, followed by the second connection (for example, the establishment of the second connection is triggered after the third connection is established). In this case, the first terminal device does not forward the first request. The forwarded first request is used to request the establishment of the third connection. Since the first terminal device does not forward the first request, the third connection is not established. Since the establishment of the second connection is triggered only after the third connection is established, the second connection is not established. In this way, the next hop connection of the first terminal device is always associated with the first service, and the previous hop connection of the first terminal device is also associated with the first service, thus avoiding multiple connections between the two terminal devices.
[0087] In one possible design, the method further includes: receiving a second request for requesting the establishment of the second connection.
[0088] Determining to refuse to establish the second connection includes: not sending a second response, which is used to confirm the establishment of the second connection.
[0089] In other words, the next-hop connection of the first terminal device includes both the first connection and the second connection. The first connection is associated with the first service, and the second connection is associated with the second service. Based on the first connection, the first terminal device, during the discovery process, indicates a refusal to establish the second connection by not sending the second response. In this way, all next-hop connections of the first terminal device are associated with the first service, and the previous-hop connection of the first terminal device is also associated with the first service, thereby avoiding multiple connections between the two terminal devices.
[0090] In one possible design, the method further includes: receiving a first request, the first request being used to request the establishment of the second connection.
[0091] Determining to refuse to establish the second connection based on the first connection includes: sending a first message based on the first connection, the first message indicating that the establishment of the second connection is refused.
[0092] In other words, the next-hop connection of the first terminal device includes both the first connection and the second connection. The first connection is associated with the first service, and the second connection is associated with the second service. Based on the first connection, the first terminal device refuses to establish the second connection during its connection establishment process via the first message. In this way, all next-hop connections of the first terminal device are associated with the first service, and the previous-hop connection of the first terminal device is also associated with the first service, thus avoiding multiple connections between the two terminal devices.
[0093] In one possible design, determining the first connection includes: determining that the first connection has been initiated, is being established, or has been established.
[0094] Ninthly, a communication device is provided for implementing the various methods described above. The communication device includes modules, units, or means corresponding to the implementation of the methods, which can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions.
[0095] In one possible design, the communication device may include a processing module and a transceiver module. The processing module can be used to implement the processing functions performed by the communication device in any of the above aspects and any possible implementations thereof. The transceiver module, also referred to as a transceiver unit, is used to implement the sending and / or receiving functions performed by the communication device in any of the above aspects and any possible implementations thereof. The transceiver module may consist of transceiver circuitry, a transceiver, a transceiver unit, or a communication interface.
[0096] In one possible design, the transceiver module includes a transmitting module and / or a receiving module, which are used to implement the transmitting or receiving functions performed by the communication device in any of the above aspects and any possible implementations thereof.
[0097] In a tenth aspect, a communication device is provided for implementing the method performed by the communication device in any of the above aspects or any possible design of any of the above aspects.
[0098] Eleventhly, a communication device is provided, comprising: a processor; the processor being configured to execute a computer program or instructions to cause the communication device to perform the method described in any one aspect or the method performed by the communication device in any possible design of any one aspect.
[0099] Optionally, the communication device further includes a memory, which may be coupled to the processor, or the memory may exist independently of the processor; for example, the memory and the processor may be two separate modules. The memory may be located outside or inside the communication device.
[0100] In a twelfth aspect, a computer-readable storage medium is provided. This computer-readable storage medium stores a computer program or instructions that, when executed, cause the methods described in any of the preceding aspects or the methods executed by a communication device in any possible design of any of the preceding aspects to be implemented.
[0101] In a thirteenth aspect, a computer program product containing instructions is provided that, when run, causes the method described in any of the foregoing aspects or the method executed by a communication device in any possible design of any of the foregoing aspects to be implemented.
[0102] The communication device provided in any one of the ninth to thirteenth aspects can be a terminal device, or a component included in the terminal device, such as a chip or a chip system. The terminal device can be a first terminal device according to the first aspect or the sixth to eighth aspects, or a third terminal device according to the second aspect, or a seventh terminal device according to the third aspect, or a tenth terminal device according to the fourth aspect, or a twelfth terminal device according to the fifth aspect. When the communication device is a chip system, it can be composed of chips or can include chips and other discrete components.
[0103] It is understandable that when the communication device provided in any of the Ninth to Thirteenth aspects is a chip, the transmitting action / function of the communication device can be understood as outputting information, and the receiving action / function of the communication device can be understood as inputting information.
[0104] The technical effects of any of the design methods in aspects nine through thirteen can be found in the technical effects of any of the design methods in aspects one through five, and will not be repeated here. Attached Figure Description
[0105] Figure 1 is a schematic diagram of a communication system architecture provided in an embodiment of this application;
[0106] Figure 2 is a schematic diagram of another communication system architecture provided in an embodiment of this application;
[0107] Figure 3 is a schematic diagram of another communication system architecture provided in an embodiment of this application;
[0108] Figure 4 is a schematic diagram of another communication system architecture provided in an embodiment of this application;
[0109] Figure 5 is a schematic diagram of another communication system architecture provided in an embodiment of this application;
[0110] Figure 6 is a schematic diagram of a discovery process provided in an embodiment of this application;
[0111] Figure 7 is a schematic diagram of another discovery process provided in an embodiment of this application;
[0112] Figure 8a is a schematic diagram of another discovery process provided in an embodiment of this application;
[0113] Figure 8b is a schematic diagram of another discovery process provided in an embodiment of this application;
[0114] Figure 9 is a schematic diagram of a connection establishment process provided in an embodiment of this application;
[0115] Figure 10 is a schematic diagram of another discovery process provided in an embodiment of this application;
[0116] Figure 11 is a flowchart illustrating a communication method provided in an embodiment of this application;
[0117] Figure 12 is a flowchart illustrating another communication method provided in an embodiment of this application;
[0118] Figure 13 is a schematic diagram of another discovery process provided in an embodiment of this application;
[0119] Figure 14 is a flowchart illustrating another communication method provided in an embodiment of this application;
[0120] Figure 15 is a flowchart illustrating another communication method provided in an embodiment of this application;
[0121] Figure 16 is a flowchart illustrating another communication method provided in an embodiment of this application;
[0122] Figure 17 is a flowchart illustrating another communication method provided in an embodiment of this application;
[0123] Figure 18 is a flowchart illustrating another communication method provided in an embodiment of this application;
[0124] Figure 19 is a schematic diagram of another discovery process provided in an embodiment of this application;
[0125] Figure 20 is a schematic diagram of another discovery process provided in an embodiment of this application;
[0126] Figure 21 is a flowchart illustrating another communication method provided in an embodiment of this application;
[0127] Figure 22 is a flowchart illustrating another communication method provided in an embodiment of this application;
[0128] Figure 23 is a schematic diagram of another discovery process provided in an embodiment of this application;
[0129] Figure 24 is a schematic diagram of a communication device provided in an embodiment of this application;
[0130] Figure 25 is a schematic diagram of another communication device provided in an embodiment of this application;
[0131] Figure 26 is a schematic diagram of another communication device provided in an embodiment of this application. Detailed Implementation
[0132] The technical solutions in this application will now be described with reference to the accompanying drawings.
[0133] The technical solution of this application can be applied to various wireless communication systems, including but not limited to fourth-generation mobile communication technology (the 4G). th The fifth generation (4G) system (also known as the Long Term Evolution (LTE) system), is a mobile communication technology. th The system can be applied to various technologies, including 5G (also known as New Radio, NR), ambient internet of things (A-IoT), device-to-device (D2D), vehicle-to-everything (V2X) systems or their evolutions, or even future mobile communication systems, without any specific limitations.
[0134] Figure 1 is a schematic diagram of a communication system architecture applicable to this application. The communication system includes two terminal devices that communicate with each other. Optionally, the communication system also includes a network device that communicates with the terminal devices.
[0135] For example, in a network device, one terminal device is located outside or at the edge of the network device's coverage area; this terminal device is called the remote terminal device. The other terminal device is within the network device's coverage area and acts as a relay terminal device. For instance, the relay terminal device can forward information from the network device to the remote terminal device, or it can forward information from the remote terminal device to the network device.
[0136] It should be understood that remote terminal equipment may also be described in other ways, such as remote device or remote terminal. In this application, a remote terminal equipment is used as an example for description.
[0137] It should be understood that the number of remote terminal devices can be one, as shown in Figure 1 or Figure 2. The number of remote terminal devices can also be multiple, as shown in Figure 3 or Figure 4.
[0138] It should be understood that relay terminal equipment may also be described in other ways, such as relay device or relay terminal. In this application, relay terminal equipment is used as an example for description.
[0139] It should be understood that the number of relay terminal devices can be one, as shown in Figure 1 or Figure 3. The number of relay terminal devices can also be multiple, as shown in Figure 2 or Figure 4.
[0140] It should be understood that when there are multiple relay terminal devices, the relay terminal device connected to the network device is called the last relay terminal device. The other relay terminal devices besides the last relay terminal device are called intermediate relay terminal devices.
[0141] It should be understood that when there are multiple relay terminal devices, the relay terminal device connected to the remote terminal device is called the first relay terminal device. This can be understood as the first relay terminal device providing relay services to the remote terminal device, or the first relay terminal device being the upstream terminal device of the remote terminal device, or the remote terminal device being the downstream terminal device of the first relay terminal device.
[0142] Furthermore, regarding the connection between two terminal devices:
[0143] For example, the PC5 connection between the remote terminal device and the first relay terminal device can be described as: the connection between the remote terminal device and the previous hop terminal device (abbreviated as the previous hop connection of the remote terminal device), and / or, the connection between the first relay terminal device and the next hop terminal device (abbreviated as the next hop connection of the first relay terminal device).
[0144] Similarly, a relay terminal connected to the first relay terminal is called the second relay terminal. This can be understood as the second relay terminal providing relay services to the first terminal, or the second relay terminal being the upstream terminal of the first terminal, or the first terminal being the downstream terminal of the second relay terminal.
[0145] Furthermore, regarding the connection between two terminal devices:
[0146] For example, the PC5 connection between the first relay terminal device and the second relay terminal device can be described as: the connection between the first relay terminal device and the previous hop terminal device (abbreviated as the previous hop connection of the first relay terminal device), and / or, the connection between the second relay terminal device and the next hop terminal device (abbreviated as the next hop connection of the second relay terminal device).
[0147] The same principle applies to the others, as shown in Figure 2 or Figure 4.
[0148] In this application, terminal equipment refers to a device that provides voice and / or data connectivity to a user. Terminal equipment may be referred to as user equipment (UE), terminal, mobile station (MS), mobile terminal (MT), etc. For example, it may be a handheld device with wireless connectivity or an in-vehicle device. Currently, examples of terminal devices include: mobile phones, tablets, laptops, PDAs, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in vehicle-to-everything (V2X) communication, wireless terminals in self-driving cars, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and machine-to-machine / machine-type communications (M2M / MTC) terminals, etc. In addition, terminal equipment can also be vehicle equipment, vehicle modules, vehicles, on-board units (OBU), roadside units (RSU), vehicle infotainment systems (or on-board transmitters) (telematics boxes, T-box), chips or systems on chips (SOC), etc. The above-mentioned chips or SOCs can be installed in vehicles, OBUs, RSUs or T-boxes.Terminal devices can also be V2X communication terminals, such as smart cars, digital cars, unmanned cars, driverless cars, pilotless cars, autonomous cars, pure electric vehicles, hybrid electric vehicles (HEVs), range-extended electric vehicles (REEVs), plug-in hybrid electric vehicles (PHEVs), and new energy vehicles. Terminal devices can also be D2D communication terminals, such as electricity meters and water meters.
[0149] It should be understood that in this application, taking the terminal device as a UE as an example, the remote terminal device can be referred to as Remote UE, the relay terminal device can be referred to as Relay UE, the intermediate relay terminal device can be referred to as Intermediate Relay UE, the first relay terminal device can be referred to as First Relay UE, the second relay terminal device can be referred to as Second Relay UE, and the last relay terminal device can be referred to as Last Relay UE.
[0150] In this application, the network device can be a device in a wireless network, or a wireless access network device. For example, the network device can be a radio access network (RAN) node that connects terminal devices to the wireless network, or an access network (AN) device. Network equipment includes, but is not limited to: base stations (BS), evolved NodeBs (eNodeBs), transmission reception points (TRPs), next-generation NodeBs (gNBs) in 5G systems, access network equipment in open radio access networks (O-RAN or ORAN) systems, base stations in future mobile communication systems, or access points (APs) in wireless fidelity (WiFi) systems, radio network controllers (RNCs), base station controllers (BSCs), base transceiver stations (BTSs), home base stations (e.g., home evolved NodeBs or home Node Bs, HNBs), base band units (BBUs), etc.; or it can be a module or unit that performs some of the functions of a base station, such as an open central unit (O-CU), an open distributed unit (O-DU), an open central unit control plane (O-CU-CP) module, or an open central unit user plane (O-CU). User plane (O-CU-UP) module. Network equipment can be macro base stations, micro base stations, or indoor stations, etc.
[0151] In some examples, network devices may include at least one of O-CU and O-DU. This includes RAN devices with O-CU and O-DU that separate the protocol layers of the gNB in the NR system. Some protocol layer functions are centrally controlled by the O-CU, while the remaining partial or complete protocol layer functions are distributed in the O-DU, which is centrally controlled by the O-CU. For example, the O-CU is responsible for handling non-real-time protocols and services, implementing the functions of the radio resource control (RRC) layer. The O-DU is responsible for handling physical (PHY) layer protocols and real-time services, implementing the functions of the radio link control (RLC), media access control (MAC), and PHY layers. Furthermore, the O-CU can be divided into a control plane (O-CU-CP) and a user plane (O-CU-UP). The O-CU-CP is responsible for control plane functions, mainly including RRC and the corresponding packet data convergence protocol (PDCP) (i.e., control plane part of PDCP, PDCP-C)). O-CU-UP is responsible for user plane functions, mainly including the Service Data Adaptation Protocol (SDAP) and the user plane corresponding PDCP (i.e., user plane part of PDCP, PDCP-U). O-CU-CP and O-CU-UP are connected via the E1 interface. O-CU-CP represents the gNB connecting to the core network (CN) via the next-generation (NG) interface, and to the O-DU via the F1 interface control plane (i.e., F1-C). O-CU-UP connects to the O-DU via the F1 interface user plane (i.e., F1-U). Alternatively, PDCP-C may also be located within O-CU-UP.
[0152] In some examples, the network device also includes an open radio unit (O-RU). The O-DU can control at least one O-RU. The O-DU connects to the O-RU through interfaces, which may be fronthaul interfaces.
[0153] In some examples, the O-RU is a logical node that carries both lower physical layer (PHY) and radio frequency (RF) processing.
[0154] In some examples, O-RU could be a third-generation partnership program (3 rd The TRP or remote radio head (RRH) or other similar entity in the Generation Partnership Project (3GPP).
[0155] The O-DU and O-RU can work together to implement the functions of the PHY layer. One O-DU can be connected to one or more O-RUs. The functions of the O-DU and O-RU can be configured in various ways depending on the design. For example, the O-DU can be configured to implement baseband functions, and the O-RU can be configured to implement mid-RF functions. Alternatively, the O-DU can be configured to implement higher-level functions in the PHY layer, and the O-RU can be configured to implement lower-level functions in the PHY layer, or both lower-level and RF functions. Higher-level functions in the PHY layer may include a portion of the PHY layer's functions, which are closer to the MAC layer; lower-level functions in the PHY layer may include another portion of the PHY layer's functions, which are closer to the mid-RF side.
[0156] It should be understood that O-CU (including O-CU-CP or O-CU-UP), or O-DU, or O-RU may have different names in different systems, but those skilled in the art will understand their meaning. For example, in an O-RAN system, O-CU can also be called CU, O-DU can also be called DU, O-CU-CP can also be called CU-CP, O-CU-UP can also be called CU-UP, and O-RU can also be called RU. In this application, O-CU, O-CU-CP, O-CU-UP, O-DU, and O-RU are used as examples for description.
[0157] Figure 5 illustrates a schematic diagram of an O-RAN system architecture. The O-RAN system includes terminal equipment, O-RU, O-DU, and O-CU. The terminal equipment, O-CU, O-DU, and O-RU can be further described in Figures 1-4. The O-CU, O-DU, and O-RU transmit information from the terminal equipment to the core network, or vice versa.
[0158] The network architecture and business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0159] The names or processes in the embodiments of this application will be explained below to facilitate understanding by those skilled in the art.
[0160] 1. Sidelink (SL) communication
[0161] In wireless communication systems, terminal devices can communicate with each other through network devices, or they can communicate with each other without the aid of network devices.
[0162] The interface between network devices and terminal devices is called the Uu interface.
[0163] The interface between terminal devices is called the PC5 interface. The link between terminal devices is called a sidelink. Data transmission between terminal devices can be carried out via the sidelink without going through network equipment, which can effectively reduce communication latency.
[0164] Sidelink communication supports broadcast, unicast, and multicast.
[0165] Broadcast communication is similar to network devices (such as base stations) broadcasting system information. That is, the terminal device does not encrypt and sends broadcast service data to the outside world. Any other terminal device within the effective reception range can receive the broadcast service data if it is interested in the broadcast service.
[0166] Multicast communication refers to communication between all terminal devices within a communication group, where any terminal device within the group can send and receive data for the multicast service.
[0167] Unicast communication, similar to data communication between a terminal device and a network device (such as a base station) after establishing an RRC connection, requires the two terminal devices to first establish a PC5 connection. After establishing the PC5 connection, the two terminal devices can communicate data based on negotiated identifiers; this data can be encrypted or unencrypted. Unlike broadcast, unicast communication can only occur between two terminal devices that have established a PC5 connection. A single unicast communication on a sidelink corresponds to a pair of identifiers (IDs): a source layer-2 identifier (source L2 ID) and a destination layer-2 identifier (destination L2 ID). The header of each sidelink media access control protocol data unit (sidelink MAC PDU) contains the source L2 ID and destination L2 ID to ensure data can be transmitted from the sender to the correct receiver.
[0168] It should be noted that PC5 connection can also be described in other ways, such as connection, unicast connection, PC5 unicast link, or PC5 link. In this application, PC5 connection will be used as an example for description.
[0169] 2. Relay terminal equipment
[0170] A relay terminal device (UE) typically refers to a special type of terminal device in the field of wireless communication. It can not only receive and transmit data as a regular terminal device, but also act as a relay to forward wireless signals, thereby enhancing the coverage and quality of the wireless signal. This communication link through a relay terminal device can also be called an indirect path.
[0171] Relay terminal equipment is used in both LTE and NR systems, especially in areas with poor signal coverage, such as remote areas and inside buildings. In V2X systems, such as densely populated urban areas or long-distance communication, relay terminal equipment can be used to enhance communication signals between vehicles and between vehicles and infrastructure, especially in situations with insufficient signal coverage or obstructions. Relay terminal equipment can receive weak signals, amplify them, and retransmit them, thereby ensuring the stability and reliability of communication.
[0172] Relay terminal equipment includes two types: terminal equipment to network (NW) relay equipment and terminal equipment to terminal equipment relay equipment. Taking the terminal equipment as UE as an example, it can be understood that relay UE includes two types: UE-to-Network Relay UE (U2N Relay UE) and UE-to-UE Relay UE (U2U Relay UE).
[0173] Among them, the U2N Relay UE can receive signals from network devices (such as gNB) and forward them to other UEs, which are called U2N Remote UEs. This replaces a poor-quality link with two better-quality links to obtain higher link capacity and better coverage, thereby improving the communication quality of the U2N Remote UE.
[0174] Among them, the U2U Relay UE can receive signals from terminal devices (such as UEs) and forward them to other UEs, thereby replacing a poor-quality link with two better-quality links to obtain higher link capacity and better coverage.
[0175] 3. Sidelink UE-to-Network Relay (SL U2N Relay) technology
[0176] In some examples, such as single-hop relay scenarios, the number of relay terminal devices is one, such as a single-hop relay user equipment, denoted as Single-hop Relay UE. This can be understood as the network device (such as gNB) and the remote terminal device (such as Remote UE) only passing through one terminal device (such as Relay UE), as shown in Figure 1 or Figure 3.
[0177] In some examples, such as multi-hop relay scenarios, the number of relay terminal devices is multiple. This can be understood as the network device (such as gNB) and the remote terminal device (such as Remote UE) passing through at least two terminal devices, as shown in Figure 2 or Figure 4.
[0178] 4. U2N Relay Discovery Process
[0179] In the U2N Relay scenario, the remote terminal device (such as Remote UE) uses the discovery process to find available relay terminal devices (such as Relay UE) in the vicinity and selects a relay terminal device (such as Relay UE) to access the network.
[0180] The discovery process includes model A and model B.
[0181] In Model A, the terminal devices include announcing terminal devices and monitoring terminal devices. The announcing terminal device can be a remote terminal device, and the monitoring terminal device can be a relay terminal device. Alternatively, the announcing terminal device can be a relay terminal device, and the monitoring terminal device can be a remote terminal device. In this application, we will use an example where the announcing terminal device is a relay terminal device and the monitoring terminal device is a remote terminal device.
[0182] Taking the terminal device as a UE as an example, an announcing terminal device can be referred to as an Announcing UE, and a monitoring terminal device can be referred to as a Monitoring UE. The following text uses Announcing UE and Monitoring UE as examples to introduce Model A.
[0183] In Figure 6, UE-1 is designated as the Announcing UE, and UE-2 and UE-3 are designated as the Monitoring UE.
[0184] As shown in Figure 6, the Announcing UE broadcasts an announcement message. Optionally, the announcement message includes specific information about the Announcing UE, such as the types of services it can provide, which is used by nearby Monitoring UEs to determine whether they need the service types provided by the Announcing UE. After a nearby Monitoring UE monitors and receives the announcement message, it determines whether to use the Announcing UE as the peer UE for sidelink communication based on the service type information in the announcement message. Similar to sidelink communication, a source L2 ID and a destination L2 ID are used by the UE to send or receive the announcement message. For the announcement message, the source L2 ID is assigned by the Announcing UE itself, and the destination L2 ID is a predefined or pre-configured default destination L2 ID.
[0185] In the Model B approach, the terminal devices include a discoverer terminal device and a discoveree terminal device. The discoverer terminal device can be a remote terminal device, and the discovered terminal device can be a relay terminal device. Alternatively, the discoverer terminal device can be a relay terminal device, and the discovered terminal device can be a remote terminal device. In this application, we will use the example of a remote terminal device and a relay terminal device as an example for explanation.
[0186] Taking the terminal device as a UE as an example, the discovered terminal device can be referred to as a discoverer UE, and the discovered terminal device can be referred to as a discoveree UE. The following text uses discoverer UE and discoveree UE as examples to introduce Model B.
[0187] In Figure 7, UE-1 is the discoverer UE, and UE-2 and UE-3 are the discoveree UEs.
[0188] As shown in Figure 7, the discoverer UE broadcasts a solicitation message. Optionally, the solicitation message includes the service type that the discoverer UE is interested in. After monitoring and receiving the solicitation message, if the discoveree UE finds that it meets the service requirements of the discoverer UE, it replies with a response message. For the solicitation message, the source L2 ID is assigned by the discoverer UE, and the destination L2 ID is a predefined or pre-configured default destination L2 ID. The response message is sent by the discoveree UE to the discoverer UE, where the source L2 ID is assigned by the discoveree UE, and the destination L2 ID is the source L2 ID of the discoverer UE corresponding to the received response message. Based on the destination L2 ID in the response message, the discoverer UE receives the response message and determines that the discoveree UE corresponding to the source L2 ID can provide the requested service.
[0189] It should be noted that in the discovery process, the announcement message can also be called the discovery message. Similarly, the solicitation message and response message can also be called discovery messages.
[0190] It should be noted that the default destination L2 ID is dedicated to discovery messages.
[0191] It should be noted that the discovery process is applicable to both Single-hop Relay and Multi-hop Relay scenarios.
[0192] In the case of a multi-hop relay, if an intermediate relay UE is connected to an available multi-hop relay path, the path information can be broadcast through the discovery process for remote UEs to select and access the relay UE.
[0193] For Model A in a Multi-hop Relay scenario, taking the terminal device as a UE (User Equipment), such as an intermediate relay terminal device (Intermediate Relay UE), a relay UE (Intermediate Terminal UE), and a remote terminal device (Remote UE) as an example, the following will be introduced:
[0194] As shown in Figure 8a, the Intermediate Relay UE receives the announcement message from its Relay UE (i.e., the UE that provides relay for the Intermediate Relay UE), and triggers the transmission of the announcement message based on the PC5 connection between the announcement message and its Relay UE. The announcement message indicates the availability of multi-hop path information. Specifically, the announcement message includes multi-hop relay-related indication information to instruct the Remote UE to access via a multi-hop relay.
[0195] For Model B approach in a multi-hop relay scenario, taking the terminal device as a UE (User Equipment), such as an intermediate relay UE as the intermediate terminal device, a relay UE as the intermediate terminal device, and a remote terminal device as a remote UE as an example, the following will be introduced:
[0196] As shown in Figure 8b, the Remote UE sends a solicitation message. After receiving the solicitation message, the Intermediate Relay UE replies with a response message to establish a PC5 connection between the Remote UE and the Intermediate Relay UE. Before sending the discovery message, the Intermediate Relay UE and its Relay UE (i.e., the UE providing relay for the Intermediate Relay UE) may or may not establish a PC5 connection.
[0197] Based on the discovery process described above, remote terminal devices (such as Remote UE) can discover available intermediate relay terminal devices (such as Intermediate Relay UE) in the vicinity and select an intermediate relay terminal device (such as Intermediate Relay UE) to establish a connection in order to obtain multi-hop relay services.
[0198] In addition, there are certain constraints on the number of PC5 hops that relay terminal equipment (such as Relay UE) and remote terminal equipment (Remote UE) need to reach the network.
[0199] It should be understood that the above discovery process is used by the terminal device to determine nearby terminal devices that meet the service requirements.
[0200] 5. U2N Relay PC5 connection establishment process
[0201] Following the discovery process described above, a PC5 connection is established between the terminal device and the terminal device that meets the service requirements.
[0202] For U2N relay, after the remote terminal device (such as Remote UE) selects the relay terminal device (such as Relay UE) based on the discovery message, it needs to establish a PC5 connection with the relay terminal device (such as Relay UE). After the PC5 connection is established, the remote terminal device (such as Remote UE) can then exchange information with the network through the relay terminal device (such as Relay UE).
[0203] In the PC5 connection establishment process, the terminal devices include the initiating terminal device and the target terminal device. The initiating terminal device is the one that initiates the PC5 connection establishment process. The peer terminal device of the initiating terminal device is called the target terminal device.
[0204] It should be understood that the initiating terminal device can be a remote terminal device, and the target terminal device can be a relay terminal device. Alternatively, the initiating terminal device can be a relay terminal device, and the target terminal device can be a remote terminal device.
[0205] Understandably, as a possible example, when the discovery process is Model A, the initiating terminal device can be the monitoring terminal device, and the target terminal device can be the declaring terminal device.
[0206] It is understandable that, as another possible example, when the discovery process is Model B, the initiating terminal device can be the discovering terminal device, and the target terminal device can be the discovered terminal device.
[0207] Taking a UE as an example, the initiating UE can be denoted as the initiating UE, and the target UE can be denoted as the target UE. The following section uses the initiating UE and target UE as examples to introduce the establishment of a PC5 connection.
[0208] In Figure 9, UE-4 is the initiating UE, and UE-5 is the target UE.
[0209] As shown in Figure 9, the initiating UE sends a unicast connection establishment request to the target UE. Correspondingly, the target UE receives the unicast connection establishment request from the initiating UE. This unicast connection establishment request can be a direct communication request (DCR) message. The unicast connection establishment request includes the L2 IDs of both the initiating UE and the target UE, as well as user information (User Info). The user information includes information related to the upper application layer. After receiving the unicast connection establishment request, the target UE determines whether to accept the request based on the user information in the request: if it accepts, it replies with a direct communication accept (DCA) message to the initiating UE, as shown in Case 1 of Figure 9; otherwise, it replies with a reject message to the initiating UE, as shown in Case 2 of Figure 9.
[0210] It should be noted that the above PC5 connection establishment process can also be described in other ways, such as the unicast connection establishment process.
[0211] It should be noted that the PC5 connection establishment process can occur after the discovery process described above. Based on the discovery process, the terminal device determines a terminal device that meets the service requirements and establishes a PC5 connection with that terminal device. For example, in Model A, the monitoring UE determines the peer UE based on the information carried in the announcement message and triggers the establishment of a unicast connection with it.
[0212] It should be noted that PC5 connections are associated with relay service codes (RSCs). Each PC5 unicast link used for U2N Relay is associated with a unicast link profile, which includes the RSC; therefore, PC5 connections are associated with the RSC.
[0213] It should be noted that, in the U2N Relay scenario, RSC can be used to identify the connection services provided by the U2N Relay UE, as well as the authorized users to whom the U2N relay UE will provide services, and can optionally provide relevant security policies or information, such as information necessary for authentication and authorization between the Remote UE and the U2N Relay UE.
[0214] For Remote UEs, if existing unicast links (one or more) were previously established using an RSC different from the RSC required by the Remote UE, or were established without using any RSC, the Remote UE and the U2N Relay UE should establish a separate PC5 connection. This separate PC5 connection is established using an RSC that does not exist in the unicast link configuration file corresponding to the existing unicast link. Therefore, it can be understood that different RSCs correspond to different PC5 connections.
[0215] In Model A, the discovery message of a relay terminal device (such as a Relay UE) includes an RSC to indicate the RSCs supported by the relay terminal device (such as a Relay UE). The remote terminal device (such as a Remote UE) selects a relay terminal device (such as a Relay UE) that supports its own RSC based on the RSC in the discovery message.
[0216] In Model B, the discovery message from a remote terminal device (such as a Remote UE) includes an RSC to indicate which RSCs the remote terminal device (such as a Remote UE) supports. Only relay terminal devices (such as Relay UEs) that support this RSC will respond with a response message.
[0217] It is worth noting that terminal devices that support multiple RSCs can send multiple discovery messages, with each discovery message corresponding to one RSC. Different RSCs require the establishment of different PC5 connections.
[0218] Based on the above process, for the Multi-hop Relay scenario, when establishing a multi-hop PC5 connection using Model B, all relay terminal devices (such as Relay UEs) on the same path must support the RSC of the remote terminal device (such as Remote UE) to complete the establishment of the multi-hop PC5 connection, as shown in Figure 2 or Figure 4. Conversely, if at least one of the multiple relay terminal devices (such as Relay UEs) on the same path does not support the RSC of the remote terminal device (such as Remote UE), the multi-hop PC5 connection cannot be established. Consequently, the remote terminal device (such as Remote UE) re-initiates the discovery process, resulting in a large delay in PC5 connection establishment.
[0219] Taking Figure 10 as an example, the PC5 connection associated with RSC1 is shown by the thick solid arrow, and the PC5 connection associated with RSC2 is shown by the thin solid arrow. Both relay terminal device 1 and relay terminal device 4 support RSC1 and RSC2. In the discovery process, the remote terminal device first receives the discovery message from relay terminal device 1. Therefore, the remote terminal device initiates the PC5 connection establishment process with relay terminal device 1. However, relay terminal devices 2 and 3 do not support RSC2. As a result, the connection establishment between relay terminal device 1 and relay terminal device 2 associated with RSC2 fails, and the connection establishment between relay terminal device 2 and relay terminal device 3 associated with RSC2 also fails, ultimately causing the remote terminal device to be unable to establish a connection with the NW. In this case, the remote terminal device restarts the discovery process. If it receives the discovery message from relay terminal device 4, it initiates the PC5 connection establishment process with relay terminal device 4. This results in a large delay in the establishment of the PC5 connection for the remote terminal device.
[0220] In view of this, this application provides a communication method 1100. This communication method 1100 can be applied to the systems shown in Figures 1-5.
[0221] The communication method 1100 proposed in this application will be described in detail below with reference to Figure 11:
[0222] S1101, The first terminal device obtains the first information.
[0223] For example, S1101 includes: the first terminal device determining the first information.
[0224] Wherein, the first information indicates the first service, the first service is a service supported by the first terminal device, and the first service is also a service supported by the second terminal device (in other words, the first service is a service supported by both the first and second terminal devices). It can be understood that the services supported by the first terminal device are denoted as set 1, the services supported by the second terminal device are denoted as set 2, and the first service is the intersection of set 1 and set 2.
[0225] The second terminal device is used to provide relay services to the first terminal device. This can be understood as the second terminal device being the upstream terminal device of the first terminal device, or the first terminal device being the downstream terminal device of the second terminal device.
[0226] The first terminal device and the second terminal device can be referred to in Figures 1-5, and will not be described again.
[0227] For example, the first information includes RSC1, which identifies the first service.
[0228] It should be understood that the first service can be a relay service or a service other than a relay service. In this application, we will use the example of the first service being a relay service for illustration.
[0229] It should be understood that when different RSCs identify different services, such as a relay service corresponding to one RSC, the first piece of information is an RSC. Of course, when the first piece of information consists of multiple RSCs, the form of the first piece of information can be various, such as an RSC list or an RSC set, without limitation.
[0230] It should be understood that, for the first service, the first service is a service supported by a terminal device (such as the first terminal device), and the first service is a service supported by a relay terminal device (such as the second terminal device) of that terminal device. Recursively, this can be understood as the first service being a service supported by the first terminal device, and the first service being a service supported by each hop terminal device from the first terminal device to the first network device; or, the first service being a service supported by the first terminal device, and the first service being a service supported by the intermediate relay terminal devices (if any) and the last relay terminal device of the first terminal device.
[0231] For the first terminal device, after obtaining the first information, it executes S1102:
[0232] S1102, The first terminal device sends the first information.
[0233] The first piece of information can be found in the description of S1101, and will not be repeated here.
[0234] The first information is associated with the first connection. This can be understood as the first information being used by the (third terminal device) to establish the first connection, as detailed in the description of S1103, which will not be elaborated here.
[0235] The first connection is the connection between the first terminal device and the third terminal device.
[0236] The first terminal device is used to provide relay services to the third terminal device. This can be understood as the third terminal device being the next-hop terminal device of the first terminal device, or the first terminal device being the previous-hop terminal device of the third terminal device. Furthermore, the first connection can be understood as the next-hop connection of the first terminal device.
[0237] The first connection is associated with the first service. This can be understood as the first connection being used to transmit data for the first service.
[0238] Optionally, the first information is included in discovery message 1 or a dedicated message.
[0239] For example, message 1 may include an announcement message, as illustrated in Figure 6. In this case, the first terminal device acts as the announcing terminal device.
[0240] For example, discovery message 1 includes a request message, as illustrated in Figure 7. In this case, the first terminal device acts as the discovery terminal device.
[0241] For example, discovery message 1 includes a response message, as illustrated in Figure 7. In this case, the first terminal device is considered the discovered terminal device.
[0242] It should be understood that when the first service is a single service, the number of discovery messages 1 is one. Of course, when there are multiple services, the number of discovery messages 1 can be one or more. When the number of discovery messages 1 is multiple, the number of discovery messages 1 is the same as the number of services, and they correspond one-to-one.
[0243] Optionally, the first message can be sent via broadcast or unicast.
[0244] For example, the first terminal device broadcasts first information. Correspondingly, if the third terminal device is within the coverage area of the first information, it receives the first information from the first terminal device, as illustrated in Figure 6. In this case, the first terminal device acts as the broadcasting terminal device, and the third terminal device acts as the monitoring terminal device.
[0245] For example, the first terminal device sends first information to the third terminal device. Correspondingly, the third terminal device receives the first information from the first terminal device, as illustrated in Figure 7. In this case, one of the first and third terminal devices acts as the discovering terminal device, and the other terminal device acts as the discovered terminal device.
[0246] Based on S1101 and S1102, for the first terminal device, if a first service exists, the first service is a service supported by the first terminal device, and the first service is a service supported by the terminal device above the first terminal device (such as the second terminal device), then the first terminal device sends first information. The first information indicates the first service.
[0247] For the third terminal device, after receiving the first information, it executes S1103:
[0248] S1103. The third terminal device establishes a first connection based on the first information.
[0249] The third terminal device can be referred to in Figures 1-5, and will not be described in detail here.
[0250] The services supported by the third terminal device are included in the first service. Alternatively, the services supported by the third terminal device are the first service.
[0251] The first connection is associated with the first service, and the first connection is the connection between the first terminal device and the third terminal device.
[0252] Establishing the first connection can be understood as initiating the establishment of the first connection.
[0253] For example, after receiving the first information, if the third terminal device determines that condition 1 is met based on the first information, it initiates the establishment of the first connection. Condition 1 includes: the services supported by the third terminal device are included in the first service. It should be understood that condition 1 also includes other conditions, such as the maximum number of hops in a multi-hop relay not being reached. In this application, meeting condition 1 means meeting all the conditions of condition 1.
[0254] It should be understood that, for the third terminal device, after receiving the first information, if the service supported by the third terminal device is not included in the first service, the third terminal device will not establish the first connection. For example, the third terminal device may re-initiate the discovery process to reduce connection establishment latency.
[0255] As described above, the first service is a service supported by the first terminal device and also by the terminal device preceding the first terminal device (such as the second terminal device). In this case, the first terminal device sends first information to instruct the first service, so that the next-hop terminal device (such as the third terminal device) of the first terminal device can establish a first connection based on the first information. This reduces the phenomenon of multi-hop connection establishment failure due to some relay terminal devices on the same path not supporting the first service. Correspondingly, the probability of the next-hop terminal device (such as the third terminal device) of the first terminal device re-initiating the discovery process is low, which helps to reduce connection establishment latency.
[0256] In some embodiments, the communication method 1100 of this application further includes: a first terminal device receiving second information from a second terminal device. The second information indicates a second service, which is a service supported by the second terminal device and is also a service supported by a fourth terminal device (in other words, the second service is a service supported by both the second and fourth terminal devices), and the fourth terminal device is used to provide relay services to the second terminal device, the second service including the first service.
[0257] Regarding the second service, it can be understood that the services supported by the second terminal device are denoted as set 2, the services supported by the fourth terminal device are denoted as set 3, and the second service is the intersection of set 2 and set 3.
[0258] The fourth terminal device is used to provide relay services to the second terminal device. This can be understood as the fourth terminal device being the upstream terminal device of the second terminal device, or the second terminal device being the downstream terminal device of the fourth terminal device.
[0259] It should be understood that, regarding the second service, the second service is a service supported by a terminal device (such as the second terminal device), and the second service is a service supported by a relay terminal device (such as the fourth terminal device) of that terminal device. Recursively, this can be understood as the second service being a service supported by the second terminal device, and the second service being a service supported by each hop terminal device from the second terminal device to the first network device; or, the second service being a service supported by the second terminal device, and the second service being a service supported by the intermediate relay terminal devices (if any) and the last relay terminal device of the second terminal device.
[0260] Optionally, the second information may be included in discovery message 2 or a dedicated message. For example, discovery message 2 may include an announcement message, a request message, or a response message, as described in S1102, and will not be repeated here.
[0261] Optionally, the second information can be sent via broadcast or unicast, as described in section S1102, and will not be repeated here.
[0262] For the first terminal device, after receiving the second information, it executes S1101. In this case, S1101 includes: the first terminal device determining the first information based on the second information. This can be understood as taking the service supported by the first terminal device in the second service as the first service.
[0263] In other words, the first terminal device obtains the second service from the previous hop terminal device (such as the second terminal device), and then uses the services it supports in the second service as the first service. In this way, the first service is the service supported by the first terminal device, and the first service is the service supported by each hop terminal device from the first terminal device to the first network device, so that the next hop terminal device of the first terminal device (such as the third terminal device) can establish a multi-hop connection associated with the first service as successfully as possible.
[0264] In some embodiments, the communication method 1100 of this application further includes: a first terminal device establishing a second connection. The second connection is associated with a first service, and is a connection between the first terminal device and the second terminal device.
[0265] The second connection can be understood as the previous hop connection of the first terminal device.
[0266] Establishing a second connection can be understood as initiating the establishment of a second connection.
[0267] The second connection is associated with the first service, which can be understood as the second connection being used to transmit data from the first service.
[0268] For example, for the first terminal device, if condition 2 is met, the first terminal device initiates the establishment of the second connection. Condition 2 includes: the services supported by the first terminal device are included in the second service. It should be understood that condition 2 also includes other conditions, such as the maximum number of hops in a multi-hop relay not being reached. In this application, meeting condition 2 means meeting all the conditions of condition 2.
[0269] It should be understood that the initiation time of the second connection establishment can be earlier than, later than, or the same as the initiation time of the first connection establishment. In this application, we will take the example where the initiation time of the second connection establishment is later than the initiation time of the first connection establishment as an example. For example, for the first terminal device, if the first terminal device determines that the first connection has been established, it will initiate the establishment of the second connection. This can be understood as condition 2 also including: the first connection has been established. Or, condition 2 also includes: the next-hop connection of the first terminal device (such as the first connection) has been established.
[0270] In some embodiments, S1103 includes: when the first priority is higher than the second priority, the third terminal device establishes a first connection.
[0271] Wherein, the first priority indicates the priority for establishing the first connection, and the second priority indicates the priority for establishing the third connection. The third connection is a connection between the fifth terminal device and the third terminal device. The first service is also a service supported by the fifth terminal device, and the first service is also a service supported by the sixth terminal device, which is used to provide relay services to the fifth terminal device.
[0272] Taking Figure 12 as an example, the first service is identified by RSC1, and the first and third connections are shown by the dashed arrows in Figure 12. Since the first priority is higher than the second priority, the third terminal device initiates the establishment of the first connection.
[0273] It should be added that, in this application, the priority is set according to certain parameters.
[0274] For example, priority can be set based on the establishment status of the corresponding RSC connection.
[0275] Taking the first terminal device as an example, if the first terminal device has already established a connection corresponding to RSC1, as shown in Figure 12, then the higher the priority, the greater the likelihood that the first terminal device will act as a relay terminal device. This increases the number of next-hop terminal devices available for the first terminal device, thereby enabling the first terminal device to provide relay services to as many terminal devices as possible.
[0276] Taking the fifth terminal device as an example, if the fifth terminal device has not established a connection corresponding to RSC1, as shown in Figure 12, then the second priority is lower. Thus, the likelihood of the fifth terminal device acting as a relay terminal device decreases, reducing the number of next-hop terminal devices for the fifth terminal device, thereby enabling the fifth terminal device to provide relay services to as few terminal devices as possible.
[0277] For example, priorities can be set based on the number of connections already established by the terminal devices.
[0278] Taking the first terminal device as an example, the more connections the first terminal device has established, the lower its first priority. This reduces the likelihood of the first terminal device acting as a relay terminal device, thus decreasing the number of next-hop terminal devices and allowing the first terminal device to provide relay services to as few terminal devices as possible. Conversely, the fewer connections the first terminal device has established, the higher its first priority. This increases the likelihood of the first terminal device acting as a relay terminal device, thus increasing the number of next-hop terminal devices and allowing the first terminal device to provide relay services to as many terminal devices as possible.
[0279] Taking the fifth terminal device as an example, the more connections the fifth terminal device has established, the lower its second priority. This reduces the likelihood of the fifth terminal device acting as a relay terminal, thus decreasing the number of next-hop terminals and allowing it to provide relay services to as few terminals as possible. Conversely, the fewer connections the fifth terminal device has established, the higher its second priority. This increases the likelihood of the fifth terminal device acting as a relay terminal, increasing the number of next-hop terminals and allowing it to provide relay services to as many terminals as possible.
[0280] In other words, different connections have different establishment priorities. Therefore, the first terminal device determines which connection to establish first based on the establishment priority of different connections in order to improve the rationality of connection establishment.
[0281] Optionally, the fifth terminal device sends third information. This third information indicates the first service. The first service is also a service supported by the fifth terminal device, and also a service supported by the sixth terminal device (in other words, the first service is a service supported by both the fifth and sixth terminal devices). Accordingly, the first terminal device receives the third information from the fifth terminal device. Optionally, the third information is included in discovery message 3 or a dedicated message. Optionally, the third information is sent via broadcast or unicast, as described in sections S1101-S1102, and will not be repeated here.
[0282] Optionally, the first terminal device sends a first priority. Correspondingly, the third terminal device receives the first priority from the first terminal device, wherein the first priority indicates the priority for establishing the first connection. The third terminal device determines whether to establish the first connection based on the first priority to improve the rationality of connection establishment, as detailed in the preceding paragraphs and will not be repeated here.
[0283] Optionally, the fifth terminal device sends a second priority. Correspondingly, the third terminal device receives the second priority from the fifth terminal device, wherein the second priority indicates the priority for establishing the third connection. The third terminal device determines whether to establish the third connection based on the second priority to improve the rationality of connection establishment, as detailed in the preceding paragraphs and will not be repeated here.
[0284] It should be understood that the following supplements are made to the first priority in this application:
[0285] Optionally, the first priority is included in discovery message 1 or a dedicated message.
[0286] Optionally, the first priority and the first information can be carried in the same message or in different messages, without limitation.
[0287] Optionally, the first priority transmission method is broadcast or unicast.
[0288] Optionally, the method of sending the first priority and the first information can be the same or different, and there is no limitation.
[0289] It should be understood that the following supplements are made to the second priority in this application:
[0290] Optionally, the second priority is included in discovery message 3 or a dedicated message.
[0291] Optionally, the second priority and the third priority information can be carried in the same message or in different messages, without limitation.
[0292] Optionally, the second priority can be sent via broadcast or unicast.
[0293] Optionally, the methods for sending the second priority and third priority information can be the same or different, and are not limited.
[0294] It should be understood that in the communication method 1100 of this application, the example given is the existence of a relay terminal device (i.e., a second terminal device) for the first terminal device. That is to say, the previous hop terminal device (i.e., the second terminal device) for the first terminal device exists; in other words, the first terminal device is an intermediate relay terminal device, not the last relay terminal device.
[0295] It should be understood that when the first terminal device is the last relay terminal device, the first terminal device is connected to the first network device. In this case, the first service is the service supported by the first terminal device.
[0296] Next, we will introduce the communication method 1100 of this application with an example in the context of a four-hop relay scenario.
[0297] In Figure 13, terminal device a is the third terminal device in Figure 11, terminal device b is the first terminal device in Figure 11, and terminal device c is the second terminal device in Figure 11.
[0298] In Figure 13, terminal device a is the remote terminal device, terminal device b is the first relay terminal device, terminal device c is the second relay terminal device, and terminal device d is the last relay terminal device. A PC5 connection has been established between terminal devices b, c, and d, and this PC5 connection is associated with service X. Service X can be the same as or different from the first service; for example, they can be different relay services.
[0299] Taking Model A as an example, the operation is as shown in Figure 13:
[0300] S1301, Terminal device b broadcasts announcement message a.
[0301] Announcement message a includes RSC1. RSC1 identifies the first service. The first service is a service supported by terminal device b, and the first service is a service supported by terminal device c.
[0302] It should be understood that terminal device b first records the following information: all RSCs supported by all terminal devices preceding terminal device b. Only when terminal device b and all terminal devices preceding terminal device b support one or more of these RSCs will the information be carried in announcement message a and broadcast. Here, "all terminal devices preceding terminal device b" can be understood as all intermediate relay terminal devices and the last relay terminal device before terminal device b, such as terminal device c and terminal device d.
[0303] If the discovery process executed by terminal device b and terminal device c is Model A:
[0304] Terminal device b receives an announcement message from terminal device c and records the RSC carried in the announcement message. These RSCs are RSCs supported by all terminal devices prior to terminal device b.
[0305] If the discovery process executed by terminal device b and terminal device c is Model B:
[0306] Terminal device b receives a response message from terminal device c and records the RSC carried in the response message. These RSCs are RSCs supported by all terminal devices prior to terminal device b.
[0307] This can be understood as follows: when terminal device b and terminal device c execute the discovery process, terminal device b is the third terminal device in Figure 11, terminal device c is the first terminal device in Figure 11, and terminal device d is the second terminal device in Figure 11.
[0308] Alternatively, when introducing dedicated messages:
[0309] Terminal device b receives a special message from terminal device c and records the RSC carried in the special message. These RSCs are the same RSCs that all terminal devices before terminal device b support.
[0310] For terminal device a, after receiving announcement message a, terminal device a executes S1302:
[0311] S1302. If condition 1 is met according to announcement message a, then terminal device a initiates PC5 connection establishment.
[0312] Among them, condition 1 includes at least: the services supported by terminal device a are included in the first service.
[0313] The PC5 connection initiated by terminal device a refers to the PC5 connection between terminal device a and terminal device b, such as the first connection mentioned above, which is associated with the first service.
[0314] It should be noted that if the aforementioned service X is the same as the first service, it means that a PC5 connection associated with the first service has been established between terminal device b and terminal device c, and a PC5 connection associated with the first service has been established between terminal device c and terminal device d. In this case, for the first service, the multi-hop connection from terminal device a to network device a is completed.
[0315] It should be noted that if the aforementioned service X differs from the first service, this application also includes S1303 and S1304:
[0316] S1303. If condition 2 is met, terminal device b initiates PC5 connection establishment.
[0317] Condition 2 includes at least the following: the services supported by terminal device b include those supported by all terminal devices preceding terminal device b. Here, "all terminal devices preceding terminal device b" can be understood as all intermediate relay terminal devices and the last relay terminal device before terminal device b, such as terminal device c and terminal device d.
[0318] The PC5 connection initiated by terminal device b refers to the PC5 connection between terminal device b and terminal device c, such as the second connection mentioned above, which is associated with the first service.
[0319] S1304. If condition 3 is met, terminal device c initiates PC5 connection establishment.
[0320] Condition 3 includes at least the following: the services supported by terminal device c include those supported by all terminal devices preceding terminal device c. Here, "all terminal devices preceding terminal device c" can be understood as all intermediate relay terminal devices and the last relay terminal device before terminal device c, such as terminal device d. It should be understood that condition 3 also includes other conditions, such as not reaching the maximum hop count limit for multi-hop relays. Meeting condition 3 means satisfying all conditions of condition 3.
[0321] The PC5 connection initiated by terminal device c refers to the PC5 connection between terminal device c and terminal device d, which is associated with the first service.
[0322] Based on S1302-S1304, it can be seen that for the first service, the multi-hop connection from terminal device a to network device a is established.
[0323] Taking Model B as an example, the operation is as shown in Figure 13:
[0324] S1311. Terminal device a sends request message a to terminal device b. Correspondingly, terminal device b receives request message a from terminal device a.
[0325] In this context, request message a requests the establishment of a PC5 connection, and the PC5 connection is a PC5 connection between terminal device a and terminal device b, as described in the first connection above, and the PC5 connection is associated with the first service.
[0326] It should be noted that if the aforementioned service X is the same as the first service, it means that a PC5 connection associated with the first service has been established between terminal device b and terminal device c, and a PC5 connection associated with the first service has been established between terminal device c and terminal device d. In this case, terminal device b executes S1316.
[0327] It should be noted that if the aforementioned service X differs from the first service, this application further includes the following operations:
[0328] S1312, Terminal device b sends request message b to terminal device c. Correspondingly, terminal device c receives request message b from terminal device b.
[0329] In this context, request message b requests the establishment of a PC5 connection, and this PC5 connection is a PC5 connection between terminal device b and terminal device c, as described in the second connection above. This PC5 connection is associated with the first service.
[0330] For example, when terminal device b supports the first service, terminal device b sends a request message b to terminal device c.
[0331] It should be understood that if terminal device b does not support the first service, terminal device b will not send request message b.
[0332] S1313, Terminal device c sends a request message c to terminal device d. Correspondingly, terminal device d receives the request message c from terminal device c.
[0333] In this context, request message c requests the establishment of a PC5 connection, and the PC5 connection is a PC5 connection between terminal device c and terminal device d, and the PC5 connection is associated with the first service.
[0334] For example, when terminal device c supports the first service, terminal device c sends a request message c to terminal device d.
[0335] It should be understood that if terminal device c does not support the first service, terminal device c will not send request message c.
[0336] S1314. Terminal device d sends a response message c to terminal device c. Correspondingly, terminal device c receives the response message c from terminal device d.
[0337] The response message c confirms the establishment of a PC5 connection, and the PC5 connection is a PC5 connection between terminal device c and terminal device d, and the PC5 connection is associated with the first service.
[0338] For example, when terminal device d supports the first service, terminal device d sends a response message c to terminal device c. The response message c indicates service c, which is a service supported by terminal device d.
[0339] It should be understood that if terminal device d does not support the first service, terminal device d will not send a response message c.
[0340] S1315, Terminal device c sends response message b to terminal device b. Correspondingly, terminal device b receives response message b from terminal device c.
[0341] In this case, response message b confirms the establishment of a PC5 connection, and the PC5 connection is a PC5 connection between terminal device b and terminal device c, as described in the second connection above, and the PC5 connection is associated with the first service.
[0342] For example, when the service supported by terminal device c is included in the service indicated by response message c, terminal device c sends response message b to terminal device b. Response message b indicates service b, which is a service supported by terminal device c, and service b is also a service supported by terminal device d, such as a second service. Service b is included in service c.
[0343] S1316, Terminal device b sends response message a to terminal device a. Correspondingly, terminal device a receives response message a from terminal device b.
[0344] In this case, response message a confirms the establishment of a PC5 connection, and the PC5 connection is a PC5 connection between terminal device a and terminal device b, as described in the first connection above, and the PC5 connection is associated with the first service.
[0345] For example, when the service supported by terminal device b is included in the service indicated by response message b, terminal device b sends response message a to terminal device a. Response message a indicates service a, which is a service supported by terminal device b, and service a is also a service supported by terminal device c, such as the first service. Service a is included in service b.
[0346] For terminal device a, after receiving response message a, terminal device a executes S1317:
[0347] S1317. If condition 1 is met, terminal device a initiates PC5 connection establishment.
[0348] It should be noted that if the aforementioned service X differs from the first service, this application also includes S1318 and S1319:
[0349] S1318. If condition 2 is met, terminal device b initiates PC5 connection establishment.
[0350] S1319. If condition 3 is met, terminal device c initiates PC5 connection establishment.
[0351] For S1317-S1319, please refer to the introduction of S1302-S1304, and will not be repeated here.
[0352] Based on S1317-S1319, it can be seen that for the first service, the multi-hop connection from terminal device a to network device a is established.
[0353] Based on the above introduction, for the first service, after the multi-hop connection from terminal device a to network device a is established, terminal device a sends data to network device a.
[0354] In related technologies, for the Single-hop Relay scenario, there is no situation where remote terminal devices (such as Remote UE) reuse PC5 connections. Separate PC5 links are established between the relay terminal device (such as Relay UE) and different remote terminal devices (such as Remote UE), as shown in Figure 3.
[0355] In related technologies, for multi-hop relay scenarios, when the same relay terminal device (such as a Relay UE) supports different remote terminal devices (such as Remote UEs), and the different remote terminal devices (such as Remote UEs) support different RSCs, multiple PC5 connections must be established between the relay terminal devices (such as Relay UEs) simultaneously. Different PC5 connections correspond to different RSCs, as shown in Figure 4.
[0356] However, based on the discovery process described above, multiple PC5 connections can easily be established simultaneously between the same relay terminal devices (such as Relay UEs), affecting communication performance. For multi-hop relay scenarios, minimizing the occurrence of multiple PC5 connections between two terminal devices is a pressing technical problem that needs to be solved.
[0357] In view of this, this application provides a communication method 1400. This communication method 1400 can be applied to the systems shown in Figures 1-5.
[0358] The communication method 1400 proposed in this application will be described in detail below with reference to Figure 14:
[0359] S1401, The seventh terminal device obtains the fourth information.
[0360] For example, S1401 includes: the seventh terminal device determines the fourth information.
[0361] The fourth piece of information indicates the connection status (or connection condition) between the seventh terminal device and the eighth terminal device, as shown in cases 1-3 below:
[0362] Scenario 1: A connection exists between the seventh terminal device and the eighth terminal device, and the associated service is a third-party service. This can be understood as a connection existing between the seventh and eighth terminal devices, and only associated with a third-party service. Alternatively, there is only one connection between the seventh and eighth terminal devices, and this connection is associated with a third-party service.
[0363] Case 2: There is no connection between the seventh terminal device and the eighth terminal device.
[0364] Case 3: A connection exists between the seventh terminal device and the eighth terminal device, and the associated service does not include the third service. For example, it may be associated with one or more services other than the third service.
[0365] The third service is the service supported by the ninth terminal device. The seventh terminal device is used to provide relay services for the ninth terminal device. This can be understood as the seventh terminal device being the upstream terminal device of the ninth terminal device, or the ninth terminal device being the downstream terminal device of the seventh terminal device.
[0366] The eighth terminal device is used to provide relay services to the seventh terminal device. This can be understood as the eighth terminal device being the previous hop terminal device of the seventh terminal device, or the seventh terminal device being the next hop terminal device of the eighth terminal device.
[0367] The seventh, eighth, and ninth terminal devices can be referred to in Figures 1-5, and will not be described in detail here.
[0368] For the seventh terminal device, after obtaining the fourth information, it executes S1402:
[0369] S1402, the seventh terminal device sends the first message based on the fourth information.
[0370] The first message is associated with the fourth connection. This can be understood as the first message being used by the (ninth terminal device) to establish the fourth connection, as detailed in the description of S1403, which will not be elaborated here.
[0371] The fourth connection is the connection between the seventh terminal device and the ninth terminal device. Furthermore, the fourth connection can be understood as the next-hop connection for the seventh terminal device.
[0372] The fourth connection is associated with the third service, which can be understood as the fourth connection being used to transmit data for the third service.
[0373] For example, S1402 includes:
[0374] Corresponding to scenario 1 above, where the fourth information indicates that a connection exists between the seventh and eighth terminal devices, and the associated service is the third service, the seventh terminal device sends the first message. This can be understood as the seventh terminal device sending the first message when a connection exists between the seventh and eighth terminal devices, and the connection is only for the third service (supported by the ninth terminal device).
[0375] Corresponding to situation 2 above, that is, when the fourth information indicates that the connection between the seventh terminal device and the eighth terminal device does not exist, the seventh terminal device sends the first message.
[0376] It should be understood that, corresponding to situation 3 above, that is, when the fourth information indicates that a connection exists between the seventh terminal device and the eighth terminal device, and the associated service does not include the third service (supported by the ninth terminal device), the seventh terminal device does not send the first message.
[0377] Optionally, the first message can be sent via broadcast or unicast.
[0378] For example, the seventh terminal device broadcasts the first message. Correspondingly, if the ninth terminal device is within the coverage area of the first message, it receives the first message from the seventh terminal device, as illustrated in Figure 6. In this case, the seventh terminal device acts as the announcing terminal device, and the ninth terminal device acts as the monitoring terminal device.
[0379] For example, the seventh terminal device sends a first message to the ninth terminal device. Correspondingly, the ninth terminal device receives the first message from the seventh terminal device, as illustrated in Figure 7. In this case, one of the seventh and ninth terminal devices acts as the discovering terminal device, and the other acts as the discovered terminal device.
[0380] Optionally, the first message is a dedicated message.
[0381] Optionally, the first message is the discovery message.
[0382] For example, the first message is an announcement message, as shown in Figure 6. In this case, the seventh terminal device acts as the announcing terminal device.
[0383] For example, the first message might be a request message, as illustrated in Figure 7. In this case, the seventh terminal device acts as the discovering terminal device.
[0384] For example, the first message is a response message, as illustrated in Figure 7. In this case, the seventh terminal device acts as the discovered terminal device, as detailed below:
[0385] The ninth terminal device sends a first request to the seventh terminal device. Correspondingly, the seventh terminal device receives the first request from the ninth terminal device. The first request is used to request the establishment of a fourth connection. The fourth connection is associated with a third service. Exemplarily, the third service is identified by RSC3. The first request includes RSC3 to request the establishment of the fourth connection, and the fourth connection is associated with the third service identified by RSC3. It should be understood that the first request may also be described in other ways, such as a request message or a solicitation message.
[0386] Then, after receiving the first request, the seventh terminal device executes S1402, which includes: the seventh terminal device sending a first response to the ninth terminal device based on the fourth information and the first request. Correspondingly, the ninth terminal device receives the first response from the seventh terminal device. The first response confirms the establishment of a fourth connection. The first message includes the first response. It should be understood that the first response may also be described in other ways, such as a response message.
[0387] As can be seen from S1401 and S1402, the seventh terminal device determines whether to send the first message based on the connection status between the seventh terminal device and the eighth terminal device. Since the first message is associated with the fourth connection, associating the connection status between the seventh terminal device and the eighth terminal device with whether the fourth connection is established helps to reduce the phenomenon of multiple connections between the two terminal devices.
[0388] For example, if the connection between the seventh terminal device and the eighth terminal device does not exist, the seventh terminal device sends a first message to establish a fourth connection between the seventh terminal device and the ninth terminal device. Since the connection between the seventh terminal device and the eighth terminal device does not exist, there is no phenomenon of multiple connections between the two terminal devices.
[0389] For example, if a connection exists between the seventh terminal device and the eighth terminal device, and the associated service is a third service, then the connection between the seventh terminal device and the eighth terminal device is considered to be a single connection. Therefore, the seventh terminal device sends a first message to establish a fourth connection between the seventh terminal device and the ninth terminal device. Since the connection between the seventh terminal device and the eighth terminal device is a single connection, there is no phenomenon of multiple connections between the two terminal devices.
[0390] For example, if a connection exists between the seventh terminal device and the eighth terminal device, and the associated service does not include the third service, it means that the connection between the seventh terminal device and the eighth terminal device is not associated with the third service. Therefore, the seventh terminal device does not send the first message so that the fourth connection between the seventh terminal device and the ninth terminal device is not established, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0391] In some embodiments, for the ninth terminal device, after receiving the first message, the ninth terminal device executes S1403:
[0392] S1403, The ninth terminal device establishes a fourth connection based on the first message.
[0393] Among them, the ninth terminal device supports the third service.
[0394] Among them, the fourth connection is associated with the third service, and the fourth connection is the connection between the seventh terminal device and the ninth terminal device.
[0395] Establishing the fourth connection can be understood as initiating the establishment of the fourth connection.
[0396] For example, for the ninth terminal device, after receiving the first message, if condition 4 is met, then the establishment of the fourth connection is initiated. Condition 4 includes: the service supported by the ninth terminal device is the third service. It should be understood that condition 4 also includes other conditions, such as the maximum number of hops in a multi-hop relay not being reached. Meeting condition 4 means meeting all the conditions of condition 4.
[0397] In some embodiments, when the connection between the seventh terminal device and the eighth terminal device does not exist, the seventh terminal device sends a second request based on the fourth information and the first request, for example, sending a second request to the eighth terminal device. Correspondingly, the eighth terminal device receives the second request from the seventh terminal device. The second request is used to request the establishment of a fifth connection, which is the connection between the seventh terminal device and the eighth terminal device.
[0398] For the eighth terminal device, it sends a second response based on the connection status between itself and the thirteenth terminal device. The thirteenth terminal device provides relay services to the eighth terminal device. The connection status (or connection condition) between the eighth and thirteenth terminal devices is as follows: Cases 4-6 are provided below.
[0399] Scenario 4: A connection exists between the eighth terminal device and the thirteenth terminal device, and the associated service is a third-party service. This can be understood as a connection existing between the eighth and thirteenth terminal devices, and only associated with a third-party service. Alternatively, there is a single connection between the eighth and thirteenth terminal devices, and this connection is associated with a third-party service.
[0400] Case 5: There is no connection between the eighth terminal device and the thirteenth terminal device.
[0401] Case 6: A connection exists between the eighth terminal device and the thirteenth terminal device, and the associated service does not include the third service. For example, it may be associated with one or more services other than the third service.
[0402] Corresponding to situation 4 above, that is, when a connection exists between the eighth terminal device and the thirteenth terminal device, and the connection is only associated with the third service (supported by the ninth terminal device), the eighth terminal device sends a second response.
[0403] Corresponding to situation 5 above, that is, when the connection between the eighth terminal device and the thirteenth terminal device does not exist, the eighth terminal device sends a second response.
[0404] It should be understood that, corresponding to situation 6 above, that is, when a connection exists between the eighth terminal device and the thirteenth terminal device, and the associated service does not include the third service (supported by the ninth terminal device), the eighth terminal device does not send a second response.
[0405] It should be added that, as can be seen from the above introduction, when replying to response messages (such as the seventh terminal device replying to the first response, or the eighth terminal device replying to the second response), the seventh terminal device and the eighth terminal device handle the message in a similar way, and both determine whether to reply to the response message based on the connection status between themselves and their relay terminal devices.
[0406] It should be added that when a connection exists between the seventh terminal device and the eighth terminal device, and the associated service is a third service, the seventh terminal device does not send a second request.
[0407] It should be added that when a connection exists between the seventh terminal device and the eighth terminal device, and the associated service does not include the third service, the seventh terminal device will not send the first message or the second request.
[0408] In some embodiments, the seventh terminal device sends fourth information. This fourth information indicates the connection status between the seventh terminal device and the eighth terminal device, as described in S1401, and will not be repeated here.
[0409] Optionally, the fourth information may be included in the first message or a dedicated message.
[0410] Optionally, the message containing the fourth message may be the same as or different from the first message; there is no limitation on this.
[0411] Optionally, the fourth message can be sent via broadcast or unicast.
[0412] Optionally, the fourth message can be sent in the same way as the first message, or in a different way, without limitation.
[0413] It should be understood that for the ninth terminal device, if the first message is not received, the fourth connection cannot be established. That is to say, if the connection cannot be established based on the communication method 1400 of this application, the communication method 1100 of this application can be used to establish the connection.
[0414] Next, we will introduce the communication method 1400 of this application with an example in the context of a four-hop relay scenario.
[0415] In Figure 15, terminal device e is the ninth terminal device in Figure 14, terminal device f is the seventh terminal device in Figure 14, and terminal device g is the eighth terminal device in Figure 14.
[0416] In Figure 15, terminal device e is the remote terminal device, terminal device f is the first relay terminal device, terminal device g is the second relay terminal device, and terminal device h is the last relay terminal device.
[0417] Taking Model B as an example, the operation is as shown in Figure 15:
[0418] S1511, Terminal device e sends a request message e to terminal device f. Correspondingly, terminal device f receives the request message e from terminal device e.
[0419] In this context, request message e requests the establishment of a PC5 connection, which is a PC5 connection between terminal device e and terminal device f, such as a fourth connection, and this PC5 connection is associated with a third service.
[0420] S1512, Terminal device f sends a request message f to terminal device g. Correspondingly, terminal device g receives the request message f from terminal device f.
[0421] Among them, the request message f requests to establish a PC5 connection, which is a PC5 connection between terminal device f and terminal device g, such as a fifth connection, and this PC5 connection is associated with a third service.
[0422] For example, when the PC5 connection (such as the fifth connection) between terminal device f and terminal device g is not present, terminal device f sends a request message f to terminal device g.
[0423] S1513, Terminal device g sends a request message g to terminal device h. Correspondingly, terminal device h receives the request message g from terminal device g.
[0424] The request message g requests the establishment of a PC5 connection, which is a PC5 connection between terminal device g and terminal device h, and the PC5 connection is associated with a third service.
[0425] For example, when the PC5 connection between terminal device g and terminal device h does not exist, terminal device g sends a request message g to terminal device h.
[0426] S1514, Terminal device h sends a response message g to terminal device g. Correspondingly, terminal device g receives the response message g from terminal device h.
[0427] The response message g confirms the establishment of a PC5 connection, which is a PC5 connection between terminal device g and terminal device h, and the PC5 connection is associated with a third service.
[0428] For example, when terminal device h supports a third service, terminal device h sends a response message g to terminal device g.
[0429] S1515, Terminal device g sends a response message f to terminal device f. Correspondingly, terminal device f receives the response message f from terminal device g.
[0430] The response message f confirms the establishment of a PC5 connection, which is a PC5 connection between terminal device f and terminal device g, such as a fifth connection, and the PC5 connection is associated with a third service.
[0431] For example, terminal device g sends a response message f to terminal device f based on information g. Information g indicates the connection status between terminal device g and terminal device h.
[0432] For example, when information g indicates that the connection between terminal device g and terminal device h does not exist, terminal device g sends a response message f to terminal device f.
[0433] For example, when information g indicates that a connection exists between terminal device g and terminal device h, and the associated service is a third-party service, terminal device g sends a response message f to terminal device f.
[0434] S1516, Terminal device f sends a response message e to terminal device e. Correspondingly, terminal device e receives the response message e from terminal device f.
[0435] The response message e confirms the establishment of a PC5 connection, which is a PC5 connection between terminal device e and terminal device f, such as a fourth connection, and the PC5 connection is associated with a third service.
[0436] For example, terminal device f sends a response message e to terminal device e based on information f. Information f indicates the connection status between terminal device f and terminal device g.
[0437] For example, if information f indicates that the connection between terminal device f and terminal device g does not exist, terminal device f sends a response message e to terminal device e.
[0438] For example, when information f indicates that a connection exists between terminal device f and terminal device g, and the associated service is a third-party service, terminal device f sends a response message e to terminal device e.
[0439] For terminal device e, after receiving response message e, terminal device e executes S1517:
[0440] S1517. If condition 4 is met, terminal device e initiates PC5 connection establishment.
[0441] S1518. If condition 4 is met, terminal device f initiates PC5 connection establishment.
[0442] S1519. If condition 4 is met, the terminal device g initiates the PC5 connection establishment.
[0443] For S1517-S1519, please refer to the introduction of S1403, and will not be repeated here.
[0444] It should be understood that the timing relationships of S1517-S1519 are described as follows:
[0445] One possible implementation is to first execute S1517, then S1518, and then S1519, as shown in Figure 15. This can be understood as follows: the establishment (completion) of the PC5 connection between terminal device e and terminal device f triggers the establishment of a PC5 connection between terminal device f and terminal device g. The establishment (completion) of the PC5 connection between terminal device f and terminal device g triggers the establishment of a PC5 connection between terminal device g and terminal device h.
[0446] As another possible implementation, the timing relationships of S1517-S1519 are not constrained. For example:
[0447] For terminal device g, after executing S1514, S1519 can be executed.
[0448] For terminal device f, after executing S1515, S1518 can be executed.
[0449] For terminal device e, after executing S1516, S1517 can be executed.
[0450] The sequential relationship between S1517 and S1519 is not constrained.
[0451] Based on S1517-S1519, for the third service, the multi-hop connection from terminal device e to network device b is established. Then, terminal device e sends data to network device b.
[0452] This application provides another communication method 1600. This communication method 1600 can be applied to the systems shown in Figures 1-5.
[0453] The communication method 1600 proposed in this application will now be described in detail with reference to Figure 16:
[0454] S1601, The tenth terminal device obtains the fifth information.
[0455] For example, S1601 includes: the tenth terminal device determines the fifth information.
[0456] Specifically, when the sixth connection between the tenth and eleventh terminal devices is established, the fifth information indicates that the sixth connection has been established. Conversely, when the sixth connection between the tenth and eleventh terminal devices is not established, the fifth information indicates that the sixth connection has not been established. For example, the fifth information is 1 bit. When this bit is 1, it indicates that the sixth connection has been established. When this bit is 0, it indicates that the sixth connection has not been established. Or, conversely, when this bit is 0, it indicates that the sixth connection has been established. When this bit is 1, it indicates that the sixth connection has not been established.
[0457] The eleventh terminal device is used to provide relay services to the tenth terminal device. This can be understood as the eleventh terminal device being the upstream terminal device of the tenth terminal device, or the tenth terminal device being the downstream terminal device of the eleventh terminal device.
[0458] The sixth connection is associated with the fourth service. For example, the fourth service is identified by RSC4. This can be understood as the sixth connection being associated with RSC4.
[0459] It should be understood that in the Multi-hop Relay scenario, for the fourth service, a terminal device (such as the tenth terminal device) sends information (such as the fifth information) only when a connection (such as the sixth connection) has been established between a terminal device (such as the tenth terminal device) and its relay terminal device (such as the eleventh terminal device), and this connection is associated with the fourth service, to indicate that the connection between itself and its relay terminal device (which is associated with the fourth service) has been established.
[0460] Following this recursion, one possible interpretation is that the sixth connection is the connection between the tenth terminal device and the second network device. For example, when each hop connection between the tenth terminal device and the second network device has been established, the fifth information indicates that the sixth connection has been established, where the sixth connection is each hop connection from the tenth terminal device to the second network device.
[0461] Alternatively, as another possible interpretation, with the connection between the tenth terminal device and the second network device already established, the tenth terminal device obtains the fifth information. That is, the fifth information (explicitly) indicates that a sixth connection has been established, which is the connection between the tenth terminal device and the eleventh terminal device. Furthermore, the fifth information also (implicitly) indicates that an eighth connection has been established, which is the connection from the eleventh terminal device to the second network device for each hop.
[0462] For the tenth terminal device, after obtaining the fifth information, it executes S1602:
[0463] S1602, The tenth terminal device sends the fifth message.
[0464] The fifth piece of information can be found in the description of S1601, and will not be repeated here.
[0465] The fifth piece of information is associated with the seventh connection. This can be understood as the fifth piece of information being used by the twelfth terminal device to establish the seventh connection, as detailed in S1603, which will not be elaborated here.
[0466] Among them, the seventh connection is associated with the fourth service, and the seventh connection is the connection between the tenth terminal device and the twelfth terminal device.
[0467] The tenth terminal device provides relay services to the twelfth terminal device. This can be understood as the twelfth terminal device being the next-hop terminal device of the tenth terminal device, or the tenth terminal device being the previous-hop terminal device of the twelfth terminal device. Furthermore, the seventh connection can be understood as the next-hop connection of the tenth terminal device.
[0468] Among them, the sixth and seventh connections are associated with the same service, such as the fourth service.
[0469] Optionally, the fifth piece of information may be included in discovery message 4 or a dedicated message.
[0470] For example, message 4 may include an announcement message, as illustrated in Figure 6. In this case, the tenth terminal device acts as the announcing terminal device.
[0471] Optionally, the fifth message can be sent via broadcast.
[0472] For example, the tenth terminal device broadcasts the fifth message. Correspondingly, if the twelfth terminal device is within the coverage area of the fifth message, it receives the fifth message from the tenth terminal device, as illustrated in Figure 6. In this case, the tenth terminal device acts as the broadcasting terminal device, and the twelfth terminal device acts as the monitoring terminal device.
[0473] For the twelfth terminal device, after receiving the fifth information, it executes S1603:
[0474] S1603, the twelfth terminal device establishes the seventh connection based on the fifth information.
[0475] The twelfth terminal device can be referred to in Figures 1-5, and will not be described in detail here.
[0476] Among them, the seventh connection is associated with the fourth service, and the seventh connection is the connection between the tenth terminal device and the twelfth terminal device.
[0477] Establishing the seventh connection can be understood as initiating the establishment of the seventh connection.
[0478] It should be understood that when the fifth information indicates that the sixth connection between the tenth and eleventh terminal devices has been established, the twelfth terminal device will establish a seventh connection if condition 5 is met. Condition 5 includes: the services supported by the twelfth terminal device are included in the fourth service. It should be understood that condition 5 also includes other conditions, such as the maximum hop count limit for multi-hop relays not being reached. Meeting condition 5 means meeting all the conditions of condition 5.
[0479] Conversely, when the fifth message indicates that the sixth connection between the tenth terminal device and the eleventh terminal device has not been established, the twelfth terminal device will not establish the seventh connection.
[0480] Based on S1601-S1603, for the tenth terminal device, when the sixth connection between the tenth and eleventh terminal devices is established, it sends a fifth message to indicate that the sixth connection between the tenth and eleventh terminal devices is established, so that the twelfth terminal device can establish a seventh connection between itself and the tenth terminal device based on the fifth message. Conversely, if the fifth message indicates that the sixth connection between the tenth and eleventh terminal devices is not established, the seventh connection is not established, meaning the tenth terminal device does not act as a relay terminal device.
[0481] Therefore, when the relay terminal device in a single-hop relay scenario is the eleventh terminal device and the remote terminal device is the tenth terminal device, the tenth terminal device performs the above operation to establish a seventh connection between the tenth terminal device and the twelfth terminal device after the sixth connection between the tenth terminal device and the eleventh terminal device has been established. Since there are no multiple connections between the two terminal devices in a single-hop relay scenario, there is at most one connection between the tenth terminal device and the eleventh terminal device. Based on this, there is also at most one connection between the tenth terminal device and the twelfth terminal device, thus avoiding the phenomenon of multiple connections between the two terminal devices.
[0482] Alternatively, when the first relay terminal device in a multi-hop relay scenario is the eleventh terminal device and the remote terminal device is the tenth terminal device, the tenth terminal device performs the above operation to establish a seventh connection between the tenth terminal device and the eleventh terminal device after the sixth connection between the tenth terminal device and the eleventh terminal device has been established. Since the connection between the remote terminal device and its relay terminal device in the multi-hop relay scenario is established based on the communication method 1600 of this application, there is at most one connection between the remote terminal device and its relay terminal device in the multi-hop relay scenario. Based on this, there is also at most one connection between the tenth terminal device and the twelfth terminal device, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0483] In some embodiments, the tenth terminal device further sends a sixth message. This sixth message indicates a fourth service. Exemplarily, the fourth service is identified by RSC4. The sixth message includes RSC4.
[0484] Optionally, the sixth message may be included in discovery message 4 or a dedicated message.
[0485] Optionally, the sixth information and the fifth information may be carried in the same message or in different messages, without limitation.
[0486] Optionally, the sixth message can be sent via broadcast.
[0487] It should be understood that for the twelfth terminal device, if the fifth information is not received, the seventh connection cannot be established. That is to say, if the connection cannot be established based on the communication method 1600 of this application, the communication method 1400 or the communication method 1100 of this application can be used to establish the connection.
[0488] Next, we will introduce the communication method 1600 of this application with an example in the case of a three-hop relay.
[0489] In Figure 17, terminal device i is the twelfth terminal device in Figure 16, terminal device j is the tenth terminal device in Figure 16, and terminal device k is the eleventh terminal device in Figure 16.
[0490] In Figure 17, terminal device i is the remote terminal device, terminal device j is the first relay terminal device, and terminal device k is the last relay terminal device. The connection establishment process between terminal devices j, k, and network device c can be found in the introduction to the Single-hop Relay scenario, and will not be repeated here.
[0491] When terminal device j acts as a relay terminal device, taking Model A as an example, the operation is as follows, as shown in Figure 17:
[0492] S1701, Terminal device j broadcasts announcement message i.
[0493] The announcement message i includes information i. Information i indicates that a sixth connection has been established between terminal device j and terminal device k. The sixth connection is associated with the fourth service.
[0494] For terminal device i, after receiving announcement message i, terminal device i executes S1702:
[0495] S1702. Upon receiving the announcement message i, if condition 5 is met, the terminal device i initiates the PC5 connection establishment.
[0496] The PC5 connection initiated by terminal device i refers to the PC5 connection between terminal device i and terminal device j, such as the seventh connection, which is associated with the fourth service.
[0497] For S1702, please refer to the description of S1603, and it will not be repeated here.
[0498] Based on the above description, for the fourth service, the multi-hop connection from terminal device i to network device c is established. Then, terminal device i sends data to network device c.
[0499] It should be understood that when the sixth connection between terminal device j and terminal device k is not established, information i indicates that the sixth connection between terminal device j and terminal device k is not established. In this case, terminal device i does not establish a PC5 connection between terminal device i and terminal device j.
[0500] This application provides yet another communication method 1800. This communication method 1800 can be applied to the systems shown in Figures 1-5.
[0501] The communication method 1800 proposed in this application will be described in detail below with reference to Figure 18:
[0502] S1801, The first terminal device determines the first connection.
[0503] The first connection is associated with the first service. This can be understood as the first connection being used to transmit data for the first service. For example, the first service is identified by RSC1.
[0504] The first connection is a connection between a first terminal device and a second terminal device. The first terminal device provides relay services to the second terminal device, as shown in Case 1 of Figures 19 and 20; or, the second terminal device provides relay services to the first terminal device, as shown in Case 2 of Figure 20.
[0505] It should be noted that when the first terminal device is used to provide relay services for the second terminal device, the first connection can be understood as the next-hop connection of the first terminal device, and this connection is associated with the first service.
[0506] It should be noted that when the second terminal device is used to provide relay services for the first terminal device, the first connection can be understood as the previous hop connection of the first terminal device, and this connection is associated with the first service.
[0507] The first terminal device and the second terminal device can be referred to in Figures 1-5, and will not be described again.
[0508] For example, S1801 is described as follows:
[0509] For example, S1801 includes: the first terminal device determines that the first connection has been initiated. For instance, the first terminal device determines that the target terminal device is the second terminal device through a discovery process, and then initiates the establishment of the first connection. This discovery process can be Model A. The first terminal device acts as the declaring terminal device, providing relay services to the second terminal device.
[0510] For example, S1801 includes: the first terminal device determines that a first connection is being established. For example, the PC5 connection establishment process between the first terminal device and the second terminal device is being executed. For example, one of the first terminal device and the second terminal device is the initiating terminal device, and the other terminal device is the target terminal device, as detailed in Figure 9, which will not be repeated here.
[0511] For example, S1801 includes: the first terminal device determines that the first connection has been established. For instance, the PC5 connection establishment process between the first terminal device and the second terminal device has been completed.
[0512] For the first terminal device, after establishing the first connection, it executes S1802:
[0513] S1802, The first terminal device cancels the sending of the first information based on the first connection.
[0514] For example, the first terminal device determines not to send the first information based on the first connection.
[0515] The first information indicates the second service, which is a service supported by the first terminal device and is different from the first service. For example, the second service is identified by RSC2.
[0516] The second service is different from the first service. It can be understood as any service that is different from the first service.
[0517] Optionally, the first information is included in the discovery message.
[0518] For example, discovery messages include announcement messages. The details of announcement messages can be found in Figure 6 and will not be repeated here. That is, when the first connection has been initiated, is being established, or has already been established, the first terminal device does not send first information, such as an announcement message carrying RSC2.
[0519] Based on the above technical solution, when the preceding or following connection of the first terminal device is the first connection, and the first connection is associated with the first service, the first terminal device cancels sending the first information according to the first connection and no longer indicates the second service it supports through the first information, thus it cannot / does not establish a connection associated with the second service. In this way, the preceding or following connection of the first terminal device is associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0520] It should be understood that, for the first terminal device, before establishing the first connection, the first terminal device sends first information to indicate the second service it supports.
[0521] This application provides yet another communication method 2100. This communication method 2100 can be applied to the systems shown in Figures 1-5.
[0522] The communication method 2100 proposed in this application will now be described in detail with reference to Figure 21:
[0523] S2101, The first terminal device determines the first connection.
[0524] The first connection is associated with the first service.
[0525] The first connection is a connection between a first terminal device and a second terminal device. The first terminal device provides relay services to the second terminal device, or the second terminal device provides relay services to the first terminal device.
[0526] For S2101, please refer to the description of S1801, which will not be repeated here.
[0527] For the first terminal device, after establishing the first connection, it executes S2102:
[0528] S2102. The first terminal device determines, based on the first connection, that it will refuse to establish a second connection.
[0529] For example, the first terminal device determines not to establish a second connection based on the first connection.
[0530] The second connection is associated with the second service. This can be understood as the second connection being used to transmit data for the second service. For example, the second service might be identified by RSC2.
[0531] The second connection is a connection between the first terminal device and the third terminal device, whereby the first terminal device provides relay services to the third terminal device, as shown in Figure 19 or Figure 20. Further, the second connection can be understood as the next-hop connection of the first terminal device, and this connection is associated with the second service.
[0532] Based on the above technical solution, when the first connection is associated with the first service and the second connection is associated with the second service, the first terminal device determines to refuse to establish the second connection based on the first connection. For example, if the first connection has already been initiated, is being established, or has already been established, then the establishment of the second connection is refused. In this way, the previous or next hop connection of the first terminal device is associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0533] Next, the communication method 2100 of this application will be described in light of two scenarios (Scenario 1-Scenario 2 below):
[0534] Case 1: The second connection is refused to be established during the connection establishment process.
[0535] In case 1, firstly, it should be noted that:
[0536] The first terminal device and the third terminal device determine the process for establishing the second connection through a discovery process. This discovery process between the first and third terminal devices can be either Model A or Model B. Taking Model A as an example: The first terminal device sends first information. This first information indicates a second service, which is a service supported by the first terminal device. Accordingly, if the third terminal device is within the signal coverage range of the first information, it receives the first information from the first terminal device. After receiving the first information, the third terminal device determines that the first terminal device is the target terminal device and initiates the establishment of the second connection. For example:
[0537] The third terminal device sends a first request to the first terminal device. Correspondingly, the first terminal device receives the first request from the third terminal device. The first request is used to request the establishment of a second connection, which is associated with a second service. For example, the first request may be a DCR message, as illustrated in Figure 9, and will not be elaborated further.
[0538] Accordingly, S2102 includes: the first terminal device sending a first message based on the first connection. The first message indicates a refusal to establish a second connection. For example, the first message may be a rejection message, as illustrated in Figure 9, and will not be repeated here.
[0539] In other words, when the first connection is associated with the first service and the second connection is associated with the second service, the first terminal device, based on the first connection, rejects the establishment of the second connection through a first message during the connection establishment process of the second connection. In this way, both the previous-hop connection and the next-hop connection of the first terminal device are associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0540] It should be understood that in scenario 1, the first connection is being established or has already been established. The establishment of the first connection may include the first terminal device acquiring / sending a DCR message, which is used to confirm the establishment of the first connection.
[0541] Scenario 2: During the discovery process, the establishment of a second connection is refused, for example, the first message instructing the second service is no longer sent.
[0542] In scenario 2, the first terminal device does not send the first information. The first information indicates the second service. For example, the first information is RSC2. The first terminal device does not send (or broadcast) a discovery message carrying RSC2, such as not sending (or broadcasting) an announcement message carrying RSC2.
[0543] In scenario 2, it can be understood that the first terminal device determines to cancel / not send the first information based on the first connection.
[0544] In other words, when the first connection is associated with the first service, and the first connection has been initiated, is being established, or has already been established, the first terminal device will no longer send the first information. Since the first information indicates the second service it supports, the first terminal device will no longer send the first information, and therefore cannot / will not establish a second connection associated with the second service. In this way, both the previous hop and next hop connections of the first terminal device are associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0545] It should be understood that in case 2, for the first terminal device, before the first terminal device establishes the first connection, the first terminal device sends first information to indicate the second service it supports.
[0546] This application provides yet another communication method 2200. This communication method 2200 can be applied to the systems shown in Figures 1-5.
[0547] The communication method 2200 proposed in this application will be described in detail below with reference to Figure 22:
[0548] S2201, The first terminal device determines the first connection.
[0549] The first connection is associated with the first service. This can be understood as the first connection being used to transmit data for the first service. For example, the first service is identified by RSC1.
[0550] The first connection is the connection between the first terminal device and the second terminal device. The first terminal device provides relay services to the second terminal device, as shown in Figure 23. Further, the first connection can be understood as the next-hop connection of the first terminal device, and this connection is associated with the first service.
[0551] For example, S2201 includes: the first terminal device determining that the first connection has been initiated, is being established, or has been established, as detailed in the description of S1801, and will not be repeated here.
[0552] For the first terminal device, after establishing the first connection, it executes S2202:
[0553] S2202. The first terminal device determines, based on the first connection, to refuse to establish a second connection and / or a third connection.
[0554] For example, the first terminal device determines, based on the first connection, not to establish a second connection and / or a third connection.
[0555] Both the second and third connections are associated with the second service. This can be understood as both the second and third connections being used to transmit data from the first service. For example, the second service is identified by RSC2.
[0556] The second connection is a connection between the first terminal device and the third terminal device, whereby the first terminal device provides relay services to the third terminal device, as shown in Figure 23. Further, the second connection can be understood as the next-hop connection of the first terminal device, and this connection is associated with the second service.
[0557] The third connection is the connection between the first terminal device and the fourth terminal device, with the fourth terminal device providing relay services to the first terminal device, as shown in Figure 23. Further, the third connection can be understood as the previous-hop connection of the first terminal device, and this connection is associated with the second service.
[0558] Based on the above technical solution, the next-hop connection of the first terminal device includes a first connection and a second connection. The first connection is associated with a first service, and the second connection is associated with a second service. The first terminal device determines to refuse to establish the second connection based on the first connection. For example, if the first connection has already been initiated, is being established, or has already been established, then the establishment of the second connection is refused. In this way, both the next-hop connection and the previous-hop connection of the first terminal device are associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0559] Based on the above technical solution, the next-hop connection of the first terminal device includes a first connection, and the previous-hop connection includes a third connection. The first connection is associated with a first service, and the third connection is associated with a second service. The first terminal device determines whether to refuse to establish the third connection based on the first connection. For example, if the first connection has already been initiated, is being established, or has already been established, then the establishment of the third connection is refused. In this way, both the next-hop connection and the previous-hop connection of the first terminal device are associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0560] Next, the communication method 2200 of this application will be described in light of two scenarios (Scenario 3-4 below):
[0561] Case 3: The second connection is refused to be established during the connection establishment process.
[0562] In scenario 3, firstly, it should be noted that:
[0563] The first terminal device and the third terminal device determine the process for establishing a second connection through a discovery process. This discovery process between the first and third terminal devices can be either Model A or Model B. Taking Model B as an example: The third terminal device sends a request message to the first terminal device. Correspondingly, the first terminal device receives the request message from the third terminal device. This request message requests the establishment of a second connection. After receiving the request message, the first terminal device sends a response message to the third terminal device. Correspondingly, the third terminal device receives the response message from the first terminal device. This response message confirms the establishment of the second connection. In this case, after receiving the response message, the third terminal device determines that the first terminal device is the target terminal device and initiates the establishment of the second connection. For example:
[0564] The third terminal device sends a first request to the first terminal device. Correspondingly, the first terminal device receives the first request from the third terminal device. The first request is used to request the establishment of a second connection, which is associated with a second service. For example, the first request may be a DCR message, as illustrated in Figure 9, and will not be elaborated further.
[0565] Accordingly, in S2202, the first terminal device determines, based on the first connection, that it refuses to establish a second connection, including: the first terminal device sending a first message based on the first connection. The first message indicates that the establishment of a second connection is refused. For example, the first message may be a rejection message, as illustrated in Figure 9, and will not be elaborated further.
[0566] In other words, the next-hop connection of the first terminal device includes a first connection and a second connection. The first connection is associated with the first service, and the second connection is associated with the second service. Based on the first connection, the first terminal device refuses to establish the second connection during the connection establishment process by sending a first message. In this way, all next-hop connections of the first terminal device are associated with the first service, and the previous-hop connection of the first terminal device is also associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0567] It should be understood that in scenario 3, the first connection is being established or has already been established. The establishment of the first connection may include the first terminal device acquiring / sending a DCR message, which is used to confirm the establishment of the first connection.
[0568] Scenario 4: During the discovery process, the establishment of a second and / or third connection is refused, for example, by not forwarding the second request or not sending a response to the second request.
[0569] In scenario 4, the third terminal device executes the discovery process. For example, the discovery process for Model B includes the following steps:
[0570] The third terminal device sends a second request to the first terminal device. Correspondingly, the first terminal device receives a second request from the second terminal device. This second request is used to request the establishment of a second connection. The second connection is associated with a second service. For example, the second request may be a request message, as illustrated in Figure 7, and will not be elaborated further.
[0571] Accordingly, as a possible implementation: In S2202, the first terminal device determines, based on the first connection, to refuse to establish a second connection and / or a third connection, including: the first terminal device, based on the first connection, does not forward the first request. The forwarded first request is used to request the establishment of a third connection. For example, the first terminal device does not forward the first request to the fourth terminal device.
[0572] It is understandable that when both the second and third connections are associated with the second service, and the first terminal device's preceding connection is the third connection and its next-hop connection is the second connection, in some embodiments, the third connection is established first, followed by the second connection (for example, the establishment of the second connection is triggered after the third connection is established). In this case, the first terminal device does not forward the first request. The forwarded first request is used to request the establishment of the third connection. Since the first terminal device does not forward the first request, the third connection is not established. Since the establishment of the second connection is triggered only after the third connection is established, the second connection is also not established. In this way, the first terminal device's next-hop connections are all associated with the first service, and the first terminal device's preceding connection is associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0573] Accordingly, as another possible implementation: In S2202, the first terminal device determines, based on the first connection, that it will refuse to establish a second connection, including: the first terminal device, based on the first connection, does not send a response to the second request, such as denoted as the second response. The second response is used to confirm the establishment of the second connection. For example, the second response is a response message, as illustrated in Figure 7, and will not be elaborated further.
[0574] In other words, the next-hop connection of the first terminal device includes a first connection and a second connection. The first connection is associated with the first service, and the second connection is associated with the second service. Based on the first connection, the first terminal device, during the discovery process, indicates its refusal to establish the second connection by not sending a second response. In this way, all next-hop connections of the first terminal device are associated with the first service, and the previous-hop connection of the first terminal device is also associated with the first service, thereby avoiding the phenomenon of multiple connections between the two terminal devices.
[0575] It should be added that, in this application, when the previous hop connection and the next hop connection of a terminal device are associated with the same service, if both connections need to be established, the establishment (completion) of the next hop connection triggers the establishment of the previous hop connection.
[0576] For example, taking terminal device 1 as an example, the next-hop connection of terminal device 1 is denoted as connection 1, and the previous-hop connection of terminal device 1 is denoted as connection 2. The establishment (completion) of connection 1 triggers the establishment of connection 2.
[0577] The connection establishment process for connection 1 includes: terminal device 1 receiving a first DCR message, in which the first DCR message requests the establishment of connection 1; then, terminal device 1 sends a first DCA message, in which the first DCA message confirms the establishment of connection 1.
[0578] Similarly, the establishment process for connection 2 includes: terminal device 1 sending a second DCR message. The second DCR message requests the establishment of connection 2; then, terminal device 1 receives a second DCA message.
[0579] The establishment (completion) of connection 1 triggers the establishment of connection 2, which can be understood as one of the following:
[0580] Terminal device 1 receives the first DCR message, triggering terminal device 1 to send the second DCR message; or,
[0581] Terminal device 1 sends a first DCA message, which triggers terminal device 1 to send a second DCR message.
[0582] It is understood that the methods and / or steps implemented by the terminal device in the above embodiments can also be implemented by components of the terminal device (e.g., processor, chip, chip system, circuit, logic module, or software). The terminal device includes any one of the first to thirteenth terminal devices. The chip system can be composed of chips, or it can include chips and other discrete devices.
[0583] It is understood that, in order to achieve the above-mentioned functions, the terminal device includes the corresponding hardware structure and / or software modules for performing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0584] This application embodiment can divide the terminal device into functional modules according to the above method embodiment. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0585] Figure 24 shows a schematic diagram of a communication device 2400. The communication device 2400 includes a processing module 2401 and a transceiver module 2402. This device 2400 can be used to implement the functions of the aforementioned terminal equipment.
[0586] In some embodiments, the communication device 2400 further includes a storage module (not shown in FIG24) for storing program instructions and data.
[0587] In some embodiments, the transceiver module 2402, also referred to as a transceiver unit, is used to implement sending and / or receiving functions. The transceiver module 2402 may consist of a transceiver circuit, a transceiver, a transceiver unit, or a communication interface.
[0588] In some embodiments, the transceiver module 2402 may include a receiving module and a sending module, respectively configured to perform the receiving and sending steps performed by the terminal device in the above method embodiments, and / or other processes to support the technology described herein; the processing module 2401 may be configured to perform the processing steps (e.g., determining) performed by the terminal device in the above method embodiments, and / or other processes to support the technology described herein.
[0589] In one possible design, taking the communication device 2400 as the first terminal device in the above method embodiment as an example:
[0590] The processing module 2401 is used to obtain first information, the first information indicating a first service, the first service being a service supported by the first terminal device, and the first service being a service supported by a second terminal device, the second terminal device being used to provide relay services to the first terminal device.
[0591] The transceiver module 2402 is used to send the first information.
[0592] In one possible design, taking the communication device 2400 as an example, which is the third terminal device in the above method embodiment:
[0593] The transceiver module 2402 is used to receive first information from a first terminal device, the first information indicating a first service, the first service being a service supported by the first terminal device, and the first service being a service supported by a second terminal device, the second terminal device being used to provide relay services to the first terminal device.
[0594] Processing module 2401 is used to establish a first connection based on the first information.
[0595] The services supported by the third terminal device are included in the first service.
[0596] The first connection is associated with the first service, and the first connection is a connection between the first terminal device and the third terminal device. The first terminal device is used to provide relay services for the third terminal device.
[0597] In one possible design, taking the communication device 2400 as the seventh terminal device in the above method embodiment as an example:
[0598] Processing module 2401 is used to acquire fourth information, which indicates the connection status between the seventh terminal device and the eighth terminal device, and the eighth terminal device is used to provide relay services for the seventh terminal device.
[0599] The transceiver module 2402 is used to send the first message according to the fourth information.
[0600] In one possible design, taking the communication device 2400 as the tenth terminal device in the above method embodiment as an example:
[0601] Processing module 2401 is used to obtain fifth information, which indicates that a sixth connection has been established. The sixth connection is a connection between the tenth terminal device and the eleventh terminal device, and the eleventh terminal device is used to provide relay services for the tenth terminal device.
[0602] The transceiver module 2402 is used to send the fifth information.
[0603] In one possible design, taking the communication device 2400 as the twelfth terminal device in the above method embodiment as an example:
[0604] Transceiver module 2402 is used to receive fifth information from the tenth terminal device, the fifth information indicating that a sixth connection has been established, the sixth connection being a connection between the tenth terminal device and the eleventh terminal device, the eleventh terminal device being used to provide relay services for the tenth terminal device;
[0605] Processing module 2401 is used to establish a seventh connection based on the fifth information. The seventh connection is a connection between the tenth terminal device and the twelfth terminal device. The tenth terminal device is used to provide relay services to the twelfth terminal device. The sixth connection and the seventh connection are associated with the same service.
[0606] In one possible design, taking the communication device 2400 as the first terminal device in the above method embodiment as an example:
[0607] Processing module 2401 is used to determine a first connection, the first connection being associated with a first service, the first connection being a connection between a first terminal device and a second terminal device, the second terminal device being used to provide relay services to the first terminal device, or the first terminal device being used to provide relay services to the second terminal device;
[0608] The transceiver module 2402 is used to cancel sending first information based on the first connection. The first information indicates a second service, which is a service supported by the first terminal device and is different from the first service.
[0609] In one possible design, taking the communication device 2400 as the first terminal device in the above method embodiment as an example:
[0610] Processing module 2401 is used to determine a first connection, the first connection being associated with a first service, the first connection being a connection between a first terminal device and a second terminal device, the second terminal device being used to provide relay services to the first terminal device, or the first terminal device being used to provide relay services to the second terminal device;
[0611] The processing module 2401 is further configured to determine, based on the first connection, to refuse to establish a second connection, wherein the second connection is associated with a second service, the second connection is a connection between the first terminal device and a third terminal device, and the first terminal device is configured to provide relay services to the third terminal device.
[0612] In one possible design, taking the communication device 2400 as the first terminal device in the above method embodiment as an example:
[0613] Processing module 2401 is used to determine a first connection, the first connection being associated with a first service, the first connection being a connection between the first terminal device and a second terminal device, and the first terminal device being used to provide relay services to the second terminal device;
[0614] The processing module 2401 is further configured to determine, based on the first connection, to refuse to establish a second connection and / or a third connection, wherein the second connection and the third connection are both associated with a second service, the second connection is a connection between the first terminal device and the third terminal device, the first terminal device is used to provide relay services to the third terminal device, and the third connection is a connection between the first terminal device and the fourth terminal device, the fourth terminal device is used to provide relay services to the first terminal device.
[0615] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0616] Optionally, in this application, the transceiver module receiving / sending information can also be understood as the processing module receiving / sending information through the transceiver module. The processing module receiving / sending information through the transceiver module can also be understood as the processing module controlling the transceiver module to receive / send information. Alternatively, the processing module sending information through the transceiver module can be understood as the processing module outputting information to the transceiver module, which then sends that information; the processing module receiving information through the transceiver module can be understood as the transceiver module receiving information and inputting that information into the processing module.
[0617] In this application, the communication device 2400 can be presented in an integrated manner by dividing it into various functional modules. Here, "module" can refer to an application-specific integrated circuit (ASIC), a circuit, a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and / or other devices that can provide the above functions.
[0618] In some embodiments, when the communication device 2400 in FIG24 is a chip or chip system, the function / implementation process of the transceiver module 2402 can be implemented through the input / output interface (or communication interface) of the chip or chip system, and the function / implementation process of the processing module 2401 can be implemented through the processor (or processing circuit) of the chip or chip system.
[0619] Since the communication device 2400 provided in this embodiment can execute the above method, the technical effects it can achieve can be referred to the above method embodiment, and will not be repeated here.
[0620] As a possible product form, the communication device described in the embodiments of this application can also be implemented using one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits capable of performing the various functions described throughout this application.
[0621] As another possible product form, the communication device described in this application embodiment can be implemented using a general bus architecture. For ease of explanation, refer to FIG25, which is a schematic diagram of the structure of a communication device 2500 provided in this application embodiment. The communication device 2500 includes a processor 2501 and a transceiver 2502. The communication device 2500 can be the aforementioned terminal device, or a chip or chip system therein. FIG25 only shows the main components of the communication device 2500. In addition to the processor 2501 and transceiver 2502, the communication device 2500 may further include a memory 2503 and an input / output communication device (not shown in the figure).
[0622] Optionally, the processor 2501 is mainly used to process communication protocols and communication data, control the entire communication device, execute software programs, and process the data of the software programs. The memory 2503 is mainly used to store software programs and data. The transceiver 2502 may include radio frequency (RF) circuitry and an antenna. The RF circuitry is mainly used for converting baseband signals to RF signals and processing RF signals. The antenna is mainly used for transmitting and receiving RF signals in the form of electromagnetic waves. Input / output communication devices, such as touch screens, displays, and keyboards, are mainly used to receive user input data and output data to the user.
[0623] Optionally, the processor 2501, transceiver 2502, and memory 2503 can be connected via a communication bus.
[0624] It should be noted that the memory 2503 can exist independently of the processor 2501, or it can be integrated with the processor 2501. The memory 2503 can be located inside or outside the communication device 2500, without restriction.
[0625] When the communication device is powered on, the processor 2501 can read the software program in the memory 2503, interpret and execute the instructions of the software program, and process the data of the software program. When data needs to be transmitted wirelessly, the processor 2501 performs baseband processing on the data to be transmitted and outputs the baseband signal to the radio frequency (RF) circuit. The RF circuit processes the baseband signal and transmits the RF signal outward in the form of electromagnetic waves through the antenna. When data is sent to the communication device, the RF circuit receives the RF signal through the antenna, converts the RF signal into a baseband signal, and outputs the baseband signal to the processor 2501. The processor 2501 converts the baseband signal into data and processes the data.
[0626] In another implementation, the radio frequency circuitry and antenna can be set up independently of the processor performing baseband processing. For example, in a distributed scenario, the radio frequency circuitry and antenna can be arranged remotely, independent of the communication device.
[0627] In some embodiments, those skilled in the art will recognize that the above-described communication device 2400 can be implemented in the form of the communication device 2500 shown in FIG25.
[0628] As an example, the function / implementation of the processing module 2401 in Figure 24 can be achieved by the processor 2501 in the communication device 2500 shown in Figure 25 calling computer execution instructions stored in the memory 2503. The function / implementation of the transceiver module 2402 in Figure 24 can be achieved by the transceiver 2502 in the communication device 2500 shown in Figure 25.
[0629] As another possible product form, the communication device in this application may adopt the composition structure shown in FIG26, or include the components shown in FIG26. FIG26 is a schematic diagram of the composition of a communication device 2600 provided in this application.
[0630] As shown in Figure 26, the communication device 2600 includes at least one processor 2601. Optionally, the communication device 2600 also includes a communication interface 2602.
[0631] When the relevant program instructions are executed in the at least one processor 2601, the communication device 2600 can implement the methods and any possible designs provided in any of the foregoing embodiments. Alternatively, the processor 2601 can implement the methods and any possible designs provided in any of the foregoing embodiments through logic circuits or executable code instructions.
[0632] The communication interface 2602 can be used to receive program instructions and transmit them to the processor, or it can be used for communication interaction between the communication device 2600 and other communication devices, such as exchanging control signaling and / or service data. For example, the communication interface 2602 can be used to receive signals from other communication devices besides the communication device 2600 and transmit them to the processor 2601, or to send signals from the processor 2601 to other communication devices besides the communication device 2600.
[0633] Optionally, the communication interface 2602 can be a code and / or data read / write interface circuit, or the communication interface 2602 can be a signal transmission interface circuit between a communication processor and a transceiver, or a pin of a chip.
[0634] Optionally, the communication device 2600 may also include at least one memory 2603, which may be used to store the required program instructions and / or data.
[0635] It should be noted that the memory 2603 can exist independently of the processor 2601, or it can be integrated with the processor 2601. The memory 2603 can be located inside or outside the communication device 2600, without restriction.
[0636] Optionally, the communication device 2600 may further include a power supply circuit 2604, which can be used to power the processor 2601. The power supply circuit 2604 may be located in the same chip as the processor 2601, or in a separate chip outside the chip containing the processor 2601.
[0637] Optionally, the communication device 2600 also includes a bus 2605, through which the various parts of the communication device 2600 can be interconnected.
[0638] In some embodiments, those skilled in the art will recognize that the communication device 2400 shown in FIG24 can be implemented in the form of the communication device 2600 shown in FIG26.
[0639] As an example, the function / implementation process of the processing module 2401 in Figure 24 can be implemented by the processor 2601 in the communication device 2600 shown in Figure 26 calling computer execution instructions stored in the memory 2603. The function / implementation process of the transceiver module 2402 in Figure 24 can be implemented by the communication interface 2602 in the communication device 2600 shown in Figure 26.
[0640] It should be noted that the structure shown in Figure 26 does not constitute a specific limitation on the communication device. For example, in other embodiments of this application, the communication device may include more or fewer components than shown, or combine some components, or split some components, or have different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0641] Optionally, the processor in this application can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor, or it can be any conventional processor.
[0642] Optionally, the memory in this application can be volatile memory or non-volatile memory, or it can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), or direct rambus RAM (DR RAM).
[0643] Optionally, the power supply circuit described in the embodiments of this application includes, but is not limited to, at least one of the following: a power supply line for an electronic system, a power management chip, a power management processor, or a power management control circuit.
[0644] In some embodiments, this application also provides a communication device, which includes a processor for implementing the methods in any of the above method embodiments.
[0645] As one possible implementation, the communication device also includes a memory. This memory stores necessary computer programs and data. The computer program may include instructions, which a processor can invoke to instruct the communication device to execute the methods described in any of the above method embodiments. Alternatively, the memory may not be present in the communication device.
[0646] As another possible implementation, the communication device also includes an interface circuit, which is a code / data read / write interface circuit, used to receive computer execution instructions (which are stored in memory and may be read directly from memory or may be transmitted through other devices) and transmit them to the processor.
[0647] As another possible implementation, the communication device also includes a communication interface for communicating with modules outside the communication device.
[0648] It is understood that the communication device can be a chip or a chip system. When the communication device is a chip system, it can be composed of chips or may include chips and other discrete devices. This application does not specifically limit this.
[0649] This application also provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a computer, implements the functions of any of the above-described method embodiments.
[0650] This application also provides a computer program product that, when executed by a computer, implements the functions of any of the above method embodiments.
[0651] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0652] It is understood that the systems, apparatuses, and methods described in this application can also be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings or direct couplings or communication connections may be through some interfaces, or indirect couplings or communication connections between devices or units, which may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. The components shown as units may or may not be physical units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. Additionally, the functional units in the various embodiments of this application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. In the above embodiments, they can be implemented entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software programs, it can be implemented entirely or partially in the form of a computer program product. This computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device including one or more servers, data centers, etc., that can be integrated with the medium. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive (SSD)). In the embodiments of this application, the computer may include the aforementioned devices. Although this application has been described herein in conjunction with various embodiments, other variations of the disclosed embodiments can be understood and implemented by those skilled in the art in carrying out the claimed application by reviewing the accompanying drawings, the disclosure, and the appended claims.In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple components. A single processor or other unit can implement several functions listed in the claims. Although different dependent claims may describe certain measures, this does not mean that these measures cannot be combined to produce a good effect.
[0653] It is understood that the names mentioned in this application may also be described in other ways, such as:
[0654] First, in this application, the terms signaling / information / message / information element / field are generally not distinguished, and the names can be used interchangeably.
[0655] Second, in the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can mean A or B. The "and / or" in this application is merely a description of the relationship between the related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural.
[0656] Third, in the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0657] Fourth, in the embodiments of this application, the terms "first" and "second" are used to distinguish between identical or similar items that have essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0658] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.
[0659] Fifth, the term "embodiment" as used in this application means that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, various embodiments throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It is understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0660] Sixth, in this application, "...when" and "if" both refer to the corresponding processing that will be carried out under certain objective circumstances, and are not time-limited, nor do they require a judgment action at the time of implementation, nor do they imply any other limitations.
Claims
1. A communication method, characterized in that, The method, applied to a first terminal device or to a chip within the first terminal device, includes: A first connection is established, the first connection is associated with a first service, the first connection is a connection between the first terminal device and the second terminal device, the second terminal device is used to provide relay services for the first terminal device, or the first terminal device is used to provide relay services for the second terminal device; Based on the first connection, the sending of the first information is cancelled. The first information indicates a second service, which is a service supported by the first terminal device and is different from the first service.
2. The method according to claim 1, characterized in that, The first piece of information is included in the discovery message.
3. The method according to claim 1 or 2, characterized in that, The cancellation of sending the first message includes: Determine not to send the first message.
4. A communication method, characterized in that, The method, applied to a first terminal device or to a chip within the first terminal device, includes: A first connection is established, the first connection is associated with a first service, the first connection is a connection between the first terminal device and the second terminal device, the second terminal device is used to provide relay services for the first terminal device, or the first terminal device is used to provide relay services for the second terminal device; Based on the first connection, it is determined that the establishment of a second connection is refused. The second connection is associated with a second service. The second connection is a connection between the first terminal device and the third terminal device. The first terminal device is used to provide relay services to the third terminal device.
5. The method according to claim 4, characterized in that, The method further includes: receiving a first request, the first request being used to request the establishment of the second connection; Determining to refuse to establish the second connection based on the first connection includes: sending a first message based on the first connection, the first message indicating that the establishment of the second connection is refused.
6. The method according to claim 5, characterized in that, Determining to refuse to establish the second connection includes: not sending a first message, the first message instructing the second service.
7. A communication method, characterized in that, The method, applied to a first terminal device or to a chip within the first terminal device, includes: A first connection is established, the first connection is associated with a first service, the first connection is a connection between the first terminal device and the second terminal device, and the first terminal device is used to provide relay services to the second terminal device; Based on the first connection, it is determined that the establishment of a second connection and / or a third connection is refused. Both the second connection and the third connection are associated with a second service. The second connection is a connection between the first terminal device and the third terminal device, whereby the first terminal device is used to provide relay services to the third terminal device. The third connection is a connection between the first terminal device and a fourth terminal device, whereby the fourth terminal device is used to provide relay services to the first terminal device.
8. The method according to claim 7, characterized in that, The method further includes: receiving a first request, the first request being used to request the establishment of the second connection; Determining to refuse to establish the second connection and / or the third connection includes: not forwarding the first request, the forwarded first request being used to request the establishment of the third connection.
9. The method according to claim 7, characterized in that, The method further includes: receiving a second request, the second request being used to request the establishment of the second connection; Determining to refuse to establish the second connection includes: not sending a second response, which is used to confirm the establishment of the second connection.
10. The method according to claim 7, characterized in that, The method further includes: receiving a first request, the first request being used to request the establishment of the second connection; Determining to refuse to establish the second connection based on the first connection includes: sending a first message based on the first connection, the first message indicating that the establishment of the second connection is refused.
11. The method according to any one of claims 1-10, characterized in that, The previous or next hop connection of the first terminal device is associated with the first service.
12. The method according to any one of claims 1-11, characterized in that, The first service is identified by the relay service code RSC1, and the second service is identified by RSC2.
13. The method according to claim 12, characterized in that, The first connection is a PC5 connection, and different RSCs correspond to different PC5 connections.
14. The method according to any one of claims 1-13, characterized in that, Determining the first connection includes: determining whether the first connection has been initiated, is being established, or has already been established.
15. A communication method, characterized in that, The method, applied to a seventh terminal device or a chip within the seventh terminal device, includes: Obtain fourth information, which indicates the connection status between the seventh terminal device and the eighth terminal device, wherein the eighth terminal device is used to provide relay services for the seventh terminal device; Based on the fourth information, send the first message.
16. The method according to claim 15, characterized in that, The first message is associated with a fourth connection, which is a connection between the seventh terminal device and the ninth terminal device, and the seventh terminal device is used to provide relay services for the ninth terminal device.
17. The method according to claim 15 or 16, characterized in that, The method further includes: receiving a first request from a ninth terminal device, the first request being used to request the establishment of a fourth connection, the fourth connection being a connection between the seventh terminal device and the ninth terminal device; Based on the fourth information, the first message is sent, including: Based on the fourth information and the first request, a first response is sent to the ninth terminal device, the first message including the first response.
18. The method according to claim 17, characterized in that, When the connection between the seventh terminal device and the eighth terminal device does not exist, the method further includes: sending a second request based on the fourth information and the first request, wherein the second request is used to request the establishment of a fifth connection, wherein the fifth connection is the connection between the seventh terminal device and the eighth terminal device.
19. The method according to any one of claims 15-18, characterized in that, The connection between the seventh terminal device and the eighth terminal device includes: A connection exists between the seventh terminal device and the eighth terminal device, and the associated service is a third service, which is a service supported by the ninth terminal device. The seventh terminal device is used to provide relay services for the ninth terminal device.
20. The method according to any one of claims 15-18, characterized in that, The connection between the seventh terminal device and the eighth terminal device includes: There is no connection between the seventh terminal device and the eighth terminal device.
21. The method according to any one of claims 15-20, characterized in that, The method further includes: sending the fourth information.
22. The method according to claim 21, characterized in that, The fourth piece of information is included in the first message.
23. A communication device, characterized in that, It includes modules for implementing the method as described in any one of claims 1-3, 11-14; or, it includes modules for implementing the method as described in any one of claims 4-6, 11-14; or, it includes modules for implementing the method as described in any one of claims 7-14; or, it includes modules for implementing the method as described in any one of claims 15-22.
24. The communication device according to claim 23, characterized in that, The communication device is a terminal device or a chip in a terminal device.
25. A computer-readable storage medium included in a communication device, the computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions are executed, the method as described in any one of claims 1-3, 11-14 is implemented; or, the method as described in any one of claims 4-6, 11-14 is implemented; or, the method as described in any one of claims 7-14 is implemented; or, the method as described in claims 15-22 is implemented.
26. A computer program product, said computer program product being included in a communication device, characterized in that, When the computer program product is run, it causes the method as described in any one of claims 1-3, 11-14 to be implemented; or causes the method as described in any one of claims 4-6, 11-14 to be implemented; or causes the method as described in any one of claims 7-14 to be implemented; or causes the method as described in claims 15-22 to be implemented.
