WO2024065087A1 - 终端发现方法、装置、设备及存储介质 - Google Patents

终端发现方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2024065087A1
WO2024065087A1 PCT/CN2022/121331 CN2022121331W WO2024065087A1 WO 2024065087 A1 WO2024065087 A1 WO 2024065087A1 CN 2022121331 W CN2022121331 W CN 2022121331W WO 2024065087 A1 WO2024065087 A1 WO 2024065087A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
relay terminal
identifier
discovery
relay
Prior art date
Application number
PCT/CN2022/121331
Other languages
English (en)
French (fr)
Inventor
郭雅莉
卢飞
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to PCT/CN2022/121331 priority Critical patent/WO2024065087A1/zh
Publication of WO2024065087A1 publication Critical patent/WO2024065087A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present application relates to the field of communication technology, and in particular to a terminal discovery method, apparatus, device and storage medium.
  • the fifth generation (5G) communication when a first terminal needs to establish communication with a second terminal, if the first terminal cannot communicate directly with the second terminal in close proximity, the second terminal can be discovered through a relay terminal, and communication can be further established with the second terminal through the relay terminal.
  • the embodiments of the present application provide a terminal discovery method, apparatus, device, and storage medium, which can enable a first terminal to discover a second terminal through no less than two relay terminals.
  • the technical solution is as follows:
  • a terminal discovery method is provided, the method being performed by a first relay terminal, the method comprising:
  • the first discovery message is used by the first relay terminal to instruct the first terminal to discover the second terminal through the first relay terminal.
  • a terminal discovery method is provided, the method being performed by a first terminal, the method comprising:
  • the second discovery message is used to instruct the first terminal to discover the second terminal through the first relay terminal.
  • a terminal discovery device comprising:
  • a receiving module used to receive a first discovery message sent by a second relay terminal
  • the first discovery message is used by the first relay terminal to instruct the first terminal to discover the second terminal through the first relay terminal.
  • a terminal discovery device comprising:
  • a receiving module configured to receive a second discovery message sent by the first relay terminal
  • the second discovery message is used to instruct the first terminal to discover the second terminal through the first relay terminal.
  • a first relay terminal which includes a memory and a processor; at least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the terminal discovery method as described above.
  • a first terminal which includes a memory and a processor; at least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the terminal discovery method as described above.
  • a computer-readable storage medium in which a computer program is stored.
  • the computer program is used to be executed by a processor to implement the terminal discovery method as described above.
  • a chip which includes a programmable logic circuit and/or program instructions, and when an electronic device equipped with the chip is running, it is used to implement the terminal discovery method as described above.
  • a computer program product includes computer instructions.
  • the computer instructions are stored in a computer-readable storage medium.
  • a processor reads and executes the computer instructions from the computer-readable storage medium to implement the terminal discovery method as described above.
  • the first relay terminal may instruct the first terminal to discover the second terminal through the first relay terminal. Based on the first discovery message, a communication path between the first terminal and the second terminal may be selected so that the first terminal communicates with the second terminal through the first relay terminal, or the first terminal communicates with the second terminal through the first relay terminal and the second relay terminal in sequence.
  • FIG1 is a schematic diagram of a 5G network architecture provided by an exemplary embodiment of the present application.
  • FIG2 is a schematic diagram of establishing communication provided by an exemplary embodiment of the present application.
  • FIG3 is a schematic diagram of implementing relay communication provided by an exemplary embodiment of the present application.
  • FIG4 is a schematic diagram of an exemplary embodiment of the present application that provides a method of relay communication that cannot be implemented
  • FIG5 is a flow chart of a terminal discovery method provided by an exemplary embodiment of the present application.
  • FIG6 is a flow chart of a terminal discovery method provided by an exemplary embodiment of the present application.
  • FIG7 is a flow chart of a terminal discovery method provided by an exemplary embodiment of the present application.
  • FIG8 is a flow chart of a terminal discovery method provided by an exemplary embodiment of the present application.
  • FIG9 is a flow chart of a terminal discovery method provided by an exemplary embodiment of the present application.
  • FIG10 is a schematic diagram of a terminal discovery device provided by an exemplary embodiment of the present application.
  • FIG11 is a schematic diagram of a terminal discovery device provided by an exemplary embodiment of the present application.
  • FIG. 12 is a schematic diagram of the structure of a communication device provided by an exemplary embodiment of the present application.
  • FIG1 shows a schematic diagram of a 5G network architecture provided by an exemplary embodiment of the present application.
  • the 5G network system includes: user equipment/mobile terminal (User Equipment, UE), (Radio) Access Network ((Radio) Access Network, (R) AN), user plane function (User Plane Function, UPF), data network (Data Network, DN) and control plane function.
  • User Equipment User Equipment
  • R Radio Access Network
  • UPF User Plane Function
  • DN Data Network
  • control plane function User Plane Function
  • control plane functions include: Access and Mobility Management Function (AMF), Session Management Function (SMF), Policy Control Function (PCF) and Unified Data Manager (UDM), Application Function (AF), Network Slice Selection Function (NSSF), and Authentication Server Function (AUSF).
  • AMF Access and Mobility Management Function
  • SMF Session Management Function
  • PCF Policy Control Function
  • UDM Unified Data Manager
  • AF Application Function
  • NSSF Network Slice Selection Function
  • AUSF Authentication Server Function
  • the UE connects to the AN at the access layer through the Uu air interface, exchanges access layer messages and performs wireless data transmission.
  • the UE connects to the AMF at the non-access layer (NAS) through the N1 interface and exchanges NAS messages.
  • AMF is the mobility management function in the core network
  • SMF is the session management function in the core network.
  • AMF is also responsible for forwarding session management-related messages between the UE and SMF.
  • PCF is the policy management function in the core network, responsible for formulating policies related to UE mobility management, session management, and billing.
  • UPF is the user plane function in the core network, which transmits data with the external data network through the N6 interface and transmits data with the AN through the N3 interface.
  • Fig. 2 shows a schematic diagram of establishing communication provided by an exemplary embodiment of the present application, wherein UE1, UE2, UE3, and UE4 represent different terminals respectively, and a terminal with a short-range communication (Prose) capability can directly communicate with another terminal with a short-range communication capability through a PC5 interface.
  • Prose short-range communication
  • UE1 may send a request to multiple UEs to establish a PC5 connection, specifically including the following steps:
  • Step 11 UE2 determines the Layer-2 ID for signaling reception.
  • step 12 and step 13 are similar to step 11 and are not described in detail.
  • Step 2 The application layer provides UE1 with application layer information for unicast short-range communication.
  • Step 3 UE1 sends a direct communication request message to UE2 via broadcast or unicast.
  • the direct communication request message is used by UE1 to request UE2 to establish communication.
  • Step 4a UE1 and UE2 establish security
  • Step 5a UE2 sends a direct communication reception message to UE1 in a unicast manner
  • Step 6 UE1 and UE2 transmit unicast data units.
  • UE1 needs to establish service communication with UE2 and UE4.
  • the following steps are performed:
  • Step 4b UE1 establishes security with UE2 and UE4 respectively;
  • Step 5b UE2 and UE4 respectively send a direct communication reception message to UE1 in a unicast manner;
  • Step 6 UE1 transmits unicast data units to UE2 and UE4 respectively.
  • the direct communication reception message is used to instruct UE2 to establish communication with UE1.
  • relay UE relay terminal
  • FIG3 shows a schematic diagram of implementing relay communication provided by an exemplary embodiment of the present application.
  • the relay terminal i.e., UE R in the figure
  • the relay terminal can communicate directly with UE1 through the PC5 interface, and can also communicate directly with UE2 through PC5, then UE1 and UE2 can interact with services through the relay terminal.
  • Figure 4 shows a schematic diagram of an exemplary embodiment of the present application that provides a relay communication that cannot be implemented. Still taking the direct communication between UE1 and UE2 as an example, there is no relay terminal between UE1 and UE2 that is close to both UE1 and UE2. In the related art, only communication between UE1 and UE2 through a relay terminal is supported, that is, UE1 and UE2 cannot communicate through the first relay terminal (ie, UE R1 in the figure). Referring to Figure 4, a second relay terminal (ie, UE R2 in the figure) is also required between the first relay terminal and UE2 to establish or modify the communication between the first terminal and the second terminal.
  • a second relay terminal ie, UE R2 in the figure
  • the present application provides a terminal discovery method, which enables UE1 to discover UE2 through a first relay terminal and a second relay terminal, and also enables the first terminal to further establish communication with UE2 through the first relay terminal and the second relay terminal. It should be understood that the embodiment of the present application only takes the example of terminal discovery and/or communication establishment between the first terminal and the second terminal through two relay terminals, and the situation where there are more than two relay terminals between the first terminal and the second terminal is similar, and can be implemented by analogy with reference to the following content, and the specific details will not be repeated.
  • FIG5 shows a flow chart of a terminal discovery method provided by an exemplary embodiment of the present application. The method is executed by a first relay terminal and includes the following steps:
  • Step 102 Receive a first discovery message sent by a second relay terminal.
  • the first discovery message is used by the first relay terminal to instruct the first terminal to discover the second terminal through the first relay terminal.
  • the first discovery message can also be understood as: used by the first relay terminal to instruct the first terminal to discover the second terminal at least through the first relay terminal.
  • the first terminal can directly discover the second terminal through the first relay terminal, or the first terminal can discover the second terminal through the first relay terminal and at least one second relay terminal.
  • the first relay terminal after receiving the first discovery message, the first relay terminal generates a second discovery message based on the first discovery message, and sends the second discovery message to the first terminal, so as to inform the first terminal that the second terminal can be discovered at least through the first relay terminal.
  • the communication between the first relay terminal and the second terminal also needs to pass through at least one second relay terminal.
  • the second relay terminal sends a first discovery message to the first relay terminal, so that the first relay terminal informs the first terminal that the second terminal can be discovered through the first relay terminal.
  • the discovery message is a discovery announcement message, or the discovery message is a discovery response message.
  • the discovery message is a message sent by the sender in the form of broadcast, which is used by the sender to actively inform the receiving end that terminal discovery and/or communication establishment can be achieved;
  • the discovery response message is a reply to the discovery request message, that is, after the sender receives the discovery request message sent by the receiving end, it can send a discovery response message to the receiving end to passively inform the receiving end that terminal discovery and/or communication establishment can be achieved.
  • the first discovery message is a first discovery announcement message or a first discovery response message, wherein the first discovery announcement message is a message actively sent by the second relay terminal in a broadcast form, and the first discovery response message is a reply of the second relay terminal to the first discovery request message sent by the first relay terminal.
  • the message content and/or link layer packet structure of the first discovery message carries the identifier of the second terminal.
  • the identifier of the second terminal includes the user identifier and/or layer 2 identifier of the second terminal.
  • the message content of the first discovery message carries the user identifier of the second terminal at the application layer, and/or the link layer packet structure of the first discovery message carries the layer 2 identifier of the second terminal.
  • the first relay terminal in order for the first terminal to discover the second terminal, after receiving the first discovery message sent by the second relay terminal, the first relay terminal may generate a second discovery message according to the first discovery message and send the second discovery message to the first terminal.
  • the second discovery message is used to indicate that the first terminal discovers the second terminal through the first relay terminal.
  • the second discovery message carries the identifier of the second terminal, or the second discovery message carries the identifier of the first relay terminal and the identifier of the second terminal. It can also be understood that the second discovery message carries at least the identifier of the second terminal.
  • the identifier of the first relay terminal includes the user identifier and/or layer 2 identifier of the first relay terminal.
  • the layer 2 identifier of the first relay terminal is optionally carried in the link layer packet structure of the second discovery message.
  • first relay terminal and a second relay terminal between the first terminal and the second terminal, and the first terminal can discover the second terminal through the first relay terminal. Subsequently, if it is necessary to establish or modify a communication path between the first terminal and the second terminal, it can be achieved in the following two ways:
  • Implementation method 1 The first terminal communicates with the second terminal through the first relay terminal;
  • Implementation method 2 The first terminal communicates with the second terminal via the first relay terminal and the second relay terminal in sequence.
  • the selection of the above two methods may be made by the first relay terminal or by the first terminal.
  • the first relay terminal may perform path selection, determine the second relay terminal as a node on the communication path between the first relay terminal and the second terminal, and store first path information, which includes an identifier of the second relay terminal.
  • the first relay terminal generates a second discovery message based on the first discovery message, and sends the second discovery message to the first terminal. If the first terminal needs to establish communication with the second terminal, the first terminal sends a first request message to the first relay terminal to request to establish or modify the communication path with the second terminal through the first relay terminal. After receiving the first request message, the first relay terminal may send a second request message to the second relay terminal based on the first path information to request to establish or modify the communication path with the second terminal through the second relay terminal.
  • the first relay terminal makes a path selection to determine whether to determine the second relay terminal as a node on the communication path between the first terminal and the second terminal. It should be understood that the first relay terminal may not determine the second relay terminal as a node on the communication path between the first terminal and the second terminal, and the first relay terminal may store the second path information, and the second path information includes the identifier of the second terminal. Subsequently, after receiving the first request message sent by the first terminal, the first relay terminal directly establishes or modifies the communication path with the second terminal according to the second path information.
  • the first relay terminal may directly generate a second discovery message according to the first discovery message.
  • the second discovery message also carries an identifier of the second relay terminal. The identifier of the second relay terminal is used to indicate that the second relay terminal is a candidate node on the communication path between the first relay terminal and the second terminal.
  • the first relay terminal sends a second discovery message to the first terminal, and the second discovery message carries the identifier of the second terminal and the identifier of the second relay terminal, or the second discovery message carries the identifier of the second terminal, the identifier of the first relay terminal, and the identifier of the second relay terminal.
  • the first terminal needs to establish communication with the second terminal, the first terminal sends a third request message to the first relay terminal to instruct the first relay terminal to establish or modify the communication path between the first relay terminal and the second terminal through the second relay terminal.
  • the first relay terminal may send a fourth request message to the second relay terminal to request to establish or modify the communication path between the first relay terminal and the second terminal through the second relay terminal.
  • the first terminal makes a path selection to determine whether to determine the second relay terminal as a node on the communication path between the first terminal and the second terminal. It should be understood that the first terminal may not determine the second relay terminal as a node on the communication path between the first terminal and the second terminal.
  • the first terminal sends a fifth request message to the first relay terminal, and the fifth request message is used to indicate the establishment or modification of a communication connection with the second terminal through the first relay terminal. Subsequently, the first relay terminal can directly establish or modify a communication path with the second terminal according to the fifth request message.
  • the terminal discovery method provided in the embodiment of the present application can be implemented as one of the following two optional implementation methods:
  • Relay terminal 2 sends a first discovery message to relay terminal 1.
  • relay terminal 1 determines relay terminal 2 as a node on the communication path between relay terminal 1 and UE2, and stores first path information, the first path information including the identifier of relay terminal 2;
  • relay terminal 1 generates a second discovery message based on the first discovery message, and sends the second discovery message to UE1, the second discovery message carries the identifier of UE2, or the second discovery message carries the identifier of UE2 and the identifier of relay terminal 1.
  • UE1 sends a first request message to relay terminal 1, and relay terminal 1 sends a second request message to relay terminal 2 based on the first path information, and relay terminal 2 establishes or modifies a communication path with UE2. Based on this, UE1 communicates with UE2 through relay terminal 1 and relay terminal 2 in turn.
  • Relay terminal 2 sends a first discovery message to relay terminal 1.
  • relay terminal 1 generates a second discovery message based on the first discovery message, and sends the second discovery message to UE1, the second discovery message carries the identifier of UE2 and the identifier of relay terminal 2, or the second discovery message carries the identifier of relay terminal 1, the identifier of relay terminal 2 and the identifier of UE2.
  • UE1 determines relay terminal 2 as a node on the communication path between relay terminal 1 and UE2, and sends a third request message to relay terminal 1; relay terminal 1 can determine that UE1 indicates to communicate with UE2 through relay terminal 2 according to the third request message, then relay terminal 1 sends a fourth request message to relay terminal 2, and relay terminal 2 establishes or modifies the communication path with UE2. Based on this, UE1 communicates with UE2 through relay terminal 1 and relay terminal 2 in turn.
  • the number of relay terminals 2 is not less than one. That is, in implementation one, relay terminal 1 can receive a first discovery message sent by multiple relay terminals 2, and relay terminal 1 selects one relay terminal 2 from multiple relay terminals 2 as a node on the communication path between relay terminal 1 and UE1. In implementation two, the second discovery message sent by relay terminal 1 to UE1 carries the identifiers of multiple relay terminals 2, and UE1 selects one relay terminal 2 from multiple relay terminals 2 as a node on the communication path between relay terminal 1 and UE1. And in implementation two, the identifier of the relay terminal 2 selected by UE1 and the identifier of UE2 will be carried in the third request message sent by UE1 to relay terminal 1.
  • the first relay terminal by receiving the first discovery message sent by the second relay terminal, the first relay terminal can instruct the first terminal to discover the second terminal through the first relay terminal. Based on the first discovery message, the communication path between the first terminal and the second terminal can also be selected so that the first terminal communicates with the second terminal through the first relay terminal, or the first terminal communicates with the second terminal through the first relay terminal and the second relay terminal in sequence.
  • FIG6 shows a flowchart of a terminal discovery method provided by an exemplary embodiment of the present application. The method is executed by a first terminal and includes the following steps:
  • Step 202 Receive a second discovery message sent by the first relay terminal.
  • the second discovery message is used to instruct the first terminal to discover the second terminal through the first relay terminal.
  • the first relay terminal when the first terminal and the second terminal cannot directly discover the terminal and establish communication through the first relay terminal, the communication between the first relay terminal and the second terminal also needs to pass through at least one second relay terminal.
  • the first relay terminal After receiving the first discovery message sent by the second relay terminal, the first relay terminal can generate a second discovery message according to the first discovery message and send it to the first terminal.
  • the relevant content of the first discovery message can refer to the foregoing content and will not be repeated.
  • the second discovery message is a second discovery announcement message or a second discovery response message.
  • the second discovery announcement message is a message actively sent by the first relay terminal in a broadcast form
  • the second discovery response message is a reply of the first relay terminal to the second discovery request message sent by the first terminal.
  • the second discovery message carries an identifier of the second terminal, or the second discovery message carries an identifier of the first relay terminal and an identifier of the second terminal.
  • the identifier of the terminal or relay terminal includes a user identifier and/or a layer 2 identifier.
  • the layer 2 identifier of the first relay terminal is optionally carried in the link layer packet structure of the second discovery message.
  • the first terminal can discover the second terminal through the first relay terminal. Subsequently, if it is necessary to establish or modify a communication path between the first terminal and the second terminal, it can be achieved in the following two ways:
  • Implementation method 1 The first terminal communicates with the second terminal through the first relay terminal;
  • Implementation method 2 The first terminal communicates with the second terminal via the first relay terminal and the second relay terminal in sequence.
  • the terminal discovery method provided in the embodiment of the present application can be implemented as one of the following two optional implementation methods:
  • Relay terminal 2 sends a first discovery message to relay terminal 1.
  • relay terminal 1 determines relay terminal 2 as a node on the communication path between relay terminal 1 and UE2, and stores first path information, the first path information including the identifier of relay terminal 2;
  • relay terminal 1 generates a second discovery message based on the first discovery message, and sends the second discovery message to UE1, the second discovery message carries the identifier of UE2, or the second discovery message carries the identifier of UE2 and the identifier of relay terminal 1.
  • UE1 sends a first request message to relay terminal 1, and relay terminal 1 sends a second request message to relay terminal 2 based on the first path information, and relay terminal 2 establishes or modifies a communication path with UE2. Based on this, UE1 communicates with UE2 through relay terminal 1 and relay terminal 2 in turn.
  • Relay terminal 2 sends a first discovery message to relay terminal 1.
  • relay terminal 1 generates a second discovery message based on the first discovery message, and sends the second discovery message to UE1, the second discovery message carries the identifier of UE2 and the identifier of relay terminal 2, or the second discovery message carries the identifier of relay terminal 1, the identifier of relay terminal 2 and the identifier of UE2.
  • UE1 determines relay terminal 2 as a node on the communication path between relay terminal 1 and UE2, and sends a third request message to relay terminal 1; relay terminal 1 can determine that UE1 indicates to communicate with UE2 through relay terminal 2 according to the third request message, then relay terminal 1 sends a fourth request message to relay terminal 2, and relay terminal 2 establishes or modifies the communication path with UE2. Based on this, UE1 communicates with UE2 through relay terminal 1 and relay terminal 2 in turn.
  • the number of relay terminals 2 is not less than one. That is, in implementation one, relay terminal 1 can receive a first discovery message sent by multiple relay terminals 2, and relay terminal 1 selects one relay terminal 2 from multiple relay terminals 2 as a node on the communication path between relay terminal 1 and UE1. In implementation two, the second discovery message sent by relay terminal 1 to UE1 carries the identifiers of multiple relay terminals 2, and UE1 selects one relay terminal 2 from multiple relay terminals 2 as a node on the communication path between relay terminal 1 and UE1. And in implementation two, the identifier of the relay terminal 2 selected by UE1 and the identifier of UE2 will be carried in the third request message sent by UE1 to relay terminal 1.
  • the first terminal by receiving the second discovery message sent by the first relay terminal, the first terminal can discover the second terminal through the first relay terminal. Based on the first discovery message, the communication path between the first terminal and the second terminal can also be selected so that the first terminal communicates with the second terminal through the first relay terminal, or the first terminal communicates with the second terminal through the first relay terminal and the second relay terminal in sequence.
  • FIG. 7 shows a flow chart of a terminal discovery method provided by an exemplary embodiment of the present application, the method comprising the following steps:
  • Step 302 The second terminal sends a message carrying an identifier of the second terminal to the second relay terminal.
  • the message carrying the identifier of the second terminal is a discovery announcement message, or a discovery response message.
  • the second terminal may actively send a discovery announcement message carrying the identifier of the second terminal in a broadcast form. In other embodiments, after receiving the discovery request message sent by the second relay terminal, the second terminal may send a discovery response message carrying the identifier of the second terminal to the second relay terminal.
  • the identifier of the second terminal includes a user identifier and/or a layer 2 identifier of the second terminal.
  • the discovery announcement message or the discovery response message carries the user identifier of the second terminal at the application layer, or the discovery announcement message or the discovery response message carries the layer 2 identifier of the second terminal in the link layer packet structure.
  • step 304 is executed as follows:
  • Step 304 The second relay terminal sends a first discovery message to the first relay terminal.
  • the first discovery message is used by the first relay terminal to instruct the first terminal to discover the second terminal through the first relay terminal.
  • the first discovery message is a first discovery announcement message or a first discovery response message, wherein the first discovery announcement message is a message actively sent by the second relay terminal in a broadcast form, and the first discovery response message is a reply of the second relay terminal to the first discovery request message sent by the first relay terminal.
  • the first discovery announcement message or the first discovery response message carries the user identifier of the second terminal at the application layer, and/or the link layer packet structure of the first discovery announcement message or the first discovery response message carries the layer 2 identifier of the second terminal.
  • the first discovery message also carries an identifier of the second relay terminal, and the identifier of the second relay terminal includes a user identifier and/or a layer 2 identifier of the second relay terminal. That is, the first discovery announcement message or the first discovery response message also carries the user identifier of the second relay terminal at the application layer, and/or the link layer packet structure of the first discovery announcement message or the first discovery response message carries the layer 2 identifier of the second relay terminal.
  • Step 304 is the same as step 102 and can be used for reference only and will not be described in detail.
  • step 306 is executed as follows:
  • Step 306 The first relay terminal sends a second discovery message to the first terminal.
  • the second discovery message is used to instruct the first terminal to discover the second terminal through the first relay terminal.
  • the second discovery message is a second discovery announcement message or a second discovery response message.
  • the second discovery announcement message is a message actively sent by the first relay terminal in a broadcast form
  • the second discovery response message is a reply of the first relay terminal to the second discovery request message sent by the first terminal.
  • the second discovery message carries an identifier of the second terminal, or the second discovery message carries an identifier of the first relay terminal and an identifier of the second terminal.
  • the identifier of the terminal or relay terminal includes a user identifier and/or a layer 2 identifier.
  • the layer 2 identifier of the first relay terminal is optionally carried in the link layer packet structure of the second discovery message.
  • first relay terminal and a second relay terminal between the first terminal and the second terminal, and the first terminal can discover the second terminal through the first relay terminal. Subsequently, if it is necessary to establish or modify a communication path between the first terminal and the second terminal, it can be achieved in the following two ways:
  • Implementation method 1 The first terminal communicates with the second terminal through the first relay terminal;
  • Implementation method 2 The first terminal communicates with the second terminal via the first relay terminal and the second relay terminal in sequence.
  • Step 306 is the same as step 202 and can be used for reference only and will not be described in detail.
  • the first terminal through the transmission of the first discovery message and the second discovery message, the first terminal can discover the second terminal through the first relay terminal. Based on the first discovery message and the second discovery message, the communication path between the first terminal and the second terminal can also be selected, so that the first terminal communicates with the second terminal through the first relay terminal, or the first terminal communicates with the second terminal through the first relay terminal and the second relay terminal in sequence.
  • the path selection can be made by the first relay terminal or by the first terminal, which is specifically described as follows:
  • the path selection is made by the first relay terminal.
  • FIG. 8 shows a flow chart of a terminal discovery method provided by an exemplary embodiment of the present application, the method further comprising the following steps:
  • Step 3051 The first relay terminal determines the second relay terminal as a node on the communication path between the first relay terminal and the second terminal.
  • the first relay terminal may determine one of the n second relay terminals as a node on the communication path between the first relay terminal and the second terminal.
  • the path selection performed by the first relay terminal may be performed according to at least one of the following information:
  • the first terminal is UE1
  • the first relay terminal is relay terminal 1
  • the second relay terminal is relay terminal 2
  • the second terminal is UE2:
  • Relay terminal 1 may receive a first discovery message from relay terminal 2, and the first discovery message carries the identifier of UE2; or, relay terminal 1 may also receive the first discovery message from other relay terminals, such as relay terminal x; or, relay terminal 1 may also directly receive a discovery announcement message or a discovery response message including the identifier of UE2 from UE2.
  • Relay terminal x is another relay terminal other than relay terminal 2 among the n second relay terminals. Subsequently, relay terminal 1 performs path selection. For example, relay terminal 1 chooses to interact directly with UE2; or, relay terminal 1 chooses to use relay terminal 2 as the relay terminal for UE1 to reach UE2.
  • Step 3052 The first relay terminal stores first path information, where the first path information includes an identifier of the second relay terminal.
  • the first relay terminal may store the first path information, wherein the first path information may also be understood as a mapping relationship or an association relationship between the second relay terminal and the second terminal.
  • the first relay terminal after determining the second relay terminal as a node on the communication path between the first relay terminal and the second terminal, the first relay terminal will directly store the following information: the identification of the second relay terminal and the identification of the second terminal, and/or, the mapping relationship between the second relay terminal and the second terminal, and/or, the association relationship between the second relay terminal and the second terminal.
  • the first terminal is UE1
  • the first relay terminal is relay terminal 1
  • the second relay terminal is relay terminal 2
  • the second terminal is UE2: when relay terminal 1 chooses to interact directly with UE2, relay terminal 1 saves the user identifier of UE2 and the layer 2 identifier corresponding to UE2; or, when relay terminal 1 chooses to use relay terminal 2 as the relay terminal to reach UE2, relay terminal 1 saves the user identifier of UE2, the user identifier of relay terminal 2, the layer 2 identifier of UE2, and the layer 2 identifier of relay terminal 2.
  • Step 3071 The first terminal sends a first request message to the first relay terminal.
  • the first request message is used by the first terminal to request to establish or modify a communication path with the second terminal through the first relay terminal, and the first request message carries an identifier of the second terminal.
  • step 3051 and step 3052 when there are n second relay terminals between the first relay terminal and the second terminal, the first relay terminal actively makes a path selection and determines the communication path between the first relay terminal and the second terminal. Subsequently, when it is necessary to communicate with the second terminal, the first terminal may send a first request message to the first relay terminal, so that the first relay terminal can establish or modify the communication path determined by the first relay terminal with the second terminal according to the stored first path information.
  • Step 3081 The first relay terminal sends a second request message to the second relay terminal according to the first path information.
  • the second request message is used by the first relay terminal to request to establish or modify a communication path with the second terminal through the second relay terminal.
  • the first path information can also be understood as a mapping relationship or an association relationship between the second relay terminal and the second terminal.
  • the first path information includes: an identifier of the second relay terminal and an identifier of the second terminal, and/or a mapping relationship between the second relay terminal and the second terminal, and/or an association relationship between the second relay terminal and the second terminal.
  • the communication path between the first relay terminal and the second terminal can be determined based on the first path information. It should be understood that the first relay terminal can communicate directly with the second terminal, or the first relay terminal can communicate with the second terminal through one of the n second relay terminals.
  • Step 309 The second relay terminal and the second terminal establish or modify a communication path.
  • the second relay terminal and the second terminal may establish or modify a communication path, so that the first terminal may communicate with the second terminal via the first relay terminal and the second relay terminal in sequence.
  • the embodiment of the present application only illustrates the implementation method in which the first terminal communicates with the second terminal through the first relay terminal and the second relay terminal in sequence.
  • the first relay terminal may not determine the second relay terminal as a node on the communication path between the first terminal and the second terminal, and the first relay terminal may store the second path information, and the second path information includes the identifier of the second terminal.
  • the second path information can also be understood as a mapping relationship or association relationship between the first relay terminal and the second terminal.
  • the first path information includes: an identifier of the second terminal, and/or a mapping relationship between the first relay terminal and the second terminal, and/or an association relationship between the first relay terminal and the second terminal.
  • the first relay terminal may directly establish or modify a communication path with the second terminal according to the second path information. In this case, step 3081 and step 309 will no longer be performed.
  • the first relay terminal may also actively perform path selection and store the first path information for subsequent establishment or modification of the communication path.
  • the first terminal may send a first request message to the first relay terminal, so that the first relay terminal can establish or modify a communication path with the second terminal according to the first path information, thereby enabling the first terminal to communicate with the second terminal through at least two relay terminals.
  • the path selection is made by the first terminal.
  • the first relay terminal may generate a second discovery message according to the first discovery message.
  • the second discovery message carries an identifier of the second terminal in addition to the identifier of the first relay terminal and the identifier of the second terminal, and the identifier of the second relay terminal is used to indicate that the second relay terminal is a candidate node on the communication path between the first relay terminal and the second terminal.
  • the second discovery message carries the identifiers of n second relay terminals, and the identifier of the i-th second relay terminal is used to indicate that the i-th second relay terminal is a candidate node on the communication path between the first relay terminal and the second terminal.
  • the first terminal can select a second relay terminal from the n second relay terminals as a node on the communication path between the first relay terminal and the second terminal, or can choose not to go through any second relay terminal and directly establish or modify the communication path between the first relay terminal and the second terminal.
  • the following will describe the process in which the first terminal selects a second relay terminal from n second relay terminals as a node on the communication path between the first relay terminal and the second terminal:
  • FIG. 9 shows a flow chart of a terminal discovery method provided by an exemplary embodiment of the present application, the method further comprising the following steps:
  • Step 3072 The first terminal determines the second relay terminal as a node on the communication path between the first relay terminal and the second terminal.
  • the first terminal After receiving the second discovery message, the first terminal can learn the candidate nodes on the communication path between the first relay terminal and the second terminal. That is, the first terminal can learn that there are n second relay terminals between the first relay terminal and the second terminal, and the n second relay terminals can all serve as a node in the communication connection between the first relay terminal and the second terminal. Subsequently, the first terminal can determine one of the n second relay terminals as a node on the communication path between the first relay terminal and the second terminal.
  • the path selection performed by the first relay terminal may be performed based on at least one of the following information: the quality of the wireless signal; the strength of the wireless signal; the distance information between any two terminals among the second terminal, the first terminal, the first relay terminal and the second relay terminal; the user preference corresponding to the terminal or relay terminal; and the authorization information corresponding to the terminal or relay terminal.
  • the first terminal is UE1
  • the first relay terminal is relay terminal 1
  • the second relay terminal is relay terminal 2
  • the second terminal is UE2:
  • the second discovery message sent by relay terminal 1 to UE1 may also carry multiple optional path information.
  • path 1 is relay terminal 1 interacting directly with UE2, then the second discovery message carries the identifier of relay terminal 1 and the identifier of UE2;
  • path 2 is relay terminal 1 interacting with UE2 through relay terminal 2, then the second discovery message carries the identifier of relay terminal 1, the identifier of relay terminal 2, and the identifier of UE2;
  • path 3 is relay terminal 1 interacting with UE2 through relay terminal x, then the second discovery message carries the identifier of relay terminal 1, the identifier of relay terminal x, and the identifier of UE2.
  • relay terminal x is the other relay terminal among the n second relay terminals except relay terminal 2.
  • Step 3073 The first terminal sends a third request message to the first relay terminal.
  • the third request message is used by the first terminal to instruct the first relay terminal to establish or modify a communication path with the second terminal through the second relay terminal, and the third request message carries an identifier of the second terminal and an identifier of the second relay terminal.
  • step 3072 when there are n second relay terminals between the first relay terminal and the second terminal, the first terminal makes a path selection and determines the communication path between the first relay terminal and the second terminal. Subsequently, when communication with the second terminal is required, the first terminal may send a third request message to the first relay terminal, so that the first relay terminal may establish or modify the communication path determined by the first terminal with the second terminal according to the third request message.
  • Step 3082 The first relay terminal sends a fourth request message to the second relay terminal.
  • the fourth request message is used by the first relay terminal to request to establish or modify a communication path with the second terminal through the second relay terminal.
  • the first terminal may not determine the second relay terminal as a node on the communication path between the first terminal and the second terminal.
  • the first terminal sends a fifth request message to the first relay terminal, and the fifth request message is used to indicate that a communication connection is established or modified with the second terminal through the first relay terminal. Based on this, the first relay terminal can directly establish or modify a communication path with the second terminal.
  • Step 309 The second relay terminal and the second terminal establish or modify a communication path.
  • the second relay terminal and the second terminal may establish or modify the communication path, so that the first terminal may communicate with the second terminal via the first relay terminal and the second relay terminal in sequence.
  • the embodiment of the present application only shows an implementation method in which the first terminal communicates with the second terminal through the first relay terminal and the second relay terminal in sequence.
  • the first terminal may not determine the second relay terminal as a node on the communication path between the first terminal and the second terminal.
  • the first terminal sends the fifth request message to the first relay terminal, and steps 3082 and 309 will no longer be executed.
  • the first terminal when the second discovery message also carries the identifier of the second relay terminal, the first terminal can perform path selection to determine the communication path between the first terminal and the second terminal.
  • the first terminal may send a third request message to the first relay terminal, instructing the first relay terminal to establish or modify a communication path with the second terminal through the second relay terminal, so that the first terminal can communicate with the second terminal through at least two relay terminals.
  • the first terminal discovers the second terminal through two or more relay terminals, and the first terminal establishes or modifies the communication path with the second terminal through two or more relay terminals, which are all within the protection scope of this application, and the specific implementation method is similar to the above content, which can be used as a reference and will not be repeated.
  • the terminal discovery method provided in the embodiment of the present application can be implemented in any one of the following two ways:
  • Relay terminal 1 performs path selection.
  • Step 1 UE2 sends a discovery announcement message 1 or a discovery response message 1.
  • the discovery announcement message 1 is actively sent by UE2 in the form of broadcast, and the discovery response message 1 is the response of UE2 to the relay terminal 2 after UE2 has previously received the discovery request message 1 from the relay terminal 2.
  • the discovery announcement message 1 or the discovery response message 1 carries the identifier of UE2, such as the user identifier of UE2 at the application layer.
  • the link layer packet structure of the discovery announcement message 1 or the discovery response message 1 carries the Layer-2ID of UE2.
  • Step 2 Relay terminal 2 generates a discovery announcement message 2 or a discovery response message 2.
  • the discovery announcement message 2 or the discovery response message 2 in addition to carrying the identifier of UE2, the discovery announcement message 2 or the discovery response message 2 also carries the identifier of relay terminal 2, such as the user identifier of relay terminal 2 at the application layer.
  • the link layer packet structure of the discovery announcement message 2 or the discovery response message 2 carries the Layer-2ID of relay terminal 2.
  • Step 3-1 Relay terminal 1 performs path selection.
  • relay terminal 1 may receive a discovery declaration message 2 or a discovery response message 2 from relay terminal 2, or may receive a discovery declaration message 2 or a discovery response message 2 from other relay terminals (such as relay terminal x), or may directly receive a discovery declaration message or a discovery response message including the identifier of UE2 from UE2.
  • relay terminal 1 Based on this, relay terminal 1 performs path selection. For example, relay terminal 1 chooses to interact directly with UE2; or relay terminal 1 chooses to use relay terminal 2 as a relay terminal to reach UE2, and the selection criteria include but are not limited to the quality of the wireless signal.
  • relay terminal 1 stores the selected path information. For example, in the case of choosing to interact directly with UE2, relay terminal 1 saves the user identification of UE2 and the Layer-2ID corresponding to UE2; or, in the case of relay terminal 1 choosing to use relay terminal 2 as the relay terminal to reach UE2, relay terminal 1 saves the user identification of UE2, the user identification of relay terminal 2, the Layer-2ID of UE1, and the Layer-2ID of relay terminal 2.
  • Step 4-1 The relay terminal 1 generates a discovery announcement message 3 or a discovery response message 3.
  • the discovery announcement message 3 or the discovery response message 3 carries not only the identifier of UE2, but also the identifier of relay terminal 1, such as the user identifier of relay terminal 1 at the application layer.
  • the link layer packet structure of the discovery announcement message 3 or the discovery response message 3 carries the Layer-2ID of relay terminal 1.
  • path selection can be performed.
  • UE1 determines that it can communicate with UE2 through the relay terminal 1
  • UE1 can send a request message for link establishment/modification to the relay terminal 1
  • the request message carries the identifier of the target UE (i.e., UE2), so that the relay terminal 1 sends a request message for link establishment/modification to the relay terminal 2 according to the path information saved in step 3-1.
  • Step 1 UE2 sends a discovery announcement message 1 or a discovery response message 1.
  • the discovery announcement message 1 is actively sent by UE2 in the form of broadcast, and the discovery response message 1 is the response of UE2 to the relay terminal 2 after UE2 has previously received the discovery request message 1 from the relay terminal 2.
  • the discovery announcement message 1 or the discovery response message 1 carries the identifier of UE2, such as the user identifier of UE2 at the application layer.
  • the link layer packet structure of the discovery announcement message 1 or the discovery response message 1 carries the Layer-2ID of UE2.
  • Step 2 Relay terminal 2 generates a discovery announcement message 2 or a discovery response message 2.
  • the discovery announcement message 2 or the discovery response message 2 in addition to carrying the identifier of UE2, the discovery announcement message 2 or the discovery response message 2 also carries the identifier of relay terminal 2, such as the user identifier of relay terminal 2 at the application layer.
  • the link layer packet structure of the discovery announcement message 2 or the discovery response message 2 carries the Layer-2ID of relay terminal 2.
  • Step 3-2 The relay terminal 1 generates a discovery announcement message 3 or a discovery response message 3.
  • relay terminal 1 may receive a discovery declaration message 2 or a discovery response message 2 from relay terminal 2, or may receive a discovery declaration message 2 or a discovery response message 2 from other relay terminals (such as relay terminal x), or may directly receive a discovery declaration message or a discovery response message including the identifier of UE2 from UE2.
  • the relay terminal 1 Based on this, the relay terminal 1 generates a discovery announcement message 3 or a discovery response message 3 .
  • the discovery announcement message 3 or the discovery response message 3 carries multiple optional path information. For example, if path 1 is that relay terminal 1 interacts directly with UE2, the discovery announcement message 3 or the discovery response message 3 carries the identifier of relay terminal 1 and the identifier of UE2; if path 2 is that relay terminal 1 interacts with UE2 through relay terminal 2, the discovery announcement message 3 or the discovery response message 3 carries the identifier of relay terminal 1, the identifier of relay terminal 2, and the identifier of UE2; if path 3 is that relay terminal 1 interacts with UE2 through relay terminal x, the discovery announcement message 3 or the discovery response message 3 carries the identifier of relay terminal 1, the identifier of relay terminal x, and the identifier of UE2.
  • UE1 After receiving the discovery announcement message 3 or the discovery response message 3 from the relay terminal 1, UE1 can select a path and inform the relay terminal 1 of the selected path. For example, UE1 sends a request message for link establishment/modification to the relay terminal 1, and the request message carries the identifier of the target UE (i.e., UE2) and the selected path information (e.g., the identifier of the relay terminal 2). Subsequently, the relay terminal 1 sends a request message for link establishment/modification to the relay terminal 2 based on the request message.
  • the target UE i.e., UE2
  • the selected path information e.g., the identifier of the relay terminal 2
  • the relay terminal 1 sends a request message for link establishment/modification to the relay terminal 2 based on the request message.
  • FIG10 is a schematic diagram of a terminal discovery device provided by an exemplary embodiment of the present application, the device comprising:
  • the receiving module 1020 is configured to receive a first discovery message sent by the second relay terminal;
  • the first discovery message is used by the first relay terminal to instruct the first terminal to discover the second terminal through the first relay terminal.
  • the device also includes: a sending module 1040, used to send a second discovery message to the first terminal; wherein the second discovery message is determined based on the first discovery message, the second discovery message carries an identifier of the second terminal, or the second discovery message carries an identifier of the first relay terminal and an identifier of the second terminal.
  • a sending module 1040 used to send a second discovery message to the first terminal; wherein the second discovery message is determined based on the first discovery message, the second discovery message carries an identifier of the second terminal, or the second discovery message carries an identifier of the first relay terminal and an identifier of the second terminal.
  • the device also includes: a storage module 1060, used to determine the second relay terminal as a node on the communication path between the first relay terminal and the second terminal; and store first path information, wherein the first path information includes an identifier of the second relay terminal.
  • a storage module 1060 used to determine the second relay terminal as a node on the communication path between the first relay terminal and the second terminal.
  • the first path information also includes an identifier of the second terminal, and the identifier of the second terminal is used to indicate that the end point of the communication path is the second terminal.
  • the receiving module 1020 is further used to receive a first request message sent by the first terminal; wherein the first request message is used by the first terminal to request to establish or modify a communication path with the second terminal through the first relay terminal, and the first request message carries an identifier of the second terminal.
  • the device also includes: a sending module 1040, used to send a second request message to the second relay terminal according to the first path information; wherein the second request message is used by the first relay terminal to request to establish or modify a communication path with the second terminal through the second relay terminal.
  • a sending module 1040 used to send a second request message to the second relay terminal according to the first path information; wherein the second request message is used by the first relay terminal to request to establish or modify a communication path with the second terminal through the second relay terminal.
  • the second discovery message further carries an identifier of the second relay terminal, where the identifier of the second relay terminal is used to indicate that the second relay terminal is a candidate node on the communication path between the first relay terminal and the second terminal.
  • the receiving module 1020 is also used to receive a third request message sent by the first terminal; wherein the third request message is used by the first terminal to instruct the first relay terminal to establish or modify a communication path with the second terminal through the second relay terminal, and the third request message carries the identifier of the second terminal and the identifier of the second relay terminal.
  • the device also includes: a sending module 1040, used to send a fourth request message to the second relay terminal; wherein the fourth request message is used by the first relay terminal to request to establish or modify a communication path with the second terminal through the second relay terminal.
  • a sending module 1040 used to send a fourth request message to the second relay terminal; wherein the fourth request message is used by the first relay terminal to request to establish or modify a communication path with the second terminal through the second relay terminal.
  • the identifier of the terminal and/or relay terminal includes at least one of the following identifiers: a user identifier; a layer 2 identifier.
  • the discovery message is one of the following messages: a discovery announcement message; a discovery response message.
  • FIG11 is a schematic diagram of a terminal discovery device provided by an exemplary embodiment of the present application, the device comprising:
  • the receiving module 1120 is configured to receive a second discovery message sent by the first relay terminal
  • the second discovery message is used to instruct the first terminal to discover the second terminal through the first relay terminal.
  • the second discovery message carries an identifier of the second terminal, or the second discovery message carries an identifier of the first relay terminal and an identifier of the second terminal.
  • the device also includes: a sending module 1140, used to send a first request message to the first relay terminal; wherein the first request message is used by the first terminal to request to establish or modify a communication path with the second terminal through the first relay terminal, and the first request message carries an identifier of the second terminal.
  • a sending module 1140 used to send a first request message to the first relay terminal; wherein the first request message is used by the first terminal to request to establish or modify a communication path with the second terminal through the first relay terminal, and the first request message carries an identifier of the second terminal.
  • the second discovery message further carries an identifier of the second relay terminal, where the identifier of the second relay terminal is used to indicate that the second relay terminal is a candidate node on the communication path between the first relay terminal and the second terminal.
  • the device also includes: a sending module 1140, used to send a third request message to the first relay terminal; wherein the third request message is used by the first terminal to instruct the first relay terminal to establish or modify a communication path with the second terminal through the second relay terminal, and the third request message carries the identifier of the second terminal and the identifier of the second relay terminal.
  • a sending module 1140 used to send a third request message to the first relay terminal; wherein the third request message is used by the first terminal to instruct the first relay terminal to establish or modify a communication path with the second terminal through the second relay terminal, and the third request message carries the identifier of the second terminal and the identifier of the second relay terminal.
  • the device further includes: a determination module 1160, configured to determine the second relay terminal as a node on the communication path between the first relay terminal and the second terminal.
  • a determination module 1160 configured to determine the second relay terminal as a node on the communication path between the first relay terminal and the second terminal.
  • the identifier of the terminal and/or relay terminal includes at least one of the following identifiers: a user identifier; a layer 2 identifier.
  • the second discovery message is one of the following messages: a discovery announcement message; a discovery response message.
  • FIG12 shows a schematic diagram of the structure of a communication device (first relay terminal or terminal) provided by an exemplary embodiment of the present application.
  • the communication device includes: a processor 1201 , a receiver 1202 , a transmitter 1203 , a memory 1204 and a bus 1205 .
  • the processor 1201 includes one or more processing cores.
  • the processor 1201 executes various functional applications and information processing by running software programs and modules.
  • the receiver 1202 and the transmitter 1203 may be implemented as a communication component, which may be a communication chip.
  • the memory 1204 is connected to the processor 1201 via a bus 1205 .
  • the memory 1204 may be used to store at least one instruction, and the processor 1201 may be used to execute the at least one instruction to implement the various steps of the terminal discovery method mentioned in the above method embodiment.
  • memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof.
  • Volatile or non-volatile storage devices include but are not limited to: magnetic disks or optical disks, electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), read-only memory (ROM), magnetic memory, flash memory, and programmable read-only memory (PROM).
  • the present application also provides a first relay terminal, which includes a memory and a processor; at least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the aforementioned terminal discovery method.
  • the present application also provides a first terminal, which includes a memory and a processor; at least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the aforementioned terminal discovery method.
  • the present application also provides a computer-readable storage medium, in which a computer program is stored.
  • the computer program is used to be executed by a processor to implement the aforementioned terminal discovery method.
  • the present application also provides a chip, which includes a programmable logic circuit and/or program instructions, and is used to implement the aforementioned terminal discovery method when an electronic device equipped with the chip is running.
  • the present application also provides a computer program product, which includes computer instructions.
  • the computer instructions are stored in a computer-readable storage medium.
  • a processor reads and executes the computer instructions from the computer-readable storage medium to implement the aforementioned terminal discovery method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种终端发现方法、装置、设备及存储介质,涉及通信技术领域。所述方法由第一中继终端执行,该方法包括:接收第二中继终端发送的第一发现消息;其中,第一发现消息用于第一中继终端指示第一终端通过第一中继终端发现第二终端。

Description

终端发现方法、装置、设备及存储介质 技术领域
本申请涉及通信技术领域,特别涉及终端发现方法、装置、设备及存储介质。
背景技术
第五代(the 5 th Generation,5G)通信中,在第一终端需要与第二终端建立通信的情况下,若第一终端无法与第二终端进行直接的近距离通信,则可以通过一个中继终端发现第二终端,也可以进一步通过该中继终端与第二终端建立通信。
发明内容
本申请实施例提供了一种终端发现方法、装置、设备及存储介质,可实现第一终端通过不少于两个中继终端来发现第二终端,所述技术方案如下:
根据本申请的一个方面,提供了一种终端发现方法,该方法由第一中继终端执行,该方法包括:
接收第二中继终端发送的第一发现消息;
其中,第一发现消息用于第一中继终端指示第一终端通过第一中继终端发现第二终端。
根据本申请的一个方面,提供了一种终端发现方法,该方法由第一终端执行,该方法包括:
接收第一中继终端发送的第二发现消息;
其中,第二发现消息用于指示第一终端通过第一中继终端发现第二终端。
根据本申请的一个方面,提供了一种终端发现装置,该装置包括:
接收模块,用于接收第二中继终端发送的第一发现消息;
其中,第一发现消息用于第一中继终端指示第一终端通过第一中继终端发现第二终端。
根据本申请的一个方面,提供了一种终端发现装置,该装置包括:
接收模块,用于接收第一中继终端发送的第二发现消息;
其中,第二发现消息用于指示第一终端通过第一中继终端发现第二终端。
根据本申请的一个方面,提供了一种第一中继终端,该第一中继终端包括存储器和处理器;存储器中存储有至少一条程序代码,程序代码由处理器加载并执行以实现如上所述的终端发现方法。
根据本申请的一个方面,提供了一种第一端,该第一终端包括存储器和处理器;存储器中存储有至少一条程序代码,程序代码由处理器加载并执行以实现如上所述的终端发现方法。
根据本申请的一个方面,提供了一种计算机可读存储介质,存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如上所述的终端发现方法。
根据本申请的一个方面,提供了一种芯片,芯片包括可编程逻辑电路和/或程序指令,当安装有芯片的电子设备运行时,用于实现如上所述的终端发现方法。
根据本申请的一个方面,提供了一种计算机程序产品,计算机程序产品包括计算机指令,计算机指令存储在计算机可读存储介质中,处理器从计算机可读存储介质读取并执行计算机指令,以实现如上所述的终端发现方法。
本申请实施例提供的技术方案至少包括如下有益效果:
通过接收第二中继终端发送的第一发现消息,第一中继终端可指示第一终端通过第一中继终端发现第二终端。其中,基于第一发现消息,还可对第一终端和第二终端之间的通信路径进行路径选择,以使得第一终端通过第一中继终端与第二终端实现通信,或者第一终端依次通过第一中继终端、第二中继终端与第二终端实现通信。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一个示例性实施例提供的5G网络架构的示意图;
图2是本申请一个示例性实施例提供的建立通信的示意图;
图3是本申请一个示例性实施例提供的实现中继通信的示意图;
图4是本申请一个示例性实施例提供的不能实现中继通信的示意图;
图5是本申请一个示例性实施例提供的终端发现方法的流程图;
图6是本申请一个示例性实施例提供的终端发现方法的流程图;
图7是本申请一个示例性实施例提供的终端发现方法的流程图;
图8是本申请一个示例性实施例提供的终端发现方法的流程图;
图9是本申请一个示例性实施例提供的终端发现方法的流程图;
图10是本申请一个示例性实施例提供的终端发现装置的示意图;
图11是本申请一个示例性实施例提供的终端发现装置的示意图;
图12是本申请一个示例性实施例提供的通信设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
图1示出了本申请一个示例性实施例提供的5G网络架构的示意图。
该5G网络系统包括:用户设备/移动终端(User Equipment,UE)、(无线)接入网络((Radio)Access Network,(R)AN)、用户平面功能(User Plane Function,UPF)、数据网络(Data Network,DN)和控制平面功能。
其中,控制平面功能包括:接入和移动管理功能(Access and Mobility Management Function,AMF)、会话管理功能(Session Management Function,SMF)、控制策略功能(Policy Control Function,PCF)和统一数据管理(Unified Data Manager,UDM)、应用功能(Application Function,AF)、网络切片选择功能(Network Slice Selection Function,NSSF)、认证服务功能(Authentication Server Function,AUSF)。
其中,UE通过Uu空口与AN进行接入层连接,交互接入层消息及进行无线数据传输,UE通过N1接口与AMF进行非接入层(Non Access Stratum,NAS)连接,交互NAS消息。AMF是核心网中的移动性管理功能,SMF是核心网中的会话管理功能,AMF在对UE进行移动性管理之外,还负责将从会话管理相关消息在UE和SMF之间的转发。PCF是核心网中的策略管理功能,负责制定对UE的移动性管理、会话管理、计费等相关的策略。UPF是核心网中的用户面功能,通过N6接口与外部数据网络进行数据传输,通过N3接口与AN进行数据传输。
图2示出了本申请一个示例性实施例提供的建立通信的示意图。其中,UE1、UE2、UE3、UE4分别代表了不同的终端,具有近距离通信(Prose)能力的终端可通过PC5接口与具有近距离通信能力的另一个终端直接通信。
参考图2,以UE1为例,UE1可向多个UE发送请求以建立PC5连接,具体包括如下步骤:
步骤11:UE2确定用于信令接收的层二标识(Layer-2 ID)。
其中,步骤12和步骤13与步骤11类似,不再赘述。
步骤2:应用层为UE1提供用于单播近距离通信的应用层信息。
步骤3:UE1通过广播或者单播方式向UE2发送直接通信请求消息。
示意性的,直接通信请求消息用于UE1向UE2请求建立通信。
以UE1和UE 2建立近距离通信为例,在目标为UE的近距离链路建立的情况下,执行如下步骤:
步骤4a:UE1与UE2进行安全建立;
步骤5a:UE2以单播方式向UE1发送直接通信接收消息;
步骤6:UE1与UE2进行单播数据单元的传输。
以UE1需要与UE2和UE4建立业务通信为例,在目标为业务的近距离链路建立的情况下,执行如下步骤:
步骤4b:UE1分别与UE2和UE4进行安全建立;
步骤5b:UE2和UE4分别以单播方式向UE1发送直接通信接收消息;
步骤6:UE1分别与UE2和UE4进行单播数据单元的传输。
示意性的,直接通信接收消息用于指示UE2与UE1建立通信。
在一种实现场景下,当两个具有近距离通信能力的UE距离较远,导致两个UE无法直接通过PC5接口建立通信时,还可以通过一个具有近距离通信能力的中继终端(Relay UE)进行通信的中转。
图3示出了本申请一个示例性实施例提供的实现中继通信的示意图,以UE1和UE2的直接通信为例,中继终端(即图中的UE R)可以通过PC5接口与UE1进行直接通信,还可以通过PC5与UE2直接通信,则UE1和UE2可以通过中继终端进行业务交互。
基于图3,图4示出了本申请一个示例性实施例提供的不能实现中继通信的示意图。仍然以UE1和UE2的直接通信为例,在UE1和UE2之间不存在一个即与UE1临近又与UE2临近的中继终端。相关技术中,仅支持UE1与UE2之间通过一个中继终端进行通信,也即UE1和UE2不能通过第一中继终端(即图中的UE R1)来实现通信。参考图4,在第一中继终端与UE2之间还需要通过第二中继终端(即图中的UE R2),才能实现第一终端和第二终端之间的通信建立或修改。
本申请提供了一种终端发现方法,可使得UE1通过第一中继终端和第二中继终端来发现UE2,还可使得第一终端进一步通过第一中继终端和第二中继终端与UE2建立通信。应当理解的是,本申请实施例仅以第一终端和第二终端之间通过两个中继终端进行终端发现和/或通信建立的举例,第一终端和第二终端之间存在两个以上的中继终端的情况与之类似,可参考下述内容类比得以实现,具体不再赘述。
图5示出了本申请一个示例性实施例提供的终端发现方法的流程图,该方法由第一中继终端执行,该方法包括如下步骤:
步骤102:接收第二中继终端发送的第一发现消息。
示意性的,第一发现消息用于第一中继终端指示第一终端通过第一中继终端发现第二终端。
在一些实施例中,第一发现消息还可理解为:用于第一中继终端指示第一终端至少通过第一中继终端发现第二终端。其中,第一终端可通过第一中继终端直接发现第二终端,或者,第一终端可通过第一中继终端和至少一个第二中继终端发现第二终端。比如,第一中继终端在接收到第一发现消息后,根据第一发现消息生成第二发现消息,并将第二发现消息发送给第一终端,用于告知第一终端可至少通过第一中继终端发现第二终端。
参考前述内容,第一终端和第二终端之间不能直接通过第一中继终端来实现终端发现和通信建立的情况下,第一中继终端和第二终端之间的通信还需要通过至少一个第二中继终端。基于此,第二中继终端向第一中继终端发送第一发现消息,以使得第一中继终端告知第一终端可通过第一中继终端来发现第二终端。
可选的,发现消息是发现宣告消息,或者,发现消息是发现回应消息。
其中,发现消息是发送端以广播形式发送的消息,用于发送端主动向接收端告知可实现终端发现和/或通信建立;发现回应消息是对发现请求消息的回复,也即,发送端接收到接收端发送的发现请求消息后,可向接收端发送发现回应消息,以被动告知接收端可实现终端发现和/或通信建立。
示例性的,第一发现消息是第一发现宣告消息或第一发现回应消息。其中,第一发现宣告消息是第二中继终端主动以广播形式发送的消息,第一发现回应消息是第二中继终端对第一中继终端发送的第一发现请求消息的回复。
可选的,第一发现消息的消息内容和/或链路层包结构中携带有第二终端的标识。其中,第二终端的标识包括第二终端的用户标识和/或层二标识。示例性的,第一发现消息的消息内容中携带有第二终端在应用层的用户标识,和/或,第一发现消息的链路层包结构中携带有第二终端的层二标识。
在一些实施例中,为使得第一终端发现第二终端,在接收到第二中继终端发送的第一发现消息后,第一中继终端可根据第一发现消息生成第二发现消息,并将第二发现消息发送给第一终端。
其中,第二发现消息用于指示第一终端通过第一中继终端发现第二终端。可选的,第二发现消息中携带有第二终端的标识,或者,第二发现消息中携带有第一中继终端的标识和第二终端的标识。也可理解为,第二发现消息中至少携带有第二终端的标识。与第二终端的标识类似,第一中继终端的标识包括第一中继终端的用户标识和/或层二标识。其中,第一中继终端的层二标识可选地携带在第二发现消息的链路层包结构中。
参考前述内容,第一终端和第二终端之间存在第一中继终端和第二中继终端,第一终端可通过第一中继终端发现第二终端。随后,若需要在第一终端和第二终端之间建立或修改通信路径,可通过如下两种方式实现:
实现方式一:第一终端通过第一中继终端与第二终端实现通信;
实现方式二:第一终端依次通过第一中继终端和第二中继终端与第二终端实现通信。
其中,上述两种方式的选择可由第一中继终端做出,也可由第一终端做出。
在一些实施例中,第一中继终端在接收到第一发现消息后,可进行路径选择,将第二中继终端确定为第一中继终端与第二终端之间的通信路径上的节点,并存储第一路径信息,第一路径信息中包括第二中继终端的标识。
随后,第一中继终端根据第一发现消息生成第二发现消息,并将第二发现消息发送给第一终端。若第一终端需要与第二终端建立通信,则第一终端向第一中继终端发送第一请求消息,以请求通过第一中继终端建立或修改与第二终端之间的通信路径。在接收到第一请求消息后,第一中继终端可根据第一路径信息,向第二中继终端发送第二请求消息,以请求通过第二中继终端建立或修改与第二终端之间的通信路径。
也即,由第一中继终端做出路径选择,来确定是否将第二中继终端确定为第一终端与第二终端之间的通信路径上的节点。应当理解的是,第一中继终端还可不将第二中继终端确定为第一终端与第二终端之间的通信路径上的节点,则第一中继终端可存储第二路径信息,第二路径信息中包括第二终端的标识。随后,在接收到第一终端发送的第一请求消息后,第一中继终端根据第二路径信息,直接与第二终端建立或修改通信路径。
在另一些实施例中,第一中继终端在接收到第一发现消息后,可根据第一发现消息直接生成第二发现消息。此时,第二发现消息中还携带有第二中继终端的标识。其中,第二中继终端的标识用于指示第二中继终端为第一中继终端与第二终端之间的通信路径上的候选节点。
随后,第一中继终端将第二发现消息发送给第一终端,第二发现消息中携带有第二终端的标识和第二中继终端的标识,或者,第二发现消息中携带有第二终端的标识、第一中继终端的标识和第二中继终端的标识。若第一终端需要与第二终端建立通信,则第一终端向第一 中继终端发送第三请求消息,以指示第一中继终端通过第二中继终端建立或修改与第二终端之间的通信路径。在接收到第三请求消息后,第一中继终端可向第二中继终端发送第四请求消息,以请求通过第二中继终端建立或修改与第二终端之间的通信路径。
也即,由第一终端做出路径选择,来确定是否将第二中继终端确定为第一终端与第二终端之间的通信路径上的节点。应当理解的是,第一终端还可不将第二中继终端确定为第一终端与第二终端之间的通信路径上的节点。此时,第一终端向第一中继终端发送第五请求消息,第五请求消息用于指示通过第一中继终端与第二终端建立或修改通信连接。随后,第一中继终端可根据第五请求消息,直接与第二终端建立或修改通信路径。
以第一终端是UE1,第一中继终端是中继终端1,第二中继终端是中继终端2,第二终端是UE2为例,本申请实施例提供的终端发现方法可实现为如下两种可选的实现方式中的一种:
实现方式一:中继终端2向中继终端1发送第一发现消息。可选的,中继终端1将中继终端2确定为中继终端1和UE2之间的通信路径上的节点,并存储第一路径信息,第一路径信息中包括中继终端2的标识;中继终端1根据第一发现消息生成第二发现消息,并将第二发现消息发送给UE1,第二发现消息中携带有UE2的标识,或者第二发现消息中携带有UE2的标识和中继终端1的标识。随后,UE1向中继终端1发送第一请求消息,中继终端1根据第一路径信息向中继终端2发送第二请求消息,中继终端2与UE2建立或修改通信路径。基于此,UE1依次通过中继终端1、中继终端2与UE2实现通信。
实现方式二:中继终端2向中继终端1发送第一发现消息。可选的,中继终端1根据第一发现消息生成第二发现消息,并将第二发现消息发送给UE1,第二发现消息中携带有UE2的标识和中继终端2的标识,或者第二发现消息中携带有中继终端1的标识、中继终端2的标识和UE2的标识。随后,UE1将中继终端2确定为中继终端1和UE2之间的通信路径上的节点,并向中继终端1发送第三请求消息;中继终端1可根据第三请求消息确定UE1指示通过中继终端2与UE2实现通信,则中继终端1向中继终端2发送第四请求消息,中继终端2与UE2建立或修改通信路径。基于此,UE1依次通过中继终端1、中继终端2与UE2实现通信。
应当理解的是,上述两种实现方式中,中继终端2的数量不少于一个。也即,在实现方式一中,中继终端1可接收到多个中继终端2发送的第一发现消息,中继终端1从多个中继终端2中选择出一个中继终端2作为中继终端1与UE1之间的通信路径上的节点。在实现方式二中,中继终端1向UE1发送的第二发现消息中携带有多个中继终端2的标识,由UE1从多个中继终端2中选择出一个中继终端2作为中继终端1与UE1之间的通信路径上的节点。且在实现方式二中,UE1选择出来的中继终端2的标识、以及UE2的标识将携带在UE1发送给中继终端1的第三请求消息中。
综上所述,本申请实施例提供的终端发现方法中,通过接收第二中继终端发送的第一发现消息,第一中继终端可指示第一终端通过第一中继终端发现第二终端。其中,基于第一发现消息,还可对第一终端和第二终端之间的通信路径进行路径选择,以使得第一终端通过第一中继终端与第二终端实现通信,或者第一终端依次通过第一中继终端、第二中继终端与第二终端实现通信。
图6示出了本申请一个示例性实施例提供的终端发现方法的流程图,该方法由第一终端执行,该方法包括如下步骤:
步骤202:接收第一中继终端发送的第二发现消息。
示意性的,第二发现消息用于指示第一终端通过第一中继终端发现第二终端。
参考前述内容,第一终端和第二终端之间不能直接通过第一中继终端来实现终端发现和通信建立的情况下,第一中继终端和第二终端之间的通信还需要通过至少一个第二中继终端。在接收到第二中继终端发送的第一发现消息后,第一中继终端可根据第一发现消息生成第二 发现消息,并将其发送给第一终端。其中,第一发现消息的相关内容可参考前述内容,不再赘述。
与第一发现消息类似,第二发现消息是第二发现宣告消息或第二发现回应消息。其中,第二发现宣告消息是第一中继终端主动以广播形式发送的消息,第二发现回应消息是第一中继终端对第一终端发送的第二发现请求消息的回复。
可选的,第二发现消息中携带有第二终端的标识,或者,第二发现消息中携带有第一中继终端的标识和第二终端的标识。其中,终端或中继终端的标识包括用户标识和/或层二标识。其中,第一中继终端的层二标识可选地携带在第二发现消息的链路层包结构中。
参考前述内容,第一终端可通过第一中继终端发现第二终端。随后,若需要在第一终端和第二终端之间建立或修改通信路径,可通过如下两种方式实现:
实现方式一:第一终端通过第一中继终端与第二终端实现通信;
实现方式二:第一终端依次通过第一中继终端和第二中继终端与第二终端实现通信。
其中,上述两种方式的相关描述可参考前述内容,不再赘述。
以第一终端是UE1,第一中继终端是中继终端1,第二中继终端是中继终端2,第二终端是UE2为例,本申请实施例提供的终端发现方法可实现为如下两种可选的实现方式中的一种:
实现方式一:中继终端2向中继终端1发送第一发现消息。可选的,中继终端1将中继终端2确定为中继终端1和UE2之间的通信路径上的节点,并存储第一路径信息,第一路径信息中包括中继终端2的标识;中继终端1根据第一发现消息生成第二发现消息,并将第二发现消息发送给UE1,第二发现消息中携带有UE2的标识,或者第二发现消息中携带有UE2的标识和中继终端1的标识。随后,UE1向中继终端1发送第一请求消息,中继终端1根据第一路径信息向中继终端2发送第二请求消息,中继终端2与UE2建立或修改通信路径。基于此,UE1依次通过中继终端1、中继终端2与UE2实现通信。
实现方式二:中继终端2向中继终端1发送第一发现消息。可选的,中继终端1根据第一发现消息生成第二发现消息,并将第二发现消息发送给UE1,第二发现消息中携带有UE2的标识和中继终端2的标识,或者第二发现消息中携带有中继终端1的标识、中继终端2的标识和UE2的标识。随后,UE1将中继终端2确定为中继终端1和UE2之间的通信路径上的节点,并向中继终端1发送第三请求消息;中继终端1可根据第三请求消息确定UE1指示通过中继终端2与UE2实现通信,则中继终端1向中继终端2发送第四请求消息,中继终端2与UE2建立或修改通信路径。基于此,UE1依次通过中继终端1、中继终端2与UE2实现通信。
应当理解的是,上述两种实现方式中,中继终端2的数量不少于一个。也即,在实现方式一中,中继终端1可接收到多个中继终端2发送的第一发现消息,中继终端1从多个中继终端2中选择出一个中继终端2作为中继终端1与UE1之间的通信路径上的节点。在实现方式二中,中继终端1向UE1发送的第二发现消息中携带有多个中继终端2的标识,由UE1从多个中继终端2中选择出一个中继终端2作为中继终端1与UE1之间的通信路径上的节点。且在实现方式二中,UE1选择出来的中继终端2的标识、以及UE2的标识将携带在UE1发送给中继终端1的第三请求消息中。
综上所述,本申请实施例提供的终端发现方法中,通过接收第一中继终端发送的第二发现消息,第一终端可通过第一中继终端发现第二终端。其中,基于第一发现消息,还可对第一终端和第二终端之间的通信路径进行路径选择,以使得第一终端通过第一中继终端与第二终端实现通信,或者第一终端依次通过第一中继终端、第二中继终端与第二终端实现通信。
图7示出了本申请一个示例性实施例提供的终端发现方法的流程图,该方法包括如下步骤:
步骤302:第二终端向第二中继终端发送携带有第二终端的标识的消息。
示意性的,携带有第二终端的标识的消息是发现宣告消息,或者,发现回应消息。
在一些实施例中,第二终端可以主动以广播形式发送携带有第二终端的标识的发现宣告消息。在另一些实施例中,在接收到第二中继终端发送的发现请求消息后,第二终端可以向第二中继终端发送携带有第二终端的标识的发现回应消息。
其中,第二终端的标识包括第二终端的用户标识和/或层二标识。比如,发现宣告消息或者发现回应消息中携带第二终端在应用层的用户标识,或者,发现宣告消息或者发现回应消息的链路层包结构中携带有第二终端的层二标识。
参考前述内容,第一终端和第二终端之间不能直接通过第一中继终端来实现终端发现和通信建立的情况下,第一中继终端和第二终端之间的通信还需要通过至少一个第二中继终端。基于此,执行步骤304,具体如下:
步骤304:第二中继终端向第一中继终端发送第一发现消息。
示意性的,第一发现消息用于第一中继终端指示第一终端通过第一中继终端发现第二终端。
示例性的,第一发现消息是第一发现宣告消息或第一发现回应消息。其中,第一发现宣告消息是第二中继终端主动以广播形式发送的消息,第一发现回应消息是第二中继终端对第一中继终端发送的第一发现请求消息的回复。
与步骤302类似,第一发现宣告消息或者第一发现回应消息中携带第二终端在应用层的用户标识,和/或,第一发现宣告消息或者第一发现回应消息的链路层包结构中携带第二终端的层二标识。
在一些实施例中,第一发现消息中还携带有第二中继终端的标识,第二中继终端的标识包括第二中继终端的用户标识和/或层二标识。也即,第一发现宣告消息或者第一发现回应消息中还携带第二中继终端在应用层的用户标识,和/或,第一发现宣告消息或者第一发现回应消息的链路层包结构中携带第二中继终端的层二标识。
步骤304与步骤102相同,可作参考,不再赘述。
为使得第一终端发现第二终端,在接收到第二中继终端发送的第一发现消息后,第一中继终端可根据第一发现消息生成第二发现消息,并将第二发现消息发送给第一终端。基于此,执行步骤306,具体如下:
步骤306:第一中继终端向第一终端发送第二发现消息。
示意性的,第二发现消息用于指示第一终端通过第一中继终端发现第二终端。
与第一发现消息类似,第二发现消息是第二发现宣告消息或第二发现回应消息。其中,第二发现宣告消息是第一中继终端主动以广播形式发送的消息,第二发现回应消息是第一中继终端对第一终端发送的第二发现请求消息的回复。
可选的,第二发现消息中携带有第二终端的标识,或者,第二发现消息中携带有第一中继终端的标识和第二终端的标识。其中,终端或中继终端的标识包括用户标识和/或层二标识。其中,第一中继终端的层二标识可选地携带在第二发现消息的链路层包结构中。
参考前述内容,第一终端和第二终端之间存在第一中继终端和第二中继终端,第一终端可通过第一中继终端发现第二终端。随后,若需要在第一终端和第二终端之间建立或修改通信路径,可通过如下两种方式实现:
实现方式一:第一终端通过第一中继终端与第二终端实现通信;
实现方式二:第一终端依次通过第一中继终端和第二中继终端与第二终端实现通信。
其中,上述两种方式的相关描述可参考前述内容。
步骤306与步骤202相同,可作参考,不再赘述。
应当理解的是,第二中继终端一侧、第一中继终端一侧和第一终端一侧的步骤均可单独实现为终端发现方法的一个实施例,具体阐释可参考前述内容,不再赘述。
综上所述,本申请实施例提供的终端发现方法中,通过第一发现消息和第二发现消息的 传输,第一终端可通过第一中继终端发现第二终端。其中,基于第一发现消息和第二发现消息,还可对第一终端和第二终端之间的通信路径进行路径选择,以使得第一终端通过第一中继终端与第二终端实现通信,或者第一终端依次通过第一中继终端、第二中继终端与第二终端实现通信。
参考前述内容,第一终端和第二终端之间的通信路径有两种可选的实现方式。其中,路径选择可由第一中继终端做出,也可由第一终端做出,具体阐述如下:
一、路径选择由第一中继终端做出。
基于图7,图8示出了本申请一个示例性实施例提供的终端发现方法的流程图,该方法还包括如下步骤:
步骤3051:第一中继终端将第二中继终端确定为第一中继终端与第二终端之间的通信路径上的节点。
其中,在第一中继终端和第二终端之间可存在n个第二中继终端,n为大于0的正整数。第一中继终端在接收到n个第二中继终端发送第一发现消息后,可将n个第二中继终端中的一个第二中继终端确定为第一中继终端与第二终端之间的通信路径上的节点。
可选的,第一中继终端进行的路径选择可根据如下信息中的至少一种进行:
无线信号的质量;
无线信号的强度;
第二终端、第一终端、第一中继终端和第二中继终端中的任意两个终端之间的距离信息;
终端或中继终端所对应的用户偏好;
终端或中继终端所对应的授权信息。
以第一终端是UE1,第一中继终端是中继终端1,第二中继终端是中继终端2,第二终端是UE2为例:
中继终端1可能从中继终端2接收到第一发现消息,第一发现消息中携带有UE2的标识;或者,中继终端1还可能从其他中继终端,例如中继终端x收到第一发现消息;或者,中继终端1还可能直接从UE2收到包括UE2的标识的发现宣告消息或者发现回应消息。其中,中继终端x是n个第二中继终端中除中继终端2之外的其他中继终端。随后,中继终端1进行路径选择。例如,中继终端1选择直接与UE2交互;或者,中继终端1选择将中继终端2作为UE1到达UE2的中继终端。
步骤3052:第一中继终端存储第一路径信息,第一路径信息中包括第二中继终端的标识。
在进行路径选择之后,第一中继终端可存储第一路径信息。其中,第一路径信息还可理解为第二中继终端与第二终端的映射关系或关联关系。
在一些实施例中,在将第二中继终端确定为第一中继终端与第二终端之间的通信路径上的节点后,第一中继终端将直接储存如下信息:第二中继终端的标识和第二终端的标识,和/或,第二中继终端与第二终端的映射关系,和/或,第二中继终端与第二终端的关联关系。
仍然以第一终端是UE1,第一中继终端是中继终端1,第二中继终端是中继终端2,第二终端是UE2为例:在中继终端1选择直接与UE2交互的情况下,中继终端1保存UE2的用户标识及UE2对应的层二标识;或者,在中继终端1选择将中继终端2作为到达UE2的中继终端的情况下,中继终端1保存UE2的用户标识、中继终端2的用户标识、UE2的层二标识、中继终端2的层二标识。
步骤3071:第一终端向第一中继终端发送第一请求消息。
示意性的,第一请求消息用于第一终端请求通过第一中继终端建立或修改与第二终端之间的通信路径,第一请求消息中携带有第二终端的标识。
根据步骤3051和步骤3052,在第一中继终端与第二终端之间存在n个第二中继终端的情况下,第一中继终端主动做出路径选择,确定出第一中继终端与第二终端之间的通信路径。 随后,在需要与第二终端进行通信时,第一终端可向第一中继终端发送第一请求消息,以使得第一中继终端可根据存储的第一路径信息,与第二终端建立或修改由第一中继终端确定出的通信路径。
步骤3081:第一中继终端根据第一路径信息,向第二中继终端发送第二请求消息。
示意性的,第二请求消息用于第一中继终端请求通过第二中继终端建立或修改与第二终端之间的通信路径。
参考前述内容,第一路径信息还可理解为第二中继终端与第二终端的映射关系或关联关系。在一些实施例中,第一路径信息包括:第二中继终端的标识和第二终端的标识,和/或,第二中继终端与第二终端的映射关系,和/或,第二中继终端与第二终端的关联关系。
在第一中继终端与第二终端之间存在n个第二中继终端的情况下,基于第一路径信息,可确定出第一中继终端与第二终端之间的通信路径。应当理解的是,第一中继终端可直接与第二终端进行通信,或者第一中继终端可通过n个第二中继终端中的一个第二中继终端与第二终端进行通信。
步骤309:第二中继终端和第二终端建立或修改通信路径。
在接收到第二请求消息后,第二中继终端和第二终端可建立或修改通信路径,以使得第一终端可依次通过第一中继终端、第二中继终端与第二终端进行通信。
应当理解的是,本申请实施例仅示出了第一终端依次通过第一中继终端、第二中继终端与第二终端进行通信的实现方式。在一些实施例中,第一中继终端还可不将第二中继终端确定为第一终端与第二终端之间的通信路径上的节点,则第一中继终端可存储第二路径信息,第二路径信息中包括第二终端的标识。
此时,第二路径信息还可理解为第一中继终端与第二终端的映射关系或关联关系。在一些实施例中,第一路径信息包括:第二终端的标识,和/或,第一中继终端与第二终端的映射关系,和/或,第一中继终端与第二终端的关联关系。
随后,在接收到第一请求消息后,第一中继终端可根据第二路径信息,直接与第二终端建立或修改通信路径。此时,将不再执行步骤3081和步骤309。
应当理解的是,第二中继终端一侧、第一中继终端一侧和第一终端一侧的步骤均可单独实现为终端发现方法的一个实施例,具体阐释可参考前述内容,不再赘述。
综上所述,本申请实施例提供的终端发现方法中,在接收到第一发现消息后,第一中继终端还可主动进行路径选择,并存储第一路径信息,以备后续通信路径的建立或修改。
可选的,在通过第一中继终端发现第二终端后,第一终端可向第一中继终端发送第一请求消息,用于第一中继终端根据第一路径信息与第二终端建立或修改通信路径,从而使得第一终端能够通过至少两个中继终端与第二终端实现通信。
二、路径选择由第一终端做出。
参考前述内容,在第一中继终端和第二终端之间可存在n个第二中继终端,n为大于0的正整数。第一中继终端在接收到n个第二中继终端发送第一发现消息后,可根据第一发现消息生成第二发现消息。在一些实施例中,第二发现消息中除携带有第二终端的标识、或者除携带有第一中继终端的标识和第二终端的标识之外,还携带有第二中继终端的标识,第二中继终端的标识用于指示第二中继终端为第一中继终端与第二终端之间的通信路径上的候选节点。
也即,第二发现消息中携带有n个第二中继终端的标识,第i个第二中继终端的标识用于指示第i个第二中继终端为第一中继终端与第二终端之间的通信路径上的候选节点。在接收到第二发现消息后,第一终端可从n个第二中继终端中选择出一个第二中继终端作为第一中继终端与第二终端之间的通信路径上的节点,也可选择不通过任何一个第二中继终端、直接通过第一中继终端与第二终端之间建立或修改通信路径。
以下将对第一终端从n个第二中继终端中选择出一个第二中继终端作为第一中继终端与第二终端之间的通信路径上的节点进行阐述:
基于图7,图9示出了本申请一个示例性实施例提供的终端发现方法的流程图,该方法还包括如下步骤:
步骤3072:第一终端将第二中继终端确定为第一中继终端与第二终端之间的通信路径上的节点。
在接收到第二发现消息后,第一终端可获知第一中继终端与第二终端之间的通信路径上的候选节点。也即,第一终端能够获知在第一中继终端与第二终端之间存在n个第二中继终端,n个第二中继终端均可作为第一中继终端和第二终端之间的通信连接中的一个节点。随后,第一终端可将n个第二中继终端中的一个第二中继终端确定为第一中继终端与第二终端之间的通信路径上的节点。
可选的,第一中继终端进行的路径选择可根据如下信息中的至少一种进行:无线信号的质量;无线信号的强度;第二终端、第一终端、第一中继终端和第二中继终端中的任意两个终端之间的距离信息;终端或中继终端所对应的用户偏好;终端或中继终端所对应的授权信息。
以第一终端是UE1,第一中继终端是中继终端1,第二中继终端是中继终端2,第二终端是UE2为例:
在本实施例中,中继终端1向UE1发送的第二发现消息中还可携带有多个可选路径信息。例如,路径1为中继终端1直接与UE2交互,则第二发现消息中携带有中继终端1的标识及UE2的标识;路径2为中继终端1通过中继终端2与UE2交互,则第二发现消息中携带有中继终端1的标识、中继终端2的标识、UE2的标识;路径3为中继终端1通过中继终端x与UE2交互,则第二发现消息中携带有中继终端1的标识、中继终端x的标识、UE2的标识。其中,中继终端x是n个第二中继终端中的除中继终端2之外的其他中继终端。
步骤3073:第一终端向第一中继终端发送第三请求消息。
示意性的,第三请求消息用于第一终端指示第一中继终端通过第二中继终端建立或修改与第二终端之间的通信路径,第三请求消息中携带有第二终端的标识和第二中继终端的标识。
根据步骤3072,在第一中继终端与第二终端之间存在n个第二中继终端的情况下,第一终端做出路径选择,确定出第一中继终端与第二终端之间的通信路径。随后,在需要与第二终端进行通信时,第一终端可向第一中继终端发送第三请求消息,以使得第一中继终端可根据第三请求消息,与第二终端建立或修改第一终端确定出的通信路径。
步骤3082:第一中继终端向第二中继终端发送第四请求消息。
示意性的,第四请求消息用于第一中继终端请求通过第二中继终端建立或修改与第二终端之间的通信路径。
应当理解的是,第一终端还可不将第二中继终端确定为第一终端与第二终端之间的通信路径上的节点。此时,第一终端向第一中继终端发送第五请求消息,第五请求消息用于指示通过第一中继终端与第二终端建立或修改通信连接。基于此,第一中继终端可直接与第二终端建立或修改通信路径。
步骤309:第二中继终端和第二终端建立或修改通信路径。
在接收到第四请求消息后,第二中继终端和第二终端可建立或修改通信路径,以使得第一终端可依次通过第一中继终端、第二中继终端与第二终端进行通信。
应当理解的是,本申请实施例仅示出了第一终端依次通过第一中继终端、第二中继终端与第二终端进行通信的实现方式,在一些实施例中,第一终端还可不将第二中继终端确定为第一终端与第二终端之间的通信路径上的节点,第一终端向第一中继终端发送第五请求消息,此时将不再执行步骤3082和步骤309。
应当理解的是,第二中继终端一侧、第一中继终端一侧和第一终端一侧的步骤均可单独 实现为终端发现方法的一个实施例,具体阐释可参考前述内容,不再赘述。
综上所述,本申请实施例提供的终端发现方法中,在第二发现消息中还携带有第二中继终端的标识的情况下,第一终端可进行路径选择,以确定第一终端和第二终端之间的通信路径。
可选的,在通过第一中继终端发现第二终端后,第一终端可向第一中继终端发送第三请求消息,用于指示第一中继终端通过第二中继终端与第二终端建立或修改通信路径,从而使得第一终端通过至少两个中继终端与第二终端实现通信。
应当理解的是,上述多个实施例中仅以第一终端和第二终端通过两个中继终端实现通信进行阐述。在一些实施例中,第一终端通过两个以上中继终端发现第二终端,以及第一终端通过两个以上中继终端与第二终端进行通信路径的建立或修改的实现,均在本申请保护范围之内,具体实现方式与前述内容类似,可作参考,不再赘述。
示例性的,以第一终端是UE1,第一中继终端是中继终端1,第二中继终端是中继终端2,第二终端是UE2,中继终端x是区别于中继终端2的其他第二中继终端为例,本申请实施例提供的终端发现方法可实现为如下两种方式中的任意一种:
(1)中继终端1进行路径选择。
步骤1:UE2发送发现宣告消息1或者发现回应消息1。
其中,发现宣告消息1是UE2主动以广播形式发送,发现回应消息1是UE2之前从中继终端2收到过发现请求消息1后对中继终端2进行的回应。可选的,发现宣告消息1或者发现回应消息1中携带有UE2的标识,例如UE2在应用层的用户标识。可选的,发现宣告消息1或者发现回应消息1的链路层包结构中携带UE2的Layer-2ID。
步骤2:中继终端2生成发现宣告消息2或者发现回应消息2。
其中,发现宣告消息2或者发现回应消息2中携带UE2的标识之外,还携带中继终端2的标识,例如中继终端2在应用层的用户标识。可选的,发现宣告消息2或者发现回应消息2的链路层包结构中携带中继终端2的Layer-2ID。
步骤3-1:中继终端1进行路径选择。
其中,中继终端1可能从中继终端2收到发现宣告消息2或者发现回应消息2,也可能从其他中继终端(如中继终端x)收到发现宣告消息2或者发现回应消息2,或者还可能是直接从UE2收到包括UE2的标识的发现宣告消息或者发现回应消息。
基于此,中继终端1进行路径选择。例如,中继终端1选择直接与UE2交互;或者,中继终端1选择将中继终端2作为到达UE2的中继终端,选择的准则包括但不限于根据无线信号的质量。
随后,中继终端1存储选择的路径信息。例如,在选择直接与UE2交互的情况下,中继终端1保存UE2的用户标识及UE2对应的Layer-2ID;或者,在中继终端1选择将中继终端2作为到达UE2的中继终端的情况下,中继终端1保存UE2的用户标识、中继终端2的用户标识、UE1的Layer-2ID、中继终端2的Layer-2ID。
步骤4-1:中继终端1产生发现宣告消息3或者发现回应消息3。
其中,发现宣告消息3或者发现回应消息3中除携带UE2的标识,还携带有中继终端1的标识,如中继终端1在应用层的用户标识。可选的,发现宣告消息3或者发现回应消息3的链路层包结构中携带中继终端1的Layer-2ID。
在UE1从中继终端1收到发现宣告消息3或者发现回应消息3后,可进行路径选择。在一个示例性举例中,UE1确定通过中继终端1可以与UE2通信,则UE1可以向中继终端1发送用于实现链接建立/修改的请求消息,该请求消息中携带有目标UE(即UE2)的标识,以使得中继终端1根据在步骤3-1保存的路径信息,向中继终端2发送用于实现链接建立/修改的请求消息。
(2)UE1进行路径选择。
步骤1:UE2发送发现宣告消息1或者发现回应消息1。
其中,发现宣告消息1是UE2主动以广播形式发送,发现回应消息1是UE2之前从中继终端2收到过发现请求消息1后对中继终端2进行的回应。可选的,发现宣告消息1或者发现回应消息1中携带有UE2的标识,例如UE2在应用层的用户标识。可选的,发现宣告消息1或者发现回应消息1的链路层包结构中携带UE2的Layer-2ID。
步骤2:中继终端2生成发现宣告消息2或者发现回应消息2。
其中,发现宣告消息2或者发现回应消息2中携带UE2的标识之外,还携带中继终端2的标识,例如中继终端2在应用层的用户标识。可选的,发现宣告消息2或者发现回应消息2的链路层包结构中携带中继终端2的Layer-2ID。
步骤3-2:中继终端1生成发现宣告消息3或者发现回应消息3。
与步骤3-1类似,中继终端1可能从中继终端2收到发现宣告消息2或者发现回应消息2,也可能从其他中继终端(如中继终端x)收到发现宣告消息2或者发现回应消息2,或者还可能是直接从UE2收到包括UE2的标识的发现宣告消息或者发现回应消息。
基于此,中继终端1生成发现宣告消息3或者发现回应消息3。
其中,发现宣告消息3或者发现回应消息3中携带有多个可选路径信息。例如,路径1为中继终端1直接与UE2交互,则发现宣告消息3或者发现回应消息3中携带有中继终端1的标识及UE2的标识;路径2为中继终端1通过中继终端2与UE2交互,则发现宣告消息3或者发现回应消息3中携带有中继终端1的标识、中继终端2的标识、UE2的标识;路径3为中继终端1通过中继终端x与UE2交互,则发现宣告消息3或者发现回应消息3携带有中继终端1的标识、中继终端x的标识、UE2的标识。
UE1从中继终端1收到发现宣告消息3或者发现回应消息3后,可进行路径选择,并将选择的路径告诉中继终端1。例如,UE1向中继终端1发送用于实现链接建立/修改的请求消息,该请求消息中携带有目标UE(即UE2)的标识,以及选择的路径信息(例如中继终端2的标识)。随后,中继终端1基于该请求消息向中继终端2发送用于实现链接建立/修改的请求消息。
以下为本申请的装置实施例,对于装置实施例中未详细描述的细节,可以结合参考上述方法实施例中相应的记载,本文不再赘述。
图10是本申请一个示例性实施例提供的终端发现装置的示意图,该装置包括:
接收模块1020,用于接收第二中继终端发送的第一发现消息;
其中,第一发现消息用于第一中继终端指示第一终端通过第一中继终端发现第二终端。
可选的,装置还包括:发送模块1040,用于向第一终端发送第二发现消息;其中,第二发现消息根据第一发现消息确定,第二发现消息中携带有第二终端的标识,或者第二发现消息中携带有第一中继终端的标识和第二终端的标识。
可选的,装置还包括:存储模块1060,用于将第二中继终端确定为第一中继终端与第二终端之间的通信路径上的节点;存储第一路径信息,第一路径信息中包括第二中继终端的标识。
可选的,第一路径信息中还包括第二终端的标识,第二终端的标识用于指示通信路径的终点为第二终端。
可选的,接收模块1020,还用于接收第一终端发送的第一请求消息;其中,第一请求消息用于第一终端请求通过第一中继终端建立或修改与第二终端之间的通信路径,第一请求消息中携带有第二终端的标识。
可选的,装置还包括:发送模块1040,用于根据第一路径信息,向第二中继终端发送第二请求消息;其中,第二请求消息用于第一中继终端请求通过第二中继终端建立或修改与第二终端之间的通信路径。
可选的,第二发现消息中还携带有第二中继终端的标识,第二中继终端的标识用于指示第二中继终端为第一中继终端与第二终端之间的通信路径上的候选节点。
可选的,接收模块1020,还用于接收第一终端发送的第三请求消息;其中,第三请求消息用于第一终端指示第一中继终端通过第二中继终端建立或修改与第二终端之间的通信路径,第三请求消息中携带有第二终端的标识和第二中继终端的标识。
可选的,装置还包括:发送模块1040,用于向第二中继终端发送第四请求消息;其中,第四请求消息用于第一中继终端请求通过第二中继终端建立或修改与第二终端之间的通信路径。
可选的,终端和/或中继终端的标识包括如下标识中的至少一种:用户标识;层二标识。
可选的,发现消息是如下消息中的一种:发现宣告消息;发现回应消息。
图11是本申请一个示例性实施例提供的终端发现装置的示意图,该装置包括:
接收模块1120,用于接收第一中继终端发送的第二发现消息;
其中,第二发现消息用于指示第一终端通过第一中继终端发现第二终端。
可选的,第二发现消息中携带有第二终端的标识,或者第二发现消息中携带有第一中继终端的标识和第二终端的标识。
可选的,装置还包括:发送模块1140,用于向第一中继终端发送第一请求消息;其中,第一请求消息用于第一终端请求通过第一中继终端建立或修改与第二终端之间的通信路径,第一请求消息中携带有第二终端的标识。
可选的,第二发现消息中还携带有第二中继终端的标识,第二中继终端的标识用于指示第二中继终端为第一中继终端与第二终端之间的通信路径上的候选节点。
可选的,装置还包括:发送模块1140,用于向第一中继终端发送第三请求消息;其中,第三请求消息用于第一终端指示第一中继终端通过第二中继终端建立或修改与第二终端之间的通信路径,第三请求消息中携带有第二终端的标识和第二中继终端的标识。
可选的,装置还包括:确定模块1160,用于将第二中继终端确定为第一中继终端与第二终端之间的通信路径上的节点。
可选的,终端和/或中继终端的标识包括如下标识中的至少一种:用户标识;层二标识。
可选的,第二发现消息是如下消息中的一种:发现宣告消息;发现回应消息。
图12示出了本申请一个示例性实施例提供的通信设备(第一中继终端或终端)的结构示意图,该通信设备包括:处理器1201、接收器1202、发射器1203、存储器1204和总线1205。
处理器1201包括一个或者一个以上处理核心,处理器1201通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。
接收器1202和发射器1203可以实现为一个通信组件,该通信组件可以是一块通信芯片。
存储器1204通过总线1205与处理器1201相连。
存储器1204可用于存储至少一个指令,处理器1201用于执行该至少一个指令,以实现上述方法实施例中提到的终端发现方法的各个步骤。
此外,存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器(Electrically-Erasable Programmable Read Only Memory,EEPROM),可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM),静态随时存取存储器(Static Random Access Memory,SRAM),只读存储器(Read-Only Memory,ROM),磁存储器,快闪存储器,可编程只读存储器(Programmable Read-Only Memory,PROM)。
本申请还提供了一种第一中继终端,第一中继终端包括存储器和处理器;存储器中存储有至少一条程序代码,程序代码由处理器加载并执行以实现前述的终端发现方法。
本申请还提供了一种第一终端,第一终端包括存储器和处理器;存储器中存储有至少一条程序代码,程序代码由处理器加载并执行以实现前述的终端发现方法。
本申请还提供了一种计算机可读存储介质,存储介质中存储有计算机程序,计算机程序用于被处理器执行,以实现前述的终端发现方法。
本申请还提供了一种芯片,芯片包括可编程逻辑电路和/或程序指令,当安装有芯片的电子设备运行时,用于实现前述的终端发现方法。
本申请还提供了一种计算机程序产品,计算机程序产品包括计算机指令,计算机指令存储在计算机可读存储介质中,处理器从计算机可读存储介质读取并执行计算机指令,以实现前述的终端发现方法。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (43)

  1. 一种终端发现方法,其特征在于,所述方法由第一中继终端执行,所述方法包括:
    接收第二中继终端发送的第一发现消息;
    其中,所述第一发现消息用于所述第一中继终端指示第一终端通过所述第一中继终端发现第二终端。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    向所述第一终端发送第二发现消息;
    其中,所述第二发现消息根据所述第一发现消息确定,所述第二发现消息中携带有所述第二终端的标识,或者所述第二发现消息中携带有所述第一中继终端的标识和所述第二终端的标识。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    将所述第二中继终端确定为所述第一中继终端与所述第二终端之间的通信路径上的节点;
    存储第一路径信息,所述第一路径信息中包括所述第二中继终端的标识。
  4. 根据权利要求3所述的方法,其特征在于,
    所述第一路径信息中还包括所述第二终端的标识,所述第二终端的标识用于指示所述通信路径的终点为所述第二终端。
  5. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    接收所述第一终端发送的第一请求消息;
    其中,所述第一请求消息用于所述第一终端请求通过所述第一中继终端建立或修改与所述第二终端之间的通信路径,所述第一请求消息中携带有所述第二终端的标识。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    根据所述第一路径信息,向所述第二中继终端发送第二请求消息;
    其中,所述第二请求消息用于所述第一中继终端请求通过所述第二中继终端建立或修改与所述第二终端之间的通信路径。
  7. 根据权利要求2所述的方法,其特征在于,
    所述第二发现消息中还携带有所述第二中继终端的标识,所述第二中继终端的标识用于指示所述第二中继终端为所述第一中继终端与所述第二终端之间的通信路径上的候选节点。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    接收所述第一终端发送的第三请求消息;
    其中,所述第三请求消息用于所述第一终端指示所述第一中继终端通过所述第二中继终端建立或修改与所述第二终端之间的通信路径,所述第三请求消息中携带有所述第二终端的标识和所述第二中继终端的标识。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    向所述第二中继终端发送第四请求消息;
    其中,所述第四请求消息用于所述第一中继终端请求通过所述第二中继终端建立或修改与所述第二终端之间的通信路径。
  10. 根据权利要求2至9任一所述的方法,其特征在于,终端和/或中继终端的标识包括如 下标识中的至少一种:
    用户标识;
    层二标识。
  11. 根据权利要求1至10任一所述的方法,其特征在于,发现消息是如下消息中的一种:
    发现宣告消息;
    发现回应消息。
  12. 一种终端发现方法,其特征在于,所述方法由第一终端执行,所述方法包括:
    接收第一中继终端发送的第二发现消息;
    其中,所述第二发现消息用于指示第一终端通过所述第一中继终端发现第二终端。
  13. 根据权利要求12所述的方法,其特征在于,
    所述第二发现消息中携带有所述第二终端的标识,或者所述第二发现消息中携带有所述第一中继终端的标识和所述第二终端的标识。
  14. 根据权利要求12或13所述的方法,其特征在于,所述方法还包括:
    向所述第一中继终端发送第一请求消息;
    其中,所述第一请求消息用于所述第一终端请求通过所述第一中继终端建立或修改与所述第二终端之间的通信路径,所述第一请求消息中携带有所述第二终端的标识。
  15. 根据权利要求13所述的方法,其特征在于,
    所述第二发现消息中还携带有所述第二中继终端的标识,所述第二中继终端的标识用于指示所述第二中继终端为所述第一中继终端与所述第二终端之间的通信路径上的候选节点。
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    向所述第一中继终端发送第三请求消息;
    其中,所述第三请求消息用于所述第一终端指示所述第一中继终端通过所述第二中继终端建立或修改与所述第二终端之间的通信路径,所述第三请求消息中携带有所述第二终端的标识和所述第二中继终端的标识。
  17. 根据权利要求16所述的方法,其特征在于,所述方法还包括:
    将所述第二中继终端确定为所述第一中继终端与所述第二终端之间的通信路径上的节点。
  18. 根据权利要求13至17任一所述的方法,其特征在于,终端和/或中继终端的标识包括如下标识中的至少一种:
    用户标识;
    层二标识。
  19. 根据权利要求12至18任一所述的方法,其特征在于,所述第二发现消息是如下消息中的一种:
    发现宣告消息;
    发现回应消息。
  20. 一种终端发现装置,其特征在于,所述装置包括:
    接收模块,用于接收第二中继终端发送的第一发现消息;
    其中,所述第一发现消息用于第一中继终端指示第一终端通过所述第一中继终端发现第二终端。
  21. 根据权利要求20所述的装置,其特征在于,所述装置还包括:
    发送模块,用于向所述第一终端发送第二发现消息;
    其中,所述第二发现消息根据所述第一发现消息确定,所述第二发现消息中携带有所述第二终端的标识,或者所述第二发现消息中携带有所述第一中继终端的标识和所述第二终端的标识。
  22. 根据权利要求20或21所述的装置,其特征在于,所述装置还包括:
    存储模块,用于将所述第二中继终端确定为所述第一中继终端与所述第二终端之间的通信路径上的节点;存储第一路径信息,所述第一路径信息中包括所述第二中继终端的标识。
  23. 根据权利要求22所述的装置,其特征在于,
    所述第一路径信息中还包括所述第二终端的标识,所述第二终端的标识用于指示所述通信路径的终点为所述第二终端。
  24. 根据权利要求22所述的装置,其特征在于,
    所述接收模块,还用于接收所述第一终端发送的第一请求消息;
    其中,所述第一请求消息用于所述第一终端请求通过所述第一中继终端建立或修改与所述第二终端之间的通信路径,所述第一请求消息中携带有所述第二终端的标识。
  25. 根据权利要求24所述的装置,其特征在于,所述装置还包括:
    发送模块,用于根据所述第一路径信息,向所述第二中继终端发送第二请求消息;
    其中,所述第二请求消息用于所述第一中继终端请求通过所述第二中继终端建立或修改与所述第二终端之间的通信路径。
  26. 根据权利要求21所述的装置,其特征在于,
    所述第二发现消息中还携带有所述第二中继终端的标识,所述第二中继终端的标识用于指示所述第二中继终端为所述第一中继终端与所述第二终端之间的通信路径上的候选节点。
  27. 根据权利要求26所述的装置,其特征在于,
    所述接收模块,还用于接收所述第一终端发送的第三请求消息;
    其中,所述第三请求消息用于所述第一终端指示所述第一中继终端通过所述第二中继终端建立或修改与所述第二终端之间的通信路径,所述第三请求消息中携带有所述第二终端的标识和所述第二中继终端的标识。
  28. 根据权利要求27所述的装置,其特征在于,所述装置还包括:
    发送模块,用于向所述第二中继终端发送第四请求消息;
    其中,所述第四请求消息用于所述第一中继终端请求通过所述第二中继终端建立或修改与所述第二终端之间的通信路径。
  29. 根据权利要求21至28任一所述的装置,其特征在于,终端和/或中继终端的标识包括如下标识中的至少一种:
    用户标识;
    层二标识。
  30. 根据权利要求20至29任一所述的装置,其特征在于,发现消息是如下消息中的一种:
    发现宣告消息;
    发现回应消息。
  31. 一种终端发现装置,其特征在于,所述装置包括:
    接收模块,用于接收第一中继终端发送的第二发现消息;
    其中,所述第二发现消息用于指示第一终端通过所述第一中继终端发现第二终端。
  32. 根据权利要求31所述的装置,其特征在于,
    所述第二发现消息中携带有所述第二终端的标识,或者所述第二发现消息中携带有所述第一中继终端的标识和所述第二终端的标识。
  33. 根据权利要求31或32所述的装置,其特征在于,所述装置还包括:
    发送模块,用于向所述第一中继终端发送第一请求消息;
    其中,所述第一请求消息用于所述第一终端请求通过所述第一中继终端建立或修改与所述第二终端之间的通信路径,所述第一请求消息中携带有所述第二终端的标识。
  34. 根据权利要求32所述的装置,其特征在于,
    所述第二发现消息中还携带有所述第二中继终端的标识,所述第二中继终端的标识用于指示所述第二中继终端为所述第一中继终端与所述第二终端之间的通信路径上的候选节点。
  35. 根据权利要求34所述的装置,其特征在于,所述装置还包括:
    发送模块,用于向所述第一中继终端发送第三请求消息;
    其中,所述第三请求消息用于所述第一终端指示所述第一中继终端通过所述第二中继终端建立或修改与所述第二终端之间的通信路径,所述第三请求消息中携带有所述第二终端的标识和所述第二中继终端的标识。
  36. 根据权利要求35所述的装置,其特征在于,所述装置还包括:
    确定模块,用于将所述第二中继终端确定为所述第一中继终端与所述第二终端之间的通信路径上的节点。
  37. 根据权利要求32至36任一所述的装置,其特征在于,终端和/或中继终端的标识包括如下标识中的至少一种:
    用户标识;
    层二标识。
  38. 根据权利要求31至37任一所述的装置,其特征在于,所述第二发现消息是如下消息中的一种:
    发现宣告消息;
    发现回应消息。
  39. 一种第一中继终端,其特征在于,所述第一中继终端包括存储器和处理器;
    所述存储器中存储有至少一条程序代码,所述程序代码由所述处理器加载并执行以实现如权利要求1至11中任一项所述的终端发现方法。
  40. 一种第一终端,其特征在于,所述第一终端包括存储器和处理器;
    所述存储器中存储有至少一条程序代码,所述程序代码由所述处理器加载并执行以实现如权利要求12至19中任一项所述的终端发现方法。
  41. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如权利要求1至19中任一项所述的终端发现方法。
  42. 一种芯片,其特征在于,所述芯片包括可编程逻辑电路和/或程序指令,当安装有所述芯片的电子设备运行时,用于实现如权利要求1至19中任一项所述的终端发现方法。
  43. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中,处理器从所述计算机可读存储介质读取并执行所述计算机指令,以实现如权利要求1至19中任一项所述的终端发现方法。
PCT/CN2022/121331 2022-09-26 2022-09-26 终端发现方法、装置、设备及存储介质 WO2024065087A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/121331 WO2024065087A1 (zh) 2022-09-26 2022-09-26 终端发现方法、装置、设备及存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/121331 WO2024065087A1 (zh) 2022-09-26 2022-09-26 终端发现方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2024065087A1 true WO2024065087A1 (zh) 2024-04-04

Family

ID=90475178

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/121331 WO2024065087A1 (zh) 2022-09-26 2022-09-26 终端发现方法、装置、设备及存储介质

Country Status (1)

Country Link
WO (1) WO2024065087A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150296481A1 (en) * 2012-10-31 2015-10-15 Zte Corporation Method And Corresponding Apparatus For Sending And Receiving Trunking Paging In LTE System
CN111447545A (zh) * 2018-12-29 2020-07-24 华为技术有限公司 一种通信方法及装置
CN113709902A (zh) * 2020-05-21 2021-11-26 华为技术有限公司 中继链接建立、配置信息发送方法、装置和可读存储介质
CN113747606A (zh) * 2020-05-27 2021-12-03 华为技术有限公司 一种用于单播通信的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150296481A1 (en) * 2012-10-31 2015-10-15 Zte Corporation Method And Corresponding Apparatus For Sending And Receiving Trunking Paging In LTE System
CN111447545A (zh) * 2018-12-29 2020-07-24 华为技术有限公司 一种通信方法及装置
CN113709902A (zh) * 2020-05-21 2021-11-26 华为技术有限公司 中继链接建立、配置信息发送方法、装置和可读存储介质
CN113747606A (zh) * 2020-05-27 2021-12-03 华为技术有限公司 一种用于单播通信的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KPN: "Registration-free business trunking scenario for IMS", 3GPP DRAFT; S1-094163, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, no. Beijing; 20091116, 16 November 2009 (2009-11-16), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP050396123 *

Similar Documents

Publication Publication Date Title
US9495326B2 (en) Providing communication path information in a hybrid communication network
CN112449315B (zh) 一种网络切片的管理方法及相关装置
CN102215052B (zh) 蓝牙无线电设备和用于与电信网络整合的管理应用
CN107667550B (zh) 无线通信系统中通过轮询信道来处理请求的方法及其设备
CN111885680A (zh) 一种建立网络连接的方法、系统及核心设备
CN112752240A (zh) 直接通信的处理方法、装置、中继终端及远端终端
WO2022067841A1 (zh) 一种安全通信方法、装置及系统
KR20130137027A (ko) 프록시 디바이스를 통한 하이브리드 네트워킹 간단한 연결 셋업
JP2019149822A (ja) 端末デバイスが別の端末デバイスを発見するための方法および装置
US20220240089A1 (en) Authorization for network function sets in communication system
US20230156833A1 (en) Packet Forwarding Method, Apparatus, and System
US11979247B2 (en) Message forwarding method and apparatus
CN112672336B (zh) 实现外部认证的方法、通信装置及通信系统
CN114025408B (zh) 一种自适应组网的建网、接入方法、装置及计算机设备
JP2023539038A (ja) 複数個のeSIMプロファイルを設置及び管理する方法及び装置
CN113645298A (zh) 物联网设备的通信方法及装置
CN113645301A (zh) 通信方法及装置
CN110381450B (zh) 一种群组建立方法及装置
CN110430605B (zh) 会话线路切换方法及系统
WO2024065087A1 (zh) 终端发现方法、装置、设备及存储介质
CN110166503B (zh) 信息交互方法、设备及计算机可读存储介质
WO2024098937A1 (zh) 通信方法、通信装置、及存储介质
CN109982427B (zh) 一种信息处理方法、装置
TWI806775B (zh) 藍牙網路建立系統及方法
WO2023060607A1 (zh) 业务接入方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22959739

Country of ref document: EP

Kind code of ref document: A1