Message transmission method and device, terminal and readable storage medium
By carrying specific identification information and encrypting in the message transmission of the U2U relay scenario, the problem that the relay terminal cannot judge the connection between the terminals is solved, and the accurate reception and forwarding of messages is achieved, ensuring the normal operation of the U2U relay scenario.
Patent Information
- Application Number
- CN202311467407.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2025-05-06
AI Technical Summary
In the terminal-to-terminal relay scenario, information security considerations cause the relay terminal to be unable to determine whether the Discoveree End UE is found and the message cannot be forwarded correctly, resulting in the U2U relay scenario being unable to be used normally.
By carrying the first identification information and the second encryption in the message transmission, the first encryption includes the identification information of the first terminal and the second terminal, the second encryption includes the identification information of the relay terminal, and the first identification information is used to identify the terminal and the communication link and other information to ensure that the message can be accurately received and forwarded.
When the IDs of the Discoverer End UE and the Discoveree End UE are encrypted, the relay terminal can forward the message correctly and determine whether the Discoverer End UE finds the target Discoveree End UE, ensuring the normal use of the U2U relay scenario.
Smart Images

Figure CN119946563A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a message transmission method, device, terminal and readable storage medium. Background Art
[0002] In the terminal-to-terminal relay (U2U relay) scenario, for information security considerations, the user information identifier (ID) of the discoverer UE (i.e., 5G discoverer nearby service terminal (Discoverer 5G ProSe End UE or Discoverer End UE)) and the user information ID of the discoverer UE (i.e., 5G discoverer nearby service terminal (Discoveree 5G ProSe End UE or Discoveree End UE)) will be encrypted into an encryption set. The encryption set is transparent to the relay terminal (relayUE), that is, the relay UE transparently transmits the encryption set, and therefore cannot obtain the information in the encryption set, resulting in the relay UE being unable to determine whether the Discoveree End UE that the Discoverer End UE wants to find is found, and unable to determine to which discoverer UE the received response message needs to be forwarded, which in turn causes the U2U relay scenario to be unable to use services normally, that is, the message transmission in the U2U relay process cannot proceed normally. Summary of the invention
[0003] The embodiments of the present application provide a message transmission method, device, terminal and readable storage medium, which can solve the problem that message transmission cannot be carried out normally in the existing U2Urelay process.
[0004] In a first aspect, a message transmission method is provided, comprising:
[0005] The relay terminal receives a first message from the first terminal, where the first message is used by the first terminal to discover the second terminal, and the first message includes a first encryption set;
[0006] The relay terminal sends a second message to the second terminal, where the second message includes at least one of the following:
[0007] first identification information;
[0008] The second encryption set;
[0009] The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify any one of the following:
[0010] the first terminal;
[0011] the second terminal;
[0012] a communication link between the first terminal and the relay terminal;
[0013] A mapping relationship between the first terminal and the second terminal.
[0014] In a second aspect, a message transmission method is provided, comprising:
[0015] The second terminal receives a second message from the relay terminal, where the second message includes at least one of the following:
[0016] first identification information;
[0017] The second encryption set;
[0018] The second encryption set includes the identification information of the relay terminal, the first encryption set includes the identification information of the first terminal and the identification information of the second terminal, and the first identification information is used to identify any one of the following:
[0019] the first terminal;
[0020] the second terminal;
[0021] a communication link between the first terminal and the relay terminal;
[0022] A mapping relationship between the first terminal and the second terminal.
[0023] In a third aspect, a message forwarding device is provided, including:
[0024] A first receiving module, configured for a relay terminal to receive a first message from a first terminal, wherein the first message is used by the first terminal to discover a second terminal, and the first message includes a first encryption set;
[0025] The first sending module is configured to send a second message from the relay terminal to the second terminal, where the second message includes at least one of the following:
[0026] first identification information;
[0027] The second encryption set;
[0028] The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify any one of the following:
[0029] the first terminal;
[0030] the second terminal;
[0031] a communication link between the first terminal and the relay terminal;
[0032] A mapping relationship between the first terminal and the second terminal.
[0033] In a fourth aspect, a message forwarding device is provided, including:
[0034] The second receiving module is configured to receive a second message from the relay terminal at the second terminal, where the second message includes at least one of the following:
[0035] first identification information;
[0036] The second encryption set;
[0037] The second encryption set includes the identification information of the relay terminal, the first encryption set includes the identification information of the first terminal and the identification information of the second terminal, and the first identification information is used to identify any one of the following:
[0038] the first terminal;
[0039] the second terminal;
[0040] a communication link between the first terminal and the relay terminal;
[0041] A mapping relationship between the first terminal and the second terminal.
[0042] In a fifth aspect, a terminal is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect, the second aspect or the third aspect are implemented.
[0043] In a sixth aspect, a terminal is provided, including a processor and a communication interface, wherein:
[0044] In the case where the terminal is a relay terminal:
[0045] The communication interface is used for the relay terminal to receive a first message from a first terminal, the first message is used by the first terminal to discover a second terminal, and the first message includes a first encryption set; the relay terminal sends a second message to the second terminal, and the second message includes at least one of the following:
[0046] first identification information;
[0047] The second encryption set;
[0048] The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify any one of the following:
[0049] the first terminal;
[0050] the second terminal;
[0051] a communication link between the first terminal and the relay terminal;
[0052] A mapping relationship between the first terminal and the second terminal.
[0053] In the case where the terminal is a second terminal:
[0054] The communication interface is used for the second terminal to receive a second message from the relay terminal, where the second message includes at least one of the following:
[0055] first identification information;
[0056] The second encryption set;
[0057] The second encryption set includes the identification information of the relay terminal, the first encryption set includes the identification information of the first terminal and the identification information of the second terminal, and the first identification information is used to identify any one of the following:
[0058] the first terminal;
[0059] the second terminal;
[0060] a communication link between the first terminal and the relay terminal;
[0061] A mapping relationship between the first terminal and the second terminal.
[0062] In a seventh aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect, the second aspect or the third aspect are implemented.
[0063] In an eighth aspect, a wireless communication system is provided, comprising: a first terminal, a relay terminal and a second terminal, wherein the relay terminal can be used to execute the steps of the method described in the first aspect, the second terminal can be used to execute the steps of the method described in the second aspect, and the first terminal can be used to execute the steps of the method described in the third aspect.
[0064] In the ninth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the method described in the first aspect, the second aspect or the third aspect.
[0065] In the tenth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the program / program product is executed by at least one processor to implement the steps of the method described in the first aspect, the second aspect or the third aspect.
[0066] In an embodiment of the present application, when the relay terminal forwards a message, it carries at least one of the first identification information and the second encryption set in the forwarded message, wherein the first encryption set includes the identification information of the first terminal and the identification information of the second terminal, and the second encryption set includes the identification information of the relay terminal, and the first identification information is used to identify any one of the following: the first terminal; the second terminal; the communication link between the first terminal and the relay terminal; the mapping relationship between the first terminal and the second terminal. In this way, when the ID of the Discoverer End UE and the ID of the Discoveree End UE are encrypted, the U2U relay UE can carry additional information (such as the first identification information) or the updated encryption set in the sent message, so that the message can be accurately received by the second terminal, and it can be determined whether the Discoveree End UE that the Discoverer End UE wants to find is found, ensuring the normal use of services in the U2U relay scenario and ensuring the normal transmission of messages in the U2U scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1a is a block diagram of a wireless communication system to which the embodiments of the present application can be applied;
[0068] Figure 1b It is a schematic diagram of the existing U2U relay Discovery process;
[0069] Figure 2 This is one of the flow charts of the message transmission method provided in the embodiment of the present application;
[0070] Figure 3 This is the second flow chart of the message transmission method provided in the embodiment of the present application;
[0071] Figure 4a This is one of the application scenario schematic diagrams provided in the embodiments of the present application;
[0072] Figure 4b This is one of the application scenario schematic diagrams provided in the embodiments of the present application;
[0073] Figure 4c This is one of the application scenario schematic diagrams provided in the embodiments of the present application;
[0074] Figure 5 This is one of the structural schematic diagrams of the message transmission device provided in the embodiment of the present application;
[0075] Figure 6 This is the second structural diagram of the message transmission device provided in the embodiment of the present application;
[0076] Figure 7 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0077] Figure 8 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application. DETAILED DESCRIPTION
[0078] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0079] The terms "first", "second", etc. of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "or" in the present application represents at least one of the connected objects. For example, "A or B" covers three schemes, namely, Scheme 1: including A but not including B; Scheme 2: including B but not including A; Scheme 3: including both A and B. The character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0080] The term "indication" in this application can be a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, operations to be performed, or request results in the sent indication; an indirect indication can be understood as the receiver determining the corresponding information according to the indication sent by the sender, or making a judgment and determining the operation to be performed or the request result according to the judgment result.
[0081] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency Division Multiple Access (SC-FDMA) or other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described technology can be used for the above-mentioned systems and radio technologies as well as other systems and radio technologies. The following description describes a new radio (NR) system for example purposes, and NR terms are used in most of the following descriptions, but these technologies can also be applied to systems other than NR systems, such as 6th Generation (6G) communication systems.
[0082] Figure 1a A block diagram of a wireless communication system applicable to the embodiment of the present application is shown. The wireless communication system includes a first terminal 11, a relay terminal 12 and a second terminal 13. Information exchange between the first terminal 11 and the second terminal 13 is achieved by forwarding by the relay terminal 12.
[0083] Among them, the above-mentioned terminals can be mobile phones, tablet personal computers, laptop computers, notebook computers, personal digital assistants (PDA), handheld computers, netbooks, ultra-mobile personal computers (UMPC), mobile Internet devices (MID), augmented reality (AR), virtual reality (VR) equipment, robots, wearable devices (Wearable Device), flight vehicles, vehicle user equipment (VUE), shipborne equipment, pedestrian terminals (Pedestrian User Equipment, PUE), smart homes (home appliances with wireless communication functions, such as refrigerators, televisions, washing machines or furniture, etc.), game consoles, personal computers (PC), ATMs or self-service machines and other terminal side devices. Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. Among them, the vehicle-mounted device can also be called a vehicle-mounted terminal, a vehicle-mounted controller, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit, etc. It should be noted that the specific type of each terminal is not limited in the embodiments of the present application.
[0084] In order to better understand the technical solution of this application, the following contents are first introduced:
[0085] In the prior art, in the U2U relay scenario, the U2U relay Discovery process based on model B is as follows: Figure 1b As shown, the steps are as follows:
[0086] 1. The Discoverer 5G ProSe End UE (UE-1) sends a 5G ProSe discovery request message (i.e., the UE-to-UE Relay Discovery Solicitation message in the figure). It can be understood that, as shown in FIG1 , the Discoverer 5G ProSe End UE can send a UE-to-UE Relay Discovery Solicitation message to multiple relay UEs (i.e., the 5G ProSe UE-to-UE Relay-1 / -2 / -3 in the figure);
[0087] The UE-to-UE Relay Discovery Solicitation message includes: the type of discovery message (the Type of Discovery Message), the user information ID (User Info ID of Discoverer 5G ProSe End UE) of the Discoverer 5G ProSe End UE itself, the relay service code (RSC), the user information ID (User Info ID of Discoveree5G ProSe End UE) of the Discoveree 5G ProSe End UE (UE-2). The UE-to-UE Relay Discovery Solicitation message is sent based on the source layer 2 ID (Source Layer-2 ID) and the target layer 2 ID (Destination Layer-2 ID).
[0088] 5G ProSe UE-to-UE Relay determines the Destination Layer-2 ID for signaling reception.
[0089] 2. The 5G ProSe UE-to-UE Relay matching the RSC sends a UE-to-UE Relay Discovery Solicitation message; the UE-to-UE Relay Discovery Solicitation message includes: the Type of Discovery Message, User Info ID of Discoverer 5G ProSe End UE, UserInfo ID of UE-to-UE Relay, RSC, User Info ID of Discoveree 5G ProSe End UE, and the UE-to-UE Relay Discovery Solicitation message is sent based on the Source Layer-2 ID and the Destination Layer-2 ID.
[0090] The 5G ProSe End UE determines the Destination Layer-2 ID for signaling reception.
[0091] 3. The Discoveree 5G ProSe End UE matches the value of RSC and the User Info ID of Discoveree5G ProSe End UE, and replies a response message to the 5G ProSe UE-to-UE Relay (i.e. Figure 1b 5GProSe UE-to-UE Relay Discovery Response message); the 5G ProSe UE-to-UE RelayDiscovery Response message contains: the Type of Discovery Message, RSC, User InfoID of Discoverer 5G ProSe End UE, User Info ID of Discoveree 5G ProSe End UE. The 5G ProSe UE-to-UE Relay Discovery Response message is sent based on the Source Layer-2 ID and the Destination Layer-2 ID.
[0092] If the Discoveree 5G ProSe End UE receives multiple 5G ProSe UE-to-UE Relay Discovery Response messages from different 5G ProSe UE-to-UE Relays, it may choose to respond or not respond to the 5G ProSe UE-to-UE Relay (for example, based on the PC5 signal strength of each message received).
[0093] 4.5G ProSe UE-to-UE Relay sends a 5G ProSe UE-to-UE Relay DiscoveryResponse message; the 5G ProSe UE-to-UE Relay Discovery Response message includes: the Type of Discovery Message, RSC, User Info ID of UE-to-UE Relay, User Info IDof Discoveree 5G ProSe End UE, and the 5G ProSe UE-to-UE Relay Discovery Response message is sent based on the Source Layer-2 ID and the Destination Layer-2 ID.
[0094] The following introduces the three types of UE involved in the U2U relay discovery process:
[0095] 1. Discoverer End UE: The UE that sends the ProSe PC5 Discovery message for UE-to-UE relay Discovery solicitation message (hereinafter referred to as solicitation message) is intended to find the Discoveree End UE. Figure 1a The first terminal in.
[0096] 2. Relay UE: The relay UE that forwards the solicitation message to the Discoveree End UE for the Discoverer End UE. Figure 1a The relay terminal in.
[0097] 3. Discoveree End UE: The UE that the Discoverer End UE is looking for. Figure 1bThe second terminal in.
[0098] The entire U2U relay Discovery process can be described as:
[0099] 1. The Discoverer End UE sends a solicitation message to one or more relay UEs (i.e. Figure 1b Step 1) in the above code.
[0100] 2. After receiving the solicitation message from the Discoverer End UE, the relay UE checks the RSC in the message. If it is the RSC it is interested in, it forwards the solicitation message to the Discoverer End UE in order to find the Discoveree End UE that the Discoverer End UE is looking for. (i.e. Figure 1b Step 2)
[0101] 3. After receiving the solicitation message from the relay UE, the Discoveree End UE confirms that the target UE information contained in the message is itself and the RSC is also the RSC it is interested in. Then the Discoveree End UE will reply to the relay UE with a PROSE PC5 DISCOVERY message for UE-to-UE relay Discovery response message (hereinafter referred to as the response message). (i.e. Figure 1b Step 3)
[0102] 4. After receiving the response message from the Discoveree End UE, the relay UE checks whether the RSC in the message is of interest, and checks whether the target UE information in the message is the Discoveree End UE that the Discoverer End UE wants to find in the solicitation message. If both are true, the relay UE replies a solicitation message to the Discoveree End UE. At this time, the Discoverer End UE will think that the Discoveree End UE has been found through the relay UE.
[0103] The existing U2U relay discovery scenario has the following problems:
[0104] Taking UE information security into consideration, for U2U relay Discovery of model B, the User Info ID of Discoverer End UE and Discoveree End UE is included in a protected direct discovery set (direct discovery set) and sent between Discoverer End UE and Discoveree End UE through 5G ProSe UE-to-UE Relay UE. The direct discovery set can be implemented by encrypting security materials. It can be understood that the security materials are pre-configured or pre-defined by the protocol for Discoverer End UE and Discoveree End UE, so that both Discoverer End UE and Discoveree End UE can process the direct discovery set to obtain the information content therein.
[0105] However, direct discovery set is transparent to 5G ProSe UE-to-UE Relay UE. Therefore, when 5G ProSe UE-to-UE Relay UE receives the solicitation message from Discoverer end UE or the response message from Discoveree end UE, it cannot decrypt the User Info ID of the discoverer 5GProSe End UE and User Info ID of the discoveree5G ProSe End UE contained in the direct discovery set. Therefore, it cannot determine whether the Discoveree end UE that Discoverer end UE wants to find has been found, nor can it determine which Discoverer end UE the response message needs to be forwarded to. This will cause the U2Urelay scenario to be unable to use the service normally.
[0106] The message transmission method provided in the embodiment of the present application is described in detail below through some embodiments and their application scenarios in combination with the accompanying drawings.
[0107] See also Figure 2 The embodiment of the present application provides a message transmission method, and the execution subject of the method is a relay terminal. The method includes:
[0108] Step 201: The relay terminal receives a first message from a first terminal, where the first message is used by the first terminal to discover a second terminal, and the first message includes a first encryption set;
[0109] Step 202: The relay terminal sends a second message to the second terminal, where the second message includes at least one of the following:
[0110] (1) first identification information;
[0111] (2) second encryption set;
[0112] Optionally, the relay terminal corresponds to Figure 1a The relay terminal in the communication network may be referred to as 5G ProSe UE-to-UERelayUE, UE-to-UE Relay UE, Relay UE, etc. The embodiment of the present application does not specifically limit the name of the relay terminal in the specific implementation.
[0113] Optionally, the first terminal corresponds to Figure 1a The first terminal in the example may be referred to as Discoverer 5GProSe EndUE, Discoverer End UE, Discoverer UE, UE-1, etc. The embodiment of the present application does not specifically limit the name of the first terminal in the specific implementation.
[0114] Optionally, the second terminal corresponds to Figure 1a The second terminal in the embodiment may be referred to as Discoveree 5GProSe EndUE, Discoveree End UE, Discoveree UE, UE-2, etc. The embodiment of the present application does not specifically limit the name of the first terminal in the specific implementation.
[0115] The first encryption set includes identification information of the first terminal (for example, the User Info ID of Discoverer 5G ProSe End UE) and identification information of the second terminal (for example, the User Info ID of Discoveree 5G ProSe End UE), and the second encryption set includes identification information of the relay terminal (for example, the User Info ID of UE-to-UE Relay), and the first identification information is used to identify at least one of the following:
[0116] (1) a first terminal;
[0117] (2) a second terminal;
[0118] (3) a communication link between the first terminal and the relay terminal;
[0119] (4) A mapping relationship between the first terminal and the second terminal, for example, a mapping relationship between the first terminal L2 ID and the first encryption set.
[0120] In the embodiment of the present application, the first identification information can be used to identify any one of the above items (1) to (4), or can be used to identify any two, any three, or all four of the above items (1) to (4).
[0121] In an embodiment of the present application, when the relay terminal forwards a message, it carries at least one of the first identification information and the second encryption set in the forwarded message, wherein the first encryption set includes the identification information of the first terminal and the identification information of the second terminal, and the second encryption set includes the identification information of the relay terminal, and the first identification information is used to identify any one of the following: the first terminal; the second terminal; the communication link between the first terminal and the relay terminal; the mapping relationship between the first terminal and the second terminal. In this way, when the ID of the Discoverer End UE and the ID of the Discoveree End UE are encrypted, the U2Urelay UE can correctly forward the message based on the additional information (such as the first identification information) carried in the forwarded message, and can determine whether the Discoveree End UE that the Discoverer End UE wants to find is found, thereby ensuring the normal use of services in the U2Urelay scenario.
[0122] In a possible implementation manner, the first identification information includes at least one of the following:
[0123] (1) Layer 2 identification or address information of the first terminal, for example, Layer 2 identification: Layer-2 ID of the discoverer 5G ProSe End UE (UE-1);
[0124] (2) Layer 2 identification or address information of the second terminal, for example, Layer 2 identification: Layer-2 ID of the discoveree 5G ProSe End UE (UE-2);
[0125] The address information includes at least one of the following:
[0126] (a) MAC address;
[0127] (b) IPv4 address;
[0128] (c) IPv6 address;
[0129] (d)Port number.
[0130] (3) a preset first indication parameter, wherein different second terminals correspond to different indication parameters, or different first terminals correspond to different indication parameters;
[0131] (4) Randomly generated values. In some implementations, the randomly generated values can be determined by the relay UE. Because it is a randomly generated value, based on the algorithm of the realy UE, different first terminals correspond to different values, or they may correspond to the same value by chance. In some implementations, the randomly generated values can be determined by the first UE. Because it is a randomly generated value, based on the algorithm of the first UE, different second terminals correspond to different values, or they may correspond to the same value by chance.
[0132] In the embodiment of the present application, the first identification information may include any one of the above items (1) to (4), or may include any two, any three, or all four of the above items (1) to (4).
[0133] The address information includes at least one of the following:
[0134] MAC address;
[0135] IPv4 address;
[0136] IPv6 address;
[0137] Port number.
[0138] In a possible implementation manner, the second encryption set further includes identification information of the first terminal and identification information of the second terminal.
[0139] In an embodiment of the present application, the second encryption set also includes identification information of the first terminal and identification information of the second terminal, that is, the identification information of the first terminal, the identification information of the second terminal and the identification information of the relay terminal can be encrypted together to generate a second encryption set. Specifically, the security material used to encrypt and generate the second encryption set can be the same as the security material used to encrypt and generate the first encryption set, or the security material used to encrypt and generate the second encryption set is pre-configured to the second terminal, so that the second terminal can decrypt the second encryption set through the security material after receiving the second encryption set.
[0140] In a possible implementation manner, after the relay terminal sends the second message to the second terminal, the method further includes:
[0141] (1) The relay terminal receives a third message sent by the second terminal, where the third message includes at least one of the following: first identification information and a third encryption set;
[0142] (2) The relay terminal sends a fourth message to the first terminal based on the third message, where the fourth message is a response message to the first message;
[0143] The third encryption set satisfies any of the following:
[0144] (1) including the first encryption set and identification information of the relay terminal;
[0145] (2) Generated based on the second encryption set.
[0146] In an embodiment of the present application, after the relay terminal sends the second message to the second terminal, it can receive a third message from the second terminal, where the third message is used to respond to whether the second terminal is discovered by the first terminal. The relay terminal then replies with a fourth message to the first terminal based on the third message to inform the first terminal whether the second terminal is discovered.
[0147] In a specific implementation process, if the second message sent by the aforementioned relay terminal contains the first identification information, the third message replied by the second terminal also contains the first identification information, that is, the third encryption set including the first encryption set and the identification information of the relay terminal. In this way, based on the first identification information carried in the message, the relay terminal can know that the second terminal sending the third message is the second terminal requested to be discovered by the first terminal. In this way, the relay terminal can reply to the first terminal to inform the first terminal that the second terminal requested to be discovered has been discovered.
[0148] In another specific implementation process, if the second message sent by the aforementioned relay terminal contains the second encryption set, the third message replied by the second terminal also contains a third encryption set generated based on the second encryption set. In this way, based on the third encryption set carried in the message, the relay terminal can know that the second terminal sending the third message is the second terminal requested to be discovered by the first terminal. In this way, the relay terminal can reply to the first terminal to inform the first terminal that the second terminal requested to be discovered has been discovered.
[0149] In a possible implementation manner, the second message also includes the first encryption set.
[0150] In a possible implementation manner, the first message further includes first identification information.
[0151] In an embodiment of the present application, for the first identification information identifying the second terminal, for example, the specific first identification information is the layer 2 identification of the second terminal, the first identification information can be provided by the first terminal, that is, when the first terminal sends a first message to the relay terminal, the first identification information is carried in the first message.
[0152] In a possible implementation manner, when the third encryption set is generated based on the second encryption set, the third encryption set includes at least one of the following items generated by the second terminal:
[0153] (1) identification information of the first terminal;
[0154] (2) identification information of the second terminal;
[0155] (3) Identification information of the relay terminal.
[0156] In an embodiment of the present application, the second terminal may encrypt at least one of the identification information of the first terminal, the identification information of the second terminal, and the identification information of the relay terminal when generating the third encryption set. Specifically, the security material used to encrypt and generate the third encryption set may be the same as the security material used to encrypt and generate the second encryption set, or the security material used to encrypt and generate the third encryption set may be pre-configured to the relay terminal, so that the relay terminal can decrypt the third encryption set through the security material after receiving the third encryption set.
[0157] For the implementation method in which the identification information of the relay terminal is included in the second encryption set and the third encryption set, it is possible to achieve information security protection for the relay terminal.
[0158] In a possible implementation, before sending the second message to the second terminal, the method further includes:
[0159] The relay terminal obtains a first security material, where the first security material is used to decrypt the first encryption set;
[0160] Accordingly, sending a second message to the second terminal includes:
[0161] The relay terminal sends the second message to the second terminal according to the first security material and the first message.
[0162] In the embodiment of the present application, the relay terminal acquires the first security material in advance. The first security material may specifically be the security material used when generating the first encryption set. Therefore, the first security material can be used to decrypt the first encryption set.
[0163] After the relay terminal obtains the first security material, it obtains the identification information of the first terminal and the identification information of the second terminal in the first encryption set through the first security material, so that the relay terminal can correctly forward the message. Furthermore, the relay terminal can also use the first security material to encrypt the identification information of the relay terminal together with the identification information of the first terminal and the identification information of the second terminal to obtain the second encryption set, thereby realizing information security protection of the relay terminal.
[0164] In a possible implementation manner, the relay terminal sends a fourth message to the first terminal based on the third message, including:
[0165] The relay terminal sends a fourth message to the first terminal according to the first security material and the third message;
[0166] The fourth message includes a fourth encryption set, and the fourth encryption set includes at least any one of the following:
[0167] (1) Identification information of the relay terminal;
[0168] (2) a fifth encryption set generated by the second terminal based on the first encryption set and the relay terminal identifier;
[0169] (3) A sixth encryption set generated by the relay terminal based on the first encryption set and the relay terminal identifier.
[0170] In an embodiment of the present application, when the relay terminal sends the fourth message to the first terminal, it can carry the identification information of the relay terminal. The specific method can be to encrypt the identification information of the relay terminal into a fourth encryption set through the first security material, so that the first terminal side can decrypt the fourth encryption set based on the first security material to obtain the identification information of the relay terminal; or, on the second terminal side, encrypt the first encryption set and the relay terminal identification through the first security material to generate a fifth encryption set, so that after the relay terminal sends the fifth encryption set to the first terminal, the first terminal can decrypt the fifth encryption set based on the first security material to obtain the identification information of the relay terminal; or, on the relay terminal side, encrypt the first encryption set and the relay terminal identification through the first security material to generate a sixth encryption set, so that after the relay terminal sends the sixth encryption set to the first terminal, the first terminal can decrypt the sixth encryption set based on the first security material to obtain the identification information of the relay terminal.
[0171] In a possible implementation manner, the relay terminal obtains the first security material, including:
[0172] The relay terminal obtains the first security material from the proximity service key management function (Proximity Service Key Management Function, PKMF), the fifth generation communication technology proximity service name management function (5G Direct discovery name management function, 5G DDNMF) or the policy and charging function (Policy and Charging Function, PCF). In some implementations, PKMF, 5G DDNMF, PCF may send the first security material based on the request of the relay terminal, or may actively send the first security material to the relay terminal.
[0173] In a possible implementation, when the third message includes the first identification information, the relay terminal sends a fourth message to the first terminal based on the third message, including:
[0174] The relay terminal sends a fourth message to the first terminal according to the first identification information.
[0175] In the embodiment of the present application, the relay terminal determines which first terminal needs to reply to based on the first identification information carried in the third message replied by the second terminal. Specifically, the first identification information may be the first terminal side layer 2 identification.
[0176] In a possible implementation manner, the second message further includes the first indication information, and the fourth message further includes the first indication information;
[0177] The first indication information is used to indicate that the target message is forwarded by the relay terminal, wherein the target message is a message carrying the first indication information.
[0178] In an embodiment of the present application, when the relay terminal sends a second message to the second terminal and sends a fourth message to the first terminal, it can carry indication information in the message to indicate that the message is forwarded by the relay terminal, without carrying the identifier of the relay terminal in the message, thereby achieving information security protection for the relay terminal.
[0179] Optionally, the first indication information may specifically be a 1-bit indication, where a value of 1 indicates that the message is indicated by the relay terminal, and a value of 0 indicates that the message is not indicated by the relay terminal.
[0180] See also Figure 3 , an embodiment of the present application provides a message transmission method, the execution subject of the method is a second terminal, and the method includes:
[0181] Step 301: The second terminal receives a second message from the relay terminal. The second message includes at least one of the following:
[0182] first identification information;
[0183] The second encryption set;
[0184] The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify any one of the following:
[0185] The first terminal;
[0186] Second terminal;
[0187] a communication link between the first terminal and the relay terminal;
[0188] A mapping relationship between the first terminal and the second terminal.
[0189] It should be noted that the second terminal is a device for interactive communication with the relay terminal, and the relevant message transmission and information carried in the message can be understood by referring to the description of the relay terminal side solution, which will not be repeated here.
[0190] In a possible implementation manner, the first identification information includes any one of the following:
[0191] Layer 2 identification or address information of the first terminal;
[0192] Layer 2 identification or address information of the second terminal;
[0193] A preset first indication parameter, wherein different second terminals correspond to different indication parameters, or different first terminals correspond to different indication parameters;
[0194] Randomly generated values;
[0195] The address information includes at least one of the following:
[0196] MAC address;
[0197] IPv4 address;
[0198] IPv6 address;
[0199] Port number.
[0200] In a possible implementation, the method further includes:
[0201] The second terminal sends a third message to the relay terminal based on the second message, where the third message includes at least one of the following: the first identification information and the third encryption set;
[0202] The third encryption set satisfies any of the following:
[0203] including identification information of the first encryption set and the relay terminal;
[0204] Generated based on the second encryption set.
[0205] In a possible implementation manner, when the third encryption set is generated based on the second encryption set, the method further includes:
[0206] The second terminal generates a third encryption set based on the second encryption set;
[0207] The third encryption set includes at least one of the following:
[0208] identification information of the first terminal;
[0209] identification information of the second terminal;
[0210] Relay terminal identification information.
[0211] In a possible implementation manner, the second message also includes the first encryption set.
[0212] In a possible implementation manner, the second message further includes first indication information;
[0213] The first indication information is used to indicate that the target message is forwarded by the relay terminal, wherein the target message is a message carrying the first indication information.
[0214] The technical solution of the present application is described below in conjunction with specific implementation methods:
[0215] Implementation method 1: When forwarding the solicitation message, the relay UE carries the L2 ID of the discoverer end UE, and when replying the response message, the discoveree end UE carries the L2 ID of the discoverer UE (Layer-2 ID of the discoverer 5G ProSe End UE (UE-1)). The execution process is as follows: Figure 4a As shown, the steps are as follows:
[0216] 1. Discoverer 5G ProSe End UE (UE-1) sends a UE-to-UE Relay Discovery Solicitation message. The UE-to-UE Relay Discovery Solicitation message includes: the Type of Discovery Message, User Info ID of Discoverer 5G ProSe End UE, RSC, User Info ID of Discoveree 5GProSe End UE. The UE-to-UE Relay Discovery Solicitation message is sent based on the Source Layer-2 ID and the Destination Layer-2 ID.
[0217] 5G ProSe UE-to-UE Relay determines the Destination Layer-2 ID for signaling reception.
[0218] 2. The 5G ProSe UE-to-UE Relay matching the RSC sends a UE-to-UE Relay Discovery Solicitation message; the UE-to-UE Relay Discovery Solicitation message includes: the Type of Discovery Message, User Info ID of Discoverer 5G ProSe End UE, UserInfo ID of UE-to-UE Relay, Layer-2 ID of the discoverer 5G ProSe End UE (UE-1), RSC, User Info ID of Discoveree 5G ProSe End UE. The UE-to-UE Relay Discovery Solicitation message is sent based on the Source Layer-2 ID and the Destination Layer-2 ID.
[0219] The 5G ProSe End UE determines the Destination Layer-2 ID for signaling reception.
[0220] 3. The Discoveree 5G ProSe End UE matches the value of RSC and the User Info ID of Discoveree5G ProSe End UE, and replies a 5G ProSe UE-to-UE RelayDiscovery Response message to the 5G ProSe UE-to-UE Relay; the 5G ProSe UE-to-UE Relay Discovery Response message includes: the Type of Discovery Message, RSC, User Info ID of Discoverer 5GProSe End UE, Layer-2 ID of the discoverer 5G ProSe End UE (UE-1) received in step 2, User Info ID of Discoveree 5G ProSe End UE, and the 5G ProSe UE-to-UE RelayDiscovery Response message is sent based on the Source Layer-2 ID and the Destination Layer-2 ID.
[0221] If the Discoveree 5G ProSe End UE receives multiple 5G ProSe UE-to-UE Relay Discovery Response messages from different 5G ProSe UE-to-UE Relays, it may choose to respond or not respond to the 5G ProSe UE-to-UE Relay (for example, based on the PC5 signal strength of each message received).
[0222] 4.5G ProSe UE-to-UE Relay sends a 5G ProSe UE-to-UE Relay DiscoveryResponse message; the 5G ProSe UE-to-UE Relay Discovery Response message includes: the Type of Discovery Message, RSC, User Info ID of UE-to-UE Relay, User Info ID of Discoveree 5G ProSe End UE, and the 5G ProSe UE-to-UE Relay Discovery Response message is sent based on the Source Layer-2 ID and the Destination Layer-2 ID, where the Destination Layer-2 ID is based on the Layer-2 ID of the discoverer 5G ProSe End UE (UE-1) received in step 3.
[0223] Implementation method 2: The relay UE obtains security material that can decrypt the direct discovery set. Optionally, the user info ID of the relay UE is encrypted. The execution process is as follows: Figure 4b As shown, the steps are as follows:
[0224] 0.5G ProSe UE-to-UE Relay is configured with security materials;
[0225] 1. The Discoverer 5G ProSe End UE uses security materials related to the 5G ProSe Direct Discovery service to protect a direct discovery set, which contains the User Info ID of the discoverer 5G ProSe End UE and the User Info ID of the discoveree 5G ProSe End UE. Then, the Discoverer 5G ProSe End UE adds the direct discovery set to the Solicitation message and protects the Solicitation message using security materials related to RSC. The Solicitation message is sent to the 5G ProSe UE-to-UE Relay.
[0226] 2. After receiving the 5G ProSe UE-to-UE Relay Discovery Solicitation message from the Discoverer 5G ProSe End UE, the 5G ProSe UE-to-UE Relay processes the received 5G ProSe UE-to-UE Relay Discovery Solicitation message using the security materials associated with the RSC.
[0227] If the verification is successful, the 5G ProSe UE-to-UE Relay obtains the protected direct discovery set from the 5G ProSe UE-to-UE RelayDiscovery Solicitation message and adds the userinfo ID of 5G ProSe UE-to-UE Relay to the direct discovery set. It should be noted that the direct discovery set processed in this way is different from the direct discovery set obtained from the Discoverer 5G ProSe End UE. Figure 4b The directdiscovery set in which user info ID of 5G ProSe UE-to-UE Relay is added is underlined to distinguish it.
[0228] The 5G ProSe UE-to-UE Relay Discovery Solicitation message is protected by RSC-related security materials.
[0229] Then, the 5G ProSe UE-to-UE Relay sends a message to the Discoveree 5G ProSe End UE.
[0230] 3.The Discoveree 5G ProSe End UE processes the received 5G ProSe UE-to-UE Relay Discovery Solicitation message using the security materials related to the RSC.
[0231] If the verification is successful, the Discoveree 5G ProSe End UE obtains the protected direct discovery set from the 5G ProSe UE-to-UE RelayDiscovery Solicitation message and processes the direct discovery set using security materials related to the 5GProSe Direct Discovery service.
[0232] The Discoveree 5G ProSe End UE protects the direct discovery set using security materials related to the 5G ProSe Direct Discovery service. The Discoveree 5G ProSe End UE then adds the direct discovery set to the UE-to-UE Relay Discovery Response message and uses security materials related to the RSC to protect the UE-to-UE Relay Discovery Response message. The Discoveree 5G ProSe End UE replies with a UE-to-UE RelayDiscovery Response message to the 5G ProSe UE-to-UE Relay. Optionally, the Discoveree 5GProSe End UE includes in the direct discovery set the User Info ID of the discoverer 5G ProSe End UE and the User Info ID of the discoveree 5G ProSe End UE, as well as the User Info ID of 5G ProSe UE-to-UE RelayUE.
[0233] 4. After receiving the UE-to-UE Relay Discovery Response message from the Discoveree 5G ProSe End UE, the 5G ProSe UE-to-UE Relay processes the received UE-to-UE Relay Discovery Response message using the security materials related to the RSC.
[0234] If the verification is successful, the 5G ProSe UE-to-UE Relay obtains the protected direct discovery set from the UE-to-UE Relay DiscoveryResponse message and adds the user info ID of 5GProSe UE-to-UE Relay to the direct discovery set.
[0235] The UE-to-UE Relay Discovery Response message is protected by the security materials associated with the RSC. Then, the 5G ProSe UE-to-UE Relay sends the UE-to-UE Relay Discovery Response message to the Discoverer 5G ProSe End UE.
[0236] After receiving the UE-to-UE Relay Discovery Response message from the 5G ProSe UE-to-UE Relay, the Discoverer 5G ProSe End UE processes the received UE-to-UE Relay Discovery Response message using the security materials related to the RSC.
[0237] If the verification is successful, the Discoverer 5G ProSe End UE obtains the protected direct discovery set from the UE-to-UE Relay DiscoveryResponse message and processes the direct discovery set using security materials related to the 5G ProSe DirectDiscovery service.
[0238] Implementation method 3: further enhancement in combination with implementation method 1 or implementation method 2: the relay UE does not carry the user info ID of the relay UE in step 2 and step 4, but carries the relay indication instead, or encrypts the user info ID of the relay UE.
[0239] Execution process such as Figure 4c As shown, the steps are as follows:
[0240] 1. The Discoverer 5G ProSe End UE uses security materials related to the 5G ProSe Direct Discovery service to protect a direct discovery set, which contains the User Info ID of the discoverer 5G ProSe End UE and the User Info ID of the discoveree 5G ProSe End UE. Then, the Discoverer 5G ProSe End UE adds the direct discovery set to the Solicitation message and protects the Solicitation message using security materials related to RSC. The Solicitation message is sent to the 5G ProSe UE-to-UE Relay.
[0241] 2. After receiving the 5G ProSe UE-to-UE Relay Discovery Solicitation message from the Discoverer 5G ProSe End UE, the 5G ProSe UE-to-UE Relay processes the received 5G ProSe UE-to-UE Relay Discovery Solicitation message using the security materials associated with the RSC.
[0242] Case 1: If the verification is successful, the 5G ProSe UE-to-UE Relay modifies the 5G ProSe UE-to-UE RelayDiscovery Solicitation message to add a relay indication, which is used to indicate that the UE-to-UE Relay Discovery Solicitation message is sent from the 5G ProSe UE-to-UE Relay.
[0243] Case 2: If the verification is successful, the 5G ProSe UE-to-UE Relay modifies the 5G ProSe UE-to-UE RelayDiscovery Solicitation message to add a direct discovery set #2 using security materials, where the direct discovery set #2 contains the user info ID of the 5G ProSe UE-to-UE Relay. Optionally, the security materials are related to the 5G ProSe Direct Discovery service or RSC.
[0244] The 5G ProSe UE-to-UE Relay Discovery Solicitation message is protected by RSC-related security materials.
[0245] Then, the 5G ProSe UE-to-UE Relay sends a message to the Discoveree 5G ProSe End UE.
[0246] 3.The Discoveree 5G ProSe End UE processes the received 5G ProSe UE-to-UE Relay Discovery Solicitation message using the security materials related to the RSC.
[0247] If the verification is successful, the Discoveree 5G ProSe End UE obtains the protected direct discovery set from the 5G ProSe UE-to-UE RelayDiscovery Solicitation message and processes the direct discovery set using security materials related to the 5GProSe Direct Discovery service.
[0248] The Discoveree 5G ProSe End UE protects the direct discovery set using security materials related to the 5G ProSe Direct Discovery service. The Discoveree 5G ProSe End UE then adds the direct discovery set to the UE-to-UE Relay Discovery Response message and protects the UE-to-UE Relay Discovery Response message using security materials related to RSC. The Discoveree 5G ProSe End UE replies with a UE-to-UE RelayDiscovery Response message to the 5G ProSe UE-to-UE Relay.
[0249] 4. After receiving the UE-to-UE Relay Discovery Response message from the Discoveree 5G ProSe End UE, the 5G ProSe UE-to-UE Relay processes the received UE-to-UE Relay Discovery Response message using the security materials related to the RSC.
[0250] Case 1: If the verification is successful, the 5G ProSe UE-to-UE Relay modifies the UE-to-UE Relay Discovery Response message to add a relay indication, which is used to indicate that the UE-to-UE Relay Discovery Response message is sent from the 5G ProSe UE-to-UE Relay.
[0251] Case 2: If the verification is successful, the 5G ProSe UE-to-UE Relay modifies the UE-to-UE RelayDiscovery Response message to add a direct discovery set #2 using security materials, which includes the user info ID of the 5G ProSe UE-to-UE Relay. Optionally, the security materials are related to the 5G ProSe Direct Discovery service or RSC.
[0252] The UE-to-UE Relay Discovery Response message is protected by the security materials associated with the RSC. Then, the 5G ProSe UE-to-UE Relay sends the UE-to-UE Relay Discovery Response message to the Discoverer 5G ProSe End UE.
[0253] After receiving the UE-to-UE Relay Discovery Response message from the 5G ProSe UE-to-UE Relay, the Discoverer 5G ProSe End UE processes the received UE-to-UE Relay Discovery Response message using the security materials related to the RSC.
[0254] If the verification is successful, the Discoverer 5G ProSe End UE obtains the protected direct discovery set from the UE-to-UE Relay DiscoveryResponse message and processes the direct discovery set using security materials related to the 5G ProSe DirectDiscovery service.
[0255] The message method provided in the embodiment of the present application can be executed by a message device. In the embodiment of the present application, the message device provided in the embodiment of the present application is described by taking the execution of the message method by a message device as an example.
[0256] See also Figure 5The embodiment of the present application provides a message device, which can be applied to a relay terminal, and the device includes:
[0257] A first receiving module 501 is configured for a relay terminal to receive a first message from a first terminal, where the first message is used by the first terminal to discover a second terminal, and the first message includes a first encryption set;
[0258] The first sending module 501 is configured for the relay terminal to send a second message to the second terminal, where the second message includes at least one of the following:
[0259] first identification information;
[0260] The second encryption set;
[0261] The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify at least one (or any one) of the following:
[0262] the first terminal;
[0263] the second terminal;
[0264] a communication link between the first terminal and the relay terminal;
[0265] A mapping relationship between the first terminal and the second terminal.
[0266] Optionally, the first identification information includes at least one (or any one) of the following:
[0267] Layer 2 identification or address information of the first terminal;
[0268] Layer 2 identification or address information of the second terminal;
[0269] A preset first indication parameter, wherein different second terminals correspond to different indication parameters, or different first terminals correspond to different indication parameters;
[0270] Randomly generated values;
[0271] The address information includes at least one of the following:
[0272] MAC address;
[0273] IPv4 address;
[0274] IPv6 address;
[0275] Port number.
[0276] Optionally, the second encryption set also includes identification information of the first terminal and identification information of the second terminal.
[0277] Optionally, the device further comprises:
[0278] A third receiving module, configured to receive, by the relay terminal, a third message sent by the second terminal after the relay terminal sends the second message to the second terminal, wherein the third message includes at least one of the following: the first identification information and a third encryption set;
[0279] A second sending module, configured for the relay terminal to send a fourth message to the first terminal based on the third message, where the fourth message is a response message to the first message;
[0280] The third encryption set satisfies any one of the following:
[0281] including the first encryption set and identification information of the relay terminal;
[0282] Generated based on the second encryption set.
[0283] Optionally, the second message also includes the first encryption set.
[0284] Optionally, the first message also includes the first identification information.
[0285] Optionally, when the third encryption set is generated based on the second encryption set, the third encryption set includes at least one of the following items generated by the second terminal:
[0286] identification information of the first terminal;
[0287] identification information of the second terminal;
[0288] The identification information of the relay terminal.
[0289] Optionally, the device further comprises:
[0290] an acquisition module, configured to, before sending the second message to the second terminal, enable the relay terminal to acquire a first security material, where the first security material is used to decrypt the first encryption set;
[0291] The first sending module is specifically used for:
[0292] The relay terminal sends the second message to the second terminal according to the first security material and the first message.
[0293] Optionally, the second sending module is specifically configured to:
[0294] The relay terminal sends the fourth message to the first terminal according to the first security material and the third message;
[0295] The fourth message includes a fourth encryption set, and the fourth encryption set includes at least any one of the following:
[0296] identification information of the relay terminal;
[0297] A fifth encryption set generated by the second terminal based on the first encryption set and the relay terminal identifier;
[0298] The relay terminal generates a sixth encryption set based on the first encryption set and the relay terminal identifier.
[0299] Optionally, when the third message includes the first identification information, the second sending module is specifically configured to:
[0300] The relay terminal sends a fourth message to the first terminal according to the first identification information.
[0301] Optionally, the second message further includes first indication information;
[0302] The fourth message also includes first indication information;
[0303] The first indication information is used to indicate that a target message is forwarded by a relay terminal, wherein the target message is a message that carries the first indication information.
[0304] Optionally, the acquisition module is specifically used to:
[0305] The relay terminal obtains the first security material from PKMF, 5G DDNMF or PCF.
[0306] See also Figure 6 , an embodiment of the present application provides a message device, which can be applied to a second terminal, and the device includes:
[0307] The second receiving module 601 is configured for a second terminal to receive a second message from a relay terminal, where the second message includes at least one of the following:
[0308] first identification information;
[0309] The second encryption set;
[0310] The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify at least one (or any one) of the following:
[0311] the first terminal;
[0312] the second terminal;
[0313] a communication link between the first terminal and the relay terminal;
[0314] A mapping relationship between the first terminal and the second terminal.
[0315] Optionally, the first identification information includes at least one (or any one) of the following:
[0316] Layer 2 identification or address information of the first terminal;
[0317] Layer 2 identification or address information of the second terminal;
[0318] A preset first indication parameter, wherein different second terminals correspond to different indication parameters, or different first terminals correspond to different indication parameters;
[0319] Randomly generated values;
[0320] The address information includes at least one of the following:
[0321] MAC address;
[0322] IPv4 address;
[0323] IPv6 address;
[0324] Port number.
[0325] Optionally, the device further comprises:
[0326] A third sending module, configured for the second terminal to send a third message to the relay terminal based on the second message, wherein the third message includes at least one of the following: the first identification information and a third encryption set;
[0327] The third encryption set satisfies any one of the following:
[0328] including the first encryption set and identification information of the relay terminal;
[0329] Generated based on the second encryption set.
[0330] Optionally, the device further comprises:
[0331] A generating module, configured to generate, by the second terminal, a third encryption set according to the second encryption set when the third encryption set is generated based on the second encryption set;
[0332] The third encryption set includes at least one of the following:
[0333] identification information of the first terminal;
[0334] identification information of the second terminal;
[0335] The identification information of the relay terminal.
[0336] Optionally, the second message also includes the first encryption set.
[0337] Optionally, the second message further includes first indication information;
[0338] The first indication information is used to indicate that a target message is forwarded by a relay terminal, wherein the target message is a message that carries the first indication information.
[0339] The message device in the embodiment of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or can be other devices other than a terminal. Exemplarily, the terminal can include but is not limited to the types of the terminal 11 listed above, and other devices can be servers, network attached storage (NAS), etc., which are not specifically limited in the embodiment of the present application.
[0340] The message device provided in the embodiment of the present application can realize the Figure 4c The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0341] like Figure 7 As shown, the embodiment of the present application further provides a communication device 700, including a processor 701 and a memory 702, and the memory 702 stores a program or instruction that can be run on the processor 701. For example, when the communication device 700 is a terminal, the program or instruction is executed by the processor 701 to implement the various steps of the above method embodiment, and can achieve the same technical effect. When the communication device 700 is a network side device, the program or instruction is executed by the processor 701 to implement the various steps of the above method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0342] The embodiment of the present application also provides a terminal, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps in the method embodiment. The terminal embodiment corresponds to the above-mentioned terminal side method embodiment, and each implementation process and implementation method of the above-mentioned method embodiment can be applied to the terminal embodiment and can achieve the same technical effect. Specifically, Figure 8 A schematic diagram of the hardware structure of a terminal for implementing an embodiment of the present application.
[0343] The terminal 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809 and at least some of the components of a processor 810.
[0344] Those skilled in the art will appreciate that the terminal 800 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The terminal structure shown in the figure does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0345] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0346] In the embodiment of the present application, after receiving downlink data from the network side device, the radio frequency unit 801 can transmit the data to the processor 810 for processing; in addition, the radio frequency unit 801 can send uplink data to the network side device. Generally, the radio frequency unit 801 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
[0347] The memory 809 can be used to store software programs or instructions and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 may include a volatile memory or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0348] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.
[0349] When terminal 800 is a relay terminal:
[0350] A radio frequency unit 801 is configured to receive, by a relay terminal, a first message from a first terminal, where the first message is used by the first terminal to discover a second terminal, and the first message includes a first encryption set;
[0351] The radio frequency unit 801 is configured to send a second message from the relay terminal to the second terminal, where the second message includes at least one of the following:
[0352] first identification information;
[0353] The second encryption set;
[0354] The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify at least one (or any one) of the following:
[0355] the first terminal;
[0356] the second terminal;
[0357] a communication link between the first terminal and the relay terminal;
[0358] A mapping relationship between the first terminal and the second terminal.
[0359] Optionally, the first identification information includes at least one (or any one) of the following:
[0360] Layer 2 identification or address information of the first terminal;
[0361] Layer 2 identification or address information of the second terminal;
[0362] A preset first indication parameter, wherein different second terminals correspond to different indication parameters, or different first terminals correspond to different indication parameters;
[0363] Randomly generated values;
[0364] The address information includes at least one of the following:
[0365] MAC address;
[0366] IPv4 address;
[0367] IPv6 address;
[0368] Port number.
[0369] Optionally, the second encryption set also includes identification information of the first terminal and identification information of the second terminal.
[0370] Optionally, the radio frequency unit 801 is configured to, after the relay terminal sends the second message to the second terminal, receive by the relay terminal a third message sent by the second terminal, where the third message includes at least one of the following: the first identification information and a third encryption set;
[0371] The radio frequency unit 801 is configured for the relay terminal to send a fourth message to the first terminal based on the third message, where the fourth message is a response message to the first message;
[0372] The third encryption set satisfies any one of the following:
[0373] including the first encryption set and identification information of the relay terminal;
[0374] Generated based on the second encryption set.
[0375] Optionally, the second message also includes the first encryption set.
[0376] Optionally, the first message also includes the first identification information.
[0377] Optionally, when the third encryption set is generated based on the second encryption set, the third encryption set includes at least one of the following items generated by the second terminal:
[0378] identification information of the first terminal;
[0379] identification information of the second terminal;
[0380] The identification information of the relay terminal.
[0381] Optionally, the radio frequency unit 801 is configured to, before sending the second message to the second terminal, enable the relay terminal to obtain a first security material, where the first security material is used to decrypt the first encryption set;
[0382] The radio frequency unit 801 is specifically used for:
[0383] The relay terminal sends the second message to the second terminal according to the first security material and the first message.
[0384] Optionally, the radio frequency unit 801 is specifically configured to:
[0385] The relay terminal sends the fourth message to the first terminal according to the first security material and the third message;
[0386] The fourth message includes a fourth encryption set, and the fourth encryption set includes at least any one of the following:
[0387] identification information of the relay terminal;
[0388] A fifth encryption set generated by the second terminal based on the first encryption set and the relay terminal identifier;
[0389] The relay terminal generates a sixth encryption set based on the first encryption set and the relay terminal identifier.
[0390] Optionally, when the third message includes the first identification information, the radio frequency unit 801 is specifically configured to:
[0391] The relay terminal sends a fourth message to the first terminal according to the first identification information.
[0392] Optionally, the second message further includes first indication information;
[0393] The fourth message also includes first indication information;
[0394] The first indication information is used to indicate that a target message is forwarded by a relay terminal, wherein the target message is a message that carries the first indication information.
[0395] Optionally, the radio frequency unit 801 is specifically configured to:
[0396] The relay terminal obtains the first security material from PKMF, 5G DDNMF or PCF.
[0397] When terminal 800 is the second terminal:
[0398] The radio frequency unit 801 is configured to receive, at a second terminal, a second message from a relay terminal, where the second message includes at least one of the following:
[0399] first identification information;
[0400] The second encryption set;
[0401] The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify at least one (or any one) of the following:
[0402] the first terminal;
[0403] the second terminal;
[0404] a communication link between the first terminal and the relay terminal;
[0405] A mapping relationship between the first terminal and the second terminal.
[0406] Optionally, the first identification information includes at least one (or any one) of the following:
[0407] Layer 2 identification or address information of the first terminal;
[0408] Layer 2 identification or address information of the second terminal;
[0409] A preset first indication parameter, wherein different second terminals correspond to different indication parameters, or different first terminals correspond to different indication parameters;
[0410] Randomly generated values;
[0411] The address information includes at least one of the following:
[0412] MAC address;
[0413] IPv4 address;
[0414] IPv6 address;
[0415] Port number.
[0416] Optionally, the radio frequency unit 801 is configured for the second terminal to send a third message to the relay terminal based on the second message, where the third message includes at least one of the following: the first identification information and a third encryption set;
[0417] The third encryption set satisfies any one of the following:
[0418] including the first encryption set and identification information of the relay terminal;
[0419] Generated based on the second encryption set.
[0420] Optionally, the processor 810 is configured to, when the third encryption set is generated based on the second encryption set, generate, by the second terminal, a third encryption set according to the second encryption set;
[0421] The third encryption set includes at least one of the following:
[0422] identification information of the first terminal;
[0423] identification information of the second terminal;
[0424] The identification information of the relay terminal.
[0425] Optionally, the second message also includes the first encryption set.
[0426] Optionally, the second message further includes first indication information;
[0427] The first indication information is used to indicate that a target message is forwarded by a relay terminal, wherein the target message is a message that carries the first indication information.
[0428] It can be understood that the implementation process of each implementation method mentioned in this embodiment can refer to the relevant description of the method embodiment and achieve the same or corresponding technical effect. To avoid repetition, it will not be repeated here.
[0429] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0430] The processor is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk. In some examples, the readable storage medium may be a non-transient readable storage medium.
[0431] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0432] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0433] The embodiments of the present application further provide a computer program / program product, which is stored in a storage medium and is executed by at least one processor to implement the various processes of the above-mentioned method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0434] An embodiment of the present application also provides a wireless communication system, including: a first terminal, a relay terminal and a second terminal, wherein the first terminal can be used to execute the steps of the first terminal side method as described above, and the relay terminal can be used to execute the steps of the relay terminal side method as described above.
[0435] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0436] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general hardware platform, and of course, can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, disk, CD, etc.), including several instructions to enable a terminal or a network-side device to execute the methods described in each embodiment of the present application.
[0437] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of the present application and the scope of protection of the claims, and these implementation methods are all within the protection of the present application.
Claims
1. A message transmission method, characterized in that: include: The relay terminal receives a first message from the first terminal, where the first message is used by the first terminal to discover the second terminal, and the first message includes a first encryption set; The relay terminal sends a second message to the second terminal, where the second message includes at least one of the following: first identification information; The second encryption set; The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify any one of the following: the first terminal; the second terminal; a communication link between the first terminal and the relay terminal; A mapping relationship between the first terminal and the second terminal.
2. The method according to claim 1, characterized in that The first identification information includes any one of the following: Layer 2 identification or address information of the first terminal; Layer 2 identification or address information of the second terminal; A preset first indication parameter, wherein different second terminals correspond to different indication parameters, or different first terminals correspond to different indication parameters; Randomly generated values; The address information includes at least one of the following: MAC address; IPv4 address; IPv6 address; Port number.
3. The method according to claim 1 or 2, characterized in that: The second encryption set also includes identification information of the first terminal and identification information of the second terminal.
4. The method according to any one of claims 1 to 3, characterized in that: After the relay terminal sends the second message to the second terminal, the method further includes: The relay terminal receives a third message sent by the second terminal, where the third message includes at least one of the following: the first identification information and a third encryption set; The relay terminal sends a fourth message to the first terminal based on the third message, where the fourth message is a response message to the first message; The third encryption set satisfies any one of the following: including the first encryption set and identification information of the relay terminal; Generated based on the second encryption set.
5. The method according to any one of claims 1 to 3, characterized in that: The first message also includes the first identification information.
6. The method according to any one of claims 1 to 3, characterized in that: The second message also includes the first encryption set.
7. The method according to claim 4, characterized in that In the case where the third encryption set is generated based on the second encryption set, the third encryption set includes at least one of the following items generated by the second terminal: identification information of the first terminal; identification information of the second terminal; The identification information of the relay terminal.
8. The method according to claim 4, characterized in that Before sending the second message to the second terminal, the method further includes: The relay terminal obtains a first security material, where the first security material is used to decrypt the first encryption set; The sending the second message to the second terminal includes: The relay terminal sends the second message to the second terminal according to the first security material and the first message.
9. The method according to claim 8, characterized in that The relay terminal sending a fourth message to the first terminal based on the third message includes: The relay terminal sends the fourth message to the first terminal according to the first security material and the third message; The fourth message includes a fourth encryption set, and the fourth encryption set includes at least any one of the following: identification information of the relay terminal; A fifth encryption set generated by the second terminal based on the first encryption set and the relay terminal identifier; The relay terminal generates a sixth encryption set based on the first encryption set and the relay terminal identifier.
10. The method according to claim 4, characterized in that In a case where the third message includes the first identification information, the relay terminal sends a fourth message to the first terminal based on the third message, including: The relay terminal sends a fourth message to the first terminal according to the first identification information.
11. The method according to claim 4, 9 or 10, characterized in that The second message also includes first indication information; The fourth message also includes first indication information; The first indication information is used to indicate that a target message is forwarded by a relay terminal, wherein the target message is a message that carries the first indication information.
12. The method according to claim 8, characterized in that The relay terminal obtains the first security material, including: The relay terminal obtains the first security material from a proximity service key management function PKMF, a fifth generation communication technology proximity service name management function 5G DDNMF or a policy charging function PCF.
13. A message transmission method, characterized in that: include: The second terminal receives a second message from the relay terminal, where the second message includes at least one of the following: first identification information; The second encryption set; The second encryption set includes identification information of the relay terminal, and the first identification information is used to identify any one of the following: The first terminal; the second terminal; a communication link between the first terminal and the relay terminal; A mapping relationship between the first terminal and the second terminal.
14. The method according to claim 13, characterized in that The first identification information includes any one of the following: Layer 2 identification or address information of the first terminal; Layer 2 identification or address information of the second terminal; A preset first indication parameter, wherein different second terminals correspond to different indication parameters, or different first terminals correspond to different indication parameters; Randomly generated values; The address information includes at least one of the following: MAC address; IPv4 address; IPv6 address; Port number.
15. The method according to claim 13, characterized in that The method further comprises: The second terminal sends a third message to the relay terminal based on the second message, where the third message includes at least one of the following: the first identification information and a third encryption set; The third encryption set satisfies any one of the following: including a first encryption set and identification information of the relay terminal, wherein the first encryption set includes identification information of the first terminal and identification information of the second terminal; Generated based on the second encryption set.
16. The method according to claim 15, characterized in that In a case where the third encryption set is generated based on the second encryption set, the method further includes: The second terminal generates a third encryption set according to the second encryption set; The third encryption set includes at least one of the following: identification information of the first terminal; identification information of the second terminal; The identification information of the relay terminal.
17. The method according to any one of claims 13 to 15, characterized in that The second message also includes a first encryption set, and the first encryption set includes identification information of the first terminal and identification information of the second terminal.
18. The method according to any one of claims 13 to 15, characterized in that The second message also includes first indication information; The first indication information is used to indicate that a target message is forwarded by a relay terminal, wherein the target message is a message that carries the first indication information.
19. A message forwarding device, characterized in that: include: A first receiving module, configured for a relay terminal to receive a first message from a first terminal, wherein the first message is used by the first terminal to discover a second terminal, and the first message includes a first encryption set; The first sending module is configured to send a second message from the relay terminal to the second terminal, where the second message includes at least one of the following: first identification information; The second encryption set; The first encryption set includes identification information of the first terminal and identification information of the second terminal, the second encryption set includes identification information of the relay terminal, and the first identification information is used to identify any one of the following: the first terminal; the second terminal; a communication link between the first terminal and the relay terminal; A mapping relationship between the first terminal and the second terminal.
20. A message forwarding device, characterized in that: include: The second receiving module is configured to receive a second message from the relay terminal at the second terminal, where the second message includes at least one of the following: first identification information; The second encryption set; The second encryption set includes identification information of the relay terminal, and the first identification information is used to identify any one of the following: The first terminal; the second terminal; a communication link between the first terminal and the relay terminal; A mapping relationship between the first terminal and the second terminal.
21. A terminal, characterized in that: It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, it implements the steps of the message transmission method as described in any one of claims 1 to 10, or implements the steps of the message transmission method as described in any one of claims 11 to 15.
22. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, it implements the steps of the message transmission method as described in any one of claims 1 to 10, or implements the steps of the message transmission method as described in any one of claims 11 to 15.