WO2024149102A1 - 链路处理方法、装置及终端 - Google Patents

链路处理方法、装置及终端 Download PDF

Info

Publication number
WO2024149102A1
WO2024149102A1 PCT/CN2024/070031 CN2024070031W WO2024149102A1 WO 2024149102 A1 WO2024149102 A1 WO 2024149102A1 CN 2024070031 W CN2024070031 W CN 2024070031W WO 2024149102 A1 WO2024149102 A1 WO 2024149102A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
link
relay
relay terminal
information
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2024/070031
Other languages
English (en)
French (fr)
Inventor
张奕忠
王文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Publication of WO2024149102A1 publication Critical patent/WO2024149102A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • the present application belongs to the field of communication technology, and specifically relates to a link processing method, device and terminal.
  • End-to-end (UE (User Equipment) to UE, U2U) relay communication is introduced in the related art, that is, the source UE and the target UE communicate through the relay UE.
  • U2U relay communication scenario there may be a situation where the source UE needs to communicate with multiple target UEs through the relay UE or multiple source UEs need to communicate with the same target UE through the relay UE.
  • the related art there is no corresponding solution for how to establish a relay link between the source UE and the target UE (that is, a communication link between the source UE and the target UE and communicating through the relay UE) in the U2U relay communication scenario.
  • the embodiments of the present application provide a link processing method, device and terminal, which can provide a method for establishing a communication link between a source UE and a target UE and based on a relay terminal for communication in a U2U relay communication scenario.
  • a link processing method comprising:
  • the relay terminal obtains the first information
  • the relay terminal establishes or modifies the first link based on the first information
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal;
  • the first information includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second indication information is used to indicate whether the second link supports sharing or not
  • the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication.
  • a link processing device which is applied to a relay terminal, and the device includes:
  • a first acquisition module used to acquire first information
  • a first processing module configured to establish or modify a first link based on the first information
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal;
  • the first information includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second indication information is used to indicate whether the second link supports sharing or not
  • the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication.
  • a link processing method comprising:
  • the first terminal sends a first request message to the relay terminal
  • the first request message is used to request to establish or modify a first link
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication
  • the third terminal and the fourth terminal communicate based on the relay terminal
  • the third terminal is the first terminal or the second terminal
  • the first request message includes first information, and the first information includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second indication information is used to indicate whether the second link supports sharing or not
  • the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication.
  • a link processing device which is applied to a first terminal, and the device includes:
  • a first sending module used to send a first request message to the relay terminal
  • the first request message is used to request to establish or modify a first link
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication
  • the third terminal and the fourth terminal communicate based on the relay terminal
  • the third terminal is the first terminal or the second terminal
  • the first request message includes first information, and the first information includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second indication information is used to indicate whether the second link supports sharing or not
  • the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication.
  • a link processing method comprising:
  • the second terminal performs a third operation, where the third operation includes one of the following:
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal;
  • the first direct link modification request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second direct link establishment request message or the third direct link establishment request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • a link processing device which is applied to a second terminal, and the device includes:
  • the execution module is used to execute a third operation, where the third operation includes one of the following:
  • the first link is a communication between the first terminal and the second terminal based on the relay terminal.
  • a link, a third terminal and a fourth terminal communicate with each other based on the relay terminal, and the third terminal is the first terminal or the second terminal;
  • the first direct link modification request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second direct link establishment request message or the third direct link establishment request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • a link processing method comprising:
  • the relay terminal modifies or releases the seventh link, where the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal;
  • the second condition includes at least one of the following:
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is not allowed
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is no longer required
  • the relay terminal does not support a communication link with the fifth terminal or the sixth terminal;
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal lacks communication resources
  • the relay terminal is in a congested state.
  • a link processing device which is applied to a relay terminal, and the device includes:
  • a processing module configured to modify or release a seventh link if a second condition is met, the seventh link being a communication link between a fifth terminal and a sixth terminal and based on the relay terminal for communication, or the seventh link being a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicating with the seventh terminal based on the relay terminal;
  • the second condition includes at least one of the following:
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is not allowed
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is no longer required
  • the relay terminal does not support a communication link with the fifth terminal or the sixth terminal;
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal lacks communication resources
  • the relay terminal is in a congested state.
  • a link processing method comprising:
  • the fifth terminal sends a third request message to the relay terminal, wherein the third request message is used to request modification or release.
  • the seventh link is released, and the seventh link is a communication link between the fifth terminal and the sixth terminal and is based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal.
  • a link processing device which is applied to a fifth terminal, and the device includes:
  • the first sending module is used to send a third request message to the relay terminal, wherein the third request message is used to request modification or release of a seventh link, the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal.
  • a link processing method comprising:
  • the sixth terminal receives a fifth request message from the relay terminal, wherein the fifth request message is used to request release or modification of a seventh link, the seventh link being a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link being a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal.
  • a link processing device which is applied to a sixth terminal, and the device includes:
  • the first receiving module is used to receive a fifth request message from the relay terminal, wherein the fifth request message is used to request to release or modify a seventh link, the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal.
  • a terminal which includes a processor and a memory, the memory storing a program or instruction that can be run on the processor, and the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect, or implements the steps of the method described in the third aspect, or implements the steps of the method described in the fifth aspect, or implements the steps of the method described in the seventh aspect, or implements the steps of the method described in the ninth aspect, or implements the steps of the method described in the eleventh aspect.
  • a terminal comprising a processor and a communication interface, wherein when the terminal is a relay terminal, the processor is used to obtain first information, and based on the first information, establish or modify a first link; wherein the first link is a communication link between a first terminal and a second terminal and based on the relay terminal for communication, a third terminal and a fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal; the first information comprises at least one of the following: information of the communication link between the third terminal and the relay terminal; first indication information; second indication information; information of the first terminal; information of the second terminal; quality of service QoS information; wherein the first indication information is used to indicate whether the first link supports or does not support sharing, and the second indication information is used to indicate whether the second link supports or does not support sharing, and the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication;
  • the communication interface is used to send a first request message to a relay terminal;
  • the first request message is used to request to establish or modify a first link, the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal;
  • the first request message includes first information, and the first information includes at least one of the following: information about the communication link between the third terminal and the relay terminal; first indication information; second indication information; information about the first terminal; information about the second terminal; quality of service QoS information; wherein the first indication information is used to indicate whether the first link supports sharing or not, and the second indication information is used to indicate whether the second link supports sharing or not, and the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication;
  • the communication interface is used to perform a third operation, and the third operation includes one of the following: receiving a first direct link modification request message from a relay terminal, used to request modification of the first link; receiving a second direct link establishment request message or a third direct link establishment request message from a relay terminal, used to request establishment of the first link; wherein the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal; the first direct link modification request message includes at least one of the following: first indication information, used to indicate whether the first link supports or does not support sharing; quality of service QoS information; information of the first terminal; the second direct link establishment request message or the third direct link establishment request message includes at least one of the following: first indication information, used to indicate whether the first link supports or does not support sharing; information of the first terminal;
  • the processor is configured to modify or release the seventh link if the second condition is met, where the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal;
  • the second condition includes at least one of the following: receiving a third request message, the third request message is used to request modification or release of the seventh link; the communication link between the relay terminal and the fifth terminal or the sixth terminal is not allowed; the communication link between the relay terminal and the fifth terminal or the sixth terminal is no longer needed; the relay terminal does not support the communication link with the fifth terminal or the sixth terminal; the communication link between the relay terminal and the fifth terminal or the sixth terminal lacks communication resources; the relay terminal is in a congested state;
  • the communication interface is used to send a third request message to the relay terminal, wherein the third request message is used to request modification or release of a seventh link, the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal;
  • the communication interface is used to receive a fifth request message from the relay terminal, wherein the fifth request message is used to request to release or modify a seventh link, the seventh link being a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link being the fifth terminal.
  • the fifth terminal or the sixth terminal communicates with the seventh terminal based on the communication link between the relay terminal.
  • a readable storage medium on which a program or instruction is stored.
  • the steps of the method described in the first aspect are implemented, or the steps of the method described in the third aspect are implemented, or the steps of the method described in the fifth aspect are implemented, or the steps of the method described in the seventh aspect are implemented, or the steps of the method described in the ninth aspect are implemented, or the steps of the method described in the eleventh aspect are implemented.
  • a chip comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instructions to implement the steps of the method described in the first aspect, or the steps of the method described in the third aspect, or the steps of the method described in the fifth aspect, or the steps of the method described in the seventh aspect, or the steps of the method described in the ninth aspect, or the steps of the method described in the eleventh aspect.
  • a computer program/program product is provided, which is stored in a storage medium, and is executed by at least one processor to implement the steps of the method described in the first aspect, or the steps of the method described in the third aspect, or the steps of the method described in the fifth aspect, or the steps of the method described in the seventh aspect, or the steps of the method described in the ninth aspect, or the steps of the method described in the eleventh aspect.
  • a relay terminal obtains first information, and establishes or modifies a first link based on the first information; wherein the first link is a communication link between a first terminal and a second terminal and based on the relay terminal for communication, a third terminal and a fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal, and the first information includes at least one of the following: information of a communication link between the third terminal and the relay terminal; first indication information; second indication information; information of the first terminal; information of the second terminal; QoS information; wherein the first indication information is used to indicate whether the first link supports or does not support sharing, and the second indication information is used to indicate whether the second link supports or does not support sharing, and the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication, that is, an embodiment of the present application provides a method for establishing a communication link between a source UE and a target UE and based on the relay terminal for
  • FIG1 is a block diagram of a wireless communication system applicable to an embodiment of the present application.
  • FIG2 is a second block diagram of a wireless communication system applicable to the embodiment of the present application.
  • FIG3 is a third block diagram of a wireless communication system applicable to the embodiment of the present application.
  • FIG4 is a flowchart of a 5G ProSe U2U relay discovery process in mode A provided in an embodiment of the present application;
  • FIG5 is a flowchart of a 5G ProSe U2U relay discovery process in mode B provided in an embodiment of the present application;
  • FIG6 is a flow chart of communicating through 5G ProSe L3 U2U relay provided in an embodiment of the present application.
  • FIG7 is a flowchart of a link processing method provided in an embodiment of the present application.
  • FIG8 is a fourth block diagram of a wireless communication system applicable to an embodiment of the present application.
  • FIG9 is a fifth block diagram of a wireless communication system applicable to an embodiment of the present application.
  • FIG10 is a second flowchart of a link processing method provided in an embodiment of the present application.
  • FIG11 is a flowchart of a link processing method according to an embodiment of the present application.
  • FIG12a is a fourth flowchart of a link processing method provided in an embodiment of the present application.
  • FIG12b is a fifth flowchart of a link processing method provided in an embodiment of the present application.
  • FIG13a is a sixth flowchart of a link processing method provided in an embodiment of the present application.
  • FIG13b is a flowchart of a link processing method provided in an embodiment of the present application.
  • FIG14 is a flowchart of a link processing method according to an embodiment of the present application.
  • FIG15 is a flowchart of a link processing method provided in an embodiment of the present application.
  • FIG16 is a flowchart of a link processing method provided in an embodiment of the present application.
  • FIG17a is a flowchart of a link processing method provided by an embodiment of the present application.
  • FIG17b is a flowchart of a link processing method according to an embodiment of the present application.
  • FIG18 is a structural diagram of a link processing device provided in an embodiment of the present application.
  • FIG19 is a second structural diagram of a link processing device provided in an embodiment of the present application.
  • FIG20 is a third structural diagram of a link processing device provided in an embodiment of the present application.
  • FIG21 is a fourth structural diagram of a link processing device provided in an embodiment of the present application.
  • FIG22 is a fifth structural diagram of a link processing device provided in an embodiment of the present application.
  • FIG23 is a sixth structural diagram of a link processing device provided in an embodiment of the present application.
  • FIG24 is a structural diagram of a communication device provided in an embodiment of the present application.
  • Figure 25 is a structural diagram of the terminal provided in an embodiment of the present application.
  • first, second, etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by “first” and “second” are generally of the same type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally represents that the objects associated with each other are in an "or” relationship.
  • LTE-Advanced Long Term Evolution
  • LTE-A LTE/LTE evolution
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • FDMA Frequency Division Multiple Access
  • OFDMA Orthogonal Frequency Division Multiple Access
  • SC-FDMA Single-carrier Frequency Division Multiple Access
  • NR New Radio
  • 6G 6th Generation
  • FIG1 shows a block diagram of a wireless communication system applicable to an embodiment of the present application.
  • the wireless communication system includes a terminal 11 and a network side device 12 .
  • the terminal 11 may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer) or a notebook computer, a personal digital assistant (PDA), a handheld computer, a netbook, an ultra-mobile personal computer (UMPC), a mobile Internet device (Mobile Internet Device, MID), an augmented reality (AR)/virtual reality (VR) device, a robot, a wearable device (Wearable Device), a vehicle user equipment (VUE), a pedestrian terminal (Pedestrian User Equipment, PUE), a smart home (a home appliance with wireless communication function, such as a refrigerator, a television, a washing machine or furniture, etc.), a game console, a personal computer (personal computer, PC), a teller machine or a self-service machine and other terminal side devices, and the wearable device includes: a smart watch
  • the network side device 12 may include an access network device or a core network device, wherein the access network device may also be referred to as a radio access network device, a radio access network (RAN), a radio access network function or a radio access network unit.
  • the access network device may include a base station, a wireless local area network (WLAN) access point or a WiFi node, etc.
  • WLAN wireless local area network
  • the base station may be referred to as a node B, an evolved node B (eNB), an access point, a base transceiver station (BTS), a radio base station, a radio transceiver, a basic service set (BSS), an extended service set (ESS), a home B node, a home evolved B node, a transmission receiving point (TRP) or other appropriate terms in the field, as long as the same technical effect is achieved, the base station is not limited to a specific technical vocabulary, it should be noted that in the embodiment of the present application, only the base station in the NR system is used as an example for introduction, and the specific type of the base station is not limited.
  • the core network equipment may include but is not limited to at least one of the following: core network node, core network function, mobility management entity (Mobility Management Entity, MME), access mobility management function (Access and Mobility Management Function, AMF), session management function (Session Management Function, SMF), user plane function (User Plane Function, UPF), policy control function (Policy Control Function, PCF), policy and charging rules function unit (Policy and Charging Rules Function, PCRF), edge application service discovery function (Edge Application Server Discovery Function, EASDF), unified data management (Unified Data Management, UDM), Unified Data Repository (UDR), Home Subscriber Server (HSS), Centralized network configuration (CNC), Network Repository Function (NRF), Network Exposure Function (NEF), Local NEF (L-NEF), Binding Support Function (BSF), Application Function (AF), etc.
  • MME mobility management entity
  • AMF Access Mobility Management Function
  • SMF session management function
  • User Plane Function User Plane Function
  • PCF Policy Control Function
  • PCRF
  • End-to-end (UE to UE, U2U) relay communication.
  • U2U relay communication may refer to communication between a source UE and a target UE through a relay UE.
  • a PC5 link for example, multiple target UEs share a PC5 link between a source UE and a relay UE, as shown in FIG2 , or multiple source UEs share a PC5 link between a relay UE and a target UE, as shown in FIG3 .
  • the above scenario potentially has a potential risk of releasing a specific U2U relay link, resulting in the release of other U2U relay links.
  • the target UE Upon receipt of the Proximity Services (ProSe) direct link release request (i.e., PROSE DIRECT LINK RELEASE REQUEST) message, the target UE shall stop all running timers of the 5G PROSE direct link and terminate any other ongoing PC5 signaling protocol procedures on the 5G PROSE direct link.
  • ProSe Proximity Services
  • the target UE shall start timer T5088 associated with the initiating terminal layer 2 ID and set its value to the provided timer value.
  • the target UE shall respond with a ProSe direct link release accept (i.e., PROSE DIRECT LINK RELEASE ACCEPT) message.
  • the target UE needs to include the new 2 least significant bits (LSB) of the K NRP ID in the PROSE DIRECT LINK RELEASE ACCEPT message.
  • the target UE shall release the 5G ProSe direct link through the following actions:
  • the target UE will form a new K NRP ID from the new 2 LSB K NRP ID received from the PROSE DIRECT LINK RELEASE REQUEST message and the new 2 LSB K NRP ID included in the PROSE DIRECT LINK RELEASE ACCEPT message.
  • the target UE will replace the K NRP ID of the related technology with the new K NRP ID.
  • the target UE can include the new K NRP ID in the ProSeE direct link establishment request (i.e., PROSE DIRECT LINK ESTABLISHMENT REQUEST) message.
  • the content of the PROSE DIRECT LINK RELEASE REQUEST message may be as shown in Table 1.
  • the terminal may include the IE.
  • the 5G ProSe U2U relay discovery process in mode A (i.e. Model A) can be shown in Figure 4, and the 5G ProSe U2U relay discovery process in mode B (i.e. Model B) can be shown in Figure 5.
  • the purpose of the 5G ProSe direct link modification process is to modify the ProSe direct link of the related technology to:
  • the UE that sends the ProSe direct link modification request (i.e., PROSE DIRECT LINK MODIFICATION REQUEST) message is called the source UE, and the other UE is called the target UE.
  • ProSe direct link modification request i.e., PROSE DIRECT LINK MODIFICATION REQUEST
  • FIG. 7 is a flowchart of a link processing method provided in an embodiment of the present application.
  • the method can be executed by a relay terminal, as shown in FIG. 7, including the following steps:
  • Step 701 The relay terminal obtains first information
  • Step 702 The relay terminal establishes or modifies a first link based on the first information
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal;
  • the first information includes at least one of the following:
  • QoS Quality of Service
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second indication information is used to indicate whether the second link supports sharing or not
  • the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication.
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, or the first link can also be called a relay link between the first terminal and the second terminal.
  • one of the first terminal and the second terminal can be called a source terminal (i.e., a source UE), and the other can be called a target terminal (i.e., a target UE). That is to say, the first terminal is the source terminal and the second terminal is the target terminal, or the first terminal is the target terminal and the second terminal is the source terminal.
  • the source terminal can be understood as a terminal that requests to initiate a link establishment process.
  • the above-mentioned first terminal or the second terminal also communicates with other terminals (i.e., the fourth terminal) based on the relay terminal. That is to say, this embodiment can establish a communication link between the first terminal and the second terminal and based on the relay UE communication when the above-mentioned first terminal or the second terminal has a communication link established between the relay terminal and the fourth terminal, wherein the above-mentioned fourth terminal can be any terminal different from the first terminal and the second terminal.
  • the communication link may be a direct communication interface direct link (i.e., PC5 direct link), a side link (SideLink) communication link, a Bluetooth direct communication link, a wifi direct communication link, or other communication links.
  • the information of the communication link between the third terminal and the relay terminal may include at least one of information used to characterize whether a communication link already exists between the third terminal and the relay terminal, QoS information of the communication link between the third terminal and the relay terminal, communication resource status of the communication link between the third terminal and the relay terminal, and communication quality of the communication link between the third terminal and the relay terminal.
  • the relay terminal may reuse the existing communication link between the third terminal and the relay terminal. in the case where there is no communication link between the third terminal and the relay terminal, the relay terminal may establish a communication link between the third terminal and the relay terminal.
  • the first indication information is used to indicate whether the first link supports or does not support sharing.
  • the first indication information may be a shared link flag (i.e., shared link flag).
  • the relay terminal may reuse the existing communication link between the third terminal and the relay terminal for communication between the first terminal and the second terminal; when the first indication information is used to indicate that the first link does not support sharing, the relay terminal may establish a new communication link between the third terminal and the relay terminal for communication between the first terminal and the second terminal.
  • the second indication information is used to indicate whether the second link supports sharing or does not support sharing.
  • the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication, or may also be referred to as a relay link between the third terminal and the fourth terminal.
  • the relay terminal may reuse the existing communication link between the third terminal and the relay terminal for communication between the first terminal and the second terminal; when the second indication information is used to indicate that the second link does not support sharing, the relay terminal may establish a new communication link between the third terminal and the relay terminal for communication between the first terminal and the second terminal.
  • the information of the first terminal may include but is not limited to at least one of the following:
  • IP Internet Protocol
  • a Media Access Control (MAC) address of the first terminal A Media Access Control (MAC) address of the first terminal
  • the layer 2 (Layer 2, L2) identifier of the first terminal.
  • the information of the second terminal may include but is not limited to at least one of the following:
  • the layer 2 identifier of the first terminal is the same as the first terminal.
  • the above-mentioned QoS information may include but is not limited to at least one of the following: QoS information between the first terminal and the second terminal, QoS information between the first terminal and the relay terminal, and QoS information between the second terminal and the relay terminal.
  • the QoS information may include but is not limited to at least one of the following:
  • Proximity Service Identifier ProSe ID
  • the operation code may be a link modification operation code for adding a new PC5 QoS flow to an existing 5G ProSe direct link, or a link establishment operation code for establishing a new PC5 direct link.
  • the PC5 QoS rule may be used to indicate a packet filter for a PC5 QoS flow.
  • the link processing method provided in the embodiment of the present application obtains the first information based on the relay terminal, and establishes or modifies the first link based on the first information; wherein the first link is a communication link between the first terminal and the second terminal and is based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal, and the first information includes at least one of the following: information of the communication link between the third terminal and the relay terminal; first indication information; second indication information; information of the first terminal; information of the second terminal; QoS information; wherein the first indication information is used to indicate whether the first link supports or does not support sharing, and the second indication information is used to indicate whether the second link supports or does not support sharing, and the second link is a communication link between the third terminal and the fourth terminal and is based on the relay terminal for communication, that is, the embodiment of the present application provides a method for establishing a communication link between a source UE and a target UE and is based
  • the first link includes at least one of a third link and a fourth link; wherein the third link is a communication link between the first terminal and the relay terminal, and the fourth link is a communication link between the relay terminal and the second terminal;
  • the second link includes at least one of a fifth link and a sixth link; wherein the fifth link is a communication link between the third terminal and the relay terminal, and the sixth link is a communication link between the relay terminal and the fourth terminal.
  • the first link supports sharing
  • the third terminal is the first terminal
  • the third link and the fifth link are the same communication link
  • the third terminal is the second terminal
  • the fourth link and the fifth link are the same communication link
  • the third terminal is the first terminal, the third link and the fifth link are different communication links; if the third terminal is the second terminal, the fourth link and the fifth link are different communication links.
  • the above-mentioned third link and fifth link being the same communication link can be understood as, for example, the third link and the fifth link use the same communication resources (such as PC5 communication resources, address information, etc.), the third link and the fifth link are the same PC5 direct link (i.e., PC5 direct link), the third link multiplexes or shares the communication resources of the fifth link, or the fifth link multiplexes or shares the communication resources of the third link, etc.
  • the above-mentioned fourth link and fifth link are the same communication link, which can be understood as, for example, the fourth link and the fifth link use the same communication resources (such as PC5 communication resources, address information, etc.), the fourth link and the fifth link are the same PC5 direct link, the fourth link multiplexes or shares the communication resources of the fifth link, or the fifth link multiplexes or shares the communication resources of the fourth link, etc.
  • the third link and the fifth link are different communication links. For example, a new communication link (i.e., the third link) is established between the relay terminal and the first terminal for communication between the first terminal and the second terminal.
  • the fourth link and the fifth link are different communication links. For example, a new communication link (i.e., the fourth link) is established between the relay terminal and the second terminal for communication between the first terminal and the second terminal.
  • the first link when the first link supports sharing, if the third terminal is the first terminal, the third link and the fifth link are the same communication link, and if the third terminal is the second terminal, the fourth link and the fifth link are the same communication link, so that communication resources can be saved while ensuring that the first terminal and the second terminal can communicate; when the first link does not support sharing, if the third terminal is the first terminal, the third link and the fifth link are different communication links, and if the third terminal is the second terminal, the fourth link and the fifth link are different communication links, so that the reliability of communication between the first terminal and the second terminal can be ensured.
  • the second link supports sharing
  • the third terminal is the first terminal
  • the third link and the fifth link are the same communication link
  • the third terminal is the second terminal
  • the fourth link and the fifth link are the same communication link
  • the second link does not support sharing, if the third terminal is the first terminal, the third link and the fifth link are different communication links; if the third terminal is the second terminal, the fourth link and the fifth link are different communication links.
  • the above-mentioned third link and fifth link being the same communication link can be understood as, for example, the third link and the fifth link use the same communication resources (such as PC5 communication resources, address information, etc.), the third link and the fifth link are the same PC5 direct link, the third link multiplexes or shares the communication resources of the fifth link, or the fifth link multiplexes or shares the communication resources of the third link, etc.
  • the above-mentioned fourth link and fifth link are the same communication link, which can be understood as, for example, the fourth link and the fifth link use the same communication resources (such as PC5 communication resources, address information, etc.), the fourth link and the fifth link are the same PC5 direct link, the fourth link multiplexes or shares the communication resources of the fifth link, or the fifth link multiplexes or shares the communication resources of the fourth link, etc.
  • the third link and the fifth link are different communication links. For example, a new communication link (i.e., the third link) is established between the relay terminal and the first terminal for communication between the first terminal and the second terminal.
  • the fourth link and the fifth link are different communication links. For example, a new communication link (i.e., the fourth link) is established between the relay terminal and the second terminal for communication between the first terminal and the second terminal.
  • the relay terminal establishes or modifies the first link, including at least one of the following:
  • the relay terminal establishes the fourth link, wherein the third link and the fifth link are the same communication link;
  • the relay terminal establishes the third link, wherein the fourth link and the fifth link are the same communication link.
  • the relay terminal when the third terminal is the first terminal, the relay terminal establishes a communication link between the relay terminal and the second terminal, and can reuse the communication link between the first terminal and the relay terminal; when the third terminal is the second terminal, the relay terminal establishes a communication link between the relay terminal and the first terminal, and can reuse the communication link between the second terminal and the relay terminal, so that communication resources can be saved while ensuring that the first terminal and the second terminal can communicate.
  • the relay terminal acquires the first information, including:
  • the relay terminal receives a first request message from the first terminal, where the first request message includes the first information
  • the first request message is used to request to establish or modify the first link.
  • the first terminal is a source terminal
  • the second terminal is a target terminal
  • the first request message is a first direct link establishment request message.
  • the above-mentioned first direct link establishment request message may be a proximity service direct link establishment request (i.e., PROSE DIRECT LINK ESTABLISHMENT REQUEST) message, used to request to establish the first link.
  • a proximity service direct link establishment request i.e., PROSE DIRECT LINK ESTABLISHMENT REQUEST
  • the method further includes:
  • the relay terminal sends a first direct link modification request message to the second terminal based on the first direct link establishment request message, where the first direct link modification request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the first indication information, QoS information and information of the first terminal in this embodiment can refer to the above-mentioned related descriptions and will not be described in detail here.
  • the above-mentioned first direct link modification request message may be a proximity service direct link modification request (i.e., PROSE DIRECT LINK MODIFICATION REQUEST) message, used to request modification of the first link.
  • a proximity service direct link modification request i.e., PROSE DIRECT LINK MODIFICATION REQUEST
  • the relay terminal when the third terminal is the second terminal (that is, a communication connection already exists between the second terminal and the relay terminal), the relay terminal sends a first direct link modification request message to the second terminal based on the first direct link establishment request message to request modification of the first link.
  • the second terminal may send a direct link modification accept message to the relay terminal if it agrees to modify the first link; and may send a direct link modification reject message to the relay terminal if it disagrees to modify the first link.
  • the first direct link modification request message received by the second terminal carries new QoS information, and based on the carried first direct link modification request message, the second terminal
  • the second terminal can know that the relay terminal needs to add a new Qos flow (i.e., Qos flow) from the first terminal, that is, to establish a shared link with the first terminal, and then determine that the new QoS information comes from the first terminal.
  • the second terminal can store the corresponding relationship between the Qos flow and the first terminal, which is used to bind the PC5 QoS flow to a specific opposite terminal.
  • the method further comprises at least one of the following:
  • the relay terminal sends a first direct link establishment acceptance message to the first terminal
  • the first direct link modification accept message includes first indication information, and/or the first direct link establishment accept message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the first direct link modification accept message may be a response message to the first direct link modification request message, used to indicate that the modification of the first link is approved.
  • the first direct link establishment accept message may be a response message to the first direct link establishment request message, used to indicate that the establishment of the first link is approved.
  • the relay terminal may send a first direct link establishment accept message to the first terminal to indicate that the establishment of the first link is approved.
  • the first direct link modification accept message may be a proximity service direct link modification accept (i.e., PROSE DIRECT LINK MODIFICATION ACCEPT) message
  • the first direct link establishment accept message may be a proximity service direct link establishment accept (i.e., PROSE DIRECT LINK ESTABLISHMENT ACCEPT) message.
  • the first indication information in this embodiment can refer to the above-mentioned related instructions and will not be elaborated here.
  • the method further includes:
  • the relay terminal sends a second direct link establishment request message to the second terminal based on the first direct link establishment request message, where the second direct link establishment request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the relay terminal may send a second direct link establishment request message to the second terminal based on the first direct link establishment request message to request establishment of the first link.
  • the second terminal may send a direct link establishment acceptance message to the relay terminal if it agrees to establish the first link; and may send a direct link establishment rejection message to the relay terminal if it disagrees to establish the first link.
  • first indication information and the information of the first terminal in this embodiment can refer to the above-mentioned related descriptions and will not be elaborated here.
  • the method further comprises at least one of the following:
  • the relay terminal sends a third direct link establishment acceptance message to the first terminal
  • the second direct link establishment accept message includes first indication information, and/or the third direct link establishment accept message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the second direct link establishment acceptance message may be a response message to the second direct link establishment request message, used to indicate that the first link is agreed to be established.
  • the third direct link establishment acceptance message may be a response message to the first direct link establishment request message, used to indicate that the first link is agreed to be established.
  • the relay terminal may send the third direct link establishment acceptance message to the first terminal to indicate that the first link is agreed to be established.
  • the first request message is a second direct link modification request message.
  • the first request message is a second direct link modification request message.
  • the method further includes:
  • the relay terminal sends a third direct link establishment request message to the second terminal based on the second direct link modification request message.
  • the relay terminal after receiving the second direct link modification request message from the first terminal, the relay terminal sends a third direct link establishment request message to the second terminal based on the second direct link modification request message to request establishment of the first link.
  • the second terminal may send a direct link establishment acceptance message to the relay terminal if it agrees to establish the first link; and may send a direct link establishment rejection message to the relay terminal if it disagrees to establish the first link.
  • the third direct link establishment request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not.
  • the information of the first terminal and the first indication information in this embodiment can refer to the above-mentioned related descriptions and will not be repeated here.
  • the method further comprises at least one of the following:
  • the relay terminal sends a second direct link modification accept message to the first terminal
  • the fourth direct link establishment acceptance message includes first indication information, and/or the second direct link modification acceptance message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the fourth direct link establishment accept message may be a response message to the third direct link establishment request message
  • the second direct link modification accept message may be a response message to the second direct link modification request message
  • the method further comprises:
  • the relay terminal When a first condition is met, the relay terminal refuses to establish the first link
  • the first condition includes at least one of the following:
  • the relay terminal receives a direct link establishment rejection message
  • the relay terminal receives a direct link modification rejection message
  • the first link or the second link does not support sharing
  • the relay terminal cannot modify the communication link between the relay terminal and the third terminal based on the QoS information.
  • the QoS information in this embodiment can refer to the above related description, which will not be described in detail here.
  • the communication link between the relay terminal and the third terminal is the existing communication link between the relay terminal and the third terminal.
  • the relay terminal may send a direct link establishment rejection message or a direct link modification rejection message to the first terminal.
  • the direct link establishment reject message includes a first cause value
  • the direct link modification reject message includes a first cause value
  • the first cause value is used to indicate that the link does not support sharing.
  • the method further comprises:
  • the relay terminal receives a second request message
  • the second request message is used to request to establish or modify the second link.
  • the second request message may be a direct link establishment request (i.e., PROSE DIRECT LINK ESTABLISHMENT REQUEST) message, used to request establishment of the second link, or the second request message may be a direct link modification request (i.e., PROSE DIRECT LINK MODIFICATION REQUEST) message, used to request modification of the second link.
  • a direct link establishment request i.e., PROSE DIRECT LINK ESTABLISHMENT REQUEST
  • PROSE DIRECT LINK MODIFICATION REQUEST i.e., PROSE DIRECT LINK MODIFICATION REQUEST
  • the relay terminal may receive the second request message from one of the third terminal and the fourth terminal. Further, the relay terminal may send a fourth request message to the other of the third terminal and the fourth terminal to request to establish or modify the second link.
  • the source UE sends a direct link establishment request message to the relay UE, and further, the relay UE sends a direct link establishment request message to the target UE-1; or, as shown in FIG9 , the source UE-1 sends a direct link establishment request message to the relay UE, and further, the relay UE sends a direct link establishment request message to the target UE.
  • the second request message includes second indication information, where the second indication information is used to indicate whether the second link supports sharing or not.
  • the method further comprises:
  • the relay terminal receives a first response message for responding to the second request message, where the first response message includes second indication information, where the second indication information is used to indicate whether the second link supports sharing or not.
  • the relay terminal may receive a first response message from the third terminal or the fourth terminal.
  • the first response message may be a proximity service direct link establishment acceptance (PROSE DIRECT LINK
  • the message may be a ESTABLISHMENT ACCEPT) message, or a PROSE DIRECT LINK MODIFICATION ACCEPT) message.
  • the method further comprises:
  • the relay terminal modifies or releases the seventh link, where the seventh link is a communication link between the fifth terminal and the sixth terminal and is based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal;
  • the second condition includes at least one of the following:
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is not allowed
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is no longer required
  • the relay terminal does not support a communication link with the fifth terminal or the sixth terminal;
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal lacks communication resources
  • the relay terminal is in a congested state.
  • the fifth terminal and the sixth terminal communicate based on the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal through the relay terminal.
  • this embodiment is directed to deleting or modifying the seventh link when the communication link between the shared relay terminal and the fifth terminal or the sixth terminal is used.
  • the seventh link may be the first link or the second link, or may be a link different from the first link and the second link. It is understandable that when the seventh link is the first link or the second link, the fifth terminal, the sixth terminal and the seventh terminal may be the first terminal, the second terminal and the fourth terminal, respectively.
  • the above-mentioned third request message may be but is not limited to one of the following messages: a link release request message, for example, a proximity service direct link release request (i.e., PROSE DIRECT LINK RELEASE REQUEST) message; a link modification request message, for example, a proximity service direct link modification request message (i.e., PROSE DIRECT LINK MODIFICATION REQUEST); a dedicated request message for releasing an end-to-end relay link, for example, a newly defined PC5-S message.
  • a link release request message for example, a proximity service direct link release request (i.e., PROSE DIRECT LINK RELEASE REQUEST) message
  • a link modification request message for example, a proximity service direct link modification request message (i.e., PROSE DIRECT LINK MODIFICATION REQUEST)
  • a dedicated request message for releasing an end-to-end relay link for example, a newly defined PC5-S message.
  • the communication link between the above-mentioned relay terminal and the fifth terminal or the sixth terminal is not allowed, that is, direct communication to the target UE (that is, the fifth terminal or the sixth terminal) is not allowed (that is, direct communication to the target UE not allowed).
  • a communication link between the above-mentioned relay terminal and the fifth terminal or the sixth terminal is no longer needed, that is, direct communication to the target UE (that is, the fifth terminal or the sixth terminal) is no longer needed (that is, direct communication to the target UE no longer needed).
  • the above-mentioned relay terminal does not support the communication link with the fifth terminal or the sixth terminal, that is, direct communication is no longer supported (i.e. direct connection is not available anymore).
  • the communication link between the above-mentioned relay terminal and the fifth terminal or the sixth terminal lacks communication resources, that is, there is a lack of resources for 5G ProSe direct link (i.e., lack of resources for 5G ProSe direct link).
  • the above-mentioned relay terminal is in a congestion state, that is, the relay terminal is in a congestion situation (i.e., congestion situation).
  • the relay terminal may release or modify the communication link between the fifth terminal and the sixth terminal and based on the communication of the relay terminal. For example, when receiving the third request message, the relay terminal may release or modify the communication link between the fifth terminal and the sixth terminal and based on the communication of the relay terminal.
  • the relay terminal may release or modify the communication link between the fifth terminal or the sixth terminal and the relay terminal.
  • the relay terminal releases or modifies the communication link with the fifth terminal or the sixth terminal when determining that the communication link between the relay terminal and the fifth terminal or the sixth terminal is not allowed.
  • the third request message includes at least one of the following:
  • the third instruction information is the third instruction information
  • the fifth terminal is a terminal that requests to initiate modification or release of the seventh link
  • the eighth terminal is a terminal that is requested by the fifth terminal to modify or release the seventh link
  • the third indication information is used to indicate at least one of the following:
  • the relay terminal releases the seventh link
  • the relay terminal modifies or deletes the QoS flow in the seventh link.
  • the eighth terminal may be a relay link, or may be a sixth terminal.
  • the relay terminal may modify or release the seventh link according to the third request message;
  • the eighth terminal is the sixth terminal, the relay terminal may send request information for requesting modification or release of the seventh link to the sixth terminal according to the third request message, and the sixth terminal may modify or release the seventh link based on the request information.
  • the information of the default terminal may be a default information.
  • a deletion or modification operation may be performed on all communication links related to the fifth terminal.
  • the information of the fifth terminal or the information of the eighth terminal includes at least one of the following:
  • a terminal identifier of the fifth terminal or the eighth terminal
  • the IP address of the fifth terminal or the eighth terminal is the IP address of the fifth terminal or the eighth terminal.
  • the layer 2 identifier of the fifth terminal or the eighth terminal is the same as the eighth terminal.
  • the method further comprises:
  • the relay terminal sends a first notification message to the ninth terminal
  • the first notification message is used to notify at least one of the following:
  • the tenth terminal is the fifth terminal or the sixth terminal, and the ninth terminal includes at least one terminal that communicates with the tenth terminal based on the relay terminal.
  • the ninth terminal when the tenth terminal is the fifth terminal, the ninth terminal may include the sixth terminal; and when the tenth terminal is the sixth terminal, the ninth terminal may include the fifth terminal.
  • a first notification message can be sent to the ninth terminal, and the ninth terminal can perform link-related operations based on the first notification message.
  • the ninth terminal can delete the PC5 context (i.e., context) related to the tenth terminal or the ninth terminal, modify or delete the QoS flow between the tenth terminal or the ninth terminal and the relay terminal, or modify or release the communication link between the ninth terminal and the relay terminal, etc.
  • the relay terminal modifies or releases the seventh link, including at least one of the following:
  • the relay terminal modifies or releases the eighth link
  • the relay terminal performs a first operation
  • the relay terminal performs a second operation
  • the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication
  • the eighth link is a communication link between the relay terminal and the sixth terminal
  • the first operation includes at least one of the following:
  • the second operation includes at least one of the following: releasing all communication links related to the fifth terminal; deleting all QoS flows related to the fifth terminal.
  • the relay terminal when the third request message includes information about the sixth terminal, the relay terminal can learn, based on the information about the sixth terminal, that the fifth terminal requests to modify or release a communication link related to the sixth terminal, and then, when there is a communication link between the relay terminal and the sixth terminal, the relay terminal can modify or release the communication link between the relay terminal and the sixth terminal; when there is no communication link between the relay terminal and the sixth terminal, that is, the fifth terminal requests to release or modify a non-existent communication link, in this case, the relay terminal performs a first operation, for example, performs a terminal-to-terminal discovery process related to the sixth terminal, and establishes a communication link between the relay terminal and the sixth terminal with the sixth terminal, or sends a second response message to the fifth terminal to indicate a refusal to modify or delete the relay terminal.
  • the communication link between the terminal and the sixth terminal when the third request message includes information about the sixth terminal, the relay terminal can learn, based on the information about the sixth terminal, that the fifth terminal requests to modify or release a
  • the relay terminal can modify or release all communication links related to the fifth terminal. For example, if the fifth terminal communicates with the sixth terminal and the sixth terminal is based on the relay terminal, respectively, the communication link between the fifth terminal and the sixth terminal and based on the relay terminal communication can be released, as well as the communication link between the fifth terminal and the seventh terminal and based on the relay terminal communication.
  • the relay terminal performs the above behavior.
  • the second response message includes at least one of the following: a second reason value; information of the sixth terminal.
  • the second cause value includes at least one of the following:
  • the target terminal does not exist.
  • the relay terminal modifies or releases the seventh link, including at least one of the following:
  • the relay terminal modifies or releases the communication link between the relay terminal and the fifth terminal;
  • the relay terminal deletes the PC5 context related to the sixth terminal
  • the relay terminal modifies or deletes the QoS flow between the sixth terminal and the relay terminal;
  • the relay terminal releases the communication link between the sixth terminal and the relay terminal.
  • the relay terminal when the eighth terminal is the sixth terminal and the fifth terminal also communicates with the seventh terminal based on the relay terminal (ie, the communication link between the relay terminal and the fifth terminal is a shared link), the relay terminal performs the above behavior.
  • the relay terminal can modify the communication link between the relay terminal and the fifth terminal and release the communication link between the sixth terminal and the relay terminal.
  • the relay terminal modifies the communication link between the relay terminal and the fifth terminal, which can be understood as the relay terminal retains the communication link between the relay terminal and the fifth terminal.
  • the relay terminal modifies or releases the seventh link, including at least one of the following:
  • the relay terminal modifies or releases the communication link between the relay terminal and the sixth terminal;
  • the relay terminal deletes the PC5 context related to the fifth terminal
  • the relay terminal modifies or deletes the QoS flow between the fifth terminal and the relay terminal;
  • the relay terminal releases the communication link between the fifth terminal and the relay terminal.
  • the relay terminal when the eighth terminal is the sixth terminal and the sixth terminal also communicates with the seventh terminal based on the relay terminal (ie, the communication link between the relay terminal and the sixth terminal is a shared link), the relay terminal performs the above behavior.
  • the eighth terminal is the sixth terminal, and the sixth terminal is also based on the relay terminal and the seventh terminal
  • the relay terminal may modify the communication link between the relay terminal and the sixth terminal, and release the communication link between the fifth terminal and the relay terminal.
  • the relay terminal modifies the communication link between the relay terminal and the sixth terminal, which can be understood as the relay terminal retains the communication link between the relay terminal and the sixth terminal.
  • the relay terminal modifies or releases the seventh link, including at least one of the following:
  • the relay terminal modifies or deletes the PC5 context related to the fifth terminal
  • the relay terminal modifies or deletes the QoS flow between the fifth terminal and the relay terminal;
  • the relay terminal releases the communication link between the fifth terminal and the relay terminal.
  • the relay terminal performs the above behavior.
  • the method further comprises:
  • the relay terminal sends a second notification message to the sixth terminal
  • the second notification message is used to notify at least one of the following:
  • the communication link between the sixth terminal and the relay terminal is modified or released.
  • the relay terminal when the relay terminal releases the communication link between the fifth terminal and the relay terminal, the relay terminal sends a second notification message to the sixth terminal to notify the sixth terminal that the communication link between the fifth terminal and the relay terminal has been released, and the sixth terminal can perform link-related operations based on the second notification message, for example, modifying or releasing the communication link between the sixth terminal and the relay terminal.
  • the relay terminal modifies or releases the seventh link, including:
  • the relay terminal modifies or releases the seventh link based on the second information
  • the second information includes at least one of the following:
  • the seventh link supports or does not support sharing
  • the fifth terminal is a terminal that requests to initiate modification or release of the seventh link
  • the eighth terminal is a terminal that is requested by the fifth terminal to modify or release the seventh link.
  • the eighth terminal may be a terminal different from the relay terminal and related to the fifth terminal, for example, the sixth terminal or the seventh terminal.
  • the relay terminal may modify the seventh link, or, when the seventh link does not support sharing, the relay terminal may release the seventh link.
  • the link modification request message should additionally include Contains the user information ID (i.e., User Info ID) of the target 5G ProSe layer-3 terminal (i.e., Target 5G ProSe Layer-3 End UE).
  • the IP address of the target 5G ProSe layer-3 terminal may also be used, and if Ethernet-based communication is used, the MAC address of the target 5G ProSe layer-3 terminal may also be used.
  • ARP address resolution protocol
  • the relay terminal when forwarding the link modification request message, should also include the user information ID of the source 5G ProSe layer 3 terminal (i.e., Source 5G ProSe Layer-3 End UE).
  • the IP address of the source 5G ProSe layer 3 terminal may also be included.
  • Ethernet-based communication is used, the MAC address of the source 5G ProSe layer 3 terminal may also be included.
  • ARP Address Resolution Protocol
  • the 5G ProSe layer-3 terminal relay can actively release the PC5 link of the peer 5G ProSe layer-3 terminal (i.e., peer 5G ProSe Layer-3 End UE) (e.g., the sixth terminal), and can also notify the peer 5G ProSe layer-3 terminal (e.g., the sixth terminal) that the peer PC5 link (i.e., peer PC5 link) (e.g., the fifth terminal) has been released.
  • the peer 5G ProSe layer-3 terminal i.e., peer 5G ProSe Layer-3 End UE
  • the first terminal or the fifth terminal may be the source 5G ProSe layer 3 terminal
  • the second terminal or the sixth terminal may be the target 5G ProSe layer 3 terminal
  • the relay terminal may be the 5G ProSe layer 3 relay.
  • FIG. 10 is a flowchart of a link processing method provided in an embodiment of the present application.
  • the method can be executed by a first terminal, as shown in FIG. 10, and includes the following steps:
  • Step 1001 The first terminal sends a first request message to the relay terminal;
  • the first request message is used to request to establish or modify a first link
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication
  • the third terminal and the fourth terminal communicate based on the relay terminal
  • the third terminal is the first terminal or the second terminal
  • the first request message includes first information, and the first information includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second indication information is used to indicate whether the second link supports sharing or not
  • the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication.
  • the first link includes at least one of a third link and a fourth link; wherein the third link is a communication link between the first terminal and the relay terminal, and the fourth link is a communication link between the relay terminal and the second terminal;
  • the second link includes at least one of a fifth link and a sixth link; wherein the fifth link is a communication link between the third terminal and the relay terminal, and the sixth link is a communication link between the relay terminal and the fourth terminal.
  • the first link supports sharing
  • the third terminal is the first terminal
  • the third link and the fifth link are the same communication link
  • the third terminal is the second terminal
  • the fourth link and the fifth link are the same communication link
  • the third terminal is the first terminal, the third link and the fifth link are different communication links; if the third terminal is the second terminal, the fourth link and the fifth link are different communication links.
  • the second link supports sharing
  • the third terminal is the first terminal
  • the third link and the fifth link are the same communication link
  • the third terminal is the second terminal
  • the fourth link and the fifth link are the same communication link
  • the second link does not support sharing, if the third terminal is the first terminal, the third link and the fifth link are different communication links; if the third terminal is the second terminal, the fourth link and the fifth link are different communication links.
  • the information of the first terminal or the information of the second terminal includes at least one of the following:
  • An application layer identifier of the first terminal or the second terminal is an application layer identifier of the first terminal or the second terminal
  • the layer 2 identifier of the first terminal or the second terminal.
  • the QoS information includes at least one of the following:
  • Proximity service identifier ProSe ID Proximity service identifier ProSe ID
  • the first request message is a first direct link establishment request message; and the method further includes the following item:
  • the first terminal receives a first direct link establishment acceptance message from the relay terminal, wherein the first direct link establishment acceptance message includes first indication information, and the first indication information is used to indicate whether the first link supports or does not support sharing;
  • the first terminal receives a third direct link establishment accept message from the relay terminal, wherein the third direct link establishment accept message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the first request message is a second direct link modification request message; and the method further includes:
  • the first terminal receives a second direct link modification accept message from the relay terminal, wherein the second direct link modification accept message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the method further includes the following:
  • the first terminal receives a direct link establishment rejection message from the relay terminal
  • the first terminal receives a direct link modification reject message from the relay terminal
  • the direct link setup reject message includes a first cause value, and/or the direct link modification reject message includes a first cause value.
  • the first cause value is used to indicate that the link does not support sharing.
  • the method further includes the following:
  • the first terminal sends a second request message to the relay terminal, where the second request message is used to request to establish or modify the second link;
  • the first terminal receives a fourth request message from the relay terminal, where the second request message is used to request to establish or modify the second link.
  • the third terminal includes the first terminal
  • the first terminal if the first terminal serves as a source device and the fourth terminal serves as a target device, the first terminal sends a second request message to the relay terminal to request to establish or modify the second link; if the fourth terminal serves as a source device and the first terminal serves as a target device, the first terminal receives a fourth request message from the relay terminal to request to establish or modify the second link.
  • the second request message includes second indication information, where the second indication information is used to indicate whether the second link supports sharing or not;
  • the fourth request message includes second indication information, where the second indication information is used to indicate that the second link supports or does not support sharing.
  • the method further includes the following:
  • the first terminal receives a third response message in response to the second request message from the relay terminal, where the third response message includes second indication information, where the second indication information is used to indicate whether the second link supports or does not support sharing;
  • the first terminal sends a fourth response message in response to the fourth request message to the relay terminal, where the fourth response message includes second indication information, where the second indication information is used to indicate that the second link supports or does not support sharing.
  • the first terminal when the first terminal sends a second request message to the relay terminal, the first terminal can receive a third response message in response to the second request message from the relay terminal; when the first terminal receives a fourth request message from the relay terminal, the first terminal can send a fourth response message in response to the fourth request message to the relay terminal.
  • FIG. 11 is a flowchart of a link processing method provided in an embodiment of the present application.
  • the method can be executed by the second terminal, as shown in FIG. 11, including the following steps:
  • Step 1101 The second terminal performs a third operation, where the third operation includes one of the following:
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal;
  • the first direct link modification request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second direct link establishment request message or the third direct link establishment request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the information of the first terminal includes at least one of the following:
  • the layer 2 identifier of the first terminal is the same as the first terminal.
  • the QoS information includes at least one of the following:
  • Proximity service identifier ProSe ID Proximity service identifier ProSe ID
  • the method further includes the following:
  • the second terminal sends a first direct link modification accept message to the relay terminal, wherein the first direct link modification accept message includes first indication information, and the first indication information is used to indicate whether the first link supports or does not support sharing;
  • the second terminal sends a second direct link establishment acceptance message or a fourth direct link establishment message to the relay terminal.
  • the second direct link establishment acceptance message or the fourth direct link establishment acceptance message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the method further includes the following:
  • the second terminal sends a direct link modification reject message to the relay terminal
  • the second terminal sends a direct link establishment rejection message to the relay terminal
  • the direct link modification reject message and/or the direct link establishment reject message includes a first cause value.
  • the first cause value is used to indicate that the link does not support sharing.
  • the method further includes the following:
  • the second terminal sends a second request message to the relay terminal, where the second request message is used to request to establish or modify a second link;
  • the second terminal receives a fourth request message from the relay terminal, where the fourth request message is used to request to establish or modify a second link;
  • the second link is a communication link between the third terminal and the fourth terminal and is based on the relay terminal for communication.
  • the third terminal includes the second terminal
  • the second terminal if the second terminal serves as a source device and the fourth terminal serves as a target device, the second terminal sends a second request message to the relay terminal to request to establish or modify the second link; if the fourth terminal serves as a source device and the second terminal serves as a target device, the second terminal receives a fourth request message from the relay terminal to request to establish or modify the second link.
  • the second request message includes second indication information, where the second indication information is used to indicate whether the second link supports sharing or not;
  • the fourth request message includes second indication information, where the second indication information is used to indicate that the second link supports or does not support sharing.
  • the method further includes the following:
  • the second terminal receives, from the relay terminal, a third response message in response to the second request message, where the third response message includes second indication information, where the second indication information is used to indicate whether the second link supports or does not support sharing;
  • the second terminal sends a fourth response message in response to the fourth request message to the relay terminal, where the fourth response message includes second indication information, where the second indication information is used to indicate that the second link supports or does not support sharing.
  • the second terminal when the second terminal sends a second request message to the relay terminal, the second terminal can receive a third response message in response to the second request message from the relay terminal; when the second terminal receives a fourth request message from the relay terminal, the second terminal can send a fourth response message in response to the fourth request message to the relay terminal.
  • Scenario 1 As shown in Figure 8, when the source UE and the relay UE already have a PC5 link, the relay UE When a request is received from the same source UE (as shown by the dotted line in FIG8 ), and the request is used to establish a PC5 link with UE-2, a scenario may arise in which the source UE may need to share the same communication link with the relay UE, and the target of their communication is a different target UE.
  • FIG. 12a For this scenario, an implementation may be shown in FIG. 12a, including the following steps:
  • Step 1 The source UE discovers the relay UE through the U2U relay discovery process. Please refer to the relevant technology.
  • Step 2 The source UE sends a direct link establishment request (DCR) message to request the establishment of a PC5 link between the source UE and the target UE-1.
  • DCR direct link establishment request
  • the above DCR message may carry a shared link flag (i.e., shared link flag).
  • Step 3 The target UE-1 replies with a direct link establishment accept (PROSE DIRECT LINK ESTABLISHMENT ACCEPT, DCA for short) message to indicate that it agrees to establish a PC5 link with the source UE.
  • a direct link establishment accept PROSE DIRECT LINK ESTABLISHMENT ACCEPT, DCA for short
  • the DCA message may carry a shared link flag. It is worth noting that whether step 3 carries a shared link flag has nothing to do with whether the DCR message in step 2 carries a shared link flag. Even if the source UE does not carry a shared link flag in the DCR message, the target UE-1 may carry this indication information in the DCA message to indicate that the communication link between the source UE and the target UE-1 is allowed to be used as a shared link.
  • Step 4 The source UE needs to establish a communication link with the target UE-2 and discover the same relay UE through the U2U relay discovery process.
  • Step 5 The source UE sends a DCR message to the target UE-2.
  • the DCR message carries a shared link flag.
  • the source UE confirms the same relay UE in step 4, that is, a communication link has been established between the source UE and the relay UE.
  • the relay UE can, based on the shared link flag, not create a new communication link between the source UE and the relay UE, and reuse the communication link previously established between the relay UE and the source UE.
  • the relay UE can, based on the source UE, not create a new communication link between the source UE and the relay UE, and reuse the communication link previously established between the relay UE and the source UE. If the shared link flag of the existing communication link between the source UE and the relay UE is 0, that is, it is not allowed to be established/modified into a shared link, the relay UE can create a new communication link between the source UE and the relay UE based on the shared link flag.
  • Step 6a Target UE-2 agrees to establish a communication link and replies with a DCA message.
  • the DAC message carries a shared link flag.
  • Step 6b The target UE-2 does not agree to establish a communication link and replies with a rejection message.
  • the rejection message carries a rejection reason value.
  • the rejection reason value is that the shared link is not allowed to be used.
  • FIG. 12b Another implementation may be as shown in FIG. 12b, including the following steps:
  • Step 1 The source UE discovers the relay UE through the U2U relay discovery process, which can be referred to in the relevant technology.
  • Step 2 The source UE sends a DCR message to request to establish a PC5 link between the source UE and the target UE-1.
  • Step 3 The target UE-1 replies with a DCA message to indicate that it agrees to establish a PC5 link with the source UE.
  • Step 4 The source UE needs to establish a communication link with the target UE-2 and discover the same relay UE through the U2U relay discovery process.
  • steps 1 to 4 in this embodiment reference may be made to the relevant descriptions of steps 1 to 4 in the previous embodiment, and will not be repeated here.
  • Step 5 The source UE sends a direct link modification request (i.e., PROSE DIRECT LINK MODIFICATION REQUEST) message.
  • a direct link modification request i.e., PROSE DIRECT LINK MODIFICATION REQUEST
  • the source UE confirms the same relay UE in step 4, that is, a communication link has been established between the source UE and the relay UE.
  • the source UE sends a direct link modification request message.
  • the direct link modification request message may include at least one of the following: source UE information; target UE-2 information; shared link flag; QoS requirement (i.e., the above-mentioned QoS information).
  • the above-mentioned UE information may include at least one of the following: terminal identification; application layer identification; IP address or MAC address; layer 2 ID.
  • the QoS requirement is the QoS requirement between the source UE and the target UE-2, and may include at least one of the following: PQFI, PC5 QoS parameter, ProSe identifier, operation code, PC5 QoS rule.
  • Step 6 The relay UE sends a DCR message to the target UE-2 identified by the target UE-2 information based on the direct link modification request message.
  • Step 7 If the target UE-2 agrees to establish a communication link with the source UE, it replies with a DCA message.
  • the target UE-2 does not agree to establish a communication link with the source UE, it can reply with a direct link establishment rejection message.
  • Step 8a The relay UE sends a PROSE DIRECT LINK MODIFICATION ACCEPT message to agree to establish a shared link.
  • Step 8b If the target UE-2 does not agree to establish a communication link with the source UE in step 7, or the communication link between the source UE and the relay UE does not support becoming a shared link, or the relay UE is unable to modify the relevant technical communication link based on the QoS information, the relay UE may send a direct link modification reject (i.e., PROSE DIRECT LINK MODIFICATION REJECT) message to indicate that it does not agree to establish a shared link, or rejects the request of the source UE.
  • a direct link modification reject i.e., PROSE DIRECT LINK MODIFICATION REJECT
  • Scenario 2 When a source UE and a relay UE already have a PC5 link, the relay UE receives a request from another source UE (source UE-2 as shown in Figure 9) to establish a PC5 link with the target UE.
  • source UE-2 source UE-2 as shown in Figure 9
  • the target UE may need to share the same communication link with the relay UE, and the target of its communication is a different source UE. scene.
  • FIG. 13a An implementation may be shown in FIG. 13a, including the following steps:
  • Step 1 The source UE-1 discovers the relay UE through the U2U relay discovery process, which can be referred to in the related art.
  • Step 2 The source UE-1 sends a DCR message to request to establish a PC5 link between the source UE-1 and the target UE.
  • Step 3 The target UE replies with a DCA message to indicate that it agrees to establish a PC5 link with the source UE-1.
  • steps 1 to 4 in this embodiment reference may be made to the relevant descriptions of steps 1 to 4 in scenario 1, and no further details will be given here.
  • Step 4 The source UE-2 needs to establish a communication link with the target UE and discover the relay UE through the U2U relay discovery process.
  • Step 5 The source end UE-2 sends a DCR message.
  • source UE-2 does not know that a communication link already exists between the relay UE and the target UE. Therefore, source UE-2 sends a DCR message to request to establish a communication link with the target UE.
  • the DCR message carries a shared link flag.
  • Step 6a The target UE agrees to establish a communication link and replies with a DCA message.
  • the DAC message carries a shared link flag.
  • Step 6b The target UE does not agree to establish a communication link and replies with a rejection message.
  • the rejection message carries a rejection reason value.
  • the rejection reason value is that the shared link is not allowed to be used.
  • whether to use a shared link is determined by the relay UE based on the communication link between the relay UE and the target UE.
  • the relay UE can, based on the shared link flag, not create a new communication link between the target UE and the relay UE, and reuse the communication link previously established between the relay UE and the target UE. If all steps do not carry the shared link flag, the relay UE can, based on the target UE, not create a new communication link between the target UE and the relay UE, and reuse the communication link previously established between the relay UE and the target UE.
  • the relay UE can create a new communication link between the target UE and the relay UE based on the shared link flag.
  • FIG. 13b Another implementation may be as shown in FIG. 13b, including the following steps:
  • Step 1 The source UE-1 discovers the relay UE through the U2U relay discovery process, which can be referred to in the related art.
  • Step 2 The source UE-1 sends a DCR message to request to establish a PC5 link between the source UE-1 and the target UE.
  • Step 3 The target UE replies with a DCA message to indicate that it agrees to establish a PC5 link with the source UE-1.
  • steps 1 to 4 of this embodiment can refer to steps 1 to 4 of the previous embodiment.
  • the relevant instructions for step 4 are not repeated here.
  • Step 4 The source UE-2 needs to establish a communication link with the target UE and discover the relay UE through the U2U relay discovery process.
  • Step 5 The source end UE-2 sends a DCR message.
  • the DCR message carries at least one of the following:
  • Target UE-2 information Source UE-2 information; shared link flag; QoS requirements.
  • Step 6 The relay UE sends a direct link modification request message, which carries at least one of the following: source UE-2 information; shared link flag; QoS requirement.
  • Step 7 The target UE sends a direct link modification accept message.
  • the target UE can determine that it can accept the direct link modification request message based on the shared link flag and QoS requirements.
  • the link modification message received by the target UE carries new QoS requirements, and based on the carried shared link flag, the target UE knows that the relay UE needs to add a new QoS flow, which is a request from the source UE-2, that is, to establish a shared link with the source UE-2, and therefore determines that the new QoS requirement comes from the source UE-2.
  • the target UE stores the corresponding relationship between the QoS flow and the source UE, which is used to bind the PC5 QoS flow to a specific opposite UE.
  • Step 8 The relay UE replies with a DCA message.
  • the DCA message carries a shared link flag. It is worth noting that the purpose of the shared link flag is to tell the source UE-2 that a shared link is used between the relay UE and the target UE.
  • Step 9 If the target UE does not agree to establish a communication link with the source UE-2 in step 7, or the communication link between the target UE and the relay UE does not support becoming a shared link, or the relay UE cannot modify the relevant technical communication link based on the QoS information, or the target UE cannot modify the relevant technical communication link based on the QoS information, the relay UE may send a direct link modification reject (i.e., PROSE DIRECT LINK MODIFICATION REJECT) message to indicate that it does not agree to establish a shared link, or rejects the request of the source UE.
  • a direct link modification reject i.e., PROSE DIRECT LINK MODIFICATION REJECT
  • FIG. 14 is a flowchart of a link processing method provided in an embodiment of the present application.
  • the method can be executed by a relay terminal, as shown in FIG. 14, including the following steps:
  • Step 1401 If the second condition is met, the relay terminal modifies or releases a seventh link, where the seventh link is a communication link between a fifth terminal and a sixth terminal and based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal.
  • the second condition includes at least one of the following:
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is not allowed
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is no longer required
  • the relay terminal does not support a communication link with the fifth terminal or the sixth terminal;
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal lacks communication resources
  • the relay terminal is in a congested state.
  • the link processing method provided in the embodiment of the present application for a scenario where multiple terminals (such as at least two source terminals or at least two target terminals) share the same relay terminal, when the second condition is met, the relay terminal modifies or releases the seventh link. That is, the embodiment of the present application provides a method for releasing or modifying a communication link in a scenario where multiple terminals share the same relay terminal. In addition, since the relay terminal modifies or releases the seventh link when the second condition is met, this can ensure that the relay terminal can more accurately modify or release the communication link between the terminals.
  • the third request message includes at least one of the following:
  • the third instruction information is the third instruction information
  • the fifth terminal is a terminal that requests to initiate modification or release of the seventh link
  • the eighth terminal is a terminal that is requested by the fifth terminal to modify or release the seventh link
  • the third indication information is used to indicate at least one of the following:
  • the relay terminal releases the seventh link
  • the relay terminal modifies or deletes the QoS flow in the seventh link.
  • the information of the fifth terminal or the information of the eighth terminal includes at least one of the following:
  • a terminal identifier of the fifth terminal or the eighth terminal
  • the IP address of the fifth terminal or the eighth terminal is the IP address of the fifth terminal or the eighth terminal.
  • the layer 2 identifier of the fifth terminal or the eighth terminal is the same as the eighth terminal.
  • the method further comprises:
  • the relay terminal sends a first notification message to the ninth terminal
  • the first notification message is used to notify at least one of the following:
  • the tenth terminal is the fifth terminal or the sixth terminal, and the ninth terminal includes at least one terminal that communicates with the tenth terminal based on the relay terminal.
  • the relay terminal modifies or releases the seventh link, including at least one of the following:
  • the relay terminal modifies or releases the eighth link
  • the relay terminal performs a first operation
  • the relay terminal performs a second operation
  • the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication
  • the eighth link is a communication link between the relay terminal and the sixth terminal
  • the first operation includes at least one of the following:
  • the second operation includes at least one of the following: releasing all communication links related to the fifth terminal; deleting all QoS flows related to the fifth terminal.
  • the second response message includes at least one of the following: a second reason value; information of the sixth terminal.
  • the second cause value includes at least one of the following:
  • the target terminal does not exist.
  • the relay terminal modifies or releases the seventh link, including at least one of the following:
  • the relay terminal modifies or releases the communication link between the relay terminal and the fifth terminal;
  • the relay terminal deletes the PC5 context related to the sixth terminal
  • the relay terminal modifies or deletes the QoS flow between the sixth terminal and the relay terminal;
  • the relay terminal releases the communication link between the sixth terminal and the relay terminal.
  • the relay terminal modifies or releases the seventh link, including at least one of the following:
  • the relay terminal modifies or releases the communication link between the relay terminal and the sixth terminal;
  • the relay terminal deletes the PC5 context related to the fifth terminal
  • the relay terminal modifies or deletes the QoS flow between the fifth terminal and the relay terminal;
  • the relay terminal releases the communication link between the fifth terminal and the relay terminal.
  • the relay terminal modifies or releases the seventh link, including at least one of the following:
  • the relay terminal modifies or deletes the PC5 context related to the fifth terminal
  • the relay terminal modifies or deletes the QoS flow between the fifth terminal and the relay terminal;
  • the relay terminal releases the communication link between the fifth terminal and the relay terminal.
  • the method further comprises:
  • the relay terminal sends a second notification message to the sixth terminal
  • the second notification message is used to notify at least one of the following:
  • the communication link between the sixth terminal and the relay terminal is modified or released.
  • the relay terminal modifies or releases the seventh link, including:
  • the relay terminal modifies or releases the seventh link based on the second information
  • the second information includes at least one of the following:
  • the seventh link supports or does not support sharing
  • the fifth terminal is a terminal that requests to initiate modification or release of the seventh link
  • the eighth terminal is a terminal that is requested by the fifth terminal to modify or release the seventh link.
  • FIG. 15 is a flowchart of a link processing method provided in an embodiment of the present application.
  • the method can be executed by a fifth terminal, as shown in FIG. 15 , and includes the following steps:
  • Step 1501 The fifth terminal sends a third request message to the relay terminal, wherein the third request message is used to request modification or release of a seventh link, the seventh link being a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link being a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal.
  • the third request message includes at least one of the following:
  • the third instruction information is the third instruction information
  • the eighth terminal is a terminal requested by the fifth terminal to modify or release the seventh link, and the third indication information is used to indicate at least one of the following:
  • the relay terminal releases the seventh link
  • the relay terminal modifies or deletes the QoS flow in the seventh link.
  • the information of the fifth terminal or the information of the eighth terminal includes at least one of the following:
  • a terminal identifier of the fifth terminal or the eighth terminal
  • the IP address of the fifth terminal or the eighth terminal is the IP address of the fifth terminal or the eighth terminal.
  • the layer 2 identifier of the fifth terminal or the eighth terminal is the same as the eighth terminal.
  • the method further comprises:
  • the fifth terminal receives a second response message from the relay terminal, where the second response message is used to indicate a refusal to modify or delete the communication link between the relay terminal and the sixth terminal.
  • the second response message includes at least one of the following: a second reason value; information of the sixth terminal.
  • the second cause value includes at least one of the following:
  • the target terminal does not exist.
  • FIG. 16 is a flowchart of a link processing method provided in an embodiment of the present application. The method can be executed by a sixth terminal, as shown in FIG. 16, including the following steps:
  • Step 1601 The sixth terminal receives a fifth request message from the relay terminal, wherein the fifth request message is used to request release or modification of a seventh link, the seventh link being a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link being a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or the sixth terminal also communicates with the seventh terminal based on the relay terminal.
  • the relay terminal may send a fifth request message to the sixth terminal when receiving the third request message from the fifth terminal, and the sixth terminal may determine whether to release or modify the seventh link based on the fifth request message.
  • the fifth request message includes at least one of the following:
  • the fourth indication information is used to indicate at least one of the following:
  • the sixth terminal releases the communication link between the sixth terminal and the relay terminal
  • the sixth terminal modifies or deletes the QoS flow of the communication link between the sixth terminal and the relay terminal.
  • the information of the fifth terminal or the information of the relay terminal includes at least one of the following:
  • the terminal identifier of the fifth terminal or the relay terminal
  • the IP address of the fifth terminal or the relay terminal is the IP address of the fifth terminal or the relay terminal.
  • the layer 2 identifier of the fifth terminal or the relay terminal is the layer 2 identifier of the fifth terminal or the relay terminal.
  • Scenario 1 The source UE sends a request message to the relay UE, and the relay UE performs PC5 connection processing with the target UE according to the request message.
  • the PC5 link between the source UE and the relay UE is shared by the target UE-1, UE-2 and UE-3.
  • the following steps may be included:
  • Step 1 The source UE sends a request message #1 to the relay UE to request to modify or release the communication link with the target UE-1.
  • the request message #1 can be at least one of the following messages: a link release request message, for example, a proximity service direct link release request (i.e., PROSE DIRECT LINK RELEASE REQUEST) message; a link modification request message, for example, a proximity service direct link modification request message (i.e., PROSE DIRECT LINK MODIFICATION REQUEST); a dedicated request message for releasing an end-to-end relay link, for example, a newly defined PC5-S message.
  • a link release request message for example, a proximity service direct link release request (i.e., PROSE DIRECT LINK RELEASE REQUEST) message
  • a link modification request message for example, a proximity service direct link modification request message (i.e., PROSE DIRECT LINK MODIFICATION REQUEST)
  • a dedicated request message for releasing an end-to-end relay link for example, a newly defined PC5-S message.
  • the request message #1 may include at least one of the following:
  • Indication information #1 where the indication information #1 is related to the target UE-1, for example, can be used to indicate at least one of the following:
  • the relay UE releases the end-to-end (U2U) relay link between the source UE and the target UE-1;
  • the relay UE deletes the QoS flow with the target UE-1.
  • the above-mentioned indication information #1 can be the above-mentioned third indication information.
  • the indication information #1 may also include PQFI.
  • Step 2 The relay UE receives the request message #1 and performs the first target operation.
  • the first target operation may include at least one of the following:
  • the request message #1 includes information of the target UE-1, a link modification procedure or a link release procedure related to the target UE-1 is performed;
  • the first request message does not include information of the target UE-1, performing a link modification process or a link release process related to all target UEs (e.g., target UE-1 to target UE-3) that the source UE communicates with based on the relay UE;
  • the first request message includes the information of the target UE-1 and there is no PC5 link between the target UE-1 and the relay UE (i.e., it is required to modify or delete a non-existent PC5 link)
  • the relay UE i.e., it is required to modify or delete a non-existent PC5 link
  • the request response message #1 includes at least one of the following: a second cause value, information of the target UE-1.
  • the second cause value indicates one of the following: PC5 link release error; no PC5 link with the target terminal; non-existent target terminal.
  • request message #1 may be a direct link modification request message
  • response message #1 may be a direct link modification rejection message, wherein the direct link modification rejection message carries a second cause value and/or the layer 2 ID of the target UE-1, and the second cause value indicates a non-existent target terminal.
  • the above-mentioned link modification process or link release process with the target UE-1 may include step 2a, sending a request message #2 to the target UE-1, and step 2b, receiving a response message #2 from the target UE-1.
  • the performing of the link modification process or the link release process related to the target UE-1 includes at least one of the following:
  • PC5 unicast connection is a PC5 direct link in unicast mode (unicast mode PC5direct link).
  • Step 3 The relay UE sends a response message #1 to the source UE.
  • request message #1 is a PC5 link release request message, reply with a PC5 connection release accept message;
  • request message #1 is a PC5 link modification request message, reply with a PC5 link modification accept message;
  • request message #1 is a dedicated PC5-S message
  • reply with the corresponding PC5-S acceptance message If request message #1 is a dedicated PC5-S message, reply with the corresponding PC5-S acceptance message.
  • the relay UE deletes the PC5 connection with the target UE-1 and maintains the connection with the target UE-2 and the target UE-3.
  • Scenario 2 After receiving the PC5 link release request from the source UE, the relay UE sends a request message to the target UE, and the target UE performs corresponding PC5 link processing based on the request message.
  • the PC5 link between the target UE and the relay UE is shared by the source UE-1, the source UE-2 and the source UE-3.
  • the following steps may be included:
  • Step 1 The source end UE-3 sends a request message #1.
  • the above request message #1 can refer to the relevant description of the previous embodiment, which will not be repeated here.
  • Step 2 The relay UE obtains the first request message and performs the first target operation.
  • the second target operation includes at least one of the following:
  • the request message #1 includes the information of the target UE, a link modification procedure or a link release procedure related to the target UE is performed;
  • target UE information is included in the request message #1 and there is no PC5 link between the target UE and the relay UE, or if the target UE information is not included in the request message #1, perform one of the following:
  • the request response message #1 includes at least one of the following:
  • the second cause value indicates one of the following: PC5 link release error; no PC5 link with the target terminal; non-existent target terminal.
  • the above-mentioned link modification process or link release process with the target UE-1 may include step 2a, sending a request message #2 to the target UE, and step 2b, receiving a response message #2 from the target UE.
  • the relay UE may send a request message #2 to the target UE, where the request message #2 may include at least one of the following:
  • Indication information #2 where the indication information #2 is related to the source end UE-3, for example, can be used to indicate at least one of the following:
  • the target UE releases the end-to-end U2U relay link with the source UE-3;
  • the target UE deletes the QoS flow with the source UE-3.
  • the performing of the link modification process or link release process related to the target UE may include at least one of the following:
  • Step 3 The relay UE sends a response message #1 to the source UE-3.
  • the link processing method provided in the embodiment of the present application can be executed by a link processing device, or a control module in the link processing device for executing the link processing method.
  • the link processing device provided in the embodiment of the present application is described by taking the link processing device executing the link processing method as an example.
  • FIG. 18 is a structural diagram of a link processing device provided in an embodiment of the present application.
  • the link processing device can be applied to a relay terminal.
  • the link processing device 1800 includes:
  • a first acquisition module 1801 is used to acquire first information
  • a first processing module 1802 configured to establish or modify a first link based on the first information
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal;
  • the first information includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second indication information is used to indicate whether the second link supports sharing or not
  • the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication.
  • the first link includes at least one of a third link and a fourth link; wherein the third link is a communication link between the first terminal and the relay terminal, and the fourth link is a communication link between the relay terminal and the second terminal;
  • the second link includes at least one of a fifth link and a sixth link; wherein the fifth link is a communication link between the third terminal and the relay terminal, and the sixth link is a communication link between the relay terminal and the fourth terminal.
  • the first link supports sharing
  • the third terminal is the first terminal
  • the third link and the fifth link are the same communication link
  • the third terminal is the second terminal
  • the fourth link and the fifth link are the same communication link
  • the third terminal is the first terminal, the third link and the fifth link are different communication links; if the third terminal is the second terminal, the fourth link and the fifth link are different communication links.
  • the second link supports sharing
  • the third terminal is the first terminal
  • the third link and the fifth link are the same communication link
  • the third terminal is the second terminal
  • the fourth link and the fifth link are the same communication link
  • the second link does not support sharing, if the third terminal is the first terminal, the third link and the fifth link are different communication links; if the third terminal is the second terminal, the fourth link and the fifth link are different communication links.
  • the information of the first terminal or the information of the second terminal includes at least one of the following:
  • An application layer identifier of the first terminal or the second terminal is an application layer identifier of the first terminal or the second terminal
  • the layer 2 identifier of the first terminal or the second terminal.
  • the QoS information includes at least one of the following:
  • Proximity service identifier ProSe ID Proximity service identifier ProSe ID
  • the first processing module is specifically configured to:
  • the third link is established, wherein the fourth link and the fifth link are the same communication link.
  • the first acquisition module is specifically used to:
  • the first request message is used to request to establish or modify the first link.
  • the first request message is a first direct link establishment request message.
  • the device further comprises:
  • a first sending module is configured to send a first direct link modification request message to the second terminal based on the first direct link establishment request message after receiving the first direct link establishment request message, where the first direct link modification request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the device further comprises at least one of the following:
  • a first receiving module configured to receive a first direct link modification acceptance message sent by the second terminal
  • a second sending module configured to send a first direct link establishment acceptance message to the first terminal
  • the first direct link modification accept message includes first indication information, and/or the first direct link establishment accept message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the device further comprises:
  • a third sending module is configured to send a second direct link establishment request message to the second terminal based on the first direct link establishment request message, where the second direct link establishment request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the device further comprises at least one of the following:
  • a second receiving module configured to receive a second direct link establishment acceptance message from the second terminal
  • a fourth sending module configured to send a third direct link establishment acceptance message to the first terminal
  • the second direct link establishment accept message includes first indication information, and/or the third direct link establishment accept message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the first request message is a second direct link modification request message.
  • the device further comprises:
  • a fifth sending module configured to send, after receiving the second direct link modification request message, a third direct link establishment request message to the second terminal based on the second direct link modification request message.
  • the third direct link establishment request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not.
  • the device further comprises at least one of the following:
  • a third receiving module configured to receive a fourth direct link establishment acceptance message sent by the second terminal
  • a sixth sending module configured to send a second direct link modification acceptance message to the first terminal
  • the fourth direct link establishment acceptance message includes first indication information, and/or the second direct link modification acceptance message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the device further comprises:
  • a second processing module configured to refuse to establish the first link if a first condition is met
  • the first condition includes at least one of the following:
  • the relay terminal receives a direct link establishment rejection message
  • the relay terminal receives a direct link modification rejection message
  • the first link or the second link does not support sharing
  • the relay terminal cannot modify the communication link between the relay terminal and the third terminal based on the QoS information.
  • the direct link establishment reject message includes a first cause value
  • the direct link modification reject message includes a first cause value
  • the first cause value is used to indicate that the link does not support sharing.
  • the device further comprises:
  • a fourth receiving module configured to receive a second request message
  • the second request message is used to request to establish or modify the second link.
  • the second request message includes second indication information, where the second indication information is used to indicate whether the second link supports sharing or not.
  • the device further comprises:
  • the fifth receiving module is used to receive a first response message used to respond to the second request message, where the first response message includes second indication information, and the second indication information is used to indicate that the second link supports or does not support sharing.
  • the device further comprises:
  • the third processing module is used to modify or release the seventh link when the second condition is met, where the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or The sixth terminal also communicates with the seventh terminal based on the relay terminal;
  • the second condition includes at least one of the following:
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is not allowed
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is no longer required
  • the relay terminal does not support a communication link with the fifth terminal or the sixth terminal;
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal lacks communication resources
  • the relay terminal is in a congested state.
  • the third request message includes at least one of the following:
  • the third instruction information is the third instruction information
  • the fifth terminal is a terminal that requests to initiate modification or release of the seventh link
  • the eighth terminal is a terminal that is requested by the fifth terminal to modify or release the seventh link
  • the third indication information is used to indicate at least one of the following:
  • the relay terminal releases the seventh link
  • the relay terminal modifies or deletes the QoS flow in the seventh link.
  • the information of the fifth terminal or the information of the eighth terminal includes at least one of the following:
  • a terminal identifier of the fifth terminal or the eighth terminal
  • the IP address of the fifth terminal or the eighth terminal is the IP address of the fifth terminal or the eighth terminal.
  • the layer 2 identifier of the fifth terminal or the eighth terminal is the same as the eighth terminal.
  • the device further comprises:
  • a seventh sending module used to send a first notification message to a ninth terminal
  • the first notification message is used to notify at least one of the following:
  • the tenth terminal is the fifth terminal or the sixth terminal, and the ninth terminal includes at least one terminal that communicates with the tenth terminal based on the relay terminal.
  • the third processing module is specifically used for at least one of the following:
  • the third request message includes the information of the sixth terminal, if the relay terminal is connected to the sixth terminal If the terminal has an eighth link, modify or release the eighth link;
  • the third request message includes the information of the sixth terminal, if there is no eighth link between the relay terminal and the sixth terminal, performing a first operation;
  • the third request message does not include the information of the sixth terminal or includes the information of a default terminal, performing a second operation
  • the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication
  • the eighth link is a communication link between the relay terminal and the sixth terminal
  • the first operation includes at least one of the following:
  • the second operation includes at least one of the following: releasing all communication links related to the fifth terminal; deleting all QoS flows related to the fifth terminal.
  • the second response message includes at least one of the following: a second reason value; information of the sixth terminal.
  • the second cause value includes at least one of the following:
  • the target terminal does not exist.
  • the third processing module is specifically used for at least one of the following:
  • the communication link between the sixth terminal and the relay terminal is released.
  • the third processing module is specifically used for at least one of the following:
  • the communication link between the fifth terminal and the relay terminal is released.
  • the third processing module is specifically used for at least one of the following:
  • the communication link between the fifth terminal and the relay terminal is released.
  • the device further comprises:
  • An eighth sending module configured to send a second notification message to the sixth terminal
  • the second notification message is used to notify at least one of the following:
  • the communication link between the sixth terminal and the relay terminal is modified or released.
  • the third processing module is specifically used to:
  • the second information includes at least one of the following:
  • the seventh link supports or does not support sharing
  • the fifth terminal is a terminal that requests to initiate modification or release of the seventh link
  • the eighth terminal is a terminal that is requested by the fifth terminal to modify or release the seventh link.
  • the link processing device in the embodiment of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip.
  • the electronic device can be a terminal, or it can be other devices other than a terminal.
  • the terminal can include but is not limited to the types of terminal 11 listed above, and other devices can be servers, network attached storage (NAS), etc., which are not specifically limited in the embodiment of the present application.
  • the link processing device provided in the embodiment of the present application can implement each process implemented by the method embodiment of Figure 7 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • Figure 19 is a structural diagram of a link processing device provided in an embodiment of the present application, and the link processing device can be applied to a first terminal.
  • the link processing device 1900 includes:
  • the first sending module 1901 is used to send a first request message to the relay terminal;
  • the first request message is used to request to establish or modify a first link
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication
  • the third terminal and the fourth terminal communicate based on the relay terminal
  • the third terminal is the first terminal or the second terminal
  • the first request message includes first information, and the first information includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second indication information is used to indicate whether the second link supports sharing or not
  • the second link is a communication link between the third terminal and the fourth terminal and based on the relay terminal for communication.
  • the first link includes at least one of a third link and a fourth link; wherein the third link is a communication link between the first terminal and the relay terminal, and the fourth link is a communication link between the relay terminal and the second terminal;
  • the second link includes at least one of a fifth link and a sixth link; wherein the fifth link is a communication link between the third terminal and the relay terminal, and the sixth link is a communication link between the relay terminal and the fourth terminal.
  • the first link supports sharing
  • the third terminal is the first terminal
  • the third link and the fifth link are the same communication link
  • the third terminal is the second terminal
  • the fourth link and the fifth link are the same communication link
  • the third terminal is the first terminal, the third link and the fifth link are different communication links; if the third terminal is the second terminal, the fourth link and the fifth link are different communication links.
  • the second link supports sharing
  • the third terminal is the first terminal
  • the third link and the fifth link are the same communication link
  • the third terminal is the second terminal
  • the fourth link and the fifth link are the same communication link
  • the second link does not support sharing, if the third terminal is the first terminal, the third link and the fifth link are different communication links; if the third terminal is the second terminal, the fourth link and the fifth link are different communication links.
  • the information of the first terminal or the information of the second terminal includes at least one of the following:
  • An application layer identifier of the first terminal or the second terminal is an application layer identifier of the first terminal or the second terminal
  • the layer 2 identifier of the first terminal or the second terminal.
  • the QoS information includes at least one of the following:
  • Proximity service identifier ProSe ID Proximity service identifier ProSe ID
  • the first request message is a first direct link establishment request message; and the device further includes a first receiving module, specifically configured to:
  • a first direct link establishment acceptance message is received from the relay terminal, wherein the first direct link establishment acceptance message
  • the message includes first indication information, where the first indication information is used to indicate whether the first link supports sharing or not;
  • a third direct link establishment accept message is received from the relay terminal, wherein the third direct link establishment accept message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the first request message is a second direct link modification request message; and the device further includes a second sending module, specifically configured to:
  • a second direct link modification accept message is received from the relay terminal, wherein the second direct link modification accept message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the direct link setup reject message includes a first cause value, and/or the direct link modification reject message includes a first cause value.
  • the first cause value is used to indicate that the link does not support sharing.
  • the device further comprises the following:
  • a fourth sending module configured to send a second request message to the relay terminal, where the second request message is used to request to establish or modify the second link;
  • the fourth receiving module is used to receive a fourth request message from the relay terminal, wherein the second request message is used to request to establish or modify the second link.
  • the second request message includes second indication information, where the second indication information is used to indicate whether the second link supports sharing or not;
  • the fourth request message includes second indication information, where the second indication information is used to indicate that the second link supports or does not support sharing.
  • the device further comprises the following:
  • a fifth receiving module configured to receive a third response message in response to the second request message from the relay terminal, wherein the third response message includes second indication information, and the second indication information is used to indicate whether the second link supports or does not support sharing;
  • a sixth receiving module is used to send a fourth response message in response to the fourth request message to the relay terminal, where the fourth response message includes second indication information, and the second indication information is used to indicate whether the second link supports or does not support sharing.
  • the link processing device in the embodiment of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip.
  • the electronic device can be a terminal, or it can be other devices other than a terminal.
  • the terminal can include but is not limited to the types of terminal 11 listed above, and other devices can be servers, network attached storage (NAS), etc., which are not specifically limited in the embodiment of the present application.
  • the link processing device provided in the embodiment of the present application can implement each process implemented by the method embodiment of FIG10 , and The same technical effect is achieved and will not be described here to avoid repetition.
  • Figure 20 is a structural diagram of a link processing device provided in an embodiment of the present application, and the link processing device can be applied to a second terminal.
  • the link processing device 2000 includes:
  • the execution module 2001 is used to execute a third operation, where the third operation includes one of the following:
  • the first link is a communication link between the first terminal and the second terminal and based on the relay terminal for communication, the third terminal and the fourth terminal communicate based on the relay terminal, and the third terminal is the first terminal or the second terminal;
  • the first direct link modification request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the second direct link establishment request message or the third direct link establishment request message includes at least one of the following:
  • the first indication information is used to indicate whether the first link supports sharing or not
  • the information of the first terminal includes at least one of the following:
  • the layer 2 identifier of the first terminal is the same as the first terminal.
  • the QoS information includes at least one of the following:
  • Proximity service identifier ProSe ID Proximity service identifier ProSe ID
  • the device further includes a first sending module, which is specifically used for one of the following:
  • the first direct link modification accept message includes first indication information, and the first indication information is used to indicate whether the first link supports or does not support sharing;
  • the second direct link setup accept message or the fourth direct link setup accept message includes first indication information, and the first indication information is used to indicate that the first link supports or does not support sharing.
  • the device further includes a second sending module, which is specifically used for one of the following:
  • the direct link modification reject message and/or the direct link establishment reject message includes a first cause value.
  • the first cause value is used to indicate that the link does not support sharing.
  • the device further comprises the following:
  • a third sending module configured to send a second request message to the relay terminal, where the second request message is used to request to establish or modify a second link;
  • a first receiving module configured to receive a fourth request message from the relay terminal, where the fourth request message is used to request to establish or modify a second link;
  • the second link is a communication link between the third terminal and the fourth terminal and is based on the relay terminal for communication.
  • the second request message includes second indication information, where the second indication information is used to indicate whether the second link supports sharing or not;
  • the fourth request message includes second indication information, where the second indication information is used to indicate that the second link supports or does not support sharing.
  • the device further comprises the following:
  • a second receiving module configured to receive a third response message in response to the second request message from the relay terminal, wherein the third response message includes second indication information, and the second indication information is used to indicate whether the second link supports or does not support sharing;
  • a fourth sending module is used to send a fourth response message in response to the fourth request message to the relay terminal, wherein the fourth response message includes second indication information, and the second indication information is used to indicate whether the second link supports sharing or not.
  • the link processing device in the embodiment of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip.
  • the electronic device can be a terminal, or it can be other devices other than a terminal.
  • the terminal can include but is not limited to the types of terminal 11 listed above, and other devices can be servers, network attached storage (NAS), etc., which are not specifically limited in the embodiment of the present application.
  • the link processing device provided in the embodiment of the present application can implement the various processes implemented by the method embodiment of Figure 11 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the link processing device 2100 includes:
  • the processing module 2101 is configured to modify or release the seventh link when the second condition is met, wherein the seventh link is a communication link between the fifth terminal and the sixth terminal and based on the relay terminal for communication, or the seventh link is a communication link between the fifth terminal or the sixth terminal and the relay terminal, and the fifth terminal or The sixth terminal also communicates with the seventh terminal based on the relay terminal;
  • the second condition includes at least one of the following:
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is not allowed
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal is no longer required
  • the relay terminal does not support a communication link with the fifth terminal or the sixth terminal;
  • the communication link between the relay terminal and the fifth terminal or the sixth terminal lacks communication resources
  • the relay terminal is in a congested state.
  • the third request message includes at least one of the following:
  • the third instruction information is the third instruction information
  • the fifth terminal is a terminal that requests to initiate modification or release of the seventh link
  • the eighth terminal is a terminal that is requested by the fifth terminal to modify or release the seventh link
  • the third indication information is used to indicate at least one of the following:
  • the relay terminal releases the seventh link
  • the relay terminal modifies or deletes the QoS flow in the seventh link.
  • the information of the fifth terminal or the information of the eighth terminal includes at least one of the following:
  • a terminal identifier of the fifth terminal or the eighth terminal
  • the IP address of the fifth terminal or the eighth terminal is the IP address of the fifth terminal or the eighth terminal.
  • the layer 2 identifier of the fifth terminal or the eighth terminal is the same as the eighth terminal.
  • the device further comprises:
  • a first sending module used to send a first notification message to a ninth terminal
  • the first notification message is used to notify at least one of the following:
  • the tenth terminal is the fifth terminal or the sixth terminal, and the ninth terminal includes at least one terminal that communicates with the tenth terminal based on the relay terminal.

Landscapes

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

Abstract

本申请公开了一种链路处理方法、装置及终端,属于通信技术领域,本申请实施例的链路处理方法包括:中继终端获取第一信息;中继终端基于第一信息,建立或修改第一链路;其中,第一链路为第一终端与第二终端之间且基于中继终端进行通信的通信链路,第三终端与第四终端基于中继终端进行通信,第三终端为第一终端或者第二终端;第一信息包括如下至少一项:第三终端与中继终端之间的通信链路的信息;第一指示信息;第二指示信息;第一终端的信息;第二终端的信息;QoS信息;第一指示信息用于指示第一链路支持或不支持共享,第二指示信息用于指示第二链路支持或不支持共享,第二链路为第三终端与第四终端之间且基于中继终端进行通信的通信链路。

Description

链路处理方法、装置及终端
相关申请的交叉引用
本申请主张在2023年01月09日在中国提交的中国专利申请No.202310029824.0的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种链路处理方法、装置及终端。
背景技术
相关技术中引入了端到端(UE(User Equipment)to UE,U2U)中继通信,即源端UE与目标UE通过中继UE进行通信。在U2U中继通信场景下,可能存在源端UE需要通过中继UE与多个目标UE通信的情况或者多个源端UE需要通过中继UE与同一目标UE通信的情况。然而,在相关技术中,对于在U2U中继通信场景下如何建立源端UE与目标UE之间的中继链路(即源端UE与目标UE之间且通过中继UE通信的通信链路),还没有对应的解决方案。
发明内容
本申请实施例提供一种链路处理方法、装置及终端,能够在U2U中继通信场景下提供一种源端UE与目标UE之间且基于中继终端进行通信的通信链路的建立方式。
第一方面,提供了一种链路处理方法,该方法包括:
中继终端获取第一信息;
所述中继终端基于所述第一信息,建立或修改第一链路;
其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一信息包括如下至少一项:
所述第三终端与所述中继终端之间的通信链路的信息;
第一指示信息;
第二指示信息;
所述第一终端的信息;
所述第二终端的信息;
服务质量QoS信息;
其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
第二方面,提供了一种链路处理装置,应用于中继终端,该装置包括:
第一获取模块,用于获取第一信息;
第一处理模块,用于基于第一信息,建立或修改第一链路;
其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一信息包括如下至少一项:
所述第三终端与所述中继终端之间的通信链路的信息;
第一指示信息;
第二指示信息;
所述第一终端的信息;
所述第二终端的信息;
服务质量QoS信息;
其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
第三方面,提供了一种链路处理方法,该方法包括:
第一终端向中继终端发送第一请求消息;
其中,所述第一请求消息用于请求建立或修改第一链路,所述第一链路为所述第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一请求消息包括第一信息,所述第一信息包括如下至少一项:
所述第三终端与所述中继终端之间的通信链路的信息;
第一指示信息;
第二指示信息;
所述第一终端的信息;
所述第二终端的信息;
服务质量QoS信息;
其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
第四方面,提供了一种链路处理装置,应用于第一终端,该装置包括:
第一发送模块,用于向中继终端发送第一请求消息;
其中,所述第一请求消息用于请求建立或修改第一链路,所述第一链路为所述第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一请求消息包括第一信息,所述第一信息包括如下至少一项:
所述第三终端与所述中继终端之间的通信链路的信息;
第一指示信息;
第二指示信息;
所述第一终端的信息;
所述第二终端的信息;
服务质量QoS信息;
其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
第五方面,提供了一种链路处理方法,该方法包括:
第二终端执行第三操作,所述第三操作包括如下一项:
从中继终端接收第一直接链路修改请求消息,用于请求修改第一链路;
从中继终端接收第二直接链路建立请求消息或者第三直接链路建立请求消息,用于请求建立第一链路;
其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一直接链路修改请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
服务质量QoS信息;
所述第一终端的信息;
所述第二直接链路建立请求消息或者第三直接链路建立请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
所述第一终端的信息。
第六方面,提供了一种链路处理装置,应用于第二终端,该装置包括:
执行模块,用于执行第三操作,所述第三操作包括如下一项:
从中继终端接收第一直接链路修改请求消息,用于请求修改第一链路;
从中继终端接收第二直接链路建立请求消息或者第三直接链路建立请求消息,用于请求建立第一链路;
其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信 链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一直接链路修改请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
服务质量QoS信息;
所述第一终端的信息;
所述第二直接链路建立请求消息或者第三直接链路建立请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
所述第一终端的信息。
第七方面,提供了一种链路处理方法,该方法包括:
在满足第二条件的情况下,中继终端修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
其中,所述第二条件包括如下至少一项:
接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;
所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;
所述中继终端处于拥塞状态。
第八方面,提供了一种链路处理装置,应用于中继终端,该装置包括:
处理模块,用于在满足第二条件的情况下,修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
其中,所述第二条件包括如下至少一项:
接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;
所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;
所述中继终端处于拥塞状态。
第九方面,提供了一种链路处理方法,该方法包括:
第五终端向中继终端发送第三请求消息,其中,所述第三请求消息用于请求修改或释 放第七链路,所述第七链路为所述第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
第十方面,提供了一种链路处理装置,应用于第五终端,该装置包括:
第一发送模块,用于向中继终端发送第三请求消息,其中,所述第三请求消息用于请求修改或释放第七链路,所述第七链路为所述第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
第十一方面,提供了一种链路处理方法,该方法包括:
第六终端从中继终端接收第五请求消息,其中,所述第五请求消息用于请求释放或修改第七链路,所述第七链路为第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
第十二方面,提供了一种链路处理装置,应用于第六终端,该装置包括:
第一接收模块,用于从中继终端接收第五请求消息,其中,所述第五请求消息用于请求释放或修改第七链路,所述第七链路为第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
第十三方面,提供了一种终端,该终端包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤,或者实现如第三方面所述的方法的步骤,或者实现如第五方面所述的方法的步骤,或者实现如第七方面所述的方法的步骤,或者实现如第九方面所述的方法的步骤,或者实现如第十一方面所述的方法的步骤。
第十四方面,提供了一种终端,包括处理器及通信接口,其中,当所述终端为中继终端时,所述处理器用于获取第一信息,并基于第一信息,建立或修改第一链路;其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;所述第一信息包括如下至少一项:所述第三终端与所述中继终端之间的通信链路的信息;第一指示信息;第二指示信息;所述第一终端的信息;所述第二终端的信息;服务质量QoS信息;其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路;
或者,当所述终端为第一终端时,所述通信接口用于向中继终端发送第一请求消息; 其中,所述第一请求消息用于请求建立或修改第一链路,所述第一链路为所述第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;所述第一请求消息包括第一信息,所述第一信息包括如下至少一项:所述第三终端与所述中继终端之间的通信链路的信息;第一指示信息;第二指示信息;所述第一终端的信息;所述第二终端的信息;服务质量QoS信息;其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路;
或者,当所述终端为第二终端时,所述通信接口用于执行第三操作,所述第三操作包括如下一项:从中继终端接收第一直接链路修改请求消息,用于请求修改第一链路;从中继终端接收第二直接链路建立请求消息或者第三直接链路建立请求消息,用于请求建立第一链路;其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;所述第一直接链路修改请求消息包括如下至少一项:第一指示信息,用于指示所述第一链路支持或不支持共享;服务质量QoS信息;所述第一终端的信息;所述第二直接链路建立请求消息或者第三直接链路建立请求消息包括如下至少一项:第一指示信息,用于指示所述第一链路支持或不支持共享;所述第一终端的信息;
或者,当所述终端为中继终端时,所述处理器用于在满足第二条件的情况下,修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
其中,所述第二条件包括如下至少一项:接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;所述中继终端处于拥塞状态;
当所述终端为第五终端时,所述通信接口用于向中继终端发送第三请求消息,其中,所述第三请求消息用于请求修改或释放第七链路,所述第七链路为所述第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
或者,当所述终端为第六终端时,所述通信接口用于从中继终端接收第五请求消息,其中,所述第五请求消息用于请求释放或修改第七链路,所述第七链路为第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五 终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
第十五方面,提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤,或者实现如第三方面所述的方法的步骤,或者实现如第五方面所述的方法的步骤,或者实现如第七方面所述的方法的步骤,或者实现如第九方面所述的方法的步骤,或者实现如第十一方面所述的方法的步骤。
第十六方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法的步骤,或者实现如第三方面所述的方法的步骤,或者实现如第五方面所述的方法的步骤,或者实现如第七方面所述的方法的步骤,或者实现如第九方面所述的方法的步骤,或者实现如第十一方面所述的方法的步骤。
第十七方面,提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤,或者实现如第三方面所述的方法的步骤,或者实现如第五方面所述的方法的步骤,或者实现如第七方面所述的方法的步骤,或者实现如第九方面所述的方法的步骤,或者实现如第十一方面所述的方法的步骤。
在本申请实施例中,中继终端获取第一信息,并基于第一信息,建立或修改第一链路;其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端,所述第一信息包括如下至少一项:所述第三终端与所述中继终端之间的通信链路的信息;第一指示信息;第二指示信息;所述第一终端的信息;所述第二终端的信息;QoS信息;其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路,也即本申请实施例提供了一种在U2U中继通信场景下源端UE与目标UE之间且基于中继终端进行通信的通信链路的建立方式,此外,由于中继UE基于第一信息建立或修改第一链路,这样可以保证中继终端可以较为准确的建立源端UE与目标UE之间且基于中继终端进行通信的通信链路。
附图说明
图1是本申请实施例可应用的一种无线通信系统的框图之一;
图2是本申请实施例可应用的一种无线通信系统的框图之二;
图3是本申请实施例可应用的一种无线通信系统的框图之三;
图4是本申请实施例提供的在模式A下的5G ProSe U2U中继发现流程的流程图;
图5是本申请实施例提供的在模式B下的5G ProSe U2U中继发现流程的流程图;
图6是本申请实施例提供的通过5G ProSe L3 U2U中继进行通信的流程图;
图7是本申请实施例提供的一种链路处理方法的流程图之一;
图8是本申请实施例提供可应用的一种无线通信系统的框图之四;
图9是本申请实施例提供可应用的一种无线通信系统的框图之五;
图10是本申请实施例提供的一种链路处理方法的流程图之二;
图11是本申请实施例提供的一种链路处理方法的流程图之三;
图12a是本申请实施例提供的一种链路处理方法的流程图之四;
图12b是本申请实施例提供的一种链路处理方法的流程图之五;
图13a是本申请实施例提供的一种链路处理方法的流程图之六;
图13b是本申请实施例提供的一种链路处理方法的流程图之七;
图14是本申请实施例提供的一种链路处理方法的流程图之八;
图15是本申请实施例提供的一种链路处理方法的流程图之九;
图16是本申请实施例提供的一种链路处理方法的流程图之十;
图17a是本申请实施例提供的一种链路处理方法的流程图之十一;
图17b是本申请实施例提供的一种链路处理方法的流程图之十二;
图18是本申请实施例提供的一种链路处理装置的结构图之一;
图19是本申请实施例提供的一种链路处理装置的结构图之二;
图20是本申请实施例提供的一种链路处理装置的结构图之三;
图21是本申请实施例提供的一种链路处理装置的结构图之四;
图22是本申请实施例提供的一种链路处理装置的结构图之五;
图23是本申请实施例提供的一种链路处理装置的结构图之六;
图24是本申请实施例提供的通信设备的结构图;
图25是本申请实施例提供的终端的结构图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”所区别的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”一般表示前后关联对象是一种“或”的关系。
值得指出的是,本申请实施例所描述的技术不限于长期演进型(Long Term Evolution, LTE)/LTE的演进(LTE-Advanced,LTE-A)系统,还可用于其他无线通信系统,诸如码分多址(Code Division Multiple Access,CDMA)、时分多址(Time Division Multiple Access,TDMA)、频分多址(Frequency Division Multiple Access,FDMA)、正交频分多址(Orthogonal Frequency Division Multiple Access,OFDMA)、单载波频分多址(Single-carrier Frequency Division Multiple Access,SC-FDMA)和其他系统。本申请实施例中的术语“系统”和“网络”常被可互换地使用,所描述的技术既可用于以上提及的系统和无线电技术,也可用于其他系统和无线电技术。以下描述出于示例目的描述了新空口(New Radio,NR)系统,并且在以下大部分描述中使用NR术语,但是这些技术也可应用于NR系统应用以外的应用,如第6代(6th Generation,6G)通信系统。
图1示出本申请实施例可应用的一种无线通信系统的框图。无线通信系统包括终端11和网络侧设备12。其中,终端11可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)或称为笔记本电脑、个人数字助理(Personal Digital Assistant,PDA)、掌上电脑、上网本、超级移动个人计算机(ultra-mobile personal computer,UMPC)、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴式设备(Wearable Device)、车载设备(Vehicle User Equipment,VUE)、行人终端(Pedestrian User Equipment,PUE)、智能家居(具有无线通信功能的家居设备,如冰箱、电视、洗衣机或者家具等)、游戏机、个人计算机(personal computer,PC)、柜员机或者自助机等终端侧设备,可穿戴式设备包括:智能手表、智能手环、智能耳机、智能眼镜、智能首饰(智能手镯、智能手链、智能戒指、智能项链、智能脚镯、智能脚链等)、智能腕带、智能服装等。需要说明的是,在本申请实施例并不限定终端11的具体类型。网络侧设备12可以包括接入网设备或核心网设备,其中,接入网设备也可以称为无线接入网设备、无线接入网(Radio Access Network,RAN)、无线接入网功能或无线接入网单元。接入网设备可以包括基站、无线局域网(Wireless Local Area Networks,WLAN)接入点或WiFi节点等,基站可被称为节点B、演进节点B(eNB)、接入点、基收发机站(Base Transceiver Station,BTS)、无线电基站、无线电收发机、基本服务集(Basic Service Set,BSS)、扩展服务集(Extended Service Set,ESS)、家用B节点、家用演进型B节点、发送接收点(Transmission Receiving Point,TRP)或所述领域中其他某个合适的术语,只要达到相同的技术效果,所述基站不限于特定技术词汇,需要说明的是,在本申请实施例中仅以NR系统中的基站为例进行介绍,并不限定基站的具体类型。核心网设备可以包含但不限于如下至少一项:核心网节点、核心网功能、移动管理实体(Mobility Management Entity,MME)、接入移动管理功能(Access and Mobility Management Function,AMF)、会话管理功能(Session Management Function,SMF)、用户平面功能(User Plane Function,UPF)、策略控制功能(Policy Control Function,PCF)、策略与计费规则功能单元(Policy and Charging Rules Function,PCRF)、边缘应用服务发现功能(Edge Application Server Discovery Function,EASDF)、统一数据管理(Unified Data  Management,UDM),统一数据仓储(Unified Data Repository,UDR)、归属用户服务器(Home Subscriber Server,HSS)、集中式网络配置(Centralized network configuration,CNC)、网络存储功能(Network Repository Function,NRF),网络开放功能(Network Exposure Function,NEF)、本地NEF(Local NEF,或L-NEF)、绑定支持功能(Binding Support Function,BSF)、应用功能(Application Function,AF)等。需要说明的是,在本申请实施例中仅以NR系统中的核心网设备为例进行介绍,并不限定核心网设备的具体类型。
为了方便理解,以下对本申请实施例涉及的一些内容进行说明:
一、端到端(UE to UE,U2U)中继通信。
U2U中继通信可以是指源端UE与目标UE通过中继UE进行通信。对于该通信场景,可能存在共享PC5链路(link)的需求,例如,多个目标UE共享源UE与中继UE之间的PC5 link,如图2所示,或者,多个源UE共享中继UE与目标UE之间的PC5 link,如图3所示。然而,上述场景潜在存在特定U2U中继(relay)链路释放,导致其他U2U relay链路被释放的潜在风险。
二、5G ProSe直接链路释放流程。
在收到邻近服务(Proximity Services,ProSe)直接链路释放请求(即PROSE DIRECT LINK RELEASE REQUEST)消息后,目标UE应停止该5G PROSE直接链路的所有运行计时器,并中止该5G PROSE直接链路上任何其他正在进行的PC5信令协议程序。
如果PROSE DIRECT LINK RELEASE REQUEST消息中的PC5信令协议原因值为#13“拥塞情况”,并且在PROSE DIRECT LINK RELEASE REQUEST消息中提供了回退定时器值,目标UE将启动与发起终端层二ID关联的定时器T5088,并将其值设置为提供的定时器值。
目标UE应回应ProSe直接链路释放接受(即PROSE DIRECT LINK RELEASE ACCEPT)消息。目标UE需要在PROSE DIRECT LINK RELEASE ACCEPT消息中包含新的2个最低有效位(Least Significant Bit,LSB)的KNRP ID。消息发送后,目标UE将通过以下行为释放5G ProSe直接链路:
a)连同PC5链路标识符一起通知下层5G ProSe直连链路已经释放;以及
b)在特定时间后删除5G ProSe直接链路的5G ProSe直接链路上下文。
目标UE将从PROSE DIRECT LINK RELEASE REQUEST消息中接收到的新的2个LSB的KNRP ID和PROSE DIRECT LINK RELEASE ACCEPT消息中包含的新的2个LSB的KNRP ID中形成新的KNRP ID。目标UE将用新的KNRP ID替换相关技术的KNRP ID。目标UE可以在ProSeE直接链接建立请求(即PROSE DIRECT LINK ESTABLISHMENT REQUEST)消息中包含新的KNRP ID。
其中,上述PROSE DIRECT LINK RELEASE REQUEST消息的内容可以如表1所示。对于回退值,当UE需要为拥塞控制目的向另一个对端UE指示回退定时器时,终端可以包括该IE。
表1 PROSE DIRECT LINK RELEASE REQUEST消息内容
三、U2U中继发现机制。
在模式A(即Model A)下的5G ProSe U2U中继发现流程可以如图4所示,在模式B(即Model B)下的5G ProSe U2U中继发现流程可以如图5所示。
四、使用层三(Layer3,L3)U2U中继通信的过程。
示例性的,通过5G ProSe L3 U2U中继进行通信的流程可以如图6所示。
五、5G ProSe直接链路修改流程的作用。
5G ProSe直接链路修改流程的目的是将相关技术的ProSe直接链路修改为:
a)在相关技术5G ProSe直接链路上添加新的PC5服务质量(Quality of Service)流;
b)修改相关技术的PC5 QoS流,用于更新相关技术PC5 QoS流的PC5 QoS参数;
c)修改相关技术的PC5 QoS流,以便将新的散文应用程序与相关技术的PC5 QoS流相关联;
d)修改相关技术的PC5 QoS流,从相关技术PC5 QoS流中删除关联的ProSe应用程序;或者
e)从相关技术的5G ProSe直接链路中删除相关技术的PC5 QoS流。
在此过程中,发送ProSe直接链路修改请求(即PROSE DIRECT LINK MODIFICATION REQUEST)消息的UE称为源端UE,另一个UE称为目标UE。
下面结合附图,通过一些实施例及其应用场景对本申请实施例提供的链路处理方法进行详细地说明。
请参见图7,图7是本申请实施例提供的一种链路处理方法的流程图,该方法可以由中继终端执行,如图7所示,包括以下步骤:
步骤701、中继终端获取第一信息;
步骤702、所述中继终端基于所述第一信息,建立或修改第一链路;
其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一信息包括如下至少一项:
所述第三终端与所述中继终端之间的通信链路的信息;
第一指示信息;
第二指示信息;
所述第一终端的信息;
所述第二终端的信息;
服务质量(Quality of Service,QoS)信息;
其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
上述第一链路为第一终端与第二终端之间且基于中继终端进行通信的通信链路,或者,上述第一链路也可以称为第一终端和第二终端之间的中继链路。可选地,上述第一终端和第二终端中的一个可以称为源端终端(即源端UE),另一个可以称为目标终端(即目标UE)。也就是说,上述第一终端为源端终端,第二终端为目标终端,或者,第一终端为目标终端,第二终端为源端终端。其中,上述源端终端可以理解为请求发起链路建立过程的终端。
进一步的,上述第一终端或者第二终端还基于中继终端与其他终端(即第四终端)进行通信,也就是说,本实施例可以在上述第一终端或者第二终端基于中继终端与第四终端之间建立有通信链路的情况下,建立第一终端和第二终端之间且基于中继UE通信的通信链路,其中,上述第四终端可以是任意与第一终端和第二终端不同的终端。
示例性的,在本申请实施例中,所述通信链路可以为直连通信接口直接链路(即PC5direct link)、侧链路(SideLink)通信链路、蓝牙直连通信链路、wifi直连通信链路等通信链路。
示例性的,如图8所示,在源端UE基于中继UE与目标UE-1之间已建立有通信链路的情况下,需要建立源端UE与目标UE-2之间且基于中继UE通信的通信链路;或者,如图9所示,在源端UE-1基于中继UE与目标UE之间已建立有通信链路的情况下,需要建立源端UE-2与目标UE之间且基于中继UE通信的通信链路。
上述第三终端与中继终端之间的通信链路的信息,可以包括用于表征上述第三终端与中继终端之间是否已存在通信链路的信息、上述第三终端与中继终端之间的通信链路的QoS信息、上述第三终端与中继终端之间的通信链路的通信资源情况、上述第三终端与中继终端之间的通信链路的通信质量等中的至少一项。示例性的,在上述第三终端与中继终端之间已存在通信链路的情况下,中继终端可以复用上述第三终端与中继终端之间已存在 的通信链路;在上述第三终端与中继终端之间不存在通信链路的情况下,中继终端可以在上述第三终端与中继终端之间建立通信链路。
上述第一指示信息用于指示第一链路支持或不支持共享,例如,上述第一指示信息可以为共享链路标志(即shared link flag),当该shared link flag=1时,表示第一链路支持共享;当shared link flag=0时,表示第一链路不支持共享链路。示例性的,在第一指示信息用于指示第一链路支持共享的情况下,中继终端可以复用上述第三终端与中继终端之间已存在的通信链路,用于第一终端与第二终端之间的通信;在第一指示信息用于指示第一链路不支持共享的情况下,中继终端可以在上述第三终端与中继终端之间建立新的通信链路,用于第一终端与第二终端之间的通信。
上述第二指示信息用于指示第二链路支持共享或不支持共享,例如,上述第二指示信息也可以为共享链路标志(即shared link flag),当该shared link flag=1时,表示第二链路支持共享;当shared link flag=0时,表示第二链路不支持共享链路,其中,上述第二链路为第三终端与第四终端之间且基于中继终端进行通信的通信链路,或者也可以称为第三终端与第四终端之间的中继链路。示例性的,在第二指示信息用于指示第二链路支持共享的情况下,中继终端可以复用上述第三终端与中继终端之间已存在的通信链路,用于第一终端与第二终端之间的通信;在第二指示信息用于指示第二链路不支持共享的情况下,中继终端可以在上述第三终端与中继终端之间建立新的通信链路,用于第一终端与第二终端之间的通信。
可选地,上述第一终端的信息可以包括但不限于如下至少一项:
所述第一终端的终端标识;
所述第一终端的应用层标识;
所述第一终端的互联网协议(Internet Protocol,IP)地址;
所述第一终端的媒体接入控制(Media Access Control,MAC)地址;
所述第一终端的层2(Layer 2,L2)标识。
可选地,上述第二终端的信息可以包括但不限于如下至少一项:
所述第二终端的终端标识;
所述第二终端的应用层标识;
所述第二终端的IP地址;
所述第二终端的MAC地址;
所述第一终端的层2标识。
上述QoS信息可以包括但不限于如下至少一项:第一终端与第二终端之间的QoS信息,第一终端与中继终端之间的QoS信息,第二终端与中继终端之间的QoS信息。
可选地,上述QoS信息可以包括但不限于如下至少一项:
直连通信接口QoS流标识(PC5 Qos Flow Identifier,PQFI);
PC5 QoS参数;
邻近服务标识(Proximity Service Identifier,ProSe ID);
操作码;
PC5 QoS规则。
其中,上述操作码(即operation code)可以为链路修改操作码,用于向已有的5G ProSe直接链路添加新的PC5 QoS流,或者,可以为链路建立操作码,用于建立新的PC5直接链路。上述PC5 QoS规则(即PC5 QoS rule)可以用于指示PC5 QoS流的包过滤器。
本申请实施例提供的链路处理方法,基于中继终端获取第一信息,并基于第一信息,建立或修改第一链路;其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端,所述第一信息包括如下至少一项:所述第三终端与所述中继终端之间的通信链路的信息;第一指示信息;第二指示信息;所述第一终端的信息;所述第二终端的信息;QoS信息;其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路,也即本申请实施例提供了一种在U2U中继通信场景下源端UE与目标UE之间且基于中继终端进行通信的通信链路的建立方式,此外,由于中继UE基于第一信息建立或修改第一链路,这样可以保证中继终端可以较为准确的建立源端UE与目标UE之间且基于中继终端进行通信的通信链路。
可选地,所述第一链路包括第三链路和第四链路中的至少一者;其中,所述第三链路为所述第一终端与所述中继终端之间的通信链路,所述第四链路为所述中继终端与所述第二终端之间的通信链路;
所述第二链路包括第五链路和第六链路中的至少一者;其中,所述第五链路为所述第三终端与所述中继终端之间的通信链路,所述第六链路为所述中继终端与所述第四终端之间的通信链路。
可选地,在所述第一链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
和/或,
在所述第一链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
上述第三链路与第五链路为相同的通信链路可以理解为,例如,第三链路与第五链路使用相同的通信资源(如PC5通信资源、地址信息等),第三链路与第五链路为相同的PC5直接链路(即PC5 direct link),第三链路复用或共享第五链路的通信资源,或者,第五链路复用或共享第三链路的通信资源等。
同样的,上述第四链路与第五链路为相同的通信链路,可以理解为,例如,第四链路与第五链路使用相同的通信资源(如PC5通信资源、地址信息等),第四链路与第五链路为相同的PC5直接链路,第四链路复用或共享第五链路的通信资源,或者,第五链路复用或共享第四链路的通信资源等。
上述第三链路与第五链路为不相同的通信链路,例如,在中继终端与第一终端建立新的通信链路(即第三链路),用于第一终端与第二终端之间的通信。同样的,第四链路与第五链路为不相同的通信链路,例如,在中继终端与第二终端建立新的通信链路(即第四链路),用于第一终端与第二终端之间的通信。
本实施例在所述第一链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路,这样可以在保证第一终端与第二终端之间可通信的同时节省通信资源;在所述第一链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路,这样可以保证第一终端和第二终端之间通信的可靠性。
可选地,在所述第二链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
和/或,
在所述第二链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
上述第三链路与第五链路为相同的通信链路可以理解为,例如,第三链路与第五链路使用相同的通信资源(如PC5通信资源、地址信息等),第三链路与第五链路为相同的PC5直接链路,第三链路复用或共享第五链路的通信资源,或者,第五链路复用或共享第三链路的通信资源等。
同样的,上述第四链路与第五链路为相同的通信链路,可以理解为,例如,第四链路与第五链路使用相同的通信资源(如PC5通信资源、地址信息等),第四链路与第五链路为相同的PC5直接链路,第四链路复用或共享第五链路的通信资源,或者,第五链路复用或共享第四链路的通信资源等。
上述第三链路与第五链路为不相同的通信链路,例如,在中继终端与第一终端建立新的通信链路(即第三链路),用于第一终端与第二终端之间的通信。同样的,第四链路与第五链路为不相同的通信链路,例如,在中继终端与第二终端建立新的通信链路(即第四链路),用于第一终端与第二终端之间的通信。
可选地,所述中继终端建立或修改第一链路,包括如下至少一项:
在所述第三终端为所述第一终端的情况下,所述中继终端建立所述第四链路,其中,所述第三链路与所述第五链路为相同的通信链路;
在所述第三终端为所述第二终端的情况下,所述中继终端建立所述第三链路,其中,所述第四链路与所述第五链路为相同的通信链路。
本实施例中,在所述第三终端为所述第一终端的情况下,中继终端建立中继终端与第二终端之间的通信链路,并可以复用第一终端与中继终端之间的通信链路;在所述第三终端为所述第二终端的情况下,中继终端建立中继终端与第一终端之间的通信链路,并可以复用第二终端与中继终端之间的通信链路,这样可以在保证第一终端与第二终端之间可通信的同时节省通信资源。
可选地,所述中继终端获取第一信息,包括:
所述中继终端从所述第一终端接收第一请求消息,所述第一请求消息包括所述第一信息;
其中,所述第一请求消息用于请求建立或修改所述第一链路。
本实施例中,第一终端为源端终端,第二终端为目标终端。
可选地,所述第一请求消息为第一直接链路建立请求消息。
示例性的,上述第一直接链路建立请求消息可以为邻近服务直接链路建立请求(即PROSE DIRECT LINK ESTABLISHMENT REQUEST)消息,用于请求建立第一链路。
可选地,在所述中继终端接收所述第一直接链路建立请求消息之后,所述方法还包括:
所述中继终端基于所述第一直接链路建立请求消息,向所述第二终端发送第一直接链路修改请求消息,所述第一直接链路修改请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
QoS信息;
所述第一终端的信息。
需要说明的是,本实施例中的第一指示信息、QoS信息和第一终端的信息可以参见前述相关说明,在此不做赘述。
示例性的,上述第一直接链路修改请求消息可以为邻近服务直接链路修改请求(即PROSE DIRECT LINK MODIFICATION REQUEST)消息,用于请求修改第一链路。
可选地,可以在第三终端为第二终端(也即第二终端与中继终端之间已存在通信连接)的情况下,中继终端基于所述第一直接链路建立请求消息,向所述第二终端发送第一直接链路修改请求消息,以请求对第一链路进行修改。
可选地,上述第二终端接收到第一直接链路修改请求消息之后,可以在同意修改第一链路的情况下,向中继终端发送直接链路修改接受消息;可以在不同意修改第一链路的情况下,向中继终端发送直接链路修改拒绝消息。
在一些实施方式中,由于第二终端与中继终端之间已建立有一条通信链路,此时第二终端收到的第一直接链路修改请求消息中携带了新的QoS信息,并且基于携带的第一指 示信息,第二终端可知中继终端需要新加的Qos流(即Qos flow)是来自第一终端的请求,也就是要建立与第一终端的共享链路,进而可以判断出新的QoS信息是来自第一终端。可选地,第二终端可以存储Qos flow与第一终端的对应关系,用于将PC5 QoS flow与某一个具体的对端终端绑定。
可选地,所述方法还包括如下至少一项:
所述中继终端接收所述第二终端发送的第一直接链路修改接受消息;
所述中继终端向所述第一终端发送第一直接链路建立接受消息;
其中,所述第一直接链路修改接受消息包括第一指示信息,和/或,所述第一直接链路建立接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
本实施例中,上述第一直接链路修改接受消息可以是针对上述第一直接链路修改请求消息的响应消息,用于指示同意修改第一链路。上述第一直接链路建立接受消息可以是针对上述第一直接链路建立请求消息的响应消息,用于指示同意建立第一链路。示例性的,中继终端可以在从第二终端接收第一直接链路修改接受消息之后,向第一终端发送第一直接链路建立接受消息以指示同意建立第一链路。
示例性的,上述第一直接链路修改接受消息可以是邻近服务直接链路修改接受(即PROSE DIRECT LINK MODIFICATION ACCEPT)消息,上述第一直接链路建立接受消息可以是邻近服务直接链路建立接受(即PROSE DIRECT LINK ESTABLISHMENT ACCEPT)消息。
需要说明的是,本实施例中的第一指示信息可以参见前述相关说明,在此不做赘述。
可选地,在所述中继终端接收所述第一直接链路建立请求消息之后,所述方法还包括:
所述中继终端基于所述第一直接链路建立请求消息,向所述第二终端发送第二直接链路建立请求消息,所述第二直接链路建立请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
所述第一终端的信息。
本实施例中,中继终端在接收到第一直接链路建立请求消息之后,可以基于第一直接链路建立请求消息,向所述第二终端发送第二直接链路建立请求消息,以请求建立第一链路。
可选地,上述第二终端接收到第二直接链路建立请求消息之后,可以在同意建立第一链路的情况下,向中继终端发送直接链路建立接受消息;可以在不同意建立第一链路的情况下,向中继终端发送直接链路建立拒绝消息。
需要说明的是,本实施例中的第一指示信息和第一终端的信息可以参见前述相关说明,在此不做赘述。
可选地,所述方法还包括如下至少一项:
所述中继终端从所述第二终端接收第二直接链路建立接受消息;
所述中继终端向所述第一终端发送第三直接链路建立接受消息;
其中,所述第二直接链路建立接受消息包括第一指示信息,和/或,所述第三直接链路建立接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
本实施例中,上述第二直接链路建立接受消息可以是针对上述第二直接链路建立请求消息的响应消息,用于指示同意建立第一链路。上述第三直接链路建立接受消息可以是上述第一直接链路建立请求消息的响应消息,用于指示同意建立第一链路。示例性的,中继终端可以在从第二终端接收第二直接链路修改接受消息之后,向第一终端发送第三直接链路建立接受消息以指示同意建立第一链路。
可选地,所述第一请求消息为第二直接链路修改请求消息。
可选地,可以在第三终端为第一终端(也即第一终端与中继终端之间已存在通信连接)的情况下,第一请求消息为第二直接链路修改请求消息。
可选地,在所述中继终端接收所述第二直接链路修改请求消息之后,所述方法还包括:
所述中继终端基于所述第二直接链路修改请求消息,向所述第二终端发送第三直接链路建立请求消息。
本实施例中,中继终端在从第一终端接收到第二直接链路修改请求消息之后,基于第二直接链路修改请求消息,向所述第二终端发送第三直接链路建立请求消息,以请求建立第一链路。
可选地,上述第二终端接收到第三直接链路建立请求消息之后,可以在同意建立第一链路的情况下,向中继终端发送直接链路建立接受消息;可以在不同意建立第一链路的情况下,向中继终端发送直接链路建立拒绝消息。
可选地,所述第三直接链路建立请求消息包括如下至少一项:
所述第一终端的信息;
第一指示信息,用于指示所述第一链路支持或不支持共享。
需要说明的是,本实施例中的第一终端的信息和第一指示信息可以参见前述相关说明,在此不做赘述。
可选地,所述方法还包括如下至少一项:
所述中继终端接收所述第二终端发送的第四直接链路建立接受消息;
所述中继终端向所述第一终端发送第二直接链路修改接受消息;
其中,所述第四直接链路建立接受消息包括第一指示信息,和/或,所述第二直接链路修改接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
本实施例中,上述第四直接链路建立接受消息可以是针对第三直接链路建立请求消息的响应消息,上述第二直接链路修改接受消息可以是针对上述第二直接链路修改请求消息的响应消息。
可选地,所述方法还包括:
在满足第一条件的情况下,所述中继终端拒绝建立所述第一链路;
其中,所述第一条件包括如下至少一项:
所述中继终端接收到直接链路建立拒绝消息;
所述中继终端接收到直接链路修改拒绝消息;
所述第一链路或所述第二链路不支持共享;
所述中继终端无法基于QoS信息修改所述中继终端与所述第三终端之间的通信链路。
本实施例中的QoS信息可以参见前述相关说明,在此不做赘述。上述中继终端与第三终端之间的通信链路,也即上述中继终端与第三终端之间已有的通信链路。
可选地,中继终端在拒绝建立第一链路的情况下,可以向第一终端发送直接链路建立拒绝消息或者直接链路修改拒绝消息。
可选地,所述直接链路建立拒绝消息包括第一原因值,和/或,所述直接链路修改拒绝消息包括第一原因值。
可选地,所述第一原因值用于指示链路不支持共享。
可选地,所述方法还包括:
所述中继终端接收第二请求消息;
其中,所述第二请求消息用于请求建立或修改所述第二链路。
示例性的,上述第二请求消息可以是直接链路建立请求(即PROSE DIRECT LINK ESTABLISHMENT REQUEST)消息,用于请求建立所述第二链路,或者,上述第二请求消息可以是直接链路修改请求(即PROSE DIRECT LINK MODIFICATION REQUEST)消息,用于请求修改第二链路。
具体的,中继终端可以从第三终端和第四终端中的一者接收第二请求消息。进一步的,中继终端可以向第三终端和第四终端中的另一者发送第四请求消息,以请求建立或修改所述第二链路。
示例性的,如图8所示,源端UE向中继UE发送直接链路建立请求消息,进一步的,中继UE向目标UE-1发送直接链路建立请求消息;或者,如图9所示,源端UE-1向中继UE发送直接链路建立请求消息,进一步的,中继UE向目标UE发送直接链路建立请求消息。
可选地,所述第二请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
可选地,所述方法还包括:
所述中继终端接收用于响应所述第二请求消息的第一响应消息,所述第一响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
具体的,所述中继终端可以从第三终端或者第四终端接收第一响应消息,示例性的,该第一响应消息可以为邻近服务直接链路建立接受(PROSE DIRECT LINK  ESTABLISHMENT ACCEPT)消息,或者,可以为邻近服务直接链路修改接受(PROSE DIRECT LINK MODIFICATION ACCEPT)消息。
可选地,所述方法还包括:
在满足第二条件的情况下,所述中继终端修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
其中,所述第二条件包括如下至少一项:
接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;
所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;
所述中继终端处于拥塞状态。
本实施例中,第五终端与第六终端基于中继终端进行通信,第五终端或者第六终端还通过该中继终端与第七终端通信。也就是说,本实施例针对的是在共享中继终端与第五终端或者第六终端之间的通信链路的情况下,删除或修改第七链路。
需要说明的是,上述第七链路可以为上述第一链路或者第二链路,也可以是与第一链路和第二链路不同的链路。可以理解的是,在上述第七链路为第一链路或第二链路的情况下,上述第五终端、第六终端和第七终端可以分别为上述第一终端、第二终端和第四终端。
上述第三请求消息可以为但不限于如下一项消息:链路释放请求消息,例如,邻近服务直接链路释放请求(即PROSE DIRECT LINK RELEASE REQUEST)消息;链路修改请求消息,例如,邻接服务直接链路修改请求消息(即PROSE DIRECT LINK MODIFICATION REQUEST);用于释放端到端中继链路的专用请求消息,例如,定义的一条新的PC5-S消息。
上述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许,也即与目标UE(即第五终端或第六终端)的直接通信不被允许(即direct communication to the target UE not allowed)。
上述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要,也即与目标UE(即第五终端或第六终端)的直接通信不再需要(即direct communication to the target UE no longer needed)。
上述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路,也即直接通信不再支持(即direct connection is not available anymore)。
上述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源,也即缺乏用于5G ProSe直接链路资源(即lack of resources for 5G ProSe direct link)。
上述中继终端处于拥塞状态,也即中继终端处于拥塞情形(即congestion situation)。
在一实施方式中,在满足第二条件的情况下,中继终端可以释放或修改第五终端与第六终端之间且基于所述中继终端进行通信的通信链路。例如,在接收到接收第三请求消息的情况下,中继终端可以释放或修改第五终端与第六终端之间且基于所述中继终端进行通信的通信链路。
在另一实施方式中,中继终端可以释放或修改第五终端或第六终端与中继终端之间的通信链路。例如,中继终端在确定上述中继终端与第五终端或者第六终端之间的通信链路不被允许的情况下,释放或修改与第五终端或第六终端之间的通信链路。
可选地,所述第三请求消息包括如下至少一项:
所述第五终端的信息;
第八终端的信息;
默认终端的信息;
第三指示信息;
其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端,所述第三指示信息用于指示如下至少一项:
所述中继终端释放所述第七链路;
所述中继终端修改或删除所述第七链路中的QoS流。
本实施例中,上述第八终端可以为中继链路,或者可以为第六终端。示例性的,在第八终端为中继终端的情况下,中继终端可以根据第三请求消息,修改或者释放第七链路;在第八终端为第六终端的情况下,中继终端可以根据第三请求消息向第六终端发送用于请求修改或者释放第七链路的请求信息,进而第六终端可以基于该请求信息修改或者释放第七链路。
上述默认(即default)终端的信息,可以是一个默认信息。示例性的,在上述第三请求消息包括上述默认终端的信息的情况下,可以对所有与所述第五终端有关的通信链路执行删除或修改操作。
可选地,所述第五终端的信息或所述第八终端的信息包括如下至少一项:
所述第五终端或所述第八终端的终端标识;
所述第五终端或所述第八终端的应用层标识;
所述第五终端或所述第八终端的IP地址;
所述第五终端或所述第八终端的MAC地址;
所述第五终端或所述第八终端的层2标识。
可选地,所述方法还包括:
所述中继终端向第九终端发送第一通知消息;
其中,所述第一通知消息用于通知如下至少一项:
第十终端与所述中继终端之间的通信链路已经释放;
删除所述第十终端或所述第九终端相关的PC5上下文;
修改或删除所述第十终端或所述第九终端与所述中继终端之间的QoS流;
修改或释放所述第九终端与所述中继终端之间的通信链路;
所述第十终端为所述第五终端或所述第六终端,所述第九终端包括与所述第十终端基于所述中继终端进行通信的至少一个终端。
示例性的,在第十终端为第五终端的情况下,上述第九终端可以包括第六终端;在第十终端为第六终端的情况下,上述第九终端可以包括第五终端。
示例性的,在中继终端释放与第十终端之间的通信链路的情况下,可以向第九终端发送第一通知消息,进而第九终端可以基于第一通知消息执行链路相关操作,例如,第九终端可以删除所述第十终端或所述第九终端相关的PC5上下文(即context),修改或删除所述第十终端或所述第九终端与所述中继终端之间的QoS流,或者,修改或释放所述第九终端与所述中继终端之间的通信链路等。
可选地,所述中继终端修改或释放所述第七链路,包括如下至少一项:
在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端存在第八链路,则所述中继终端修改或释放所述第八链路;
在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端不存在第八链路,则所述中继终端执行第一操作;
在所述第三请求消息不包含所述第六终端的信息或包含默认终端的信息的情况下,则所述中继终端执行第二操作;
其中,所述第七链路为所述第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,所述第八链路为所述中继终端与所述第六终端之间的通信链路,所述第一操作包括如下至少一项:
执行与所述第六终端相关的终端到终端发现过程;
与所述第六终端建立第八链路;
发送第二响应消息,所述第二响应消息用于指示拒绝修改或删除所述第八链路;
所述第二操作包括如下至少一项:释放所有与所述第五终端有关的通信链路;删除所有与所述第五终端有关的QoS流。
本实施例中,在所述第三请求消息包含所述第六终端的信息的情况下,中继终端可以基于第六终端的信息获知第五终端请求修改或释放第六终端相关的通信链路,进而在中继终端与第六终端之间存在通信链路的情况下,中继终端可以修改或释放中继终端与第六终端之间的通信链路;在中继终端与第六终端之间不存在通信链路的情况下,也即第五终端请求释放或修改一个不存在的通信链路,在该情况下,中继终端执行第一操作,例如,执行与所述第六终端相关的终端到终端发现过程,并与所述第六终端建立中继终端与第六终端之间的通信链路,或者,向第五终端发送第二响应消息,以指示拒绝修改或删除中继终 端与第六终端之间的通信链路。
在第三请求消息不包含所述第六终端的信息或包含默认终端的信息的情况下,中继终端可以修改或释放所有与所述第五终端有关的通信链路,例如,若第五终端分别与第六终端和第六终端基于中继终端通信,则可以释放第五终端与第六终端之间且基于中继终端通信的通信链路,以及释放第五终端与第七终端之间且基于中继终端通信的通信链路。
需要说明的是,上述终端到终端发现过程的实现方式可以参见相关技术,本实施例对此不做限定。
可选地,可以在第八终端为第六终端的情况下,中继终端执行上述行为。
可选地,所述第二响应消息包含如下至少一项:第二原因值;所述第六终端的信息。
可选地,所述第二原因值包括如下至少一项:
通信链路释放错误;
与目标终端之间无通信链路;
不存在的目标终端。
可选地,所述中继终端修改或释放所述第七链路,包括如下至少一项:
所述中继终端修改或释放所述中继终端与所述第五终端的通信链路;
所述中继终端删除所述第六终端相关的PC5上下文;
所述中继终端修改或删除所述第六终端与所述中继终端之间的QoS流;
所述中继终端释放所述第六终端与所述中继终端之间的通信链路。
可选地,可以在第八终端为第六终端,且第五终端还基于所述中继终端与所述第七终端通信(也即中继终端与第五终端之间的通信链路为共享链路)的情况下,所述中继终端执行上述行为。
示例性的,在第八终端为第六终端,且第五终端还基于所述中继终端与所述第七终端通信的情况下,中继终端可以修改所述中继终端与所述第五终端之间的通信链路,并释放所述第六终端与所述中继终端之间的通信链路。
需要说明的是,中继终端修改中继终端与第五终端之间的通信链路,可以理解为中继终端保留了中继终端与第五终端之间的通信链路。
可选地,所述中继终端修改或释放所述第七链路,包括如下至少一项:
所述中继终端修改或释放所述中继终端与所述第六终端的通信链路;
所述中继终端删除所述第五终端相关的PC5上下文;
所述中继终端修改或删除所述第五终端与所述中继终端之间的QoS流;
所述中继终端释放所述第五终端与所述中继终端之间的通信链路。
可选地,可以在第八终端为第六终端,且第六终端还基于所述中继终端与所述第七终端通信(也即中继终端与第六终端之间的通信链路为共享链路)的情况下,所述中继终端执行上述行为。
示例性的,在第八终端为第六终端,且第六终端还基于所述中继终端与所述第七终端 通信的情况下,中继终端可以修改所述中继终端与所述第六终端之间的通信链路,并释放所述第五终端与所述中继终端之间的通信链路。
需要说明的是,中继终端修改中继终端与第六终端之间的通信链路,可以理解为中继终端保留了中继终端与第六终端之间的通信链路。
可选地,所述中继终端修改或释放所述第七链路,包括如下至少一项:
所述中继终端修改或删除所述第五终端相关的PC5上下文;
所述中继终端修改或删除所述第五终端与所述中继终端之间的QoS流;
所述中继终端释放所述第五终端与所述中继终端之间的通信链路。
可选地,可以在第八终端为中继终端的情况下,中继终端执行上述行为。
可选地,所述方法还包括:
所述中继终端向所述第六终端发送第二通知消息;
其中,所述第二通知消息用于通知如下至少一项:
所述第五终端与所述中继终端之间的通信链路已经释放;
删除所述第五终端或所述第六终端相关的PC5上下文;
修改或删除所述第五终端或所述第六终端与所述中继终端之间的QoS流;
修改或释放所述第六终端与所述中继终端之间的通信链路。
示例性的,可以在所述中继终端释放所述第五终端与所述中继终端之间的通信链路的情况下,中继终端向所述第六终端发送第二通知消息以通知第六终端,第五终端与所述中继终端之间的通信链路已经释放,进而第六终端可以基于第二通知消息执行链路相关操作,例如,修改或释放所述第六终端与所述中继终端之间的通信链路。
可选地,所述中继终端修改或释放所述第七链路,包括:
所述中继终端基于第二信息,修改或释放所述第七链路;
其中,所述第二信息包括如下至少一项:
所述第七链路支持或不支持共享;
所述中继终端与所述第五终端之间存在或不存在通信链路;
所述中继终端与第八终端之间存在或不存在通信链路;
其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端。
本实施例中,上述第八终端可以为与中继终端不同且与第五终端相关的终端,例如,第六终端或者第七终端等。
示例性的,可以在第七链路支持共享的情况下,中继终端修改第七链路,或者,在第七链路不支持共享的情况下,中继终端释放第七链路。
需要说明的是,当5G ProSe层三终端(即5G ProSe Layer-3 End UE)和5G ProSe层三中继(即5G ProSe Layer-3 UE-to-UE Relay)之间的PC5链路为共享链路或支持共享时,如果层二链路修改过程是由5G ProSe层三终端发起的,则链路修改请求消息中应额外包 含目标5G ProSe层三终端(即Target 5G ProSe Layer-3 End UE)的用户信息ID(即User Info ID)。进一步地,如果使用基于IP类型的通信,也可以使用目标5G ProSe层三终端的IP地址,如果使用基于以太网(Ethernet)类型的通信,也可以使用目标5G ProSe层三终端的MAC地址。如果使用基于非结构化(Unstructured)类型的通信或者地址解析协议(Address Resolution Protocol,ARP)类型的通信,也可以包括源5G ProSe层三终端的L2 ID。
可选地,中继终端在转发链路修改请求消息时,还应包含源5G ProSe层三终端(即Source 5G ProSe Layer-3 End UE)的用户信息ID。进一步地,如果使用基于IP类型的通信,也可以包括源5G ProSe层三终端的IP地址。如果使用基于以太网(Ethernet)类型的通信,也可以包括源5G ProSe层三终端的MAC地址。如果使用基于非结构化(Unstructured)类型的通信或者或者地址解析协议(Address Resolution Protocol,ARP)类型的通信,也可以包括源5G ProSe层三终端的L2 ID。
当5G ProSe层三终端与5G ProSe层三终端(例如,第五终端)至终端中继之间的PC5链路释放时,5G ProSe层三终端中继可以主动释放对端5G ProSe层三终端(即peer 5G ProSe Layer-3 End UE)(例如,第六终端)的PC5链路,也可以通知对端5G ProSe层三终端(例如,第六终端),对端PC5链路(即peer PC5 link)(例如,第五终端)已释放。
其中,上述第一终端或者第五终端可以为上述源5G ProSe层三终端,上述第二终端或者第六终端可以为上述目标5G ProSe层三终端。上述中继终端可以为上述5G ProSe层三中继。
请参见图10,图10是本申请实施例提供的一种链路处理方法的流程图,该方法可以由第一终端执行,如图10所示,包括以下步骤:
步骤1001、第一终端向中继终端发送第一请求消息;
其中,所述第一请求消息用于请求建立或修改第一链路,所述第一链路为所述第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一请求消息包括第一信息,所述第一信息包括如下至少一项:
所述第三终端与所述中继终端之间的通信链路的信息;
第一指示信息;
第二指示信息;
所述第一终端的信息;
所述第二终端的信息;
服务质量QoS信息;
其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
可选地,所述第一链路包括第三链路和第四链路中的至少一者;其中,所述第三链路 为所述第一终端与所述中继终端之间的通信链路,所述第四链路为所述中继终端与所述第二终端之间的通信链路;
所述第二链路包括第五链路和第六链路中的至少一者;其中,所述第五链路为所述第三终端与所述中继终端之间的通信链路,所述第六链路为所述中继终端与所述第四终端之间的通信链路。
可选地,在所述第一链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
和/或,
在所述第一链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
可选地,在所述第二链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
和/或,
在所述第二链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
可选地,所述第一终端的信息或所述第二终端的信息包括如下至少一项:
所述第一终端或所述第二终端的终端标识;
所述第一终端或所述第二终端的应用层标识;
所述第一终端或所述第二终端的互联网协议IP地址;
所述第一终端或所述第二终端的媒体接入控制MAC地址;
所述第一终端或所述第二终端的层2标识。
可选地,所述QoS信息包括如下至少一项:
直连通信接口PC5 QoS流标识;
PC5 QoS参数;
邻近服务标识ProSe ID;
操作码;
PC5 QoS规则。
可选地,所述第一请求消息为第一直接链路建立请求消息;所述方法还包括如下一项:
所述第一终端从所述中继终端接收第一直接链路建立接受消息,其中,所述第一直接链路建立接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享;
所述第一终端从所述中继终端接收第三直接链路建立接受消息,其中,所述第三直接链路建立接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
可选地,所述第一请求消息为第二直接链路修改请求消息;所述方法还包括:
所述第一终端从所述中继终端接收第二直接链路修改接受消息,其中,所述第二直接链路修改接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
可选地,所述方法还包括如下一项:
所述第一终端从所述中继终端接收直接链路建立拒绝消息;
所述第一终端从所述中继终端接收直接链路修改拒绝消息;
所述直接链路建立拒绝消息包括第一原因值,和/或,所述直接链路修改拒绝消息包括第一原因值。
可选地,所述第一原因值用于指示链路不支持共享。
可选地,所述方法还包括如下一项:
所述第一终端向所述中继终端发送第二请求消息,所述第二请求消息用于请求建立或修改所述第二链路;
所述第一终端从所述中继终端接收第四请求消息,所述第二请求消息用于请求建立或修改所述第二链路。
本实施例针对第三终端包括第一终端的情况,若第一终端作为源端设备,第四终端作为目标设备,则第一终端向中继终端发送第二请求消息,以请求建立或修改所述第二链路;若第四终端作为源端设备,第一终端作为目标设备,则第一终端从中继终端接收第四请求消息,以请求建立或修改所述第二链路。
可选地,所述第二请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
或者,所述第四请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
可选地,所述方法还包括如下一项:
所述第一终端从所述中继终端接收响应所述第二请求消息的第三响应消息,所述第三响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
所述第一终端向所述中继终端发送响应于所述第四请求消息的第四响应消息,所述第四响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
本实施例中,在第一终端向中继终端发送第二请求消息的情况下,第一终端可以从中继终端接收响应第二请求消息的第三响应消息;在第一终端从中继终端接收第四请求消息的情况下,第一终端可以向中继终端发送响应于第四请求消息的第四响应消息。
需要说明的是,本实施例的实现方式可以参见图7所示的实施例的相关说明,此处不作赘述。
请参见图11,图11是本申请实施例提供的一种链路处理方法的流程图,该方法可以由第二终端执行,如图11所示,包括以下步骤:
步骤1101、第二终端执行第三操作,所述第三操作包括如下一项:
从中继终端接收第一直接链路修改请求消息,用于请求修改第一链路;
从中继终端接收第二直接链路建立请求消息或者第三直接链路建立请求消息,用于请求建立第一链路;
其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一直接链路修改请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
服务质量QoS信息;
所述第一终端的信息;
所述第二直接链路建立请求消息或者第三直接链路建立请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
所述第一终端的信息。
可选地,所述第一终端的信息包括如下至少一项:
所述第一终端的终端标识;
所述第一终端的应用层标识;
所述第一终端的互联网协议IP地址;
所述第一终端的媒体接入控制MAC地址;
所述第一终端的层2标识。
可选地,所述QoS信息包括如下至少一项:
直连通信接口PC5 QoS流标识;
PC5 QoS参数;
邻近服务标识ProSe ID;
操作码;
PC5 QoS规则。
可选地,所述方法还包括如下一项:
所述第二终端向所述中继终端发送第一直接链路修改接受消息,其中,所述第一直接链路修改接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享;
所述第二终端向所述中继终端发送第二直接链路建立接受消息或者第四直接链路建 立接受消息,其中,所述第二直接链路建立接受消息或者第四直接链路建立接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
可选地,所述方法还包括如下一项:
所述第二终端向所述中继终端发送直接链路修改拒绝消息;
所述第二终端向所述中继终端发送直接链路建立拒绝消息;
其中,所述直接链路修改拒绝消息和/或直接链路建立拒绝消息包括第一原因值。
可选地,所述第一原因值用于指示链路不支持共享。
可选地,所述方法还包括如下一项:
所述第二终端向所述中继终端发送第二请求消息,所述第二请求消息用于请求建立或修改第二链路;
所述第二终端从所述中继终端接收第四请求消息,所述第四请求消息用于请求建立或修改第二链路;
其中,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
本实施例针对第三终端包括第二终端的情况,若第二终端作为源端设备,第四终端作为目标设备,则第二终端向中继终端发送第二请求消息,以请求建立或修改所述第二链路;若第四终端作为源端设备,第二终端作为目标设备,则第二终端从中继终端接收第四请求消息,以请求建立或修改所述第二链路。
可选地,所述第二请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
或者,所述第四请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
可选地,所述方法还包括如下一项:
所述第二终端从所述中继终端接收响应所述第二请求消息的第三响应消息,所述第三响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
所述第二终端向所述中继终端发送响应于所述第四请求消息的第四响应消息,所述第四响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
本实施例中,在第二终端向中继终端发送第二请求消息的情况下,第二终端可以从中继终端接收响应第二请求消息的第三响应消息;在第二终端从中继终端接收第四请求消息的情况下,第二终端可以向中继终端发送响应于第四请求消息的第四响应消息。
需要说明的是,本实施例的实现方式可以参见图7所示的实施例的相关说明,此处不作赘述。
以下结合不同场景对本申请实施例提供的链路处理方法进行说明:
场景一:如图8所示,当源端UE与中继UE已经存在一条PC5 link时,中继UE又 收到了相同源端UE的请求(如图8所示的虚线),该请求用于和UE-2建立PC5链接,就会出现源端UE可能需要与中继UE共享相同的通信链路、且其通信的目标为不同的目标UE的场景。
对于该场景,一种实施方式可以如图12a所示,包括如下步骤:
步骤1.源端UE通过U2U中继发现(relay discovery)过程发现中继UE,可以参见相关技术。
步骤2.源端UE发送直接链路建立请求(即PROSE DIRECT LINK ESTABLISHMENT REQUEST,简称为DCR)消息,用于请求建立源端UE与目标UE-1之间的PC5链路。
可选地,上述DCR消息可以携带共享链路标志(即shared link flag)。在一些实施方式中,所述shared link flag=1时,表示源端UE允许或请求与目标UE之间的链路为共享链路。当shared link flag=0时,表示源端UE不允许与目标UE之间的链路为共享链路。
步骤3.目标UE-1回复直接链路建立接受(即PROSE DIRECT LINK ESTABLISHMENT ACCEPT,简称为DCA)消息,用于指示同意建立与源端UE之间的PC5链路。
可选地,上述DCA消息可以携带shared link flag。值得说明的是,步骤3是否携带shared link flag与步骤2的DCR消息是否携带shared link flag无关,即使源端UE在DCR消息中未携带shared link flag,目标UE-1也可以在DCA消息中携带此指示信息,用来指示源端UE与目标UE-1之间的通信链路允许被使用为共享链路。
步骤4.源端UE需要与目标UE-2建立通信链路,并通过U2U relay discovery过程发现了相同的中继UE。
步骤5.源端UE给目标UE-2发送DCR消息。
可选地,该DCR消息携带shared link flag。值得说明的是,此时源端UE在步骤4中确认了相同的中继UE,也就是源端UE与中继UE之间已经建立了一条通信链路。示例性的,如果该通信链路的shared link flag是开启的(即步骤2或步骤3携带的shared link flag是开启的),则中继UE可以基于shared link flag,不在源端UE与中继UE之间创建新的通信链路,复用此前中继UE与源端UE之间建立的通信链路。如果所有步骤都没有携带shared link flag,则中继UE可以基于源端UE,不在源端UE与中继UE之间创建新的通信链路,复用此前中继UE与源端UE之间建立的通信链路。如果源端UE与中继UE之间已有的通信链路的shared link flag=0,即不允许被建立/修改成共享链路,则中继UE可以基于shared link flag,在源端UE与中继UE之间创建新的通信链路。
步骤6a.目标UE-2同意建立通信链路,回复DCA消息。
可选地,该DAC消息携带shared link flag。
步骤6b.目标UE-2不同意建立通信链路,回复拒接消息。
可选地,该拒接消息携带拒绝的原因值。在一些实施方式中,所述拒绝的原因值为不允许使用共享链路。
需要说明的是,上述步骤6a和步骤6b二者仅执行其中一者。
对于该场景,另一种实施方式可以如图12b所示,包括如下步骤:
步骤1.源端UE通过U2U中继发现过程发现中继UE,可以参见相关技术。
步骤2.源端UE发送DCR消息,用于请求建立源端UE与目标UE-1之间的PC5链路。
步骤3.目标UE-1回复DCA消息,用于指示同意建立与源端UE之间的PC5链路。
步骤4.源端UE需要与目标UE-2建立通信链路,并通过U2U relay discovery过程发现了相同的中继UE。
需要说明的是,本实施方式中的步骤1至步骤4可以参见前一实施方式中的步骤1至步骤4的相关说明,在此不做赘述。
步骤5.源端UE发送直接链路修改请求(即PROSE DIRECT LINK MODIFICATION REQUEST)消息。
源端UE在步骤4中确认了相同的中继UE,也就是说源端UE与中继UE之间已经建立了一条通信链路,在该情况下,源端UE发送直接链路修改请求消息。该直接链路修改请求消息可以包括以下至少一项:源端UE信息;目标UE-2信息;shared link flag;QoS需求(即上述的QoS信息)。
其中,上述UE信息可以包括如下至少一项:终端标识;应用层标识;IP地址或者MAC地址;层2 ID。
所述QoS需求为源端UE与目标UE-2之间的QoS需求,可以包括以下至少一项:PQFI,PC5 QoS参数,ProSe标识,操作码,PC5 QoS规则。
步骤6.中继UE基于上述直接链路修改请求消息,向目标UE-2信息标识的目标UE-2发送DCR消息。
步骤7.目标UE-2若同意与源端UE建立通信链路,则回复DCA消息。
需要说明的是,若目标UE-2不同意与源端UE建立通信链路,则可以回复直接链路建立拒绝消息。
步骤8a.中继UE发送直接链路修改接受(即PROSE DIRECT LINK MODIFICATION ACCEPT)消息,同意建立共享链路。可选地,该直接链路修改接受消息携带的shared link flag=1。
步骤8b.如果在步骤7中目标UE-2不同意与源端UE建立通信链路,或者,源端UE与中继UE之间的通信链路不支持成为共享链路,或者,中继UE无法基于所述QoS信息修改相关技术通信链路,中继UE可以发送直接链路修改拒绝(即PROSE DIRECT LINK MODIFICATION REJECT)消息,以指示不同意建立共享链路,或者,拒绝源端UE的请求。
场景二:当源端UE与中继UE已经存在一条PC5 link时,中继UE收到了另一个源端UE的请求(如图9所示的源端UE-2),所述请求用于和目标UE建立PC5链接,就会出现目标UE可能需要与中继UE共享相同的通信链路、且其通信的目标为不同的源端UE 的场景。
对于该场景,一种实施方式可以如图13a所示,包括如下步骤:
步骤1.源端UE-1通过U2U中继发现过程发现中继UE,可以参见相关技术。
步骤2.源端UE-1发送DCR消息,用于请求建立源端UE-1与目标UE之间的PC5链路。
步骤3.目标UE回复DCA消息,用于指示同意建立与源端UE-1之间的PC5链路。
需要说明的是,本实施方式中的步骤1至步骤4可以参见场景一的步骤1至步骤4的相关说明,在此不做赘述。
步骤4.源端UE-2需要与目标UE建立通信链路,并通过U2U relay discovery过程发现了中继UE。
步骤5.源端UE-2发送DCR消息。
值得说明的是,从源端UE-2的视角来看,源端UE-2并不知道中继UE与目标UE之间已经存在通信链路。因此,源端UE-2发送DCR消息,用于请求建立与目标UE之间的通信链路。可选地,该DCR消息携带shared link flag。
步骤6a.目标UE同意建立通信链路,回复DCA消息。
可选地,该DAC消息携带shared link flag。
步骤6b.目标UE不同意建立通信链路,回复拒绝消息。
可选地,该拒接消息携带拒绝的原因值。在一些实施方式中,所述拒绝的原因值为不允许使用共享链路。
需要说明的是,上述步骤6a和步骤6b二者仅执行其中一者。
值得说明的是,本实施方式中,是否使用共享链路是由中继UE基于与目标UE之间的通信链路所决定的。示例性的,如果该通信链路的shared link flag是开启的(即步骤2或步骤3携带的shared link flag是开启的),则中继UE可以基于shared link flag,不在目标UE与中继UE之间创建新的通信链路,复用此前中继UE与目标UE之间建立的通信链路。如果所有步骤都没有携带shared link flag,则中继UE可以基于目标UE,不在目标UE与中继UE之间创建新的通信链路,复用此前中继UE与目标UE之间建立的通信链路。如果中继UE与目标UE之间的通信链路的shared link flag=0,即不允许被建立/修改成共享链路,则中继UE可以基于shared link flag,在目标UE与中继UE之间创建新的通信链路。
对于该场景,另一种实施方式可以如图13b所示,包括如下步骤:
步骤1.源端UE-1通过U2U中继发现过程发现中继UE,可以参见相关技术。
步骤2.源端UE-1发送DCR消息,用于请求建立源端UE-1与目标UE之间的PC5链路。
步骤3.目标UE回复DCA消息,用于指示同意建立与源端UE-1之间的PC5链路。
需要说明的是,本实施方式中的步骤1至步骤4可以参见前一实施方式的步骤1至步 骤4的相关说明,在此不做赘述。
步骤4.源端UE-2需要与目标UE建立通信链路,并通过U2U relay discovery过程发现了中继UE。
步骤5.源端UE-2发送DCR消息,
可选地,该DCR消息携带以下至少一项:
目标UE-2信息;源端UE-2信息;shared link flag;QoS需求。
其中,上述UE信息和QoS需求可以参见前述说明,在此不做赘述。
步骤6.中继UE发送直接链路修改请求消息,该直接链路修改请求消息携带以下至少一项:源端UE-2信息;shared link flag;QoS需求。
步骤7.目标UE发送直接链路修改接受消息。
目标UE基于shared link flag、QoS需求,可以判断可以接受直接链路修改请求消息。在一些实施方式中,目标UE由于与中继UE已建立一条通信链路,此时目标UE收到的链路修改消息中,携带了新的QoS需求,并且基于携带的shared link flag,目标UE可知中继UE需要新加的Qos flow是来自源端UE-2的请求,也就是要建立与源端UE-2的共享链路,也因此判断出新的QoS需求是来自源端UE-2。可选地,目标UE存储Qos flow与源端UE的对应关系,用于将PC5 QoS flow与某一个具体的对端UE绑定。
步骤8.中继UE回复DCA消息。
可选地,该DCA消息携带shared link flag。值得说明的是,shared link flag的目的是为了告诉源端UE-2,中继UE与目标UE之间使用了共享链路。
步骤9.如果在步骤7中目标UE不同意与源端UE-2建立通信链路,或者,目标UE与中继UE之间的通信链路不支持成为共享链路,或者,中继UE无法基于所述QoS信息修改相关技术通信链路,或者,目标UE无法基于所述QoS信息修改相关技术通信链路,中继UE可以发送直接链路修改拒绝(即PROSE DIRECT LINK MODIFICATION REJECT)消息,用于指示不同意建立共享链路,或者,拒绝源端UE的请求。
请参见图14,图14是本申请实施例提供的一种链路处理方法的流程图,该方法可以由中继终端执行,如图14所示,包括以下步骤:
步骤1401、在满足第二条件的情况下,中继终端修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
其中,所述第二条件包括如下至少一项:
接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;
所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;
所述中继终端处于拥塞状态。
本申请实施例提供的链路处理方法,对于多个终端(如至少两个源端终端或至少两个目标终端)共用相同中继终端的场景,在满足第二条件的情况下,中继终端修改或释放第七链路,也即本申请实施例提供了一种在多个终端共用相同中继终端的场景的下释放或修改通信链路的方式,此外,由于中继终端在满足第二条件的情况下修改或释放第七链路,这样可以保证中继终端可以较为准确的修改或释放终端之间的通信链路。
可选地,所述第三请求消息包括如下至少一项:
所述第五终端的信息;
第八终端的信息;
默认终端的信息;
第三指示信息;
其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端,所述第三指示信息用于指示如下至少一项:
所述中继终端释放所述第七链路;
所述中继终端修改或删除所述第七链路中的QoS流。
可选地,所述第五终端的信息或所述第八终端的信息包括如下至少一项:
所述第五终端或所述第八终端的终端标识;
所述第五终端或所述第八终端的应用层标识;
所述第五终端或所述第八终端的IP地址;
所述第五终端或所述第八终端的MAC地址;
所述第五终端或所述第八终端的层2标识。
可选地,所述方法还包括:
所述中继终端向第九终端发送第一通知消息;
其中,所述第一通知消息用于通知如下至少一项:
第十终端与所述中继终端之间的通信链路已经释放;
删除所述第十终端或所述第九终端相关的PC5上下文;
修改或删除所述第十终端或所述第九终端与所述中继终端之间的QoS流;
修改或释放所述第九终端与所述中继终端之间的通信链路;
所述第十终端为所述第五终端或所述第六终端,所述第九终端包括与所述第十终端基于所述中继终端进行通信的至少一个终端。
可选地,所述中继终端修改或释放所述第七链路,包括如下至少一项:
在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端存在第八链路,则所述中继终端修改或释放所述第八链路;
在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端不存在第八链路,则所述中继终端执行第一操作;
在所述第三请求消息不包含所述第六终端的信息或包含默认终端的信息的情况下,则所述中继终端执行第二操作;
其中,所述第七链路为所述第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,所述第八链路为所述中继终端与所述第六终端之间的通信链路,所述第一操作包括如下至少一项:
执行与所述第六终端相关的终端到终端发现过程;
与所述第六终端建立第八链路;
发送第二响应消息,所述第二响应消息用于指示拒绝修改或删除所述第八链路;
所述第二操作包括如下至少一项:释放所有与所述第五终端有关的通信链路;删除所有与所述第五终端有关的QoS流。
可选地,所述第二响应消息包含如下至少一项:第二原因值;所述第六终端的信息。
可选地,所述第二原因值包括如下至少一项:
通信链路释放错误;
与目标终端之间无通信链路;
不存在的目标终端。
可选地,所述中继终端修改或释放所述第七链路,包括如下至少一项:
所述中继终端修改或释放所述中继终端与所述第五终端的通信链路;
所述中继终端删除所述第六终端相关的PC5上下文;
所述中继终端修改或删除所述第六终端与所述中继终端之间的QoS流;
所述中继终端释放所述第六终端与所述中继终端之间的通信链路。
可选地,所述中继终端修改或释放所述第七链路,包括如下至少一项:
所述中继终端修改或释放所述中继终端与所述第六终端的通信链路;
所述中继终端删除所述第五终端相关的PC5上下文;
所述中继终端修改或删除所述第五终端与所述中继终端之间的QoS流;
所述中继终端释放所述第五终端与所述中继终端之间的通信链路。
可选地,所述中继终端修改或释放所述第七链路,包括如下至少一项:
所述中继终端修改或删除所述第五终端相关的PC5上下文;
所述中继终端修改或删除所述第五终端与所述中继终端之间的QoS流;
所述中继终端释放所述第五终端与所述中继终端之间的通信链路。
可选地,所述方法还包括:
所述中继终端向所述第六终端发送第二通知消息;
其中,所述第二通知消息用于通知如下至少一项:
所述第五终端与所述中继终端之间的通信链路已经释放;
删除所述第五终端或所述第六终端相关的PC5上下文;
修改或删除所述第五终端或所述第六终端与所述中继终端之间的QoS流;
修改或释放所述第六终端与所述中继终端之间的通信链路。
可选地,所述中继终端修改或释放所述第七链路,包括:
所述中继终端基于第二信息,修改或释放所述第七链路;
其中,所述第二信息包括如下至少一项:
所述第七链路支持或不支持共享;
所述中继终端与所述第五终端之间存在或不存在通信链路;
所述中继终端与第八终端之间存在或不存在通信链路;
其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端。
需要说明的是,本实施例的实现方式可以参见图7所示的实施例的相关说明,此处不作赘述。
请参见图15,图15是本申请实施例提供的一种链路处理方法的流程图,该方法可以由第五终端执行,如图15所示,包括以下步骤:
步骤1501、第五终端向中继终端发送第三请求消息,其中,所述第三请求消息用于请求修改或释放第七链路,所述第七链路为所述第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
可选地,所述第三请求消息包括如下至少一项:
所述第五终端的信息;
第八终端的信息;
默认终端的信息;
第三指示信息;
其中,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端,所述第三指示信息用于指示如下至少一项:
所述中继终端释放所述第七链路;
所述中继终端修改或删除所述第七链路中的QoS流。
可选地,所述第五终端的信息或所述第八终端的信息包括如下至少一项:
所述第五终端或所述第八终端的终端标识;
所述第五终端或所述第八终端的应用层标识;
所述第五终端或所述第八终端的IP地址;
所述第五终端或所述第八终端的MAC地址;
所述第五终端或所述第八终端的层2标识。
可选地,所述方法还包括:
所述第五终端从所述中继终端接收第二响应消息,所述第二响应消息用于指示拒绝修改或删除所述中继终端与所述第六终端之间的通信链路。
可选地,所述第二响应消息包含如下至少一项:第二原因值;所述第六终端的信息。
可选地,所述第二原因值包括如下至少一项:
通信链路释放错误;
与目标终端之间无通信链路;
不存在的目标终端。
需要说明的是,本实施例的实现方式可以参见图7所示的实施例的相关说明,此处不作赘述。
请参见图16,图16是本申请实施例提供的一种链路处理方法的流程图,该方法可以由第六终端执行,如图16所示,包括以下步骤:
步骤1601、第六终端从中继终端接收第五请求消息,其中,所述第五请求消息用于请求释放或修改第七链路,所述第七链路为第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
示例性的,中继终端可以从第五终端接收第三请求消息的情况下,向第六终端发送第五请求消息,进而第六终端可以基于第五请求消息确定是否释放或修改第七链路。
可选地,所述第五请求消息包括如下至少一项:
所述第五终端的信息;
所述中继终端的信息;
默认终端的信息;
第四指示信息;
其中,所述第四指示信息用于指示如下至少一项:
所述第六终端释放所述第六终端与所述中继终端之间的通信链路;
所述第六终端修改或删除所述第六终端与所述中继终端之间的通信链路的QoS流。
可选地,所述第五终端的信息或所述中继终端的信息包括如下至少一项:
所述第五终端或所述中继终端的终端标识;
所述第五终端或所述中继终端的应用层标识;
所述第五终端或所述中继终端的IP地址;
所述第五终端或所述中继终端的MAC地址;
所述第五终端或所述中继终端的层2标识。
需要说明的是,本实施例的实现方式可以参见图7所示的实施例的相关说明,此处不作赘述。
以下结合不同场景对本申请实施例提供的链路处理方法进行说明:
场景一:源端UE发送请求消息给中继UE,中继UE根据请求消息执行与目标UE的PC5连接处理。
如图17a所示,源端UE与中继UE的PC5 link被目标UE-1,UE-2和UE-3共享。当源端UE不再需要和目标UE-1执行U2U中继通信时,可以包括如下步骤:
步骤1.源端UE发送请求消息#1给中继UE,以请求修改或者释放与目标UE-1之间的通信链路。
需要说明的是,上述请求消息#1可以是上述第三请求消息。
可选地,所述请求消息#1可以是以下至少一项消息:链路释放请求消息,例如,邻近服务直接链路释放请求(即PROSE DIRECT LINK RELEASE REQUEST)消息;链路修改请求消息,例如,邻接服务直接链路修改请求消息(即PROSE DIRECT LINK MODIFICATION REQUEST);用于释放端到端中继链路的专用请求消息,例如,定义的一条新的PC5-S消息。
可选地,所述请求消息#1可以包括以下至少一项:
目标UE-1的信息,
源端UE的信息;
指示信息#1,所述指示信息#1与所述目标UE-1有关,例如,可以用于指示以下至少一项:
中继UE释放所述源端UE与目标UE-1的端到端(U2U)中继链接;
中继UE删除与目标UE-1的QoS flow。
其中,上述指示信息#1可以是上述第三指示信息。
在一种实施方式中,上述指示信息#1还可以包括PQFI。
步骤2.中继UE接收请求消息#1,执行第一目标操作。
其中,该第一目标操作可以包括如下至少一项:
在请求消息#1中包含了目标UE-1的信息的情况下,执行与目标UE-1相关的链路修改过程或链路释放过程;
在第一请求消息中没有包含目标UE-1的信息的情况下,执行与源端UE基于中继UE通信的所有目标UE(例如,目标UE-1至目标UE-3)相关的链路修改过程或链路释放过程;
在第一请求消息中包含了目标UE-1的信息,而目标UE-1与中继UE之间不存在PC5link(即要求修改或删除一个不存在的PC5链路)的情况下,可以执行以下一项:
执行与目标UE-1相关的发现过程和PC5 link建立请求;
发送请求响应消息#1。可选地,所述请求响应消息#1中包含以下至少一项:第二原因值,目标UE-1的信息。其中,所述第二原因值指示以下之一:PC5链路释放错误;与目标终端无PC5 link;不存在的目标终端。
在一些实施方式中,请求消息#1可以是直接链路修改请求消息,响应消息#1可以是直接链路修改拒绝消息,其中,所述直接链路修改拒绝消息携带第二原因值和/或所述目标UE-1的层2 ID,所述第二原因值指示不存在的目标终端。
需要说明的是,上述执行与目标UE-1的链路修改过程或链路释放过程,可以包括步骤2a,向目标UE-1发送请求消息#2,以及步骤2b,从目标UE-1接收响应消息#2。
其中,所述执行与目标UE-1相关的链路修改过程或链路释放过程,包括以下至少一项:
保留与所述源端UE的PC5单播连接,删除与所述目标UE-1的PC5 context;
保留与所述源端UE的PC5单播连接,删除所述目标UE-1的PC5 Qos flow;
保留与所述源端UE的PC5单播连接,释放所述目标UE-1的PC5连接;
释放与所述源端UE的PC5单播连接,删除所述目标UE-1的PC5 context;
释放与所述源端UE的PC5单播连接,删除所述目标UE-1的PC5 Qos flow;
释放与所述源端UE的PC5单播连接,释放所述目标UE-1的PC5连接。
值得说明的是,上述PC5单播连接,即单播模式的PC5直接链路(unicast mode PC5direct link)。
步骤3.中继UE发送响应消息#1给源端UE。
若请求消息#1是PC5链路释放请求消息,则回复PC5连接释放接受消息;
若请求消息#1是PC5链路修改请求消息请求,则回复PC5链路修改接受消息;
若请求消息#1是是一个专用的PC5-S消息,则回复对应的PC5-S接受消息。
如图17a所示,以删除中继UE与UE-1的连接为例,此时中继UE删除与目标UE-1的PC5连接,保持与目标UE-2、目标UE-3的连接。
场景二:中继UE在接收源端UE的PC5 link释放请求后,发送请求消息给目标UE,目标UE根据请求消息执行对应的PC5 link处理。
如图17b所示,目标UE与中继UE的PC5 link被源端UE-1,源端UE-2和源端UE-3共享。当源端UE-3不再需要和目标UE执行U2U中继通信时,可以包括如下步骤:
步骤1.源端UE-3发送请求消息#1。
其中,上述请求消息#1可以参见上一实施例的相关说明,在此不做赘述。
步骤2.中继UE获取第一请求消息,执行第一目标操作。
其中,该第二目标操作包括如下至少一项:
在请求消息#1中包含了目标UE的信息的情况下,执行与目标UE相关的link链路修改过程或链路释放过程;
在请求消息#1中包含了目标UE的信息,而目标UE与中继UE之间不存在PC5 link,或者,请求消息#1中未包含目标UE的信息的情况下,执行以下一项:
执行与目标UE相关的发现过程和PC5 link建立请求;
发送请求响应消息#1。可选地,所述请求响应消息#1中包含以下至少一项:第二原 因值,目标UE的信息。其中,所述第二原因值指示以下之一:PC5链路释放错误;与目标终端无PC5 link;不存在的目标终端。
需要说明的是,上述执行与目标UE-1的链路修改过程或链路释放过程,可以包括步骤2a,向目标UE发送请求消息#2,以及步骤2b,从目标UE接收响应消息#2。
在一些可选的实施例中,中继UE可以向目标UE发送请求消息#2,该请求消息#2可以包括如下至少一项:
中继UE的信息;
源端UE-3的信息;
指示信息#2,所述指示信息#2与所述源端UE-3有关,例如,可以用于指示以下至少一项:
目标UE释放与源端UE-3的端到端U2U中继链接;
目标UE删除与源端UE-3的QoS flow。
其中,所述执行与目标UE相关的链路修改过程或链路释放过程可以包括以下至少一项:
释放与所述源端UE-3的PC5单播连接,保留与目标UE的PC5连接;
释放与所述源端UE-3的PC5单播连接,删除所述目标UE相关的PC5 context;
释放与所述源端UE-3的PC5单播连接,删除所述目标UE相关的PC5 Qos flow;
释放与所述源端UE-3的PC5单播连接,释放与所述目标UE的PC5连接。
步骤3.中继UE发送响应消息#1给源端UE-3。
需要说明的是,本申请实施例提供的链路处理方法,执行主体可以为链路处理装置,或者,该链路处理装置中的用于执行链路处理方法的控制模块。本申请实施例中以链路处理装置执行链路处理方法为例,说明本申请实施例提供的链路处理装置。
请参见图18,图18是本申请实施例提供的一种链路处理装置的结构图,该链路处理装置可以应用于中继终端,如图18所示,链路处理装置1800包括:
第一获取模块1801,用于获取第一信息;
第一处理模块1802,用于基于第一信息,建立或修改第一链路;
其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一信息包括如下至少一项:
所述第三终端与所述中继终端之间的通信链路的信息;
第一指示信息;
第二指示信息;
所述第一终端的信息;
所述第二终端的信息;
服务质量QoS信息;
其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
可选地,所述第一链路包括第三链路和第四链路中的至少一者;其中,所述第三链路为所述第一终端与所述中继终端之间的通信链路,所述第四链路为所述中继终端与所述第二终端之间的通信链路;
所述第二链路包括第五链路和第六链路中的至少一者;其中,所述第五链路为所述第三终端与所述中继终端之间的通信链路,所述第六链路为所述中继终端与所述第四终端之间的通信链路。
可选地,在所述第一链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
和/或,
在所述第一链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
可选地,在所述第二链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
和/或,
在所述第二链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
可选地,所述第一终端的信息或所述第二终端的信息包括如下至少一项:
所述第一终端或所述第二终端的终端标识;
所述第一终端或所述第二终端的应用层标识;
所述第一终端或所述第二终端的互联网协议IP地址;
所述第一终端或所述第二终端的媒体接入控制MAC地址;
所述第一终端或所述第二终端的层2标识。
可选地,所述QoS信息包括如下至少一项:
直连通信接口PC5 QoS流标识;
PC5 QoS参数;
邻近服务标识ProSe ID;
操作码;
PC5 QoS规则。
可选地,所述第一处理模块具体用于:
在所述第三终端为所述第一终端的情况下,建立所述第四链路,其中,所述第三链路与所述第五链路为相同的通信链路;
在所述第三终端为所述第二终端的情况下,建立所述第三链路,其中,所述第四链路与所述第五链路为相同的通信链路。
可选地,所述第一获取模块具体用于:
从所述第一终端接收第一请求消息,所述第一请求消息包括所述第一信息;
其中,所述第一请求消息用于请求建立或修改所述第一链路。
可选地,所述第一请求消息为第一直接链路建立请求消息。
可选地,所述装置还包括:
第一发送模块,用于在所述接收所述第一直接链路建立请求消息之后,基于所述第一直接链路建立请求消息,向所述第二终端发送第一直接链路修改请求消息,所述第一直接链路修改请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
QoS信息;
所述第一终端的信息。
可选地,所述装置还包括如下至少一项:
第一接收模块,用于接收所述第二终端发送的第一直接链路修改接受消息;
第二发送模块,用于向所述第一终端发送第一直接链路建立接受消息;
其中,所述第一直接链路修改接受消息包括第一指示信息,和/或,所述第一直接链路建立接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
可选地,所述装置还包括:
在所述接收所述第一直接链路建立请求消息之后,第三发送模块,用于基于所述第一直接链路建立请求消息,向所述第二终端发送第二直接链路建立请求消息,所述第二直接链路建立请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
所述第一终端的信息。
可选地,所述装置还包括如下至少一项:
第二接收模块,用于从所述第二终端接收第二直接链路建立接受消息;
第四发送模块,用于向所述第一终端发送第三直接链路建立接受消息;
其中,所述第二直接链路建立接受消息包括第一指示信息,和/或,所述第三直接链路建立接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
可选地,所述第一请求消息为第二直接链路修改请求消息。
可选地,所述装置还包括:
第五发送模块,用于在所述接收所述第二直接链路修改请求消息之后,基于所述第二直接链路修改请求消息,向所述第二终端发送第三直接链路建立请求消息。
可选地,所述第三直接链路建立请求消息包括如下至少一项:
所述第一终端的信息;
第一指示信息,用于指示所述第一链路支持或不支持共享。
可选地,所述装置还包括如下至少一项:
第三接收模块,用于接收所述第二终端发送的第四直接链路建立接受消息;
第六发送模块,用于向所述第一终端发送第二直接链路修改接受消息;
其中,所述第四直接链路建立接受消息包括第一指示信息,和/或,所述第二直接链路修改接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
可选地,所述装置还包括:
第二处理模块,用于在满足第一条件的情况下,拒绝建立所述第一链路;
其中,所述第一条件包括如下至少一项:
所述中继终端接收到直接链路建立拒绝消息;
所述中继终端接收到直接链路修改拒绝消息;
所述第一链路或所述第二链路不支持共享;
所述中继终端无法基于QoS信息修改所述中继终端与所述第三终端之间的通信链路。
可选地,所述直接链路建立拒绝消息包括第一原因值,和/或,所述直接链路修改拒绝消息包括第一原因值。
可选地,所述第一原因值用于指示链路不支持共享。
可选地,所述装置还包括:
第四接收模块,用于接收第二请求消息;
其中,所述第二请求消息用于请求建立或修改所述第二链路。
可选地,所述第二请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
可选地,所述装置还包括:
第五接收模块,用于接收用于响应所述第二请求消息的第一响应消息,所述第一响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
可选地,所述装置还包括:
第三处理模块,用于在满足第二条件的情况下,修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者 所述第六终端还基于所述中继终端与第七终端通信;
其中,所述第二条件包括如下至少一项:
接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;
所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;
所述中继终端处于拥塞状态。
可选地,所述第三请求消息包括如下至少一项:
所述第五终端的信息;
第八终端的信息;
默认终端的信息;
第三指示信息;
其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端,所述第三指示信息用于指示如下至少一项:
所述中继终端释放所述第七链路;
所述中继终端修改或删除所述第七链路中的QoS流。
可选地,所述第五终端的信息或所述第八终端的信息包括如下至少一项:
所述第五终端或所述第八终端的终端标识;
所述第五终端或所述第八终端的应用层标识;
所述第五终端或所述第八终端的IP地址;
所述第五终端或所述第八终端的MAC地址;
所述第五终端或所述第八终端的层2标识。
可选地,所述装置还包括:
第七发送模块,用于向第九终端发送第一通知消息;
其中,所述第一通知消息用于通知如下至少一项:
第十终端与所述中继终端之间的通信链路已经释放;
删除所述第十终端或所述第九终端相关的PC5上下文;
修改或删除所述第十终端或所述第九终端与所述中继终端之间的QoS流;
修改或释放所述第九终端与所述中继终端之间的通信链路;
所述第十终端为所述第五终端或所述第六终端,所述第九终端包括与所述第十终端基于所述中继终端进行通信的至少一个终端。
可选地,所述第三处理模块具体用于如下至少一项:
在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六 终端存在第八链路,则修改或释放所述第八链路;
在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端不存在第八链路,则执行第一操作;
在所述第三请求消息不包含所述第六终端的信息或包含默认终端的信息的情况下,则执行第二操作;
其中,所述第七链路为所述第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,所述第八链路为所述中继终端与所述第六终端之间的通信链路,所述第一操作包括如下至少一项:
执行与所述第六终端相关的终端到终端发现过程;
与所述第六终端建立第八链路;
发送第二响应消息,所述第二响应消息用于指示拒绝修改或删除所述第八链路;
所述第二操作包括如下至少一项:释放所有与所述第五终端有关的通信链路;删除所有与所述第五终端有关的QoS流。
可选地,所述第二响应消息包含如下至少一项:第二原因值;所述第六终端的信息。
可选地,所述第二原因值包括如下至少一项:
通信链路释放错误;
与目标终端之间无通信链路;
不存在的目标终端。
可选地,所述第三处理模块具体用于如下至少一项:
修改或者释放所述中继终端与所述第五终端的通信链路;
删除所述第六终端相关的PC5上下文;
修改或删除所述第六终端与所述中继终端之间的QoS流;
释放所述第六终端与所述中继终端之间的通信链路。
可选地,所述第三处理模块具体用于如下至少一项:
修改或释放所述中继终端与所述第六终端的通信链路;
删除所述第五终端相关的PC5上下文;
修改或删除所述第五终端与所述中继终端之间的QoS流;
释放所述第五终端与所述中继终端之间的通信链路。
可选地,所述第三处理模块具体用于如下至少一项:
修改或删除所述第五终端相关的PC5上下文;
修改或删除所述第五终端与所述中继终端之间的QoS流;
释放所述第五终端与所述中继终端之间的通信链路。
可选地,所述装置还包括:
第八发送模块,用于向所述第六终端发送第二通知消息;
其中,所述第二通知消息用于通知如下至少一项:
所述第五终端与所述中继终端之间的通信链路已经释放;
删除所述第五终端或所述第六终端相关的PC5上下文;
修改或删除所述第五终端或所述第六终端与所述中继终端之间的QoS流;
修改或释放所述第六终端与所述中继终端之间的通信链路。
可选地,所述第三处理模块具体用于:
基于第二信息,修改或释放所述第七链路;
其中,所述第二信息包括如下至少一项:
所述第七链路支持或不支持共享;
所述中继终端与所述第五终端之间存在或不存在通信链路;
所述中继终端与第八终端之间存在或不存在通信链路;
其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端。
本申请实施例中的链路处理装置可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。
本申请实施例提供的链路处理装置能够实现图7的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。
请参见图19,图19是本申请实施例提供的一种链路处理装置的结构图,该链路处理装置可以应用于第一终端。如图19所示,链路处理装置1900包括:
第一发送模块1901,用于向中继终端发送第一请求消息;
其中,所述第一请求消息用于请求建立或修改第一链路,所述第一链路为所述第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一请求消息包括第一信息,所述第一信息包括如下至少一项:
所述第三终端与所述中继终端之间的通信链路的信息;
第一指示信息;
第二指示信息;
所述第一终端的信息;
所述第二终端的信息;
服务质量QoS信息;
其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
可选地,所述第一链路包括第三链路和第四链路中的至少一者;其中,所述第三链路为所述第一终端与所述中继终端之间的通信链路,所述第四链路为所述中继终端与所述第二终端之间的通信链路;
所述第二链路包括第五链路和第六链路中的至少一者;其中,所述第五链路为所述第三终端与所述中继终端之间的通信链路,所述第六链路为所述中继终端与所述第四终端之间的通信链路。
可选地,在所述第一链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
和/或,
在所述第一链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
可选地,在所述第二链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
和/或,
在所述第二链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
可选地,所述第一终端的信息或所述第二终端的信息包括如下至少一项:
所述第一终端或所述第二终端的终端标识;
所述第一终端或所述第二终端的应用层标识;
所述第一终端或所述第二终端的互联网协议IP地址;
所述第一终端或所述第二终端的媒体接入控制MAC地址;
所述第一终端或所述第二终端的层2标识。
可选地,所述QoS信息包括如下至少一项:
直连通信接口PC5 QoS流标识;
PC5 QoS参数;
邻近服务标识ProSe ID;
操作码;
PC5 QoS规则。
可选地,所述第一请求消息为第一直接链路建立请求消息;所述装置还包括第一接收模块,具体用于如下一项:
从所述中继终端接收第一直接链路建立接受消息,其中,所述第一直接链路建立接受 消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享;
从所述中继终端接收第三直接链路建立接受消息,其中,所述第三直接链路建立接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
可选地,所述第一请求消息为第二直接链路修改请求消息;所述装置还包括第二发送模块,具体用于:
从所述中继终端接收第二直接链路修改接受消息,其中,所述第二直接链路修改接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
可选地,所述装置还包括第二接收模块,具体用于如下一项:
从所述中继终端接收直接链路建立拒绝消息;
从所述中继终端接收直接链路修改拒绝消息;
所述直接链路建立拒绝消息包括第一原因值,和/或,所述直接链路修改拒绝消息包括第一原因值。
可选地,所述第一原因值用于指示链路不支持共享。
可选地,所述装置还包括如下一项:
第四发送模块,用于向所述中继终端发送第二请求消息,所述第二请求消息用于请求建立或修改所述第二链路;
第四接收模块,用于从所述中继终端接收第四请求消息,所述第二请求消息用于请求建立或修改所述第二链路。
可选地,所述第二请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
或者,所述第四请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
可选地,所述装置还包括如下一项:
第五接收模块,用于从所述中继终端接收响应所述第二请求消息的第三响应消息,所述第三响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
第六接收模块,用于向所述中继终端发送响应于所述第四请求消息的第四响应消息,所述第四响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
本申请实施例中的链路处理装置可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。
本申请实施例提供的链路处理装置能够实现图10的方法实施例实现的各个过程,并 达到相同的技术效果,为避免重复,这里不再赘述。
请参见图20,图20是本申请实施例提供的一种链路处理装置的结构图,该链路处理装置可以应用于第二终端。如图20所示,链路处理装置2000包括:
执行模块2001,用于执行第三操作,所述第三操作包括如下一项:
从中继终端接收第一直接链路修改请求消息,用于请求修改第一链路;
从中继终端接收第二直接链路建立请求消息或者第三直接链路建立请求消息,用于请求建立第一链路;
其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
所述第一直接链路修改请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
服务质量QoS信息;
所述第一终端的信息;
所述第二直接链路建立请求消息或者第三直接链路建立请求消息包括如下至少一项:
第一指示信息,用于指示所述第一链路支持或不支持共享;
所述第一终端的信息。
可选地,所述第一终端的信息包括如下至少一项:
所述第一终端的终端标识;
所述第一终端的应用层标识;
所述第一终端的互联网协议IP地址;
所述第一终端的媒体接入控制MAC地址;
所述第一终端的层2标识。
可选地,所述QoS信息包括如下至少一项:
直连通信接口PC5 QoS流标识;
PC5 QoS参数;
邻近服务标识ProSe ID;
操作码;
PC5 QoS规则。
可选地,所述装置还包括第一发送模块,具体用于如下一项:
向所述中继终端发送第一直接链路修改接受消息,其中,所述第一直接链路修改接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享;
向所述中继终端发送第二直接链路建立接受消息或者第四直接链路建立接受消息,其中,所述第二直接链路建立接受消息或者第四直接链路建立接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享。
可选地,所述装置还包括第二发送模块,具体用于如下一项:
向所述中继终端发送直接链路修改拒绝消息;
向所述中继终端发送直接链路建立拒绝消息;
其中,所述直接链路修改拒绝消息和/或直接链路建立拒绝消息包括第一原因值。
可选地,所述第一原因值用于指示链路不支持共享。
可选地,所述装置还包括如下一项:
第三发送模块,用于向所述中继终端发送第二请求消息,所述第二请求消息用于请求建立或修改第二链路;
第一接收模块,用于从所述中继终端接收第四请求消息,所述第四请求消息用于请求建立或修改第二链路;
其中,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
可选地,所述第二请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
或者,所述第四请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
可选地,所述装置还包括如下一项:
第二接收模块,用于从所述中继终端接收响应所述第二请求消息的第三响应消息,所述第三响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
第四发送模块,用于向所述中继终端发送响应于所述第四请求消息的第四响应消息,所述第四响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享。
本申请实施例中的链路处理装置可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。
本申请实施例提供的链路处理装置能够实现图11的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。
请参见图21,图21是本申请实施例提供的一种链路处理装置的结构图,该链路处理装置可以应用于中继终端。如图21所示,链路处理装置2100包括:
处理模块2101,用于在满足第二条件的情况下,修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或 者所述第六终端还基于所述中继终端与第七终端通信;
其中,所述第二条件包括如下至少一项:
接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;
所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;
所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;
所述中继终端处于拥塞状态。
可选地,所述第三请求消息包括如下至少一项:
所述第五终端的信息;
第八终端的信息;
默认终端的信息;
第三指示信息;
其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端,所述第三指示信息用于指示如下至少一项:
所述中继终端释放所述第七链路;
所述中继终端修改或删除所述第七链路中的QoS流。
可选地,所述第五终端的信息或所述第八终端的信息包括如下至少一项:
所述第五终端或所述第八终端的终端标识;
所述第五终端或所述第八终端的应用层标识;
所述第五终端或所述第八终端的IP地址;
所述第五终端或所述第八终端的MAC地址;
所述第五终端或所述第八终端的层2标识。
可选地,所述装置还包括:
第一发送模块,用于向第九终端发送第一通知消息;
其中,所述第一通知消息用于通知如下至少一项:
第十终端与所述中继终端之间的通信链路已经释放;
删除所述第十终端或所述第九终端相关的PC5上下文;
修改或删除所述第十终端或所述第九终端与所述中继终端之间的QoS流;
修改或释放所述第九终端与所述中继终端之间的通信链路;
所述第十终端为所述第五终端或所述第六终端,所述第九终端包括与所述第十终端基于所述中继终端进行通信的至少一个终端。
可选地,所述处理模块具体用于如下至少一项:
在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六 终端存在第八链路,则修改或释放所述第八链路;
在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端不存在第八链路,则执行第一操作;
在所述第三请求消息不包含所述第六终端的信息或包含默认终端的信息的情况下,则执行第二操作;
其中,所述第七链路为所述第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,所述第八链路为所述中继终端与所述第六终端之间的通信链路,所述第一操作包括如下至少一项:
执行与所述第六终端相关的终端到终端发现过程;
与所述第六终端建立第八链路;
发送第二响应消息,所述第二响应消息用于指示拒绝修改或删除所述第八链路;
所述第二操作包括如下至少一项:释放所有与所述第五终端有关的通信链路;删除所有与所述第五终端有关的QoS流。
可选地,所述第二响应消息包含如下至少一项:第二原因值;所述第六终端的信息。
可选地,所述第二原因值包括如下至少一项:
通信链路释放错误;
与目标终端之间无通信链路;
不存在的目标终端。
可选地,所述处理模块具体用于如下至少一项:
修改或者释放所述中继终端与所述第五终端的通信链路;
删除所述第六终端相关的PC5上下文;
修改或删除所述第六终端与所述中继终端之间的QoS流;
释放所述第六终端与所述中继终端之间的通信链路。
可选地,所述处理模块具体用于如下至少一项:
修改或释放所述中继终端与所述第六终端的通信链路;
删除所述第五终端相关的PC5上下文;
修改或删除所述第五终端与所述中继终端之间的QoS流;
释放所述第五终端与所述中继终端之间的通信链路。
可选地,所述处理模块具体用于如下至少一项:
修改或删除所述第五终端相关的PC5上下文;
修改或删除所述第五终端与所述中继终端之间的QoS流;
释放所述第五终端与所述中继终端之间的通信链路。
可选地,所述装置还包括:
第二发送模块,用于向所述第六终端发送第二通知消息;
其中,所述第二通知消息用于通知如下至少一项:
所述第五终端与所述中继终端之间的通信链路已经释放;
删除所述第五终端或所述第六终端相关的PC5上下文;
修改或删除所述第五终端或所述第六终端与所述中继终端之间的QoS流;
修改或释放所述第六终端与所述中继终端之间的通信链路。
可选地,所述处理模块具体用于:
基于第二信息,修改或释放所述第七链路;
其中,所述第二信息包括如下至少一项:
所述第七链路支持或不支持共享;
所述中继终端与所述第五终端之间存在或不存在通信链路;
所述中继终端与第八终端之间存在或不存在通信链路;
其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端。
本申请实施例中的链路处理装置可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。
本申请实施例提供的链路处理装置能够实现图14的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。
请参见图22,图22是本申请实施例提供的一种链路处理装置的结构图,该链路处理装置可以应用于第五终端。如图22所示,链路处理装置2200包括:
第一发送模块2201,用于向中继终端发送第三请求消息,其中,所述第三请求消息用于请求修改或释放第七链路,所述第七链路为所述第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
可选地,所述第三请求消息包括如下至少一项:
所述第五终端的信息;
第八终端的信息;
默认终端的信息;
第三指示信息;
其中,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端,所述第三指示信息用于指示如下至少一项:
所述中继终端释放所述第七链路;
所述中继终端修改或删除所述第七链路中的QoS流。
可选地,所述第五终端的信息或所述第八终端的信息包括如下至少一项:
所述第五终端或所述第八终端的终端标识;
所述第五终端或所述第八终端的应用层标识;
所述第五终端或所述第八终端的IP地址;
所述第五终端或所述第八终端的MAC地址;
所述第五终端或所述第八终端的层2标识。
可选地,所述装置还包括:
第一接收模块,用于从所述中继终端接收第二响应消息,所述第二响应消息用于指示拒绝修改或删除所述中继终端与所述第六终端之间的通信链路。
可选地,所述第二响应消息包含如下至少一项:第二原因值;所述第六终端的信息。
可选地,所述第二原因值包括如下至少一项:
通信链路释放错误;
与目标终端之间无通信链路;
不存在的目标终端。
本申请实施例中的链路处理装置可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。
本申请实施例提供的链路处理装置能够实现图15的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。
请参见图23,图23是本申请实施例提供的一种链路处理装置的结构图,该链路处理装置可以应用于第六终端。如图23所示,链路处理装置2300包括:
第一接收模块2301,用于从中继终端接收第五请求消息,其中,所述第五请求消息用于请求释放或修改第七链路,所述第七链路为第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
可选地,所述第五请求消息包括如下至少一项:
所述第五终端的信息;
所述中继终端的信息;
默认终端的信息;
第四指示信息;
其中,所述第四指示信息用于指示如下至少一项:
所述第六终端释放所述第六终端与所述中继终端之间的通信链路;
所述第六终端修改或删除所述第六终端与所述中继终端之间的通信链路的QoS流。
可选地,所述第五终端的信息或所述中继终端的信息包括如下至少一项:
所述第五终端或所述中继终端的终端标识;
所述第五终端或所述中继终端的应用层标识;
所述第五终端或所述中继终端的IP地址;
所述第五终端或所述中继终端的MAC地址;
所述第五终端或所述中继终端的层2标识。
本申请实施例中的链路处理装置可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。
本申请实施例提供的链路处理装置能够实现图16的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。
可选地,如图24所示,本申请实施例还提供一种通信设备2400,包括处理器2401和存储器2402,存储器2402上存储有可在所述处理器2401上运行的程序或指令,例如,该通信设备2400为终端时,该程序或指令被处理器2401执行时实现上述链路处理方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例还提供一种终端,包括处理器和通信接口,当所述终端为中继终端时,所述处理器用于获取第一信息,并基于第一信息,建立或修改第一链路;其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;所述第一信息包括如下至少一项:所述第三终端与所述中继终端之间的通信链路的信息;第一指示信息;第二指示信息;所述第一终端的信息;所述第二终端的信息;服务质量QoS信息;其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路;
或者,当所述终端为第一终端时,所述通信接口用于向中继终端发送第一请求消息;其中,所述第一请求消息用于请求建立或修改第一链路,所述第一链路为所述第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;所述第一请求消息包括第一信息,所述第一信息包括如下至少一项:所述第三终端与所述中继终端之间的通信链路的信息;第一指示信息;第二指示信息;所述第一终端的信息;所述第二终端的信息;服务质量QoS信息;其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与 所述第四终端之间且基于所述中继终端进行通信的通信链路;
或者,当所述终端为第二终端时,所述通信接口用于执行第三操作,所述第三操作包括如下一项:从中继终端接收第一直接链路修改请求消息,用于请求修改第一链路;从中继终端接收第二直接链路建立请求消息或者第三直接链路建立请求消息,用于请求建立第一链路;其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;所述第一直接链路修改请求消息包括如下至少一项:第一指示信息,用于指示所述第一链路支持或不支持共享;服务质量QoS信息;所述第一终端的信息;所述第二直接链路建立请求消息或者第三直接链路建立请求消息包括如下至少一项:第一指示信息,用于指示所述第一链路支持或不支持共享;所述第一终端的信息;
或者,当所述终端为中继终端时,所述处理器用于在满足第二条件的情况下,修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
其中,所述第二条件包括如下至少一项:接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;所述中继终端处于拥塞状态;
当所述终端为第五终端时,所述通信接口用于向中继终端发送第三请求消息,其中,所述第三请求消息用于请求修改或释放第七链路,所述第七链路为所述第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
或者,当所述终端为第六终端时,所述通信接口用于从中继终端接收第五请求消息,其中,所述第五请求消息用于请求释放或修改第七链路,所述第七链路为第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
该终端实施例与上述终端侧方法实施例对应,上述方法实施例的各个实施过程和实现方式均可适用于该终端实施例中,且能达到相同的技术效果。具体地,图25为实现本申请实施例的一种终端的硬件结构示意图。
该终端2500包括但不限于:射频单元2501、网络模块2502、音频输出单元2503、输入单元2504、传感器2505、显示单元2506、用户输入单元2507、接口单元2508、存 储器2509以及处理器2510等中的至少部分部件。
本领域技术人员可以理解,终端2500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器2510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图25中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
应理解的是,本申请实施例中,输入单元2504可以包括图形处理单元(Graphics Processing Unit,GPU)25041和麦克风25042,图形处理器25041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元2506可包括显示面板25061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板25061。用户输入单元2507包括触控面板25071以及其他输入设备25072中的至少一种。触控面板25071,也称为触摸屏。触控面板25071可包括触摸检测装置和触摸控制器两个部分。其他输入设备25072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
本申请实施例中,射频单元2501接收来自网络侧设备的下行数据后,可以传输给处理器2510进行处理;另外,射频单元2501可以向网络侧设备发送上行数据。通常,射频单元2501包括但不限于天线、放大器、收发信机、耦合器、低噪声放大器、双工器等。
存储器2509可用于存储软件程序或指令以及各种数据。存储器2509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器2509可以包括易失性存储器或非易失性存储器,或者,存储器2509可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器2509包括但不限于这些和任意其它适合类型的存储器。
处理器2510可包括一个或多个处理单元;可选地,处理器2510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器2510中。
其中,当所述终端为中继终端时,所述处理器2510用于获取第一信息,并基于第一信息,建立或修改第一链路;其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;所述第一信息包括如下至少一项:所述第三终端与所述中继终端之间的通信链路的信息;第一指示信息;第二指示信息;所述第一终端的信息;所述第二终端的信息;服务质量QoS信息;其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路;
或者,当所述终端为第一终端时,所述射频单元2501用于向中继终端发送第一请求消息;其中,所述第一请求消息用于请求建立或修改第一链路,所述第一链路为所述第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;所述第一请求消息包括第一信息,所述第一信息包括如下至少一项:所述第三终端与所述中继终端之间的通信链路的信息;第一指示信息;第二指示信息;所述第一终端的信息;所述第二终端的信息;服务质量QoS信息;其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路;
或者,当所述终端为第二终端时,所述射频单元2501用于执行第三操作,所述第三操作包括如下一项:从中继终端接收第一直接链路修改请求消息,用于请求修改第一链路;从中继终端接收第二直接链路建立请求消息或者第三直接链路建立请求消息,用于请求建立第一链路;其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;所述第一直接链路修改请求消息包括如下至少一项:第一指示信息,用于指示所述第一链路支持或不支持共享;服务质量QoS信息;所述第一终端的信息;所述第二直接链路建立请求消息或者第三直接链路建立请求消息包括如下至少一项:第一指示信息,用于指示所述第一链路支持或不支持共享;所述第一终端的信息;
或者,当所述终端为中继终端时,所述处理器2510用于在满足第二条件的情况下,修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
其中,所述第二条件包括如下至少一项:接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;所述中继终 端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;所述中继终端处于拥塞状态;
当所述终端为第五终端时,所述射频单元2501用于向中继终端发送第三请求消息,其中,所述第三请求消息用于请求修改或释放第七链路,所述第七链路为所述第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
或者,当所述终端为第六终端时,所述射频单元2501用于从中继终端接收第五请求消息,其中,所述第五请求消息用于请求释放或修改第七链路,所述第七链路为第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
应理解,本申请实施例提供的终端可以实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,在此不做赘述。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述链路处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的终端中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述链路处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。
本申请实施例另提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现上述链路处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例还提供了一种链路处理系统,包括:中继终端、第一终端及第二终端,所述中继终端用于执行如图7及上述各个方法实施例的各个过程,所述第一终端用于执行如图10及上述各个方法实施例的各个过程,所述第二终端用于执行如图11及上述各个方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例还提供了一种链路处理系统,包括:中继终端、第五终端及第六终端,所述中继终端用于执行如图14及上述各个方法实施例的各个过程,所述第五终端用于执行如图15及上述各个方法实施例的各个过程,所述第六终端用于执行如图16及上述各个 方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (86)

  1. 一种链路处理方法,包括:
    中继终端获取第一信息;
    所述中继终端基于所述第一信息,建立或修改第一链路;
    其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
    所述第一信息包括如下至少一项:
    所述第三终端与所述中继终端之间的通信链路的信息;
    第一指示信息;
    第二指示信息;
    所述第一终端的信息;
    所述第二终端的信息;
    服务质量QoS信息;
    其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
  2. 根据权利要求1所述的方法,其中,所述第一链路包括第三链路和第四链路中的至少一者;其中,所述第三链路为所述第一终端与所述中继终端之间的通信链路,所述第四链路为所述中继终端与所述第二终端之间的通信链路;
    所述第二链路包括第五链路和第六链路中的至少一者;其中,所述第五链路为所述第三终端与所述中继终端之间的通信链路,所述第六链路为所述中继终端与所述第四终端之间的通信链路。
  3. 根据权利要求2所述的方法,其中:
    在所述第一链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
    和/或,
    在所述第一链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
  4. 根据权利要求2所述的方法,其中:
    在所述第二链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路 与所述第五链路为相同的通信链路;
    和/或,
    在所述第二链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
  5. 根据权利要求1所述的方法,其中,所述第一终端的信息或所述第二终端的信息包括如下至少一项:
    所述第一终端或所述第二终端的终端标识;
    所述第一终端或所述第二终端的应用层标识;
    所述第一终端或所述第二终端的互联网协议IP地址;
    所述第一终端或所述第二终端的媒体接入控制MAC地址;
    所述第一终端或所述第二终端的层2标识。
  6. 根据权利要求1所述的方法,其中,所述QoS信息包括如下至少一项:
    直连通信接口PC5 QoS流标识;
    PC5 QoS参数;
    邻近服务标识ProSe ID;
    操作码;
    PC5 QoS规则。
  7. 根据权利要求2所述的方法,其中,所述中继终端建立或修改第一链路,包括如下至少一项:
    在所述第三终端为所述第一终端的情况下,所述中继终端建立所述第四链路,其中,所述第三链路与所述第五链路为相同的通信链路;
    在所述第三终端为所述第二终端的情况下,所述中继终端建立所述第三链路,其中,所述第四链路与所述第五链路为相同的通信链路。
  8. 根据权利要求1所述的方法,其中,所述中继终端获取第一信息,包括:
    所述中继终端从所述第一终端接收第一请求消息,所述第一请求消息包括所述第一信息;
    其中,所述第一请求消息用于请求建立或修改所述第一链路。
  9. 根据权利要求8所述的方法,其中,所述第一请求消息为第一直接链路建立请求消息。
  10. 根据权利要求9所述的方法,其中,在所述中继终端接收所述第一直接链路建立请求消息之后,所述方法还包括:
    所述中继终端基于所述第一直接链路建立请求消息,向所述第二终端发送第一直接链路修改请求消息,所述第一直接链路修改请求消息包括如下至少一项:
    所述第一指示信息;
    QoS信息;
    所述第一终端的信息。
  11. 根据权利要求10所述的方法,所述方法还包括如下至少一项:
    所述中继终端接收所述第二终端发送的第一直接链路修改接受消息;
    所述中继终端向所述第一终端发送第一直接链路建立接受消息;
    其中,所述第一直接链路修改接受消息包括所述第一指示信息,和/或,所述第一直接链路建立接受消息包括所述第一指示信息。
  12. 根据权利要求9所述的方法,其中,在所述中继终端接收所述第一直接链路建立请求消息之后,所述方法还包括:
    所述中继终端基于所述第一直接链路建立请求消息,向所述第二终端发送第二直接链路建立请求消息,所述第二直接链路建立请求消息包括如下至少一项:
    第一指示信息,用于指示所述第一链路支持或不支持共享;
    所述第一终端的信息。
  13. 根据权利要求12所述的方法,所述方法还包括如下至少一项:
    所述中继终端从所述第二终端接收第二直接链路建立接受消息;
    所述中继终端向所述第一终端发送第三直接链路建立接受消息;
    其中,所述第二直接链路建立接受消息包括所述第一指示信息,和/或,所述第三直接链路建立接受消息包括所述第一指示信息。
  14. 根据权利要求8所述的方法,其中,所述第一请求消息为第二直接链路修改请求消息。
  15. 根据权利要求14所述的方法,其中,在所述中继终端接收所述第二直接链路修改请求消息之后,所述方法还包括:
    所述中继终端基于所述第二直接链路修改请求消息,向所述第二终端发送第三直接链路建立请求消息。
  16. 根据权利要求15所述的方法,其中,所述第三直接链路建立请求消息包括如下至少一项:
    所述第一终端的信息;
    所述第一指示信息。
  17. 根据权利要求15所述的方法,所述方法还包括如下至少一项:
    所述中继终端接收所述第二终端发送的第四直接链路建立接受消息;
    所述中继终端向所述第一终端发送第二直接链路修改接受消息;
    其中,所述第四直接链路建立接受消息包括所述第一指示信息,和/或,所述第二直接链路修改接受消息包括所述第一指示信息。
  18. 根据权利要求1所述的方法,所述方法还包括:
    在满足第一条件的情况下,所述中继终端拒绝建立所述第一链路;
    其中,所述第一条件包括如下至少一项:
    所述中继终端接收到直接链路建立拒绝消息;
    所述中继终端接收到直接链路修改拒绝消息;
    所述第一链路或所述第二链路不支持共享;
    所述中继终端无法基于QoS信息修改所述中继终端与所述第三终端之间的通信链路。
  19. 根据权利要求18所述的方法,其中,所述直接链路建立拒绝消息包括第一原因值,和/或,所述直接链路修改拒绝消息包括第一原因值。
  20. 根据权利要求19所述的方法,其中,所述第一原因值用于指示链路不支持共享。
  21. 根据权利要求1所述的方法,所述方法还包括:
    所述中继终端接收第二请求消息;
    其中,所述第二请求消息用于请求建立或修改所述第二链路。
  22. 根据权利要求21所述的方法,其中,所述第二请求消息包括所述第二指示信息。
  23. 根据权利要求21所述的方法,所述方法还包括:
    所述中继终端接收用于响应所述第二请求消息的第一响应消息,所述第一响应消息包括所述第二指示信息。
  24. 根据权利要求1至23中任一项所述的方法,所述方法还包括:
    在满足第二条件的情况下,所述中继终端修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
    其中,所述第二条件包括如下至少一项:
    接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;
    所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;
    所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;
    所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;
    所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;
    所述中继终端处于拥塞状态。
  25. 根据权利要求24所述的方法,其中,所述第三请求消息包括如下至少一项:
    所述第五终端的信息;
    第八终端的信息;
    默认终端的信息;
    第三指示信息;
    其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端,所述第三指示信息用于指示如下至少一项:
    所述中继终端释放所述第七链路;
    所述中继终端修改或删除所述第七链路中的QoS流。
  26. 根据权利要求25所述的方法,其中,所述第五终端的信息或所述第八终端的信息包括如下至少一项:
    所述第五终端或所述第八终端的终端标识;
    所述第五终端或所述第八终端的应用层标识;
    所述第五终端或所述第八终端的IP地址;
    所述第五终端或所述第八终端的MAC地址;
    所述第五终端或所述第八终端的层2标识。
  27. 根据权利要求24至26中任一项所述的方法,所述方法还包括:
    所述中继终端向第九终端发送第一通知消息;
    其中,所述第一通知消息用于通知如下至少一项:
    第十终端与所述中继终端之间的通信链路已经释放;
    删除所述第十终端或所述第九终端相关的PC5上下文;
    修改或删除所述第十终端或所述第九终端与所述中继终端之间的QoS流;
    修改或释放所述第九终端与所述中继终端之间的通信链路;
    所述第十终端为所述第五终端或所述第六终端,所述第九终端包括与所述第十终端基于所述中继终端进行通信的至少一个终端。
  28. 根据权利要求24至26中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括如下至少一项:
    在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端存在第八链路,则所述中继终端修改或释放所述第八链路;
    在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端不存在第八链路,则所述中继终端执行第一操作;
    在所述第三请求消息不包含所述第六终端的信息或包含默认终端的信息的情况下,则所述中继终端执行第二操作;
    其中,所述第七链路为所述第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,所述第八链路为所述中继终端与所述第六终端之间的通信链路,所述第一操作包括如下至少一项:
    执行与所述第六终端相关的终端到终端发现过程;
    与所述第六终端建立第八链路;
    发送第二响应消息,所述第二响应消息用于指示拒绝修改或删除所述第八链路;
    所述第二操作包括如下至少一项:释放所有与所述第五终端有关的通信链路;删除所有与所述第五终端有关的QoS流。
  29. 根据权利要求28所述的方法,其中,所述第二响应消息包含如下至少一项:第 二原因值;所述第六终端的信息。
  30. 根据权利要求29所述的方法,其中,所述第二原因值包括如下至少一项:
    通信链路释放错误;
    与目标终端之间无通信链路;
    不存在的目标终端。
  31. 根据权利要求24至26中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括如下至少一项:
    所述中继终端修改或释放所述中继终端与所述第五终端的通信链路;
    所述中继终端删除所述第六终端相关的PC5上下文;
    所述中继终端修改或删除所述第六终端与所述中继终端之间的QoS流;
    所述中继终端释放所述第六终端与所述中继终端之间的通信链路。
  32. 根据权利要求24至26中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括如下至少一项:
    所述中继终端修改或释放所述中继终端与所述第六终端的通信链路;
    所述中继终端删除所述第五终端相关的PC5上下文;
    所述中继终端修改或删除所述第五终端与所述中继终端之间的QoS流;
    所述中继终端释放所述第五终端与所述中继终端之间的通信链路。
  33. 根据权利要求24至26中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括如下至少一项:
    所述中继终端修改或删除所述第五终端相关的PC5上下文;
    所述中继终端修改或删除所述第五终端与所述中继终端之间的QoS流;
    所述中继终端释放所述第五终端与所述中继终端之间的通信链路。
  34. 根据权利要求33所述的方法,所述方法还包括:
    所述中继终端向所述第六终端发送第二通知消息;
    其中,所述第二通知消息用于通知如下至少一项:
    所述第五终端与所述中继终端之间的通信链路已经释放;
    删除所述第五终端或所述第六终端相关的PC5上下文;
    修改或删除所述第五终端或所述第六终端与所述中继终端之间的QoS流;
    修改或释放所述第六终端与所述中继终端之间的通信链路。
  35. 根据权利要求24至26中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括:
    所述中继终端基于第二信息,修改或释放所述第七链路;
    其中,所述第二信息包括如下至少一项:
    所述第七链路支持或不支持共享;
    所述中继终端与所述第五终端之间存在或不存在通信链路;
    所述中继终端与第八终端之间存在或不存在通信链路;
    其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端。
  36. 一种链路处理方法,包括:
    第一终端向中继终端发送第一请求消息;
    其中,所述第一请求消息用于请求建立或修改第一链路,所述第一链路为所述第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
    所述第一请求消息包括第一信息,所述第一信息包括如下至少一项:
    所述第三终端与所述中继终端之间的通信链路的信息;
    第一指示信息;
    第二指示信息;
    所述第一终端的信息;
    所述第二终端的信息;
    服务质量QoS信息;
    其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
  37. 根据权利要求36所述的方法,其中,所述第一链路包括第三链路和第四链路中的至少一者;其中,所述第三链路为所述第一终端与所述中继终端之间的通信链路,所述第四链路为所述中继终端与所述第二终端之间的通信链路;
    所述第二链路包括第五链路和第六链路中的至少一者;其中,所述第五链路为所述第三终端与所述中继终端之间的通信链路,所述第六链路为所述中继终端与所述第四终端之间的通信链路。
  38. 根据权利要求37所述的方法,其中:
    在所述第一链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为相同的通信链路;
    和/或,
    在所述第一链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
  39. 根据权利要求37所述的方法,其中:
    在所述第二链路支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路 与所述第五链路为相同的通信链路;
    和/或,
    在所述第二链路不支持共享的情况下,若所述第三终端为所述第一终端,则所述第三链路与所述第五链路为不相同的通信链路,若所述第三终端为所述第二终端,则所述第四链路与所述第五链路为不相同的通信链路。
  40. 根据权利要求36所述的方法,其中,所述第一终端的信息或所述第二终端的信息包括如下至少一项:
    所述第一终端或所述第二终端的终端标识;
    所述第一终端或所述第二终端的应用层标识;
    所述第一终端或所述第二终端的互联网协议IP地址;
    所述第一终端或所述第二终端的媒体接入控制MAC地址;
    所述第一终端或所述第二终端的层2标识。
  41. 根据权利要求36所述的方法,其中,所述QoS信息包括如下至少一项:
    直连通信接口PC5 QoS流标识;
    PC5 QoS参数;
    邻近服务标识ProSe ID;
    操作码;
    PC5 QoS规则。
  42. 根据权利要求36所述的方法,其中,所述第一请求消息为第一直接链路建立请求消息;所述方法还包括如下一项:
    所述第一终端从所述中继终端接收第一直接链路建立接受消息,其中,所述第一直接链路建立接受消息包括所述第一指示信息;
    所述第一终端从所述中继终端接收第三直接链路建立接受消息,其中,所述第三直接链路建立接受消息包括所述第一指示信息。
  43. 根据权利要求36所述的方法,其中,所述第一请求消息为第二直接链路修改请求消息;所述方法还包括:
    所述第一终端从所述中继终端接收第二直接链路修改接受消息,其中,所述第二直接链路修改接受消息包括所述第一指示信息。
  44. 根据权利要求36所述的方法,所述方法还包括如下一项:
    所述第一终端从所述中继终端接收直接链路建立拒绝消息;
    所述第一终端从所述中继终端接收直接链路修改拒绝消息;
    所述直接链路建立拒绝消息包括第一原因值,和/或,所述直接链路修改拒绝消息包括第一原因值。
  45. 根据权利要求44所述的方法,其中,所述第一原因值用于指示链路不支持共享。
  46. 根据权利要求36所述的方法,所述方法还包括如下一项:
    所述第一终端向所述中继终端发送第二请求消息,所述第二请求消息用于请求建立或修改所述第二链路;
    所述第一终端从所述中继终端接收第四请求消息,所述第二请求消息用于请求建立或修改所述第二链路。
  47. 根据权利要求46所述的方法,其中,所述第二请求消息包括所述第二指示信息;
    或者,所述第四请求消息包括所述第二指示信息。
  48. 根据权利要求46所述的方法,所述方法还包括如下一项:
    所述第一终端从所述中继终端接收响应所述第二请求消息的第三响应消息,所述第三响应消息包括所述第二指示信息;
    所述第一终端向所述中继终端发送响应于所述第四请求消息的第四响应消息,所述第四响应消息包括所述第二指示信息。
  49. 一种链路处理方法,包括:
    第二终端执行第三操作,所述第三操作包括如下一项:
    从中继终端接收第一直接链路修改请求消息,用于请求修改第一链路;
    从中继终端接收第二直接链路建立请求消息或者第三直接链路建立请求消息,用于请求建立第一链路;
    其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
    所述第一直接链路修改请求消息包括如下至少一项:
    第一指示信息,用于指示所述第一链路支持或不支持共享;
    服务质量QoS信息;
    所述第一终端的信息;
    所述第二直接链路建立请求消息或者第三直接链路建立请求消息包括如下至少一项:
    第一指示信息,用于指示所述第一链路支持或不支持共享;
    所述第一终端的信息。
  50. 根据权利要求49所述的方法,其中,所述第一终端的信息包括如下至少一项:
    所述第一终端的终端标识;
    所述第一终端的应用层标识;
    所述第一终端的互联网协议IP地址;
    所述第一终端的媒体接入控制MAC地址;
    所述第一终端的层2标识。
  51. 根据权利要求49所述的方法,其中,所述QoS信息包括如下至少一项:
    直连通信接口PC5 QoS流标识;
    PC5 QoS参数;
    邻近服务标识ProSe ID;
    操作码;
    PC5 QoS规则。
  52. 根据权利要求49所述的方法,所述方法还包括如下一项:
    所述第二终端向所述中继终端发送第一直接链路修改接受消息,其中,所述第一直接链路修改接受消息包括第一指示信息,所述第一指示信息用于指示所述第一链路支持或不支持共享;
    所述第二终端向所述中继终端发送第二直接链路建立接受消息或者第四直接链路建立接受消息,其中,所述第二直接链路建立接受消息或者第四直接链路建立接受消息包括所述第一指示信息。
  53. 根据权利要求49所述的方法,所述方法还包括如下一项:
    所述第二终端向所述中继终端发送直接链路修改拒绝消息;
    所述第二终端向所述中继终端发送直接链路建立拒绝消息;
    其中,所述直接链路修改拒绝消息和/或直接链路建立拒绝消息包括第一原因值。
  54. 根据权利要求53所述的方法,其中,所述第一原因值用于指示链路不支持共享。
  55. 根据权利要求49所述的方法,所述方法还包括如下一项:
    所述第二终端向所述中继终端发送第二请求消息,所述第二请求消息用于请求建立或修改第二链路;
    所述第二终端从所述中继终端接收第四请求消息,所述第四请求消息用于请求建立或修改第二链路;
    其中,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
  56. 根据权利要求55所述的方法,其中,所述第二请求消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
    或者,所述第四请求消息包括所述第二指示信息。
  57. 根据权利要求55所述的方法,所述方法还包括如下一项:
    所述第二终端从所述中继终端接收响应所述第二请求消息的第三响应消息,所述第三响应消息包括第二指示信息,所述第二指示信息用于指示所述第二链路支持或不支持共享;
    所述第二终端向所述中继终端发送响应于所述第四请求消息的第四响应消息,所述第四响应消息包括所述第二指示信息。
  58. 一种链路处理方法,包括:
    在满足第二条件的情况下,中继终端修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
    其中,所述第二条件包括如下至少一项:
    接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;
    所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;
    所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;
    所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;
    所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;
    所述中继终端处于拥塞状态。
  59. 根据权利要求58所述的方法,其中,所述第三请求消息包括如下至少一项:
    所述第五终端的信息;
    第八终端的信息;
    默认终端的信息;
    第三指示信息;
    其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端,所述第三指示信息用于指示如下至少一项:
    所述中继终端释放所述第七链路;
    所述中继终端修改或删除所述第七链路中的QoS流。
  60. 根据权利要求59所述的方法,其中,所述第五终端的信息或所述第八终端的信息包括如下至少一项:
    所述第五终端或所述第八终端的终端标识;
    所述第五终端或所述第八终端的应用层标识;
    所述第五终端或所述第八终端的IP地址;
    所述第五终端或所述第八终端的MAC地址;
    所述第五终端或所述第八终端的层2标识。
  61. 根据权利要求58至60中任一项所述的方法,所述方法还包括:
    所述中继终端向第九终端发送第一通知消息;
    其中,所述第一通知消息用于通知如下至少一项:
    第十终端与所述中继终端之间的通信链路已经释放;
    删除所述第十终端或所述第九终端相关的PC5上下文;
    修改或删除所述第十终端或所述第九终端与所述中继终端之间的QoS流;
    修改或释放所述第九终端与所述中继终端之间的通信链路;
    所述第十终端为所述第五终端或所述第六终端,所述第九终端包括与所述第十终端基于所述中继终端进行通信的至少一个终端。
  62. 根据权利要求58至60中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括如下至少一项:
    在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端存在第八链路,则所述中继终端修改或释放所述第八链路;
    在所述第三请求消息包含所述第六终端的信息的情况下,若所述中继终端与所述第六终端不存在第八链路,则所述中继终端执行第一操作;
    在所述第三请求消息不包含所述第六终端的信息或包含默认终端的信息的情况下,则所述中继终端执行第二操作;
    其中,所述第七链路为所述第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,所述第八链路为所述中继终端与所述第六终端之间的通信链路,所述第一操作包括如下至少一项:
    执行与所述第六终端相关的终端到终端发现过程;
    与所述第六终端建立第八链路;
    发送第二响应消息,所述第二响应消息用于指示拒绝修改或删除所述第八链路;
    所述第二操作包括如下至少一项:释放所有与所述第五终端有关的通信链路;删除所有与所述第五终端有关的QoS流。
  63. 根据权利要求62所述的方法,其中,所述第二响应消息包含如下至少一项:第二原因值;所述第六终端的信息。
  64. 根据权利要求63所述的方法,其中,所述第二原因值包括如下至少一项:
    通信链路释放错误;
    与目标终端之间无通信链路;
    不存在的目标终端。
  65. 根据权利要求58至60中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括如下至少一项:
    所述中继终端修改或释放所述中继终端与所述第五终端的通信链路;
    所述中继终端删除所述第六终端相关的PC5上下文;
    所述中继终端修改或删除所述第六终端与所述中继终端之间的QoS流;
    所述中继终端释放所述第六终端与所述中继终端之间的通信链路。
  66. 根据权利要求58至60中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括如下至少一项:
    所述中继终端修改或释放所述中继终端与所述第六终端的通信链路;
    所述中继终端删除所述第五终端相关的PC5上下文;
    所述中继终端修改或删除所述第五终端与所述中继终端之间的QoS流;
    所述中继终端释放所述第五终端与所述中继终端之间的通信链路。
  67. 根据权利要求58至60中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括如下至少一项:
    所述中继终端修改或删除所述第五终端相关的PC5上下文;
    所述中继终端修改或删除所述第五终端与所述中继终端之间的QoS流;
    所述中继终端释放所述第五终端与所述中继终端之间的通信链路。
  68. 根据权利要求67所述的方法,所述方法还包括:
    所述中继终端向所述第六终端发送第二通知消息;
    其中,所述第二通知消息用于通知如下至少一项:
    所述第五终端与所述中继终端之间的通信链路已经释放;
    删除所述第五终端或所述第六终端相关的PC5上下文;
    修改或删除所述第五终端或所述第六终端与所述中继终端之间的QoS流;
    修改或释放所述第六终端与所述中继终端之间的通信链路。
  69. 根据权利要求58至60中任一项所述的方法,其中,所述中继终端修改或释放所述第七链路,包括:
    所述中继终端基于第二信息,修改或释放所述第七链路;
    其中,所述第二信息包括如下至少一项:
    所述第七链路支持或不支持共享;
    所述中继终端与所述第五终端之间存在或不存在通信链路;
    所述中继终端与第八终端之间存在或不存在通信链路;
    其中,所述第五终端为请求发起修改或释放所述第七链路的终端,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端。
  70. 一种链路处理方法,包括:
    第五终端向中继终端发送第三请求消息,其中,所述第三请求消息用于请求修改或释放第七链路,所述第七链路为所述第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
  71. 根据权利要求70所述的方法,其中,所述第三请求消息包括如下至少一项:
    所述第五终端的信息;
    第八终端的信息;
    默认终端的信息;
    第三指示信息;
    其中,所述第八终端为被所述第五终端请求修改或释放所述第七链路的终端,所述第三指示信息用于指示如下至少一项:
    所述中继终端释放所述第七链路;
    所述中继终端修改或删除所述第七链路中的QoS流。
  72. 根据权利要求71所述的方法,其中,所述第五终端的信息或所述第八终端的信息包括如下至少一项:
    所述第五终端或所述第八终端的终端标识;
    所述第五终端或所述第八终端的应用层标识;
    所述第五终端或所述第八终端的IP地址;
    所述第五终端或所述第八终端的MAC地址;
    所述第五终端或所述第八终端的层2标识。
  73. 根据权利要求70所述的方法,所述方法还包括:
    所述第五终端从所述中继终端接收第二响应消息,所述第二响应消息用于指示拒绝修改或删除所述中继终端与所述第六终端之间的通信链路。
  74. 根据权利要求73所述的方法,其中,所述第二响应消息包含如下至少一项:第二原因值;所述第六终端的信息。
  75. 根据权利要求74所述的方法,其中,所述第二原因值包括如下至少一项:
    通信链路释放错误;
    与目标终端之间无通信链路;
    不存在的目标终端。
  76. 一种链路处理方法,包括:
    第六终端从中继终端接收第五请求消息,其中,所述第五请求消息用于请求释放或修改第七链路,所述第七链路为第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
  77. 根据权利要求76所述的方法,其中,所述第五请求消息包括如下至少一项:
    所述第五终端的信息;
    所述中继终端的信息;
    默认终端的信息;
    第四指示信息;
    其中,所述第四指示信息用于指示如下至少一项:
    所述第六终端释放所述第六终端与所述中继终端之间的通信链路;
    所述第六终端修改或删除所述第六终端与所述中继终端之间的通信链路的QoS流。
  78. 根据权利要求77所述的方法,其中,所述第五终端的信息或所述中继终端的信息包括如下至少一项:
    所述第五终端或所述中继终端的终端标识;
    所述第五终端或所述中继终端的应用层标识;
    所述第五终端或所述中继终端的IP地址;
    所述第五终端或所述中继终端的MAC地址;
    所述第五终端或所述中继终端的层2标识。
  79. 一种链路处理装置,应用于中继终端,包括:
    第一获取模块,用于获取第一信息;
    第一处理模块,用于基于第一信息,建立或修改第一链路;
    其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
    所述第一信息包括如下至少一项:
    所述第三终端与所述中继终端之间的通信链路的信息;
    第一指示信息;
    第二指示信息;
    所述第一终端的信息;
    所述第二终端的信息;
    服务质量QoS信息;
    其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
  80. 一种链路处理装置,应用于第一终端,包括:
    第一发送模块,用于向中继终端发送第一请求消息;
    其中,所述第一请求消息用于请求建立或修改第一链路,所述第一链路为所述第一终端与第二终端之间且基于所述中继终端进行通信的通信链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
    所述第一请求消息包括第一信息,所述第一信息包括如下至少一项:
    所述第三终端与所述中继终端之间的通信链路的信息;
    第一指示信息;
    第二指示信息;
    所述第一终端的信息;
    所述第二终端的信息;
    服务质量QoS信息;
    其中,所述第一指示信息用于指示所述第一链路支持或不支持共享,所述第二指示信息用于指示第二链路支持或不支持共享,所述第二链路为所述第三终端与所述第四终端之间且基于所述中继终端进行通信的通信链路。
  81. 一种链路处理装置,应用于第二终端,包括:
    执行模块,用于执行第三操作,所述第三操作包括如下一项:
    从中继终端接收第一直接链路修改请求消息,用于请求修改第一链路;
    从中继终端接收第二直接链路建立请求消息或者第三直接链路建立请求消息,用于请求建立第一链路;
    其中,所述第一链路为第一终端与第二终端之间且基于所述中继终端进行通信的通信 链路,第三终端与第四终端基于所述中继终端进行通信,所述第三终端为所述第一终端或者所述第二终端;
    所述第一直接链路修改请求消息包括如下至少一项:
    第一指示信息,用于指示所述第一链路支持或不支持共享;
    服务质量QoS信息;
    所述第一终端的信息;
    所述第二直接链路建立请求消息或者第三直接链路建立请求消息包括如下至少一项:
    第一指示信息,用于指示所述第一链路支持或不支持共享;
    所述第一终端的信息。
  82. 一种链路处理方法,应用于中继终端,包括:
    处理模块,用于在满足第二条件的情况下,修改或释放第七链路,所述第七链路为第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信;
    其中,所述第二条件包括如下至少一项:
    接收第三请求消息,所述第三请求消息用于请求修改或释放所述第七链路;
    所述中继终端与所述第五终端或者所述第六终端之间的通信链路不被允许;
    所述中继终端与所述第五终端或者所述第六终端之间的通信链路不再需要;
    所述中继终端不支持与所述第五终端或者所述第六终端之间的通信链路;
    所述中继终端与所述第五终端或者所述第六终端之间的通信链路缺乏通信资源;
    所述中继终端处于拥塞状态。
  83. 一种链路处理装置,应用于第五终端,包括:
    第一发送模块,用于向中继终端发送第三请求消息,其中,所述第三请求消息用于请求修改或释放第七链路,所述第七链路为所述第五终端与第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
  84. 一种链路处理装置,应用于第六终端,包括:
    第一接收模块,用于从中继终端接收第五请求消息,其中,所述第五请求消息用于请求释放或修改第七链路,所述第七链路为第五终端与所述第六终端之间且基于所述中继终端进行通信的通信链路,或者,所述第七链路为所述第五终端或者所述第六终端与所述中继终端之间的通信链路,所述第五终端或者所述第六终端还基于所述中继终端与第七终端通信。
  85. 一种终端,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至35任一项所述的链路 处理方法的步骤,或者实现如权利要求36至48任一项所述的链路处理方法的步骤,或者实现如权利要求49至57任一项所述的链路处理方法的步骤,或者实现如权利要求58至69任一项所述的链路处理方法的步骤,或者实现如权利要求70至75任一项所述的链路处理方法的步骤,或者实现如权利要求76至78任一项所述的链路处理方法的步骤。
  86. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至35任一项所述的链路处理方法的步骤,或者实现如权利要求36至48任一项所述的链路处理方法的步骤,或者实现如权利要求49至57任一项所述的链路处理方法的步骤,或者实现如权利要求58至69任一项所述的链路处理方法的步骤,或者实现如权利要求70至75任一项所述的链路处理方法的步骤,或者实现如权利要求76至78任一项所述的链路处理方法的步骤。
PCT/CN2024/070031 2023-01-09 2024-01-02 链路处理方法、装置及终端 Ceased WO2024149102A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310029824.0A CN118317393A (zh) 2023-01-09 2023-01-09 链路处理方法、装置及终端
CN202310029824.0 2023-01-09

Publications (1)

Publication Number Publication Date
WO2024149102A1 true WO2024149102A1 (zh) 2024-07-18

Family

ID=91724581

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/070031 Ceased WO2024149102A1 (zh) 2023-01-09 2024-01-02 链路处理方法、装置及终端

Country Status (2)

Country Link
CN (1) CN118317393A (zh)
WO (1) WO2024149102A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN121334802A (zh) * 2024-07-11 2026-01-13 中国电信股份有限公司技术创新中心 通信方法、中继用户设备、电子设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021227608A1 (zh) * 2020-05-09 2021-11-18 华为技术有限公司 通信方法及装置
CN114828105A (zh) * 2021-01-28 2022-07-29 华为技术有限公司 一种服务质量的控制方法和装置
WO2022165719A1 (zh) * 2021-02-04 2022-08-11 华为技术有限公司 通信方法和装置
WO2022188855A1 (zh) * 2021-03-12 2022-09-15 维沃移动通信有限公司 路径切换方法、装置、终端及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021227608A1 (zh) * 2020-05-09 2021-11-18 华为技术有限公司 通信方法及装置
CN114828105A (zh) * 2021-01-28 2022-07-29 华为技术有限公司 一种服务质量的控制方法和装置
WO2022165719A1 (zh) * 2021-02-04 2022-08-11 华为技术有限公司 通信方法和装置
WO2022188855A1 (zh) * 2021-03-12 2022-09-15 维沃移动通信有限公司 路径切换方法、装置、终端及存储介质

Also Published As

Publication number Publication date
CN118317393A (zh) 2024-07-09

Similar Documents

Publication Publication Date Title
WO2019223660A1 (zh) 会话管理方法、装置和系统
JP2023534597A (ja) リロケーション時にエッジアプリケーションサーバへのシームレスなサービス継続性を調整するためのメカニズム
WO2023169558A1 (zh) 协同操作方法、信息提供方法、网元和存储介质
CN116419268A (zh) Ursp规则的监控和上报方法、装置、终端及网元
WO2022206663A1 (zh) Pdu会话建立方法、相关设备及可读存储介质
EP4554263A1 (en) Information processing methods, apparatus, communication device and readable storage medium
US20230224785A1 (en) Service data transmission method and apparatus, terminal device, and network device
WO2024149102A1 (zh) 链路处理方法、装置及终端
WO2023179595A1 (zh) 非3gpp设备的会话通道建立方法、装置及设备
CN117939560A (zh) 执行结果上报方法、接收方法、终端及网络侧设备
WO2023071847A1 (zh) 一种业务转移方法及通信装置
CN116801260A (zh) 多模态业务实现方法、装置及通信设备
WO2024061133A1 (zh) 通信方法、装置、ue及可读存储介质
WO2024061091A1 (zh) 一种网络通信的方法、装置、网络侧设备、终端及介质
WO2024061143A1 (zh) 应用程序确定方法、装置、终端及服务器
WO2024022163A1 (zh) 定位方法、终端及网络设备
CN116828546A (zh) 非3gpp设备的会话通道建立方法、装置及设备
WO2023005898A1 (zh) 多终端联合会话管理方法、网络侧设备及终端
CN101815281A (zh) 一种处理本地疏导业务的方法、设备及通信系统
CN116419164B (zh) 多播业务处理的方法、装置、网络设备及终端
WO2024051663A1 (zh) 数据通道建立方法、第一终端及第二终端
WO2024140570A1 (zh) 策略配置方法、装置、终端、网络侧设备及可读存储介质
WO2024061205A1 (zh) 参数获取方法、装置、第一网络功能及第二网络功能
WO2024067331A1 (zh) 个人物联网中的设备切换方法、通信方法及设备
CN117460095A (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: 24741101

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 10/11/2025)