WO2021083156A1 - Direct communication method and device - Google Patents

Direct communication method and device Download PDF

Info

Publication number
WO2021083156A1
WO2021083156A1 PCT/CN2020/124091 CN2020124091W WO2021083156A1 WO 2021083156 A1 WO2021083156 A1 WO 2021083156A1 CN 2020124091 W CN2020124091 W CN 2020124091W WO 2021083156 A1 WO2021083156 A1 WO 2021083156A1
Authority
WO
WIPO (PCT)
Prior art keywords
relay device
direct communication
layer identifier
terminal device
request message
Prior art date
Application number
PCT/CN2020/124091
Other languages
French (fr)
Chinese (zh)
Inventor
邓强
侯云静
Original Assignee
大唐移动通信设备有限公司
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 大唐移动通信设备有限公司 filed Critical 大唐移动通信设备有限公司
Publication of WO2021083156A1 publication Critical patent/WO2021083156A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • This application relates to the field of mobile communication technology, and in particular to a direct communication method and device.
  • D2D Device-to-Device
  • D2D communication introduces a relay technology, that is, a terminal device at a remote end (that is, a terminal device outside the coverage of the network device) establishes a connection with the network device through the relay device.
  • the relay device can be directly connected to the network device, and the terminal device at the remote end can be connected to the relay device, so that the terminal device at the remote end can be connected to the network device.
  • the connection between a remote terminal device and a relay device includes two processes, and the two processes are a discovery process and a connection process respectively.
  • the discovery process refers to the process in which the terminal device determines the relay device to be connected
  • the connection process refers to the process in which the terminal device connects with the discovered relay device.
  • the current discovery process includes the first method and the second method.
  • the first method is that the terminal device broadcasts a relay discovery message (Relay Discovery Announcement) message, and the relay discovery message includes the proximity service relay user equipment (User Equipment, UE) identification number (Identity, ID) (ProSe Relay UE ID) and other information, the relay device that matches the ID among multiple relay devices sends the relay discovery message to the terminal device Response message, so that the terminal device can discover the relay device; the second way is that the terminal device broadcasts a relay discovery request (Relay Discovery Policy) message.
  • the relay discovery request message includes the service information supported by the relay device, such as a relay service. Code (Relay Service Code), the relay device matching the Relay Service Code sends a response message of the relay discovery request message to the terminal device, so that the terminal device can discover the relay device.
  • the terminal device discovers the relay device and requests to establish a unicast connection with the relay device. It can be seen that at present, the establishment of a connection between a terminal device and a relay device requires a discovery process and a unicast connection establishment process, and more signaling is used.
  • the embodiments of the present application provide a method and device for direct connection communication, which are used to implement direct connection communication using less signaling.
  • an embodiment of the present application provides a method for direct communication, which includes:
  • the terminal device sends a direct connection communication request message to the relay device, where the direct connection communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
  • the terminal device establishes a direct communication connection with the relay device.
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
  • the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the direct communication request message is a broadcast message
  • the direct communication response message is a unicast message
  • the method further includes:
  • the terminal device receives a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, service information supported by the relay device, and a first link layer identifier of the relay device The mapping relationship between.
  • an embodiment of the present application provides a method for direct communication, the method including:
  • the relay device receives a direct communication request message from a terminal device, where the direct communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
  • the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the direct communication request message is a broadcast message
  • the direct communication response message is a unicast message
  • the relay device receives policy parameters sent by the network device, and the policy parameters include service information supported by the relay device, service information supported by the relay device, and the first link layer of the relay device The mapping relationship between the identities.
  • the method further includes:
  • the relay device determines that it supports the service information supported by the relay device in the direct communication request message, and sends the direct communication response message to the terminal device.
  • the method further includes:
  • the relay device determines that it supports the application layer identifier of the relay device in the direct communication request message, and sends the direct communication response message to the terminal device.
  • an embodiment of the present application provides a terminal device, which includes:
  • a sending module configured to send a direct communication request message to a relay device, where the direct communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
  • a receiving module configured to receive a direct communication response message returned by the relay device, the direct communication response message including the application layer identification of the relay device and the application layer identification of the terminal device;
  • the processing module is used to establish a direct communication connection with the relay device.
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
  • the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the direct communication request message is a broadcast message
  • the direct communication response message is a unicast message
  • the receiving module is also used for:
  • a policy parameter sent by a network device where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
  • an embodiment of the present application provides a relay device, and the relay device includes:
  • the sending module is configured to return a direct communication response message to the terminal device, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
  • the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the direct communication request message is a broadcast message
  • the direct communication response message is a unicast message
  • the receiving module is also used for:
  • a policy parameter sent by a network device where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
  • the relay device further includes a processing module; wherein,
  • the processing module is used to determine whether to support the service information supported by the relay device in the direct communication request message
  • the sending module is controlled to send the direct communication response message to the terminal device.
  • processing module is also used to:
  • the sending module is controlled to send the direct communication response message to the terminal device.
  • an embodiment of the present application provides a terminal device, which includes:
  • Memory used to store instructions
  • the processor is configured to read instructions in the memory and execute the following process:
  • the control transceiver sends a direct connection communication request message to the relay device, the direct connection communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device, and receives the information returned by the relay device.
  • a direct communication response message where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device;
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
  • the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the direct communication request message is a broadcast message
  • the direct communication response message is a unicast message
  • the transceiver is also used for:
  • a policy parameter sent by a network device where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
  • an embodiment of the present application provides a relay device, and the relay device includes:
  • Memory used to store instructions
  • the processor is configured to read instructions in the memory and execute the following process:
  • the control transceiver receives a direct connection communication request message from a terminal device, the direct connection communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device, and returns the direct connection to the terminal device A communication response message, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
  • the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the direct communication request message is a broadcast message
  • the direct communication response message is a unicast message
  • the transceiver is also used for:
  • a policy parameter sent by a network device where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
  • the processor is further configured to:
  • control the transceiver When the processing module determines to support the service information supported by the relay device in the direct communication request message, control the transceiver to send the direct communication response message to the terminal device.
  • the processor is further configured to:
  • control the transceiver When the processing module determines to support the application layer identifier of the relay device in the direct communication request message, control the transceiver to send the direct communication response message to the terminal device.
  • the embodiments of the present application provide a computer-readable storage medium that stores computer instructions that, when the computer instructions are run on a computer, cause the computer to perform operations such as the first aspect or the first aspect.
  • the terminal device directly sends a direct connection communication request message to the relay device, and the direct connection communication request message includes service information supported by the relay device, so that the relay device can determine itself after receiving the instruction communication request message Whether the service information is supported, if so, the relay device feeds back a direct connection communication response message to the terminal device to inform the terminal device that a connection can be established.
  • the process of connecting the terminal device to the relay device includes the process of discovering the relay device by the terminal device. Compared with the current connection between the terminal device and the relay device, the discovery process and the establishment order are required. As far as the broadcast connection process is concerned, it is obvious that less signaling is used, which saves signaling.
  • FIG. 1 is a schematic flowchart of a direct communication method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of an example of a direct communication method provided by an embodiment of this application;
  • FIG. 3 is a schematic flowchart of an example of a direct communication method provided by an embodiment of this application.
  • FIG. 5 is a schematic structural diagram of a terminal device provided by an embodiment of this application.
  • FIG. 6 is a schematic diagram of another structure of a terminal device provided by an embodiment of the application.
  • FIG. 7 is a schematic structural diagram of a relay device provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of another structure of a relay device provided by an embodiment of the application.
  • a discovery process and a unicast connection process are required, and a lot of signaling is used.
  • the embodiment of the present application provides a direct connection communication method.
  • the process of the terminal device connecting to the relay device includes the process of the terminal device discovering the relay device. Compared with the current terminal device and the relay device establishing a connection In terms of the discovery process and the establishment of a unicast connection process, it is obvious that less signaling is used, which saves signaling.
  • an embodiment of the present application provides a direct communication method, and the process of the method is described as follows. Since the direct communication method involves the interaction process between the relay device and the terminal device, in the following process description, the process performed by the relay device and the terminal device will be described together.
  • the terminal device sends a direct connection communication request message to the relay device, where the direct connection communication request message includes the application layer identification information of the terminal device and the service information supported by the relay device.
  • the relay device sends a direct communication response message to the terminal device, where the direct communication response message includes the application layer identification of the relay device and the application layer identification of the terminal device.
  • the terminal device establishes a direct communication connection with the relay device.
  • the relay device that needs to be connected can be determined first.
  • the terminal device may broadcast a direct connection communication request message, and the direct connection communication request message may carry service information supported by the relay device.
  • the relay devices in the multiple relay devices receive the direct communication request message, for example, it can be determined whether the service information included in the direct communication request message is service information that it can support, so as to determine whether it is a terminal device.
  • the relay device that needs to be connected.
  • the network device can configure policy parameters for each relay device, for example, it can include at least one of the application layer identification of the relay device, the service information supported by the relay device, and the link layer identification of the relay device.
  • the policy parameters can also include other possible information, such as service quality information.
  • the application layer identifier of the relay device can also be considered as application layer identification information.
  • it can be user information, for example, it can be expressed as "Relay UE User Info”.
  • the service information supported by the relay device can be considered as the service code supported by the relay device, for example, it can be expressed as "Relay Service Code”.
  • the link layer identifier of the relay device can be expressed as "Relay UE Layer-2 ID", for example.
  • the application layer identifier of the relay device may also be considered as information indicating the application layer identifier of the relay device, for example, it may be referred to as the application layer identification information of the relay device.
  • the link layer identifier of the relay device may also be considered as information indicating the link layer identifier of the relay device, for example, it may be referred to as the link layer identification information of the relay device.
  • Each relay device receives the direct communication request message, and can determine whether it supports the service information included in the direct communication request message. If a certain relay device determines that the service information it supports is consistent with the service information in the received direct communication request message, then the relay device determines to support the service information in the received direct communication request message, that is, the relay A device is a device to which a terminal device needs to be directly connected. At this time, the relay device may feed back a response message for the direct communication request message to the terminal device, which may also be referred to as a direct communication response message, and the direct communication response message may be regarded as a confirmation message.
  • the relay device determines that it is not the device that the terminal device needs to be directly connected to.
  • the relay device The direct communication response message fed back to the terminal device may be regarded as a rejection message.
  • the confirmation message and the rejection message are relative, and the direct communication response message may carry indication information. The different content indicated by the indication information indicates that it is a confirmation message or a rejection message.
  • the multiple relay devices may include service information supported by at least one relay device that is consistent with the service information in the direct communication request. For each relay device that may receive direct communication request messages from multiple terminal devices, then the relay device feeds back the direct communication response message to the terminal device, and it needs to be clear to which terminal device it is, to avoid that the terminal device does not receive it. Or wrong connection direct communication response message.
  • the direct communication request message may also include the application layer identification of the terminal device. Therefore, the relay device can determine the corresponding terminal device according to the direct communication request message. Similarly, for a terminal device, it may receive direct communication feedback information from multiple relay devices, so the terminal device also needs to determine which relay device is needed. For this reason, the direct communication sent by the relay device
  • the response message may include the application layer identification of the relay device and the application layer identification of the terminal device. In this way, each terminal device receives the direct communication response message according to the application layer identifier of the terminal device in the direct communication response message, or receives multiple direct communication response messages and only parses the direct communication response message corresponding to its own application layer identifier. .
  • the direct communication request message may also include the link layer identifier of the terminal device and the link layer identifier of the relay device.
  • the network device can configure the terminal device with the policy parameter of each relay device, that is, the policy parameter of each relay device can be configured on the terminal device.
  • the policy parameter includes not only the service information supported by the relay device, but also the mapping relationship between the service information supported by the relay device and the link layer identification information of the relay device. Therefore, the terminal device can determine the link layer identifier of the relay device that needs to be directly connected to the service information supported by the relay device.
  • the direct communication response message may also include the link layer identifier of the terminal device and the link layer identifier of the relay device.
  • the link layer identifier of the relay device in the direct communication request message is referred to as the first link identifier
  • the link layer identifier of the relay device in the direct communication response message is referred to as the second link. Road logo.
  • the relay device may determine the second link layer identifier of the relay device according to the application layer identifier of the relay device.
  • the direct communication request message may also include the application layer identification of the relay device.
  • the relay device can determine whether its own application layer identifier is consistent with the application layer identifier of the relay device in the received direct communication request message, so as to determine whether it is a device to which the terminal device needs to be directly connected.
  • the terminal device receives a direct communication response message from at least one relay device among the plurality of relay devices, and may select one relay device from the at least one relay device to establish a direct communication connection.
  • the terminal device can determine the relay device to be directly connected, for example, the first relay device among multiple relay devices, so that it can send a direct message to the first relay device.
  • Connect the communication request message may include the application layer identifier of the terminal device and service information supported by the first relay device.
  • the first relay device receives the direct communication request message, and can determine whether the service information supported by itself is consistent with the service information supported by the first relay device included in the direct communication request message. If the first relay device determines that the service information it supports is consistent with the service information supported by the first relay device included in the direct communication request message, it may send a direct communication response message to the first relay device. The response message represents the direct communication confirmation message. If the first relay device determines that the service information it supports is inconsistent with the service information supported by the first relay device included in the direct communication request message, it may send a direct communication response indicating rejection of direct communication to the first relay device news.
  • the direct communication request message may also include the application layer identifier of the terminal device, the link layer identifier of the terminal device, and the first link layer identifier of the relay device, and the application layer of the relay device. At least one type of information or a combination of multiple types of information in the identifier.
  • the first relay device receiving the direct communication request message from the terminal device may determine whether it is a terminal device according to the application layer identifier of the relay device included in the direct communication request message The equipment that needs to be connected.
  • the first relay device determines that it supports the application layer identification of the relay device in the direct communication request message, the first relay device sends a direct communication response message indicating confirmation to the terminal device. On the contrary, if the first relay device determines that it does not support the application layer identification of the relay device in the direct communication request message, the first relay device sends a direct communication response message indicating rejection to the terminal device.
  • the terminal device directly sends a direct connection communication request message to the relay device, and the direct connection communication request message includes service information supported by the relay device, so that the relay device can determine itself after receiving the instruction communication request message Whether the service information is supported, if so, the relay device feeds back a direct connection communication response message to the terminal device to inform the terminal device that a connection can be established.
  • the process of connecting the terminal device to the relay device includes the process of discovering the relay device by the terminal device. Compared with the current connection between the terminal device and the relay device, the discovery process and the establishment order are required. As far as the broadcast connection process is concerned, it is obvious that less signaling is used, which saves signaling.
  • FIG. 2 Please refer to Figure 2 for another example of the direct communication method provided in this embodiment of the application.
  • This example takes the network device for the terminal device to configure the policy parameters of each relay device as an example, that is, the terminal device provides the information of each relay device.
  • the terminal device determines the first relay device that needs to be directly connected.
  • the terminal device provides the policy parameters of each relay device, then the terminal device can determine which relay device needs to be directly connected, for example, the first relay device.
  • the terminal device sends a direct connection communication request message to the first relay device, where the direct connection communication request message includes service information supported by the relay device and an application layer identifier of the terminal device.
  • the terminal device may send a direct communication request message to the first relay device, and the direct communication request message may include service information supported by the first relay device, so that the first relay device can determine according to the direct communication request message Whether the service information of the relay device in the direct connection communication request message is supported by itself, and then it is determined whether the terminal device needs to be directly connected to the relay device.
  • the terminal device may also broadcast the direct connection communication request message. In FIG. 2, the terminal device broadcasts the direct connection communication request message.
  • the relay device 1 is the first relay device as an example.
  • the direct communication request message may also include the link layer identifier of the terminal device (for example, "Remote UE Layer-2 ID”) and the link layer identifier of the relay device (for example, "Relay UE Layer-2 ID” means).
  • the source address of the direct communication request message is Remote UE Layer-2 ID
  • the destination address of the direct communication request message is Relay UE Layer-2 ID
  • the direct communication request message may also include the application layer identification of the relay device, service quality parameters, and so on.
  • the first relay device sends a direct communication response message to the terminal device, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device, so that the terminal device receives the direct communication response message. Establish a direct communication connection with the first relay device.
  • the direct communication request message includes the link layer identifier of the terminal device and the link layer identifier of the relay device
  • the direct communication response message may include the link layer identifier of the relay device and the link layer of the terminal device.
  • Road layer identification For example, the source address of the direct communication request message is Remote UE Layer-2 ID, and the destination address of the direct communication request message is Relay UE Layer-2 ID.
  • the source address of the direct communication response message is Relay UE Layer-2. 2 ID
  • the destination address of the direct communication request message is Remote UE Layer-2 ID.
  • the direct communication request message may further include one or a combination of the application layer identifier of the relay device, the service information of the relay device, or the service quality parameter.
  • FIG. 3 is an example of the direct communication method provided by the embodiment of this application.
  • This example takes the network device configuring policy parameters for each relay device as an example, that is, the terminal device does not provide the policy parameters of each relay device.
  • the process of this example is described as follows.
  • the terminal device determines the service information supported by the relay device.
  • the terminal device does not know which relay devices need to be directly connected, and the terminal device needs to confirm the relay devices that can be directly connected.
  • the terminal device may search for the relay device that needs to be directly connected according to the service information of the relay device that needs to be directly connected.
  • the terminal device provides the policy parameters of each relay device, so that the service information supported by each relay device can be obtained, and the required service information can be selected from the service information to find the corresponding relay device according to the service information.
  • the terminal device broadcasts a direct connection communication request message, where the direct connection communication request message includes service information supported by the relay device and an application layer identifier of the terminal device.
  • the direct communication request message may also include the link layer identifier of the terminal device (for example, "Remote UE Layer-2 ID”) and the link layer identifier of the relay device (for example, "Relay UE Layer-2 ID”). ID" means).
  • the source address of the direct communication request message is Remote UE Layer-2 ID
  • the destination address of the direct communication request message is Relay UE Layer-2 ID.
  • the direct communication request message may also include the application layer identification of the relay device, service quality parameters, and so on.
  • At least one relay device sends a direct communication response message to the terminal device, where the direct communication response message includes the application layer identification of the relay device and the application layer identification of the terminal device.
  • Figure 3 takes multiple relay devices as three relay devices, and the three relay devices are respectively relay device 1, relay device 2, and relay device 3 as an example. If at least one relay device among the plurality of relay devices determines to support the service information of the relay device in the direct communication request message, then the at least one relay device may respectively send a direct communication response message to the terminal device. Specifically, at least one relay device may determine the identity information of the terminal device according to the application layer identifier of the terminal device in the direct communication request message, so as to send a direct communication response message to the terminal device.
  • Fig. 3 takes as an example that two of the three relay devices are relay devices to which the terminal device needs to be directly connected.
  • the direct communication request message includes the link layer identifier of the terminal device and the link layer identifier of the relay device
  • the direct communication response message may include the link layer identifier of the relay device and the link layer of the terminal device.
  • Road layer identification For example, the source address of the direct communication request message is Remote UE Layer-2 ID, and the destination address of the direct communication request message is Relay UE Layer-2 ID.
  • the source address of the direct communication response message is Relay UE Layer-2. 2 ID
  • the destination address of the direct communication request message is Remote UE Layer-2 ID.
  • the terminal device selects the first relay device from the at least one relay device to establish a direct communication connection.
  • the terminal device can arbitrarily select a relay device from at least one relay device to establish a direct communication connection, or according to preset rules, select a relay device arbitrarily from at least one relay device to establish a direct communication connection.
  • the application examples are not limited.
  • the process of connecting a terminal device to a relay device includes a process in which the terminal device discovers the relay device. Compared with the current connection between the terminal device and the relay device, it is obvious that less signaling is used, which saves signaling.
  • the network side device may include access and mobility management functions (Access and Mobility Management FunctIon, AMF) and policy control functions (Policy Control Function, PCF).
  • AMF Access and Mobility Management FunctIon
  • PCF Policy Control Function
  • the user equipment sends a registration request (Registration Request) message to the AMF, where the message may include a terminal device policy container (UE Policy Container).
  • the Registration Request message can be used to request the PCF to provide ProSe (ProSe) policy information.
  • the UE may also indicate to the PCF that the UE is a terminal device (Remote UE) or a relay device (Relay UE).
  • the AMF returns a registration response (Registration Accept) message to the UE after completing the Registration process.
  • the PCF returns a response message to the AMF.
  • the PCF sends a transmission message to the AMF.
  • the transmission message includes the UE Policy Container, and the UE Policy Container is used to provide ProSe policy parameters to the UE.
  • the UE Policy Container here has the same name as the UE Policy Container in S401, but the content is different.
  • the UE Policy Container is used to exchange information between the UE and the PCF, and is transparent to the AMF.
  • the UE Policy Container sent by the UE to the PCF contains the information the UE wants to request and UE capability information, such as Remote UE/Relay UE, and the container sent by the PCF to the UE contains specific policy parameter information, such as relay service code.
  • ProSe policy parameters include Remote UE User Info, Relay UE User Info, Relay UE Layer-2 ID, Relay Service Code, QoS parameters, Relay Service Code and target Layer-2 ID mapping relationship.
  • ProSe policy parameters include Relay UE User Info, Relay Service Code, QoS parameters, Relay Service Code, and Layer-2 ID mapping relationships.
  • the AMF sends the ProSe policy parameter to the device (UE).
  • the AMF returns a device (UE) policy delivery result message to the PCF, so that the device (UE) can provide corresponding policy parameters.
  • an embodiment of the present application further provides a terminal device.
  • the terminal device includes a memory 501, a processor 502, and a transceiver 503.
  • the memory 501 and the transceiver 503 may be connected to the processor 502 through a bus interface (as shown in FIG. 5 as an example), or may also be connected to the processor 502 through a special connection line.
  • the transceiver 503 is used to send and receive information under the control of the processor 502.
  • the memory 501 may be used to store programs.
  • the processor 502 may be used to read the program in the memory 501 and execute the following process:
  • the relay device Send a direct connection communication request message to the relay device, where the direct connection communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device;
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is determined according to the service information supported by the relay device. of.
  • the direct communication response message further includes the link layer identification of the terminal device and the second link layer identification of the relay device, and the second link layer identification of the relay device is determined according to the application layer identification of the relay device of.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the direct communication request message is a broadcast message
  • the direct communication response message is a unicast message
  • the transceiver 503 can also be used for:
  • the policy parameter sent by the network device is received, and the policy parameter includes the service information supported by the relay device, and the mapping relationship between the service information supported by the relay device and the first link layer identification information of the relay device.
  • the bus architecture may include any number of interconnected buses and bridges. Specifically, one or more processors represented by the processor 502 and various circuits of the memory represented by the memory 501 are linked together.
  • the bus architecture can also link various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein.
  • the bus interface provides the interface.
  • the transceiver 503 may be a plurality of elements, including a transmitter and a transceiver, and provide a unit for communicating with various other devices on the transmission medium.
  • the processor 502 is responsible for managing the bus architecture and general processing, and the memory 501 can store data used by the processor 502 when performing operations.
  • an embodiment of the present application provides a terminal device.
  • the terminal device includes a sending module 601, a receiving module 602, and a processing module 603.
  • the sending module 601 can be used to send a direct connection to a relay device.
  • a communication request message where the direct communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device; the receiving module 602 may be used to receive the direct communication response message returned by the relay device
  • the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device; the processing module 603 is configured to establish a direct communication connection with the relay device.
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is determined according to the service information supported by the relay device. of.
  • the direct communication response message further includes the link layer identification of the terminal device and the second link layer identification of the relay device, and the second link layer identification of the relay device is determined according to the application layer identification of the relay device of.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the sending module 601 can also be used for:
  • the policy parameter sent by the network device is received, and the policy parameter includes the service information supported by the relay device, and the mapping relationship between the service information supported by the relay device and the first link layer identification information of the relay device.
  • the physical devices of the sending module 601, the receiving module 602, and the processing module 603 in the terminal device may correspond to the processor 502 or the transceiver 503 in FIG. 5, and the terminal device may be used to execute the method provided in the embodiment of the present application.
  • the terminal device may be used to execute the method provided in the embodiment of the present application.
  • the functions that can be implemented by the functional modules of the device reference may be made to the description of the embodiments of the present application, which will not be repeated.
  • an embodiment of the present application further provides a terminal device.
  • the terminal device includes a memory 701, a processor 702, and a transceiver 703.
  • the memory 701 and the transceiver 703 may be connected to the processor 702 through a bus interface (as shown in FIG. 7 as an example), or may also be connected to the processor 702 through a special connection line.
  • the transceiver 703 is used to send and receive information under the control of the processor 702.
  • the memory 701 may be used to store programs.
  • the processor 702 may be used to read the program in the memory 701 and execute the following process:
  • the control transceiver 703 receives a direct connection communication request message from a terminal device, where the direct connection communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
  • the control transceiver 703 returns a direct communication response message to the terminal device, and the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is determined according to the service information supported by the relay device. of.
  • the direct communication response message further includes the link layer identification of the terminal device and the second link layer identification of the relay device, and the second link layer identification of the relay device is determined according to the application layer identification of the relay device of.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the direct communication request message is a broadcast message
  • the direct communication response message is a unicast message
  • the transceiver 703 can also be used for:
  • the policy parameter sent by the network device is received, and the policy parameter includes the service information supported by the relay device, and the mapping relationship between the service information supported by the relay device and the first link layer identifier of the relay device.
  • processor 702 may also be used to:
  • the processing module determines that it supports the service information supported by the relay device in the direct communication request message, it controls the transceiver to send a direct communication response message to the terminal device.
  • processor 702 may also be used to:
  • the processing module determines that it supports the application layer identifier of the relay device in the direct connection communication request message, it controls the transceiver to send the direct connection communication response message to the terminal device.
  • the bus architecture may include any number of interconnected buses and bridges. Specifically, one or more processors represented by the processor 702 and various circuits of the memory represented by the memory 701 are linked together.
  • the bus architecture can also link various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein.
  • the bus interface provides the interface.
  • the transceiver 703 may be a plurality of elements, including a transmitter and a transceiver, and provide a unit for communicating with various other devices on the transmission medium.
  • the processor 702 is responsible for managing the bus architecture and general processing, and the memory 701 can store data used by the processor 702 when performing operations.
  • an embodiment of the present application provides a terminal device.
  • the terminal device includes a receiving module 801, a sending module 802, and a processing module 803.
  • the receiving module 801 may be used to receive a direct communication request message from a terminal device, the direct communication request message including the application layer identifier of the terminal device and the service information supported by the relay device;
  • the sending module 802 may It is used to return a direct communication response message to the terminal device, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
  • the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is determined according to the service information supported by the relay device. of.
  • the direct communication response message further includes the link layer identification of the terminal device and the second link layer identification of the relay device, and the second link layer identification of the relay device is determined according to the application layer identification of the relay device of.
  • the direct communication request message further includes the application layer identifier of the relay device.
  • the direct communication request message is a broadcast message
  • the direct communication response message is a unicast message
  • the receiving module 801 can also be used for:
  • the policy parameter sent by the network device is received, and the policy parameter includes the service information supported by the relay device, and the mapping relationship between the service information supported by the relay device and the first link layer identifier of the relay device.
  • the relay device further includes a processing module 803, and the processing module 803 may be used for:
  • the sending module 802 is controlled to send a direct communication response message to the terminal device.
  • processing module 803 may also be used for:
  • control sending module 802 sends a direct connection communication response message to the terminal device.
  • the physical devices of the receiving module 801, the sending module 802, and the processing module 803 in the terminal device can correspond to the processor 702 or the transceiver 703 in FIG. 7, and the terminal device can be used to execute the method provided in the embodiment of the present application.
  • the terminal device can be used to execute the method provided in the embodiment of the present application.
  • the functions that can be implemented by the functional modules of the device reference may be made to the description of the embodiments of the present application, which will not be repeated.
  • the embodiments of the present application provide a computer-readable storage medium that stores computer instructions, and when the computer instructions run on the computer, the computer executes the instructions provided in the embodiments of the present application. Methods.
  • computer-readable storage media include: Universal Serial Bus flash drive (USB), mobile hard disk, read-only memory (Read-Only Memory, ROM), and random access memory (Universal Serial Bus flash drive, USB). Random Access Memory, RAM), magnetic disks or optical disks and other storage media that can store program codes.
  • USB Universal Serial Bus flash drive
  • ROM read-only memory
  • USB random access memory
  • RAM Random Access Memory
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be Combined or can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may also be an independent physical module.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer software product is stored in a storage medium and includes several instructions to enable a computer device, for example, A personal computer, a server, or a network device, etc., or a processor (processor) executes all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: universal serial bus flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks and other media that can store program codes.

Abstract

Disclosed in the present application are a direct communication method and device, for use in implementing direct communication by using less signaling. The method comprises: a terminal device sends a direct communication request message to a relay device, the direct communication request message comprising an application layer identifier of the terminal device and service information supported by the relay device; the terminal device receives a direct communication response message returned by the relay device, the direct communication response message comprising an application layer identifier of the relay device and the application layer identifier of the terminal device; and the terminal device establishes a direct communication connection with the relay device.

Description

一种直连通信方法及设备Direct connection communication method and equipment
相关申请的交叉引用Cross-references to related applications
本申请要求在2019年10月29日提交中国专利局、申请号为201911040368.X、申请名称为“一种直连通信方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on October 29, 2019, the application number is 201911040368.X, and the application name is "a direct communication method and equipment", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及移动通信技术领域,特别涉及一种直连通信方法及设备。This application relates to the field of mobile communication technology, and in particular to a direct communication method and device.
背景技术Background technique
设备到设备(Device-to-Device,D2D)技术,也就是两个终端设备不经过网络设备直接进行通信,是提高网络容量和频谱效率的技术之一。Device-to-Device (D2D) technology, that is, two terminal devices directly communicate without going through a network device, is one of the technologies to improve network capacity and spectrum efficiency.
D2D通信的一种方式,例如D2D通信引入了中继技术,也就是处于远端的终端设备(也就是处于网络设备覆盖范围之外的终端设备)通过中继设备与网络设备建立连接。中继设备可以直接连接到网络设备,处于远端的终端设备与中继设备进行连接,从而使得处于远端的终端设备可以连接到网络设备。A way of D2D communication, for example, D2D communication introduces a relay technology, that is, a terminal device at a remote end (that is, a terminal device outside the coverage of the network device) establishes a connection with the network device through the relay device. The relay device can be directly connected to the network device, and the terminal device at the remote end can be connected to the relay device, so that the terminal device at the remote end can be connected to the network device.
存在至少一个中继设备,处于远端的终端设备与一个中继设备连接包括两个过程,这两个过程分别为发现过程和连接过程。发现过程即终端设备确定要连接的中继设备的过程,连接过程即终端设备与发现的中继设备进行连接的过程。There is at least one relay device, and the connection between a remote terminal device and a relay device includes two processes, and the two processes are a discovery process and a connection process respectively. The discovery process refers to the process in which the terminal device determines the relay device to be connected, and the connection process refers to the process in which the terminal device connects with the discovered relay device.
目前发现过程包括第一种方式和第二种方式,其中,第一种方式即终端设备广播中继发现报文(Relay Discovery Announcement)消息,该中继发现报文消息包括邻近业务中继用户设备(User Equipment,UE)的身份标识号码(Identity,ID)(ProSe Relay UE ID)等信息,多个中继设备中与该ID匹配的中继设备向终端设备发送该中继发现报文消息的响应消息,从而实现终端 设备发现中继设备;第二种方式即终端设备广播中继发现请求(Relay Discovery Solicitation)消息,该中继发现请求消息包括中继设备支持的服务信息,例如中继服务代码(Relay Service Code),匹配Relay Service Code的中继设备向终端设备发送中继发现请求消息的响应消息,从而实现终端设备发现中继设备。The current discovery process includes the first method and the second method. The first method is that the terminal device broadcasts a relay discovery message (Relay Discovery Announcement) message, and the relay discovery message includes the proximity service relay user equipment (User Equipment, UE) identification number (Identity, ID) (ProSe Relay UE ID) and other information, the relay device that matches the ID among multiple relay devices sends the relay discovery message to the terminal device Response message, so that the terminal device can discover the relay device; the second way is that the terminal device broadcasts a relay discovery request (Relay Discovery Policy) message. The relay discovery request message includes the service information supported by the relay device, such as a relay service. Code (Relay Service Code), the relay device matching the Relay Service Code sends a response message of the relay discovery request message to the terminal device, so that the terminal device can discover the relay device.
终端设备发现中继设备,请求与中继设备建立单播连接。可见,目前终端设备与中继设备建立连接,需要进行发现过程和建立单播连接过程,使用信令较多。The terminal device discovers the relay device and requests to establish a unicast connection with the relay device. It can be seen that at present, the establishment of a connection between a terminal device and a relay device requires a discovery process and a unicast connection establishment process, and more signaling is used.
发明内容Summary of the invention
本申请实施例提供一种直连通信的方法及设备,用于使用较少的信令实现直连通信。The embodiments of the present application provide a method and device for direct connection communication, which are used to implement direct connection communication using less signaling.
第一方面,本申请实施例提供了一种直连通信的方法,该方法包括:In the first aspect, an embodiment of the present application provides a method for direct communication, which includes:
终端设备向中继设备发送直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;The terminal device sends a direct connection communication request message to the relay device, where the direct connection communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
所述终端设备接收所述中继设备返回的直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识;Receiving, by the terminal device, a direct communication response message returned by the relay device, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device;
所述终端设备与所述中继设备建立直连通信连接。The terminal device establishes a direct communication connection with the relay device.
可选的,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
可选的,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
可选的,所述直连通信请求消息还包括所述中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,所述方法还包括:Optionally, the method further includes:
所述终端设备接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。The terminal device receives a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, service information supported by the relay device, and a first link layer identifier of the relay device The mapping relationship between.
第二方面,本申请实施例提供了一种直连通信的方法,该方法包括:In the second aspect, an embodiment of the present application provides a method for direct communication, the method including:
中继设备接收来自终端设备的直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;The relay device receives a direct communication request message from a terminal device, where the direct communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
所述中继设备向所述终端设备返回直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识。The relay device returns a direct communication response message to the terminal device, and the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
可选的,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
可选的,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
可选的,所述直连通信请求消息还包括所述中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,所述方法还包括:Optionally, the method further includes:
所述中继设备接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。The relay device receives policy parameters sent by the network device, and the policy parameters include service information supported by the relay device, service information supported by the relay device, and the first link layer of the relay device The mapping relationship between the identities.
可选的,所述方法还包括:Optionally, the method further includes:
所述中继设备确定是否支持所述直连通信请求消息中的所述中继设备支持的服务信息;Determining whether the relay device supports the service information supported by the relay device in the direct communication request message;
所述中继设备确定支持所述直连通信请求消息中的所述中继设备支持的服务信息,向所述终端设备发送所述直连通信响应消息。The relay device determines that it supports the service information supported by the relay device in the direct communication request message, and sends the direct communication response message to the terminal device.
可选的,所述方法还包括:Optionally, the method further includes:
所述中继设备确定是否支持所述直连通信请求消息中的所述中继设备的应用层标识;Determining whether the relay device supports the application layer identifier of the relay device in the direct communication request message;
所述中继设备确定支持所述直连通信请求消息中的所述中继设备的应用层标识,向所述终端设备发送所述直连通信响应消息。The relay device determines that it supports the application layer identifier of the relay device in the direct communication request message, and sends the direct communication response message to the terminal device.
第三方面,本申请实施例提供了一种终端设备,该终端设备包括:In a third aspect, an embodiment of the present application provides a terminal device, which includes:
发送模块,用于向中继设备发送直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;A sending module, configured to send a direct communication request message to a relay device, where the direct communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
接收模块,用于接收所述中继设备返回的直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识;A receiving module, configured to receive a direct communication response message returned by the relay device, the direct communication response message including the application layer identification of the relay device and the application layer identification of the terminal device;
处理模块,用于与所述中继设备建立直连通信连接。The processing module is used to establish a direct communication connection with the relay device.
可选的,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
可选的,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
可选的,所述直连通信请求消息还包括所述中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,所述接收模块还用于:Optionally, the receiving module is also used for:
接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。Receive a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
第四方面,本申请实施例提供了一种中继设备,该中继设备包括:In a fourth aspect, an embodiment of the present application provides a relay device, and the relay device includes:
接收模块,用于接收来自终端设备的直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;A receiving module, configured to receive a direct communication request message from a terminal device, where the direct communication request message includes an application layer identifier of the terminal device and service information supported by the relay device;
发送模块,用于向所述终端设备返回直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识。The sending module is configured to return a direct communication response message to the terminal device, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
可选的,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
可选的,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
可选的,所述直连通信请求消息还包括所述中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,所述接收模块还用于:Optionally, the receiving module is also used for:
接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。Receive a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
可选的,所述中继设备还包括处理模块;其中,Optionally, the relay device further includes a processing module; wherein,
所述处理模块用于确定是否支持所述直连通信请求消息中的所述中继设备支持的服务信息;The processing module is used to determine whether to support the service information supported by the relay device in the direct communication request message;
在确定支持所述直连通信请求消息中的所述中继设备支持的服务信息时,控制所述发送模块向所述终端设备发送所述直连通信响应消息。When it is determined that the service information supported by the relay device in the direct communication request message is supported, the sending module is controlled to send the direct communication response message to the terminal device.
可选的,所述处理模块还用于:Optionally, the processing module is also used to:
确定是否支持所述直连通信请求消息中的所述中继设备的应用层标识;Determining whether to support the application layer identifier of the relay device in the direct communication request message;
在确定支持所述直连通信请求消息中的所述中继设备的应用层标识时,控制所述发送模块向所述终端设备发送所述直连通信响应消息。When it is determined that the application layer identifier of the relay device in the direct communication request message is supported, the sending module is controlled to send the direct communication response message to the terminal device.
第五方面,本申请实施例提供了一种终端设备,该终端设备包括:In a fifth aspect, an embodiment of the present application provides a terminal device, which includes:
存储器,用于存储指令;Memory, used to store instructions;
处理器,用于读取所述存储器中的指令,执行下列过程:The processor is configured to read instructions in the memory and execute the following process:
控制收发机向中继设备发送直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息,以及接收所述中继设备返回的直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识;The control transceiver sends a direct connection communication request message to the relay device, the direct connection communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device, and receives the information returned by the relay device. A direct communication response message, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device;
与所述中继设备建立直连通信连接。Establish a direct communication connection with the relay device.
可选的,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
可选的,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
可选的,所述直连通信请求消息还包括所述中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,所述收发机还用于:Optionally, the transceiver is also used for:
接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。Receive a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
第六方面,本申请实施例提供了一种中继设备,该中继设备包括:In a sixth aspect, an embodiment of the present application provides a relay device, and the relay device includes:
存储器,用于存储指令;Memory, used to store instructions;
处理器,用于读取所述存储器中的指令,执行下列过程:The processor is configured to read instructions in the memory and execute the following process:
控制收发机接收来自终端设备的直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息,以及向所述终端设备返回直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识。The control transceiver receives a direct connection communication request message from a terminal device, the direct connection communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device, and returns the direct connection to the terminal device A communication response message, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
可选的,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述 中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is based on The service information supported by the relay device is determined.
可选的,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identifier of the terminal device and the second link layer identifier of the relay device, and the second link layer identifier of the relay device is based on The application layer identifier of the relay device is determined.
可选的,所述直连通信请求消息还包括所述中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,所述收发机还用于:Optionally, the transceiver is also used for:
接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。Receive a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
可选的,所述处理器还用于:Optionally, the processor is further configured to:
确定是否支持所述直连通信请求消息中的所述中继设备支持的服务信息;Determining whether to support the service information supported by the relay device in the direct communication request message;
在所述处理模块确定支持所述直连通信请求消息中的所述中继设备支持的服务信息时,控制所述收发机向所述终端设备发送所述直连通信响应消息。When the processing module determines to support the service information supported by the relay device in the direct communication request message, control the transceiver to send the direct communication response message to the terminal device.
可选的,所述处理器还用于:Optionally, the processor is further configured to:
确定是否支持所述直连通信请求消息中的所述中继设备的应用层标识;Determining whether to support the application layer identifier of the relay device in the direct communication request message;
在所述处理模块确定支持所述直连通信请求消息中的所述中继设备的应用层标识时,控制所述收发机向所述终端设备发送所述直连通信响应消息。When the processing module determines to support the application layer identifier of the relay device in the direct communication request message, control the transceiver to send the direct communication response message to the terminal device.
第七方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如第一方面或第二方面中任一项所述的方法。In a seventh aspect, the embodiments of the present application provide a computer-readable storage medium that stores computer instructions that, when the computer instructions are run on a computer, cause the computer to perform operations such as the first aspect or the first aspect. The method of any one of the two aspects.
在本申请实施例中,终端设备直接向中继设备发送直连通信请求消息,该直连通信请求消息包括中继设备支持的服务信息,从而中继设备接收到指令通信请求消息,可以判断自身是否支持该服务信息,如果支持,那么中继设备向终端设备反馈直连通信响应消息,以告知终端设备可以建立连接。即本申请实施例提供的直连通信方法,终端设备连接中继设备的过程包括终端 设备发现中继设备的过程,相较于目前终端设备与中继设备建立连接,需要进行发现过程和建立单播连接过程而言,显然使用的信令更少,节约了信令。In the embodiment of the present application, the terminal device directly sends a direct connection communication request message to the relay device, and the direct connection communication request message includes service information supported by the relay device, so that the relay device can determine itself after receiving the instruction communication request message Whether the service information is supported, if so, the relay device feeds back a direct connection communication response message to the terminal device to inform the terminal device that a connection can be established. That is to say, in the direct connection communication method provided by the embodiment of the present application, the process of connecting the terminal device to the relay device includes the process of discovering the relay device by the terminal device. Compared with the current connection between the terminal device and the relay device, the discovery process and the establishment order are required. As far as the broadcast connection process is concerned, it is obvious that less signaling is used, which saves signaling.
附图说明Description of the drawings
图1是本申请实施例提供的直连通信方法的流程示意图;FIG. 1 is a schematic flowchart of a direct communication method provided by an embodiment of the present application;
图2为本申请实施例提供的直连通信方法的一种示例的流程示意图;2 is a schematic flowchart of an example of a direct communication method provided by an embodiment of this application;
图3为本申请实施例提供的直连通信方法的一种示例的流程示意图;FIG. 3 is a schematic flowchart of an example of a direct communication method provided by an embodiment of this application;
图4为本申请实施例提供的网络设备配置终端设备的策略参数的一种示例的流程示意图;4 is a schematic flowchart of an example of configuring policy parameters of a terminal device by a network device according to an embodiment of the application;
图5为本申请实施例提供的终端设备的一种结构示意图;FIG. 5 is a schematic structural diagram of a terminal device provided by an embodiment of this application;
图6为本申请实施例提供的终端设备的另一种结构示意图;FIG. 6 is a schematic diagram of another structure of a terminal device provided by an embodiment of the application;
图7为本申请实施例提供的中继设备的一种结构示意图;FIG. 7 is a schematic structural diagram of a relay device provided by an embodiment of the application;
图8为本申请实施例提供的中继设备的另一种结构示意图。FIG. 8 is a schematic diagram of another structure of a relay device provided by an embodiment of the application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚明白,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application.
目前终端设备与中继设备建立连接,需要进行发现过程和建立单播连接过程,使用信令较多。At present, to establish a connection between a terminal device and a relay device, a discovery process and a unicast connection process are required, and a lot of signaling is used.
鉴于此,本申请实施例提供了一种直连通信方法,该方法中,终端设备连接中继设备的过程包括终端设备发现中继设备的过程,相较于目前终端设备与中继设备建立连接,需要进行发现过程和建立单播连接过程而言,显然使用的信令更少,节约了信令。In view of this, the embodiment of the present application provides a direct connection communication method. In this method, the process of the terminal device connecting to the relay device includes the process of the terminal device discovering the relay device. Compared with the current terminal device and the relay device establishing a connection In terms of the discovery process and the establishment of a unicast connection process, it is obvious that less signaling is used, which saves signaling.
下面结合附图介绍本申请实施例提供的技术方案。The following describes the technical solutions provided by the embodiments of the present application in conjunction with the accompanying drawings.
请参见图1,本申请实施例提供了一种直连通信方法,该方法的流程描述如下。由于该直连通信方法中涉及到中继设备与终端设备之间的交互过程,因此在以下的流程描述中,中继设备与终端设备所执行的过程将一同进行描 述。Referring to FIG. 1, an embodiment of the present application provides a direct communication method, and the process of the method is described as follows. Since the direct communication method involves the interaction process between the relay device and the terminal device, in the following process description, the process performed by the relay device and the terminal device will be described together.
S101、终端设备向中继设备发送直连通信请求消息,该直连通信请求消息包括终端设备的应用层标识信息和中继设备支持的服务信息。S101. The terminal device sends a direct connection communication request message to the relay device, where the direct connection communication request message includes the application layer identification information of the terminal device and the service information supported by the relay device.
S102、中继设备向终端设备发送直连通信响应消息,该直连通信响应消息包括中继设备的应用层标识和终端设备的应用层标识。S102. The relay device sends a direct communication response message to the terminal device, where the direct communication response message includes the application layer identification of the relay device and the application layer identification of the terminal device.
S103、终端设备与中继设备建立直连通信连接。S103. The terminal device establishes a direct communication connection with the relay device.
在本申请实施例中,存在多个中继设备,如果终端设备需要连接某个中继设备,首先可以确定需要连接的中继设备。In the embodiment of the present application, there are multiple relay devices. If a terminal device needs to be connected to a certain relay device, the relay device that needs to be connected can be determined first.
作为一种可能的实现方式,在S101中,终端设备可以广播直连通信请求消息,该直连通信请求消息可以携带中继设备支持的服务信息。多个中继设备中的部分或者全部中继设备接收到直连通信请求消息,例如可以判断该直连通信请求消息包括的服务信息是否是自身能够支持的服务信息,从而确定自身是否是终端设备需要连接的中继设备。As a possible implementation manner, in S101, the terminal device may broadcast a direct connection communication request message, and the direct connection communication request message may carry service information supported by the relay device. Some or all of the relay devices in the multiple relay devices receive the direct communication request message, for example, it can be determined whether the service information included in the direct communication request message is service information that it can support, so as to determine whether it is a terminal device. The relay device that needs to be connected.
这种方式下,网络设备可以为各个中继设备配置策略参数,例如可以包括中继设备的应用层标识、中继设备支持的服务信息、中继设备的链路层标识中的至少一种信息,当然策略参数还可以包括其他可能的信息,例如服务质量信息。其中,中继设备的应用层标识,也可以认为是应用层标识信息,示例性的,可以为用户信息,例如可以表示为“Relay UE User Info”。中继设备支持的服务信息可以认为是中继设备支持的服务代码,例如可以表示为“Relay Service Code”。中继设备的链路层标识,例如可以表示为“Relay UE Layer-2 ID”。需要说明的是,在本申请实施例中,中继设备的应用层标识,也可以认为是表示中继设备的应用层标识的信息,例如可以称为中继设备的应用层标识信息。类似的,中继设备的链路层标识也可以认为是表示中继设备的链路层标识的信息,例如可以称为中继设备的链路层标识信息。In this way, the network device can configure policy parameters for each relay device, for example, it can include at least one of the application layer identification of the relay device, the service information supported by the relay device, and the link layer identification of the relay device. Of course, the policy parameters can also include other possible information, such as service quality information. Wherein, the application layer identifier of the relay device can also be considered as application layer identification information. Illustratively, it can be user information, for example, it can be expressed as "Relay UE User Info". The service information supported by the relay device can be considered as the service code supported by the relay device, for example, it can be expressed as "Relay Service Code". The link layer identifier of the relay device can be expressed as "Relay UE Layer-2 ID", for example. It should be noted that in the embodiment of the present application, the application layer identifier of the relay device may also be considered as information indicating the application layer identifier of the relay device, for example, it may be referred to as the application layer identification information of the relay device. Similarly, the link layer identifier of the relay device may also be considered as information indicating the link layer identifier of the relay device, for example, it may be referred to as the link layer identification information of the relay device.
各个中继设备接收到直连通信请求消息,可以确定自身是否支持直连通信请求消息中包括的服务信息。如果某个中继设备确定自身支持的服务信息与接收的直连通信请求消息中的服务信息一致,那么该中继设备确定支持接 收的直连通信请求消息中的服务信息,也就是该中继设备是终端设备需要直连的设备。此时该中继设备可以向终端设备反馈针对直连通信请求消息的响应消息,也可以称为直连通信响应消息,该直连通信响应消息可以认为是确认消息。相反,如果某个中继设备确定自身支持的服务信息与接收的直连通信请求消息中的服务信息不一致,那么该中继设备确定不是终端设备需要直连的设备,此时,该中继设备向终端设备反馈的直连通信响应消息可以是认为是拒绝消息。一种可能的实施方式中,确认消息和拒绝消息是相对的,直连通信响应消息可以携带指示信息,指示信息指示的不同内容,表示是确认消息或者拒绝消息。Each relay device receives the direct communication request message, and can determine whether it supports the service information included in the direct communication request message. If a certain relay device determines that the service information it supports is consistent with the service information in the received direct communication request message, then the relay device determines to support the service information in the received direct communication request message, that is, the relay A device is a device to which a terminal device needs to be directly connected. At this time, the relay device may feed back a response message for the direct communication request message to the terminal device, which may also be referred to as a direct communication response message, and the direct communication response message may be regarded as a confirmation message. On the contrary, if a certain relay device determines that the service information it supports is inconsistent with the service information in the received direct communication request message, then the relay device determines that it is not the device that the terminal device needs to be directly connected to. At this time, the relay device The direct communication response message fed back to the terminal device may be regarded as a rejection message. In a possible implementation manner, the confirmation message and the rejection message are relative, and the direct communication response message may carry indication information. The different content indicated by the indication information indicates that it is a confirmation message or a rejection message.
多个中继设备中可能包括至少一个中继设备支持的服务信息与直连通信请求中的服务信息是一致的。对于每个中继设备可能接收来自多个终端设备的直连通信请求消息,那么中继设备向终端设备反馈直连通信响应消息,需要明确是向哪个终端设备反馈,以避免终端设备接收不到或者错接直连通信响应消息。The multiple relay devices may include service information supported by at least one relay device that is consistent with the service information in the direct communication request. For each relay device that may receive direct communication request messages from multiple terminal devices, then the relay device feeds back the direct communication response message to the terminal device, and it needs to be clear to which terminal device it is, to avoid that the terminal device does not receive it. Or wrong connection direct communication response message.
因此,在一些实施例中,直连通信请求消息中还可以包括终端设备的应用层标识。从而中继设备可以根据直连通信请求消息确定对应的终端设备。类似的,对于一个终端设备而言,可能接收来自多个中继设备的直连通信反馈信息,那么终端设备也需要确定需要的是哪个中继设备,为此,中继设备发送的直连通信响应消息中可以包括中继设备的应用层标识和终端设备的应用层标识。这样各个终端设备根据直连通信响应消息中的终端设备的应用层标识来接收直连通信响应消息,或者接收多个直连通信响应消息只解析与自身对应的应用层标识的直连通信响应消息。Therefore, in some embodiments, the direct communication request message may also include the application layer identification of the terminal device. Therefore, the relay device can determine the corresponding terminal device according to the direct communication request message. Similarly, for a terminal device, it may receive direct communication feedback information from multiple relay devices, so the terminal device also needs to determine which relay device is needed. For this reason, the direct communication sent by the relay device The response message may include the application layer identification of the relay device and the application layer identification of the terminal device. In this way, each terminal device receives the direct communication response message according to the application layer identifier of the terminal device in the direct communication response message, or receives multiple direct communication response messages and only parses the direct communication response message corresponding to its own application layer identifier. .
在一些实施例中,直连通信请求消息还可以包括终端设备的链路层标识和中继设备的链路层标识。In some embodiments, the direct communication request message may also include the link layer identifier of the terminal device and the link layer identifier of the relay device.
这种实施方式中,网络设备可以为终端设备配置各个中继设备的策略参数,也就是各个中继设备的策略参数可以配置在终端设备。其中,策略参数除了包括中继设备支持的服务信息,还可以包括中继设备支持的服务信息和 中继设备的链路层标识信息之间的映射关系。从而终端设备可以根据需要直连的中继设备支持的服务信息确定该中继设备的链路层标识。In this implementation manner, the network device can configure the terminal device with the policy parameter of each relay device, that is, the policy parameter of each relay device can be configured on the terminal device. Wherein, the policy parameter includes not only the service information supported by the relay device, but also the mapping relationship between the service information supported by the relay device and the link layer identification information of the relay device. Therefore, the terminal device can determine the link layer identifier of the relay device that needs to be directly connected to the service information supported by the relay device.
相应地,直连通信响应消息还可以包括终端设备的链路层标识和中继设备的链路层标识。为了便于区分,下文将直连通信请求消息中的中继设备的链路层标识称为第一链路标识,将直连通信响应消息中的中继设备的链路层标识称为第二链路标识。一些实施例中,中继设备可以根据中继设备的应用层标识确定中继设备的第二链路层标识。Correspondingly, the direct communication response message may also include the link layer identifier of the terminal device and the link layer identifier of the relay device. For easy distinction, the link layer identifier of the relay device in the direct communication request message is referred to as the first link identifier, and the link layer identifier of the relay device in the direct communication response message is referred to as the second link. Road logo. In some embodiments, the relay device may determine the second link layer identifier of the relay device according to the application layer identifier of the relay device.
在一些实施例中,直连通信请求消息还可以包括中继设备的应用层标识。这种情况下,中继设备可以确定自身的应用层标识与接收的直连通信请求消息中的中继设备的应用层标识是否一致,从而确定自身是否是终端设备需要直连的设备。In some embodiments, the direct communication request message may also include the application layer identification of the relay device. In this case, the relay device can determine whether its own application layer identifier is consistent with the application layer identifier of the relay device in the received direct communication request message, so as to determine whether it is a device to which the terminal device needs to be directly connected.
终端设备接收来自多个中继设备中的至少一个中继设备的直连通信响应消息,可以从至少一个中继设备选择一个中继设备建立直连通信连接。The terminal device receives a direct communication response message from at least one relay device among the plurality of relay devices, and may select one relay device from the at least one relay device to establish a direct communication connection.
作为另一种可能的实现方式,在S101中,终端设备可以确定要直连的中继设备,例如为多个中继设备中的第一中继设备,从而可以向第一中继设备发送直连通信请求消息。该直连通信请求消息可以包括终端设备的应用层标识和第一中继设备支持的服务信息。As another possible implementation manner, in S101, the terminal device can determine the relay device to be directly connected, for example, the first relay device among multiple relay devices, so that it can send a direct message to the first relay device. Connect the communication request message. The direct communication request message may include the application layer identifier of the terminal device and service information supported by the first relay device.
第一中继设备接收该直连通信请求消息,可以判断自身支持的服务信息与直连通信请求消息包括的第一中继设备支持的服务信息是否一致。如果第一中继设备确定自身支持的服务信息与直连通信请求消息包括的第一中继设备支持的服务信息一致,则可以向第一中继设备发送直连通信响应消息,该直连通信响应消息表示直连通信确认消息。如果第一中继设备确定自身支持的服务信息与直连通信请求消息包括的第一中继设备支持的服务信息不一致,则可以向第一中继设备发送表示拒绝直连通信的直连通信响应消息。The first relay device receives the direct communication request message, and can determine whether the service information supported by itself is consistent with the service information supported by the first relay device included in the direct communication request message. If the first relay device determines that the service information it supports is consistent with the service information supported by the first relay device included in the direct communication request message, it may send a direct communication response message to the first relay device. The response message represents the direct communication confirmation message. If the first relay device determines that the service information it supports is inconsistent with the service information supported by the first relay device included in the direct communication request message, it may send a direct communication response indicating rejection of direct communication to the first relay device news.
与上述一种可能的实现方式类似,直连通信请求消息还可以包括终端设备的应用层标识、终端设备的链路层标识和中继设备的第一链路层标识,中继设备的应用层标识中的至少一种信息或者多种信息的组合。当直连通信请 求消息包括中继设备的应用层标识,第一中继设备接收来自终端设备的直连通信请求消息可以根据直连通信请求消息包括的中继设备的应用层标识确定是否是终端设备需要连接的设备。也就是,如果第一中继设备确定支持直连通信请求消息中的中继设备的应用层标识,则第一中继设备向终端设备发送表示确认的直连通信响应消息。相反,如果第一中继设备确定不支持直连通信请求消息中的中继设备的应用层标识,则第一中继设备向终端设备发送表示拒绝的直连通信响应消息。Similar to the foregoing one possible implementation, the direct communication request message may also include the application layer identifier of the terminal device, the link layer identifier of the terminal device, and the first link layer identifier of the relay device, and the application layer of the relay device. At least one type of information or a combination of multiple types of information in the identifier. When the direct communication request message includes the application layer identifier of the relay device, the first relay device receiving the direct communication request message from the terminal device may determine whether it is a terminal device according to the application layer identifier of the relay device included in the direct communication request message The equipment that needs to be connected. That is, if the first relay device determines that it supports the application layer identification of the relay device in the direct communication request message, the first relay device sends a direct communication response message indicating confirmation to the terminal device. On the contrary, if the first relay device determines that it does not support the application layer identification of the relay device in the direct communication request message, the first relay device sends a direct communication response message indicating rejection to the terminal device.
在本申请实施例中,终端设备直接向中继设备发送直连通信请求消息,该直连通信请求消息包括中继设备支持的服务信息,从而中继设备接收到指令通信请求消息,可以判断自身是否支持该服务信息,如果支持,那么中继设备向终端设备反馈直连通信响应消息,以告知终端设备可以建立连接。即本申请实施例提供的直连通信方法,终端设备连接中继设备的过程包括终端设备发现中继设备的过程,相较于目前终端设备与中继设备建立连接,需要进行发现过程和建立单播连接过程而言,显然使用的信令更少,节约了信令。In the embodiment of the present application, the terminal device directly sends a direct connection communication request message to the relay device, and the direct connection communication request message includes service information supported by the relay device, so that the relay device can determine itself after receiving the instruction communication request message Whether the service information is supported, if so, the relay device feeds back a direct connection communication response message to the terminal device to inform the terminal device that a connection can be established. That is to say, in the direct connection communication method provided by the embodiment of the present application, the process of connecting the terminal device to the relay device includes the process of discovering the relay device by the terminal device. Compared with the current connection between the terminal device and the relay device, the discovery process and the establishment order are required. As far as the broadcast connection process is concerned, it is obvious that less signaling is used, which saves signaling.
为了便于理解本申请实施例提供的方案,下面以具体实例说明本申请实施例提供的直连通信方法。In order to facilitate the understanding of the solutions provided in the embodiments of the present application, specific examples are used to illustrate the direct communication method provided in the embodiments of the present application.
请参见图2,为本申请实施例提供的直连通信方法的另一个示例,该示例以网络设备为终端设备配置各个中继设备的策略参数为例,也就是终端设备提供各个中继设备的策略参数为例,该示例的流程描述如下。Please refer to Figure 2 for another example of the direct communication method provided in this embodiment of the application. This example takes the network device for the terminal device to configure the policy parameters of each relay device as an example, that is, the terminal device provides the information of each relay device. Take the strategy parameter as an example, and the process of this example is described as follows.
S201、终端设备确定需要直连的第一中继设备。S201: The terminal device determines the first relay device that needs to be directly connected.
终端设备提供各个中继设备的策略参数,那么终端设备可以确定需要直连的是哪个中继设备,例如为第一中继设备。The terminal device provides the policy parameters of each relay device, then the terminal device can determine which relay device needs to be directly connected, for example, the first relay device.
S202、终端设备向第一中继设备发送直连通信请求消息,该直连通信请求消息包括中继设备支持的服务信息和终端设备的应用层标识。S202: The terminal device sends a direct connection communication request message to the first relay device, where the direct connection communication request message includes service information supported by the relay device and an application layer identifier of the terminal device.
终端设备可以向第一中继设备发送直连通信请求消息,该直连通信请求消息可以包括第一中继设备支持的服务信息,以便第一中继设备根据该直连通信请求消息,可以判断该直连通信请求消息中的中继设备的服务信息是否 是自身所支持的,进而确定是否是终端设备需要直连的中继设备。当然,终端设备也可以广播直连通信请求消息,图2以终端设备广播直连通信请求消息,存在3个中继设备,中继设备1为第一中继设备为例。The terminal device may send a direct communication request message to the first relay device, and the direct communication request message may include service information supported by the first relay device, so that the first relay device can determine according to the direct communication request message Whether the service information of the relay device in the direct connection communication request message is supported by itself, and then it is determined whether the terminal device needs to be directly connected to the relay device. Of course, the terminal device may also broadcast the direct connection communication request message. In FIG. 2, the terminal device broadcasts the direct connection communication request message. There are three relay devices, and the relay device 1 is the first relay device as an example.
可能的实施方式中,该直连通信请求消息还可以包括终端设备的链路层标识(例如用“Remote UE Layer-2 ID”表示)和中继设备的链路层标识(例如用“Relay UE Layer-2 ID”表示)。In a possible implementation, the direct communication request message may also include the link layer identifier of the terminal device (for example, "Remote UE Layer-2 ID") and the link layer identifier of the relay device (for example, "Relay UE Layer-2 ID” means).
例如直连通信请求消息的源地址为Remote UE Layer-2 ID,直连通信请求消息的目的地址为Relay UE Layer-2 ID。For example, the source address of the direct communication request message is Remote UE Layer-2 ID, and the destination address of the direct communication request message is Relay UE Layer-2 ID.
在一些实施例中,该直连通信请求消息还可以包括中继设备的应用层标识、服务质量参数等。In some embodiments, the direct communication request message may also include the application layer identification of the relay device, service quality parameters, and so on.
S203、第一中继设备向终端设备发送直连通信响应消息,该直连通信响应消息包括中继设备的应用层标识和终端设备的应用层标识,从而终端设备接收该直连通信响应消息,与第一中继设备建立直连通信连接。S203. The first relay device sends a direct communication response message to the terminal device, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device, so that the terminal device receives the direct communication response message. Establish a direct communication connection with the first relay device.
如果第一中继设备确定支持直连通信请求消息中的中继设备的服务信息,那么第一中继设备可以向终端设备发送直连通信响应消息。具体的,第一中继设备可以根据直连通信请求消息中的终端设备的应用层标识确定终端设备的身份信息,从而向终端设备发送直连通信响应消息。If the first relay device determines that it supports the service information of the relay device in the direct communication request message, the first relay device may send a direct communication response message to the terminal device. Specifically, the first relay device may determine the identity information of the terminal device according to the application layer identifier of the terminal device in the direct communication request message, so as to send a direct communication response message to the terminal device.
在一些实施例中,直连通信请求消息包括终端设备的链路层标识和中继设备的链路层标识,那么直连通信响应消息可以包括中继设备的链路层标识和终端设备的链路层标识。例如,直连通信请求消息的源地址为Remote UE Layer-2 ID,直连通信请求消息的目的地址为Relay UE Layer-2 ID,对应的,直连通信响应消息的源地址为Relay UE Layer-2 ID,直连通信请求消息的目的地址为Remote UE Layer-2 ID。In some embodiments, the direct communication request message includes the link layer identifier of the terminal device and the link layer identifier of the relay device, and the direct communication response message may include the link layer identifier of the relay device and the link layer of the terminal device. Road layer identification. For example, the source address of the direct communication request message is Remote UE Layer-2 ID, and the destination address of the direct communication request message is Relay UE Layer-2 ID. Correspondingly, the source address of the direct communication response message is Relay UE Layer-2. 2 ID, the destination address of the direct communication request message is Remote UE Layer-2 ID.
在一些实施例中,该直连通信请求消息还可以包括中继设备的应用层标识、中继设备的服务信息或者服务质量参数中的一种信息或多种信息的组合。In some embodiments, the direct communication request message may further include one or a combination of the application layer identifier of the relay device, the service information of the relay device, or the service quality parameter.
请参见图3,为本申请实施例提供的直连通信方法的一个示例,该示例以网络设备为各个中继设备配置策略参数为例,也就是终端设备不提供各个中 继设备的策略参数为例,该示例的流程描述如下。Please refer to FIG. 3, which is an example of the direct communication method provided by the embodiment of this application. This example takes the network device configuring policy parameters for each relay device as an example, that is, the terminal device does not provide the policy parameters of each relay device. For example, the process of this example is described as follows.
S301、终端设备确定中继设备支持的服务信息。S301. The terminal device determines the service information supported by the relay device.
终端设备不知道需要直连的中继设备有哪些,终端设备需要确认可以直连的中继设备。示例性的,终端设备可以根据需要直连的中继设备的服务信息查找需要直连的中继设备。这种情况下,终端设备提供各个中继设备的策略参数,从而可以获取各个中继设备支持的服务信息,从中选择需要的服务信息,以根据该服务信息查找对应的中继设备。The terminal device does not know which relay devices need to be directly connected, and the terminal device needs to confirm the relay devices that can be directly connected. Exemplarily, the terminal device may search for the relay device that needs to be directly connected according to the service information of the relay device that needs to be directly connected. In this case, the terminal device provides the policy parameters of each relay device, so that the service information supported by each relay device can be obtained, and the required service information can be selected from the service information to find the corresponding relay device according to the service information.
S302、终端设备广播直连通信请求消息,该直连通信请求消息包括中继设备支持的服务信息和终端设备的应用层标识。S302. The terminal device broadcasts a direct connection communication request message, where the direct connection communication request message includes service information supported by the relay device and an application layer identifier of the terminal device.
终端设备可以广播直连通信请求消息,该直连通信请求消息可以包括中继设备支持的服务信息,以便接收该直连通信请求消息的中继设备可以判断该直连通信请求消息中的中继设备的服务信息是否是自身所支持的,进而确定是否是终端设备需要直连的中继设备。The terminal device may broadcast a direct communication request message, which may include service information supported by the relay device, so that the relay device that receives the direct communication request message can determine the relay in the direct communication request message Whether the service information of the device is supported by itself, and then determine whether the terminal device needs to be directly connected to the relay device.
进一步地,该直连通信请求消息还可以包括终端设备的链路层标识(例如用“Remote UE Layer-2 ID”表示)和中继设备的链路层标识(例如用“Relay UE Layer-2 ID”表示)。例如直连通信请求消息的源地址为Remote UE Layer-2 ID,直连通信请求消息的目的地址为Relay UE Layer-2 ID。Further, the direct communication request message may also include the link layer identifier of the terminal device (for example, "Remote UE Layer-2 ID") and the link layer identifier of the relay device (for example, "Relay UE Layer-2 ID"). ID" means). For example, the source address of the direct communication request message is Remote UE Layer-2 ID, and the destination address of the direct communication request message is Relay UE Layer-2 ID.
在一些实施例中,该直连通信请求消息还可以包括中继设备的应用层标识、服务质量参数等。In some embodiments, the direct communication request message may also include the application layer identification of the relay device, service quality parameters, and so on.
S303、至少一个中继设备向终端设备发送直连通信响应消息,该直连通信响应消息包括中继设备的应用层标识和终端设备的应用层标识。S303. At least one relay device sends a direct communication response message to the terminal device, where the direct communication response message includes the application layer identification of the relay device and the application layer identification of the terminal device.
多个中继设备接收该直连通信请求消息,可以判断该直连通信请求消息中的中继设备的服务信息是否是自身所支持的。图3以多个中继设备为3个中继设备,这3个中继设备分别为中继设备1、中继设备2和中继设备3为例。如果这多个中继设备中的至少一个中继设备确定支持直连通信请求消息中的中继设备的服务信息,那么这至少一个中继设备可以分别向终端设备发送直连通信响应消息。具体的,至少一个中继设备可以根据直连通信请求消息中 的终端设备的应用层标识确定终端设备的身份信息,从而向终端设备发送直连通信响应消息。图3以这3个中继设备中的2个中继设备是终端设备需要直连的中继设备为例。Multiple relay devices receive the direct communication request message, and can determine whether the service information of the relay device in the direct communication request message is supported by themselves. Figure 3 takes multiple relay devices as three relay devices, and the three relay devices are respectively relay device 1, relay device 2, and relay device 3 as an example. If at least one relay device among the plurality of relay devices determines to support the service information of the relay device in the direct communication request message, then the at least one relay device may respectively send a direct communication response message to the terminal device. Specifically, at least one relay device may determine the identity information of the terminal device according to the application layer identifier of the terminal device in the direct communication request message, so as to send a direct communication response message to the terminal device. Fig. 3 takes as an example that two of the three relay devices are relay devices to which the terminal device needs to be directly connected.
在一些实施例中,直连通信请求消息包括终端设备的链路层标识和中继设备的链路层标识,那么直连通信响应消息可以包括中继设备的链路层标识和终端设备的链路层标识。例如,直连通信请求消息的源地址为Remote UE Layer-2 ID,直连通信请求消息的目的地址为Relay UE Layer-2 ID,对应的,直连通信响应消息的源地址为Relay UE Layer-2 ID,直连通信请求消息的目的地址为Remote UE Layer-2 ID。In some embodiments, the direct communication request message includes the link layer identifier of the terminal device and the link layer identifier of the relay device, and the direct communication response message may include the link layer identifier of the relay device and the link layer of the terminal device. Road layer identification. For example, the source address of the direct communication request message is Remote UE Layer-2 ID, and the destination address of the direct communication request message is Relay UE Layer-2 ID. Correspondingly, the source address of the direct communication response message is Relay UE Layer-2. 2 ID, the destination address of the direct communication request message is Remote UE Layer-2 ID.
在一些实施例中,该直连通信请求消息还可以包括中继设备的应用层标识、中继设备的服务信息或者服务质量参数中的一种信息或多种信息的组合。In some embodiments, the direct communication request message may further include one or a combination of the application layer identifier of the relay device, the service information of the relay device, or the service quality parameter.
S304、终端设备从至少一个中继设备中选择第一中继设备建立直连通信连接。S304. The terminal device selects the first relay device from the at least one relay device to establish a direct communication connection.
终端设备可以从至少一个中继设备任意选择一个中继设备建立直连通信连接,也可以按照预设的规则从至少一个中继设备任意选择一个中继设备建立直连通信连接,对此,本申请实施例不作限制。The terminal device can arbitrarily select a relay device from at least one relay device to establish a direct communication connection, or according to preset rules, select a relay device arbitrarily from at least one relay device to establish a direct communication connection. The application examples are not limited.
从图2和图3可以看出本申请实施例提供的直连通信方法,终端设备连接中继设备的过程包括终端设备发现中继设备的过程,相较于目前终端设备与中继设备建立连接,需要进行发现过程和建立单播连接过程而言,显然使用的信令更少,节约了信令。It can be seen from Figures 2 and 3 that in the direct connection communication method provided by the embodiments of the present application, the process of connecting a terminal device to a relay device includes a process in which the terminal device discovers the relay device. Compared with the current connection between the terminal device and the relay device In terms of the discovery process and the establishment of a unicast connection process, it is obvious that less signaling is used, which saves signaling.
请参见图4,为本申请实施例提供的网络侧设备为终端设备提供中继设备的策略参数的一个示例。网络侧设备可以包括接入和移动性管理功能(Access and Mobility Management FunctIon,AMF)和策略控制功能(Policy Control Function,PCF)。该示例的流程描述如下。Refer to FIG. 4, which is an example of the network-side device provided in this embodiment of the present application providing a terminal device with a policy parameter of a relay device. The network side device may include access and mobility management functions (Access and Mobility Management FunctIon, AMF) and policy control functions (Policy Control Function, PCF). The flow of this example is described below.
S401、用户设备(UE)向AMF发送注册请求(Registration Request)消息,该消息可以包含终端设备策略容器(UE Policy Container)。该Registration Request消息可以用于向PCF请求提供邻近业务(ProSe)策略信息。同时, UE还可以向PCF指示该UE是终端设备(Remote UE)或中继设备(Relay UE)。S401. The user equipment (UE) sends a registration request (Registration Request) message to the AMF, where the message may include a terminal device policy container (UE Policy Container). The Registration Request message can be used to request the PCF to provide ProSe (ProSe) policy information. At the same time, the UE may also indicate to the PCF that the UE is a terminal device (Remote UE) or a relay device (Relay UE).
S402、AMF在完成Registration过程后向UE返回注册响应(Registration Accept)消息。S402. The AMF returns a registration response (Registration Accept) message to the UE after completing the Registration process.
S403、AMF向PCF发送请求消息,该请求消息包括第一指示信息和第二指示信息,该第一指示信息用于指示ProSe策略,该第二指示信息用于指示Remote UE或Relay UE。S403. The AMF sends a request message to the PCF. The request message includes first indication information and second indication information. The first indication information is used to indicate the ProSe policy, and the second indication information is used to indicate Remote UE or Relay UE.
S404、PCF向AMF返回响应消息。S404. The PCF returns a response message to the AMF.
S405、PCF向AMF发送传输消息,该传输消息中包含UE Policy Container,该UE Policy Container用于向UE提供ProSe策略参数。需要说明的是,这里的UE Policy Container与S401中的UE Policy Container名称相同,但是内容有所不同。UE Policy Container是UE和PCF之间交互信息用的,对AMF是透明的。UE向PCF发送的UE Policy Container包含UE要请求的信息,以及UE能力信息,如Remote UE/Relay UE,PCF向UE发送的container包含具体的policy参数信息,如relay service code等。PCF向AMF发送的传输消息携带的UE Policy Container指示了ProSe策略参数。对于Remote UE,ProSe策略参数包括Remote UE User Info、Relay UE User Info、Relay UE Layer-2 ID、Relay Service Code、QoS参数、Relay Service Code和目标Layer-2 ID映射关系。对于Relay UE,ProSe策略参数包括Relay UE User Info、Relay Service Code、QoS参数、Relay Service Code和Layer-2 ID映射关系。S405. The PCF sends a transmission message to the AMF. The transmission message includes the UE Policy Container, and the UE Policy Container is used to provide ProSe policy parameters to the UE. It should be noted that the UE Policy Container here has the same name as the UE Policy Container in S401, but the content is different. The UE Policy Container is used to exchange information between the UE and the PCF, and is transparent to the AMF. The UE Policy Container sent by the UE to the PCF contains the information the UE wants to request and UE capability information, such as Remote UE/Relay UE, and the container sent by the PCF to the UE contains specific policy parameter information, such as relay service code. The UE Policy Container carried in the transmission message sent by the PCF to the AMF indicates the ProSe policy parameter. For Remote UE, ProSe policy parameters include Remote UE User Info, Relay UE User Info, Relay UE Layer-2 ID, Relay Service Code, QoS parameters, Relay Service Code and target Layer-2 ID mapping relationship. For Relay UE, ProSe policy parameters include Relay UE User Info, Relay Service Code, QoS parameters, Relay Service Code, and Layer-2 ID mapping relationships.
S406、AMF将ProSe策略参数发送给设备(UE)。S406. The AMF sends the ProSe policy parameter to the device (UE).
S407、UE向AMF返回设备(UE)策略传递结果,该策略传递结果指示S405中的UE Policy container中包含的信息。S407: The UE returns a device (UE) policy delivery result to the AMF, and the policy delivery result indicates the information included in the UE Policy container in S405.
S408、AMF向PCF返回设备(UE)策略下发结果消息,从而设备(UE)可以提供对应的策略参数。S408. The AMF returns a device (UE) policy delivery result message to the PCF, so that the device (UE) can provide corresponding policy parameters.
如上从终端设备和中继设备交互的角度介绍了本申请实施例提供的直连通信方法,下面结合说明书附图介绍本申请实施例提供的设备。As above, the direct connection communication method provided by the embodiment of the present application is introduced from the perspective of the interaction between the terminal device and the relay device. The following describes the device provided by the embodiment of the present application with reference to the accompanying drawings of the specification.
请参见图5,基于同一发明构思,本申请一实施例还提供一种终端设备, 该终端设备包括存储器501、处理器502和收发机503。其中,存储器501和收发机503可以通过总线接口与处理器502相连接(图5以此为例),或者也可以通过专门的连接线与处理器502连接。收发机503用于在处理器502的控制下收发信息。其中,存储器501可以用于存储程序。处理器502可以用于读取存储器501中的程序,执行下列过程:Referring to FIG. 5, based on the same inventive concept, an embodiment of the present application further provides a terminal device. The terminal device includes a memory 501, a processor 502, and a transceiver 503. Among them, the memory 501 and the transceiver 503 may be connected to the processor 502 through a bus interface (as shown in FIG. 5 as an example), or may also be connected to the processor 502 through a special connection line. The transceiver 503 is used to send and receive information under the control of the processor 502. Among them, the memory 501 may be used to store programs. The processor 502 may be used to read the program in the memory 501 and execute the following process:
向中继设备发送直连通信请求消息,直连通信请求消息包括终端设备的应用层标识和中继设备支持的服务信息;Send a direct connection communication request message to the relay device, where the direct connection communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device;
接收中继设备返回的直连通信响应消息,直连通信响应消息包括中继设备的应用层标识和终端设备的应用层标识;Receiving a direct communication response message returned by the relay device, where the direct communication response message includes the application layer identification of the relay device and the application layer identification of the terminal device;
与中继设备建立直连通信连接。Establish a direct communication connection with the relay device.
可选的,直连通信请求消息还包括终端设备的链路层标识和中继设备的第一链路层标识,中继设备的第一链路层标识是根据中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is determined according to the service information supported by the relay device. of.
可选的,直连通信响应消息还包括终端设备的链路层标识和中继设备的第二链路层标识,中继设备的第二链路层标识是根据中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identification of the terminal device and the second link layer identification of the relay device, and the second link layer identification of the relay device is determined according to the application layer identification of the relay device of.
可选的,直连通信请求消息还包括中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,直连通信请求消息为广播消息,直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,收发机503还可以用于:Optionally, the transceiver 503 can also be used for:
接收网络设备发送的策略参数,策略参数包括中继设备支持的服务信息,以及中继设备支持的服务信息和中继设备的第一链路层标识信息之间的映射关系。The policy parameter sent by the network device is received, and the policy parameter includes the service information supported by the relay device, and the mapping relationship between the service information supported by the relay device and the first link layer identification information of the relay device.
其中,在图5中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器502代表的一个或多个处理器和存储器501代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机503可以是多个元件, 即包括发送机和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器502负责管理总线架构和通常的处理,存储器501可以存储处理器502在执行操作时所使用的数据。Wherein, in FIG. 5, the bus architecture may include any number of interconnected buses and bridges. Specifically, one or more processors represented by the processor 502 and various circuits of the memory represented by the memory 501 are linked together. The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein. The bus interface provides the interface. The transceiver 503 may be a plurality of elements, including a transmitter and a transceiver, and provide a unit for communicating with various other devices on the transmission medium. The processor 502 is responsible for managing the bus architecture and general processing, and the memory 501 can store data used by the processor 502 when performing operations.
请参见图6,基于同一发明构思,本申请一实施例提供一种终端设备,该终端设备包括发送模块601、接收模块602和处理模块603,发送模块601可以用于向中继设备发送直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;接收模块602可以用于接收所述中继设备返回的直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识;处理模块603用于与所述中继设备建立直连通信连接。Referring to FIG. 6, based on the same inventive concept, an embodiment of the present application provides a terminal device. The terminal device includes a sending module 601, a receiving module 602, and a processing module 603. The sending module 601 can be used to send a direct connection to a relay device. A communication request message, where the direct communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device; the receiving module 602 may be used to receive the direct communication response message returned by the relay device The direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device; the processing module 603 is configured to establish a direct communication connection with the relay device.
可选的,直连通信请求消息还包括终端设备的链路层标识和中继设备的第一链路层标识,中继设备的第一链路层标识是根据中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is determined according to the service information supported by the relay device. of.
可选的,直连通信响应消息还包括终端设备的链路层标识和中继设备的第二链路层标识,中继设备的第二链路层标识是根据中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identification of the terminal device and the second link layer identification of the relay device, and the second link layer identification of the relay device is determined according to the application layer identification of the relay device of.
可选的,直连通信请求消息还包括中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,直连通信请求消息为广播消息,直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,发送模块601还可以用于:Optionally, the sending module 601 can also be used for:
接收网络设备发送的策略参数,策略参数包括中继设备支持的服务信息,以及中继设备支持的服务信息和中继设备的第一链路层标识信息之间的映射关系。The policy parameter sent by the network device is received, and the policy parameter includes the service information supported by the relay device, and the mapping relationship between the service information supported by the relay device and the first link layer identification information of the relay device.
该终端设备中的发送模块601、接收模块602和处理模块603的实体设备可以对应图5中的处理器502或收发机503,该终端设备可以用于执行本申请实施例所提供的方法,因此,对于该设备的各功能模块所能够实现的功能等可参考本申请实施例的描述,不多赘述。The physical devices of the sending module 601, the receiving module 602, and the processing module 603 in the terminal device may correspond to the processor 502 or the transceiver 503 in FIG. 5, and the terminal device may be used to execute the method provided in the embodiment of the present application. For the functions that can be implemented by the functional modules of the device, reference may be made to the description of the embodiments of the present application, which will not be repeated.
请参见图7,基于同一发明构思,本申请一实施例还提供一种终端设备, 该终端设备包括存储器701、处理器702和收发机703。其中,存储器701和收发机703可以通过总线接口与处理器702相连接(图7以此为例),或者也可以通过专门的连接线与处理器702连接。收发机703用于在处理器702的控制下收发信息。其中,存储器701可以用于存储程序。处理器702可以用于读取存储器701中的程序,执行下列过程:Referring to FIG. 7, based on the same inventive concept, an embodiment of the present application further provides a terminal device. The terminal device includes a memory 701, a processor 702, and a transceiver 703. Among them, the memory 701 and the transceiver 703 may be connected to the processor 702 through a bus interface (as shown in FIG. 7 as an example), or may also be connected to the processor 702 through a special connection line. The transceiver 703 is used to send and receive information under the control of the processor 702. Among them, the memory 701 may be used to store programs. The processor 702 may be used to read the program in the memory 701 and execute the following process:
控制收发机703接收来自终端设备的直连通信请求消息,直连通信请求消息包括终端设备的应用层标识和中继设备支持的服务信息;The control transceiver 703 receives a direct connection communication request message from a terminal device, where the direct connection communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
控制收发机703向终端设备返回直连通信响应消息,直连通信响应消息包括中继设备的应用层标识和终端设备的应用层标识。The control transceiver 703 returns a direct communication response message to the terminal device, and the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
可选的,直连通信请求消息还包括终端设备的链路层标识和中继设备的第一链路层标识,中继设备的第一链路层标识是根据中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is determined according to the service information supported by the relay device. of.
可选的,直连通信响应消息还包括终端设备的链路层标识和中继设备的第二链路层标识,中继设备的第二链路层标识是根据中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identification of the terminal device and the second link layer identification of the relay device, and the second link layer identification of the relay device is determined according to the application layer identification of the relay device of.
可选的,直连通信请求消息还包括中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,直连通信请求消息为广播消息,直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,收发机703还可以用于:Optionally, the transceiver 703 can also be used for:
接收网络设备发送的策略参数,策略参数包括中继设备支持的服务信息,以及中继设备支持的服务信息和中继设备的第一链路层标识之间的映射关系。The policy parameter sent by the network device is received, and the policy parameter includes the service information supported by the relay device, and the mapping relationship between the service information supported by the relay device and the first link layer identifier of the relay device.
可选的,处理器702还可以用于:Optionally, the processor 702 may also be used to:
确定是否支持直连通信请求消息中的中继设备支持的服务信息;Determine whether to support the service information supported by the relay device in the direct communication request message;
在处理模块确定支持直连通信请求消息中的中继设备支持的服务信息时,控制收发机向终端设备发送直连通信响应消息。When the processing module determines that it supports the service information supported by the relay device in the direct communication request message, it controls the transceiver to send a direct communication response message to the terminal device.
可选的,处理器702还可以用于:Optionally, the processor 702 may also be used to:
确定是否支持直连通信请求消息中的中继设备的应用层标识;Determine whether to support the application layer identifier of the relay device in the direct communication request message;
在处理模块确定支持直连通信请求消息中的中继设备的应用层标识时, 控制收发机向终端设备发送直连通信响应消息。When the processing module determines that it supports the application layer identifier of the relay device in the direct connection communication request message, it controls the transceiver to send the direct connection communication response message to the terminal device.
其中,在图7中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器702代表的一个或多个处理器和存储器701代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机703可以是多个元件,即包括发送机和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器702负责管理总线架构和通常的处理,存储器701可以存储处理器702在执行操作时所使用的数据。Wherein, in FIG. 7, the bus architecture may include any number of interconnected buses and bridges. Specifically, one or more processors represented by the processor 702 and various circuits of the memory represented by the memory 701 are linked together. The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein. The bus interface provides the interface. The transceiver 703 may be a plurality of elements, including a transmitter and a transceiver, and provide a unit for communicating with various other devices on the transmission medium. The processor 702 is responsible for managing the bus architecture and general processing, and the memory 701 can store data used by the processor 702 when performing operations.
请参见图8,基于同一发明构思,本申请一实施例提供一种终端设备,该终端设备包括接收模块801和发送模块802和处理模块803。其中,接收模块801可以用于接收来自终端设备的直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;发送模块802可以用于向所述终端设备返回直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识。Referring to FIG. 8, based on the same inventive concept, an embodiment of the present application provides a terminal device. The terminal device includes a receiving module 801, a sending module 802, and a processing module 803. Wherein, the receiving module 801 may be used to receive a direct communication request message from a terminal device, the direct communication request message including the application layer identifier of the terminal device and the service information supported by the relay device; the sending module 802 may It is used to return a direct communication response message to the terminal device, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
可选的,直连通信请求消息还包括终端设备的链路层标识和中继设备的第一链路层标识,中继设备的第一链路层标识是根据中继设备支持的服务信息确定的。Optionally, the direct communication request message further includes the link layer identifier of the terminal device and the first link layer identifier of the relay device, and the first link layer identifier of the relay device is determined according to the service information supported by the relay device. of.
可选的,直连通信响应消息还包括终端设备的链路层标识和中继设备的第二链路层标识,中继设备的第二链路层标识是根据中继设备的应用层标识确定的。Optionally, the direct communication response message further includes the link layer identification of the terminal device and the second link layer identification of the relay device, and the second link layer identification of the relay device is determined according to the application layer identification of the relay device of.
可选的,直连通信请求消息还包括中继设备的应用层标识。Optionally, the direct communication request message further includes the application layer identifier of the relay device.
可选的,直连通信请求消息为广播消息,直连通信响应消息为单播消息。Optionally, the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
可选的,接收模块801还可以用于:Optionally, the receiving module 801 can also be used for:
接收网络设备发送的策略参数,策略参数包括中继设备支持的服务信息,以及中继设备支持的服务信息和中继设备的第一链路层标识之间的映射关系。The policy parameter sent by the network device is received, and the policy parameter includes the service information supported by the relay device, and the mapping relationship between the service information supported by the relay device and the first link layer identifier of the relay device.
可选的,中继设备还包括处理模块803,处理模块803可以用于:Optionally, the relay device further includes a processing module 803, and the processing module 803 may be used for:
确定是否支持直连通信请求消息中的中继设备支持的服务信息;Determine whether to support the service information supported by the relay device in the direct communication request message;
在确定支持直连通信请求消息中的中继设备支持的服务信息时,控制发送模块802向终端设备发送直连通信响应消息。When it is determined that the service information supported by the relay device in the direct communication request message is supported, the sending module 802 is controlled to send a direct communication response message to the terminal device.
可选的,处理模块803还可以用于:Optionally, the processing module 803 may also be used for:
确定是否支持直连通信请求消息中的中继设备的应用层标识;Determine whether to support the application layer identifier of the relay device in the direct communication request message;
在确定支持直连通信请求消息中的中继设备的应用层标识时,控制发送模块802向终端设备发送直连通信响应消息。When it is determined that the application layer identifier of the relay device in the direct connection communication request message is supported, the control sending module 802 sends a direct connection communication response message to the terminal device.
该终端设备中的接收模块801、发送模块802和处理模块803的实体设备可以对应图7中的处理器702或收发机703,该终端设备可以用于执行本申请实施例所提供的方法,因此,对于该设备的各功能模块所能够实现的功能等可参考本申请实施例的描述,不多赘述。The physical devices of the receiving module 801, the sending module 802, and the processing module 803 in the terminal device can correspond to the processor 702 or the transceiver 703 in FIG. 7, and the terminal device can be used to execute the method provided in the embodiment of the present application. For the functions that can be implemented by the functional modules of the device, reference may be made to the description of the embodiments of the present application, which will not be repeated.
基于同一发明构思,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行本申请实施例所提供的方法。Based on the same inventive concept, the embodiments of the present application provide a computer-readable storage medium that stores computer instructions, and when the computer instructions run on the computer, the computer executes the instructions provided in the embodiments of the present application. Methods.
在具体的实施过程中,计算机可读存储介质包括:通用串行总线闪存盘(Universal Serial Bus flash drive,USB)、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的存储介质。In a specific implementation process, computer-readable storage media include: Universal Serial Bus flash drive (USB), mobile hard disk, read-only memory (Read-Only Memory, ROM), and random access memory (Universal Serial Bus flash drive, USB). Random Access Memory, RAM), magnetic disks or optical disks and other storage media that can store program codes.
在本申请实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性或其它的形式。In the embodiments of the present application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be Combined or can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
在本申请实施例中的各功能单元可以集成在一个处理单元中,或者各个单元也可以均是独立的物理模块。The functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may also be an independent physical module.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备,例如可以是个人计算机,服务器,或者网络设备等,或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:通用串行总线闪存盘(universal serial bus flash drive)、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, all or part of the technical solutions of the embodiments of the present application can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device, for example, A personal computer, a server, or a network device, etc., or a processor (processor) executes all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: universal serial bus flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks and other media that can store program codes.
以上所述,以上实施例仅用以对本申请的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本申请实施例的方法,不应理解为对本申请实施例的限制。本技术领域的技术人员可轻易想到的变化或替换,都应涵盖在本申请实施例的保护范围之内。As mentioned above, the above embodiments are only used to introduce the technical solutions of the present application in detail, but the descriptions of the above embodiments are only used to help understand the methods of the embodiments of the present application, and should not be construed as limiting the embodiments of the present application. Any changes or replacements that can be easily conceived by those skilled in the art should be covered by the protection scope of the embodiments of the present application.

Claims (43)

  1. 一种直连通信的方法,其特征在于,包括:A method of direct communication, characterized in that it comprises:
    终端设备向中继设备发送直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;The terminal device sends a direct connection communication request message to the relay device, where the direct connection communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
    所述终端设备接收所述中继设备返回的直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识;Receiving, by the terminal device, a direct communication response message returned by the relay device, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device;
    所述终端设备与所述中继设备建立直连通信连接。The terminal device establishes a direct communication connection with the relay device.
  2. 如权利要求1所述的方法,其特征在于,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。The method according to claim 1, wherein the direct communication request message further includes a link layer identifier of the terminal device and a first link layer identifier of the relay device, and the relay device The first link layer identifier of is determined according to the service information supported by the relay device.
  3. 如权利要求1所述的方法,其特征在于,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。The method according to claim 1, wherein the direct communication response message further includes a link layer identifier of the terminal device and a second link layer identifier of the relay device, and the relay device The second link layer identifier of is determined according to the application layer identifier of the relay device.
  4. 如权利要求1所述的方法,其特征在于,所述直连通信请求消息还包括所述中继设备的应用层标识。The method according to claim 1, wherein the direct communication request message further includes an application layer identifier of the relay device.
  5. 如权利要求1-4任一所述的方法,其特征在于,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。The method according to any one of claims 1 to 4, wherein the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
  6. 如权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:
    所述终端设备接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识信息之间的映射关系。The terminal device receives a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, service information supported by the relay device, and a first link layer identifier of the relay device The mapping relationship between information.
  7. 一种直连通信的方法,其特征在于,包括:A method of direct communication, characterized in that it comprises:
    中继设备接收来自终端设备的直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;The relay device receives a direct communication request message from a terminal device, where the direct communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
    所述中继设备向所述终端设备返回直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识。The relay device returns a direct communication response message to the terminal device, and the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
  8. 如权利要求7所述的方法,其特征在于,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。The method according to claim 7, wherein the direct communication request message further includes a link layer identifier of the terminal device and a first link layer identifier of the relay device, and the relay device The first link layer identifier of is determined according to the service information supported by the relay device.
  9. 如权利要求7所述的方法,其特征在于,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。The method according to claim 7, wherein the direct communication response message further includes a link layer identifier of the terminal device and a second link layer identifier of the relay device, and the relay device The second link layer identifier of is determined according to the application layer identifier of the relay device.
  10. 如权利要求7所述的方法,其特征在于,所述直连通信请求消息还包括所述中继设备的应用层标识。8. The method according to claim 7, wherein the direct communication request message further includes an application layer identifier of the relay device.
  11. 如权利要求7-10任一所述的方法,其特征在于,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。The method according to any one of claims 7-10, wherein the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
  12. 如权利要求11所述的方法,其特征在于,所述方法还包括:The method of claim 11, wherein the method further comprises:
    所述中继设备接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。The relay device receives policy parameters sent by the network device, and the policy parameters include service information supported by the relay device, service information supported by the relay device, and the first link layer of the relay device The mapping relationship between the identities.
  13. 如权利要求12所述的方法,其特征在于,所述方法还包括:The method of claim 12, wherein the method further comprises:
    所述中继设备确定是否支持所述直连通信请求消息中的所述中继设备支持的服务信息;Determining whether the relay device supports the service information supported by the relay device in the direct communication request message;
    所述中继设备确定支持所述直连通信请求消息中的所述中继设备支持的服务信息,向所述终端设备发送所述直连通信响应消息。The relay device determines that it supports the service information supported by the relay device in the direct communication request message, and sends the direct communication response message to the terminal device.
  14. 如权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13, wherein the method further comprises:
    所述中继设备确定是否支持所述直连通信请求消息中的所述中继设备的应用层标识;Determining whether the relay device supports the application layer identifier of the relay device in the direct communication request message;
    所述中继设备确定支持所述直连通信请求消息中的所述中继设备的应用层标识,向所述终端设备发送所述直连通信响应消息。The relay device determines that it supports the application layer identifier of the relay device in the direct communication request message, and sends the direct communication response message to the terminal device.
  15. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it comprises:
    发送模块,用于向中继设备发送直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;A sending module, configured to send a direct communication request message to a relay device, where the direct communication request message includes the application layer identifier of the terminal device and service information supported by the relay device;
    接收模块,用于接收所述中继设备返回的直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识;A receiving module, configured to receive a direct communication response message returned by the relay device, the direct communication response message including the application layer identification of the relay device and the application layer identification of the terminal device;
    处理模块,用于与所述中继设备建立直连通信连接。The processing module is used to establish a direct communication connection with the relay device.
  16. 如权利要求15所述的终端设备,其特征在于,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。The terminal device according to claim 15, wherein the direct communication request message further includes a link layer identifier of the terminal device and a first link layer identifier of the relay device, and the relay device The first link layer identifier of the device is determined according to the service information supported by the relay device.
  17. 如权利要求15所述的终端设备,其特征在于,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。The terminal device according to claim 15, wherein the direct communication response message further includes a link layer identifier of the terminal device and a second link layer identifier of the relay device, and the relay device The second link layer identifier of the device is determined according to the application layer identifier of the relay device.
  18. 如权利要求15所述的终端设备,其特征在于,所述直连通信请求消息还包括所述中继设备的应用层信息。The terminal device according to claim 15, wherein the direct communication request message further includes application layer information of the relay device.
  19. 如权利要求15-18任一所述的终端设备,其特征在于,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。The terminal device according to any one of claims 15-18, wherein the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
  20. 如权利要求19所述的终端设备,其特征在于,所述接收模块还用于:The terminal device according to claim 19, wherein the receiving module is further configured to:
    接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。Receive a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
  21. 一种中继设备,其特征在于,包括:A relay device, characterized in that it comprises:
    接收模块,用于接收来自终端设备的直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息;A receiving module, configured to receive a direct communication request message from a terminal device, where the direct communication request message includes an application layer identifier of the terminal device and service information supported by the relay device;
    发送模块,用于向所述终端设备返回直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识。The sending module is configured to return a direct communication response message to the terminal device, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
  22. 如权利要求21所述的中继设备,其特征在于,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。The relay device according to claim 21, wherein the direct communication request message further includes a link layer identifier of the terminal device and a first link layer identifier of the relay device, and the middle The first link layer identifier of the relay device is determined according to the service information supported by the relay device.
  23. 如权利要求21所述的中继设备,其特征在于,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所 述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。The relay device according to claim 21, wherein the direct communication response message further includes a link layer identifier of the terminal device and a second link layer identifier of the relay device, and the middle The second link layer identifier of the relay device is determined according to the application layer identifier of the relay device.
  24. 如权利要求21所述的中继设备,其特征在于,所述直连通信请求消息还包括所述中继设备的应用层标识。The relay device according to claim 21, wherein the direct communication request message further includes an application layer identifier of the relay device.
  25. 如权利要求21-24任一所述的中继设备,其特征在于,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。The relay device according to any one of claims 21-24, wherein the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
  26. 如权利要求25所述的中继设备,其特征在于,所述接收模块还用于:The relay device according to claim 25, wherein the receiving module is further configured to:
    接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。Receive a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
  27. 如权利要求26所述的中继设备,其特征在于,所述中继设备还包括处理模块;其中,The relay device according to claim 26, wherein the relay device further comprises a processing module; wherein,
    所述处理模块用于确定是否支持所述直连通信请求消息中的所述中继设备支持的服务信息;The processing module is used to determine whether to support the service information supported by the relay device in the direct communication request message;
    在确定支持所述直连通信请求消息中的所述中继设备支持的服务信息时,控制所述发送模块向所述终端设备发送所述直连通信响应消息。When it is determined that the service information supported by the relay device in the direct communication request message is supported, the sending module is controlled to send the direct communication response message to the terminal device.
  28. 如权利要求27所述的中继设备,其特征在于,所述处理模块还用于:The relay device according to claim 27, wherein the processing module is further configured to:
    确定是否支持所述直连通信请求消息中的所述中继设备的应用层标识;Determining whether to support the application layer identifier of the relay device in the direct communication request message;
    在确定支持所述直连通信请求消息中的所述中继设备的应用层标识时,控制所述发送模块向所述终端设备发送所述直连通信响应消息。When it is determined that the application layer identifier of the relay device in the direct communication request message is supported, the sending module is controlled to send the direct communication response message to the terminal device.
  29. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it comprises:
    存储器,用于存储指令;Memory, used to store instructions;
    处理器,用于读取所述存储器中的指令,执行下列过程:The processor is configured to read instructions in the memory and execute the following process:
    控制收发机向中继设备发送直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息,以及接收所述中继设备返回的直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识;The control transceiver sends a direct connection communication request message to the relay device, the direct connection communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device, and receives the information returned by the relay device. A direct communication response message, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device;
    与所述中继设备建立直连通信连接。Establish a direct communication connection with the relay device.
  30. 如权利要求29所述的终端设备,其特征在于,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。The terminal device according to claim 29, wherein the direct communication request message further includes a link layer identifier of the terminal device and a first link layer identifier of the relay device, and the relay device The first link layer identifier of the device is determined according to the service information supported by the relay device.
  31. 如权利要求29所述的终端设备,其特征在于,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。The terminal device according to claim 29, wherein the direct communication response message further includes a link layer identifier of the terminal device and a second link layer identifier of the relay device, and the relay device The second link layer identifier of the device is determined according to the application layer identifier of the relay device.
  32. 如权利要求29所述的终端设备,其特征在于,所述直连通信请求消息还包括所述中继设备的应用层标识。The terminal device according to claim 29, wherein the direct communication request message further includes an application layer identifier of the relay device.
  33. 如权利要求29-32任一所述的终端设备,其特征在于,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。The terminal device according to any one of claims 29-32, wherein the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
  34. 如权利要求33所述的终端设备,其特征在于,所述收发机还用于:The terminal device according to claim 33, wherein the transceiver is further used for:
    接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。Receive a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
  35. 一种中继设备,其特征在于,包括:A relay device, characterized in that it comprises:
    存储器,用于存储指令;Memory, used to store instructions;
    处理器,用于读取所述存储器中的指令,执行下列过程:The processor is configured to read instructions in the memory and execute the following process:
    控制收发机接收来自终端设备的直连通信请求消息,所述直连通信请求消息包括所述终端设备的应用层标识和所述中继设备支持的服务信息,以及向所述终端设备返回直连通信响应消息,所述直连通信响应消息包括所述中继设备的应用层标识和所述终端设备的应用层标识。The control transceiver receives a direct connection communication request message from a terminal device, the direct connection communication request message includes the application layer identifier of the terminal device and the service information supported by the relay device, and returns the direct connection to the terminal device A communication response message, where the direct communication response message includes the application layer identifier of the relay device and the application layer identifier of the terminal device.
  36. 如权利要求35所述的中继设备,其特征在于,所述直连通信请求消息还包括所述终端设备的链路层标识和所述中继设备的第一链路层标识,所述中继设备的第一链路层标识是根据所述中继设备支持的服务信息确定的。The relay device according to claim 35, wherein the direct communication request message further comprises a link layer identifier of the terminal device and a first link layer identifier of the relay device, and the middle The first link layer identifier of the relay device is determined according to the service information supported by the relay device.
  37. 如权利要求35所述的中继设备,其特征在于,所述直连通信响应消息还包括所述终端设备的链路层标识和所述中继设备的第二链路层标识,所述中继设备的第二链路层标识是根据所述中继设备的应用层标识确定的。The relay device according to claim 35, wherein the direct communication response message further includes a link layer identifier of the terminal device and a second link layer identifier of the relay device, and the middle The second link layer identifier of the relay device is determined according to the application layer identifier of the relay device.
  38. 如权利要求35所述的中继设备,其特征在于,所述直连通信请求消息还包括所述中继设备的应用层标识。The relay device according to claim 35, wherein the direct communication request message further includes an application layer identifier of the relay device.
  39. 如权利要求35-38任一所述的中继设备,其特征在于,所述直连通信请求消息为广播消息,所述直连通信响应消息为单播消息。The relay device according to any one of claims 35-38, wherein the direct communication request message is a broadcast message, and the direct communication response message is a unicast message.
  40. 如权利要求35所述的中继设备,其特征在于,所述收发机还用于:The relay device according to claim 35, wherein the transceiver is further used for:
    接收网络设备发送的策略参数,所述策略参数包括所述中继设备支持的服务信息,以及所述中继设备支持的服务信息和所述中继设备的第一链路层标识之间的映射关系。Receive a policy parameter sent by a network device, where the policy parameter includes service information supported by the relay device, and a mapping between the service information supported by the relay device and the first link layer identifier of the relay device relationship.
  41. 如权利要求40所述的中继设备,其特征在于,所述处理器还用于:The relay device of claim 40, wherein the processor is further configured to:
    确定是否支持所述直连通信请求消息中的所述中继设备支持的服务信息;Determining whether to support the service information supported by the relay device in the direct communication request message;
    在所述处理模块确定支持所述直连通信请求消息中的所述中继设备支持的服务信息时,控制所述收发机向所述终端设备发送所述直连通信响应消息。When the processing module determines to support the service information supported by the relay device in the direct communication request message, control the transceiver to send the direct communication response message to the terminal device.
  42. 如权利要求41所述的中继设备,其特征在于,所述处理器还用于:The relay device according to claim 41, wherein the processor is further configured to:
    确定是否支持所述直连通信请求消息中的所述中继设备的应用层标识;Determining whether to support the application layer identifier of the relay device in the direct communication request message;
    在所述处理模块确定支持所述直连通信请求消息中的所述中继设备的应用层标识时,控制所述收发机向所述终端设备发送所述直连通信响应消息。When the processing module determines to support the application layer identifier of the relay device in the direct communication request message, control the transceiver to send the direct communication response message to the terminal device.
  43. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如权利要求1-6或7-14中任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions run on a computer, the computer executes any of claims 1-6 or 7-14 The method described in one item.
PCT/CN2020/124091 2019-10-29 2020-10-27 Direct communication method and device WO2021083156A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911040368.X 2019-10-29
CN201911040368.XA CN112752239B (en) 2019-10-29 2019-10-29 Direct connection communication method and device

Publications (1)

Publication Number Publication Date
WO2021083156A1 true WO2021083156A1 (en) 2021-05-06

Family

ID=75640200

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/124091 WO2021083156A1 (en) 2019-10-29 2020-10-27 Direct communication method and device

Country Status (2)

Country Link
CN (1) CN112752239B (en)
WO (1) WO2021083156A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193528A (en) * 2022-11-11 2023-05-30 深圳市摩尔环宇通信技术有限公司 Millimeter wave communication method, and related storage medium and program product
CN117460019A (en) * 2022-07-19 2024-01-26 中国电信股份有限公司 Method, device and system for determining relay terminal

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023087262A1 (en) * 2021-11-19 2023-05-25 Oppo广东移动通信有限公司 Communication method and communication apparatus
WO2023092482A1 (en) * 2021-11-26 2023-06-01 Oppo广东移动通信有限公司 Method and apparatus for communication by means of relay terminal, and terminal
WO2023108320A1 (en) * 2021-12-13 2023-06-22 Qualcomm Incorporated User-to-user relay discovery and selection
CN116266916A (en) * 2021-12-16 2023-06-20 维沃移动通信有限公司 RSC determination method, terminal and network side equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980910A (en) * 2014-04-03 2015-10-14 中兴通讯股份有限公司 D2D (Device to Device) discovery processing method and apparatus
WO2016043561A2 (en) * 2014-09-19 2016-03-24 Samsung Electronics Co., Ltd. Communication method and apparatus in wireless communication system supporting d2d communication
WO2016070410A1 (en) * 2014-11-07 2016-05-12 华为技术有限公司 Connection establishment method, device, and system
CN106507504A (en) * 2015-09-08 2017-03-15 华硕电脑股份有限公司 The method and apparatus of triggering radio bearer release in wireless telecommunication system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731902B (en) * 2012-10-12 2018-09-04 中兴通讯股份有限公司 The querying method and device of direct-connected communication target end message
WO2015068731A1 (en) * 2013-11-05 2015-05-14 シャープ株式会社 Terminal device, relay terminal device, and communication control method
CN106162929B (en) * 2015-04-07 2021-08-06 中兴通讯股份有限公司 Communication method and device for user terminal and relay node in equipment direct connection system
CN105228218B (en) * 2015-09-25 2018-11-06 宇龙计算机通信科技(深圳)有限公司 The admittance control method and relevant apparatus of distance terminal in D2D communications
CN110098858A (en) * 2018-01-30 2019-08-06 电信科学技术研究院有限公司 A kind of relaying operating mode configuration method and terminal
PL3869905T3 (en) * 2018-10-18 2024-04-02 Beijing Xiaomi Mobile Software Co., Ltd. Unicast connection and data transmission based on direct thing-to-thing connection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980910A (en) * 2014-04-03 2015-10-14 中兴通讯股份有限公司 D2D (Device to Device) discovery processing method and apparatus
WO2016043561A2 (en) * 2014-09-19 2016-03-24 Samsung Electronics Co., Ltd. Communication method and apparatus in wireless communication system supporting d2d communication
WO2016070410A1 (en) * 2014-11-07 2016-05-12 华为技术有限公司 Connection establishment method, device, and system
CN106507504A (en) * 2015-09-08 2017-03-15 华硕电脑股份有限公司 The method and apparatus of triggering radio bearer release in wireless telecommunication system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; Study on extended architecture support for proximity-based services (Release 13)", 3GPP STANDARD; 3GPP TR 23.713, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. SA WG2, no. V1.5.0, 28 July 2015 (2015-07-28), France, pages 1 - 80, XP050995819 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117460019A (en) * 2022-07-19 2024-01-26 中国电信股份有限公司 Method, device and system for determining relay terminal
CN116193528A (en) * 2022-11-11 2023-05-30 深圳市摩尔环宇通信技术有限公司 Millimeter wave communication method, and related storage medium and program product
CN116193528B (en) * 2022-11-11 2023-09-05 深圳市摩尔环宇通信技术有限公司 Millimeter wave communication method, and related storage medium and program product

Also Published As

Publication number Publication date
CN112752239B (en) 2022-05-27
CN112752239A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
WO2021083156A1 (en) Direct communication method and device
JP6988004B2 (en) Communication methods and devices in centralized and distributed unit architectures
USRE48986E1 (en) Method and terminal for establishing a communication connection
US9301122B2 (en) Apparatus and method for establishing a personal network for providing a CPNS service
WO2018205150A1 (en) Network slice selection policy updating method and apparatus
EP3550888B1 (en) Wireless connection switching method and terminal
JP6651633B2 (en) Data scheduling method, base station and system
WO2018082221A1 (en) Network switching method, apparatus and related equipment
JP2020504566A (en) Method and apparatus for selecting access and mobility management functions in a mobile communication system
KR101954657B1 (en) Connecting method between terminals in wi-fi p2p network and terminal thereof
JP2010063022A (en) Method of controlling access gateway apparatus, and communicating system
US20170237818A1 (en) Service discovery method, related device, and system
CN114945159A (en) Direct communication processing method and device, relay terminal and remote terminal
US11902860B2 (en) Communication method and device
WO2018090386A1 (en) Method, device and system for processing abnormities of nf modules
US20180332519A1 (en) Signal Strength Measurement Method And Device
US20220312517A1 (en) D2d communication method, apparatus, and system
CN112533177A (en) Method, device, apparatus and medium for providing and discovering moving edge calculation
CN116530208A (en) Communication method, device and system
WO2018000312A1 (en) Group communication method, device, and system
WO2020088217A1 (en) Resource allocation method, terminal and communication device
EP1835661A1 (en) Mobile terminal assisted peer-to-peer based self organisation of attachment points
CN114363918B (en) Network slice signing method, user equipment, core network equipment and system
WO2024027614A1 (en) Communication method and communication device
WO2023098484A1 (en) Application-based slice selection method, gateway, terminal, and storage medium

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: 20880630

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20880630

Country of ref document: EP

Kind code of ref document: A1