WO2021138764A1 - 通信方法和装置 - Google Patents

通信方法和装置 Download PDF

Info

Publication number
WO2021138764A1
WO2021138764A1 PCT/CN2020/070446 CN2020070446W WO2021138764A1 WO 2021138764 A1 WO2021138764 A1 WO 2021138764A1 CN 2020070446 W CN2020070446 W CN 2020070446W WO 2021138764 A1 WO2021138764 A1 WO 2021138764A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
address
relay
data
link
Prior art date
Application number
PCT/CN2020/070446
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to CN202080091873.1A priority Critical patent/CN114902800A/zh
Priority to EP20911441.2A priority patent/EP4075918A4/en
Priority to BR112022013390A priority patent/BR112022013390A2/pt
Priority to PCT/CN2020/070446 priority patent/WO2021138764A1/zh
Publication of WO2021138764A1 publication Critical patent/WO2021138764A1/zh
Priority to US17/858,140 priority patent/US20220338094A1/en

Links

Images

Classifications

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

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a communication method and device.
  • D2D communication allows direct communication between terminals, and can share spectrum resources with cell users under the control of the cell network, effectively improving the utilization of spectrum resources.
  • D2D communication has been applied to 4G network systems.
  • D2D communication includes one-to-many communication and one-to-one communication. In one-to-one communication, if the sender's device and receiver's device are within close range, they can communicate directly after mutual discovery; if the sender's device and receiver's device are not within close range, they cannot find each other.
  • a relay device can be introduced for assistance.
  • the communication between the sender device and the receiver device can be realized through the communication between the sender device and the relay device and the communication between the relay device and the receiver device. .
  • communication links between two terminals that can communicate directly.
  • These communication links include the communication link used for direct communication between the two terminals and the indirect communication link used for relay transmission. Communication link for communication. Any one of the two terminals needs to maintain the connectivity of the multiple communication links separately, which makes link connectivity maintenance expensive.
  • the embodiments of the present application provide a communication method and device, which reduce the overhead for the terminal to maintain link connectivity.
  • an embodiment of the present application provides a communication method, including: a first terminal receives a first message from a relay terminal, and the relay terminal is used for communication between the first terminal and the second terminal The relay terminal; the first message includes first indication information, the application layer identifier of the second terminal, and the first address of the second terminal; wherein the first indication information can be used to indicate the The first unicast link between the first terminal and the relay terminal; the first terminal updates the first information of the first unicast link according to the first message to obtain the updated all The second information of the first unicast link, where the second information includes the application layer identifier of the second terminal and the first address.
  • the first unicast link is obtained.
  • the second information of the link so that whether it is direct communication between the relay terminal and the first terminal or the relay terminal is used as a relay to realize the communication between the second terminal and the first terminal, it can be based on the first unicast link.
  • the second information is realized, which is equivalent to the direct communication purpose between the relay terminal and the first terminal and the relay communication purpose both use the same unicast link between the relay terminal and the first terminal, which reduces the number of communication between the first terminal and the first terminal. Following the links that need to be maintained between terminals, the overhead of link maintenance is reduced.
  • the method further includes: the first terminal sends the first data to the relay terminal through the first unicast link according to the second information of the first unicast link
  • the first data includes the first address, and the first address is used to indicate that the destination receiving end of the first data is the second terminal.
  • the first address of the second terminal is carried in the first data to indicate the location of the first data currently sent to the relay terminal.
  • the destination receiving end is the second terminal, which ensures normal communication between the first terminal and the second terminal when the link for realizing direct communication and relay communication between the first terminal and the relay terminal is the same unicast link.
  • the first address of the second terminal includes the network layer address of the second terminal; the second information further includes the data link layer address of the relay terminal; The data link layer address of the relay terminal is associated with the application layer identifier of the relay terminal, and the data link layer address of the relay terminal is also associated with the application layer identifier of the second terminal.
  • the first address of the second terminal includes the network layer address of the second terminal, and the network layer address of the second terminal may be assigned by the relay terminal or by the second terminal.
  • the data link layer address of the relay terminal is associated with the application layer identifier of the relay terminal, and the data link layer address of the relay terminal is also associated with the application layer identifier of the second terminal.
  • the first address of the second terminal includes the data link layer address of the second terminal.
  • the data link layer address of the second terminal is allocated by the second terminal and is used to identify the data link layer identifier of the unicast link between the second terminal and the relay terminal Therefore, carrying the data link layer address of the second terminal in the first data sent by the first terminal to the relay terminal can indicate that the destination receiving end of the first data is the second terminal, ensuring that the The normal communication between the first terminal and the second terminal when the link for realizing direct communication and relay communication between the subsequent terminals is the same unicast link.
  • the data link layer address of the second terminal is allocated by the relay terminal.
  • the first data sent by the first terminal to the relay terminal carries
  • the data link layer address of the second terminal can indicate that the destination receiving end of the first data is the second terminal, ensuring that the link for direct communication and relay communication between the first terminal and the relay terminal is the same unicast Normal communication between the first terminal and the second terminal during the link.
  • the first indication information includes a link identifier of the first unicast link.
  • This solution provides a specific implementation of the first indication information, which can save signaling overhead.
  • the first indication information includes the data link layer address of the relay terminal and the data link layer address of the first terminal.
  • This solution provides another specific implementation of the first indication information.
  • the first indication information includes the application layer identifier of the relay terminal and the application layer identifier of the first terminal.
  • This solution provides another specific implementation of the first indication information.
  • the first message further includes: the data link layer address of the relay terminal.
  • This solution includes the data link layer address of the relay terminal in the first message, so that when the first unicast link is not established between the first terminal and the relay terminal, the first terminal can The data link layer address of the relay terminal establishes a first unicast link.
  • the method further includes: the first terminal sends a response message of the first message to the relay terminal; the response message indicates that the update of the second information is completed.
  • This solution can make the relay terminal know that the second information update of the first unicast link is complete, so that the relay terminal can continue to establish and update the link with the second terminal or continue to communicate with the second terminal. Update of the link between.
  • the method before the first terminal updates the first information of the first unicast link according to the first message, the method further includes: the first terminal according to the first message, Confirm that the first unicast link has been established.
  • the first terminal can directly update the first information of the first unicast link to the second information of the first unicast link to improve The efficiency of communication link establishment.
  • an embodiment of the present application provides a communication method, including: a relay terminal generates a first message; the relay terminal is a relay terminal used for communication between the first terminal and the second terminal;
  • the first message includes first indication information, the application layer identifier of the second terminal, and the first address of the second terminal; wherein, the first indication information can be used to indicate the first terminal and the middle Following the first unicast link between the terminals; the relay terminal sends the first message to the first terminal.
  • the first terminal can update the first information of the first unicast link according to the first message to obtain the updated The second information of the first unicast link, where the second information includes the application layer identifier of the second terminal and the first address.
  • this solution enables the first terminal to add the information of the second terminal as the new recipient information to the overview of the first unicast link corresponding to the first terminal (first information of the first unicast link) ,
  • the communication between the second terminal and the first terminal can be based on the first
  • the realization of the second information of the unicast link is equivalent to using the same unicast link between the relay terminal and the first terminal for both the direct communication purpose and the relay communication purpose between the relay terminal and the first terminal, reducing The link that needs to be maintained between the first terminal and the relay terminal is reduced, and the link maintenance overhead is reduced.
  • the first address includes a network layer address of the second terminal or a data link layer address of the second terminal.
  • the first message further includes: the data link layer address of the relay terminal; the data link layer address of the relay terminal and the application layer identifier of the relay terminal Associated.
  • the first indication information includes a link identifier of the first unicast link.
  • the first indication information includes the data link layer address of the first terminal and the data link layer address of the relay terminal.
  • the first indication information includes the application layer identifier of the relay terminal and the application layer identifier of the first terminal.
  • This solution provides another specific implementation of the first indication information.
  • the method before the relay terminal sends the first message to the first terminal, the method further includes: the relay terminal determines that a connection is established between the relay terminal and the first terminal. There is the first unicast link.
  • the data link layer address of the relay terminal may not be carried, so as to reduce information. Let the overhead and the power consumption of the first terminal.
  • the method further includes: the relay terminal receives a response message of the first message from the first terminal; the response message indicates the first unicast link of the first unicast link.
  • the information has been updated to second information, and the second information includes the application layer identifier of the second terminal and the first address.
  • the first address includes the network layer address of the second terminal
  • the method further includes: the relay terminal receives the first data from the first terminal, the The first data includes the data link layer address of the first terminal, the network layer address of the first terminal, the data link layer address of the relay terminal, and the network layer address of the second terminal; The relay terminal determines that the destination receiving terminal of the first data is the second terminal according to the network layer address of the second terminal; the relay terminal sends the first data to the second terminal.
  • the relay terminal determining that the destination receiving terminal of the first data is the second terminal according to the network layer address of the second terminal includes: according to the network layer address of the second terminal and the corresponding Relationship, it is determined that the destination receiving terminal of the first data is the second terminal.
  • the correspondence relationship may indicate that the network layer address of the second terminal corresponds to the second terminal.
  • the correspondence relationship may include at least one network layer address and an identifier of the terminal corresponding to each network layer address, and the at least one network layer address includes the network layer address of the second terminal.
  • This solution can ensure normal communication between the first terminal and the second terminal when the link for realizing direct communication and relay communication between the first terminal and the relay terminal is the same unicast link.
  • the first address includes a data link layer address of the second terminal
  • the method further includes: the relay terminal receives the first data from the first terminal, The first data includes the data link layer address of the first terminal and the data link layer address of the second terminal; the relay terminal determines the data link layer address of the second terminal The destination terminal of the first data is the second terminal; the relay terminal sends the first data to the second terminal.
  • the relay terminal determines that the destination terminal of the first data is the second terminal according to the data link layer address of the second terminal, including: according to the data link layer address of the second terminal and the corresponding Relationship, it is determined that the destination receiving terminal of the first data is the second terminal.
  • the correspondence relationship may indicate that the data link layer address of the second terminal corresponds to the second terminal.
  • the correspondence relationship may include at least one data link layer address and the identification of the terminal corresponding to each data link layer address, and the at least one data link layer address includes the data link layer address of the second terminal .
  • This solution can ensure that the link between the first terminal and the relay terminal for direct communication and relay communication between the first terminal and the relay terminal is the same unicast link. Normal communication.
  • an embodiment of the present application provides a communication method, including: receiving a response message of a relay path request message from a relay terminal, where the relay terminal is used between the second terminal and the first terminal A relay terminal for communication; the response message of the relay path request message includes the first address of the first terminal; the second terminal updates the first information of the second unicast link according to the first message, To obtain updated second information of the second unicast link, where the second information of the second unicast link includes the application layer identifier of the first terminal and the first address of the first terminal, The second unicast link is a unicast link between the second terminal and the relay terminal.
  • the second unicast is obtained.
  • the second information of the link so that whether it is direct communication between the relay terminal and the second terminal or the relay terminal is used as a relay to realize the communication between the first terminal and the second terminal, it can be based on the second unicast link.
  • the second information is realized, which is equivalent to the direct communication between the relay terminal and the second terminal and the relay communication uses the same unicast link between the relay terminal and the second terminal, reducing the second terminal and the relay
  • the links that need to be maintained between terminals reduce the overhead of link maintenance.
  • the method further includes: the second terminal controlling the transceiver module to the relay through the second unicast link according to the second information of the second unicast link
  • the terminal sends second data, where the second data includes the first address of the first terminal, and the first address of the first terminal is used to indicate that the destination receiving end of the second data is the first terminal.
  • the first address of the first terminal is carried in the second data to indicate the current status of the second data sent to the relay terminal.
  • the destination receiving end is the first terminal, which ensures normal communication between the first terminal and the second terminal when the link for realizing direct communication and relay communication between the first terminal and the relay terminal is the same unicast link.
  • the first address of the first terminal includes the network layer address of the first terminal; the second information of the second unicast link also includes data of the relay terminal Link layer address; the data link layer address of the relay terminal is associated with the application layer identifier of the relay terminal, and the data link layer address of the relay terminal is also associated with the application of the first terminal Layer identification association.
  • the first address of the first terminal includes the network layer address of the first terminal, and the network layer address of the first terminal may be assigned by the relay terminal or by the first terminal.
  • the data link layer address of the relay terminal is associated with the application layer identifier of the relay terminal, and the data link layer address of the relay terminal is also associated with the application layer identifier of the first terminal.
  • the first address of the first terminal includes the data link layer address of the first terminal.
  • the data link layer address of the first terminal is allocated by the second terminal and is used to identify the data link layer identifier of the unicast link between the first terminal and the relay terminal Therefore, carrying the data link layer address of the first terminal in the second data sent by the second terminal to the relay terminal can indicate that the destination receiving end of the second data is the first terminal, ensuring that the second terminal and the middle The normal communication between the first terminal and the second terminal when the link for realizing direct communication and relay communication between the subsequent terminals is the same unicast link.
  • the data link layer address of the first terminal is allocated by the relay terminal, and when the second terminal needs to communicate with the first terminal, the second data sent by the second terminal to the relay terminal carries
  • the data link layer address of the first terminal can indicate that the destination receiving end of the second data is the first terminal, ensuring that the link for direct communication and relay communication between the second terminal and the relay terminal is the same unicast Normal communication between the first terminal and the second terminal during the link.
  • the response message of the relay path request message further includes: the data link layer address of the relay terminal.
  • This solution includes the data link layer address of the relay terminal in the response message of the relay path request message, so that when a second unicast link is not established between the second terminal and the relay terminal, The second terminal can establish a second unicast link according to the data link layer address of the relay terminal.
  • the method before the second terminal receives the response message of the relay path request message from the relay terminal, the method further includes: the second terminal sends the relay terminal to the relay terminal.
  • the method further includes: the second terminal further includes: The response message of the relay path request message confirms that the second unicast link has been established.
  • the second terminal after confirming that the second unicast link has been established according to the response message of the relay path request message, the second terminal can directly update the first information of the second unicast link to the second unicast link
  • the second information of the road improves the efficiency of the establishment of the communication link.
  • the first address of the first terminal is allocated by the first terminal; or, the first address of the first terminal is allocated by the relay terminal.
  • an embodiment of the present application provides a communication method, including: a first target terminal establishes a new unicast link between the first target terminal and a second target terminal; the first target terminal establishes the new unicast link; The association relationship between the unicast link and other unicast links, and the other unicast links are the links between the first target terminal and the second target terminal except for the new unicast link.
  • the terminal since the unicast links between the two terminals have established an association relationship, the terminal only needs to check whether one of the unicast links between the two terminals is connected, because if One of the unicast links between the two terminals is connected, which means that the two terminals can communicate normally, and the other unicast links are also connected. Therefore, the method of this embodiment reduces the overhead for the terminal to perform link maintenance, and is simple and easy to implement.
  • an embodiment of the present application provides a communication device for implementing the communication method of the first aspect.
  • the communication device of the fifth aspect includes: a transceiving module, configured to receive a first message from a relay terminal, the relay terminal being a relay terminal used for communication between the communication device and a second terminal;
  • the first message includes first indication information, the application layer identifier of the second terminal, and the first address of the second terminal; wherein, the first indication information can be used to indicate the communication device and the relay The first unicast link between the terminals;
  • a processing module configured to update the first information of the first unicast link according to the first message, so as to obtain the updated information of the first unicast link Second information, where the second information includes the application layer identifier of the second terminal and the first address.
  • an embodiment of the present application provides a communication device for implementing the communication method of the second aspect.
  • the communication device of the sixth aspect includes: a processing module configured to generate a first message; the communication device is a device for communication between the first terminal and the second terminal; the first message includes first indication information, The application layer identifier of the second terminal and the first address of the second terminal; wherein the first indication information can be used to indicate the first unicast link between the first terminal and the communication device Way; transceiver module for sending the first message to the first terminal.
  • an embodiment of the present application provides a terminal, including: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores a terminal that can be executed by the at least one processor; Instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute the method described in the first aspect or any possible implementation manner of the first aspect, or execute the second aspect or The method described in any possible implementation manner of the second aspect, or the method described in the third aspect or any possible implementation manner of the third aspect is executed.
  • an embodiment of the present application provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the first aspect or any possible aspect of the first aspect
  • the first terminal when the first terminal needs to communicate with the second terminal through the relay terminal, the first terminal adds the information of the second terminal as the new recipient information to the overview of the first unicast link corresponding to the first terminal ( In the first information of the first unicast link), the second information of the first unicast link is obtained, so that whether it is direct communication between the relay terminal and the first terminal or the relay terminal acts as a relay to realize the second terminal
  • the communication with the first terminal can be realized based on the second information of the first unicast link, which is equivalent to that various communication purposes between the relay terminal and the first terminal are established between the relay terminal and the first terminal
  • the same unicast link reduces the link that needs to be maintained between the first terminal and the relay terminal, and reduces the link maintenance overhead.
  • Figure 1 is a system architecture diagram involved in an embodiment of the application
  • Figure 2 is an interactive diagram of a relay link establishment process
  • FIG. 3 is a first flowchart of a communication method provided by an embodiment of this application.
  • FIG. 4 is a second flowchart of a communication method provided by an embodiment of this application.
  • FIG. 5 is a third flowchart of a communication method provided by an embodiment of this application.
  • FIG. 6 is a fourth flowchart of a communication method provided by an embodiment of this application.
  • FIG. 7 is a fifth flowchart of a communication method provided by an embodiment of this application.
  • FIG. 8 is a schematic structural diagram of a communication device provided by an embodiment of this application.
  • FIG. 9 is a schematic block diagram of an implementation manner of a communication device according to an embodiment of the application.
  • FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of this application.
  • the unicast link information involved in the embodiments of this application can be used to save the context of unicast links, and the specific form is not limited.
  • unicast link information is used as unicast link
  • the overview is introduced as an example. Among them, the unicast link can also be referred to as a unicast link or a unicast connection.
  • Unicast link overview (or called the overview of unicast link): used to describe the unicast link between two terminals.
  • terminal 1 the form of the overview describing the unicast link stored in terminal 1 of the two terminals is as follows:
  • the application layer identifier of terminal 1 and the data link layer identifier of terminal 1 are sender information
  • the application layer identifier of terminal 2 and the data link layer identifier of terminal 2 are receiver information.
  • the summary describing the unicast link stored in the terminal 1 may be referred to as the summary describing the unicast link corresponding to the terminal 1.
  • the application layer identifier of terminal 2 and the data link layer identifier of terminal 2 are sender information
  • the application layer identifier of terminal 1 and the data link layer identifier of terminal 1 are receiver information.
  • the summary describing the unicast link stored in the terminal 2 may be referred to as the summary describing the unicast link corresponding to the terminal 2.
  • Figure 1 is a system architecture diagram involved in an embodiment of this application.
  • the system architecture includes: a first terminal, a relay terminal, and a second terminal.
  • the relay terminal is used for communication between the second terminal and the first terminal. .
  • the first terminal When the first terminal needs to communicate with the second terminal, and the first terminal determines that the second terminal cannot be directly discovered, the first terminal can determine the relay terminal through the relay discovery process, so as to communicate with the second terminal through the relay terminal. Communication. Similarly, when the second terminal needs to communicate with the first terminal, and the second terminal determines that the first terminal cannot be found directly, the second terminal can determine the relay terminal through the relay discovery process to communicate with the first terminal through the relay terminal Communicate between.
  • the terminal in this embodiment may be a user equipment (UE), a handheld terminal, a notebook computer, a cellular phone, a smart phone, a tablet computer, a handheld device, an AR device, a VR device, a machine type communication terminal, or Other devices that can be connected to the network.
  • UE user equipment
  • handheld terminal a notebook computer
  • a cellular phone a smart phone
  • tablet computer a handheld device
  • AR device a VR device
  • a machine type communication terminal or Other devices that can be connected to the network.
  • terminal a needs to communicate with the terminal b, but the terminal a cannot directly find the terminal b, that is, the terminal a and the terminal b are not within the short-distance communication range and cannot communicate directly.
  • terminal a broadcasts a relay request message.
  • the relay request message includes the application layer identification of terminal a (the ID of terminal a) and the application layer identification of terminal b.
  • terminals near terminal a receive the relay request message, they determine whether they can be used as a relay terminal for communication between terminal a and terminal b based on local information;
  • the information includes, but is not limited to, at least one of the following information: whether there is a relay capability, a short distance relationship with the terminal b, current processing load, and signal strength information with the terminal b.
  • terminal c and terminal d determine that they can be used as a relay terminal for communication between terminal a and terminal b, terminal c sends a response message to terminal a, and the response message includes the application layer identifier of terminal c, and terminal d sends a The response message includes the application layer identifier of the terminal d.
  • the terminal can initiate a ProSe discovery process to determine whether it is within a close range of terminal b, or periodically initiate a proximity discovery process to obtain Information about surrounding terminals.
  • Terminal a selects one of the terminals (terminal c and terminal d) that reply to the response message as the relay terminal. If terminal c is selected as the relay terminal, terminal a sends a relay path establishment request message to terminal c.
  • the relay path establishment request message includes the application layer identifier of terminal b, QoS information, and the data link layer address of terminal a (The data link layer address may also be called a layer 2 address (Layer 2 ID), for example, it may be a tunnel endpoint ID (Tunnel Endpoint ID)).
  • the terminal c sends a link establishment request message to the terminal b, and the link establishment request message includes the application layer identifier of the terminal c, QoS, and the first data link layer address of the terminal c.
  • the terminal b returns a response message of the link establishment request message to the terminal c, and the response message includes information indicating whether the terminal b receives the link establishment request. If the terminal b receives the link establishment request, the response message also includes the first data link layer address of the terminal b.
  • the first data link layer address of the terminal c and the first data link layer address of the terminal b uniquely identify the link between the terminal c and the terminal b.
  • Terminal c sends a response message of the relay path establishment request message to terminal a.
  • the response message of the relay path establishment request message includes an indication that the link between terminal c and terminal b is successfully established and the second message of terminal c.
  • Data link layer address The second data link layer address of the terminal c and the first data link layer address of the terminal a uniquely identify the link between the terminal c and the terminal a.
  • the terminal a After the link between the terminal a and the terminal c and the link between the terminal c and the terminal b are established, the terminal a can send data to the terminal b.
  • terminal a and terminal c are respectively assigned a data link layer address, and the pair of data link layer addresses is used to identify
  • the terminal c serves as a relay terminal between the terminal a and the terminal b, the link between the terminal a and the terminal c.
  • terminal a and terminal c are respectively assigned another data link layer address, and the pair of data link layer addresses is used to identify the terminal when terminal a and terminal c communicate directly The link between a and terminal c.
  • terminal a and terminal c are also assigned a data link layer address respectively, and the pair of data link layer addresses is used to identify
  • the terminal c serves as a relay terminal between the terminal a and the terminal f, the link between the terminal a and the terminal c. That is to say: there are multiple links between terminal a and terminal c, and terminal a needs to maintain the connectivity of multiple links, and the link overhead is relatively high.
  • the communication method of the present application is proposed.
  • the following uses specific embodiments to describe the communication method of the present application.
  • FIG. 3 is a first flowchart of a communication method provided by an embodiment of this application. Referring to FIG. 3, the method in this embodiment includes:
  • Step S301 The relay terminal sends a first message to the first terminal; the relay terminal is a relay terminal used for communication between the first terminal and the second terminal; the first message includes the first indication information and the information of the second terminal.
  • the first address of the second terminal may be but not limited to the following situations:
  • the first address of the second terminal includes the network layer address of the second terminal.
  • the network address of the second terminal may be sent to the relay terminal after being allocated by the second terminal, or may also be allocated by the relay terminal.
  • the first data link layer address of the second terminal may be sent to the relay terminal after being allocated by the second terminal, that is, the first data link layer address of the second terminal is the first data link layer address for establishing the second terminal and the relay terminal. 2.
  • the data link layer address assigned by the second terminal in the case of a unicast link.
  • the third case the first address of the second terminal includes the second data link layer address of the second terminal.
  • the second data link layer address of the second terminal is allocated by the relay terminal.
  • the first address of the second terminal may be allocated by the second terminal, or may also be allocated by the relay terminal.
  • the first address of the second terminal may be carried to identify the destination receiving end of the data as the second terminal.
  • the first indication information includes the link identifier of the first unicast link; or, the first indication information includes the application layer identifier of the relay terminal and the application layer identifier of the first terminal; Alternatively, the first indication information includes the first data link layer address of the relay terminal and the first data link layer address of the first terminal.
  • the relay terminal may further include the relay terminal confirming whether there is a first unicast link between the relay terminal and the first terminal.
  • the method for the relay terminal to confirm whether there is a first unicast link between the relay terminal and the first terminal may be as follows: the relay terminal confirms whether the unicast link profile exists in the stored unicast link profile.
  • the sender’s application layer identifier is the application layer identifier of the relay terminal, and the receiver’s application layer identifier is the application layer identifier of the first terminal. If yes, confirm that there is a first terminal between the relay terminal and the first terminal.
  • a unicast link if not, it is confirmed that there is no first unicast link between the relay terminal and the first terminal.
  • the unicast link whose sender application layer identifier stored in the relay terminal is the application layer identifier of the relay terminal and the receiver application layer identifier is the application layer identifier of the first terminal is summarized as the one corresponding to the relay terminal
  • An overview of the first unicast link (for simplicity of explanation, the overview of the first unicast link corresponding to the relay terminal will be referred to as the third information of the first unicast link in the following).
  • the third information of the first unicast link may be as follows:
  • the application layer identifier of the first terminal, and the first data link layer address of the first terminal are identical to each other.
  • the first data link layer address of the relay terminal and the first data link layer address of the first terminal uniquely identify the first unicast link, that is, the first data link layer address of the relay terminal and The first unicast link corresponds, and the first data link layer of the first terminal corresponds to the first unicast link.
  • the confirmation result of the relay terminal confirming whether there is a first unicast link between the relay terminal and the first terminal includes the following two cases: Case 1: The relay terminal confirms that there is a first unicast link between the relay terminal and the first terminal A unicast link, case 2: The relay terminal confirms that there is no first unicast link between the relay terminal and the first terminal.
  • the first terminal stores an overview of the first unicast link corresponding to the first terminal (for the sake of simplicity, the following will be referred to as The summary of the first unicast link corresponding to the first terminal is the first information of the first unicast link).
  • the first information of the first unicast link may be as follows:
  • the application layer identifier of the relay terminal and the first data link layer address of the relay terminal.
  • the first message sent by the relay terminal to the first terminal may include the first indication information, the application layer identifier of the second terminal, and the first address of the second terminal.
  • the first indication information can be used to instruct the first terminal and The first unicast link between relay terminals.
  • the first message instructs the first terminal to add the second terminal as a receiver of the first unicast link, or in other words, the first message instructs the first terminal to update the first information of the first unicast link to obtain the first unicast link
  • the second information of the path, and the second information of the first unicast link includes at least the first information of the first unicast link, the application layer identifier of the second terminal, and the first address of the second terminal.
  • the first message may also be referred to as a link modification request message.
  • the first indication information includes the link identifier of the first unicast link; or, the first indication information includes the application layer identifier of the relay terminal and the application layer identifier of the first terminal; or, the first indication information includes the relay The first data link layer address of the terminal and the first data link layer address of the first terminal.
  • the relay terminal when the relay terminal establishes the first unicast link between the relay terminal and the first terminal, the relay terminal allocates a link identifier (referred to as the first unicast link for short) to the first unicast link.
  • the link identifier of the first unicast link included in the first indication information may include: the first link layer identifier or the second link identifier; the chain of the first unicast link included in the first indication information
  • the road identifier may also include a first link layer identifier and a second link identifier. Wherein, the first link identifier and the second link identifier may be the same or different.
  • the relay terminal confirms that there is a first unicast link between the relay terminal and the first terminal, and the summary of the first unicast link stored by the first terminal already includes the first data link of the relay terminal Road layer address. Therefore, the first data link layer address of the relay terminal may not be included in the first message.
  • the relay terminal If the relay terminal confirms that there is no first unicast link between the relay terminal and the first terminal, it means that the first terminal does not store the first information of the first unicast link.
  • the first message may include the first indication information, the first data link layer address of the relay terminal, the application layer identifier of the second terminal, and the first address of the second terminal.
  • the first message instructs the first terminal to establish the first unicast link between the first terminal and the relay terminal and to add the second terminal as a receiver of the first unicast link, or in other words, the first message indicates to generate the first unicast link.
  • the first information of the first unicast link and the first information of the first unicast link are updated to obtain the second information of the first unicast link.
  • the second information of the first unicast link includes the first information of the first unicast link.
  • the first message may also be referred to as a link establishment and modification request message.
  • the first indication information includes the application layer identifier of the relay terminal and the application layer identifier of the first terminal.
  • the relay terminal since the relay terminal confirms that there is no first unicast link between the relay terminal and the first terminal, the first message needs to carry the first data link layer address of the relay terminal, To indicate that the first terminal needs to establish the first unicast link first.
  • the relay terminal After the relay terminal confirms that there is no first unicast link between the relay terminal and the first terminal, the relay terminal performs the first unicast before sending the first message to the first terminal.
  • the establishment of the link specifically includes steps a1 to a2:
  • the relay terminal sends a second message to the first terminal, where the second message includes the application layer identifier of the relay terminal and the first data link layer address of the relay terminal.
  • the second message is used to instruct the first terminal to establish the first unicast link between the first terminal and the relay terminal, and to generate the aforementioned first information of the first unicast link.
  • the relay terminal receives a response message of the second message from the first terminal, where the response message of the second message includes the first data link layer address of the first terminal.
  • the relay terminal After the relay terminal receives the response message of the second message from the first terminal, the relay terminal generates the above-mentioned third information of the first unicast link, and the establishment of the first unicast link is completed.
  • the content included in the first message, the information indicated by the first message, and the first indication information can be specifically referred to the above-mentioned step description based on case 1, which will not be repeated here.
  • the relay terminal confirms whether the first unicast link exists. In another manner, before the relay terminal sends the first message to the first terminal, the relay terminal does not confirm whether there is a first unicast link between the relay terminal and the first terminal. At this time, the first unicast link exists between the relay terminal and the first terminal.
  • the information indicated by the first message, and the first indication information please refer to the first solution in the step description based on case 2, which will not be repeated here.
  • Step S302 The first terminal updates the first information of the first unicast link according to the first message to obtain the updated second information of the first unicast link.
  • the second information of the first unicast link includes the first unicast link. 2.
  • the application layer identifier of the second terminal and the first address of the second terminal in the first message may be referred to as the information of the second terminal carried in the first message.
  • the first terminal updates the first information of the first unicast link according to the first message to obtain the updated second information of the first unicast link.
  • the first specific implementation corresponds to the case 1 where the relay terminal confirms that there is a first unicast link between the relay terminal and the first terminal; or corresponds to the relay terminal confirms that there is no difference between the relay terminal and the first terminal.
  • the first terminal After receiving the first message, the first terminal obtains the stored first information of the first unicast link according to the first indication information in the first message, and at least adds the information of the second terminal carried in the first message to the first The first information of the unicast link obtains the second information of the first unicast link.
  • the first terminal After receiving the first message, the first terminal determines that the first unicast link between the first terminal and the relay terminal needs to be established first according to the first data link layer address of the relay terminal carried in the first message, That is, the first data link layer address of the first terminal needs to be allocated to establish the first unicast link between the first terminal and the relay terminal.
  • the first terminal according to the first indication information that can be used to indicate the first unicast link carried in the first message (the application layer identifier of the first terminal, the application layer identifier of the relay terminal), and the first data of the relay terminal Link layer address and the first data link layer address of the first terminal allocated by the first terminal, generate the first information of the first unicast link, and add at least the information of the second terminal in the first message to the first
  • the first information of the unicast link obtains the second information of the first unicast link; or, the first terminal uses the application layer identifier of the first terminal, the application layer identifier of the relay terminal, and the first data of the relay terminal
  • the link layer address, the first data link layer address of the first terminal allocated by the first terminal, the application layer identifier of the second terminal, and the first address of the second terminal generate second information of the first unicast link.
  • the third specific implementation corresponding to the situation where the relay terminal has not confirmed whether there is a first unicast link between the relay terminal and the first terminal: the first terminal updates the first unicast link according to the first message
  • the first information before obtaining the updated second information of the first unicast link, further includes: according to the first message, the first terminal confirms whether the first unicast link between the first terminal and the relay terminal has been Establish (that is, the first terminal determines whether the sender application layer identifier is the application layer identifier of the first terminal in the first message, and the receiver application layer identifier is the application layer identifier of the relay terminal in the first message.
  • Link overview (the first information of the unicast link); if so, the first terminal at least adds the information of the second terminal in the first message to the first information of the first unicast link to obtain the first unicast link
  • the second information of the link if not, the first terminal allocates the first data link layer address of the first terminal; then, the first terminal according to the application layer identification of the first terminal and the relay terminal carried in the first message
  • the application layer identifier of the relay terminal, the first data link layer address of the relay terminal, and the first data link layer address of the first terminal assigned by the first terminal generate the first information of the first unicast link, and add at least the first unicast link
  • the information of the second terminal in a message to the first information of the first unicast link to obtain the second information of the first unicast link; or, the first terminal relays the terminal according to the application layer identifier of the first terminal
  • the following describes the second information of the first unicast link corresponding to several situations of the first address of the second terminal.
  • the second information of the first unicast link may include the following information:
  • the application layer identifier of the second terminal the first data link layer address of the relay terminal, and the network layer address of the second terminal.
  • the first data link layer address of the relay terminal is associated with the application layer identifier of the relay terminal, and the first data link layer address of the relay terminal is also associated with the application layer identifier of the second terminal.
  • the information added to the first information of the first unicast link includes: the application layer identifier of the second terminal, the first data link layer address of the relay terminal, and the Network layer address.
  • the second information of the first unicast link may include the following information:
  • the application layer identifier of the second terminal, and the first data link layer address of the second terminal are identical to each other.
  • the first data link layer address of the second terminal is associated with the application layer identifier of the second terminal. It can be understood that the information added to the first information of the first unicast link in this case includes: the application layer identifier of the second terminal and the first data link layer address of the second terminal.
  • the second information of the first unicast link may include the following information:
  • the application layer identifier of the second terminal, and the second data link layer address of the second terminal are identical to each other.
  • the second data link layer address of the second terminal is associated with the application layer identifier of the second terminal. It can be understood that the information added to the first information of the first unicast link in this case includes: the application layer identifier of the second terminal and the second data link layer address of the second terminal.
  • the first terminal may also send a response message of the first message to the relay terminal; the response message of the first message indicates the second information of the first unicast link
  • the second information update is completed, that is, it indicates to the relay terminal that the first terminal has acquired the second information of the first unicast link.
  • the first terminal may send first data to the relay terminal according to the second information of the first unicast link, and the first data includes the first address of the second terminal, The first address of the second terminal is used to indicate that the destination receiving end of the first data is the second terminal.
  • the relay terminal and the first terminal are no longer established.
  • a new unicast link that is, an overview of the unicast link between the new relay terminal and the first terminal is no longer generated
  • the information of the second terminal is added as the new receiver information to the original
  • the link between the first terminal and the relay terminal that needs to be maintained that is, whether the link is alive through PC5 signaling
  • the link maintenance overhead is reduced.
  • the unicast link between the first terminal and the relay terminal is established.
  • the link is broadcast, not only the overview of the unicast link between the first terminal and the relay terminal is generated, but also the information of the second terminal is added to the overview of the unicast link as the new receiver information, and the updated unicast link is obtained. Broadcast link overview. In this way, whether it is direct communication between the relay terminal and the first terminal, or the relay terminal is used as a relay to realize the communication between the second terminal and the first terminal, it can be realized according to the updated unicast link overview, which is equivalent to a relay.
  • Various communication purposes between the terminal and the first terminal use the same unicast link established between the relay terminal and the first terminal for communication, which reduces the link that needs to be maintained between the first terminal and the relay terminal , Which reduces the overhead of link maintenance.
  • Fig. 4 is a second flowchart of a communication method provided by an embodiment of this application. Referring to Fig. 4, the method of this embodiment includes:
  • Step S401 The second terminal determines a relay terminal to communicate with the first terminal.
  • the applicable scenario of this embodiment is that the second terminal needs to communicate with the first terminal. After the second terminal determines that the first terminal cannot be directly discovered, the second terminal determines through the relay discovery process that the relay terminal is the first terminal and A relay terminal for communication between the second terminal.
  • the relay discovery process refer to the method for terminal device a to determine terminal device c as a relay terminal in (1) to (3) in the current relay link establishment process described above, which will not be repeated here.
  • Step S402 The second terminal sends a relay path request message to the relay terminal.
  • the relay path request message may also be referred to as a relay communication request message or an indirect communication request message.
  • c1 to c4 may also be included:
  • the second terminal confirms whether the second unicast link between the second terminal and the relay terminal has been established. If not, the second terminal sends a link establishment request message to the relay terminal.
  • the link establishment request message It may include: the first data link layer address of the second terminal and the application layer identifier of the second terminal.
  • the relay terminal After receiving the link establishment request message, the relay terminal establishes a second unicast link between the relay terminal and the second terminal, that is, the relay terminal generates an overview of the second unicast link corresponding to the relay terminal,
  • the summary of the second unicast link corresponding to the relay terminal will be referred to as the third information of the second unicast link in the following.
  • the third information of the second unicast link includes the following information:
  • the application layer identifier of the second terminal, and the first data link layer address of the second terminal are identical to each other.
  • the second data link layer address of the relay terminal is different from the first data link layer address of the relay terminal.
  • the relay terminal After the relay terminal establishes the second unicast link between the relay terminal and the second terminal, it sends a response message of the link establishment request message to the second terminal, and the response message of the link establishment request message indicates the relay terminal
  • the second unicast link with the second terminal has been established, and the response message of the link establishment request message includes: the second data link layer address of the relay terminal.
  • the second terminal establishes a second unicast link between the second terminal and the relay terminal, that is, generates an overview of the second unicast link corresponding to the second terminal (hereinafter referred to as the second unicast link corresponding to the second terminal).
  • the summary of the link is the first information of the second unicast link).
  • the first information of the second unicast link includes the following information:
  • the application layer identifier of the relay terminal and the second data link layer address of the relay terminal.
  • the relay path request message includes the information of the first terminal The application layer identifier, the application layer identifier of the second terminal, and the first data link layer address of the second terminal.
  • the relay path request message may include the application layer identifier of the first terminal and the application layer identifier of the second terminal; optionally, the relay path request message may also include the first data link layer address of the second terminal.
  • Step S403 The relay terminal sends a first message to the first terminal; the first message includes the first indication information, the application layer identifier of the second terminal, and the first address of the second terminal.
  • the relay terminal receives the relay path request message, and then the relay terminal sends the first message to the first terminal.
  • the first indication information can be used to indicate the first unicast link between the first terminal and the relay terminal.
  • the first message may specifically be a relay path request message or a relay communication request message or an indirect communication request message or a link establishment and modification request message or a link modification request message.
  • step S301 For the specific implementation of this step, refer to the description in step S301 in the embodiment shown in FIG. 3, which will not be repeated here.
  • the first address of the second terminal is the first data link layer address of the second terminal.
  • the relay terminal determines the second unicast link according to the first message and obtains third information of the second unicast link; the third information is associated with the application layer identifier of the second terminal The data link layer address of can be used as the first data link layer address of the second terminal.
  • the relay terminal learns the first data link layer address of the second terminal included in the message by receiving the relay path request message of S402.
  • the first address of the second terminal is a second data link layer address of the second terminal.
  • the second data link layer address of the second terminal is allocated by the relay terminal.
  • the first address of the second terminal is a network layer address of the second terminal.
  • the network layer address of the second terminal is allocated by the second terminal.
  • the relay path request message in S402 may also include the network layer address of the second terminal, and the relay terminal learns the network layer address of the second terminal by receiving the relay path request message.
  • the network layer address of the second terminal is allocated by the relay terminal.
  • Step S404 The first terminal updates the first information of the first unicast link according to the first message to obtain the updated second information of the first unicast link.
  • the first terminal receives the first message, and then the first terminal updates the first information of the first unicast link according to the first message to obtain the updated second information of the first unicast link.
  • the second information includes the application layer identifier of the second terminal and the first address of the second terminal.
  • step S302 for the specific implementation of this step, refer to the description in step S302 in the embodiment shown in FIG. 3, which will not be repeated here.
  • Step S405 The first terminal sends a response message of the first message to the relay terminal; the response message of the first message indicates that the update of the second information of the first unicast link is completed.
  • the response message of the first message may carry the network layer address of the first terminal and/or the first data link layer address of the first terminal.
  • Step S406 The relay terminal sends a response message of the relay path request to the second terminal; the response message of the relay path request includes the first address of the first terminal.
  • the relay terminal receives the response message of the first message, and then the relay terminal sends a response message of the relay path request to the second terminal.
  • the relay terminal After receiving the response message of the first message, the relay terminal determines that the first information of the first unicast link has been updated to obtain the second information of the first unicast link, and then, the relay terminal sends to the second terminal The response message of the relay path request.
  • the relay terminal may further include: the relay terminal confirms the second unicast link between the relay terminal and the second terminal Whether it has been established, if not, the relay terminal establishes the second unicast link between the relay terminal and the second terminal, that is, the relay terminal generates the above-mentioned third information of the second unicast link, and accordingly,
  • the response message of the relay path request needs to carry the second data link layer address of the relay terminal; if so, the response message of the relay path request may not carry the relay terminal The second data link layer address.
  • the relay terminal can determine that the second unicast link between the relay terminal and the second terminal has been Establish, the response message of the relay path request may not carry the second data link layer address of the relay terminal.
  • the response message of the relay path request needs to carry the first address of the first terminal and The second data link layer address of the relay terminal.
  • the response message of the relay path request may also carry the application layer identifier of the first terminal.
  • the response message of the relay path request may also carry second indication information
  • the second indication information can be used to indicate the second unicast link between the second terminal and the relay terminal
  • the second indication information may be
  • the identifier of the second unicast link may also be the application layer identifier of the second terminal and the application layer identifier of the relay terminal, and may also be the first data link layer address of the second terminal and the second data of the relay terminal Link layer address.
  • the second indication information may be any of the above
  • the relay terminal does not determine whether the second unicast link between the second terminal and the relay terminal has been established or it is determined that the second terminal and the middle Following the second unicast link between the terminals, the second indication information may be the application layer identifier of the second terminal and the application layer identifier of the relay terminal.
  • the first address of the first terminal includes but is not limited to the following situations:
  • the first address of the first terminal includes the network layer address of the first terminal.
  • the network address of the first terminal may be sent to the relay terminal after being allocated by the first terminal (for example, carried in the response message of the first message in step S405), or may be allocated by the relay terminal to the first terminal .
  • the first address of the first terminal includes the first data link layer address of the first terminal.
  • the first data link layer address of the first terminal may be allocated by the first terminal and sent to the relay terminal, so that the relay terminal establishes the first unicast link between the first terminal and the relay terminal.
  • the first data link layer address of the first terminal is carried in the response message of the first message in step S405.
  • the first address of the first terminal includes the second data link layer address of the first terminal, and the second data link layer address of the first terminal is allocated by the relay terminal.
  • the first address of the first terminal may be allocated by the first terminal, or may also be allocated by the relay terminal.
  • Step S407 The second terminal updates the first information of the second unicast link according to the response message of the relay path request, and obtains the updated second information of the second unicast link.
  • the second terminal receives the response message of the relay path request, and the second terminal updates the first information of the second unicast link according to the response message of the relay path request to obtain the updated second information of the second unicast link
  • the second unicast link is a unicast link between the second terminal and the relay terminal.
  • the second information of the second unicast link includes the first address of the first terminal and the application layer identifier of the first terminal.
  • the second terminal responds according to the relay path request
  • the message does not carry the second data link layer address of the relay terminal. It is determined that a second unicast link is established between the second terminal and the relay terminal; then, the second terminal obtains the stored second unicast link.
  • the response message according to the relay path request carries
  • the second data link layer address of the relay terminal is determined to be allocated to the first data link layer address of the second terminal.
  • the second terminal according to the application layer identifier of the second terminal, the application layer identifier of the relay terminal, the second data link layer address of the relay terminal carried in the response message of the relay path request, and the second terminal allocated by the second terminal
  • the first data link layer address of the second unicast link is generated, and at least the first address of the first terminal and the application layer identifier of the first terminal are added to the first information of the second unicast link , Obtain the second information of the second unicast link; or, the second terminal according to the application layer identifier of the second terminal, the application layer identifier of the relay terminal, and the relay terminal’s information carried in the response message of the relay path request
  • the second data link layer address, the first data link layer address of the second terminal allocated by the second terminal, the first address of the first terminal, and the application layer identifier of the first terminal are generated to generate the second unicast link Two information.
  • the second terminal updates the second unicast link according to the response message of the relay path request
  • One information, before obtaining the updated second information of the second unicast link further includes: the second terminal confirms the second unicast link between the second terminal and the relay terminal according to the response message of the relay path request Whether it has been established. That is, the second terminal determines whether there is an overview of the unicast link in which the sender application layer identifier is the application layer identifier of the second terminal, and the receiver application layer identifier is the application layer identifier of the relay terminal, that is, it determines whether there is a second unicast The first information of the link.
  • the second terminal allocates the first data link layer address of the second terminal, and then the second terminal according to the application layer identifier of the second terminal, the application layer identifier of the relay terminal, and the response message of the relay path request
  • the carried second data link layer address of the relay terminal and the first data link layer address of the second terminal allocated by the second terminal generate the first information of the second unicast link, and add at least the first information of the first terminal An address and the application layer identifier of the first terminal to the first information of the second unicast link to obtain the second information of the second unicast link; or, the second terminal can relay according to the application layer identifier of the second terminal
  • the application layer identifier of the terminal, the second data link layer address of the relay terminal carried after the response message of the relay path request, the first data link layer address of the second terminal allocated by the
  • the second information of the second unicast link corresponding to the first address of the first terminal in different situations will be described below.
  • the second information of the second unicast link may include the following information:
  • the application layer identifier of the first terminal the second data link layer address of the relay terminal, and the network layer address of the first terminal.
  • the information added to the first information of the second unicast link in this case includes: the application layer identifier of the first terminal, the second data link layer address of the relay terminal, and the Network layer address.
  • the second data link layer address of the relay terminal is associated with the application layer identifier of the relay terminal, and the second data link layer address of the relay terminal is also associated with the application layer identifier of the first terminal.
  • the second information of the second unicast link may include the following information:
  • the application layer identifier of the first terminal, and the first data link layer address of the first terminal are identical to each other.
  • the information added to the first information of the second unicast link includes: the application layer identifier of the first terminal, and the first data link layer address of the first terminal.
  • the second information of the second unicast link may include the following information:
  • the application layer identifier of the first terminal, and the second data link layer address of the first terminal are identical to each other.
  • the information added to the first information of the second unicast link in this case includes: the application layer identifier of the first terminal, the second data link layer address of the first terminal, and the The application layer identifier is associated with the second data link layer address of the first terminal.
  • Step S408 The second terminal sends the second data to the relay terminal through the second unicast link according to the second information of the second unicast link.
  • the second data includes the first address of the first terminal, and the first address of the first terminal is used to indicate that the destination receiving end of the second data is the first terminal.
  • the second data further includes: the first data link layer address of the second terminal, the network layer address of the second terminal, and the second terminal of the relay terminal. Data link layer address.
  • the second data further includes: the first data link layer address of the second terminal.
  • the second data further includes: the first data link layer address of the second terminal.
  • Step S409 The relay terminal determines that the destination receiving end of the second data is the first terminal according to the first address of the first terminal included in the second data.
  • the relay terminal receives the second data, and determines that the destination receiving end of the second data is the first terminal according to the first address of the first terminal included in the second data.
  • the relay terminal stores the correspondence between the first address of the first terminal and the first terminal According to the corresponding relationship, the relay terminal determines that the destination receiving end of the second data is the first terminal.
  • the relay terminal determines that the destination receiving end of the second data is the first terminal according to the first data link layer address of the first terminal .
  • Step S410 The relay terminal sends the second data to the first terminal through the first unicast link between the relay terminal and the first terminal.
  • Step S411 The first terminal sends first data to the relay terminal through the first unicast link according to the second information of the first unicast link.
  • the first data includes the first address of the second terminal, and the The first address is used to indicate that the destination receiving end of the first data is the second terminal.
  • the first data further includes: the first data link layer address of the first terminal, the network layer address of the first terminal, and the first terminal of the relay terminal. Data link layer address.
  • the first data further includes: the first data link layer address of the first terminal.
  • the first data further includes: the first data link layer address of the first terminal.
  • Step S412 The relay terminal determines that the destination receiving end of the first data is the second terminal according to the first address of the second terminal included in the first data.
  • the relay terminal receives the first data, and determines that the destination receiving end of the first data is the second terminal according to the first address of the first terminal included in the first data.
  • the relay terminal stores the correspondence between the first address of the second terminal and the second terminal According to the corresponding relationship, the relay terminal determines that the destination receiving end of the first data is the second terminal.
  • the relay terminal determines that the destination receiving end of the first data is the second terminal according to the first data link layer address of the second terminal .
  • Step S413 The relay terminal sends the first data to the second terminal through the second unicast link between the relay terminal and the second terminal.
  • the method in this embodiment can reduce the overhead for the terminal to perform link maintenance.
  • Fig. 5 is the third flowchart of the communication method provided by the embodiment of this application. Referring to Fig. 5, the method of this embodiment includes:
  • Step S501 The relay terminal broadcasts an announcement message.
  • the relay terminal After the relay terminal determines that it can communicate directly with the first terminal, the relay terminal broadcasts a notification message.
  • the notification message indicates that the relay terminal can be used as a relay to enable other terminals to communicate with the first terminal.
  • the notification message includes : The application layer identifier of the first terminal.
  • Step S502 The second terminal sends a response message of the notification message to the relay terminal.
  • the second terminal After receiving the notification message, the second terminal returns a response message of the notification message to the relay terminal when it determines that it needs to communicate with the first terminal.
  • the second terminal may also return a response message of the notification message to the relay terminal after determining that it needs to communicate with the first terminal and the first terminal cannot be discovered through the direct discovery process. It is understandable that if the second terminal can discover the first terminal through the direct discovery process, it may not return a response message to the relay terminal.
  • the response message of the notification message includes the application layer identifier of the first terminal, the application layer identifier of the second terminal, and the first data link layer address of the second terminal, indicating that the second terminal needs to communicate with the first terminal.
  • Step S503 The relay terminal sends a first message to the first terminal; the first message includes the first indication information, the application layer identifier of the second terminal, and the first address of the second terminal; wherein the first indication information can be used to indicate The first unicast link between the first terminal and the relay terminal.
  • step S301 For the specific implementation of this step, refer to the description in step S301 in the embodiment shown in FIG. 3, which will not be repeated here.
  • Step S504 The first terminal updates the first information of the first unicast link according to the first message to obtain updated second information of the first unicast link, where the second information includes the application layer of the second terminal Identification and the first address of the second terminal.
  • step S302 for the specific implementation of this step, refer to the description in step S302 in the embodiment shown in FIG. 3, which will not be repeated here.
  • Step S505 The first terminal sends a response message of the first message to the relay terminal; the response message of the first message indicates that the update of the second information of the first unicast link is completed.
  • step S405 for the specific implementation of this step, refer to the description of step S405 in the embodiment shown in FIG. 4, which will not be repeated here.
  • Step S506 The relay terminal sends a third message to the second terminal, where the third message includes the first address of the first terminal.
  • the relay terminal receives the response message of the first message, determines that the first information of the first unicast link has been updated to obtain the second information of the first unicast link, and then, the relay terminal sends the third information to the second terminal. news.
  • the method may further include: the relay terminal confirms whether the second unicast link between the second terminal and the relay terminal has been established; if not, the relay terminal is being established Following the second unicast link between the terminal and the second terminal, that is, the relay terminal generates the above-mentioned third information of the second unicast link. Accordingly, the third message needs to carry the first terminal's first information. The address also needs to carry the second data link layer address of the relay terminal; if so, the third message may not carry the second data link layer address of the relay terminal.
  • the third message needs to carry the first terminal of the first terminal.
  • the address also needs to carry the second data link layer address of the relay terminal.
  • the third message may also carry the application layer identifier of the first terminal.
  • the third message may also carry second indication information.
  • the second indication information may be used to indicate the second unicast link between the second terminal and the relay terminal, and the second indication information may be the second unicast link.
  • the identifier of the link may also be the application layer identifier of the second terminal and the application layer identifier of the relay terminal, and may also be the first data link layer address of the second terminal and the second data link layer address of the relay terminal .
  • the second indication information may be any of the above.
  • the second indication information may be the application layer identifier of the second terminal and the application layer identifier of the relay terminal.
  • the first address of the first terminal is the same as that described in the embodiment shown in FIG. 4, and will not be repeated here.
  • Step S507 The second terminal updates the first information of the second unicast link according to the third message to obtain the updated second information of the second unicast link, and the second information of the second unicast link includes the second information of the second unicast link.
  • the second terminal receives the third message, and updates the first information of the second unicast link according to the third message to obtain the updated second information of the second unicast link.
  • the second terminal updates the first information of the second unicast link to obtain the updated second information of the second unicast link, including the following specific implementations:
  • the first specific implementation corresponds to a situation where the relay terminal confirms that there is a second unicast link between the relay terminal and the second terminal:
  • the second terminal determines that there is a second unicast link according to the second data link layer address of the relay terminal that is not carried in the third message, and according to the application layer identifier of the second terminal and the middle Following the application layer identification of the terminal, obtain the stored first information of the second unicast link, and add at least the first address of the first terminal and the application layer identification of the first terminal to the first information of the second unicast link To obtain the second information of the second unicast link.
  • the second specific implementation corresponds to a situation where the relay terminal confirms that there is no second unicast link between the relay terminal and the second terminal:
  • the second terminal After receiving the third message, the second terminal determines that the first data link layer address of the second terminal needs to be allocated according to the second data link layer address of the relay terminal carried after the third message, and according to the second terminal's The application layer identifier, the application layer identifier of the relay terminal, the second data link layer address of the relay terminal carried in the third message, and the first data link layer address of the second terminal allocated by the second terminal to generate a second The first information of the unicast link, and at least the first address of the first terminal and the application layer identifier of the first terminal are added to the first information of the second unicast link to obtain the second information of the second unicast link Or, according to the application layer identifier of the second terminal, the application layer identifier of the relay terminal, the second data link layer address of the relay terminal carried in the third message, and the first data of the second terminal allocated by the second terminal The link layer address, the first address of the first terminal and the application layer identifier of the first terminal generate second information of the second unicast link
  • the third specific implementation corresponds to a situation where the relay terminal does not confirm whether there is a second unicast link between the relay terminal and the second terminal:
  • the second terminal Before the second terminal updates the first information of the second unicast link according to the third message, and obtains the updated second information of the second unicast link, it further includes: the second terminal confirms the second information according to the third message. Whether the second unicast link between the terminal and the relay terminal has been established. That is, the second terminal determines whether there is a unicast link summary whose application layer identifier of the sender is the application layer identifier of the second terminal and the application layer identifier of the receiver is the application layer identifier of the relay terminal according to determining whether there is a second order.
  • First information of the second unicast link if so, at least add the first address of the first terminal and the application layer identifier of the first terminal to the first information of the second unicast link to obtain the second information of the second unicast link Information; if not, the first data link layer address of the second terminal is assigned, based on the application layer identifier of the second terminal, the application layer identifier of the relay terminal, and the second data link of the relay terminal carried in the third message
  • the road layer address and the first data link layer address of the second terminal allocated by the second terminal generate the first information of the second unicast link, and add at least the first address of the first terminal and the application layer identifier of the first terminal To obtain the second information of the second unicast link according to the first information of the second unicast link; or, according to the application layer identifier of the second terminal, the application layer identifier of the relay terminal, and the medium carried in the third message Following the second data link layer address of the terminal, the first data link layer address of the second terminal allocated by the
  • Step S508 The second terminal sends a response message of the third message to the relay terminal; the response message of the third message indicates that the second information update of the second unicast link is completed.
  • Step S509 The second terminal sends second data to the relay terminal through the second unicast link according to the second information of the second unicast link, the second data includes the first address of the first terminal, and the The first address is used to indicate that the destination receiving end of the second data is the first terminal.
  • Step S510 The relay terminal determines that the destination receiving end of the second data is the first terminal according to the first address of the first terminal included in the second data.
  • Step S511 The relay terminal sends the second data to the first terminal through the first unicast link between the relay terminal and the first terminal.
  • Step S512 The first terminal sends first data to the relay terminal through the first unicast link according to the second information of the first unicast link.
  • the first data includes the first address of the second terminal, and the The first address is used to indicate that the destination receiving end of the first data is the second terminal.
  • Step S513 The relay terminal determines that the destination receiving end of the first data is the second terminal according to the first address of the second terminal included in the first data.
  • Step S514 The relay terminal sends the first data to the second terminal through the second unicast link between the relay terminal and the second terminal.
  • step S509 to step S51 reference may be made to the description in step S408 to step S413 in the embodiment shown in FIG. 4, which will not be repeated here.
  • the method in this embodiment can reduce the overhead for the terminal to perform link maintenance.
  • Fig. 6 is a fourth flowchart of a communication method provided by an embodiment of this application. Referring to Fig. 6, the method of this embodiment includes:
  • Step S601 The first target terminal establishes a new unicast link between the first target terminal and the second target terminal.
  • the first target terminal in this embodiment may be the first terminal, the second terminal, and the relay terminal in the above embodiments.
  • the second target terminal is any terminal that can establish a unicast link with the first target terminal.
  • a unicast link for other communication purposes may have been established between the first target terminal and the second target terminal road.
  • the direct communication between terminal A and terminal B belongs to a kind of communication purpose between terminal A and terminal B
  • terminal A as a relay terminal to realize the communication between terminal C and terminal B belongs to another kind of communication between terminal A and terminal B.
  • terminal A as a relay terminal to realize the communication between terminal D and terminal B belongs to another communication purpose between terminal A and terminal B.
  • Step S602 The first target terminal device establishes an association relationship between a new unicast link and other unicast links, and the other unicast links are the links between the first target terminal and the second target terminal except for the A link other than the new unicast link.
  • the terminal since the unicast links between the two terminals have established an association relationship, the terminal only needs to check whether one of the unicast links between the two terminals is connected, because if One of the unicast links between the two terminals is connected, which means that the two terminals can communicate normally, and the other unicast links are also connected. Therefore, the method of this embodiment reduces the overhead for the terminal to perform link maintenance, and is simple and easy to implement.
  • Fig. 7 is a flowchart 5 of a communication method provided by an embodiment of this application. Referring to Fig. 7, the method of this embodiment includes:
  • Step S701 The second terminal determines a relay terminal to communicate with the first terminal.
  • Step S702 The second terminal sends a relay path request message to the relay terminal.
  • Step S703 The relay terminal generates an overview of the second unicast link corresponding to the relay terminal, where the second unicast link is a unicast link between the relay terminal and the second terminal.
  • the summary of the second unicast link corresponding to the relay terminal is the third information of the second unicast link described above.
  • Step S704 The relay terminal sends a first unicast link establishment request message to the first terminal.
  • Step S705 The first terminal generates an overview of the first unicast link corresponding to the first terminal.
  • the first unicast link is a unicast link between the relay terminal and the first terminal.
  • the summary of the first unicast link corresponding to the first terminal is the same as the first information of the first unicast link described above.
  • steps S701 to S705 refer to the current general method, which will not be repeated here.
  • Step S706 The first terminal sends a response message of the first unicast link establishment request message to the relay terminal.
  • Step S707 The relay terminal generates an overview of the first unicast link corresponding to the relay terminal.
  • steps S704 to S707 the establishment of the first unicast link between the relay terminal and the first terminal is completed.
  • Step S708 If the first terminal determines that there are other unicast links between the first terminal and the relay terminal, establish an association relationship between the other unicast links and the first unicast link.
  • the first terminal determines whether there are other unicast links between the first terminal and the relay terminal, that is, in addition to the overview of the first unicast link corresponding to the first terminal, the first terminal determines whether the sender application layer identifier is stored in the first terminal An overview of the unicast link that is the application layer identifier of the first terminal and the receiver application layer identifier is the application layer identifier of the relay terminal. If it exists, the first terminal determines that there is another unicast link between the first terminal and the relay terminal.
  • the first terminal establishes an association relationship between other unicast links and the first unicast link, that is, establishes an overview of the first unicast link corresponding to the first terminal.
  • the first terminal and the relay terminal corresponding to the first terminal An overview of the association relationship between other unicast links.
  • step S708 and step S706 are not limited, and the order of execution of step S707 and step S708 is not limited.
  • Step S709 If the relay terminal determines that there are other unicast links between the relay terminal and the first terminal, establish an association relationship between the other unicast links and the first unicast link.
  • the relay terminal determines whether there are other unicast links between the relay terminal and the first terminal, that is, determines the first unicast link corresponding to the relay terminal.
  • An overview of the unicast link whether the relay terminal stores an overview of the unicast link in which the sender application layer identifier is the application layer identifier of the relay terminal and the receiver application layer identifier is the application layer identifier of the first terminal, if If there is, the relay terminal determines that there is another unicast link between the relay terminal and the first terminal.
  • the relay terminal establishes an association relationship between other unicast links and the first unicast link, that is, establishes an overview of the first unicast link corresponding to the relay terminal.
  • the relay terminal and the first terminal corresponding to the relay terminal An overview of the association relationship between other unicast links.
  • Step S710 The relay terminal sends a relay path request response message to the second terminal.
  • step S709 and step S710 are not limited.
  • Step S711 The second terminal generates an overview of the second unicast link corresponding to the second terminal.
  • Step S712 If the relay terminal determines that there are other unicast links between the relay terminal and the second terminal, establish an association relationship between the other unicast links and the second unicast link.
  • step S709 if the relay terminal determines that there are other unicast links between the relay terminal and the first terminal, then establish the association relationship between the other unicast links and the first unicast link The concrete realization of.
  • Step S713 If the second terminal determines that there is another unicast link between the second terminal and the relay terminal, establish an association relationship between the other unicast link and the second unicast link.
  • step S708 For the specific implementation of this step, refer to step S708 if the first terminal determines that there are other unicast links between the first terminal and the relay terminal, then establish the association relationship between the other unicast links and the first unicast link The specific implementation of, will not be repeated here.
  • the method of this embodiment reduces the overhead of link maintenance performed by the terminal, and is simple and easy to implement.
  • the size of the sequence number of each process does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, and should not correspond to the difference in the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • FIG. 8 is a schematic structural diagram of a communication device provided by an embodiment of this application.
  • the communication device may be the first terminal, or a component of the first terminal (for example, an integrated circuit, a chip, etc.).
  • the communication device may also be a relay terminal, or a relay terminal (for example, an integrated circuit, a chip, etc.).
  • the communication device may also be a second terminal, or a component of the second terminal (for example, an integrated circuit, a chip, etc.).
  • the communication device may also be another communication module, which is used to implement the method in the method embodiment of the present application.
  • the communication device 800 may include: a processing module 802 (processing unit).
  • it may also include a transceiver module 801 (transceiver unit) and a storage module 803 (storage unit).
  • one or more modules in Figure 8 may be implemented by one or more processors, or by one or more processors and memories; or by one or more processors It can be implemented with a transceiver; or implemented by one or more processors, memories, and transceivers, which is not limited in the embodiment of the present application.
  • the processor, memory, and transceiver can be set separately or integrated.
  • the communication device has the function of implementing the first terminal described in the embodiment of this application.
  • the communication device includes the module or unit or means corresponding to the first terminal to execute the steps related to the first terminal described in the embodiment of this application.
  • the function or unit or means (means) can be realized by software, or by hardware, or by hardware executing corresponding software, or by a combination of software and hardware.
  • the communication device has the function of implementing the relay terminal described in the embodiment of this application.
  • the communication device includes the module or unit corresponding to the relay terminal to execute the steps involved in the relay terminal described in the embodiment of this application.
  • Means The functions or units or means can be realized by software, or by hardware, or by hardware executing corresponding software, or by a combination of software and hardware. For details, reference may be made to the corresponding description in the foregoing corresponding method embodiment.
  • the communication device has the function of implementing the second terminal described in the embodiment of this application.
  • the communication device includes the module or unit corresponding to the second terminal executing the steps related to the second terminal described in the embodiment of this application.
  • the function or unit or means can be realized by software, or by hardware, or by hardware executing corresponding software, or by a combination of software and hardware.
  • each module in the communication device 800 in the embodiment of the present application may be used to execute the method described in the method embodiment of the present application.
  • a communication device 800 may include a transceiver module 801 and a processing module 802.
  • the transceiver module 801 is configured to perform step S301, step S403, and step S503 to receive a first message from a relay terminal, where the relay terminal is a relay terminal used for communication between the communication device and the second terminal
  • the first message includes first indication information, the application layer identifier of the second terminal, and the first address of the second terminal; wherein, the first indication information can be used to indicate the communication device and the communication device The first unicast link between the relay terminals;
  • the processing module 802 is configured to perform step S302, step S404, and step S504 to update the first information of the first unicast link according to the first message to obtain the updated first unicast link
  • the second information includes the application layer identifier of the second terminal and the first address.
  • the processing module 802 is further configured to perform step S410 and step S512 according to the second information of the first unicast link to control the transceiver module 801 through the first unicast link Perform step S410 and step S512 to send first data to the relay terminal, where the first data includes the first address, and the first address is used to indicate that the destination receiving end of the first data is Mentioned second terminal.
  • the transceiver module 801 is further configured to perform step S405 and step S505 to send a response message of the first message to the relay terminal; the response message indicates that the second information update is completed.
  • the processing module 802 before the processing module 802 updates the first information of the first unicast link according to the first message, the processing module 802 is further configured to perform step S302, step S404, and step S504 according to the The first message confirms that the first unicast link has been established.
  • the first address is allocated by the second terminal; or, the first address is allocated by the relay terminal.
  • the communication device 800 in the first possible design may be the first terminal or a component of the first terminal in the foregoing method embodiment.
  • the second terminal in the first possible design may be implemented by the foregoing method.
  • the second terminal of the terminal; or, the communication device 800 in the first possible design device may be the second terminal or a component of the second terminal in the foregoing method embodiment, and accordingly, the first possible design
  • the second terminal may be the first terminal in the foregoing method embodiment.
  • a communication device 800 may include a transceiver module 801 and a processing module 802.
  • the processing module 802 is configured to perform step S301, step S403, and step S503 to generate a first message;
  • the communication device is a device for communication between the first terminal and the second terminal;
  • the first message includes the first Indication information, the application layer identifier of the second terminal, and the first address of the second terminal; wherein the first indication information can be used to indicate the first communication between the first terminal and the communication device Unicast link
  • the transceiver module 801 is configured to perform step S301, step S403, and step S503 to send the first message to the first terminal.
  • the first address includes a network layer address of the second terminal or a data link layer address of the second terminal.
  • the first message further includes: the data link layer address of the communication device; the data link layer address of the communication device is associated with the application layer identifier of the communication device.
  • the first indication information includes a link identifier of the first unicast link.
  • the first indication information includes the data link layer address of the first terminal and the data link layer address of the communication device.
  • the processing module 802 is further configured to perform step S301, step S403, and step S503 to determine that the communication device is connected to the first terminal.
  • the first unicast link is established between terminals.
  • the transceiver module 801 is further configured to perform step S406 and receive a response message of the first message from the first terminal in step S506; the response message indicates the status of the first unicast link
  • the first information has been updated to the second information, and the second information includes the application layer identifier of the second terminal and the first address.
  • the first address includes the network layer address of the second terminal; the transceiver module 801 is further configured to perform step S412 and receive first data from the first terminal in step S513.
  • One piece of data includes the data link layer address of the first terminal, the network layer address of the first terminal, the data link layer address of the communication device, and the network layer address of the second terminal; the processing module 802 is further configured to perform step S412, and in step S513, according to the network layer address of the second terminal, determine that the destination receiving terminal of the first data is the second terminal; the transceiving module 801 is also configured to perform step S413 .
  • step S514 the first data is sent to the second terminal.
  • the first address includes the data link layer address of the second terminal; the transceiver module 801 is further configured to perform step S412 and receive the first data from the first terminal in step S513, so The first data includes the data link layer address of the first terminal and the data link layer address of the second terminal; the processing module 802 is further configured to perform steps S412 and S513 according to the second terminal The data link layer address of the data link layer determines that the destination terminal of the first data is the second terminal; the transceiver module 801 is further configured to perform step S413 and send the first data to the second terminal in step S514 .
  • the communication device 800 may be the relay terminal or a component of the relay terminal in the foregoing method embodiment.
  • the first terminal in the second possible design device may be the first terminal in the above method embodiment, and the second terminal may be the second terminal in the above method embodiment, or the first terminal in the second possible design device.
  • the terminal may be the second terminal in the above method embodiment, and the second terminal may be the first terminal of the terminal in the above method embodiment.
  • a communication device 800 may include a transceiver module 801 and a processing module 802.
  • the transceiver module 801 is configured to perform step S407 to receive a response message of a relay path request message from a relay terminal, and the relay terminal is a relay used for communication between the communication device and the first terminal. Terminal; the response message of the relay path request message includes: the first address of the first terminal.
  • the processing module 802 is configured to perform step S407 to update the first information of the second unicast link according to the response message of the relay path request message, so as to obtain the updated first information of the second unicast link.
  • Second information the second information of the second unicast link includes the application layer identifier of the first terminal and the first address of the first terminal, and the second unicast link is the communication device and Unicast link between the relay terminals.
  • the response message of the relay path request message further includes the application layer identifier of the first terminal.
  • the first address of the first terminal includes the network layer address of the first terminal; the second information of the second unicast link further includes the data link layer address of the relay terminal;
  • the data link layer address of the relay terminal is associated with the application layer identifier of the relay terminal, and the data link layer address of the relay terminal is also associated with the application layer identifier of the first terminal.
  • the first address of the first terminal includes a data link layer address of the first terminal.
  • the response message of the relay path request message further includes: the data link layer address of the relay terminal.
  • the processing module 802 is further configured to perform step S408 according to the second information of the second unicast link, and control the transceiver module 801 to perform step S408 through the second unicast link.
  • the second data includes the first address, and the first address is used to indicate that the destination receiving end of the second data is the first terminal.
  • the transceiving module 801 before the transceiving module 801 receives the response message of the relay path request message from the relay terminal, the transceiving module 801 is further configured to perform the transmission of the relay path to the relay terminal in step S402.
  • a path request message where the relay path request message includes the application layer identifier of the communication device and the application layer identifier of the first terminal.
  • the relay path request message includes the data link layer address of the communication device.
  • the method further includes: the second terminal sends the relay path request message to the relay terminal, so The relay path request message includes the application layer identifier of the second terminal and the application layer identifier of the first terminal.
  • the processing module 802 before the processing module 802 updates the first information of the second unicast link according to the response message of the relay path request message, the processing module 802 is further configured to perform the basis in step S407 The response message of the relay path request message confirms that the second unicast link has been established.
  • the first address of the first terminal is allocated by the first terminal; or, the first address of the first terminal is allocated by the relay terminal.
  • the communication device 800 may be the second terminal or a component of the second terminal in the foregoing method embodiment.
  • FIG. 9 is a schematic block diagram of an implementation manner of a communication device according to an embodiment of the application.
  • the communication device in this embodiment may be the first terminal or the second terminal or the relay terminal in the above solution embodiment; it may also be the first terminal or the second terminal or the relay terminal in the above solution embodiment to implement the above method.
  • the chip, chip system, or processor, etc. may also be a chip, chip system, or processor that supports the implementation of the above method.
  • the communication device can be used to implement the methods described in the foregoing method embodiments.
  • the server can be a local server or a cloud server.
  • the communication device may include one or more processors 901, and the processor 901 may also be referred to as a processing unit, which may implement certain control functions.
  • the processor 901 may be a general-purpose processor or a special-purpose processor. For example, it can be a baseband processor or a central processing unit.
  • the baseband processor can be used to process communication protocols and communication data
  • the central processor can be used to control communication equipment (such as base stations, baseband chips, terminals, terminal chips, DU or CU, etc.), execute software programs, and process The data of the software program.
  • the processor 901 may also store instructions and/or data 903, and the instructions and/or data 903 may be executed by the processor, so that the communication device executes the above method embodiments. Described method.
  • the processor 901 may include a transceiver unit for implementing receiving and sending functions.
  • the transceiver unit may be a transceiver circuit, or an interface, or an interface circuit.
  • the transceiver circuits, interfaces, or interface circuits used to implement the receiving and transmitting functions can be separate or integrated.
  • the foregoing transceiver circuit, interface, or interface circuit can be used for code/data reading and writing, or the foregoing transceiver circuit, interface, or interface circuit can be used for signal transmission or transmission.
  • the communication device may include one or more memories 902, on which instructions 904 may be stored, and the instructions may be executed on the processor, so that the communication device executes the foregoing method embodiments. Described method.
  • data may also be stored in the memory.
  • instructions and/or data may also be stored in the processor.
  • the processor and the memory can be provided separately or integrated together. For example, the corresponding relationship described in the foregoing method embodiment may be stored in a memory or in a processor.
  • the communication device may further include a transceiver 905 and/or an antenna 906.
  • the processor 901 may be referred to as a processing unit, and controls the communication device.
  • the transceiver 905 may be referred to as a transceiver unit, a transceiver, a transceiver circuit or a transceiver, etc., for implementing the transceiver function.
  • the transceiver 905 in FIG. 9 may be used to execute step S301, step S403, step S406, step S410, and step S413 in the foregoing method embodiment, and the processor 901 in FIG. 9 is used to execute the foregoing Steps S302, S409 and S412 in the method embodiment.
  • the transceiver 905 in FIG. 9 may be used to execute step S405 and step S411 in the above method embodiment; the processor 901 in FIG. 9 is used to execute step S404 in the above method embodiment.
  • the transceiver 905 in FIG. 9 may be used to execute steps S402 and S408 in the above method embodiment; the processor 901 in FIG. 9 is used to execute steps S401 and S401 in the above method embodiment. Step S407.
  • the transceiver 905 in FIG. 9 may be used to execute S501, step S503, step S506, step S511, and step S514 in the foregoing method embodiment; the processor 901 in FIG. 9 is used to execute the foregoing Step S510 and step S513 in the method embodiment.
  • the transceiver 905 in FIG. 9 may be used to perform step S505 and step S512 in the foregoing method embodiment; the processor 901 in FIG. 9 is used to perform step S504 in the foregoing method embodiment.
  • the transceiver 905 in FIG. 9 may be used to execute steps S502, S508, and S509 in the foregoing method embodiment; the processor 901 in FIG. 9 is used to execute the foregoing method embodiment. Step S507.
  • the transceiver 905 in FIG. 9 may be used to perform steps S704 and S710 in the foregoing method embodiment; the processor 901 in FIG. 9 is used to perform steps S703 and S703 in the foregoing method embodiment. Step S707, step S709, and step S712.
  • the transceiver 905 in FIG. 9 may be used to execute step S706 in the above method embodiment; the processor 901 in FIG. 9 is used to execute step S705 and step S708 in the above method embodiment.
  • the transceiver 905 in FIG. 9 may be used to perform step S702 in the above method embodiment; the processor 901 in FIG. 9 is used to perform step S701, step S711, and step S711 in the above method embodiment. Step S713.
  • the processor 901 in FIG. 9 is configured to execute step S601 and step S602 in the foregoing method embodiment.
  • CMOS complementary metal oxide semiconductor
  • NMOS nMetal-oxide-semiconductor
  • PMOS P-type metal oxide semiconductor
  • BJT bipolar junction transistor
  • BiCMOS bipolar CMOS
  • SiGe silicon germanium
  • GaAs gallium arsenide
  • the processor in the embodiment of the present application may be an integrated circuit chip with signal processing capability.
  • the steps of the foregoing method embodiments can be completed by hardware integrated logic circuits in the processor or instructions in the form of software.
  • the above-mentioned processor may be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (ASIC), a field programmable gate array (field programmable gate array, FPGA) or other Programming logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), and electrically available Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • the volatile memory may be random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • static random access memory static random access memory
  • dynamic RAM dynamic RAM
  • DRAM dynamic random access memory
  • synchronous dynamic random access memory synchronous DRAM, SDRAM
  • double data rate synchronous dynamic random access memory double data rate SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous connection dynamic random access memory serial DRAM, SLDRAM
  • direct rambus RAM direct rambus RAM
  • the scope of the communication device described in the embodiments of the present application is not limited to this, and the structure of the communication device may not be limited by FIG. 9.
  • the communication device described in the embodiments of the present application may be an independent device or may be a part of a larger device.
  • the device shown in Figure 9 may also be:
  • the set of ICs may also include storage components for storing at least one of data and instructions;
  • Receivers terminals, smart terminals, cellular phones, wireless devices, handsets, mobile units, vehicle-mounted devices, network devices, cloud devices, artificial intelligence devices, etc.
  • FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of this application.
  • the terminal device 1000 includes a processor 1001, a memory 1002, a control circuit 1003, an antenna 1004, an input/output device 1005, and a radio frequency circuit (not shown in the figure).
  • the processor 1001 is mainly used to process communication protocols and communication data, and to control the entire terminal, execute software programs, and process data of the software programs.
  • the memory 1002 is mainly used to store software programs and data.
  • the radio frequency circuit is mainly used for the conversion of baseband signal and radio frequency signal and the processing of radio frequency signal.
  • the antenna is mainly used to send and receive radio frequency signals in the form of electromagnetic waves.
  • the input and output device 1005, such as a touch screen, a display screen, a keyboard, etc., is mainly used to receive data input by the user and output data to the user.
  • the processor 1001 can read the software program in the memory 1002, parse and execute the instructions of the software program, and process the data of the software program.
  • the processor 1001 performs baseband processing on the data to be sent, and outputs the baseband signal to the radio frequency circuit.
  • the radio frequency circuit processes the baseband signal to obtain a radio frequency signal and passes the radio frequency signal to the outside in the form of electromagnetic waves through the antenna send.
  • the radio frequency circuit receives the radio frequency signal through the antenna, the radio frequency signal is further converted into a baseband signal, and the baseband signal is output to the processor 1001, and the processor 1001 converts the baseband signal into data and performs the Data is processed.
  • FIG. 10 only shows a memory 1002 and a processor 1001. In an actual terminal device, there may be multiple processors 1001 and memories 1002.
  • the memory 1002 may also be referred to as a storage medium or a storage device, etc., which is not limited in the embodiment of the present application.
  • the processor 1001 may include a baseband processor and a central processing unit.
  • the baseband processor is mainly used to process communication protocols and communication data
  • the central processing unit is mainly used to control the entire terminal device. Execute the software program and process the data of the software program.
  • the processor 1001 in FIG. 10 integrates the functions of the baseband processor and the central processing unit.
  • the baseband processor and the central processing unit may also be independent processors and are interconnected by technologies such as a bus.
  • the terminal device may include multiple baseband processors to adapt to different network standards, the terminal device may include multiple central processors to enhance its processing capabilities, and the various components of the terminal device may be connected through various buses.
  • the baseband processor may also be expressed as a baseband processing circuit or a baseband processing chip.
  • the central processing unit can also be expressed as a central processing circuit or a central processing chip.
  • the function of processing the communication protocol and the communication data may be built in the processor 1001, or may be stored in the storage unit in the form of a software program, and the processor 1001 executes the software program to realize the baseband processing function.
  • the antenna 1004 and the control circuit 1003 with the transceiving function can be regarded as the transceiving unit 1006 of the terminal device 1000
  • the processor 1001 with the processing function can be regarded as the processing unit 1007 of the terminal device 1000.
  • the terminal device 1000 includes a transceiver unit 1006 and a processing unit 1007.
  • the transceiving unit may also be referred to as a transceiver, transceiver, transceiving device, and so on.
  • the device for implementing the receiving function in the transceiving unit 1006 can be regarded as the receiving unit, and the device for implementing the sending function in the transceiving unit 1006 can be regarded as the sending unit, that is, the transceiving unit 1006 includes a receiving unit and a sending unit.
  • the receiving unit may also be called a receiver, a receiver, a receiving circuit, etc.
  • the sending unit may be called a transmitter, a transmitter, or a transmitting circuit, etc.
  • the foregoing receiving unit and sending unit may be an integrated unit or multiple independent units.
  • the above-mentioned receiving unit and sending unit may be in one geographic location, or may be scattered in multiple geographic locations.
  • the embodiment of the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method corresponding to the first terminal or the method corresponding to the second terminal in the foregoing method embodiments Or the method corresponding to the relay terminal.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state disk, SSD)) etc.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It 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, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function 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 technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the character "/" generally indicates that the associated objects before and after are in an "or” relationship.
  • At least one of or “at least one of” herein means all or any combination of the listed items, for example, "at least one of A, B and C", It can mean: A alone exists, B alone exists, C exists alone, A and B exist at the same time, B and C exist at the same time, and there are six cases of A, B and C at the same time, where A can be singular or plural, and B can be Singular or plural, C can be singular or plural.
  • B corresponding to A means that B is associated with A, and B can be determined according to A.
  • determining B based on A does not mean that B is determined only based on A, and B can also be determined based on A and/or other information.

Landscapes

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

Abstract

本申请实施例提供一种通信方法和装置。该方法包括:接收来自中继终端的第一消息,该中继终端为用于该第一终端和第二终端之间进行通信的中继终端;该第一消息包括第一指示信息、该第二终端的应用层标识和该第二终端的第一地址;其中,该第一指示信息能够用于指示该第一终端和该中继终端之间的第一单播链路;该第一终端根据该第一消息,更新该第一单播链路的第一信息,以获得更新的该第一单播链路的第二信息,该第二信息包括该第二终端的应用层标识和该第一地址。本申请实施例可以减少了第一终端与中继终端之间需要维护的链路,减少了链路维护的开销。

Description

通信方法和装置 技术领域
本申请实施例涉及通信技术领域,尤其涉及一种通信方法和装置。
背景技术
随着移动通信的高速发展,新业务类型,如视频聊天、虚拟现实(virtual reality,简称VR)/增强现实(augmented reality,简称AR)等数据业务的普遍使用提高了用户对带宽的需求。设备到设备(Device-to-Device,简称D2D)通信允许终端之间直接进行通信,可以在小区网络的控制下与小区用户共享频谱资源,有效的提高频谱资源的利用率。目前,D2D通信已经应用于4G网络系统中。D2D通信包括一对多通信(One to many communication)以及一对一通信(One to one communication)。在一对一通信中,若发送方设备与接收方设备在近距离范围内,通过相互发现后可以直接通信;若发送方设备与接收方设备没有处在近距离范围内,不能相互发现对方,无法直接进行D2D通信,此时可以引入中继设备(Relay)进行辅助,通过发送方设备与中继设备间通信和中继设备与接收方设备通信进而实现发送方设备与接收方设备之间通信。
目前,能够直接进行通信的两个终端之间可能会存在多条通信链路,这些通信链路包括用于两个终端之间直接通信的通信链路,还包括用于中继传输的非直接通信的通信链路。两个终端中的任意一个终端需要分别维护该多条通信链路的连通性,使得链路连通性维护开销大。
发明内容
本申请实施例提供一种通信方法和装置,降低了终端维护链路连通性的开销。
第一方面,本申请实施例提供一种通信方法,包括:第一终端接收来自中继终端的第一消息,所述中继终端为用于所述第一终端和第二终端之间进行通信的中继终端;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能够用于指示所述第一终端和所述中继终端之间的第一单播链路;所述第一终端根据所述第一消息,更新所述第一单播链路的第一信息,以获得更新的所述第一单播链路的第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。
本方案中通过将第二终端的信息作为新的接收方信息添加至第一终端对应的第一单播链路的概述(第一单播链路的第一信息)中,得到第一单播链路的第二信息,这样无论是中继终端与第一终端之间直接通信还是中继终端作为中继实现第二终端与第一终端的通信均可根据该第一单播链路的第二信息实现,相当于中继终端和第一终端之间的直接通信目的和中继通信目均使用中继终端与第一终端之间的同一条单播链路,减少了第一终端与中继终端之间需要维护的链路,减少了链路维护的开销。
在一种可能的实施方式中,还包括:所述第一终端根据所述第一单播链路的第二信息,通过所述第一单播链路向所述中继终端发送第一数据,所述第一数据包括所述第一地址,所述第一地址用于指示所述第一数据的目的接收端为所述第二终端。
本方案中,在第一终端需要通过中继终端向第二终端发送第一数据时,在第一数据中携带第二终端的第一地址,以指示当前发送至中继终端的第一数据的目的接收端为第二终端,保证在第一终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。
在一种可能的实施方式中,所述第二终端的第一地址包括所述第二终端的网络层地址;所述第二信息还包括所述中继终端的数据链路层地址;所述中继终端的所述数据链路层地址与所述中继终端的应用层标识关联,所述中继终端的所述数据链路层地址还与所述第二终端的应用层标识关联。
本方案中,所述第二终端的第一地址包括所述第二终端的网络层地址,所述第二终端的网络层地址可以是中继终端分配的,也可以是第二终端分配的。在所述中继终端的所述数据链路层地址与所述中继终端的应用层标识关联,所述中继终端的所述数据链路层地址还与所述第二终端的应用层标识关联时,在第一终端发送至中继终端的第一数据中携带第二终端的网络层地址可以指示第一数据的目的接收端为第二终端,保证在第一终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。
在一种可能的实施方式中,所述第二终端的第一地址包括所述第二终端的数据链路层地址。
本方案中,一种情况下,所述第二终端的数据链路层地址为第二终端分配的,用于标识第二终端与中继终端之间的单播链路的数据链路层标识,因此,在第一终端发送至中继终端的第一数据中携带所述第二终端的数据链路层地址可以指示第一数据的目的接收端为第二终端,保证在第一终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。另一种情况下,所述第二终端的数据链路层地址为中继终端分配的,在第一终端需要与第二终端通信时,第一终端发送至中继终端的第一数据中携带第二终端的该数据链路层地址可以指示第一数据的目的接收端为第二终端,保证在第一终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。
在一种可能的实施方式中,所述第一指示信息包括所述第一单播链路的链路标识。
本方案提供了第一指示信息的一种具体实现,可以节省信令开销。
在一种可能的实施方式中,所述第一指示信息包括所述中继终端的所述数据链路层地址和所述第一终端的数据链路层地址。
本方案提供了第一指示信息的另一种具体实现。
在一种可能的实施方式中,所述第一指示信息包括所述中继终端的应用层标识和所述第一终端的应用层标识。
本方案提供了第一指示信息的另一种具体实现。
在一种可能的实施方式中,所述第一消息还包括:所述中继终端的所述数据链路层地址。
本方案在第一消息中包括所述中继终端的所述数据链路层地址,可以使得在第一终端与中继终端之间未建立有第一单播链路时,第一终端能够根据中继终端的所述数据链路层地址建立第一单播链路。
在一种可能的实施方式中,还包括:所述第一终端向所述中继终端发送第一消息的响应消息;所述响应消息指示所述第二信息更新完成。
本方案可以使得中继终端获知第一单播链路的第二信息更新完成,以使中继终端可继续进行与第二终端之间的链路的建立和更新或者可继续进行与第二终端之间的链路的更新。
在一种可能的实施方式中,所述第一终端根据所述第一消息更新所述第一单播链路的第一信息之前,还包括:所述第一终端根据所述第一消息,确认所述第一单播链路已建立。
本方案中,第一终端根据第一消息确认所述第一单播链路已建立后,可直接更新第一单播链路的第一信息至第一单播链路的第二信息,提高通信链路建立的效率。
第二方面,本申请实施例提供一种通信方法,包括:中继终端生成第一消息;所述中继终端为用于第一终端和第二终端之间进行通信的中继终端;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能够用于指示所述第一终端和所述中继终端之间的第一单播链路;所述中继终端向所述第一终端发送所述第一消息。
本方案中,中继终端向所述第一终端发送所述第一消息后,第一终端能够根据所述第一消息,更新所述第一单播链路的第一信息,以获得更新的所述第一单播链路的第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。也就是说本方案能够使得第一终端将第二终端的信息作为新的接收方信息添加至第一终端对应的第一单播链路的概述(第一单播链路的第一信息)中,得到第一单播链路的第二信息,这样无论是中继终端与第一终端之间直接通信还是中继终端作为中继实现第二终端与第一终端的通信均可根据该第一单播链路的第二信息实现,相当于中继终端和第一终端之间的直接通信目的和中继通信目均使用中继终端与第一终端之间的同一条单播链路,减少了第一终端与中继终端之间需要维护的链路,减少了链路维护的开销。
在一种可能的实施方式中,所述第一地址包括所述第二终端的网络层地址或者所述第二终端的数据链路层地址。
本方案的有益效果参见第一方面中的阐述,此处不再赘述。
在一种可能的实施方式中,所述第一消息还包括:所述中继终端的数据链路层地址;所述中继终端的数据链路层地址与所述中继终端的应用层标识关联。
本方案的有益效果参见第一方面中的阐述,此处不再赘述。
在一种可能的实施方式中,所述第一指示信息包括所述第一单播链路的链路标识。
本方案的有益效果参见第一方面中的阐述,此处不再赘述。
在一种可能的实施方式中,所述第一指示信息包括所述第一终端的数据链路层地址和所述中继终端的所述数据链路层地址。
本方案的有益效果参见第一方面中的阐述,此处不再赘述。
在一种可能的实施方式中,所述第一指示信息包括所述中继终端的应用层标识和所述第一终端的应用层标识。
本方案提供了第一指示信息的另一种具体实现。
在一种可能的实施方式中,在所述中继终端发送所述第一消息至第一终端之前,还包括:所述中继终端确定所述中继终端与所述第一终端之间建立有所述第一单播链路。
本方案中在中继终端确定所述中继终端与所述第一终端之间建立有所述第一单播链路后,可不携带中继终端的所述数据链路层地址,以减少信令开销以及第一终端的功耗。
在一种可能的实施方式中,还包括:所述中继终端接收来自所述第一终端的所述第一消息的响应消息;所述响应消息指示所述第一单播链路的第一信息已被更新至第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。
本方案的有益效果参见第一方面中的阐述,此处不再赘述。
在一种可能的实施方式中,所述第一地址包括所述第二终端的网络层地址,所述方法还包括:所述中继终端接收来自所述第一终端的第一数据,所述第一数据包括所述第一终端的数据链路层地址、所述第一终端的网络层地址、所述中继终端的数据链路层地址和所述第二终端的网络层地址;所述中继终端根据所述第二终端的网络层地址,确定所述第一数据的目的接收终端为所述第二终端;所述中继终端向所述第二终端发送所述第一数据。可选地,所述中继终端根据所述第二终端的网络层地址,确定所述第一数据的目的接收终端为所述第二终端包括:根据所述第二终端的网络层地址和对应关系,确定所述第一数据的目的接收终端为所述第二终端。其中,对应关系可指示所述第二终端的网络层地址对应第二终端。一种实现中,对应关系可包括至少一个网络层地址,以及每个网络层地址所对应的终端的标识,至少一个网络层地址中包括第二终端的网络层地址。
本方案可以保证在第一终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。
在一种可能的实施方式中,所述第一地址包括所述第二终端的数据链路层地址,所述方法还包括:所述中继终端接收来自所述第一终端的第一数据,所述第一数据包括所述第一终端的数据链路层地址和所述第二终端的数据链路层地址;所述中继终端根据所述第二终端的数据链路层地址,确定所述第一数据的目的终端为所述第二终端;所述中继终端向所述第二终端发送所述第一数据。所述中继终端根据所述第二终端的数据链路层地址,确定所述第一数据的目的终端为所述第二终端,包括:根据所述第二终端的数据链路层地址和对应关系,确定所述第一数据的目的接收终端为所述第二终端。其中,对应关系可指示所述第二终端的数据链路层地址对应第二终端。一种实现中,对应关系可包括至少一个数据链路层地址,以及每个数据链路层地址所对应的终端的标识,至少一个数据链路层地址中包括第二终端的数据链路层地址。
本方案可以保证在第一终端与中继终端之间在第一终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。
第三方面,本申请实施例提供一种通信方法,包括:接收来自中继终端的中继路径请求消息的响应消息,所述中继终端为用于所述第二终端和第一终端之间进行通信的中继终端;所述中继路径请求消息的响应消息包括第一终端的第一地址;所述第二终端根据所述第一消息,更新第二单播链路的第一信息,以获得更新的所述第二单播 链路的第二信息,所述第二单播链路的第二信息包括所述第一终端的应用层标识和所述第一终端的第一地址,所述第二单播链路为所述第二终端和所述中继终端之间的单播链路。
本方案中通过将第一终端的信息作为新的接收方信息添加至第二终端对应的第二单播链路的概述(第二单播链路的第一信息)中,得到第二单播链路的第二信息,这样无论是中继终端与第二终端之间直接通信还是中继终端作为中继实现第一终端与第二终端的通信均可根据该第二单播链路的第二信息实现,相当于中继终端和第二终端之间的直接通信目的和中继通信均使用中继终端与第二终端之间的同一条单播链路,减少了第二终端与中继终端之间需要维护的链路,减少了链路维护的开销。
在一种可能的实施方式中,还包括:所述第二终端根据所述第二单播链路的第二信息,通过所述第二单播链路控制所述收发模块向所述中继终端发送第二数据,所述第二数据包括所述第一终端的第一地址,所述第一终端的第一地址用于指示所述第二数据的目的接收端为所述第一终端。
本方案中,在第二终端需要通过中继终端向第一终端发送第一数据时,在第二数据中携带第一终端的第一地址,以指示当前发送至中继终端的第二数据的目的接收端为第一终端,保证在第一终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。
在一种可能的实施方式中,所述第一终端的第一地址包括所述第一终端的网络层地址;所述第二单播链路的第二信息还包括所述中继终端的数据链路层地址;所述中继终端的数据链路层地址与所述中继终端的应用层标识关联,所述中继终端的所述数据链路层地址还与所述第一终端的应用层标识关联。
本方案中,所述第一终端的第一地址包括所述第一终端的网络层地址,所述第一终端的网络层地址可以是中继终端分配的,也可以是第一终端分配的。在所述中继终端的所述数据链路层地址与所述中继终端的应用层标识关联,所述中继终端的所述数据链路层地址还与所述第一终端的应用层标识关联时,在第二终端发送至中继终端的第二数据中携带第一终端的网络层地址可以指示第二数据的目的接收端为第一终端,保证在第二终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。
在一种可能的实施方式中,所述第一终端的第一地址包括所述第一终端的数据链路层地址。
本方案中,一种情况下,所述第一终端的数据链路层地址为第二终端分配的,用于标识第一终端与中继终端之间的单播链路的数据链路层标识,因此,在第二终端发送至中继终端的第二数据中携带所述第一终端的数据链路层地址可以指示第二数据的目的接收端为第一终端,保证在第二终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。另一种情况下,所述第一终端的数据链路层地址为中继终端分配的,在第二终端需要与第一终端通信时,第二终端发送至中继终端的第二数据中携带第一终端的该数据链路层地址可以指示第二数据的目的接收端为第一终端,保证在第二终端和中继终端之间实现直接通信和中继通信的链路为同一条单播链路时第一终端和第二终端间的正常通信。
在一种可能的实施方式中,所述中继路径请求消息的响应消息还包括:所述中继终端的所述数据链路层地址。
本方案在中继路径请求消息的响应消息中包括所述中继终端的所述数据链路层地址,可以使得在第二终端与中继终端之间未建立有第二单播链路时,第二终端能够根据中继终端的所述数据链路层地址建立第二单播链路。
在一种可能的实施方式中,在所述第二终端接收来自中继终端的中继路径请求消息的响应消息之前,还包括:所述第二终端向所述中继终端发送所述中继路径请求消息,所述中继路径请求消息包括所述第二终端的应用层标识和所述第一终端的应用层标识所述中继路径请求消息包括所述第二终端的数据链路层地址。
在一种可能的实施方式中,所述第二终端根据所述中继路径请求消息的响应消息更新所述第二单播链路的第一信息之前,还包括:所述第二终端根据所述中继路径请求消息的响应消息,确认所述第二单播链路已建立。
本方案中,第二终端根据所述中继路径请求消息的响应消息确认所述第二单播链路已建立后,可直接更新第二单播链路的第一信息至第二单播链路的第二信息,提高通信链路建立的效率。
在一种可能的实施方式中,所述第一终端的第一地址由所述第一终端分配;或者,所述第一终端的第一地址由所述中继终端分配。
第四方面,本申请实施例提供一种通信方法,包括:第一目标终端建立第一目标终端与第二目标终端之间的新的单播链路;所述第一目标终端建立所述新的单播链路与其它单播链路之间的关联关系,所述其它单播链路为所述第一目标终端与所述第二目标终端之间的链路中除了所述新的单播链路以外的单播链路。
本实施例中由于两个终端之间的各单播链路建立了关联关系,终端仅需检查两个终端之间的各单播链路中的一个单播链路是否连通即可,因为若两个终端之间的各单播链路中的一个单播链路连通,则说明该两个终端之间可以正常通信,其它的单播链路也就是连通的。因此,本实施例的方法减少终端进行链路维护的开销,且简单易实现。
第五方面,本申请实施例提供一种通信装置,用于实现第一方面的通信方法。第五方面的通信装置包括:收发模块,用于接收来自中继终端的第一消息,所述中继终端为用于所述通信装置和第二终端之间进行通信的中继终端;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能够用于指示所述通信装置和所述中继终端之间的第一单播链路;处理模块,用于根据所述第一消息,更新所述第一单播链路的第一信息,以获得更新的所述第一单播链路的第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。
第六方面,本申请实施例提供一种通信装置,用于实现第二方面的通信方法。第六方面的通信装置包括:处理模块,用于生成第一消息;所述通信装置为用于第一终端和第二终端之间进行通信的装置;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能够用于指示所述第一终端和所述通信装置之间的第一单播链路;收发模块,用于向所述第一终端发送所述第一消息。
第七方面,本申请实施例提供一种终端,包括:至少一个处理器;以及与所述至 少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行第一方面或第一方面任一可能的实施方式中所述的方法,或者,执行第二方面或第二方面任一可能的实施方式中所述的方法,或者,执行第三方面或第三方面任一可能的实施方式中所述的方法。
第八方面,本申请实施例提供一种存储有计算机指令的非瞬时计算机可读存储介质,其特征在于,所述计算机指令用于使所述计算机执行第一方面或第一方面任一可能的实施方式中所述的方法,或者,执行第二方面或第二方面任一可能的实施方式中所述的方法,或者,执行第三方面或第三方面任一可能的实施方式中所述的方法。
本申请中在第一终端需要通过中继终端与第二终端通信时,第一终端将第二终端的信息作为新的接收方信息添加至第一终端对应的第一单播链路的概述(第一单播链路的第一信息)中,得到第一单播链路的第二信息,这样无论是中继终端与第一终端之间直接通信还是中继终端作为中继实现第二终端与第一终端的通信均可根据该第一单播链路的第二信息实现,相当于中继终端和第一终端之间的各种通信目的均使用中继终端与第一终端之间建立的同一条单播链路,减少了第一终端与中继终端之间需要维护的链路,减少了链路维护的开销。
附图说明
图1为本申请实施例涉及的系统架构图;
图2为一种中继链路建立过程交互图;
图3为本申请实施例提供的通信方法的流程图一;
图4为本申请实施例提供的通信方法的流程图二;
图5为本申请实施例提供的通信方法的流程图三;
图6为本申请实施例提供的通信方法的流程图四;
图7为本申请实施例提供的通信方法的流程图五;
图8为本申请实施例提供的一种通信装置的结构示意图;
图9为本申请实施例的通信设备的一种实现方式的示意性框图;
图10为本申请实施例提供的一种终端设备的结构示意图。
具体实施方式
为了更好的理解本申请,本申请中引入如下的要素。
1、本申请实施例涉及的单播链路的信息可用于保存单播链路(unicast link)的上下文,具体形式不限定,本申请实施例中以单播链路的信息为单播链路概述为例进行介绍。其中,单播链路还可称为单播链接或单播连接。
2、单播链路概述(或者称为单播链路的概述):用于描述两个终端之间的单播链路。
若两个终端包括终端1和终端2,两个终端中的终端1中存储的描述该单播链路的概述的形式如下:
终端1的应用层标识,终端1的数据链路层标识;
终端2的应用层标识,终端2的数据链路层标识。
其中,终端1的应用层标识和终端1的数据链路层标识为发送方信息,终端2的应用层标识和终端2的数据链路层标识为接收方信息。终端1中存储的描述该单播链路的概述可称为终端1对应的描述该单播链路的概述。
两个终端中的终端2中存储的描述该单播链路的概述的形式如下:
终端2的应用层标识,终端2的数据链路层标识;
终端1的应用层标识,终端1的数据链路层标识。
其中,终端2的应用层标识和终端2的数据链路层标识为发送方信息,终端1的应用层标识和终端1的数据链路层标识为接收方信息。终端2中存储的描述该单播链路的概述可称为终端2对应的描述该单播链路的概述。
在终端1对应的描述该单播链路的概述和终端2对应的描述该单播链路的概述均生成后,终端1和终端2之间的单播链路建立完成。
图1为本申请实施例涉及的系统架构图,参见图1,该系统架构包括:第一终端、中继终端和第二终端,中继终端用于第二终端和第一终端之间的通信。
在第一终端需要与第二终端进行通信,第一终端确定不能直接发现第二终端时,第一终端可通过中继发现流程确定中继终端,以通过中继终端与第二终端之间进行通信。同样地,在第二终端需要与第一终端进行通信,第二终端确定不能直接发现第一终端时,第二终端可通过中继发现流程确定中继终端,以通过中继终端与第一终端之间进行通信。
其中,本实施例的终端可以为用户设备(user equipment,简称UE)、手持终端、笔记本电脑、蜂窝电话、智能电话、平板型电脑、手持设备、AR设备、VR设备、机器类型通信终端或是其他可以接入网络的设备。
在阐述本申请之前,先结合图2对目前的中继链路建立过程进行说明。
(1)终端a需要与终端b进行通信,但终端a不能直接发现终端b,即终端a与终端b不在近距离通信范围内,不能直接通信。为了找到一个中继终端用于终端a与终端b间通信,终端a广播中继请求消息,中继请求消息中包括终端a的应用层标识(终端a的ID)和终端b的应用层标识。
(2)当终端a附近的终端(比如终端c、终端d和终端e)接收到中继请求消息后,基于本地信息确定是否可以作为终端a和终端b间通信的中继终端;其中,本地信息包括但不限于如下的至少一项信息:有无中继能力、与终端b的近距离关系、当前处理负载、与终端b间信号强度信息。如果终端c、终端d确定能够作为终端a和终端b间通信的中继终端,终端c向终端a发送一个响应消息,该响应消息中包括终端c的应用层标识,终端d向终端a发送一个响应消息,该响应消息中包括终端d的应用层标识。
其中,如果终端a附近的终端中没有与终端b的距离关系信息,该终端可以发起近距离发现流程(ProSe discovery)确定与终端b是否在近距离范围内,或者周期性发起近距离发现流程获取周围终端的信息。
(3)终端a选择回复响应消息的终端(终端c和终端d)中的一个作为中继终端。若终端c被选择作为中继终端,终端a发送中继路径建立请求消息至终端c,中继路径建立请求消息中包括终端b的应用层标识、QoS信息和终端a的数据链路层地址(数据链路层地址还可以称为二层地址(Layer 2 ID),比如可以是隧道端点标识(Tunnel Endpoint ID))。
(4)终端a与终端c之间进行鉴权和安全相关流程。
(5)终端c向终端b发送链路建立请求消息,链路建立请求消息中包括终端c的应用层标识、QoS和终端c的第一数据链路层地址。
(6)终端c与终端b之间进行鉴权和安全相关流程。
(7)终端b返回链路建立请求消息的响应消息至终端c,该响应消息中包括终端b是否接收链路建立请求的指示信息。如果终端b接收链路建立请求,该响应消息中还包括终端b的第一数据链路层地址。终端c的第一数据链路层地址和终端b的第一数据链路层地址唯一标识终端c和终端b之间的链路。
(8)终端c向终端a发送中继路径建立请求消息的响应消息,中继路径建立请求消息的响应消息中包括终端c与终端b之间的链路建立成功的指示以及终端c的第二数据链路层地址。终端c的第二数据链路层地址和终端a的第一数据链路层地址唯一标识终端c和终端a之间的链路。
在终端a与终端c间的链路和终端c与终端b间之间的链路都建立完成后,终端a能向终端b发送数据。
通过上述流程可知,在终端a、终端c、终端b之间建立通信链路的过程中,终端a和终端c分别被分配了一个数据链路层地址,该对数据链路层地址用于标识终端c作为终端a和终端b之间的中继终端时终端a、终端c之间的链路。若终端a和终端c之间需要直接通信,则终端a、终端c还分别被分配了另一个数据链路层地址,该对数据链路层地址用于标识终端a、终端c直接通信时终端a和终端c之间的链路。若终端a还需要与终端f之间通信,终端c也被选作中继终端,那么终端a和终端c还分别被分配了一个数据链路层地址,该对数据链路层地址用于标识终端c作为终端a和终端f之间的中继终端时终端a、终端c之间的链路。也就是说:终端a和终端c之间存在多条链路,终端a需要维护多条链路的连通性,链路开销较大。
为了解决上述技术问题,提出了本申请的通信方法。下面采用具体的实施例对本申请的通信方法进行说明。
图3为本申请实施例提供的通信方法的流程图一,参见图3,本实施例的方法包括:
步骤S301、中继终端向第一终端发送第一消息;中继终端为用于第一终端和第二终端之间进行通信的中继终端;第一消息包括第一指示信息、第二终端的应用层标识和第二终端的第一地址;其中,第一指示信息能够用于指示第一终端和中继终端之间的第一单播链路。
对于本实施例中的第二终端的第一地址,第二终端的第一地址可以是但不限于如下的几种情况:
第一种情况:第二终端的第一地址包括第二终端的网络层地址。其中,第二终端的网络地址可以是第二终端分配后发送至中继终端的,还可以是中继终端分配的。
第二种情况:第二终端的第一地址包括第二终端的第一数据链路层地址。其中,第二终端的第一数据链路层地址可以是第二终端分配后发送至中继终端的,即第二终端的第一数据链路层地址为建立第二终端与中继终端的第二单播链路时第二终端分配的数据链路层地址。
第三种情况:第二终端的第一地址包括第二终端的第二数据链路层地址。第二终端的 第二数据链路层地址是中继终端分配的。
综上所述,第二终端的第一地址可以是由第二终端分配的,还可以是由中继终端分配的。在第一终端通过中继终端向第二终端发送数据时,可携带第二终端的第一地址,以标识数据的目的接收端为第二终端。
对于本实施例中的第一指示信息,第一指示信息包括第一单播链路的链路标识;或者,第一指示信息包括中继终端的应用层标识和第一终端的应用层标识;或者,第一指示信息包括中继终端的第一数据链路层地址和第一终端的第一数据链路层地址。
下面对该步骤进行详细说明。
一种方式中,在中继终端向第一终端发送第一消息之前,还可包括中继终端确认是否存在中继终端与第一终端之间的第一单播链路。
其中,中继终端确认是否存在中继终端与第一终端之间的第一单播链路的方法可为:中继终端确认其所存储的单播链路概述(unicast link profile)中是否存在发送方应用层标识为中继终端的应用层标识、接收方应用层标识为第一终端的应用层标识的单播链路概述,若是,则确认存在中继终端与第一终端之间的第一单播链路,若否,则确认不存在中继终端与第一终端之间的第一单播链路。可以理解的是,中继终端中存储的发送方应用层标识为中继终端的应用层标识、接收方应用层标识为第一终端的应用层标识的单播链路概述为中继终端对应的该第一单播链路的概述(为了阐述的简便,后续称中继终端对应的该第一单播链路的概述为第一单播链路的第三信息)。
其中,第一单播链路的第三信息可如下:
中继终端的应用层标识,中继终端的第一数据链路层地址;
第一终端的应用层标识,第一终端的第一数据链路层地址。
其中,中继终端的第一数据链路层地址和第一终端的第一数据链路层地址唯一标识第一单播链路,也就是说,中继终端的第一数据链路层地址与第一单播链路对应,第一终端的第一数据链路层与第一单播链路对应。
中继终端确认是否存在中继终端与第一终端之间的第一单播链路的确认结果包括如下两种情况:情况1:中继终端确认存在中继终端与第一终端之间的第一单播链路,情况2:中继终端确认不存在中继终端与第一终端之间的第一单播链路。
下面基于情况1对该步骤进行说明。
若中继终端确认存在中继终端与第一终端之间的第一单播链路,则第一终端存储有第一终端对应的第一单播链路的概述(为了阐述的简便,后续称第一终端对应的第一单播链路的概述为第一单播链路的第一信息)。
其中,第一单播链路的第一信息可如下:
第一终端的应用层标识,第一终端的第一数据链路层地址;
中继终端的应用层标识,中继终端的第一数据链路层地址。
此时,中继终端向第一终端发送的第一消息可包括第一指示信息、第二终端的应用层标识和第二终端的第一地址,第一指示信息能够用于指示第一终端和中继终端之间的第一单播链路。第一消息指示第一终端增加第二终端作为第一单播链路的一个接收方,或者说,第一消息指示第一终端更新第一单播链路的第一信息得到第一单播链路的第二信息,第一单播链路的第二信息至少包括第一单播链路的第一信息、第二终端的应用层标识和第二终 端的第一地址。此时,第一消息也可称为链路修改请求消息。
其中,第一指示信息包括第一单播链路的链路标识;或者,第一指示信息包括中继终端的应用层标识和第一终端的应用层标识;或者,第一指示信息包括中继终端的第一数据链路层地址和第一终端的第一数据链路层地址。作为一种可选的实现方式,在中继终端建立中继终端与第一终端之间的第一单播链路时,中继终端为第一单播链路分配链路标识(简称为第一链路标识),并将该第一链路标识发送给第一终端;在第一终端建立第一终端与中继终端之间的第一单播链路时,第一终端为第一单播链路分配链路标识(简称为第二链路标识),并将该第二链路标识发送给中继终端。因此,第一指示信息中包括的第一单播链路的链路标识可以包括:第一链路层标识或者第二链路标识;第一指示信息中包括的第一单播链路的链路标识还可以包括第一链路层标识和第二链路标识。其中,第一链路标识和第二链路标识可相同可不相同。
在该情况中,中继终端确认存在中继终端与第一终端之间的第一单播链路,第一终端存储的第一单播链路的概述已包括中继终端的第一数据链路层地址。因此,第一消息中可以不包括中继终端的第一数据链路层地址。
下面基于情况2对该步骤进行说明。
若中继终端确认不存在中继终端与第一终端之间的第一单播链路,则说明第一终端未存储有第一单播链路的第一信息。
在第一种方案中:第一消息可包括第一指示信息、中继终端的第一数据链路层地址、第二终端的应用层标识和第二终端的第一地址。第一消息指示第一终端建立第一终端和中继终端的第一单播链路以及增加第二终端作为第一单播链路的一个接收方,或者说,第一消息指示生成第一单播链路的第一信息以及更新第一单播链路的第一信息得到第一单播链路的第二信息,第一单播链路的第二信息包括第一单播链路的第一信息和第二终端的应用层标识和第二终端的第一地址。此时,第一消息也可称为链路建立和修改请求消息。
其中,第一指示信息包括中继终端的应用层标识和第一终端的应用层标识。
在该种方案中,由于中继终端确认不存在中继终端与第一终端之间的第一单播链路,因此,第一消息中需携带中继终端的第一数据链路层地址,以指示第一终端需先建立第一单播链路。
在第二种方案中,在中继终端确认不存在中继终端与第一终端之间的第一单播链路之后,中继终端向第一终端发送第一消息之前,进行第一单播链路的建立,具体包括步骤a1~a2:
a1、中继终端向第一终端发送第二消息,第二消息包括中继终端的应用层标识、中继终端的第一数据链路层地址。
第二消息用于指示第一终端建立第一终端与中继终端之间的第一单播链路,并生成上述的第一单播链路的第一信息。
a2、中继终端接收来自第一终端的第二消息的响应消息,第二消息的响应消息包括第一终端的第一数据链路层地址。
中继终端接收到来自第一终端的第二消息的响应消息后,中继终端生成上述第一单播链路的第三信息,第一单播链路建立完成。
该第二种方案中,第一消息包括的内容、第一消息指示的信息、第一指示信息具体可 参考上述基于情况1的步骤说明,此处不再赘述。
上述方式在中继终端向第一终端发送第一消息之前,由中继终端确认是否存在第一单播链路。在另一种方式中,在中继终端向第一终端发送第一消息之前,中继终端未确认是否存在中继终端与第一终端之间的第一单播链路,此时,第一消息包括的内容、第一消息指示的信息、第一指示信息具体可参考上述基于情况2的步骤说明中的第一种方案,此处不再赘述。
步骤S302、第一终端根据第一消息,更新第一单播链路的第一信息,以获得更新的第一单播链路的第二信息,第一单播链路的第二信息包括第二终端的应用层标识和该第一地址。
本实施例中,第一消息中的第二终端的应用层标识和第二终端的第一地址可称为第一消息中携带的第二终端的信息。
下面对第一终端根据第一消息,更新第一单播链路的第一信息,以获得更新的第一单播链路的第二信息的几种具体实现进行说明。
第一种具体实现:对应于中继终端确认存在中继终端与第一终端之间的第一单播链路的情况1;或者对应于中继终端确认不存在中继终端与第一终端之间的第一单播链路的情况2中的第二种方案:
第一终端接收到第一消息后,根据第一消息中的第一指示信息获取存储的第一单播链路的第一信息,至少添加第一消息中携带的第二终端的信息至第一单播链路的第一信息,获得第一单播链路的第二信息。
第二种具体实现:对应于中继终端确认不存在中继终端与第一终端之间的第一单播链路的情况2中的第一种方案:
第一终端接收到第一消息后,根据第一消息中携带的中继终端的第一数据链路层地址,确定需要先建立第一终端和中继终端之间的第一单播链路,即需分配第一终端的第一数据链路层地址以建立第一终端和中继终端之间的第一单播链路。第一终端根据第一消息中携带的能够用于指示第一单播链路的第一指示信息(第一终端的应用层标识、中继终端的应用层标识)、中继终端的第一数据链路层地址以及第一终端分配的第一终端的第一数据链路层地址,生成第一单播链路的第一信息,以及至少添加第一消息中的第二终端的信息至第一单播链路的第一信息,获得第一单播链路的第二信息;或者,第一终端根据第一终端的应用层标识、中继终端的应用层标识、中继终端的第一数据链路层地址、第一终端分配的第一终端的第一数据链路层地址、第二终端的应用层标识和第二终端的第一地址生成第一单播链路的第二信息。
第三种具体实现:对应于中继终端未确认是否存在中继终端与第一终端之间的第一单播链路的情况:在第一终端根据第一消息更新第一单播链路的第一信息,以获得更新的第一单播链路的第二信息之前,还包括:第一终端根据第一消息,确认第一终端与中继终端之间的第一单播链路是否已建立(即第一终端确定是否存储有发送方应用层标识为第一消息中的第一终端的应用层标识、接收方应用层标识为第一消息中的中继终端的应用层标识的单播链路概述(单播链路的第一信息));若是,则第一终端至少添加第一消息中的第二终端的信息至第一单播链路的第一信息,获得第一单播链路的第二信息;若否,则第一终端分配第一终端的第一数据链路层地址;接着,第一终端根据第一消息中携带的第一终 端的应用层标识、中继终端的应用层标识、中继终端的第一数据链路层地址以及第一终端分配的第一终端的第一数据链路层地址,生成第一单播链路的第一信息,以及至少添加第一消息中的第二终端的信息至第一单播链路的第一信息,获得第一单播链路的第二信息;或者,第一终端根据第一终端的应用层标识、中继终端的应用层标识、中继终端的第一数据链路层地址、第一终端分配的第一终端的第一数据链路层地址、第二终端的应用层标识和第二终端的第一地址生成第一单播链路的第二信息。
下面对第二终端的第一地址的几种情况所对应的第一单播链路的第二信息进行说明。
第一种情况:在第二终端的第一地址包括第二终端的网络层地址时,第一单播链路的第二信息可包括如下的信息:
第一终端的应用层标识,第一终端的第一数据链路层地址;
中继终端的应用层标识,中继终端的第一数据链路层地址;
第二终端的应用层标识,中继终端的第一数据链路层地址、第二终端的网络层地址。
其中,中继终端的第一数据链路层地址与中继终端的应用层标识关联,中继终端的第一数据链路层地址还与第二终端的应用层标识关联。
可以理解的是,该种情况中添加至第一单播链路的第一信息中的信息包括:第二终端的应用层标识,中继终端的第一数据链路层地址、第二终端的网络层地址。
第二种情况:在第二终端的第一地址包括第二终端的第一数据链路层地址时,第一单播链路的第二信息可包括如下的信息:
第一终端的应用层标识,第一终端的第一数据链路层地址;
中继终端的应用层标识,中继终端的第一数据链路层地址;
第二终端的应用层标识,第二终端的第一数据链路层地址。
其中,第二终端的第一数据链路层地址与第二终端的应用层标识关联。可以理解的是,该种情况中添加至第一单播链路的第一信息中的信息包括:第二终端的应用层标识和第二终端的第一数据链路层地址。
第三种情况:在第二终端的第一地址包括第二终端的第二数据链路层地址时,第一单播链路的第二信息可包括如下的信息:
第一终端的应用层标识,第一终端的第一数据链路层地址;
中继终端的应用层标识,中继终端的第一数据链路层地址;
第二终端的应用层标识,第二终端的第二数据链路层地址。
其中,第二终端的第二数据链路层地址与第二终端的应用层标识关联。可以理解的是,该种情况中添加至第一单播链路的第一信息中的信息包括:第二终端的应用层标识和第二终端的第二数据链路层地址。
可选地,在得到第一单播链路的第二信息之后,第一终端还可向中继终端发送第一消息的响应消息;第一消息的响应消息指示第一单播链路的第二信息更新完成,即向中继终端指示第一终端已经获取到第一单播链路的第二信息。
在得到第一单播链路的第二信息之后,第一终端可根据第一单播链路的第二信息向中继终端发送第一数据,第一数据包括第二终端的第一地址,第二终端的第一地址用于指示第一数据的目的接收端为第二终端。
本实施例中在第二终端需要通过中继终端与第一终端通信,而第一终端与中继终端之 间已经建立有单播链路时,不再建立中继终端与第一终端之间新的单播链路(即不再生成新的中继终端与第一终端之间的单播链路的概述),而是将第二终端的信息作为新的接收方信息添加至原有的单播链路概述中,减少了第一终端与中继终端之间需要维护(即通过PC5信令检测链路是否存活)的链路,减少了链路维护的开销。
本实施例中在第二终端需要通过中继终端与第一终端通信,而第一终端与中继终端之间不存在单播链路时,在建立第一终端与中继终端之间的单播链路时,不仅生成第一终端与中继终端之间的单播链路概述,还将第二终端的信息作为新的接收方信息添加至该单播链路概述中,得到更新的单播链路概述。这样无论是中继终端与第一终端之间直接通信,还是中继终端作为中继实现第二终端与第一终端的通信,均可根据该更新的单播链路概述实现,相当于中继终端和第一终端之间的各种通信目的均使用中继终端与第一终端之间建立的同一条单播链路进行通信,减少了第一终端与中继终端之间需要维护的链路,减少了链路维护的开销。
下面通过具体的实施例进行进一步说明。
首先结合图4对第二终端发起中继链路建立过程所对应的通信方法进行说明。
图4为本申请实施例提供的通信方法的流程图二,参见图4,本实施例的方法,包括:
步骤S401、第二终端确定与第一终端之间进行通信的中继终端。
本实施例适用的场景为第二终端需要与第一终端之间进行通信,第二终端确定不能直接发现第一终端后,第二终端通过中继发现流程确定该中继终端作为第一终端和第二终端之间进行通信的中继终端。其中,中继发现流程可参见如上所述的目前的中继链路建立过程中的(1)~(3)中终端设备a确定终端设备c作为中继终端的方法,此处不再赘述。
步骤S402、第二终端向中继终端发送中继路径请求消息。
其中,中继路径请求消息也可以称为中继通信请求消息或非直接通信请求消息。
一种可选的方式中,在第二终端向中继终端发送中继路径请求消息之前,还可包括如下的c1~c4:
c1、第二终端确认第二终端与中继终端之间的第二单播链路是否已经建立,若否,则第二终端向中继终端发送链路建立请求消息,链路建立请求消息中可包括:第二终端的第一数据链路层地址和第二终端的应用层标识。
c2、中继终端接收链路建立请求消息后,建立中继终端与第二终端之间的第二单播链路,即中继终端生成中继终端对应的第二单播链路的概述,中继终端对应的第二单播链路的概述后续称为第二单播链路的第三信息。其中,第二单播链路的第三信息包括如下的信息:
中继终端的应用层标识,中继终端的第二数据链路层地址;
第二终端的应用层标识,第二终端的第一数据链路层地址。
可以理解的是,中继终端的第二数据链路层地址和中继终端的第一数据链路层地址不相同。
c3、中继终端建立中继终端与第二终端之间的第二单播链路后,向第二终端发送链路建立请求消息的响应消息,链路建立请求消息的响应消息指示中继终端已建立与第二终端之间的第二单播链路,链路建立请求消息的响应消息中包括:中继终端的第二数据链路层地址。
c4、第二终端建立第二终端与中继终端之间的第二单播链路,即生成第二终端对应的第二单播链路的概述(后续称第二终端对应的第二单播链路的概述为第二单播链路的第一信息)。
第二单播链路的第一信息包括如下的信息:
第二终端的应用层标识,第二终端的第一数据链路层地址;
中继终端的应用层标识,中继终端的第二数据链路层地址。
通过c1~c4第二终端与中继终端之间的第二单播链路建立完成。
下面对中继路径请求消息进行说明。
若在第二终端向中继终端发送中继路径请求消息之前未确认第二终端与中继终端之间的第二单播链路是否已经建立,则中继路径请求消息中包括第一终端的应用层标识、第二终端的应用层标识、第二终端的第一数据链路层地址。
若在第二终端向中继终端发送中继路径请求消息之前确认了第二终端与中继终端之间的第二单播链路已经建立或者进行了如上的步骤c1~c4:则中继路径请求消息中可包括第一终端的应用层标识和第二终端的应用层标识;可选地,中继路径请求消息中还可包括第二终端的第一数据链路层地址。
步骤S403、中继终端向第一终端发送第一消息;第一消息包括第一指示信息、第二终端的应用层标识和第二终端的第一地址。
中继终端接收中继路径请求消息,接着中继终端向第一终端发送第一消息。
其中,第一指示信息能够用于指示第一终端和中继终端之间的第一单播链路。第一消息具体可以是中继路径请求消息或者中继通信请求消息或者非直接通信请求消息或者链路建立和修改请求消息或者链路修改请求消息。
该步骤的具体实现参照图3所示的实施例中步骤S301中的阐述,此处不再赘述。
可选的,第二终端的第一地址为第二终端的第一数据链路层地址。作为一种可选的实现方式,中继终端根据第一消息确定第二单播链路并获取第二单播链路的第三信息;第三信息中与第二终端的应用层标识相关联的数据链路层地址可以作为第二终端的第一数据链路层地址。作为另一种可选的实现方式,中继终端通过接收S402的中继路径请求消息获知该消息中包括的第二终端的第一数据链路层地址。
可选的,第二终端的第一地址为第二终端的第二数据链路层地址。作为一种可选的实现方式,第二终端的第二数据链路层地址由中继终端分配。
可选的,第二终端的第一地址为第二终端的网络层地址。作为一种可选的实现方式,第二终端的网络层地址由第二终端分配。上述S402的中继路径请求消息中还可包括第二终端的网络层地址,中继终端通过接收该中继路径请求消息获知第二终端的网络层地址。作为另一种可选的实现方式,第二终端的网络层地址由中继终端分配。
步骤S404、第一终端根据第一消息,更新第一单播链路的第一信息,以获得更新的第一单播链路的第二信息。
第一终端接收第一消息,接着第一终端根据第一消息,更新第一单播链路的第一信息,以获得更新的第一单播链路的第二信息。
所述第二信息包括第二终端的应用层标识和第二终端的第一地址。
该步骤的具体实现参照图3所示的实施例中步骤S302中的阐述,此处不再赘述。
步骤S405、第一终端向中继终端发送第一消息的响应消息;第一消息的响应消息指示第一单播链路的第二信息更新完成。
在一种可选的方案中,第一消息的响应消息中可携带第一终端的网络层地址和/或第一终端的第一数据链路层地址。
步骤S406、中继终端向第二终端发送中继路径请求的响应消息;该中继路径请求的响应消息包括第一终端的第一地址。
中继终端接收第一消息的响应消息,接着中继终端向第二终端发送中继路径请求的响应消息。
中继终端接收到第一消息的响应消息之后,确定第一单播链路的第一信息已经被更新得到了第一单播链路的第二信息,接着,中继终端向第二终端发送中继路径请求的响应消息。
若在第二终端向中继终端发送中继路径请求消息之前未确认第二终端与中继终端之间的第二单播链路是否已经建立或者中继路径请求消息中携带了第二终端的第一数据链路层地址,则中继终端向第二终端发送中继路径请求的响应消息之前,还可包括:中继终端确认中继终端与第二终端之间的第二单播链路是否已经建立,若否,则中继终端建立中继终端与第二终端之间的第二单播链路,即中继终端生成上述的第二单播链路的第三信息,相应地,中继路径请求的响应消息中除了需要携带第一终端的第一地址,还需要携带中继终端的第二数据链路层地址;若是,则中继路径请求的响应消息中可不携带中继终端的第二数据链路层地址。
若中继终端接收到的中继路径请求消息中未携带第二终端的第一数据链路层地址,则中继终端可确定中继终端与第二终端之间的第二单播链路已经建立,中继路径请求的响应消息中可不携带中继终端的第二数据链路层地址。
若在第二终端向中继终端发送中继路径请求消息之前未确认第二终端与中继终端之间的第二单播链路是否已经建立且中继终端向第二终端发送中继路径请求的响应消息之前也未确认第二终端与中继终端之间的第二单播链路是否已经建立,则中继路径请求的响应消息中除了需要携带第一终端的第一地址,还需要携带中继终端的第二数据链路层地址。
可选地,中继路径请求的响应消息还可携带第一终端的应用层标识。
可选地,中继路径请求的响应消息还可携带第二指示信息,第二指示信息能够用于指示第二终端与中继终端之间的第二单播链路,第二指示信息可为第二单播链路的标识,还可为第二终端的应用层标识和中继终端的应用层标识,还可为第二终端的第一数据链路层地址和中继终端的第二数据链路层地址。可以理解的是,在中继终端发送中继路径请求的响应消息之前已经确定第二终端与中继终端之间的第二单播链路建立的情况下,第二指示信息可为如上的任意一种,在中继终端发送中继路径请求的响应消息之前中继终端未确定第二终端与中继终端之间的第二单播链路是否已经建立或者确定未建立有第二终端与中继终端之间的第二单播链路,则第二指示信息可为第二终端的应用层标识和中继终端的应用层标识。
第一终端的第一地址包括但不限于如下的几种情况:
第一种情况:第一终端的第一地址包括第一终端的网络层地址。其中,第一终端的网络地址可以是第一终端分配后发送至中继终端的(比如携带在步骤S405中的第一消息的 响应消息中),还可以是中继终端为第一终端分配的。
第二种情况:第一终端的第一地址包括第一终端的第一数据链路层地址。其中,第一终端的第一数据链路层地址可以是第一终端分配后发送至中继终端,以使中继终端建立第一终端与中继终端的第一单播链路的。比如第一终端的第一数据链路层地址携带在步骤S405中的第一消息的响应消息中。
第三种情况:第一终端的第一地址包括第一终端的第二数据链路层地址,第一终端的第二数据链路层地址是中继终端分配的。
综上所述,第一终端的第一地址可以是由第一终端分配的,还可以是由中继终端分配的。
步骤S407、第二终端根据中继路径请求的响应消息,更新第二单播链路的第一信息,得到更新的第二单播链路的第二信息。
第二终端接收中继路径请求的响应消息,第二终端根据中继路径请求的响应消息,更新第二单播链路的第一信息,得到更新的第二单播链路的第二信息
第二单播链路为第二终端与中继终端之间的单播链路。第二单播链路的第二信息包括第一终端的第一地址和第一终端的应用层标识。
对应于中继终端确认存在中继终端与第二终端之间的第一单播链路的情况,第二终端接收到中继路径请求的响应消息后,第二终端根据中继路径请求的响应消息中未携带中继终端的第二数据链路层地址确定第二终端与中继终端之间建立有第二单播链路;接着,第二终端获取存储的第二单播链路的第一信息,以及至少添加第一终端的第一地址和第一终端的应用层标识至第二单播链路的第一信息,获得第二单播链路的第二信息。
对应于中继终端确认不存在中继终端与第二终端之间的第二单播链路时,第二终端接收到中继路径请求的响应消息后,根据中继路径请求的响应消息中携带的中继终端的第二数据链路层地址,确定需分配第二终端的第一数据链路层地址。第二终端根据第二终端的应用层标识、中继终端的应用层标识、中继路径请求的响应消息中携带的中继终端的第二数据链路层地址以及第二终端分配的第二终端的第一数据链路层地址,生成第二单播链路的第一信息,以及至少添加第一终端的第一地址和第一终端的应用层标识至第二单播链路的第一信息,获得第二单播链路的第二信息;或者,第二终端根据第二终端的应用层标识、中继终端的应用层标识、中继路径请求的响应消息后中携带的中继终端的第二数据链路层地址、第二终端分配的第二终端的第一数据链路层地址、第一终端的第一地址和第一终端的应用层标识,生成第二单播链路的第二信息。
对应于中继终端不确认是否存在中继终端与第二终端之间的第二单播链路的情况:在第二终端根据中继路径请求的响应消息,更新第二单播链路的第一信息,得到更新的第二单播链路的第二信息之前,还包括:第二终端根据中继路径请求的响应消息,确认第二终端与中继终端之间的第二单播链路是否已建立。即第二终端确定是否存储有发送方应用层标识为第二终端的应用层标识、接收方应用层标识为中继终端的应用层标识的单播链路概述,即确定是否存在第二单播链路的第一信息。若是,则至少添加第一终端的第一地址和第一终端的应用层标识至第二单播链路的第一信息,获得第二单播链路的第二信息。若否,则由第二终端分配第二终端的第一数据链路层地址,然后第二终端根据第二终端的应用层标识、中继终端的应用层标识、中继路径请求的响应消息中携带的中继终端的第二数据链 路层地址以及第二终端分配的第二终端的第一数据链路层地址生成第二单播链路的第一信息,以及至少添加第一终端的第一地址和第一终端的应用层标识至第二单播链路的第一信息,获得第二单播链路的第二信息;或者,第二终端根据第二终端的应用层标识、中继终端的应用层标识、中继路径请求的响应消息后中携带的中继终端的第二数据链路层地址、第二终端分配的第二终端的第一数据链路层地址、第一终端的第一地址和第一终端的应用层标识,生成第二单播链路的第二信息。
下面对不同情况下的第一终端的第一地址所对应的第二单播链路的第二信息进行说明。
在第一终端的第一地址包括第一终端的网络层地址时,第二单播链路的第二信息可包括如下的信息:
第二终端的应用层标识,第二终端的第一数据链路层地址;
中继终端的应用层标识,中继终端的第二数据链路层地址;
第一终端的应用层标识,中继终端的第二数据链路层地址,第一终端的网络层地址。
可以理解的是,该种情况中添加至第二单播链路的第一信息中的信息包括:第一终端的应用层标识,中继终端的第二数据链路层地址,第一终端的网络层地址。中继终端的第二数据链路层地址与中继终端的应用层标识关联,中继终端的第二数据链路层地址还与第一终端的应用层标识关联。
在第一终端的第一地址包括第一终端的第一数据链路层地址时,第二单播链路的第二信息可包括如下的信息:
第二终端的应用层标识,第二终端的第一数据链路层地址;
中继终端的应用层标识,中继终端的第二数据链路层地址;
第一终端的应用层标识,第一终端的第一数据链路层地址。
可以理解的是,该种情况中添加至第二单播链路的第一信息中的信息包括:第一终端的应用层标识,第一终端的第一数据链路层地址。
在第一终端的第一地址包括第一终端的第二数据链路层地址时,第二单播链路的第二信息可包括如下的信息:
第二终端的应用层标识,第二终端的第一数据链路层地址;
中继终端的应用层标识,中继终端的第二数据链路层地址;
第一终端的应用层标识,第一终端的第二数据链路层地址。
可以理解的是,该种情况中添加至第二单播链路的第一信息中的信息包括:第一终端的应用层标识,第一终端的第二数据链路层地址,第一终端的应用层标识和第一终端的第二数据链路层地址关联。
在第二终端需要向第一终端发送数据时,还可包括如下的步骤S408~步骤S410。
步骤S408、第二终端根据第二单播链路的第二信息,通过第二单播链路向中继终端发送第二数据。
第二数据包括第一终端的第一地址,第一终端的第一地址用于指示第二数据的目的接收端为第一终端。
在第一终端的第一地址包括第一终端的网络层地址时,第二数据还包括:第二终端的第一数据链路层地址、第二终端的网络层地址、中继终端的第二数据链路层地址。
在第一终端的第一地址包括第一终端的第一数据链路层地址时,第二数据还包括:第二终端的第一数据链路层地址。
在第一终端的第一地址包括第一终端的第二数据链路层地址时,第二数据还包括:第二终端的第一数据链路层地址。
步骤S409、中继终端根据第二数据包括的第一终端的第一地址,确定第二数据的目的接收端为第一终端。
中继终端接收第二数据,根据第二数据包括的第一终端的第一地址,确定第二数据的目的接收端为第一终端。
在第一终端的第一地址包括第一终端的网络层地址或者包括第一终端的第二数据链路层地址时,中继终端存储有第一终端的第一地址与第一终端的对应关系,中继终端根据该对应关系,确定第二数据的目的接收端为第一终端。
在第一终端的第一地址包括第一终端的第一数据链路层地址时,中继终端根据第一终端的第一数据链路层地址,确定第二数据的目的接收端为第一终端。
步骤S410、中继终端通过中继终端与第一终端之间的第一单播链路向第一终端发送第二数据。
在第一终端需要向第二终端发送数据时,还可包括如下的步骤S411~步骤S413。
步骤S411、第一终端根据第一单播链路的第二信息,通过第一单播链路向中继终端发送第一数据,第一数据包括第二终端的第一地址,第二终端的第一地址用于指示第一数据的目的接收端为第二终端。
在第二终端的第一地址包括第二终端的网络层地址时,第一数据还包括:第一终端的第一数据链路层地址、第一终端的网络层地址、中继终端的第一数据链路层地址。
在第二终端的第一地址包括第二终端的第一数据链路层地址时,第一数据还包括:第一终端的第一数据链路层地址。
在第二终端的第一地址包括第二终端的第二数据链路层地址时,第一数据还包括:第一终端的第一数据链路层地址。
步骤S412、中继终端根据第一数据包括的第二终端的第一地址,确定第一数据的目的接收端为第二终端。
中继终端接收第一数据,根据第一数据包括的第一终端的第一地址,确定第一数据的目的接收端为第二终端。
在第二终端的第一地址包括第二终端的网络层地址或者包括第二终端的第二数据链路层地址时,中继终端存储有第二终端的第一地址与第二终端的对应关系,中继终端根据该对应关系,确定第一数据的目的接收端为第二终端。
在第二终端的第一地址包括第二终端的第一数据链路层地址时,中继终端根据第二终端的第一数据链路层地址,确定第一数据的目的接收端为第二终端。
步骤S413、中继终端通过中继终端与第二终端之间的第二单播链路向第二终端发送第一数据。
本实施例中的方法可减少终端进行链路维护的开销。
其次,结合图5对中继终端发起中继链路建立过程所对应的通信方法进行说明。
图5为本申请实施例提供的通信方法的流程图三,参见图5,本实施例的方法,包括:
步骤S501、中继终端广播通告消息。
中继终端确定可以与第一终端之间进行直接通信后,中继终端广播通告消息,通告消息指示中继终端可以作为中继以使其它终端与第一终端之间进行通信,通告消息中包括:第一终端的应用层标识。
步骤S502、第二终端向中继终端发送通告消息的响应消息。
第二终端接收到通告消息后,确定需要与第一终端通信时,向中继终端返回通告消息的响应消息。可选的,第二终端还可以在确定需要与第一终端通信且通过直接发现流程无法发现第一终端后再向中继终端返回通告消息的响应消息。可以理解的是,如果第二终端可以通过直接发现流程发现第一终端,则可不向中继终端返回响应消息。
通告消息的响应消息中包括第一终端的应用层标识,第二终端的应用层标识和第二终端的第一数据链路层地址,指示第二终端需要与第一终端进行通信。
步骤S503、中继终端向第一终端发送第一消息;第一消息包括第一指示信息、第二终端的应用层标识和第二终端的第一地址;其中,第一指示信息能够用于指示第一终端和中继终端之间的第一单播链路。
该步骤的具体实现参照图3所示的实施例中步骤S301中的阐述,此处不再赘述。
步骤S504、第一终端根据第一消息,更新第一单播链路的第一信息,以获得更新的第一单播链路的第二信息,所述第二信息包括第二终端的应用层标识和第二终端的第一地址。
该步骤的具体实现参照图3所示的实施例中步骤S302中的阐述,此处不再赘述。
步骤S505、第一终端向中继终端发送第一消息的响应消息;第一消息的响应消息指示第一单播链路的第二信息更新完成。
该步骤的具体实现参照图4所示的实施例中步骤S405中的阐述,此处不再赘述。
步骤S506、中继终端向第二终端发送第三消息,该第三消息包括第一终端的第一地址。
中继终端接收第一消息的响应消息,确定第一单播链路的第一信息已经被更新得到了第一单播链路的第二信息,接着,中继终端向第二终端发送第三消息。
中继终端向第二终端发送第三消息之前,还可包括:中继终端确认第二终端与中继终端之间的第二单播链路是否已经建立,若否,则中继终端建立中继终端与第二终端之间的第二单播链路,即中继终端生成上述的第二单播链路的第三信息,相应地,第三消息中除了需要携带第一终端的第一地址,还需要携带中继终端的第二数据链路层地址;若是,则第三消息中可不携带中继终端的第二数据链路层地址。
若在中继终端向第二终端发送第三消息之前未确认第二终端与中继终端之间的第二单播链路是否已经建立,则第三消息中除了需要携带第一终端的第一地址,还需要携带中继终端的第二数据链路层地址。
可选地,第三消息还可携带第一终端的应用层标识。
可选地,第三消息还可携带第二指示信息,第二指示信息能够用于指示第二终端与中继终端之间的第二单播链路,第二指示信息可为第二单播链路的标识,还可为第二终端的应用层标识和中继终端的应用层标识,还可为第二终端的第一数据链路层地址和中继终端的第二数据链路层地址。可以理解的是,在中继终端发送第三消息之前,已经确定第二终端与中继终端之间的第二单播链路建立的情况下,第二指示信息可为如上的任意一种,在中继终端发送第三消息之前,未确定第二终端与中继终端之间的第二单播链路是否已经建 立或者未建立有第二终端与中继终端之间的第二单播链路,则第二指示信息可为第二终端的应用层标识和中继终端的应用层标识。
其中,第一终端的第一地址同图4所示的实施例中的阐述,此处不再赘述。
步骤S507、第二终端根据第三消息,更新第二单播链路的第一信息,以获得更新的第二单播链路的第二信息,第二单播链路的第二信息包括第一终端的应用层标识和第一终端的第一地址。
第二终端接收第三消息,根据第三消息更新第二单播链路的第一信息,以获得更新的第二单播链路的第二信息。
第二终端根据第三消息,更新第二单播链路的第一信息,以获得更新的第二单播链路的第二信息包括如下的几种具体实现:
第一种具体实现对应于中继终端确认存在中继终端与第二终端之间的第二单播链路的情况:
第二终端接收到第三消息后,第二终端根据第三消息中未携带中继终端的第二数据链路层地址确定存在第二单播链路,根据第二终端的应用层标识和中继终端的应用层标识,获取存储的第二单播链路的第一信息,以及至少添加第一终端的第一地址和第一终端的应用层标识至第二单播链路的第一信息,获得第二单播链路的第二信息。
第二种具体实现对应于中继终端确认不存在中继终端与第二终端之间的第二单播链路的情况:
第二终端接收到第三消息后,根据第三消息后中携带的中继终端的第二数据链路层地址,确定需分配第二终端的第一数据链路层地址,根据第二终端的应用层标识、中继终端的应用层标识、第三消息中携带的中继终端的第二数据链路层地址以及第二终端分配的第二终端的第一数据链路层地址,生成第二单播链路的第一信息,以及至少添加第一终端的第一地址和第一终端的应用层标识至第二单播链路的第一信息,获得第二单播链路的第二信息;或者,根据第二终端的应用层标识、中继终端的应用层标识、第三消息中携带的中继终端的第二数据链路层地址、第二终端分配的第二终端的第一数据链路层地址,第一终端的第一地址和第一终端的应用层标识,生成第二单播链路的第二信息。
第三种具体实现对应于中继终端不确认是否存在中继终端与第二终端之间的第二单播链路的情况:
在第二终端根据第三消息,更新第二单播链路的第一信息,得到更新的第二单播链路的第二信息之前,还包括:第二终端根据第三消息,确认第二终端与中继终端之间的第二单播链路是否已建立。即第二终端根据确定是否存储有发送方应用层标识为第二终端的应用层标识、接收方应用层标识为中继终端的应用层标识的单播链路概述,即确定是否存在第二单播链路的第一信息;若是,则至少添加第一终端的第一地址和第一终端的应用层标识至第二单播链路的第一信息,获得第二单播链路的第二信息;若否,则分配第二终端的第一数据链路层地址,根据第二终端的应用层标识、中继终端的应用层标识、第三消息中携带的中继终端的第二数据链路层地址以及第二终端分配的第二终端的第一数据链路层地址生成第二单播链路的第一信息,以及至少添加第一终端的第一地址和第一终端的应用层标识至第二单播链路的第一信息,获得第二单播链路的第二信息;或者,根据第二终端的应用层标识、中继终端的应用层标识、第三消息中携带的中继终端的第二数据链路层地 址、第二终端分配的第二终端的第一数据链路层地址,第一终端的第一地址和第一终端的应用层标识,生成第二单播链路的第二信息。
第二单播链路的第一信息和第二单播链路的第二信息参照图4所示的实施例中的阐述,此处不再赘述。
步骤S508、第二终端向中继终端发送第三消息的响应消息;第三消息的响应消息指示第二单播链路的第二信息更新完成。
在第二终端需要向第一终端发送数据时,还可包括如下的步骤S509~步骤S511。
步骤S509、第二终端根据第二单播链路的第二信息,通过第二单播链路向中继终端发送第二数据,第二数据包括第一终端的第一地址,第一终端的第一地址用于指示第二数据的目的接收端为第一终端。
步骤S510、中继终端根据第二数据包括的第一终端的第一地址,确定第二数据的目的接收端为第一终端。
步骤S511、中继终端通过中继终端与第一终端之间的第一单播链路向第一终端发送第二数据。
在第一终端需要向第二终端发送数据时,还可包括如下的步骤S512~步骤S514。
步骤S512、第一终端根据第一单播链路的第二信息,通过第一单播链路向中继终端发送第一数据,第一数据包括第二终端的第一地址,第二终端的第一地址用于指示第一数据的目的接收端为第二终端。
步骤S513、中继终端根据第一数据包括的第二终端的第一地址,确定第一数据的目的接收端为第二终端。
步骤S514、中继终端通过中继终端与第二终端之间的第二单播链路向第二终端发送第一数据。
步骤S509~步骤S514可参照图4所示的实施例中的步骤S408~步骤S413中所述,此处不再赘述。
本实施例中的方法可减少终端进行链路维护的开销。
此外,本申请实施例还提供了另外一种减少终端进行链路维护的开销的通信方法。图6为本申请实施例提供的通信方法的流程图四,参见图6,本实施例的方法,包括:
步骤S601、第一目标终端建立第一目标终端与第二目标终端之间的新的单播链路。
本实施例中的第一目标终端可为如上各实施例中的第一终端、第二终端、中继终端。第二目标终端为任一能够与第一目标终端建立单播链路的终端。
第一目标终端在建立第一目标终端与第二目标终端之间的新的单播链路之前,第一目标终端与该第二目标终端之间可以已建立有用于其它通信目的的单播链路。例如,终端A和终端B直接通信属于终端A和终端B之间的一种通信目的,终端A作为中继终端实现终端C和终端B的通信属于终端A和终端B之间的另一种通信目的,终端A作为中继终端实现终端D和终端B的通信属于终端A和终端B之间的又一种通信目的。
第一目标终端建立第一目标终端设备与第二目标终端之间的新的单播链路的过程可以参考图2中步骤5-7的内容;该过程还可以参见目前通用的方法。
步骤S602、第一目标终端设备建立新的单播链路与其它单播链路之间的关联关系, 其它单播链路为第一目标终端与第二目标终端之间的链路中除了该新的单播链路以外的链路。
第一目标终端建立新的单播链路后,可以建立该新的单播链路与上述其它单播链路之间的关联关系。
本实施例中由于两个终端之间的各单播链路建立了关联关系,终端仅需检查两个终端之间的各单播链路中的一个单播链路是否连通即可,因为若两个终端之间的各单播链路中的一个单播链路连通,则说明该两个终端之间可以正常通信,其它的单播链路也就是连通的。因此,本实施例的方法减少终端进行链路维护的开销,且简单易实现。
下面对图6所示的实施例的一种具体实现方式进行说明。
图7为本申请实施例提供的通信方法的流程图五,参见图7,本实施例的方法,包括:
步骤S701、第二终端确定与第一终端之间进行通信的中继终端。
步骤S702、第二终端向中继终端发送中继路径请求消息。
步骤S703、中继终端生成中继终端对应的第二单播链路的概述,第二单播链路为中继终端与第二终端之间的单播链路。
中继终端对应的第二单播链路的概述为上所述的第二单播链路的第三信息。
步骤S704、中继终端向第一终端发送第一单播链路建立请求消息。
步骤S705、第一终端生成第一终端对应的第一单播链路的概述。
第一单播链路为中继终端与第一终端之间的单播链路。
第一终端对应的第一单播链路的概述同如上所述的第一单播链路的第一信息。
上述步骤S701~步骤S705均参照目前通用的方法,此处不再赘述。
步骤S706、第一终端向中继终端发送第一单播链路建立请求消息的响应消息。
步骤S707、中继终端生成中继终端对应的第一单播链路的概述。
通过步骤S704~步骤S707,中继终端与第一终端之间的第一单播链路建立完成。
步骤S708、若第一终端确定第一终端与中继终端之间存在其它单播链路,则建立其它单播链路与第一单播链路之间的关联关系。
第一终端确定第一终端与中继终端之间是否存在其它单播链路,即确定除了第一终端对应的第一单播链路的概述,第一终端中是否存储有发送方应用层标识为第一终端的应用层标识且接收方应用层标识为中继终端的应用层标识的单播链路的概述。若存在,第一终端确定第一终端与中继终端之间存在其它单播链路。
第一终端建立其它单播链路与第一单播链路之间的关联关系,即建立第一终端对应的第一单播链路的概述与第一终端对应的第一终端与中继终端之间的其它单播链路的概述的关联关系。
可以理解的是,步骤S708和步骤S706执行的先后顺序并不限定,步骤S707和步骤S708执行的先后顺序并不限定。
步骤S709、若中继终端确定中继终端与第一终端之间存在其它单播链路,则建立其它单播链路与第一单播链路之间的关联关系。
中继终端生成中继终端对应的第一单播链路的概述后,中继终端确定中继终端与第一终端之间是否存在其它单播链路,即确定除了中继终端对应的第一单播链路的概述,中继终端中是否存储有发送方应用层标识为中继终端的应用层标识且接收方应用层标识 为第一终端的应用层标识的单播链路的概述,若存在,中继终端确定中继终端与第一终端之间存在其它单播链路。
中继终端建立其它单播链路与第一单播链路之间的关联关系,即建立中继终端对应的第一单播链路的概述与中继终端对应的中继终端与第一终端之间的其它单播链路的概述的关联关系。
步骤S710、中继终端向第二终端发送中继路径请求响应消息。
可以理解的是,步骤S709和步骤S710执行的先后顺序并不限定。
步骤S711、第二终端生成第二终端对应的第二单播链路的概述。
至此,中继终端与第二终端之间的第二单播链路建立完成。
步骤S712、若中继终端确定中继终端与第二终端之间存在其它单播链路,则建立其它单播链路与第二单播链路之间的关联关系。
该步骤的具体实现,参照步骤S709中若中继终端确定中继终端与第一终端之间存在其它单播链路,则建立其它单播链路与第一单播链路之间的关联关系的具体实现。
步骤S713、若第二终端确定第二终端与中继终端之间存在其它单播链路,则建立其它单播链路与第二单播链路之间的关联关系。
该步骤的具体实现,参照步骤S708中若第一终端确定第一终端与中继终端之间存在其它单播链路,则建立其它单播链路与第一单播链路之间的关联关系的具体实现,此处不再赘述。
第一终端需要向第二终端发送数据的过程以及第二终端需要向第一终端发送数据的过程参照目前的方法,此处不再赘述。
本实施例的方法减少终端进行链路维护的开销,且简单易实现。
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
以上对本申请涉及的方法进行了说明,下面对本申请实施例涉及的装置进行说明。
图8为本申请实施例提供的一种通信装置的结构示意图。如图8所示,该通信装置可以是第一终端,也可以是第一终端的部件(例如,集成电路,芯片等等)。该通信装置还可以是中继终端,也可以是中继终端(例如,集成电路,芯片等等)。该通信装置还可以是第二终端,也可以是第二终端的部件(例如,集成电路,芯片等等)。该通信装置也可以是其他通信模块,用于实现本申请方法实施例中的方法。该通信装置800可以包括:处理模块802(处理单元)。可选的,还可以包括收发模块801(收发单元)和存储模块803(存储单元)。
在一种可能的设计中,如图8中的一个或者多个模块可能由一个或者多个处理器来实现,或者由一个或者多个处理器和存储器来实现;或者由一个或多个处理器和收发器实现;或者由一个或者多个处理器、存储器和收发器实现,本申请实施例对此不作限定。所述处理器、存储器、收发器可以单独设置,也可以集成。
所述通信装置具备实现本申请实施例描述的第一终端的功能,比如,所述通信装置包括第一终端执行本申请实施例描述的第一终端涉及步骤所对应的模块或单元或手段(means),所述功能或单元或手段(means)可以通过软件实现,或者通过硬件实现,也 可以通过硬件执行相应的软件实现,还可以通过软件和硬件结合的方式实现。详细可进一步参考前述对应方法实施例中的相应描述。
或者所述通信装置具备实现本申请实施例描述的中继终端的功能,比如,所述通信装置包括所述中继终端执行本申请实施例描述的中继终端涉及步骤所对应的模块或单元或手段(means),所述功能或单元或手段(means)可以通过软件实现,或者通过硬件实现,也可以通过硬件执行相应的软件实现,还可以通过软件和硬件结合的方式实现。详细可进一步参考前述对应方法实施例中的相应描述。
或者,所述通信装置具备实现本申请实施例描述的第二终端的功能,比如,所述通信装置包括所述第二终端执行本申请实施例描述的第二终端涉及步骤所对应的模块或单元或手段(means),所述功能或单元或手段(means)可以通过软件实现,或者通过硬件实现,也可以通过硬件执行相应的软件实现,还可以通过软件和硬件结合的方式实现。详细可进一步参考前述对应方法实施例中的相应描述。
可选的,本申请实施例中的通信装置800中各个模块可以用于执行本申请方法实施例中描述的方法。
在第一种可能的设计中,一种通信装置800可包括收发模块801和处理模块802。
收发模块801,用于执行步骤S301、步骤S403、步骤S503中接收来自中继终端的第一消息,所述中继终端为用于所述通信装置和第二终端之间进行通信的中继终端;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能够用于指示所述通信装置和所述中继终端之间的第一单播链路;
处理模块802,用于执行步骤S302、步骤S404、步骤S504中的根据所述第一消息,更新所述第一单播链路的第一信息,以获得更新的所述第一单播链路的第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。
可选地,所述处理模块802,还用于执行步骤S410、步骤S512中的根据所述第一单播链路的第二信息,通过所述第一单播链路控制所述收发模块801执行步骤S410、步骤S512中的向所述中继终端发送第一数据,所述第一数据包括所述第一地址,所述第一地址用于指示所述第一数据的目的接收端为所述第二终端。
可选地,所述收发模块801,还用于执行步骤S405、步骤S505中的向所述中继终端发送第一消息的响应消息;所述响应消息指示所述第二信息更新完成。
可选地,在所述处理模块802根据所述第一消息更新所述第一单播链路的第一信息之前,所述处理模块802还用于执行步骤S302、步骤S404、步骤S504中根据所述第一消息,确认所述第一单播链路已建立。
可选地,所述第一地址由所述第二终端分配;或者,所述第一地址由所述中继终端分配。
其中,第一种可能的设计中的通信装置800可为上述方法实施例中的第一终端或第一终端的部件,相应地,第一种可能的设计中的第二终端可为上述方法实施例终端的第二终端;或者,第一种可能的设计装置中的通信装置800可为上述方法实施例中的第二终端或第二终端的部件,相应地,第一种可能的设计中的第二终端可为上述方法实施例中的第一终端。
在第二种可能的设计中,一种通信装置800可包括收发模块801和处理模块802。
处理模块802,用于执行步骤S301、步骤S403、步骤S503中生成第一消息;所述通信装置为用于第一终端和第二终端之间进行通信的装置;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能够用于指示所述第一终端和所述通信装置之间的第一单播链路;
收发模块801,用于执行步骤S301、步骤S403、步骤S503中向所述第一终端发送所述第一消息。
可选地,所述第一地址包括所述第二终端的网络层地址或者所述第二终端的数据链路层地址。
可选地,所述第一消息还包括:所述通信装置的数据链路层地址;所述通信装置的数据链路层地址与所述通信装置的应用层标识关联。
可选地,所述第一指示信息包括所述第一单播链路的链路标识。
可选地,所述第一指示信息包括所述第一终端的数据链路层地址和所述通信装置的所述数据链路层地址。
可选地,在所述收发模块801发送所述第一消息至第一终端之前,所述处理模块802还用于执行步骤S301、步骤S403、步骤S503中确定所述通信装置与所述第一终端之间建立有所述第一单播链路。
可选地,所述收发模块801还用于执行步骤S406、步骤S506中接收来自所述第一终端的所述第一消息的响应消息;所述响应消息指示所述第一单播链路的第一信息已被更新至第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。
可选地,所述第一地址包括所述第二终端的网络层地址;所述收发模块801还用于执行步骤S412、步骤S513中接收来自所述第一终端的第一数据,所述第一数据包括所述第一终端的数据链路层地址、所述第一终端的网络层地址、所述通信装置的数据链路层地址和所述第二终端的网络层地址;所述处理模块802还用于执行步骤S412、步骤S513中根据所述第二终端的网络层地址,确定所述第一数据的目的接收终端为所述第二终端;所述收发模块801还用于执行步骤S413、步骤S514中向所述第二终端发送所述第一数据。
可选地,所述第一地址包括所述第二终端的数据链路层地址;所述收发模块801还用于执行步骤S412、步骤S513中接收来自所述第一终端的第一数据,所述第一数据包括所述第一终端的数据链路层地址和所述第二终端的数据链路层地址;所述处理模块802还用于执行步骤S412、步骤S513中根据所述第二终端的数据链路层地址,确定所述第一数据的目的终端为所述第二终端;所述收发模块801还用于执行步骤S413、步骤S514中向所述第二终端发送所述第一数据。
其中,在第二种可能的设计中通信装置800可为上述方法实施例中的中继终端或中继终端的部件。第二种可能的设计装置中第一终端可为上述方法实施例中的第一终端,第二终端可为上述方法实施例中的第二终端,或者第二种可能的设计装置中的第一终端可为上述方法实施例中的第二终端,第二终端可为上述方法实施例终端的第一终端。
在第三种可能的设计中,一种通信装置800可包括收发模块801和处理模块802。
所述收发模块801,用于执行步骤S407中接收来自中继终端的中继路径请求消息的响应消息,所述中继终端为用于所述通信装置和第一终端之间进行通信的中继终端;中继路径请求消息的响应消息包括:第一终端的第一地址。
所述处理模块802,用于执行步骤S407中根据所述中继路径请求消息的响应消息,更新第二单播链路的第一信息,以获得更新的所述第二单播链路的第二信息,所述第二单播链路的第二信息包括所述第一终端的应用层标识和所述第一终端的第一地址,所述第二单播链路为所述通信装置和所述中继终端之间的单播链路。
可选地,所述中继路径请求消息的响应消息还包括所述第一终端的应用层标识。
可选地,所述第一终端的第一地址包括所述第一终端的网络层地址;所述第二单播链路的第二信息还包括所述中继终端的数据链路层地址;所述中继终端的数据链路层地址与所述中继终端的应用层标识关联,所述中继终端的所述数据链路层地址还与所述第一终端的应用层标识关联。
可选地,所述第一终端的第一地址包括所述第一终端的数据链路层地址。
可选地,所述中继路径请求消息的响应消息还包括:所述中继终端的所述数据链路层地址。
可选地,所述处理模块802,还用于执行步骤S408中的根据所述第二单播链路的第二信息,通过所述第二单播链路控制所述收发模块801执行步骤S408中的向所述中继终端发送第二数据,所述第二数据包括所述第一地址,所述第一地址用于指示所述第二数据的目的接收端为所述第一终端。
可选地,在所述收发模块801接收来自中继终端的中继路径请求消息的响应消息之前,所述收发模块801还用于执行步骤S402中的向所述中继终端发送所述中继路径请求消息,所述中继路径请求消息包括所述通信装置的应用层标识和所述第一终端的应用层标识。
可选地,所述中继路径请求消息包括所述通信装置的数据链路层地址。
可选地,在所述第二终端接收来自中继终端的中继路径请求消息的响应消息之前,还包括:所述第二终端向所述中继终端发送所述中继路径请求消息,所述中继路径请求消息包括所述第二终端的应用层标识和所述第一终端的应用层标识。
可选地,在所述处理模块802根据所述中继路径请求消息的响应消息更新所述第二单播链路的第一信息之前,所述处理模块802还用于执行步骤S407中的根据所述中继路径请求消息的响应消息,确认所述第二单播链路已建立。
可选地,所述第一终端的第一地址由所述第一终端分配;或者,所述第一终端的第一地址由所述中继终端分配。
其中,在第三种可能的设计中通信装置800可为上述方法实施例中的第二终端或第二终端的部件。
图9为本申请实施例的通信设备的一种实现方式的示意性框图。本实施例的通信设备可以是上述方案实施例中的第一终端或第二终端或中继终端;也可以是支持上述方案实施例中的第一终端或第二终端或中继终端实现上述方法的芯片、芯片系统、或处理器等,还可以是支持实现上述方法的芯片、芯片系统、或处理器等。该通信设备可用于实现上述方法实施例中描述的方法,具体可以参见上述方法实施例中的说明。其中,服务器可为本地服务器或云服务器。
所述通信设备可以包括一个或多个处理器901,所述处理器901也可以称为处理单元,可以实现一定的控制功能。所述处理器901可以是通用处理器或者专用处理器等。例如可以是基带处理器或中央处理器。基带处理器可以用于对通信协议以及通信数据进行处理, 中央处理器可以用于对通信设备(如,基站、基带芯片,终端、终端芯片,DU或CU等)进行控制,执行软件程序,处理软件程序的数据。
在一种可选的设计中,处理器901也可以存有指令和/或数据903,所述指令和/或数据903可以被所述处理器运行,使得所述通信设备执行上述方法实施例中描述的方法。
在另一种可选的设计中,处理器901中可以包括用于实现接收和发送功能的收发单元。例如该收发单元可以是收发电路,或者是接口,或者是接口电路。用于实现接收和发送功能的收发电路、接口或接口电路可以是分开的,也可以集成在一起。上述收发电路、接口或接口电路可以用于代码/数据的读写,或者,上述收发电路、接口或接口电路可以用于信号的传输或传递。
可选的,所述通信设备中可以包括一个或多个存储器902,其上可以存有指令904,所述指令可在所述处理器上被运行,使得所述通信设备执行上述方法实施例中描述的方法。可选的,所述存储器中还可以存储有数据。可选的,处理器中也可以存储指令和/或数据。所述处理器和存储器可以单独设置,也可以集成在一起。例如,上述方法实施例中所描述的对应关系可以存储在存储器中,或者存储在处理器中。
可选的,所述通信设备还可以包括收发器905和/或天线906。所述处理器901可以称为处理单元,对所述通信设备进行控制。所述收发器905可以称为收发单元、收发机、收发电路或者收发器等,用于实现收发功能。
一种可能的设计中,图9中的收发器905可以用于执行上述方法实施例中的步骤S301、步骤S403、步骤S406、步骤S410和步骤S413,图9中的处理器901用于执行上述方法实施例中的步骤S302、S409和步骤S412。
又一种可能的设计中,图9中的收发器905可以用于执行上述方法实施例中的步骤S405和步骤S411;图9中的处理器901用于执行上述方法实施例中的步骤S404。
又一种可能的设计中,图9中的收发器905可以用于执行上述方法实施例中的步骤S402和步骤S408;图9中的处理器901用于执行上述方法实施例中的步骤S401和步骤S407。
又一种可能的设计中,图9中的收发器905可以用于执行上述方法实施例中的S501、步骤S503、步骤S506、步骤S511和步骤S514;图9中的处理器901用于执行上述方法实施例中的步骤S510和步骤S513。
又一种可能的设计中,图9中的收发器905可以用于执行上述方法实施例中的步骤S505和步骤S512;图9中的处理器901用于执行上述方法实施例中的步骤S504。
又一种可能的设计中,图9中的收发器905可以用于执行上述方法实施例中的步骤S502、步骤S508和步骤S509;图9中的处理器901用于执行上述方法实施例中的步骤S507。
又一种可能的设计中,图9中的收发器905可以用于执行上述方法实施例中的步骤S704和步骤S710;图9中的处理器901用于执行上述方法实施例中的步骤S703、步骤S707、步骤S709和步骤S712。
又一种可能的设计中,图9中的收发器905可以用于执行上述方法实施例中的步骤S706;图9中的处理器901用于执行上述方法实施例中的步骤S705和步骤S708。
又一种可能的设计中,图9中的收发器905可以用于执行上述方法实施例中的步骤S702;图9中的处理器901用于执行上述方法实施例中的步骤S701、步骤S711和步骤S713。
又一种可能的设计中,图9中的处理器901用于执行上述方法实施例中的步骤S601 和步骤S602。
本实施例中描述的处理器和收发器可以用各种IC工艺技术来制造,例如互补金属氧化物半导体(complementary metal oxide semiconductor,CMOS)、N型金属氧化物半导体(nMetal-oxide-semiconductor,NMOS)、P型金属氧化物半导体(positive channel metal oxide semiconductor,PMOS)、双极结型晶体管(Bipolar Junction Transistor,BJT)、双极CMOS(BiCMOS)、硅锗(SiGe)、砷化镓(GaAs)等。
应理解,本申请实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
本申请实施例中描述的通信设备的范围并不限于此,而且通信设备的结构可以不受图9的限制。本申请实施例中描述的通信设备可以是独立的设备或者可以是较大设备的一部分。
此外,图9所示的设备还可以是:
(1)独立的集成电路IC,或,芯片系统或子系统;
(2)具有一个或多个IC的集合,可选的,该IC集合也可以包括用于存储数据、指令中的至少一种的存储部件;
(3)可嵌入在其他设备内的模块;
(4)接收机、终端、智能终端、蜂窝电话、无线设备、手持机、移动单元、车载设备、网络设备、云设备、人工智能设备等等。
图10为本申请实施例提供的一种终端设备的结构示意图。为了便于说明,图10仅示出了终端设备的主要部件。如图10所示,终端设备1000包括处理器1001、存储器1002、控制电路1003、天线1004、输入输出装置1005和射频电路(图中未示出)。处理器1001主要用于对通信协议以及通信数据进行处理,以及对整个终端进行控制,执行软件程序,处理软件程序的数据。存储器1002主要用于存储软件程序和数据。射频电路主要用于基 带信号与射频信号的转换以及对射频信号的处理。天线主要用于收发电磁波形式的射频信号。输入输出装置1005,例如触摸屏、显示屏,键盘等主要用于接收用户输入的数据以及对用户输出数据。
当终端设备开机后,处理器1001可以读取存储器1002中的软件程序,解析并执行软件程序的指令,处理软件程序的数据。当需要通过无线发送数据时,处理器1001对待发送的数据进行基带处理后,输出基带信号至射频电路,射频电路将基带信号进行处理后得到射频信号并将射频信号通过天线以电磁波的形式向外发送。当有数据发送到终端设备时,射频电路通过天线接收到射频信号,该射频信号被进一步转换为基带信号,并将基带信号输出至处理器1001,处理器1001将基带信号转换为数据并对该数据进行处理。
为了便于说明,图10仅示出了一个存储器1002和处理器1001。在实际的终端设备中,可以存在多个处理器1001和存储器1002。存储器1002也可以称为存储介质或者存储设备等,本申请实施例对此不做限制。
作为一种可选的实现方式,处理器1001可以包括基带处理器和中央处理器,基带处理器主要用于对通信协议以及通信数据进行处理,中央处理器主要用于对整个终端设备进行控制,执行软件程序,处理软件程序的数据。图10中的处理器1001集成了基带处理器和中央处理器的功能,本领域技术人员可以理解,基带处理器和中央处理器也可以是各自独立的处理器,通过总线等技术互联。本领域技术人员可以理解,终端设备可以包括多个基带处理器以适应不同的网络制式,终端设备可以包括多个中央处理器以增强其处理能力,终端设备的各个部件可以通过各种总线连接。所述基带处理器也可以表述为基带处理电路或者基带处理芯片。所述中央处理器也可以表述为中央处理电路或者中央处理芯片。对通信协议以及通信数据进行处理的功能可以内置在处理器1001中,也可以以软件程序的形式存储在存储单元中,由处理器1001执行软件程序以实现基带处理功能。
在一个例子中,可以将具有收发功能的天线1004和控制电路1003视为终端设备1000的收发单元1006,将具有处理功能的处理器1001视为终端设备1000的处理单元1007。如图10所示,终端设备1000包括收发单元1006和处理单元1007。收发单元也可以称为收发器、收发机、收发装置等。可选的,可以将收发单元1006中用于实现接收功能的器件视为接收单元,将收发单元1006中用于实现发送功能的器件视为发送单元,即收发单元1006包括接收单元和发送单元。示例性的,接收单元也可以称为接收机、接收器、接收电路等,发送单元可以称为发射机、发射器或者发射电路等。可选的,上述接收单元和发送单元可以是集成在一起的一个单元,也可以是各自独立的多个单元。上述接收单元和发送单元可以在一个地理位置,也可以分散在多个地理位置。
本申请实施例还提供一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行上述方法实施例中第一终端对应的方法或第二终端对应的方法或中继终端对应的方法。
在上述实施例使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如, 所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
应理解,说明书通篇中提到的“实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各个实施例未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
还应理解,在本申请中,“当…时”、“若”以及“如果”均指在某种客观情况下终端设备或者服务器会做出相应的处理,并非是限定时间,且也不要求终端设备或者服务器实现时一定要有判断的动作,也不意味着存在其它限定。
本申请中对于使用单数表示的元素旨在用于表示“一个或多个”,而并非表示“一个且仅一个”,除非有特别说明。本申请中,在没有特别说明的情况下,“至少一个”旨在用于表示“一个或者多个”,“多个”旨在用于表示“两个或两个以上”。
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种 关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A可以是单数或者复数,B可以是单数或者复数。
字符“/”一般表示前后关联对象是一种“或”的关系。
本文中术语“……中的至少一个”或“……中的至少一种”,表示所列出的各项的全部或任意组合,例如,“A、B和C中的至少一种”,可以表示:单独存在A,单独存在B,单独存在C,同时存在A和B,同时存在B和C,同时存在A、B和C这六种情况,其中A可以是单数或者复数,B可以是单数或者复数,C可以是单数或者复数。
应理解,在本申请各实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。

Claims (40)

  1. 一种通信方法,其特征在于,包括:
    第一终端接收来自中继终端的第一消息,所述中继终端为用于所述第一终端和第二终端之间进行通信的中继终端;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能够用于指示所述第一终端和所述中继终端之间的第一单播链路;
    所述第一终端根据所述第一消息,更新所述第一单播链路的第一信息,以获得更新的所述第一单播链路的第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    所述第一终端根据所述第一单播链路的第二信息,通过所述第一单播链路向所述中继终端发送第一数据,所述第一数据包括所述第一地址,所述第一地址用于指示所述第一数据的目的接收端为所述第二终端。
  3. 根据权利要求1或2所述的方法,其特征在于,
    所述第一地址包括所述第二终端的网络层地址;
    所述第二信息还包括所述中继终端的数据链路层地址;所述中继终端的所述数据链路层地址与所述中继终端的应用层标识关联,所述中继终端的所述数据链路层地址还与所述第二终端的应用层标识关联。
  4. 根据权利要求1所述的方法,其特征在于,
    所述第一地址包括所述第二终端的数据链路层地址。
  5. 根据权利要求1-4任一所述的方法,其特征在于,所述第一指示信息包括所述第一单播链路的链路标识。
  6. 根据权利要求1-4任一所述的方法,其特征在于,所述第一指示信息包括所述中继终端的所述数据链路层地址和所述第一终端的数据链路层地址。
  7. 根据权利要求6所述的方法,其特征在于,所述第一消息还包括:所述中继终端的所述数据链路层地址。
  8. 根据权利要求1~7任一项所述的方法,其特征在于,还包括:
    所述第一终端向所述中继终端发送第一消息的响应消息;所述响应消息指示所述第二信息更新完成。
  9. 根据权利要求1~8任一所述的方法,其特征在于,所述第一终端根据所述第一消息更新所述第一单播链路的第一信息之前,还包括:所述第一终端根据所述第一消息,确认所述第一单播链路已建立。
  10. 根据权利要求1~9任一所述的方法,其特征在于,
    所述第一地址由所述第二终端分配;或者,所述第一地址由所述中继终端分配。
  11. 一种通信方法,其特征在于,包括:
    中继终端生成第一消息;所述中继终端为用于第一终端和第二终端之间进行通信的中继终端;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能够用于指示所述第一终端和所述中继 终端之间的第一单播链路;
    所述中继终端发送所述第一消息至所述第一终端。
  12. 根据权利要求11所述的方法,其特征在于,所述第一地址包括所述第二终端的网络层地址或者所述第二终端的数据链路层地址。
  13. 根据权利要求11或12所述的方法,其特征在于,所述第一消息还包括:所述中继终端的数据链路层地址;
    所述中继终端的数据链路层地址与所述中继终端的应用层标识关联。
  14. 根据权利要求11-13任一所述的方法,其特征在于,所述第一指示信息包括所述第一单播链路的链路标识。
  15. 根据权利要求11-13任一所述的方法,其特征在于,所述第一指示信息包括所述第一终端的数据链路层地址和所述中继终端的所述数据链路层地址。
  16. 根据权利要求11~15任一所述的方法,其特征在于,在所述中继终端发送所述第一消息至第一终端之前,还包括:
    所述中继终端确定所述中继终端与所述第一终端之间建立有所述第一单播链路。
  17. 根据权利要求11~16任一项所述的方法,其特征在于,还包括:
    所述中继终端接收来自所述第一终端的所述第一消息的响应消息;所述响应消息指示所述第一单播链路的第一信息已被更新至第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。
  18. 根据权利要求12所述的方法,其特征在于,所述第一地址包括所述第二终端的网络层地址,所述方法还包括:
    所述中继终端接收来自所述第一终端的第一数据,所述第一数据包括所述第一终端的数据链路层地址、所述第一终端的网络层地址、所述中继终端的数据链路层地址和所述第二终端的网络层地址;
    所述中继终端根据所述中继终端的数据链路层地址和所述第二终端的网络层地址,确定所述第一数据的目标接收终端为所述第二终端;
    所述中继终端向所述第二终端发送所述第一数据。
  19. 根据权利要求12所述的方法,其特征在于,所述第一地址包括所述第二终端的数据链路层地址,所述方法还包括:
    所述中继终端接收来自所述第一终端的第一数据,所述第一数据包括所述第一终端的数据链路层地址和所述第二终端的数据链路层地址;
    所述中继终端根据所述第二终端的数据链路层地址,确定所述第一数据的目的终端为所述第二终端;
    所述中继终端向所述第二终端发送所述第一数据。
  20. 一种通信装置,其特征在于,包括:
    收发模块,用于接收来自中继终端的第一消息,所述中继终端为用于所述通信装置和第二终端之间进行通信的中继终端;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能用于指示所述通信装置和所述中继终端之间的第一单播链路;
    处理模块,用于根据所述第一消息,更新所述第一单播链路的第一信息,以获得 更新的所述第一单播链路的第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。
  21. 根据权利要求19所述的通信装置,其特征在于,所述处理模块,还用于:
    根据所述第一单播链路的第二信息,通过所述第一单播链路控制所述收发模块向所述中继终端发送第一数据,所述第一数据包括所述第一地址,所述第一地址用于指示所述第一数据的目的接收端为所述第二终端。
  22. 根据权利要求18或19所述的通信装置,其特征在于,
    所述第一地址包括所述第二终端的网络层地址;
    所述第二信息还包括所述中继终端的数据链路层地址;所述中继终端的所述数据链路层地址与所述中继终端的应用层标识关联,所述中继终端的所述数据链路层地址还与所述第二终端的应用层标识关联。
  23. 根据权利要求18所述的通信装置,其特征在于,
    所述第一地址包括所述第二终端的数据链路层地址。
  24. 根据权利要求18-23任一所述的通信装置,其特征在于,所述第一指示信息包括所述第一单播链路的链路标识。
  25. 根据权利要求18-24任一所述的通信装置,其特征在于,所述第一指示信息包括所述中继终端的所述数据链路层地址和所述通信装置的数据链路层地址。
  26. 根据权利要求25所述的通信装置,其特征在于,所述第一消息还包括:所述中继终端的所述数据链路层地址。
  27. 根据权利要求18~26任一项所述的通信装置,其特征在于,所述收发模块,还用于:
    向所述中继终端发送第一消息的响应消息;所述响应消息指示所述第二信息更新完成。
  28. 根据权利要求18~27任一所述的通信装置,其特征在于,在所述处理模块根据所述第一消息更新所述第一单播链路的第一信息之前,所述处理模块还用于:根据所述第一消息,确认所述第一单播链路已建立。
  29. 根据权利要求18~28任一所述的通信装置,其特征在于,
    所述第一地址由所述第二终端分配;或者,所述第一地址由所述中继终端分配。
  30. 一种通信装置,其特征在于,包括:
    处理模块,用于生成第一消息;所述通信装置为用于第一终端和第二终端之间进行通信的装置;所述第一消息包括第一指示信息、所述第二终端的应用层标识和所述第二终端的第一地址;其中,所述第一指示信息能够用于指示所述第一终端和所述通信装置之间的第一单播链路;
    收发模块,用于向所述第一终端发送所述第一消息。
  31. 根据权利要求30所述的通信装置,其特征在于,所述第一地址包括所述第二终端的网络层地址或者所述第二终端的数据链路层地址。
  32. 根据权利要求20或31所述的通信装置,其特征在于,所述第一消息还包括:所述通信装置的数据链路层地址;
    所述通信装置的数据链路层地址与所述通信装置的应用层标识关联。
  33. 根据权利要求30-32任一所述的通信装置,其特征在于,所述第一指示信息包括所述第一单播链路的链路标识。
  34. 根据权利要求30-33任一所述的通信装置,其特征在于,所述第一指示信息包括所述第一终端的数据链路层地址和所述通信装置的所述数据链路层地址。
  35. 根据权利要求30~34任一所述的通信装置,其特征在于,在所述收发模块发送所述第一消息至第一终端之前,所述处理模块还用于:
    确定所述通信装置与所述第一终端之间建立有所述第一单播链路。
  36. 根据权利要求30~35任一项所述的通信装置,其特征在于,所述收发模块还用于:
    接收来自所述第一终端的所述第一消息的响应消息;所述响应消息指示所述第一单播链路的第一信息已被更新至第二信息,所述第二信息包括所述第二终端的应用层标识和所述第一地址。
  37. 根据权利要求31所述的通信装置,其特征在于,所述第一地址包括所述第二终端的网络层地址;
    所述收发模块还用于:接收来自所述第一终端的第一数据,所述第一数据包括所述第一终端的数据链路层地址、所述第一终端的网络层地址、所述通信装置的数据链路层地址和所述第二终端的网络层地址;
    所述处理模块还用于:根据所述第二终端的网络层地址,确定所述第一数据的目的接收终端为所述第二终端;
    所述收发模块还用于:向所述第二终端发送所述第一数据。
  38. 根据权利要求31所述的通信装置,其特征在于,所述第一地址包括所述第二终端的数据链路层地址;
    所述收发模块还用于:接收来自所述第一终端的第一数据,所述第一数据包括所述第一终端的数据链路层地址和所述第二终端的数据链路层地址;
    所述处理模块还用于:根据所述第二终端的数据链路层地址,确定所述第一数据的目的终端为所述第二终端;
    所述收发模块还用于:向所述第二终端发送所述第一数据。
  39. 一种终端,其特征在于,包括:
    至少一个处理器;以及
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-11中任一项所述的方法或者权利要求12-19中任一项所述的方法。
  40. 一种存储有计算机指令的非瞬时计算机可读存储介质,其特征在于,所述计算机指令用于使所述计算机执行权利要求1-11中任一项所述的方法或者权利要求12-19中任一项所述的方法。
PCT/CN2020/070446 2020-01-06 2020-01-06 通信方法和装置 WO2021138764A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN202080091873.1A CN114902800A (zh) 2020-01-06 2020-01-06 通信方法和装置
EP20911441.2A EP4075918A4 (en) 2020-01-06 2020-01-06 METHOD AND COMMUNICATION DEVICE
BR112022013390A BR112022013390A2 (pt) 2020-01-06 2020-01-06 Método e aparelho de comunicação
PCT/CN2020/070446 WO2021138764A1 (zh) 2020-01-06 2020-01-06 通信方法和装置
US17/858,140 US20220338094A1 (en) 2020-01-06 2022-07-06 Communication method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/070446 WO2021138764A1 (zh) 2020-01-06 2020-01-06 通信方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/858,140 Continuation US20220338094A1 (en) 2020-01-06 2022-07-06 Communication method and apparatus

Publications (1)

Publication Number Publication Date
WO2021138764A1 true WO2021138764A1 (zh) 2021-07-15

Family

ID=76787680

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/070446 WO2021138764A1 (zh) 2020-01-06 2020-01-06 通信方法和装置

Country Status (5)

Country Link
US (1) US20220338094A1 (zh)
EP (1) EP4075918A4 (zh)
CN (1) CN114902800A (zh)
BR (1) BR112022013390A2 (zh)
WO (1) WO2021138764A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023087262A1 (zh) * 2021-11-19 2023-05-25 Oppo广东移动通信有限公司 通信方法及通信装置
WO2023173405A1 (zh) * 2022-03-18 2023-09-21 Oppo广东移动通信有限公司 中继通信的方法、发起终端、中继终端和目标终端

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104969619A (zh) * 2013-09-13 2015-10-07 华为技术有限公司 回程链路建立方法、基站、中继节点及系统
WO2016160614A1 (en) * 2015-03-31 2016-10-06 Qualcomm Incorporated Systems, methods, and apparatus for managing a relay connection in a wireless communications network
CN108141864A (zh) * 2015-10-02 2018-06-08 索尼公司 电信设备和方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106416321B (zh) * 2014-11-07 2020-02-14 华为技术有限公司 一种建立连接的方法、设备及系统
US10873895B2 (en) * 2014-12-19 2020-12-22 Samsung Electronics Co., Ltd. Apparatus and method for providing relay selection in device-to-device communication system
US9936530B2 (en) * 2015-03-10 2018-04-03 Intel IP Corporation Systems, methods, and devices for device-to-device relay communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104969619A (zh) * 2013-09-13 2015-10-07 华为技术有限公司 回程链路建立方法、基站、中继节点及系统
WO2016160614A1 (en) * 2015-03-31 2016-10-06 Qualcomm Incorporated Systems, methods, and apparatus for managing a relay connection in a wireless communications network
CN108141864A (zh) * 2015-10-02 2018-06-08 索尼公司 电信设备和方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HUAWEI, HISILICON: "Support for UE Cooperation in NR", 3GPP DRAFT; R1-164379, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. RAN WG1, 27 May 2016 (2016-05-27), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France, pages 1 - 7, XP051089769 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023087262A1 (zh) * 2021-11-19 2023-05-25 Oppo广东移动通信有限公司 通信方法及通信装置
WO2023173405A1 (zh) * 2022-03-18 2023-09-21 Oppo广东移动通信有限公司 中继通信的方法、发起终端、中继终端和目标终端

Also Published As

Publication number Publication date
CN114902800A (zh) 2022-08-12
BR112022013390A2 (pt) 2022-09-13
US20220338094A1 (en) 2022-10-20
EP4075918A1 (en) 2022-10-19
EP4075918A4 (en) 2022-12-28

Similar Documents

Publication Publication Date Title
US20220338094A1 (en) Communication method and apparatus
WO2021196249A1 (zh) Rrc状态设置方法、装置、通信设备及存储介质
WO2019158095A1 (zh) 确定协议数据单元会话服务网元的方法和装置
US20230029714A1 (en) Authorization method, policy control function device, and access and mobility management function device
WO2017113130A1 (zh) 一种资源请求方法、设备、网络侧节点及系统
WO2022036555A1 (zh) 中继传输的方法、中继终端和远端终端
WO2022082754A1 (zh) 一种通信方法及装置
WO2018137579A1 (zh) 通信方法和设备
US9392631B2 (en) Wireless communication apparatus
WO2019201127A1 (zh) 数据传输方法及装置
WO2020259428A1 (zh) 用于传输业务报文的方法和装置
WO2020259430A1 (zh) 用于传输业务报文的方法和装置
US11032790B2 (en) Wireless communications system, control station, and terminal
US20230099586A1 (en) Communication method and related apparatus
CN108174434B (zh) 一种自动切换通信方式的方法、终端及智能设备
WO2022160205A1 (zh) 一种数据传输方法、终端设备和网络设备
WO2022104531A1 (zh) 连接方法及相关装置
WO2021208784A1 (zh) 数据传输方法及通信装置
WO2022160123A1 (zh) 接入方式选择方法、终端设备和网络设备
WO2022155825A1 (zh) 用于建立通信连接的方法、通信设备和网络功能实体
WO2021228127A1 (zh) 数据传输方法和相关设备
WO2023125342A1 (zh) 通信方法、装置及系统
WO2023056852A1 (zh) 一种通信方法、装置及系统
WO2022233011A1 (zh) 建立连接的方法和终端设备
WO2023102783A1 (zh) 能力指示方法、终端设备和网络设备

Legal Events

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

Ref document number: 20911441

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112022013390

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 2020911441

Country of ref document: EP

Effective date: 20220712

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 112022013390

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20220705