Information transmission method and device, terminal and relay equipment
By determining the target security solution in 5G ProSe and carrying identification information and valid time in the relay discovery message, the synchronization and security of relay discovery message are solved, and effective protection and accurate analysis are achieved to adapt to different scenarios.
Patent Information
- Application Number
- CN202310529892.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-11-12
AI Technical Summary
In 5G ProSe, the relay discovery message 2 generated by the Relay UE contains multiple discovery messages contents of different Announcing UEs, resulting in incomplete synchronization of sending and receiving. Different application scenarios have different security protection requirements for relay discovery messages, especially It is because IoT devices have limited computing and energy capabilities, making it difficult to flexibly protect messages.
By determining the target security plan, the relay discovery message is securely protected, and the target security plan identification information and effective time are carried in the message, so that the receiver can accurately parse and verify the message, ensuring the validity and flexible protection of the message.
It realizes the effectiveness and flexible protection of relay discovery messages, ensures the accuracy and security of message transmission, and adapts to the needs of different application scenarios.
Smart Images

Figure CN118945758A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an information transmission method, device, terminal and relay equipment. Background Art
[0002] 5G ProSe will support UE-to-UE Relay (U2U Relay) communication in R-18. SA2 has defined the basic parameters that should be included in the U2U Model A relay discovery process, that is, which discovery messages should include the Announcing UE ID and the Relay UE ID.
[0003] The U2U Model A relay discovery process involves two relay discovery messages, namely, relay discovery message 1 from the Announcing UE to the Relay UE, and relay discovery message 2 from the Relay UE to the Monitoring UE.
[0004] The prior art has at least one of the following problems:
[0005] Because the Relay Discovery Message 2 generated by the Relay UE contains multiple discovery message contents from different Announcing UEs, the Relay UE's sending of the Relay Discovery Message 2 and the receiving of the Relay Discovery Message 1 are not completely synchronized, so how to ensure the validity of the sent messages is an urgent problem to be solved;
[0006] During the U2U relay discovery process, the security protection requirements for relay discovery messages are different in different application scenarios. For example, the computing power and energy capacity of IoT devices may be limited. In this case, only basic security capabilities may be required, or no security capabilities may be used. How to flexibly protect relay discovery messages is also an issue that needs to be addressed. Summary of the invention
[0007] The embodiments of the present application provide an information transmission method, apparatus, terminal and relay device to achieve the purpose of ensuring the effectiveness of message sending and / or flexibly protecting messages.
[0008] In order to solve the above technical problem, an embodiment of the present application provides an information transmission method, which is executed by a first terminal, including:
[0009] Determine the target security scheme for securing relay discovery messages;
[0010] According to the target security scheme, security protection is performed on the generated first relay discovery message;
[0011] Sending the first relay discovery message for security protection to the relay device;
[0012] The first relay discovery message includes at least one of the following:
[0013] Identification information of the target security solution;
[0014] The validity period of the first relay discovery message.
[0015] Optionally, determining a target security scheme for performing security protection on the relay discovery message includes:
[0016] Receiving relay discovery security policy indication information sent by a key management function, the relay discovery security policy indication information including: at least one relay discovery security scheme and identification information of a security scheme corresponding to the at least one relay discovery security scheme, the relay discovery security scheme being associated with a relay service code RSC;
[0017] Based on the at least one relay discovery security scheme, a security scheme for performing security protection on the relay discovery message is determined as a target security scheme.
[0018] Optionally, the relay discovery security solution includes at least one of the following:
[0019] an indication of protecting the relay discovery message using the first key set and the second key set;
[0020] an indication of using a second key set to protect the relay discovery message;
[0021] an indication of whether to enable privacy protection for the first terminal and / or the second terminal;
[0022] Indication of whether to enable privacy protection for relay devices;
[0023] An indication of whether to enable privacy protection for the first terminal and / or the second terminal and the relay device;
[0024] An indication of whether to enable integrity protection of the direct discovery dataset;
[0025] An indication of whether to enable integrity protection of relay discovery messages;
[0026] The first key set is used to protect messages sent directly from the first terminal to the second terminal, and the second key set is used to protect relay discovery messages from the first terminal and / or the second terminal to a relay device.
[0027] Optionally, the first relay discovery message also includes:
[0028] Direct discovery of datasets;
[0029] A first device-to-device U2U discovery data set.
[0030] Optionally, when the first relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in a first U2U discovery data set.
[0031] Optionally, when the first relay discovery message includes the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
[0032] Optionally, the first relay discovery message also includes: identification information of the first terminal.
[0033] Optionally, the identification information of the first terminal satisfies at least one of the following:
[0034] The identification information of the first terminal is located in the direct discovery data set;
[0035] The identification information of the first terminal is encrypted by a key in a first key set.
[0036] Optionally, the performing security protection on the generated first relay discovery message according to the target security scheme includes at least one of the following:
[0037] Protecting a direct discovery data set in the first relay discovery message using a first key set;
[0038] Protecting a first U2U discovery data set in the first relay discovery message using a second key set;
[0039] The first relay discovery message is protected using a second key set.
[0040] The embodiment of the present application also provides an information transmission method, which is performed by a relay device, including:
[0041] Receiving a first relay discovery message sent by a first terminal, where the first relay discovery message is security protected by the first terminal based on a target security scheme;
[0042] Generate a second relay discovery message according to the first relay discovery message;
[0043] Performing security protection on the second relay discovery message;
[0044] Sending a second relay discovery message for security protection to the second terminal;
[0045] The first relay discovery message includes at least one of the following:
[0046] Identification information of the target security solution;
[0047] The validity period of the first relay discovery message.
[0048] Optionally, the first relay discovery message also includes:
[0049] Direct discovery of datasets;
[0050] A first device-to-device U2U discovery data set.
[0051] Optionally, when the first relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in a first U2U discovery data set.
[0052] Optionally, when the first relay discovery message includes the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
[0053] Optionally, the first relay discovery message also includes: identification information of the first terminal.
[0054] Optionally, the generating a second relay discovery message according to the first relay discovery message includes:
[0055] Determine a target security scheme for security protection of the first relay discovery message by the first terminal;
[0056] verifying and decrypting the first relay discovery message according to the target security scheme;
[0057] A second relay discovery message is generated according to the decrypted first relay discovery message.
[0058] Optionally, the determining a target security scheme for the first terminal to perform security protection on the first relay discovery message includes:
[0059] Obtaining identification information of the target security scheme in the first relay discovery message;
[0060] A target security solution is determined according to the identification information.
[0061] Optionally, the second relay discovery message includes at least one of the following:
[0062] Identification information of the target security solution;
[0063] The validity period of the first relay discovery message.
[0064] Optionally, the second relay discovery message also includes:
[0065] Second, U2U discovered datasets and directly discovered dataset lists.
[0066] Optionally, when the second relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in the second U2U discovery data set.
[0067] Optionally, when the second relay discovery message includes: the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in a direct discovery data set list.
[0068] Optionally, the direct discovery data set list includes: a direct discovery data set in a first relay discovery message sent by at least one first terminal.
[0069] Optionally, when the second relay discovery message includes: the validity period of the first relay discovery message, the method further includes:
[0070] Determining whether the first relay discovery message is valid according to the validity period of the first relay discovery message;
[0071] If the first relay discovery message is valid, it is determined that the direct discovery data set list includes the direct discovery data set in the first relay discovery message.
[0072] Optionally, the second relay discovery message also includes: identification information of the relay device.
[0073] Optionally, the identification information of the relay device satisfies at least one of the following:
[0074] The identification information of the relay device is located in the U2U discovery data set;
[0075] The identification information of the relay device is encrypted by a key in a second key set;
[0076] The second key set is used to protect relay discovery messages between the first terminal and / or the second terminal and the relay device.
[0077] Optionally, the performing security protection on the second relay discovery message includes at least one of the following:
[0078] Protecting a second U2U discovery data set in the second relay discovery message using a second key set;
[0079] The second relay discovery message is protected using a second key set.
[0080] The embodiment of the present application further provides a terminal, which is a first terminal and includes a memory, a transceiver, and a processor:
[0081] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0082] Determine the target security scheme for securing relay discovery messages;
[0083] According to the target security scheme, security protection is performed on the generated first relay discovery message;
[0084] Sending the first relay discovery message for security protection to the relay device;
[0085] The first relay discovery message includes at least one of the following:
[0086] Identification information of the target security solution;
[0087] The validity period of the first relay discovery message.
[0088] Optionally, the processor is configured to read the computer program in the memory to perform the following operations:
[0089] Receiving relay discovery security policy indication information sent by a key management function, the relay discovery security policy indication information including: at least one relay discovery security scheme and identification information of a security scheme corresponding to the at least one relay discovery security scheme, the relay discovery security scheme being associated with a relay service code RSC;
[0090] Based on the at least one relay discovery security scheme, a security scheme for performing security protection on the relay discovery message is determined as a target security scheme.
[0091] Optionally, the relay discovery security solution includes at least one of the following:
[0092] an indication of protecting the relay discovery message using the first key set and the second key set;
[0093] an indication of using a second key set to protect the relay discovery message;
[0094] an indication of whether to enable privacy protection for the first terminal and / or the second terminal;
[0095] Indication of whether to enable privacy protection for relay devices;
[0096] An indication of whether to enable privacy protection for the first terminal and / or the second terminal and the relay device;
[0097] An indication of whether to enable integrity protection of the direct discovery dataset;
[0098] An indication of whether to enable integrity protection of relay discovery messages;
[0099] The first key set is used to protect messages sent directly from the first terminal to the second terminal, and the second key set is used to protect relay discovery messages from the first terminal and / or the second terminal to a relay device.
[0100] Optionally, the first relay discovery message also includes:
[0101] Direct discovery of datasets;
[0102] A first device-to-device U2U discovery data set.
[0103] Optionally, when the first relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in a first U2U discovery data set.
[0104] Optionally, when the first relay discovery message includes the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
[0105] Optionally, the first relay discovery message also includes: identification information of the first terminal.
[0106] Optionally, the identification information of the first terminal satisfies at least one of the following:
[0107] The identification information of the first terminal is located in the direct discovery data set;
[0108] The identification information of the first terminal is encrypted by a key in a first key set.
[0109] Optionally, the processor is configured to read the computer program in the memory to perform at least one of the following operations:
[0110] Protecting a direct discovery data set in the first relay discovery message using a first key set;
[0111] Protecting a first U2U discovery data set in the first relay discovery message using a second key set;
[0112] The first relay discovery message is protected using a second key set.
[0113] The embodiment of the present application also provides a relay device, including a memory, a transceiver, and a processor:
[0114] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0115] Receiving a first relay discovery message sent by a first terminal, where the first relay discovery message is security protected by the first terminal based on a target security scheme;
[0116] Generate a second relay discovery message according to the first relay discovery message;
[0117] Performing security protection on the second relay discovery message;
[0118] Sending a second relay discovery message for security protection to the second terminal;
[0119] The first relay discovery message includes at least one of the following:
[0120] Identification information of the target security solution;
[0121] The validity period of the first relay discovery message.
[0122] Optionally, the processor is configured to read the computer program in the memory to perform the following operations:
[0123] Determine a target security scheme for security protection of the first relay discovery message by the first terminal;
[0124] verifying and decrypting the first relay discovery message according to the target security scheme;
[0125] A second relay discovery message is generated according to the decrypted first relay discovery message.
[0126] Optionally, the processor is configured to read the computer program in the memory to perform the following operations:
[0127] Obtaining identification information of the target security scheme in the first relay discovery message;
[0128] A target security solution is determined according to the identification information.
[0129] Optionally, the processor is configured to read the computer program in the memory to perform at least one of the following operations:
[0130] Protecting a second U2U discovery data set in the second relay discovery message using a second key set;
[0131] The second relay discovery message is protected using a second key set.
[0132] The embodiment of the present application further provides an information transmission device, applied to a first terminal, including:
[0133] A first determining unit, configured to determine a target security scheme for performing security protection on a relay discovery message;
[0134] A first processing unit, configured to perform security protection on the generated first relay discovery message according to the target security scheme;
[0135] A first sending unit, configured to send the first relay discovery message for security protection to a relay device;
[0136] The first relay discovery message includes at least one of the following:
[0137] Identification information of the target security solution;
[0138] The validity period of the first relay discovery message.
[0139] The embodiment of the present application further provides an information transmission device, which is applied to a relay device, including:
[0140] A receiving unit, configured to receive a first relay discovery message sent by a first terminal, wherein the first relay discovery message is security protected by the first terminal based on a target security scheme;
[0141] A generating unit, configured to generate a second relay discovery message according to the first relay discovery message;
[0142] A second processing unit, configured to perform security protection on the second relay discovery message;
[0143] A second sending unit, configured to send a second relay discovery message with security protection to a second terminal;
[0144] The first relay discovery message includes at least one of the following:
[0145] Identification information of the target security solution;
[0146] The validity period of the first relay discovery message.
[0147] An embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the above method.
[0148] The beneficial effects of this application are:
[0149] The above-mentioned scheme first determines the target security scheme for security protection, and then carries the identification information of the target security scheme used and / or the validity period of the first relay discovery message in the sent relay discovery message, so that the recipient can accurately parse the relay discovery message and / or determine whether the received relay discovery message is valid, thereby achieving the purpose of ensuring the effectiveness of message sending and / or flexibly performing message protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0150] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0151] Figure 1 A schematic diagram showing a flow chart of an information transmission method according to an embodiment of the present application;
[0152] Figure 2 A schematic diagram showing a specific implementation process of an embodiment of the present application;
[0153] Figure 3 A schematic diagram showing a format of a first relay discovery message;
[0154] Figure 4 A second schematic diagram showing the format of a first relay discovery message;
[0155] Figure 5 A schematic diagram showing a format of a second relay discovery message;
[0156] Figure 6 The second schematic diagram showing the format of the second relay discovery message;
[0157] Figure 7 A second flowchart of the information transmission method according to an embodiment of the present application is shown;
[0158] Figure 8 One of the unit schematic diagrams showing the information transmission device according to an embodiment of the present application;
[0159] Fig. 9 A structural diagram showing a terminal according to an embodiment of the present application;
[0160] Fig.10 A second schematic diagram of a unit showing an information transmission device according to an embodiment of the present application;
[0161] Fig.11A structural diagram showing a relay device according to an embodiment of the present application. DETAILED DESCRIPTION
[0162] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0163] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein, for example, are implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0164] In the embodiments of the present application, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0165] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0166] The relevant concepts mentioned in this application are briefly described below.
[0167] 5G ProSe supports two discovery modes:
[0168] Model A: The announcing UE sends an announcement message to announce its existence, and the monitoring UE does not need to reply after receiving the announcement message. The monitoring UE can establish a communication connection with the announcing UE as needed.
[0169] Model B: The discoverer UE actively sends a discovery request message to find the discoveree UE; the discoveree UE needs to reply to the discoverer UE after receiving the message. Then, the discoverer UE establishes a communication connection with the discoveree UE.
[0170] 5G ProSe will support UE-to-UE relay (U2U Relay) communication scenarios, that is, the source UE (Source UE) establishes a communication connection with the target UE (Target UE) through the relay UE (Relay UE). U2U relay communication first involves the end UE (source UE, target UE) discovering each other through the relay UE, and then establishing a communication connection based on this. In the relay communication scenario, the source UE can be the Monitoring UE or Discoverer UE in the discovery process, and the target UE can be the Announcing UE or Discoveree UE in the discovery process.
[0171] The U2U relay discovery message contains two parts: the data required for interaction between the source UE / target UE and the relay UE, called the relay discovery data set (U2U discovery set); the data required for interaction between the source UE and the target UE, called the direct discovery data set (direct discovery set).
[0172] The following is an introduction to the embodiments of the present application in conjunction with the accompanying drawings. The information transmission method, device, terminal and relay device provided in the embodiments of the present application can be applied to a wireless communication system. The wireless communication system can be a system using the fifth generation (5th Generation, 5G) mobile communication technology (hereinafter referred to as a 5G system). Those skilled in the art can understand that the 5G NR system is only an example and is not a limitation.
[0173] The embodiments of the present application provide an information transmission method, apparatus, terminal and relay device to achieve the purpose of ensuring the effectiveness of message sending and / or flexibly protecting messages.
[0174] Among them, the method and the device are based on the same application concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0175] like Figure 1 As shown, an embodiment of the present application provides an information transmission method, which is executed by a first terminal and includes:
[0176] Step S101, determining a target security scheme for security protection of relay discovery messages;
[0177] Step S102, performing security protection on the generated first relay discovery message according to the target security scheme;
[0178] Step S103, sending the first relay discovery message for security protection to the relay device;
[0179] The first relay discovery message includes at least one of the following:
[0180] A11, identification information of the target security solution;
[0181] It should be noted that, through the indication of the identification information, the receiver (receiving end) can clearly know what the target security scheme used by the sender is, thereby ensuring that the receiver accurately parses the received relay discovery message.
[0182] A12, the validity period of the first relay discovery message;
[0183] It should be noted that, through the indication of the validity time, the receiver can determine whether the received message is valid, thereby ensuring the reliability of the subsequently transmitted message.
[0184] Optionally, the first terminal mentioned in the embodiment of the present application generally refers to the announcement UE, which is used to announce its existence in the Model A discovery process. The relay device can be regarded as a relay terminal, that is, in the Model A U2U relay discovery process, it is located between the announcement UE and the monitoring UE (the monitoring UE is used to monitor the announcement message sent by the announcement UE in the Model A discovery process), and processes and forwards the announcement message sent by the announcement UE.
[0185] Optionally, in an implementation manner, the specific implementation manner of determining the target security scheme for performing security protection on the relay discovery message includes:
[0186] Step a1, receiving relay discovery security policy indication information sent by a key management function, wherein the relay discovery security policy indication information includes: at least one relay discovery security scheme and identification information of a security scheme corresponding to the at least one relay discovery security scheme, wherein the relay discovery security scheme is associated with a relay service code (Relay Service Code, RSC);
[0187] Optionally, RSC is used to identify a specific relay service.
[0188] Step a2: Based on the at least one relay discovery security scheme, determine a security scheme for performing security protection on the relay discovery message as a target security scheme.
[0189] It should be noted that the key management function is used to allocate and issue keys and security schemes (Security Scheme, which can also be called security policies). In the embodiment of the present application, the key management function can allocate a relay discovery security scheme to the first terminal, or can allocate two or more relay discovery security schemes to the first terminal. The first terminal needs to determine the final security scheme to be used based on its own usage requirements.
[0190] For example, optionally, a specific implementation method is that the key management function only configures one security scheme for the first terminal. When the first terminal is actually used, it can decide whether to use the security scheme configured by the key management function. If the first terminal uses the security scheme configured by the key management function, then if the first relay discovery message sent by the first terminal includes identification information of the target security scheme, then the identification information is the identification information corresponding to the security scheme configured by the key management function; if the first terminal does not use the security scheme configured by the key management function, then the first terminal can be pre-configured to perform relatively loose protection measures or no protection measures on the first relay discovery message sent when the security scheme configured by the key management function is not used. When the first terminal determines not to perform protection measures on the first relay discovery message sent, it can be understood as performing the weakest security protection on the first relay discovery message sent. Then, if the first relay discovery message sent by the first terminal includes identification information of the target security scheme, the identification information is a bit indication pre-configured for use when the security scheme configured by the key management function is not used.
[0191] Optionally, another specific implementation method is that the key management function configures at least two security schemes for the first terminal. When the first terminal is actually used, it can select a security scheme from at least two security schemes based on usage requirements to achieve security protection for the first relay discovery message to be sent.
[0192] Optionally, in one implementation, the relay discovery security solution includes at least one of the following:
[0193] B11, an indication of using the first key set and the second key set to protect the relay discovery message;
[0194] It should be noted that the first key set is used to protect direct messages sent between the first terminal and the second terminal, and the first key set includes at least one of the following: a confidentiality protection key, an integrity protection key, and an information scrambling key.
[0195] The second key set is used to protect relay discovery messages between the first terminal and / or the second terminal and the relay device, and the second key set includes at least one of the following: a confidentiality protection key, an integrity protection key, and an information scrambling key.
[0196] For example, the second key set is used to protect the relay discovery message between the first terminal and the relay device; for example, the second key set is used to protect the relay discovery message between the second terminal and the relay device; for another example, the second key set is used to protect the relay discovery message between the second terminal and the relay device and to protect the relay discovery message between the first terminal and the relay device.
[0197] It should be noted here that: since symmetric key technology is used in the embodiments of the present application, the key value of the message sender and the key value of the message receiver are the same.
[0198] In this case, it can be understood that the first key set and the second key set need to be used simultaneously to protect the relay discovery message.
[0199] B12, an indication of using a second key set to protect a relay discovery message;
[0200] In this case, it can be understood that only the second key set needs to be used to protect the relay discovery message.
[0201] B13, an indication of whether to enable privacy protection of the first terminal and / or the second terminal;
[0202] For example, the indication may be an indication of whether to enable privacy protection of the first terminal, an indication of whether to enable privacy protection of the second terminal, or an indication of whether to enable privacy protection of both the second terminal and the first terminal.
[0203] B14, whether to enable privacy protection for relay devices;
[0204] B15, an indication of whether to enable privacy protection of the first terminal and / or the second terminal and the relay device;
[0205] For example, in this case, it can be understood as whether to turn on privacy protection for the first terminal and the relay device at the same time; or whether to turn on privacy protection for the second terminal and the relay device at the same time; or whether to turn on privacy protection for the first terminal, the second terminal and the relay device at the same time.
[0206] B16, whether to enable integrity protection of the direct discovery data set;
[0207] B17: Indication of whether to enable integrity protection of relay discovery messages.
[0208] It should be noted that different relay discovery security schemes are respectively determined by at least one of B11-B17, and different relay discovery security schemes include different specific contents.
[0209] Optionally, in one implementation, the first relay discovery message further includes:
[0210] C11, Direct discovery set;
[0211] It should be noted that, in the relay discovery process, the first terminal and the second terminal exchange the required data through the direct discovery data set.
[0212] Optionally, the direct discovery data set generally includes at least one of the following:
[0213] C111, the number of bits of the UTC-based counter starting from the low bit (UTC-based Counter LSB1),
[0214] It should be noted that the UTC-based Counter LSB in the direct discovery data set is a time parameter associated with the first key set, which is used to allow the sender's clock and the receiver's clock to have a certain amount of asynchronous space, but must be within the specified range of this value to avoid possible replay attacks.
[0215] C112, ProSe restricted code (ProSe Restricted Code);
[0216] This code is related to ProSe applications and ProSe users. Part of it is used by the receiver to monitor the identification information of the message sent by the sender, and this part is not encrypted; another part may be related to privacy and needs to be encrypted. It should be noted that the key that protects the direct discovery message is associated with the ProSe restricted code.
[0217] C113, Message Integrity Protection Code (MIC);
[0218] It should be noted that the MIC in the direct discovery data set is generated using the first key set.
[0219] C12, first end-to-end (U2U) discovery data set;
[0220] It should be noted that, during the relay discovery process, the first terminal and the relay device exchange the data required for use through the first U2U discovery data set.
[0221] Optionally, the first U2U discovery data set generally includes at least one of the following:
[0222] C121, Message Type;
[0223] C122, RSC;
[0224] C123, the number of bits of the UTC-based counter starting from the low bit (UTC-based Counter LSB);
[0225] It should be noted that the UTC-based Counter LSB in the first U2U discovery data set is a time parameter associated with the second key set, which is used to allow the sender's clock and the receiver's clock to have a certain amount of asynchronous space, but must be within the specified range of this value to avoid possible replay attacks.
[0226] Optionally, in an implementation manner, when the first relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in a first U2U discovery data set.
[0227] It should be noted that by including the identification information of the target security scheme in the first relay discovery message, since the identification information accounts for a relatively small proportion, the length of the first relay discovery message can be reduced and the signaling overhead can be reduced.
[0228] Optionally, in one implementation, when the first relay discovery message includes the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
[0229] Optionally, in an implementation manner, the first relay discovery message also includes: identification information of the first terminal; optionally, the identification information of the first terminal is located in a direct discovery data set.
[0230] Optionally, in one implementation, in order to ensure that the identification of the first terminal is not leaked, the identification information of the first terminal is encrypted by a key in the first key set; further optionally, the key used to encrypt the identification information of the first terminal is a key in the first key set that provides confidentiality protection.
[0231] Optionally, in one implementation, the implementation method of performing security protection on the generated first relay discovery message according to the target security scheme includes at least one of the following:
[0232] D11. Protecting the direct discovery data set in the first relay discovery message using a first key set;
[0233] For example, the confidentiality protection key in the first key set can be used to encrypt part or all of the information in the direct discovery data set, the integrity protection key in the first key set can be used to integrity protect the direct discovery data set, and the information scrambling key in the first key set can be used to scramble the direct discovery data set; of course, the above-mentioned method of using the first key set to protect the direct discovery data set in the first relay discovery message is merely an example and does not constitute a limitation on the protection scope of the embodiments of the present application.
[0234] It is particularly important to explain here that, when the direct discovery data set includes the effective time of the first relay discovery message, the effective time cannot be encrypted and scrambled for protection.
[0235] D12. Protect the first U2U discovery data set in the first relay discovery message using a second key set;
[0236] For example, the confidentiality protection key in the second key set can be used to encrypt part or all of the information in the first U2U discovery data set, the integrity protection key in the second key set can be used to integrity protect the first U2U discovery data set, and the information scrambling key in the second key set can be used to scramble the first U2U discovery data set; of course, the above-mentioned method of using the second key set to protect the first U2U discovery data set in the first relay discovery message is merely an example and does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0237] It is particularly important to note here that when the first U2U discovery data set contains the identification information of the target security scheme, the identification information of the target security scheme cannot be encrypted and scrambled. When the first U2U discovery data set contains the validity period of the first relay discovery message, the validity period may not be encrypted and scrambled.
[0238] D13. Protect the first relay discovery message using a second key set;
[0239] For example, the integrity protection key in the second key set can be used to integrity protect the first relay discovery message, and the information scrambling key in the second key set can also be used to scramble the first relay discovery message; of course, the above-mentioned method of using the second key set to protect the first relay discovery message is only an example and does not constitute a limitation on the protection scope of the embodiments of the present application.
[0240] Optionally, in one implementation, after receiving the first relay discovery message, the relay device generates a second relay discovery message based on the first relay discovery message; performs security protection on the second relay discovery message; and sends the second relay discovery message with security protection to the second terminal.
[0241] It should be noted that the second terminal mentioned in the embodiment of the present application refers to a monitoring UE, which is used to monitor the announcement message sent by the announcement UE during the Model A discovery process.
[0242] It should be noted that the first relay discovery message is a discovery message sent by the announcement terminal to the relay device, which can also be called relay discovery message 1; the second relay discovery message is a discovery message sent by the relay device to the monitoring terminal, which can also be called relay discovery message 2.
[0243] Optionally, in one implementation, the specific implementation of generating the second relay discovery message according to the first relay discovery message includes:
[0244] Determine a target security scheme for security protection of the first relay discovery message by the first terminal;
[0245] verifying and decrypting the first relay discovery message according to the target security scheme;
[0246] A second relay discovery message is generated according to the decrypted first relay discovery message.
[0247] It should be noted that, after decrypting the first relay discovery message, the relay device can obtain a direct discovery data set, and the relay device obtains the second relay discovery message based on the direct discovery data set.
[0248] Further optionally, the determining a target security scheme for the first terminal to perform security protection on the first relay discovery message includes:
[0249] Obtaining identification information of the target security scheme in the first relay discovery message;
[0250] A target security solution is determined according to the identification information.
[0251] It should be noted that the relay device obtains the identification information of the target security scheme from the first U2U discovery data set, and the key management function will also send the relay discovery security policy indication information to the relay device at the same time when sending the relay discovery security policy indication information to the first terminal. When the relay device receives the relay discovery security policy indication information, it will store the identification information of at least one relay discovery security scheme and the security scheme corresponding to the at least one relay discovery security scheme. After obtaining the identification information of the target security scheme in the first U2U discovery data set, the relay device can search the local storage based on the identification information to determine what specific contents the target security scheme contains.
[0252] Optionally, in one implementation, the second relay discovery message includes at least one of the following:
[0253] E11. identification information of the target security solution;
[0254] Optionally, when the first relay-sent message includes identification information of the target security scheme, the second relay-sent message generated by the relay device should also include identification information of the target security scheme to ensure that the second terminal can accurately parse the second relay-sent message.
[0255] E12, the validity period of the first relay discovery message;
[0256] It should be noted that when the first relay discovery message includes the validity time of the first relay discovery message, the validity time generally indicates the validity of the direct discovery data set in the first relay message. When the second relay discovery message includes the validity time, the second terminal can determine the validity of a direct discovery data set of a first terminal contained in the second relay discovery message based on the validity time when receiving the second relay discovery message.
[0257] Optionally, the second relay discovery message also includes:
[0258] E21, the second U2U discovery dataset;
[0259] Optionally, the second U2U discovery data set generally includes at least one of the following:
[0260] C121, Message Type;
[0261] C122, RSC;
[0262] C123, the number of bits of the UTC-based counter starting from the low bit (UTC-based Counter LSB2);
[0263] It should be noted that the UTC-based Counter LSB in the second U2U discovery data set is a time parameter associated with the second key set.
[0264] E22, directly find the dataset list;
[0265] It should be noted that the direct discovery data set list includes: a direct discovery data set in a first relay discovery message sent by at least one first terminal.
[0266] Optionally, when the second relay discovery message includes: the validity period of the first relay discovery message, the method further includes:
[0267] Determining whether the first relay discovery message is valid according to the validity period of the first relay discovery message;
[0268] If the first relay discovery message is valid, it is determined that the direct discovery data set list includes the direct discovery data set in the first relay discovery message.
[0269] That is to say, the directly discovered data sets included in the directly discovered data set list are all within the valid time.
[0270] For example, the effective time is the target time slot. When the moment when the relay device receives the first relay discovery message is before the target time slot, the relay device determines that the direct discovery data set in the first relay discovery message is valid, and places the direct discovery data set in the direct discovery data set list in the second relay discovery message.
[0271] Optionally, when the second relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in the second U2U discovery data set.
[0272] Optionally, when the second relay discovery message includes: the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in a direct discovery data set list.
[0273] It should be noted here that if the valid time in the first relay discovery message is located in the direct discovery data set, each direct discovery data set in the direct discovery data set list in the second relay discovery message includes the valid time; if the valid time in the first relay discovery message is located in the first U2U discovery data set, the second relay discovery message does not include the valid time, that is, in this case, the valid time in the first relay discovery message is used to determine whether to include the direct discovery data set in the first relay discovery message in the direct discovery data set list of the second relay discovery message.
[0274] Optionally, in one implementation, the second relay discovery message further includes: identification information of the relay device. Optionally, the identification information of the relay device is located in a U2U discovery data set.
[0275] Optionally, in one implementation, in order to ensure that the identification of the relay device is not leaked, the identification information of the relay device is encrypted by a key in the second key set; further optionally, the key used to encrypt the identification information of the relay device is a key in the second key set that provides confidentiality protection.
[0276] Optionally, in one implementation, the implementation method of performing security protection on the second relay discovery message includes at least one of the following:
[0277] F11. Protecting a second U2U discovery data set in the second relay discovery message using a second key set;
[0278] For example, the confidentiality protection key in the second key set can be used to encrypt part or all of the information in the second U2U discovery data set, the integrity protection key in the second key set can be used to integrity protect the second U2U discovery data set, and the information scrambling key in the second key set can be used to scramble the second U2U discovery data set; of course, the above-mentioned method of using the second key set to protect the second U2U discovery data set in the second relay discovery message is merely an example and does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0279] It is particularly important to explain here that, when the second U2U discovery data set includes identification information of the target security scheme, the identification information of the target security scheme cannot be encrypted or scrambled.
[0280] F12. Protect the second relay discovery message using a second key set;
[0281] For example, the integrity protection key in the second key set can be used to protect the integrity of the second relay discovery message, and the information scrambling key in the second key set can also be used to scramble the second relay discovery message; of course, the above-mentioned method of using the second key set to protect the second relay discovery message is only an example and does not constitute a limitation on the protection scope of the embodiments of the present application.
[0282] Optionally, after receiving the second relay discovery message, the second terminal determines the target security scheme for the relay terminal to perform security protection on the first relay discovery message; and verifies and decrypts the second relay discovery message according to the target security scheme. It should be noted that the relay device obtains the identification information of the target security scheme in the second U2U discovery data set, and the key management function will also send the relay discovery security policy indication information to the second terminal when sending the relay discovery security policy indication information to the first terminal. When the second terminal receives the relay discovery security policy indication information, it will store the identification information of at least one relay discovery security scheme and the security scheme corresponding to the at least one relay discovery security scheme. After obtaining the identification information of the target security scheme in the second U2U discovery data set, the second terminal can search the local storage based on the identification information to determine what the target security scheme specifically contains.
[0283] The following takes the announcement UE, monitoring UE and relay UE communication as an example to illustrate the specific implementation of the embodiment of the present application as follows.
[0284] like Figure 2 As shown, the specific implementation process includes:
[0285] Step 21, the key management function sends the first key set (Key Set 1), the second key set (Key Set 2), and the relay discovery security policy indication information to the announcing UE;
[0286] It should be noted that the announcement UE may include one or more UEs.
[0287] Step 22, the key management function sends the first key set (Key Set 1), the second key set (Key Set 2), and the relay discovery security policy indication information to the monitoring UE (Monitoring UE);
[0288] It should be noted that the monitoring UE may include one or more UEs.
[0289] Step 23: The key management function sends the second key set (Key Set 2) and relay discovery security policy indication information to the relay UE.
[0290] It should be noted that there is no obvious order for the above steps 21 to 23, and the three steps can be executed simultaneously.
[0291] It should be noted that the relay discovery security policy indication information may include one or more relay discovery security schemes (Security Scheme) and their identifiers (Security Scheme ID). Each Security Scheme describes a security policy for relay discovery messages. Specifically, the contents of the security policy can be found in the above description and will not be repeated here.
[0292] It should be noted that after receiving the relay discovery security policy indication information, the announcing UE, the monitoring UE, and the relay terminal store the relay discovery security solution locally for subsequent use.
[0293] Step 24: Announce that the UE selects a security scheme, generates a first relay discovery message, and provides security protection for the first relay discovery message based on the security scheme.
[0294] It should be noted that, in this application scenario, the first relay discovery message includes a direct discovery data set and a first U2U discovery data set, as well as a Security Scheme ID that describes the security scheme used by the relay discovery message. The identifier of the announcing UE (Announcing UE ID) is included in the direct discovery data set. The valid time (Valid Time) is included in the direct discovery data set. The Valid Time describes the valid time of the first relay discovery message. If this valid time is exceeded, the message is invalid, and the relay UE does not need to continue processing and forwarding the content related to this message. The first relay discovery message carries the identifier (Security Scheme ID) of the security scheme used by the announcing UE. The receiver searches for the locally stored security scheme based on the Security Scheme ID in the message, and then verifies and decrypts the received message based on the specific content described in the security scheme, and performs corresponding security processing on the subsequently generated messages (relay forwarding messages) based on the security scheme.
[0295] For example, if the security solution stipulates that the privacy security of the announcing UE is turned on, the identity of the announcing UE is encrypted by the confidentiality protection key in Key Set 1. For example, based on the provisions of the security solution, the announcing UE uses Key Set 1 to provide further protection for the direct discovery data set, and uses Key Set 2 to provide further protection for the first U2U discovery data set and the first relay discovery message.
[0296] Step 25: Announce that the UE sends a first relay discovery message.
[0297] Optionally, in the first case, the specific format of the first relay discovery message is as follows: Figure 3 shown.
[0298] Specifically: the first relay discovery message includes a direct discovery data set and a first U2U discovery data set. The first U2U discovery data set includes: Message Type, Security Scheme ID, RSC and UTC-based Counter LSB2; the direct discovery data set includes: UTC-based Counter LSB1, ProSe Restricted Code, AnnouncingUE ID, Valid Time and MIC1; the first relay discovery message also includes MIC2.
[0299] It should be noted that UTC-based Counter LSB1 is a time parameter associated with Key Set1, UTC-based Counter LSB2 is a time parameter associated with Key Set2, MIC1 is generated using Key Set1, and MIC2 is generated using Key Set2.
[0300] Optionally, in the second case, the specific format of the first relay discovery message is as follows: Figure 4 shown.
[0301] Specifically: the first relay discovery message includes a direct discovery data set and a first U2U discovery data set. The first U2U discovery data set includes: Message Type, Security Scheme ID, RSC and UTC-based Counter LSB2, Valid Time; the direct discovery data set includes: UTC-based Counter LSB1, ProSe Restricted Code, Announcing UE ID and MIC1; the first relay discovery message also includes MIC2.
[0302] It can be seen that the first relay discovery message contains the Security Scheme ID. The Announcing UE ID is included in the direct discovery data set and can be encrypted by Key Set1. The Valid Time is included in the direct discovery data set or the first U2U discovery data set. The direct discovery data set is integrity protected by Key Set1. The first relay discovery request message consisting of the first U2U discovery data set and the direct discovery data set is integrity protected by Key Set2.
[0303] Step 26: The relay UE generates a second relay discovery message;
[0304] It should be noted that the relay UE receives the first relay discovery message, uses the Security Scheme ID in the first relay discovery message to obtain the locally stored Security Scheme, and then verifies and decrypts the first relay discovery message based on the Security Scheme.
[0305] Before the relay UE generates the second relay discovery message, it first needs to check the ValidTime in the first relay discovery message to determine whether the message is still valid. If valid, the direct discovery data set therein can be included in the direct discovery set list of the second relay discovery message.
[0306] The second relay discovery message includes a second U2U discovery data set generated by the relay UE, a direct discovery data set list (Direct discovery set list), and the Security SchemeID from the first relay discovery message. The Direct discovery set list is generated by the relay UE, which includes the direct discovery data sets in the first relay discovery messages sent by each announcement UE and received by the relay UE. The relay UE identifier (Relay UE ID) is included in the second U2U discovery data set. If the Security Scheme stipulates that the relay UE privacy security is enabled, the Relay UE ID is encrypted by the encryption key in Key Set2. The relay UE can also use Key Set2 to provide further protection for the second U2U discovery data set and the second relay discovery message based on the provisions of the Security Scheme.
[0307] Step 27: The relay UE sends a second relay discovery message.
[0308] Optionally, corresponding to the first case of the first relay discovery message, the specific format of the second relay discovery message is as follows: Figure 5 shown.
[0309] The second relay discovery message consists of a second U2U discovery data set and a direct discovery data set list (Directdiscovery set list). The second U2U discovery data set includes: Message Type, Security Scheme ID, RSC and UTC-based Counter LSB2, Relay UE ID; the direct discovery data set list includes: at least one direct discovery data set, each direct discovery data set includes: UTC-based Counter LSB1, ProSe RestrictedCode, Announcing UE ID, Valid Time and MIC1; the second relay discovery message also includes MIC2.
[0310] It should be noted that UTC-based Counter LSB1 is a time parameter associated with Key Set1, UTC-based Counter LSB2 is a time parameter associated with Key Set2, MIC1 is generated using Key Set1, and MIC2 is generated using Key Set2.
[0311] Optionally, corresponding to the second case of the first relay discovery message, the specific format of the second relay discovery message is as follows: Figure 6 shown.
[0312] The second relay discovery message consists of a second U2U discovery data set and a direct discovery data set list (Directdiscovery set list). The second U2U discovery data set includes: Message Type, Security Scheme ID, RSC and UTC-based Counter LSB2, Relay UE ID; the direct discovery data set list includes: at least one direct discovery data set, each direct discovery data set includes: UTC-based Counter LSB1, ProSe RestrictedCode, Announcing UE ID and MIC1; the second relay discovery message also includes MIC2.
[0313] It can be seen that the second relay discovery message includes the Security Scheme ID. The Relay UE ID is included in the second U2U discovery data set generated by the Relay UE and can be encrypted by Key Set 2. The second relay discovery message is integrity protected by Key Set 2.
[0314] Step 28: The monitoring UE verifies the second relay discovery message;
[0315] It should be noted that the monitoring UE receives the second relay discovery message, uses the Security Scheme ID in the second relay discovery message to obtain the locally stored Security Scheme, and then uses Key Set2 to verify and decrypt the second relay discovery message sent by the relay UE based on the Security Scheme, and uses Key Set1 to verify and decrypt each direct discovery data set in the direct discovery data set list.
[0316] The monitoring UE also needs to check the Valid Time in the second relay discovery message to determine whether the message is still valid, and then obtain the content in the second relay discovery message and perform subsequent processing.
[0317] It should be noted that at least one embodiment of the present application first determines the target security scheme for security protection, and then carries the identification information of the target security scheme used and / or the validity period of the first relay discovery message in the sent relay discovery message, so that the recipient can accurately parse the relay discovery message and / or determine whether the received relay discovery message is valid, thereby achieving the purpose of ensuring the effectiveness of message sending and / or flexibly performing message protection.
[0318] The technical solution provided in the embodiment of the present application can be applicable to a variety of systems, especially 5G systems. For example, the applicable system can be a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) general packet radio service (GPRS) system, a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an advanced long term evolution (LTE-A) system, a universal mobile telecommunication system (UMTS), a world-wide interoperability for microwave access (WiMAX) system, a 5G new radio (NR) system, etc. These various systems include terminals (also referred to as terminal equipment) and network equipment. The system may also include a core network part, such as an evolved packet system (EPS), a 5G system (5GS), etc.
[0319] The terminal involved in the embodiment of the present application may also be referred to as a terminal device, which may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. In different systems, the name of the terminal device may also be different. For example, in a 5G system, the terminal device may be referred to as a user equipment (UE). A wireless terminal device may communicate with one or more core networks (CN) via a radio access network (RAN). The wireless terminal device may be a mobile terminal device, such as a mobile phone (or a "cellular" phone) and a computer with a mobile terminal device. For example, it may be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device that exchanges language and / or data with a wireless access network. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs) and other devices. The wireless terminal device may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, an access point, a remote terminal device, an access terminal device, a user terminal device, a user agent, and a user device, but is not limited in the embodiments of the present application.
[0320] The network device involved in the embodiment of the present application may be a base station, which may include multiple cells providing services for the terminal. Depending on the specific application scenario, the base station may also be called an access point, or may be a device in the access network that communicates with the wireless terminal device through one or more sectors on the air interface, or other names. The network device may be used to interchange received air frames with Internet Protocol (IP) packets, and serve as a router between the wireless terminal device and the rest of the access network, wherein the rest of the access network may include an Internet Protocol (IP) communication network. The network device may also coordinate the attribute management of the air interface. For example, the network device involved in the embodiments of the present application may be a network device (Base Transceiver Station, BTS) in the Global System for Mobile communications (Global System for Mobile communications, GSM) or Code Division Multiple Access (Code Division Multiple Access, CDMA), or a network device (NodeB) in Wide-band Code Division Multiple Access (WCDMA), or an evolutionary network device (evolutional Node B, eNB or e-NodeB) in the long term evolution (long term evolution, LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), or a home evolved Node B (Home evolved Node B, HeNB), a relay terminal node (relay node), a home base station (femto), a pico base station (pico), etc., which is not limited in the embodiments of the present application. In some network structures, the network device may include a centralized unit (CU) node and a distributed unit (DU) node, and the centralized unit and the distributed unit may also be arranged geographically separately.
[0321] Network devices and terminal devices can each use one or more antennas for multiple-input multiple-output (MIMO) transmission. MIMO transmission can be single-user MIMO (SU-MIMO) or multi-user MIMO (MU-MIMO). Depending on the form and number of antenna combinations, MIMO transmission can be 2D-MIMO, 3D-MIMO, FD-MIMO or massive-MIMO, or it can be diversity transmission, precoded transmission or beamforming transmission, etc.
[0322] like Figure 7 As shown, an embodiment of the present application provides an information transmission method, which is performed by a relay device, including:
[0323] Step S701: receiving a first relay discovery message sent by a first terminal, where the first relay discovery message is security protected by the first terminal based on a target security solution;
[0324] Step S702: Generate a second relay discovery message according to the first relay discovery message;
[0325] Step S703, performing security protection on the second relay discovery message;
[0326] Step S704, sending a second relay discovery message for security protection to a second terminal;
[0327] The first relay discovery message includes at least one of the following:
[0328] Identification information of the target security solution;
[0329] The validity period of the first relay discovery message.
[0330] Optionally, the first relay discovery message also includes:
[0331] Direct discovery of datasets;
[0332] A first device-to-device U2U discovery data set.
[0333] Optionally, when the first relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in a first U2U discovery data set.
[0334] Optionally, when the first relay discovery message includes the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
[0335] Optionally, the first relay discovery message also includes: identification information of the first terminal.
[0336] Optionally, the generating a second relay discovery message according to the first relay discovery message includes:
[0337] Determine a target security scheme for security protection of the first relay discovery message by the first terminal;
[0338] verifying and decrypting the first relay discovery message according to the target security scheme;
[0339] A second relay discovery message is generated according to the decrypted first relay discovery message.
[0340] Optionally, the determining a target security scheme for the first terminal to perform security protection on the first relay discovery message includes:
[0341] Obtaining identification information of the target security scheme in the first relay discovery message;
[0342] A target security solution is determined according to the identification information.
[0343] Optionally, the second relay discovery message includes at least one of the following:
[0344] Identification information of the target security solution;
[0345] The validity period of the first relay discovery message.
[0346] Optionally, the second relay discovery message also includes:
[0347] Second, U2U discovered datasets and directly discovered dataset lists.
[0348] Optionally, when the second relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in the second U2U discovery data set.
[0349] Optionally, when the second relay discovery message includes: the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in a direct discovery data set list.
[0350] Optionally, the direct discovery data set list includes: a direct discovery data set in a first relay discovery message sent by at least one first terminal.
[0351] Optionally, when the second relay discovery message includes: the validity period of the first relay discovery message, the method further includes:
[0352] Determining whether the first relay discovery message is valid according to the validity period of the first relay discovery message;
[0353] If the first relay discovery message is valid, it is determined that the direct discovery data set list includes the direct discovery data set in the first relay discovery message.
[0354] Optionally, the second relay discovery message also includes: identification information of the relay device.
[0355] Optionally, the identification information of the relay device satisfies at least one of the following:
[0356] The identification information of the relay device is located in the U2U discovery data set;
[0357] The identification information of the relay device is encrypted by a key in a second key set;
[0358] The second key set is used to protect relay discovery messages between the first terminal and / or the second terminal and the relay device.
[0359] Optionally, the performing security protection on the second relay discovery message includes at least one of the following:
[0360] Protecting a second U2U discovery data set in the second relay discovery message using a second key set;
[0361] The second relay discovery message is protected using a second key set.
[0362] It should be noted that all implementation methods in the above embodiments are applicable to the embodiments of the information transmission method applied to the relay device side, and can achieve the same technical effect, which will not be repeated here.
[0363] like Figure 8 As shown, the embodiment of the present application provides an information transmission device 800, which is applied to a first terminal, including:
[0364] A first determining unit 801 is used to determine a target security scheme for security protection of the relay discovery message;
[0365] A first processing unit 802 is configured to perform security protection on the generated first relay discovery message according to the target security scheme;
[0366] A first sending unit 803 is configured to send the first relay discovery message for security protection to a relay device;
[0367] The first relay discovery message includes at least one of the following:
[0368] Identification information of the target security solution;
[0369] The validity period of the first relay discovery message.
[0370] Optionally, the first determining unit 801 is configured to:
[0371] Receiving relay discovery security policy indication information sent by a key management function, the relay discovery security policy indication information including: at least one relay discovery security scheme and identification information of a security scheme corresponding to the at least one relay discovery security scheme, the relay discovery security scheme being associated with a relay service code RSC;
[0372] Based on the at least one relay discovery security scheme, a security scheme for performing security protection on the relay discovery message is determined as a target security scheme.
[0373] Optionally, the relay discovery security solution includes at least one of the following:
[0374] an indication of protecting the relay discovery message using the first key set and the second key set;
[0375] an indication of using a second key set to protect the relay discovery message;
[0376] an indication of whether to enable privacy protection for the first terminal and / or the second terminal;
[0377] Indication of whether to enable privacy protection for relay devices;
[0378] An indication of whether to enable privacy protection for the first terminal and / or the second terminal and the relay device;
[0379] An indication of whether to enable integrity protection of the direct discovery dataset;
[0380] An indication of whether to enable integrity protection of relay discovery messages;
[0381] The first key set is used to protect messages sent directly from the first terminal to the second terminal, and the second key set is used to protect relay discovery messages from the first terminal and / or the second terminal to a relay device.
[0382] Optionally, the first relay discovery message also includes:
[0383] Direct discovery of datasets;
[0384] A first device-to-device U2U discovery data set.
[0385] Optionally, when the first relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in a first U2U discovery data set.
[0386] Optionally, when the first relay discovery message includes the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
[0387] Optionally, the first relay discovery message also includes: identification information of the first terminal.
[0388] Optionally, the identification information of the first terminal satisfies at least one of the following:
[0389] The identification information of the first terminal is located in the direct discovery data set;
[0390] The identification information of the first terminal is encrypted by a key in a first key set.
[0391] Optionally, the first processing unit 802 is configured to implement at least one of the following:
[0392] Protecting a direct discovery data set in the first relay discovery message using a first key set;
[0393] Protecting a first U2U discovery data set in the first relay discovery message using a second key set;
[0394] The first relay discovery message is protected using a second key set.
[0395] It should be noted that the device embodiment is a device that corresponds one-to-one to the above-mentioned method embodiment. All implementation methods in the above-mentioned method embodiment are applicable to the device embodiment and can achieve the same technical effect.
[0396] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0397] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0398] like Fig. 9 As shown, the embodiment of the present application further provides a terminal, which is a first terminal, including a processor 900, a transceiver 910, a memory 920, and a program stored in the memory 920 and executable on the processor 900; wherein the transceiver 910 is connected to the processor 900 and the memory 920 through a bus interface, wherein the processor 900 is used to read the program in the memory and execute the following process:
[0399] Determine the target security scheme for securing relay discovery messages;
[0400] According to the target security scheme, security protection is performed on the generated first relay discovery message;
[0401] Sending the first relay discovery message for security protection to the relay device;
[0402] The first relay discovery message includes at least one of the following:
[0403] Identification information of the target security solution;
[0404] The validity period of the first relay discovery message.
[0405] The transceiver 910 is configured to receive and send data under the control of the processor 900 .
[0406] Among them, Fig. 9In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 900 and various circuits of memory represented by memory 920 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 910 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, including transmission media such as wireless channels, wired channels, and optical cables. For different user devices, the user interface 930 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0407] The processor 900 is responsible for managing the bus architecture and general processing, and the memory 920 can store data used by the processor 900 when performing operations.
[0408] Optionally, the processor 900 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.
[0409] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0410] Optionally, the processor is configured to read the computer program in the memory to perform the following operations:
[0411] Receiving relay discovery security policy indication information sent by a key management function, the relay discovery security policy indication information including: at least one relay discovery security scheme and identification information of a security scheme corresponding to the at least one relay discovery security scheme, the relay discovery security scheme being associated with a relay service code RSC;
[0412] Based on the at least one relay discovery security scheme, a security scheme for performing security protection on the relay discovery message is determined as a target security scheme.
[0413] Optionally, the relay discovery security solution includes at least one of the following:
[0414] an indication of protecting the relay discovery message using the first key set and the second key set;
[0415] an indication of using a second key set to protect the relay discovery message;
[0416] an indication of whether to enable privacy protection for the first terminal and / or the second terminal;
[0417] Indication of whether to enable privacy protection for relay devices;
[0418] An indication of whether to enable privacy protection for the first terminal and / or the second terminal and the relay device;
[0419] An indication of whether to enable integrity protection of the direct discovery dataset;
[0420] An indication of whether to enable integrity protection of relay discovery messages;
[0421] The first key set is used to protect messages sent directly from the first terminal to the second terminal, and the second key set is used to protect relay discovery messages from the first terminal and / or the second terminal to a relay device.
[0422] Optionally, the first relay discovery message also includes:
[0423] Direct discovery of datasets;
[0424] A first device-to-device U2U discovery data set.
[0425] Optionally, when the first relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in a first U2U discovery data set.
[0426] Optionally, when the first relay discovery message includes the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
[0427] Optionally, the first relay discovery message also includes: identification information of the first terminal.
[0428] Optionally, the identification information of the first terminal satisfies at least one of the following:
[0429] The identification information of the first terminal is located in the direct discovery data set;
[0430] The identification information of the first terminal is encrypted by a key in a first key set.
[0431] Optionally, the processor is configured to read the computer program in the memory to perform at least one of the following operations:
[0432] Protecting a direct discovery data set in the first relay discovery message using a first key set;
[0433] Protecting a first U2U discovery data set in the first relay discovery message using a second key set;
[0434] The first relay discovery message is protected using a second key set.
[0435] It should be noted here that the above-mentioned terminal provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.
[0436] The embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the information transmission method applied to the first terminal. The processor-readable storage medium may be any available medium or data storage device that the processor can access, including but not limited to magnetic storage (such as a floppy disk, a hard disk, a magnetic tape, a magneto-optical disk (MO), etc.), optical storage (such as a CD, a DVD, a BD, a HVD, etc.), and semiconductor storage (such as a ROM, an EPROM, an EEPROM, a non-volatile memory (NAND FLASH), a solid-state drive (SSD)), etc.
[0437] like Fig.10 As shown, the embodiment of the present application provides an information transmission device 1000, which is applied to a relay device, including:
[0438] The receiving unit 1001 is configured to receive a first relay discovery message sent by a first terminal, where the first relay discovery message is security protected by the first terminal based on a target security scheme;
[0439] A generating unit 1002, configured to generate a second relay discovery message according to the first relay discovery message;
[0440] The second processing unit 1003 is used to perform security protection on the second relay discovery message;
[0441] The second sending unit 1004 is configured to send a second relay discovery message with security protection to a second terminal;
[0442] The first relay discovery message includes at least one of the following:
[0443] Identification information of the target security solution;
[0444] The validity period of the first relay discovery message.
[0445] Optionally, the first relay discovery message also includes:
[0446] Direct discovery of datasets;
[0447] A first device-to-device U2U discovery data set.
[0448] Optionally, when the first relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in a first U2U discovery data set.
[0449] Optionally, when the first relay discovery message includes the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
[0450] Optionally, the first relay discovery message also includes: identification information of the first terminal.
[0451] Optionally, the generating unit 1002 is used to:
[0452] Determine a target security scheme for security protection of the first relay discovery message by the first terminal;
[0453] verifying and decrypting the first relay discovery message according to the target security scheme;
[0454] A second relay discovery message is generated according to the decrypted first relay discovery message.
[0455] Optionally, the determining an implementation manner of a target security scheme for the first terminal to perform security protection on the first relay discovery message includes:
[0456] Obtaining identification information of the target security scheme in the first relay discovery message;
[0457] A target security solution is determined according to the identification information.
[0458] Optionally, the second relay discovery message includes at least one of the following:
[0459] Identification information of the target security solution;
[0460] The validity period of the first relay discovery message.
[0461] Optionally, the second relay discovery message also includes:
[0462] Second, U2U discovered datasets and directly discovered dataset lists.
[0463] Optionally, when the second relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in the second U2U discovery data set.
[0464] Optionally, when the second relay discovery message includes: the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in a direct discovery data set list.
[0465] Optionally, the direct discovery data set list includes: a direct discovery data set in a first relay discovery message sent by at least one first terminal.
[0466] Optionally, when the second relay discovery message includes: the validity period of the first relay discovery message, the apparatus further includes:
[0467] A judging unit, configured to judge whether the first relay discovery message is valid according to the validity period of the first relay discovery message;
[0468] A second determining unit is configured to determine, if the first relay discovery message is valid, that the direct discovery data set list includes the direct discovery data set in the first relay discovery message.
[0469] Optionally, the second relay discovery message also includes: identification information of the relay device.
[0470] Optionally, the identification information of the relay device satisfies at least one of the following:
[0471] The identification information of the relay device is located in the U2U discovery data set;
[0472] The identification information of the relay device is encrypted by a key in a second key set;
[0473] The second key set is used to protect relay discovery messages between the first terminal and / or the second terminal and the relay device.
[0474] Optionally, the second processing unit 1003 is configured to implement at least one of the following:
[0475] Protecting a second U2U discovery data set in the second relay discovery message using a second key set;
[0476] The second relay discovery message is protected using a second key set.
[0477] It should be noted that the device embodiment is a device that corresponds one-to-one to the above-mentioned method embodiment. All implementation methods in the above-mentioned method embodiment are applicable to the device embodiment and can achieve the same technical effect.
[0478] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0479] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0480] like Fig.11 As shown, the embodiment of the present application further provides a relay device, including a processor 1100, a transceiver 1110, a memory 1120, and a program stored in the memory 1120 and executable on the processor 1100; wherein the transceiver 1110 is connected to the processor 1100 and the memory 1120 through a bus interface, wherein the processor 1100 is used to read the program in the memory and execute the following process:
[0481] Receiving a first relay discovery message sent by a first terminal, where the first relay discovery message is security protected by the first terminal based on a target security scheme;
[0482] Generate a second relay discovery message according to the first relay discovery message;
[0483] Performing security protection on the second relay discovery message;
[0484] Sending a second relay discovery message for security protection to the second terminal;
[0485] The first relay discovery message includes at least one of the following:
[0486] Identification information of the target security solution;
[0487] The validity period of the first relay discovery message.
[0488] The transceiver 1110 is configured to receive and send data under the control of the processor 1100 .
[0489] Among them, Fig.11 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 1100 and memory represented by memory 1120. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1110 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, including transmission media such as wireless channels, wired channels, optical cables, and the like.
[0490] The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 can store data used by the processor 1100 when performing operations.
[0491] Optionally, the processor 1100 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.
[0492] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0493] Optionally, the first relay discovery message also includes:
[0494] Direct discovery of datasets;
[0495] A first device-to-device U2U discovery data set.
[0496] Optionally, when the first relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in a first U2U discovery data set.
[0497] Optionally, when the first relay discovery message includes the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
[0498] Optionally, the first relay discovery message also includes: identification information of the first terminal.
[0499] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0500] Determine a target security scheme for security protection of the first relay discovery message by the first terminal;
[0501] verifying and decrypting the first relay discovery message according to the target security scheme;
[0502] A second relay discovery message is generated according to the decrypted first relay discovery message.
[0503] Optionally, the processor is configured to read the computer program in the memory and perform the following operations:
[0504] Obtaining identification information of the target security scheme in the first relay discovery message;
[0505] A target security solution is determined according to the identification information.
[0506] Optionally, the second relay discovery message includes at least one of the following:
[0507] Identification information of the target security solution;
[0508] The validity period of the first relay discovery message.
[0509] Optionally, the second relay discovery message also includes:
[0510] Second, U2U discovered datasets and directly discovered dataset lists.
[0511] Optionally, when the second relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in the second U2U discovery data set.
[0512] Optionally, when the second relay discovery message includes: the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in a direct discovery data set list.
[0513] Optionally, the direct discovery data set list includes: a direct discovery data set in a first relay discovery message sent by at least one first terminal.
[0514] Optionally, in a case where the second relay discovery message includes: the validity period of the first relay discovery message, the processor, for reading the computer program in the memory, further performs the following operations:
[0515] Determining whether the first relay discovery message is valid according to the validity period of the first relay discovery message;
[0516] If the first relay discovery message is valid, it is determined that the direct discovery data set list includes the direct discovery data set in the first relay discovery message.
[0517] Optionally, the second relay discovery message also includes: identification information of the relay device.
[0518] Optionally, the identification information of the relay device satisfies at least one of the following:
[0519] The identification information of the relay device is located in the U2U discovery data set;
[0520] The identification information of the relay device is encrypted by a key in a second key set;
[0521] The second key set is used to protect relay discovery messages between the first terminal and / or the second terminal and the relay device.
[0522] Optionally, the processor is configured to read the computer program in the memory and perform at least one of the following operations:
[0523] Protecting a second U2U discovery data set in the second relay discovery message using a second key set;
[0524] The second relay discovery message is protected using a second key set.
[0525] It should be noted here that the above-mentioned relay device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0526] The embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the information transmission method applied to a relay device. The processor-readable storage medium may be any available medium or data storage device that the processor can access, including but not limited to magnetic storage (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (e.g., CD, DVD, BD, HVD, etc.), and semiconductor storage (e.g., ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.
[0527] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0528] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0529] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0530] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0531] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for transmitting information, It is characterized in that The method is executed by the first terminal and includes: Determine the target security scheme for securing relay discovery messages; According to the target security scheme, security protection is performed on the generated first relay discovery message; Sending the first relay discovery message for security protection to the relay device; The first relay discovery message includes at least one of the following: Identification information of the target security solution; The validity period of the first relay discovery message.
2. The method according to claim 1, It is characterized in that The determining of a target security scheme for performing security protection on the relay discovery message includes: Receiving relay discovery security policy indication information sent by a key management function, the relay discovery security policy indication information including: at least one relay discovery security scheme and identification information of a security scheme corresponding to the at least one relay discovery security scheme, the relay discovery security scheme being associated with a relay service code RSC; Based on the at least one relay discovery security scheme, a security scheme for performing security protection on the relay discovery message is determined as a target security scheme.
3. The method according to claim 1 or 2, It is characterized in that The relay discovery security solution includes at least one of the following: an indication of protecting the relay discovery message using the first key set and the second key set; an indication of using a second key set to protect the relay discovery message; an indication of whether to enable privacy protection for the first terminal and / or the second terminal; Indication of whether to enable privacy protection for relay devices; An indication of whether to enable privacy protection for the first terminal and / or the second terminal and the relay device; An indication of whether to enable integrity protection of the direct discovery dataset; An indication of whether to enable integrity protection of relay discovery messages; The first key set is used to protect messages sent directly from the first terminal to the second terminal, and the second key set is used to protect relay discovery messages from the first terminal and / or the second terminal to a relay device.
4. The method according to any one of claims 1 to 3, It is characterized in that The first relay discovery message also includes: Direct discovery of datasets; A first device-to-device U2U discovery data set.
5. The method according to claim 4, It is characterized in that In a case where the first relay discovery message includes: identification information of the target security solution, the identification information of the target security solution is located in the first U2U discovery data set.
6. The method according to claim 4, It is characterized in that In a case where the first relay discovery message includes the validity time of the first relay discovery message, the validity time of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
7. The method according to claim 4, It is characterized in that The first relay discovery message also includes: identification information of the first terminal.
8. The method according to claim 7, It is characterized in that The identification information of the first terminal satisfies at least one of the following: The identification information of the first terminal is located in the direct discovery data set; The identification information of the first terminal is encrypted by a key in a first key set.
9. The method according to any one of claims 1 to 8, It is characterized in that The step of performing security protection on the generated first relay discovery message according to the target security scheme includes at least one of the following: Protecting a direct discovery data set in the first relay discovery message using a first key set; Protecting a first U2U discovery data set in the first relay discovery message using a second key set; The first relay discovery message is protected using a second key set.
10. A method for transmitting information, It is characterized in that Executed by the relay device, including: Receiving a first relay discovery message sent by a first terminal, where the first relay discovery message is security protected by the first terminal based on a target security scheme; Generate a second relay discovery message according to the first relay discovery message; Performing security protection on the second relay discovery message; Sending a second relay discovery message for security protection to the second terminal; The first relay discovery message includes at least one of the following: Identification information of the target security solution; The validity period of the first relay discovery message.
11. The method according to claim 10, It is characterized in that The first relay discovery message also includes: Direct discovery of datasets; A first device-to-device U2U discovery data set.
12. The method according to claim 11, It is characterized in that In a case where the first relay discovery message includes: identification information of the target security solution, the identification information of the target security solution is located in the first U2U discovery data set.
13. The method according to claim 11, It is characterized in that In a case where the first relay discovery message includes the validity time of the first relay discovery message, the validity time of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
14. The method according to claim 11, It is characterized in that The first relay discovery message also includes: identification information of the first terminal.
15. The method according to any one of claims 10 to 14, It is characterized in that The generating a second relay discovery message according to the first relay discovery message includes: Determine a target security scheme for security protection of the first relay discovery message by the first terminal; verifying and decrypting the first relay discovery message according to the target security scheme; A second relay discovery message is generated according to the decrypted first relay discovery message.
16. The method according to claim 15, It is characterized in that The determining a target security scheme for the first terminal to perform security protection on the first relay discovery message includes: Obtaining identification information of the target security scheme in the first relay discovery message; A target security solution is determined according to the identification information.
17. The method according to any one of claims 10 to 16, It is characterized in that The second relay discovery message includes at least one of the following: Identification information of the target security solution; The validity period of the first relay discovery message.
18. The method according to claim 17, It is characterized in that The second relay discovery message also includes: Second, U2U discovered datasets and directly discovered dataset lists.
19. The method according to claim 18, It is characterized in that In a case where the second relay discovery message includes: identification information of the target security scheme, the identification information of the target security scheme is located in the second U2U discovery data set.
20. The method according to claim 18, It is characterized in that In a case where the second relay discovery message includes: the validity period of the first relay discovery message, the validity period of the first relay discovery message is located in the direct discovery data set list.
21. The method according to claim 18, It is characterized in that The direct discovery data set list includes: a direct discovery data set in a first relay discovery message sent by at least one first terminal.
22. The method according to claim 18, It is characterized in that In a case where the second relay discovery message includes: a valid time of the first relay discovery message, the method further includes: Determining whether the first relay discovery message is valid according to the validity period of the first relay discovery message; If the first relay discovery message is valid, it is determined that the direct discovery data set list includes the direct discovery data set in the first relay discovery message.
23. The method according to claim 17, It is characterized in that The second relay discovery message also includes: identification information of the relay device.
24. The method according to claim 17, It is characterized in that The identification information of the relay device satisfies at least one of the following: The identification information of the relay device is located in the U2U discovery data set; The identification information of the relay device is encrypted by a key in a second key set; The second key set is used to protect relay discovery messages between the first terminal and / or the second terminal and the relay device.
25. The method according to any one of claims 10 to 24, It is characterized in that The performing security protection on the second relay discovery message includes at least one of the following: Protecting a second U2U discovery data set in the second relay discovery message using a second key set; The second relay discovery message is protected using a second key set.
26. A terminal, the terminal being a first terminal, It is characterized in that Including memory, transceiver, processor: A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: Determine the target security scheme for securing relay discovery messages; According to the target security scheme, security protection is performed on the generated first relay discovery message; Sending the first relay discovery message for security protection to the relay device; The first relay discovery message includes at least one of the following: Identification information of the target security solution; The validity period of the first relay discovery message.
27. The terminal according to claim 26, It is characterized in that The processor is configured to read the computer program in the memory and perform the following operations: Receiving relay discovery security policy indication information sent by a key management function, the relay discovery security policy indication information including: at least one relay discovery security scheme and identification information of a security scheme corresponding to the at least one relay discovery security scheme, the relay discovery security scheme being associated with a relay service code RSC; Based on the at least one relay discovery security scheme, a security scheme for performing security protection on the relay discovery message is determined as a target security scheme.
28. The terminal according to claim 26 or 27, It is characterized in that The relay discovery security solution includes at least one of the following: an indication of protecting the relay discovery message using the first key set and the second key set; an indication of using a second key set to protect the relay discovery message; an indication of whether to enable privacy protection for the first terminal and / or the second terminal; Indication of whether to enable privacy protection for relay devices; An indication of whether to enable privacy protection for the first terminal and / or the second terminal and the relay device; An indication of whether to enable integrity protection of the direct discovery dataset; An indication of whether to enable integrity protection of relay discovery messages; The first key set is used to protect messages sent directly from the first terminal to the second terminal, and the second key set is used to protect relay discovery messages from the first terminal and / or the second terminal to a relay device.
29. The terminal according to any one of claims 26 to 28, It is characterized in that The first relay discovery message also includes: Direct discovery of datasets; A first device-to-device U2U discovery data set.
30. The terminal according to claim 29, It is characterized in that In a case where the first relay discovery message includes: identification information of the target security solution, the identification information of the target security solution is located in the first U2U discovery data set.
31. The terminal according to claim 29, It is characterized in that In a case where the first relay discovery message includes the validity time of the first relay discovery message, the validity time of the first relay discovery message is located in the direct discovery data set or the first U2U discovery data set.
32. The terminal according to claim 29, It is characterized in that The first relay discovery message also includes: identification information of the first terminal.
33. The terminal according to claim 32, It is characterized in that The identification information of the first terminal satisfies at least one of the following: The identification information of the first terminal is located in the direct discovery data set; The identification information of the first terminal is encrypted by a key in a first key set.
34. The terminal according to any one of claims 26 to 32, It is characterized in that The processor is configured to read the computer program in the memory and perform at least one of the following operations: Protecting a direct discovery data set in the first relay discovery message using a first key set; Protecting a first U2U discovery data set in the first relay discovery message using a second key set; The first relay discovery message is protected using a second key set.
35. A relay device, It is characterized in that Including memory, transceiver, processor: A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: Receiving a first relay discovery message sent by a first terminal, where the first relay discovery message is security protected by the first terminal based on a target security scheme; Generate a second relay discovery message according to the first relay discovery message; Performing security protection on the second relay discovery message; Sending a second relay discovery message for security protection to the second terminal; The first relay discovery message includes at least one of the following: Identification information of the target security solution; The validity period of the first relay discovery message.
36. The relay device according to claim 35, It is characterized in that The processor is configured to read the computer program in the memory and perform the following operations: Determine a target security scheme for security protection of the first relay discovery message by the first terminal; verifying and decrypting the first relay discovery message according to the target security scheme; A second relay discovery message is generated according to the decrypted first relay discovery message.
37. The relay device according to claim 36, It is characterized in that The processor is configured to read the computer program in the memory and perform the following operations: Obtaining identification information of the target security scheme in the first relay discovery message; A target security solution is determined according to the identification information.
38. The relay device according to any one of claims 35 to 37, It is characterized in that The processor is configured to read the computer program in the memory and perform at least one of the following operations: Protecting a second U2U discovery data set in the second relay discovery message using a second key set; The second relay discovery message is protected using a second key set.
39. An information transmission device, applied to a first terminal, It is characterized in that include: A first determining unit, configured to determine a target security scheme for performing security protection on a relay discovery message; A first processing unit, configured to perform security protection on the generated first relay discovery message according to the target security scheme; A first sending unit, configured to send the first relay discovery message for security protection to a relay device; The first relay discovery message includes at least one of the following: Identification information of the target security solution; The validity period of the first relay discovery message.
40. An information transmission device, applied to a relay device, It is characterized in that include: A receiving unit, configured to receive a first relay discovery message sent by a first terminal, wherein the first relay discovery message is security protected by the first terminal based on a target security scheme; A generating unit, configured to generate a second relay discovery message according to the first relay discovery message; A second processing unit, configured to perform security protection on the second relay discovery message; A second sending unit, configured to send a second relay discovery message with security protection to a second terminal; The first relay discovery message includes at least one of the following: Identification information of the target security solution; The validity period of the first relay discovery message.
41. A processor-readable storage medium, It is characterized in that The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the method according to any one of claims 1 to 25.
