Security protection method and device, communication equipment and storage medium

CN118575496APending Publication Date: 2024-08-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280002262.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-06-20
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the 5G architecture that supports ranging or direct link positioning, how to correctly apply security requirements in the ranging direct link positioning protocol layer between terminals is an unsolved problem.

Method used

Send ranging direct link positioning protocol security policy information to the terminal through the network function, instructing the terminal to execute the security policy of the ranging direct link positioning protocol process, including signaling integrity protection and encryption protection information to ensure that the terminal is in PC5 Secure connection and data transmission of the interface.

Benefits of technology

It improves the security of ranging or direct link communication between terminals, ensures the signaling integrity and encryption protection of ranging or SL positioning services, and prevents location information leakage and attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575496A
    Figure CN118575496A
Patent Text Reader

Abstract

The embodiment of the invention provides a ranging direct link positioning protocol-based security protection method, which is executed by a network function and comprises the following steps of: sending ranging direct link positioning protocol security policy information to a terminal; wherein the ranging direct link positioning protocol security policy information indicates the terminal to execute a security policy of a ranging direct link positioning protocol process.
Need to check novelty before this filing date? Find Prior Art

Description

Security protection method, device, communication equipment and storage medium Technical Field

[0001] The present disclosure relates to the field of wireless communication technology but is not limited to the field of wireless communication technology, and in particular to a security protection method, apparatus, communication equipment and storage medium based on a ranging direct link positioning protocol. Background Art

[0002] In an enhanced fifth-generation mobile communication (5G) architecture supporting ranging or sidelink (SL) positioning, a scheme based on a ranging sidelink positioning protocol is proposed. This protocol is used to transmit ranging capability information, auxiliary data information, and / or positioning information used for ranging or SL positioning between terminals. In related technologies, how to correctly apply the security requirements of ranging or sidelink positioning services to the ranging sidelink positioning protocol layer between terminals remains to be studied.

[0003] Summary of the Invention

[0004] The embodiments of the present disclosure disclose a security protection method, apparatus, communication equipment and storage medium based on a ranging direct link positioning protocol.

[0005] According to a first aspect of an embodiment of the present disclosure, a security protection method based on a ranging direct link positioning protocol is provided, wherein the method is performed by a network function and includes:

[0006] Sending ranging direct link positioning protocol security policy information to the terminal;

[0007] The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

[0008] In one embodiment, the ranging direct link positioning protocol security policy information indicates a mapping relationship between at least one ranging direct link positioning service and a ranging direct link positioning protocol security policy.

[0009] In one embodiment, the ranging direct link positioning protocol security policy information includes at least one of the following:

[0010] Signaling integrity protection information is used to indicate the following ranging direct link positioning protocol strategies:

[0011] The terminal accepts connections only if the PC5 interface is integrity protected;

[0012] Signaling encryption protection information, used to indicate one of the following ranging direct link positioning protocol strategies:

[0013] The terminal will only accept connections if the PC5 interface is protected by encryption;

[0014] The terminal only establishes a connection that is not protected by encryption;

[0015] The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

[0016] In one embodiment, the network function is a policy control function PCF, and the sending of ranging direct link positioning protocol security policy information to the terminal includes:

[0017] In the service authorization and configuration process, ranging direct link positioning protocol security policy information is sent to the terminal.

[0018] In one embodiment, the network function is a 5G proximity communication key management function PKMF or a 5G proximity service name management function DDNMF, and the sending of ranging direct link positioning protocol security policy information to the terminal includes:

[0019] In the terminal discovery process, ranging direct link positioning protocol security policy information is sent to the terminal.

[0020] According to a second aspect of an embodiment of the present disclosure, a security protection method based on a ranging direct link positioning protocol is provided, wherein the method is performed by a terminal and includes:

[0021] Receive ranging direct link positioning protocol security policy information sent by the network function;

[0022] The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

[0023] In one embodiment, the ranging direct link positioning protocol security policy information indicates a mapping relationship between at least one ranging direct link positioning service and a ranging direct link positioning protocol security policy.

[0024] In one embodiment, the ranging direct link positioning protocol security policy information includes at least one of the following:

[0025] Signaling integrity protection information is used to indicate the following ranging direct link positioning protocol strategies:

[0026] The terminal accepts connections only if the PC5 interface is integrity protected;

[0027] Signaling encryption protection information, used to indicate one of the following ranging direct link positioning protocol strategies:

[0028] The terminal will only accept connections if the PC5 interface is protected by encryption;

[0029] The terminal only establishes a connection that is not protected by encryption;

[0030] The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

[0031] In one embodiment, the network function is a policy control function PCF, and the receiving of ranging direct link positioning protocol security policy information sent by the network function includes:

[0032] In the service authorization and configuration process, the ranging direct link positioning protocol security policy information sent by the network function is received.

[0033] In one embodiment, the network function is a 5G proximity communication key management function PKMF or a 5G proximity service name management function DDNMF, and the receiving of the ranging direct link positioning protocol security policy information sent by the network function includes:

[0034] In the terminal discovery process, the ranging direct link positioning protocol security policy information sent by the network function is received.

[0035] In one embodiment, the terminal is a first terminal initiating direct communication; and the method further includes:

[0036] In response to the first terminal discovering the second terminal, it is determined that the direct communication is direct communication established for a ranging direct link positioning service rather than direct communication established for a proximity service (ProSe).

[0037] In one embodiment, the method further comprises:

[0038] Based on the ranging direct link positioning protocol security policy information, a ranging direct link positioning protocol security policy of the first terminal is selected and sent to the second terminal.

[0039] In one embodiment, the method further comprises:

[0040] Sending the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal to the second terminal.

[0041] In one embodiment, the sending the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal to the second terminal includes:

[0042] The ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal are sent to the second terminal through a direct communication request message.

[0043] In one embodiment, the security algorithm information, the ranging direct link positioning protocol security policy of the first terminal, and / or the security capability information of the first terminal sent by the second terminal are received.

[0044] In one embodiment, the security algorithm information, the RSPP security policy of the first terminal and / or the security capability information of the first terminal sent by the second terminal are received through a direct security mode command message.

[0045] In one embodiment, the terminal is a discovered second terminal for direct communication; the method further includes:

[0046] Receive the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal sent by the first terminal initiating direct communication.

[0047] In one embodiment, the receiving, from the first terminal initiating direct communication, a ranging direct link positioning protocol security policy of the first terminal and / or security capability information of the first terminal includes:

[0048] The ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal, which are sent by the first terminal, are received through the direct communication request message.

[0049] In one embodiment, the method further comprises at least one of the following:

[0050] In response to the ranging direct link positioning protocol security policy indication of the first terminal, the terminal only establishes a connection that is not integrity protected and rejects the direct communication request message;

[0051] In response to the ranging direct link positioning protocol security policy of the first terminal indicating that the terminal only establishes connections that are not protected by encryption, and the ranging direct link positioning protocol security policy of the second terminal indicating that the terminal only accepts connections when the PC5 interface is protected by encryption, rejecting the direct communication request message;

[0052] In response to the ranging direct link positioning protocol security policy of the first terminal indicating that the terminal accepts the connection only when the PC5 interface is encrypted and protected, and the ranging direct link positioning protocol security policy of the second terminal indicating that the terminal only establishes connections that are not encrypted and protected, the direct communication request message is rejected.

[0053] In one embodiment, the method further comprises:

[0054] The second terminal initiates a direct authentication and / or key establishment process with the first terminal.

[0055] In one embodiment, the method further comprises at least one of the following:

[0056] In response to the ranging direct link positioning protocol security policy of the first terminal and the ranging direct link positioning protocol security policy of the second terminal both indicating that the terminal only establishes a connection that is not protected by encryption and accepts the direct communication request message;

[0057] In response to the ranging direct link positioning protocol security policy of the first terminal and the ranging direct link positioning protocol security policy of the second terminal both indicating that the terminal accepts the connection only when the PC5 interface is encrypted and protected, accepting the direct communication request message;

[0058] In response to the ranging direct link positioning protocol security policy indication of the first terminal that the terminal only establishes a connection that is not protected by encryption, and the ranging direct link positioning protocol security policy indication of the second terminal that the terminal will attempt to establish an encryption-protected connection and will receive a connection that is not protected by encryption, accepting the direct communication request message;

[0059] In response to the ranging direct link positioning protocol security policy of the first terminal indicating that the terminal will attempt to establish an encryption-protected connection and will receive an unencrypted connection, and the ranging direct link positioning protocol security policy of the second terminal indicating that the terminal will only establish an unencrypted connection, accepting the direct communication request message;

[0060] In response to the ranging direct link positioning protocol security policy of the first terminal indicating that the terminal accepts a connection only when the PC5 interface is protected by encryption, and the ranging direct link positioning protocol security policy of the second terminal indicating that the terminal will attempt to establish encryption protection and will accept connections that are not protected by encryption, accepting the direct communication request message;

[0061] In response to the ranging direct link positioning protocol security policy indication of the first terminal: the terminal will attempt to establish encryption protection and will receive connections that are not encrypted, and accept the direct communication request message, and the ranging direct link positioning protocol security policy indication of the second terminal: the terminal will accept the connection only when the PC5 interface is encrypted, and accept the direct communication request message.

[0062] In one embodiment, the method further comprises:

[0063] In response to determining to use the ranging direct link positioning protocol security policy, a security algorithm for integrity and / or encryption protection is determined based on the security capability information of the first terminal and the security capability information of the second terminal.

[0064] In one embodiment, the method further comprises:

[0065] Sending information about the security algorithm, a ranging direct link positioning protocol security policy of the first terminal, and / or security capability information of the first terminal to the first terminal.

[0066] In one embodiment, the sending the security algorithm information to the first terminal includes:

[0067] The security algorithm information, the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal are sent to the first terminal through a direct security mode command message.

[0068] In one embodiment, the direct security mode command message is integrity protected based on a security algorithm selected for integrity protection.

[0069] According to a third aspect of an embodiment of the present disclosure, a security protection device based on a ranging direct link positioning protocol is provided, wherein the device includes:

[0070] A sending module, configured to send ranging direct link positioning protocol security policy information to the terminal;

[0071] The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

[0072] According to a fourth aspect of an embodiment of the present disclosure, a security protection device based on a ranging direct link positioning protocol is provided, wherein the device includes:

[0073] a receiving module configured to receive ranging direct link positioning protocol security policy information sent by the network function;

[0074] The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

[0075] According to a fifth aspect of an embodiment of the present disclosure, a communication device is provided, the communication device including:

[0076] processor;

[0077] a memory for storing instructions executable by the processor;

[0078] The processor is configured to implement the method described in any embodiment of the present disclosure when running the executable instructions.

[0079] According to a sixth aspect of an embodiment of the present disclosure, a computer storage medium is provided, wherein the computer storage medium stores a computer executable program, and when the executable program is executed by a processor, the method described in any embodiment of the present disclosure is implemented.

[0080] In an embodiment of the present disclosure, a network function sends ranging direct link positioning protocol security policy information to a terminal; wherein the ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy for a ranging direct link positioning protocol process. Here, because the ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy for a ranging direct link positioning protocol process, after receiving the ranging direct link positioning protocol security policy information, the terminal can execute the ranging direct link positioning protocol process based on the security policy indicated by the ranging direct link positioning protocol security policy information. Compared with a method of executing the ranging direct link positioning protocol process not based on a security policy, the security of ranging or direct link communication between terminals is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Fig. 1 is a schematic structural diagram of a wireless communication system according to an exemplary embodiment.

[0082] Fig. 2 is a schematic diagram showing protocol layers according to an exemplary embodiment.

[0083] FIG3 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0084] Fig. 4 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0085] FIG5 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0086] Fig. 6 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0087] FIG7 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0088] FIG8 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0089] FIG9 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0090] FIG10 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0091] FIG11 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0092] FIG12 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0093] FIG13 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0094] FIG14 is a schematic flow chart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0095] FIG15 is a flowchart showing a security protection method based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0096] FIG16 is a schematic diagram showing a security protection device based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0097] FIG17 is a schematic diagram showing a security protection device based on a ranging direct link positioning protocol according to an exemplary embodiment.

[0098] Fig. 18 is a schematic structural diagram of a terminal according to an exemplary embodiment.

[0099] Fig. 19 is a block diagram of a base station according to an exemplary embodiment. DETAILED DESCRIPTION

[0100] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0101] The terms used in the embodiments of the present disclosure are for the purpose of describing specific embodiments only and are not intended to limit the embodiments of the present disclosure. The singular forms "a," "an," and "the" used in the embodiments of the present disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0102] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present disclosure, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the embodiments of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0103] For the purpose of brevity and ease of understanding, the terms "greater than" or "less than" are used herein to describe magnitude relationships. However, those skilled in the art will understand that the term "greater than" also encompasses the meaning of "greater than or equal to," and "less than" also encompasses the meaning of "less than or equal to."

[0104] Please refer to Figure 1, which shows a schematic diagram of the structure of a wireless communication system provided by an embodiment of the present disclosure. As shown in Figure 1, the wireless communication system is a communication system based on mobile communication technology, and the wireless communication system may include: a plurality of user equipments 110 and a plurality of base stations 120.

[0105] The user equipment 110 may refer to a device that provides voice and / or data connectivity to a user. The user equipment 110 may communicate with one or more core networks via a radio access network (RAN). The user equipment 110 may be an Internet of Things user device, such as a sensor device, a mobile phone, and a computer with an Internet of Things user device. For example, the user equipment 110 may be a fixed, portable, pocket-sized, handheld, computer-built-in, or vehicle-mounted device. For example, a station (STA), a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, an access point, a remote user device, an access terminal, a user terminal, a user agent, a user device, or user equipment. Alternatively, the user equipment 110 may be a device of an unmanned aerial vehicle. Alternatively, the user equipment 110 may be an in-vehicle device, such as a vehicle-mounted computer with wireless communication capabilities, or a wireless user device connected to an external vehicle-mounted computer. Alternatively, the user equipment 110 may also be a roadside device, for example, a street lamp, a traffic light, or other roadside device with a wireless communication function.

[0106] The base station 120 may be a network-side device in a wireless communication system. The wireless communication system may be a fourth-generation mobile communication technology (4G) system, also known as a long-term evolution (LTE) system; or, the wireless communication system may be a 5G system, also known as a new air interface system or a 5G NR system. Alternatively, the wireless communication system may be a next-generation system of the 5G system. The access network in the 5G system may be referred to as a New Generation-Radio Access Network (NG-RAN).

[0107] Among them, the base station 120 can be an evolved base station (eNB) adopted in a 4G system. Alternatively, the base station 120 can also be a base station (gNB) adopting a centralized distributed architecture in a 5G system. When the base station 120 adopts a centralized distributed architecture, it usually includes a centralized unit (CU) and at least two distributed units (DU). The centralized unit is provided with a protocol stack of a packet data convergence protocol (PDCP) layer, a radio link layer control protocol (RLC) layer, and a media access control (MAC) layer; the distributed unit is provided with a physical (PHY) layer protocol stack. The embodiment of the present disclosure does not limit the specific implementation method of the base station 120.

[0108] A wireless connection can be established between the base station 120 and the user equipment 110 via a wireless air interface. In various implementations, the wireless air interface is a wireless air interface based on the fourth generation mobile communication network technology (4G) standard; or, the wireless air interface is a wireless air interface based on the fifth generation mobile communication network technology (5G) standard, for example, the wireless air interface is a new air interface; or, the wireless air interface can also be a wireless air interface based on the next generation mobile communication network technology standard of 5G.

[0109] In some embodiments, E2E (End to End) connections may also be established between user devices 110. For example, in vehicle-to-everything (V2X) communication scenarios such as V2V (vehicle to vehicle), V2I (vehicle to infrastructure), and V2P (vehicle to pedestrian).

[0110] Here, the above user equipment can be considered as the terminal equipment in the following embodiments.

[0111] In some embodiments, the wireless communication system may further include a network management device 130 .

[0112] Several base stations 120 are respectively connected to a network management device 130. The network management device 130 may be a core network device in a wireless communication system. For example, the network management device 130 may be a mobility management entity (MME) in an evolved packet core (EPC). Alternatively, the network management device may be other core network devices, such as a serving gateway (SGW), a public data network gateway (PGW), a policy and charging rules function (PCRF), or a home subscriber server (HSS). The embodiments of the present disclosure do not limit the implementation form of the network management device 130.

[0113] To facilitate understanding by those skilled in the art, the embodiments of the present disclosure list multiple implementation methods to clearly illustrate the technical solutions of the embodiments of the present disclosure. Of course, those skilled in the art will understand that the multiple embodiments provided in the embodiments of the present disclosure can be implemented individually, or can be implemented together with the methods of other embodiments in the embodiments of the present disclosure, or can be implemented together with some methods in other related technologies individually or in combination; the embodiments of the present disclosure do not limit this.

[0114] In order to better understand the technical solutions described in any embodiment of the present disclosure, first, the application scenarios in the relevant technologies are described:

[0115] In one embodiment, the ranging or SL positioning protocol (RSPP) process is similar to the Long Term Evolution Positioning Protocol (LPP) process between the terminal and the Location Management Function (LMF) based on the non-access stratum (NAS) and is used for the interaction of ranging or SL positioning control signaling between terminals on the upper layer of the PC5 interface direct communication protocol. To implement the control of ranging or SL positioning operations, the following procedures need to be executed:

[0116] 1. Distance measurement or SL positioning equipment discovery;

[0117] 2. Direct communication establishment for ranging or SL positioning process;

[0118] 3. Ranging or SL positioning process.

[0119] In one embodiment, please refer to Figure 2, for device discovery and direct communication establishment for ranging or SL positioning, Model A and Model B direct discovery are proposed, which will be reused as the basis for ranging or SL positioning device discovery, and the existing unicast mode 5G proximity service ProSe direct communication establishment process is reused.

[0120] Because RSPP is built on the PC5 interface direct communication protocol, the security protection of RSPP direct communication can rely on the security protection of PC5 interface direct communication. Therefore, the security activation of the PC5 interface link for direct communication depends on the PC5 security policy provided by the network to the terminal. The PC5 security policy is defined based on the security requirements of a specific Proximity Service (ProSe) application or service running between terminals. That is, the PC5 interface security policy provided by the network is associated with the ProSe application or service supported and requested by ProSe through the terminal.

[0121] However, when reusing the security activation mechanism for direct communication over the PC5 interface for RSPP protection, the RSPP security policy may differ from the security policy of ProSe applications or services, as ranging or SL positioning services are likely to be different from ProSe applications or services. Therefore, how to correctly apply the security requirements of ranging or SL positioning services to RSPP layer protection between terminals remains to be studied.

[0122] In one embodiment, the security policy based on the PC5 link can be implemented by the network by configuring a list of ProSe applications or services that require security protection and the PC5 interface security policy of each ProSe application in the list, that is, the PC5 interface security policy is implemented based on the security requirements of the corresponding ProSe application or service.

[0123] In one embodiment, RSPP is used to control the operation of ranging or SL positioning services, and carries coordination and configuration information (for example, ranging capabilities and ranging assistance data) exchanged between terminals and measurement results of ranging or SL positioning. If the configuration information or measurement results are tampered with by an attacker through the air interface, the ranging or SL positioning service will not be able to provide correct terminal positioning data. Therefore, the control signaling exchanged between terminals through RSPP needs to be integrity protected. Since the position measurement results can be used to derive the positions of the relevant terminals, these terminals may not want their position information to be leaked to third parties that do not participate in the ranging or SL positioning services. Therefore, in order to protect the location information of the terminals involved, the control signaling exchanged between terminals through RSPP also needs to be kept confidential.

[0124] As shown in FIG3 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is performed by a network function and includes:

[0125] Step 31: Send ranging direct link positioning protocol security policy information to the terminal;

[0126] The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

[0127] Here, the terminal involved in the present disclosure may be, but is not limited to, a mobile phone, a wearable device, a vehicle-mounted terminal, a road side unit (RSU), a smart home terminal, an industrial sensor device and / or a medical device, etc. In some embodiments, the terminal may be a Redcap terminal or a predetermined version of a new air interface NR terminal (for example, an R17 NR terminal).

[0128] In the embodiment of the present disclosure, the network function may be a policy control function (PCF), a 5G proximity communication key management function (PKMF), or a 5G proximity service name management function (DDNMF).

[0129] In one embodiment, ranging direct link positioning protocol security policy information is sent to the terminal via the base station; wherein the ranging direct link positioning protocol security policy information indicates that the terminal executes the security policy of the ranging direct link positioning protocol process.

[0130] The access network device involved in the present disclosure may be a base station, for example, a base station of a third-generation mobile communication (3G) network, a base station of a fourth-generation mobile communication (4G) network, a base station of a fifth-generation mobile communication (5G) network, or other evolved base stations.

[0131] Here, the ranging / sidelink positioning protocol may be a protocol associated with ranging or SL positioning. The ranging / sidelink positioning protocol may be a ranging or SL positioning protocol (RSPP, Ranging / Sidelink Positioning Protocol).

[0132] In one embodiment, RSPP security policy information is sent to the terminal, wherein the RSPP security policy information indicates that the terminal executes the security policy of the RSPP process on the PC5 interface or the PC5-S interface.

[0133] In one embodiment, RSPP security policy information is sent to the terminal; wherein the RSPP security policy information indicates a mapping relationship between at least one ranging direct link positioning service and an RSPP security policy. Here, different ranging direct link positioning services may correspond to the same RSPP security policy; or, different ranging direct link positioning services may correspond to different RSPP security policies. It should be noted that after receiving the RSPP security policy information, the terminal may store the mapping relationship in a predetermined area, for example, in the form of a list in a predetermined area for easy query. In this way, after the terminal determines the ranging direct link positioning service that needs to be initiated, it can determine the RSPP security policy based on the ranging direct link positioning service and the mapping relationship by querying the list.

[0134] In one embodiment, RSPP security policy information is sent to the terminal; wherein the RSPP security policy information includes at least one of the following:

[0135] Signaling integrity protection information, used to indicate the following RSPP policies:

[0136] The terminal accepts the connection only if the PC5 interface is integrity protected;

[0137] Signaling encryption protection information, used to indicate one of the following RSPP policies:

[0138] The terminal will only accept connections if the PC5 interface is protected by encryption;

[0139] The terminal only establishes a connection that is not protected by encryption;

[0140] The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

[0141] Here, the identifier "REQUIRED" can be used to indicate that the terminal will only accept connections when the PC5 interface is integrity protected and that the terminal will only accept connections when the PC5 interface is encryption protected. The identifier "NOT NEEDED" can be used to indicate that the terminal will only establish connections that are not encryption protected. The identifier "PREFERRED" can be used to indicate that the terminal will attempt to establish encryption protected connections and will accept connections that are not encryption protected. One use of the "PREFERRED" indicator is to allow security policies to be changed without immediately updating all relevant terminals.

[0142] In one embodiment, the RSPP security policy and the security policy of the ProSe application or service may be configured separately.

[0143] It should be noted that since RSPP is a signaling protocol and is carried on the PC5-S interface, no user plane security policy is configured in the RSPP security policy.

[0144] In one embodiment, the network function is a policy control function PCF; in a service authorization and configuration process, RSPP security policy information is sent to the terminal.

[0145] In one embodiment, the network function is a 5G proximity communication key management function PKMF or a 5G proximity service name management function DDNMF; in the terminal discovery process, RSPP security policy information is sent to the terminal.

[0146] In an embodiment of the present disclosure, a network function sends RSPP security policy information to a terminal; the RSPP security policy information indicates the security policy for the terminal to execute the RSPP procedure. Since the RSPP security policy information indicates the security policy for the terminal to execute the RSPP procedure, upon receiving the RSPP security policy information, the terminal can execute the RSPP procedure based on the security policy indicated by the RSPP security policy information. This improves the security of inter-terminal ranging or direct link communications compared to methods that execute the RSPP procedure without a security policy.

[0147] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0148] As shown in FIG4 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is performed by a network function, which is a policy control function (PCF); the method includes:

[0149] Step 41: In the service authorization and configuration process, the ranging direct link positioning protocol security policy information is sent to the terminal.

[0150] In one embodiment, in the service authorization and configuration process, RSPP security policy information is sent to the terminal, wherein the RSPP security policy information indicates a mapping relationship between at least one ranging direct link positioning service and an RSPP security policy.

[0151] In one embodiment, in the service authorization and configuration process, RSPP security policy information is sent to the terminal, wherein the RSPP security policy information includes at least one of the following:

[0152] Signaling integrity protection information, used to indicate the following RSPP policies:

[0153] The terminal accepts the connection only if the PC5 interface is integrity protected;

[0154] Signaling encryption protection information, used to indicate one of the following RSPP policies:

[0155] The terminal will only accept connections if the PC5 interface is protected by encryption;

[0156] The terminal only establishes a connection that is not protected by encryption;

[0157] The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

[0158] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0159] As shown in FIG5 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is performed by a network function, which is a 5G proximity communication key management function PKMF or a 5G proximity service name management function DDNMF; the method includes:

[0160] Step 51: In the terminal discovery process, security policy information of the ranging direct link positioning protocol is sent to the terminal.

[0161] In one embodiment, in the terminal discovery process, RSPP security policy information is sent to the terminal, wherein the RSPP security policy information indicates a mapping relationship between at least one ranging direct link positioning service and an RSPP security policy.

[0162] In one embodiment, during the terminal discovery process, RSPP security policy information is sent to the terminal, wherein the RSPP security policy information includes at least one of the following:

[0163] Signaling integrity protection information, used to indicate the following RSPP policies:

[0164] The terminal accepts the connection only if the PC5 interface is integrity protected;

[0165] Signaling encryption protection information, used to indicate one of the following RSPP policies:

[0166] The terminal will only accept connections if the PC5 interface is protected by encryption;

[0167] The terminal only establishes a connection that is not protected by encryption;

[0168] The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

[0169] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0170] As shown in FIG6 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is executed by a terminal and includes:

[0171] Step 61: Receive ranging direct link positioning protocol security policy information sent by the network function;

[0172] The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

[0173] Here, the terminal involved in the present disclosure may be, but is not limited to, a mobile phone, a wearable device, a vehicle-mounted terminal, a road side unit (RSU), a smart home terminal, an industrial sensor device and / or a medical device, etc. In some embodiments, the terminal may be a Redcap terminal or a predetermined version of a new air interface NR terminal (for example, an R17 NR terminal).

[0174] In the embodiment of the present disclosure, the network function may be a policy control function (PCF), a 5G proximity communication key management function PKMF, or a 5G proximity service name management function DDNMF.

[0175] In one embodiment, ranging direct link positioning protocol security policy information is received from a network function via a base station; wherein the ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of an RSPP process.

[0176] The access network device involved in the present disclosure may be a base station, for example, a base station of a third-generation mobile communication (3G) network, a base station of a fourth-generation mobile communication (4G) network, a base station of a fifth-generation mobile communication (5G) network, or other evolved base stations.

[0177] Here, the ranging / sidelink positioning protocol may be a protocol associated with ranging or SL positioning. The ranging / sidelink positioning protocol may be a ranging or SL positioning protocol (RSPP, Ranging / Sidelink Positioning Protocol).

[0178] In one embodiment, RSPP security policy information sent by a network function is received; wherein the RSPP security policy information indicates that the terminal executes the security policy of the RSPP process on the PC5 interface or the PC5-S interface.

[0179] In one embodiment, RSPP security policy information sent by a network function is received; wherein the RSPP security policy information indicates a mapping relationship between at least one ranging direct link positioning service and an RSPP security policy. Here, different ranging direct link positioning services may correspond to the same RSPP security policy; or, different ranging direct link positioning services may correspond to different RSPP security policies. It should be noted that after receiving the RSPP security policy information, the terminal may store the mapping relationship in a predetermined area, for example, in the form of a list in a predetermined area for easy query. In this way, after the terminal determines the ranging direct link positioning service that needs to be initiated, it can determine the RSPP security policy based on the ranging direct link positioning service and the mapping relationship by querying the list.

[0180] In one embodiment, RSPP security policy information sent by a network function is received; wherein the RSPP security policy information includes at least one of the following:

[0181] Signaling integrity protection information, used to indicate the following RSPP policies:

[0182] The terminal accepts connections only if the PC5 interface is integrity protected;

[0183] Signaling encryption protection information, used to indicate one of the following RSPP policies:

[0184] The terminal will only accept connections if the PC5 interface is protected by encryption;

[0185] The terminal only establishes a connection that is not protected by encryption;

[0186] The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

[0187] Here, the identifier "REQUIRED" can be used to indicate that the terminal will only accept connections when the PC5 interface is integrity protected and that the terminal will only accept connections when the PC5 interface is encryption protected. The identifier "NOT NEEDED" can be used to indicate that the terminal will only establish connections that are not encryption protected. The identifier "PREFERRED" can be used to indicate that the terminal will attempt to establish encryption protected connections and will accept connections that are not encryption protected. One use of the "PREFERRED" indicator is to allow security policies to be changed without immediately updating all relevant terminals.

[0188] In one embodiment, the RSPP security policy and the security policy of the ProSe application or service may be configured separately.

[0189] It should be noted that since RSPP is a signaling protocol and is carried on the PC5-S interface, no user plane security policy is configured in the RSPP security policy.

[0190] In one embodiment, the network function is a policy control function PCF; in the service authorization and configuration process, RSPP security policy information sent by the network function is received.

[0191] In one embodiment, the network function is a 5G proximity communication key management function PKMF or a 5G proximity service name management function DDNMF; in the terminal discovery process, RSPP security policy information sent by the network function is received.

[0192] In one embodiment, the terminal is a first terminal initiating direct communication; the terminal receives RSPP security policy information sent by a network function; wherein the RSPP security policy information indicates that the terminal executes the security policy of the RSPP process. In response to the first terminal discovering the second terminal, the terminal determines that the direct communication is direct communication established for a ranging direct link positioning service rather than for a proximity service (ProSe).

[0193] In one embodiment, the terminal is a first terminal initiating direct communication; the terminal receives RSPP security policy information sent by a network function; wherein the RSPP security policy information indicates that the terminal executes the security policy of the RSPP process. In response to the first terminal discovering the second terminal, the terminal determines that the direct communication is direct communication established for a ranging direct link positioning service rather than for a proximity service (ProSe). Based on the RSPP security policy information, the terminal selects the RSPP security policy of the first terminal to be sent to the second terminal. The RSPP security policy of the first terminal and / or the security capability information of the first terminal are sent to the second terminal.

[0194] In one embodiment, the RSPP security policy of the first terminal and / or the security capability information of the first terminal are sent to the second terminal via a direct communication request message.

[0195] In one embodiment, the terminal is a discovered second terminal for direct communication; and receives the RSPP security policy of the first terminal and / or the security capability information of the first terminal sent by the first terminal initiating direct communication.

[0196] In one embodiment, the RSPP security policy of the first terminal and / or the security capability information of the first terminal sent by the first terminal are received through a direct communication request message.

[0197] In one embodiment, the terminal is a discovered second terminal for direct communication; the terminal receives the RSPP security policy of the first terminal and / or the security capability information of the first terminal sent by the first terminal initiating direct communication. In response to the RSPP security policy of the first terminal indicating that the terminal only establishes connections without integrity protection, the terminal rejects the direct communication request message; or, in response to the RSPP security policy of the first terminal indicating that the terminal only establishes connections without encryption protection and the RSPP security policy of the second terminal indicating that the terminal only accepts connections when the PC5 interface is encrypted, the terminal rejects the direct communication request message; or, in response to the RSPP security policy of the first terminal indicating that the terminal only accepts connections when the PC5 interface is encrypted, the RSPP security policy of the second terminal indicating that the terminal only establishes connections without encryption protection, the terminal rejects the direct communication request message.

[0198] In one embodiment, the terminal is a discovered second terminal for direct communication; the terminal receives an RSPP security policy of the first terminal and / or security capability information of the first terminal sent by a first terminal initiating direct communication. In response to rejecting the direct communication request message based on the RSPP security policy, the second terminal initiates a direct authentication and / or key establishment procedure with the first terminal.

[0199] In one embodiment, the terminal is a second terminal for direct communication that is discovered; it receives the RSPP security policy of the first terminal and / or the security capability information of the first terminal sent by the first terminal initiating direct communication. In response to the RSPP security policy of the first terminal and the RSPP security policy of the second terminal both indicating that the terminal only establishes a connection that is not protected by encryption, the direct communication request message is accepted; or, in response to the RSPP security policy of the first terminal and the RSPP security policy of the second terminal both indicating that the terminal only accepts the connection when the PC5 interface is protected by encryption, the direct communication request message is accepted; or, in response to the RSPP security policy of the first terminal indicating that the terminal only establishes a connection that is not protected by encryption, and the RSPP security policy of the second terminal indicating that the terminal will try to establish an encrypted connection and will receive an unencrypted connection, the direct communication request message is accepted; or, in response to the RSPP security policy of the first terminal indicating that the terminal will try to establish an encrypted connection and will receive an encrypted connection, the direct communication request message is accepted. or, in response to the RSPP security policy of the first terminal indicating that the terminal will accept the connection only when the PC5 interface is encrypted and protected, and the RSPP security policy of the second terminal indicating that the terminal will attempt to establish encryption protection and will receive the connection that is not encrypted and protected, accept the direct communication request message; or, in response to the RSPP security policy of the first terminal indicating that the terminal will attempt to establish encryption protection and will receive the connection that is not encrypted and protected, accept the direct communication request message, and the RSPP security policy of the second terminal indicating that the terminal will accept the connection only when the PC5 interface is encrypted and protected, accept the direct communication request message.

[0200] In one embodiment, the terminal is a discovered second terminal for direct communication; the terminal receives an RSPP security policy and / or security capability information of the first terminal sent by a first terminal initiating direct communication. In response to a determination based on the RSPP security policy that the direct communication request message is accepted, the terminal determines to use the RSPP security policy. In response to the determination to use the RSPP security policy, the terminal determines a security algorithm for integrity and / or encryption protection based on the security capability information of the first terminal and the security capability information of the second terminal.

[0201] In one embodiment, the terminal is a discovered second terminal for direct communication; the terminal receives an RSPP security policy and / or security capability information of the first terminal sent by a first terminal initiating direct communication. In response to a determination based on the RSPP security policy that the direct communication request message is accepted, the RSPP security policy is determined to be used. In response to the determination to use the RSPP security policy, a security algorithm for integrity and / or encryption protection is determined based on the security capability information of the first terminal and the security capability information of the second terminal. Information about the security algorithm, the RSPP security policy of the first terminal, and / or the security capability information of the first terminal are transmitted to the first terminal.

[0202] In one embodiment, the security algorithm information, the RSPP security policy of the first terminal and / or the security capability information of the first terminal are sent to the first terminal via a direct security mode command message.

[0203] In one embodiment, the direct security mode command message is integrity protected based on a security algorithm selected for integrity protection.

[0204] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0205] As shown in FIG7 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is executed by a terminal, and the network function is a policy control function (PCF); the method includes:

[0206] Step 71: In the service authorization and configuration process, receive ranging direct link positioning protocol security policy information sent by the network function.

[0207] In one embodiment, the network function is a policy control function (PCF); and in a service authorization and configuration process, RSPP security policy information is received from the network function. The RSPP security policy information indicates a mapping relationship between at least one ranging direct link positioning service and an RSPP security policy. Alternatively, the RSPP security policy information includes at least one of the following:

[0208] Signaling integrity protection information, used to indicate the following RSPP policies:

[0209] The terminal accepts connections only if the PC5 interface is integrity protected;

[0210] Signaling encryption protection information, used to indicate one of the following RSPP policies:

[0211] The terminal will only accept connections if the PC5 interface is protected by encryption;

[0212] The terminal only establishes a connection that is not protected by encryption;

[0213] The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

[0214] It should be understood that the terminal in this embodiment may be the first terminal that initiates direct communication or the discovered second terminal that initiates direct communication.

[0215] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0216] As shown in FIG8 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is executed by a terminal, and the network function is a 5G proximity communication key management function PKMF or a 5G proximity service name management function DDNMF; the method includes:

[0217] Step 81: In the terminal discovery process, receive ranging direct link positioning protocol security policy information sent by the network function.

[0218] In one embodiment, the network function is a 5G proximity communication key management function PKMF or a 5G proximity service name management function DDNMF; in the terminal discovery process, RSPP security policy information sent by the network function is received. The RSPP security policy information indicates a mapping relationship between at least one ranging direct link positioning service and an RSPP security policy. Alternatively, the RSPP security policy information includes at least one of the following:

[0219] Signaling integrity protection information, used to indicate the following RSPP policies:

[0220] The terminal accepts the connection only if the PC5 interface is integrity protected;

[0221] Signaling encryption protection information, used to indicate one of the following RSPP policies:

[0222] The terminal will only accept connections if the PC5 interface is protected by encryption;

[0223] The terminal only establishes a connection that is not protected by encryption;

[0224] The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

[0225] It should be understood that the terminal in this embodiment may be the first terminal that initiates direct communication or the discovered second terminal that initiates direct communication.

[0226] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0227] As shown in FIG9 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is performed by a terminal, wherein the terminal is the first terminal initiating direct communication, and the method includes:

[0228] Step 91: In response to the first terminal discovering the second terminal, determine that the direct communication is direct communication established for a ranging direct link positioning service rather than direct communication established for a proximity service (ProSe).

[0229] It should be understood that the first terminal is a terminal that initiates direct communication, and the second terminal is a discovered terminal for direct communication. The first terminal and the second terminal have been described in detail in the foregoing embodiments and will not be repeated here.

[0230] In one embodiment, RSPP security policy information is received from a network function, wherein the RSPP security policy information instructs the terminal to execute a security policy of an RSPP process. In response to receiving the RSPP security policy information and the first terminal discovering the second terminal, the terminal determines that the direct communication is to be established for a ranging direct link positioning service rather than for a proximity service (ProSe).

[0231] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0232] As shown in FIG10 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is performed by a terminal, wherein the terminal is the first terminal initiating direct communication, and the method includes:

[0233] Step 101: Based on the RSPP security policy information, select a ranging direct link positioning protocol security policy of the first terminal to be sent to the second terminal.

[0234] In one embodiment, RSPP security policy information is received from a network function, wherein the RSPP security policy information indicates that the terminal executes a security policy of an RSPP process. In response to receiving the RSPP security policy information and the first terminal discovering the second terminal, the first terminal determines that the direct communication is established for a ranging direct link positioning service rather than for a proximity service (ProSe). Based on the RSPP security policy information, the RSPP security policy of the first terminal is selected and sent to the second terminal.

[0235] It should be understood that the first terminal is the terminal that initiates direct communication, and the second terminal is the terminal that is discovered for direct communication. The first terminal and the second terminal have been described in detail in the aforementioned embodiments and will not be repeated here. It should be noted that those skilled in the art will understand that the methods provided in the embodiments of the present disclosure can be performed alone or in conjunction with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0236] As shown in FIG11 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is performed by a terminal, wherein the terminal is the first terminal initiating direct communication, and the method includes:

[0237] Step 111: Send the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal to the second terminal.

[0238] In one embodiment, RSPP security policy information is received from a network function, wherein the RSPP security policy information indicates that the terminal executes the security policy of the RSPP process. In response to receiving the RSPP security policy information and the first terminal discovering the second terminal, the first terminal determines that the direct communication is direct communication established for a ranging direct link positioning service rather than for a proximity service (ProSe). Based on the RSPP security policy information, the RSPP security policy of the first terminal is selected and sent to the second terminal. The RSPP security policy of the first terminal and / or the security capability information of the first terminal are sent to the second terminal.

[0239] In one embodiment, the RSPP security policy of the first terminal and / or the security capability information of the first terminal are sent to the second terminal via a direct communication request message.

[0240] In one embodiment, the RSPP security policy of the first terminal and / or the security capability information of the first terminal are sent to the second terminal, and the security algorithm information, the RSPP security policy of the first terminal and / or the security capability information of the first terminal are received from the second terminal.

[0241] In one embodiment, the security algorithm information, the RSPP security policy of the first terminal and / or the security capability information of the first terminal sent by the second terminal are received through a direct security mode command message.

[0242] It should be understood that the first terminal is a terminal that initiates direct communication, and the second terminal is a discovered terminal for direct communication. The first terminal and the second terminal have been described in detail in the foregoing embodiments and will not be repeated here.

[0243] It should be noted that in some scenarios, the first terminal may not transmit its security capability information. It is understood that in some scenarios, the first terminal does not need to provide its security capability information to the second terminal, for example, if the second terminal pre-stores the first terminal's security capability information. This is not a limitation.

[0244] It should be noted that the first terminal needs to send the ranging direct link positioning protocol security policy of the first terminal to the second terminal.

[0245] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0246] As shown in FIG12 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is performed by a terminal, which is a discovered second terminal for direct communication; the method includes:

[0247] Step 121: Receive the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal sent by the first terminal initiating direct communication.

[0248] In one embodiment, the RSPP security policy of the first terminal and / or the security capability information of the first terminal sent by the first terminal are received through a direct communication request message.

[0249] In one embodiment, an RSPP security policy of a first terminal and / or security capability information of the first terminal, sent by a first terminal initiating direct communication, is received. In response to the first terminal's RSPP security policy indicating that the terminal only establishes connections that are not integrity protected, the direct communication request message is rejected; or, in response to the first terminal's RSPP security policy indicating that the terminal only establishes connections that are not encryption protected and the second terminal's RSPP security policy indicating that the terminal only accepts connections when the PC5 interface is encryption protected, the direct communication request message is rejected; or, in response to the first terminal's RSPP security policy indicating that the terminal only accepts connections when the PC5 interface is encryption protected and the second terminal's RSPP security policy indicating that the terminal only establishes connections that are not encryption protected, the direct communication request message is rejected.

[0250] In one embodiment, the RSPP security policy of the first terminal and / or the security capability information of the first terminal sent by the first terminal initiating direct communication is received. In response to the RSPP security policy of the first terminal and the RSPP security policy of the second terminal both indicating that the terminal only establishes a connection that is not protected by encryption, the direct communication request message is accepted; or, in response to the RSPP security policy of the first terminal and the RSPP security policy of the second terminal both indicating that the terminal only accepts the connection when the PC5 interface is protected by encryption, the direct communication request message is accepted; or, in response to the RSPP security policy of the first terminal indicating that the terminal only establishes a connection that is not protected by encryption, and the RSPP security policy of the second terminal indicating that the terminal will try to establish an encryption-protected connection and will receive an encryption-protected connection, the direct communication request message is accepted; or, in response to the RSPP security policy of the first terminal indicating that the terminal will try to establish an encryption-protected connection and will receive an encryption-protected connection, the direct communication request message is accepted. or, in response to the RSPP security policy of the first terminal indicating that the terminal will accept the connection only when the PC5 interface is encrypted and protected, and the RSPP security policy of the second terminal indicating that the terminal will attempt to establish encryption protection and will receive the connection that is not encrypted and protected, accept the direct communication request message; or, in response to the RSPP security policy of the first terminal indicating that the terminal will attempt to establish encryption protection and will receive the connection that is not encrypted and protected, accept the direct communication request message, and the RSPP security policy of the second terminal indicating that the terminal will accept the connection only when the PC5 interface is encrypted and protected, accept the direct communication request message.

[0251] It should be understood that the first terminal is a terminal that initiates direct communication, and the second terminal is a discovered terminal for direct communication. The first terminal and the second terminal have been described in detail in the foregoing embodiments and will not be repeated here.

[0252] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0253] As shown in FIG13 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is performed by a terminal, which is a discovered second terminal for direct communication; the method includes:

[0254] Step 131: In response to determining to use the ranging direct link positioning protocol security policy, determine a security algorithm for integrity and / or encryption protection based on the security capability information of the first terminal and the security capability information of the second terminal.

[0255] In one embodiment, the terminal is a discovered second terminal for direct communication; the terminal receives an RSPP security policy and / or security capability information of the first terminal sent by a first terminal initiating direct communication. In response to a determination based on the RSPP security policy that the direct communication request message is accepted, the terminal determines to use the RSPP security policy. In response to the determination to use the RSPP security policy, the terminal determines a security algorithm for integrity and / or encryption protection based on the security capability information of the first terminal and the security capability information of the second terminal.

[0256] In one embodiment, the terminal is a discovered second terminal for direct communication; the terminal receives an RSPP security policy and / or security capability information of the first terminal sent by a first terminal initiating direct communication. In response to a determination based on the RSPP security policy that the direct communication request message is accepted, the RSPP security policy is determined to be used. In response to the determination to use the RSPP security policy, a security algorithm for integrity and / or encryption protection is determined based on the security capability information of the first terminal and the security capability information of the second terminal. Information about the security algorithm, the RSPP security policy of the first terminal, and / or the security capability information of the first terminal are transmitted to the first terminal.

[0257] In one embodiment, the security algorithm information, the RSPP security policy of the first terminal and / or the security capability information of the first terminal are sent to the first terminal via a direct security mode command message.

[0258] In one embodiment, the direct security mode command message is integrity protected based on a security algorithm selected for integrity protection.

[0259] It should be understood that the first terminal is a terminal that initiates direct communication, and the second terminal is a discovered terminal for direct communication. The first terminal and the second terminal have been described in detail in the foregoing embodiments and will not be repeated here.

[0260] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0261] As shown in FIG14 , this embodiment provides a security protection method based on a ranging direct link positioning protocol, wherein the method is performed by a terminal, which is a discovered second terminal for direct communication; the method includes:

[0262] Step 141: Send information about the security algorithm, a ranging direct link positioning protocol security policy of the first terminal, and / or security capability information of the first terminal to the first terminal.

[0263] In one embodiment, the terminal is a discovered second terminal for direct communication; the terminal receives an RSPP security policy and / or security capability information of the first terminal sent by a first terminal initiating direct communication. In response to a determination based on the RSPP security policy that the direct communication request message is accepted, the RSPP security policy is determined to be used. In response to the determination to use the RSPP security policy, a security algorithm for integrity and / or encryption protection is determined based on the security capability information of the first terminal and the security capability information of the second terminal. Information about the security algorithm, the RSPP security policy of the first terminal, and / or the security capability information of the first terminal are transmitted to the first terminal.

[0264] In one embodiment, the security algorithm information, the RSPP security policy of the first terminal and / or the security capability information of the first terminal are sent to the first terminal via a direct security mode command message.

[0265] In one embodiment, the direct security mode command message is integrity protected based on a security algorithm selected for integrity protection.

[0266] It should be understood that the first terminal is a terminal that initiates direct communication, and the second terminal is a discovered terminal for direct communication. The first terminal and the second terminal have been described in detail in the foregoing embodiments and will not be repeated here.

[0267] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0268] In order to better understand the embodiments of the present disclosure, the technical solution of the present disclosure is further described below through an exemplary embodiment:

[0269] Example 1:

[0270] Referring to FIG. 15 , this embodiment provides a security protection method based on the ranging direct link positioning protocol RSPP, including:

[0271] Step a1: UE_1 selects the RSPP security policy to be sent to UE_2. UEs that support ranging or SL positioning must also support ProSe or V2X. Therefore, a UE can be provided with both a PC5 security policy for ProSe / V2X services and an RSPP security policy for ranging or SL positioning services. In this case, after the two UEs discover each other for measurement or SL positioning, the UE (UE_1) initiating direct communication via PC5 should be able to determine that direct communication is established for ranging or SL positioning services rather than ProSe services, so that UE_1 can select the RSPP security policy to be sent to the receiving UE (UE_2) rather than the PC5 security policy for ProSe / V2X services.

[0272] Step a2: During the initial connection, UE_1 includes its RSPP security policy (not the PC5 security policy) and UE_1's security capabilities (a list of algorithms that UE_1 will accept for this connection) in the Direct Communication Request message it sends to UE_2. It should be noted that in some scenarios, UE_1's security capabilities information may not be sent via the Direct Communication Request. It is understood that in some scenarios, UE_1 does not need to provide UE_2 with security capabilities information, for example, if UE_2 pre-stores UE_1's security capabilities information. This is not a limitation here.

[0273] Step a3: Security policy comparison and rejection; If UE_1's RSPP integrity security policy is "NOT NEEDED," UE_2 will reject the direct communication request. If UE_1's RSPP encryption security policy is "NOT NEEDED" and UE_2's RSPP encryption security policy is "REQUIRED," UE_2 should also reject the direct communication request. If UE_1's RSPP encryption security policy is "REQUIRED" and UE_2's RSPP encryption security policy is "NOT NEEDED," UE_2 should also reject the direct communication request. UE_2 may initiate direct authentication and key establishment procedures with UE_1.

[0274] Step a4: Security policy comparison and acceptance: If both UE_1 and UE_2's RSPP encryption security policies are "NOT NEEDED" or both UE_1 and UE_2's RSPP encryption security policies are "REQUIRED," UE_2 accepts the direct communication request. If UE_1's RSPP encryption security policy is "NOT NEEDED" and UE_2's RSPP encryption security policy is "PREFERRED," or if UE_1's RSPP encryption security policy is "PREFERRED" and UE_2's RSPP encryption security policy is "NOT NEEDED," UE_2 selects the integrity and encryption security algorithms based on the received UE_1 security capabilities and its own security capabilities.

[0275] Step a5: UE_2 returns the selected algorithm in a Direct Security Mode Command message. UE_1's RSPP security policy and UE_1's security capabilities are also returned to UE_1 to prevent price reduction attacks. This message is integrity protected using the selected algorithm.

[0276] Step a6: Unlike the user plane security policy negotiation defined for V2X security, UE_1 initiating a direct communication request for ranging or SL positioning services should not include any information not covered by the RSPP security policy in the Direct Security Mode Complete message. This message is protected by the selected algorithm.

[0277] Step a7: UE_2 sends a Direct Communication Accept message to UE_1.

[0278] As shown in FIG16 , this embodiment provides a security protection device based on a ranging direct link positioning protocol, wherein the device includes:

[0279] The sending module 161 is configured to send ranging direct link positioning protocol security policy information to the terminal;

[0280] The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

[0281] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0282] As shown in FIG17 , this embodiment provides a security protection device based on a ranging direct link positioning protocol, wherein the device includes:

[0283] The receiving module 171 is configured to receive ranging direct link positioning protocol security policy information sent by the network function;

[0284] The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

[0285] It should be noted that those skilled in the art will understand that the method provided in the embodiments of the present disclosure may be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.

[0286] An embodiment of the present disclosure provides a communication device, the communication device including:

[0287] processor;

[0288] a memory for storing processor-executable instructions;

[0289] The processor is configured to implement the method applied to any embodiment of the present disclosure when running the executable instructions.

[0290] The processor may include various types of storage media, which are non-temporary computer storage media that can continue to memorize information stored thereon after the communication device loses power.

[0291] The processor may be connected to the memory via a bus or the like to read the executable program stored in the memory.

[0292] An embodiment of the present disclosure further provides a computer storage medium, wherein the computer storage medium stores a computer executable program, and when the executable program is executed by a processor, the method of any embodiment of the present disclosure is implemented.

[0293] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0294] As shown in FIG18 , an embodiment of the present disclosure provides a structure of a terminal.

[0295] 18 , this embodiment provides a terminal 800 , which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

[0296] 18 , terminal 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0297] The processing component 802 generally controls the overall operation of the terminal 800, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

[0298] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the terminal 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0299] Power supply component 806 provides power to various components of terminal 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 800.

[0300] The multimedia component 808 includes a screen that provides an output interface between the terminal 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0301] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the terminal 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0302] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

[0303] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the terminal 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the terminal 800. The sensor assembly 814 can also detect changes in the position of the terminal 800 or a component of the terminal 800, the presence or absence of user contact with the terminal 800, the orientation or acceleration / deceleration of the terminal 800, and temperature changes of the terminal 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0304] The communication component 816 is configured to facilitate wired or wireless communication between the terminal 800 and other devices. The terminal 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0305] In an exemplary embodiment, the terminal 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0306] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by the processor 820 of the terminal 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0307] As shown in Figure 19, an embodiment of the present disclosure shows the structure of a base station. For example, the base station 900 can be provided as a network-side device. Referring to Figure 19, the base station 900 includes a processing component 922, which further includes one or more processors, and a memory resource represented by a memory 932 for storing instructions that can be executed by the processing component 922, such as an application. The application stored in the memory 932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 922 is configured to execute instructions to perform the above-mentioned method, and any method applied to the base station.

[0308] The base station 900 may also include a power supply component 926 configured to perform power management for the base station 900, a wired or wireless network interface 950 configured to connect the base station 900 to a network, and an input / output (I / O) interface 958. The base station 900 may operate based on an operating system stored in the memory 932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0309] Other embodiments of the present invention will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the invention that follow from the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.

[0310] It should be understood that the present invention is not limited to the exact construction described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A security protection method based on a ranging direct link positioning protocol, wherein: The method is performed by a network function, and the method includes: Sending ranging direct link positioning protocol security policy information to the terminal; The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

2. The method according to claim 1, wherein The ranging direct link positioning protocol security policy information indicates a mapping relationship between at least one ranging direct link positioning service and a ranging direct link positioning protocol security policy.

3. The method according to claim 1, wherein The ranging direct link positioning protocol security policy information includes at least one of the following: Signaling integrity protection information is used to indicate the following ranging direct link positioning protocol strategies: The terminal accepts connections only if the PC5 interface is integrity protected; Signaling encryption protection information, used to indicate one of the following ranging direct link positioning protocol strategies: The terminal will only accept connections if the PC5 interface is protected by encryption; The terminal only establishes a connection that is not protected by encryption; The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

4. The method according to claim 1, wherein The network function is a policy control function PCF, and the sending of ranging direct link positioning protocol security policy information to the terminal includes: In the service authorization and configuration process, ranging direct link positioning protocol security policy information is sent to the terminal.

5. The method according to claim 1, wherein The network function is a 5G proximity communication key management function PKMF or a 5G proximity service name management function DDNMF, and The sending of ranging direct link positioning protocol security policy information to the terminal includes: In the terminal discovery process, ranging direct link positioning protocol security policy information is sent to the terminal.

6. A security protection method based on a ranging direct link positioning protocol, wherein: The method is executed by a terminal, and includes: Receive ranging direct link positioning protocol security policy information sent by the network function; The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

7. The method according to claim 6, wherein: The ranging direct link positioning protocol security policy information indicates a mapping relationship between at least one ranging direct link positioning service and a ranging direct link positioning protocol security policy.

8. The method according to claim 6, wherein: The ranging direct link positioning protocol security policy information includes at least one of the following: Signaling integrity protection information is used to indicate the following ranging direct link positioning protocol strategies: The terminal accepts connections only if the PC5 interface is integrity protected; Signaling encryption protection information, used to indicate one of the following ranging direct link positioning protocol strategies: The terminal will only accept connections if the PC5 interface is protected by encryption; The terminal only establishes a connection that is not protected by encryption; The endpoint attempts to establish encrypted connections and accepts unencrypted connections.

9. The method according to claim 6, wherein: The network function is a policy control function PCF, and The receiving network function sends the ranging direct link positioning protocol security policy information, including: In the service authorization and configuration process, the ranging direct link positioning protocol security policy information sent by the network function is received.

10. The method according to claim 6, wherein: The network function is a 5G proximity communication key management function PKMF or a 5G proximity service name management function DDNMF, and the receiving network function sends the ranging direct link positioning protocol security policy information, including: In the terminal discovery process, the ranging direct link positioning protocol security policy information sent by the network function is received.

11. The method according to claim 6, wherein: The terminal is a first terminal initiating direct communication; the method further includes: In response to the first terminal discovering the second terminal, it is determined that the direct communication is direct communication established for a ranging direct link positioning service rather than direct communication established for a proximity service (ProSe).

12. The method according to claim 11, wherein The method further comprises: Based on the ranging direct link positioning protocol security policy information, a ranging direct link positioning protocol security policy of the first terminal is selected and sent to the second terminal.

13. The method according to claim 12, wherein: The method further comprises: Sending the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal to the second terminal.

14. The method according to claim 13, wherein The sending the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal to the second terminal includes: The ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal are sent to the second terminal through a direct communication request message.

15. The method according to claim 13, wherein: The method further comprises: Receive the security algorithm information, the ranging direct link positioning protocol security policy of the first terminal, and / or the security capability information of the first terminal sent by the second terminal.

16. The method according to claim 15, wherein The receiving, sent by the second terminal, information about the security algorithm, a ranging direct link positioning protocol security policy of the first terminal, and / or security capability information of the first terminal includes: The security algorithm information, the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal are received by the second terminal through a direct security mode command message.

17. The method according to claim 6, wherein The terminal is a discovered second terminal for direct communication; and the method further includes: Receive the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal sent by the first terminal initiating direct communication.

18. The method according to claim 17, wherein The receiving, from the first terminal initiating direct communication, a ranging direct link positioning protocol security policy of the first terminal and / or security capability information of the first terminal, includes: The ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal, which are sent by the first terminal, are received through the direct communication request message.

19. The method according to claim 17, wherein The method further comprises at least one of the following: In response to the ranging direct link positioning protocol security policy indication of the first terminal, the terminal only establishes a connection that is not integrity protected and rejects the direct communication request message; In response to the ranging direct link positioning protocol security policy of the first terminal indicating that the terminal only establishes connections that are not protected by encryption, and the ranging direct link positioning protocol security policy of the second terminal indicating that the terminal only accepts connections when the PC5 interface is protected by encryption, rejecting the direct communication request message; In response to the ranging direct link positioning protocol security policy of the first terminal indicating that the terminal accepts the connection only when the PC5 interface is encrypted and protected, and the ranging direct link positioning protocol security policy of the second terminal indicating that the terminal only establishes connections that are not encrypted and protected, the direct communication request message is rejected.

20. The method according to claim 17, wherein The method further comprises at least one of the following: In response to the ranging direct link positioning protocol security policy of the first terminal and the ranging direct link positioning protocol security policy of the second terminal both indicating that the terminal only establishes a connection that is not protected by encryption and accepts the direct communication request message; In response to the ranging direct link positioning protocol security policy of the first terminal and the ranging direct link positioning protocol security policy of the second terminal both indicating that the terminal accepts the connection only when the PC5 interface is encrypted and protected, accepting the direct communication request message; In response to the ranging direct link positioning protocol security policy indication of the first terminal that the terminal only establishes a connection that is not protected by encryption, and the ranging direct link positioning protocol security policy indication of the second terminal that the terminal will attempt to establish an encryption-protected connection and will receive a connection that is not protected by encryption, accepting the direct communication request message; In response to the ranging direct link positioning protocol security policy of the first terminal indicating that the terminal will attempt to establish an encryption-protected connection and will receive an unencrypted connection, and the ranging direct link positioning protocol security policy of the second terminal indicating that the terminal will only establish an unencrypted connection, accepting the direct communication request message; In response to the ranging direct link positioning protocol security policy of the first terminal indicating that the terminal accepts a connection only when the PC5 interface is protected by encryption, and the ranging direct link positioning protocol security policy of the second terminal indicating that the terminal will attempt to establish encryption protection and will accept connections that are not protected by encryption, accepting the direct communication request message; In response to the ranging direct link positioning protocol security policy indication of the first terminal: the terminal will attempt to establish encryption protection and will receive connections that are not encrypted, and accept the direct communication request message, and the ranging direct link positioning protocol security policy indication of the second terminal: the terminal will accept the connection only when the PC5 interface is encrypted, and accept the direct communication request message.

21. The method according to claim 20, wherein The method further comprises: In response to determining to use the ranging direct link positioning protocol security policy, a security algorithm for integrity and / or encryption protection is determined based on the security capability information of the first terminal and the security capability information of the second terminal.

22. The method according to claim 21, wherein The method further comprises: Sending information about the security algorithm, a ranging direct link positioning protocol security policy of the first terminal, and / or security capability information of the first terminal to the first terminal.

23. The method according to claim 22, wherein The sending, to the first terminal, information about the security algorithm, a ranging direct link positioning protocol security policy of the first terminal, and / or security capability information of the first terminal includes: The security algorithm information, the ranging direct link positioning protocol security policy of the first terminal and / or the security capability information of the first terminal are sent to the first terminal through a direct security mode command message.

24. The method according to claim 23, wherein The direct security mode command message is integrity protected based on a security algorithm selected for integrity protection.

25. A safety protection device based on ranging direct link positioning protocol, wherein: The device comprises: A sending module, configured to send ranging direct link positioning protocol security policy information to the terminal; The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

26. A safety protection device based on a ranging direct link positioning protocol, wherein: The device comprises: a receiving module configured to receive ranging direct link positioning protocol security policy information sent by the network function; The ranging direct link positioning protocol security policy information indicates that the terminal executes a security policy of a ranging direct link positioning protocol process.

27. A communication device, wherein: include: Memory; The processor is connected to the memory and is configured to implement the method according to any one of claims 1 to 5 or 6 to 24 by executing computer-executable instructions stored in the memory.

28. A computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are capable of implementing the method according to any one of claims 1 to 5 or 6 to 24 after being executed by a processor.