A method for providing P2P transmission capability to software in a non-embedded form

Through non-embedded forms, the software provides P2P transmission capabilities and dynamically configures P2P transmission resources and keys, solving the problem of insufficient flexibility of embedded software and achieving flexible and stable P2P transmission.

CN118590498BActive Publication Date: 2024-11-12DIANJI NETWORK TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411068572.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-12
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

In the prior art, there is insufficient flexibility in realizing P2P transmission through embedded software and cannot adapt to more flexible needs in the future.

Method used

Through the non-embedded form, the software provides P2P transmission capabilities. The network device sends P2P configuration information to the terminal, dynamically configures P2P transmission resources and keys, and realizes P2P transmission between any devices.

Benefits of technology

It realizes flexible P2P transmission configuration, improves transmission stability and reliability, and makes P2P transmission more suitable for a variety of service needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590498B_ABST
    Figure CN118590498B_ABST
Patent Text Reader

Abstract

The present application provides a method for providing P2P transmission capability for software in a non-embedded form, which belongs to the field of communication technology and is used to provide P2P transmission capability for software in a non-embedded form. The method includes: when the application layer software of N terminals served by the network device requests P2P service, the network device sends the P2P configuration information of each of the N terminals to the N terminals respectively; N is an integer greater than or equal to 2, the P2P configuration information of the i-th terminal among the N terminals is used to configure the resources used by the application layer software of the i-th terminal to execute P2P, and i is any integer from 1 to N; the network device receives the P2P service data sent by the i-th terminal, the P2P service data is the service data that needs to be transmitted to the j-th terminal among the N terminals, and j is any integer from 1 to N and different from i; the network device sends the P2P service data to the j-th terminal to complete the P2P transmission from the i-th terminal to the j-th terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method for providing P2P transmission capability for software in a non-embedded form. Background Art

[0002] With the continuous development of the Internet, network transmission technology is also changing with each passing day. Among them, the peer-to-peer (P2P) transmission mode has been warmly welcomed by the majority of users due to its high efficiency and flexibility. The P2P mode refers to the direct exchange of data between computers without going through a central server. This mode not only improves the efficiency of data transmission, but also greatly reduces the dependence on the central server and improves the reliability of the network.

[0003] In P2P network transmission, embedded software plays a vital role. Embedded software refers to software embedded in hardware devices, which can directly control hardware devices and realize various functions. In P2P network transmission, embedded software can realize end-to-end direct transmission without going through a central server, thereby improving the efficiency of data transmission. The application of embedded software in P2P network transmission is mainly reflected in the following aspects: Data reception and transmission: Embedded software can directly receive and send data without going through a central server. This can not only improve the efficiency of data transmission, but also reduce dependence on central servers and improve network reliability. Data encryption and decryption: In order to ensure the security of data, embedded software can realize data encryption and decryption functions. In this way, even if the data is intercepted during transmission, it cannot be interpreted, thereby ensuring the security of data. Error detection and correction: During the data transmission process, data errors may occur. At this time, embedded software can realize error detection and correction functions to ensure the integrity of data. Resource management: Embedded software can also realize resource management functions, such as bandwidth management, storage space management, etc., to ensure the smooth progress of P2P network transmission.

[0004] However, implementing P2P in an embedded manner will result in inflexible transmission and will not be able to meet more flexible requirements in the future. Summary of the invention

[0005] The embodiment of the present application provides a method for providing P2P transmission capability for software in a non-embedded form, so as to provide P2P transmission capability for software in a non-embedded form, thereby enabling flexible networking to realize P2P transmission.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, a method for providing P2P transmission capability for software in a non-embedded form is provided, which is applied to a network device, and the method comprises: when application layer software of N terminals served by the network device requests P2P service, the network device sends P2P configuration information of each of the N terminals to the N terminals respectively; N is an integer greater than or equal to 2, and the P2P configuration information of the i-th terminal among the N terminals is used to configure the resources used by the application layer software of the i-th terminal to execute P2P, and i is any integer from 1 to N; the network device receives P2P service data sent by the i-th terminal, wherein the P2P service data is service data that needs to be transmitted to the j-th terminal among the N terminals, and j is any integer from 1 to N and different from i; the network device sends the P2P service data to the j-th terminal to complete the P2P transmission from the i-th terminal to the j-th terminal.

[0008] In a possible design scheme, the network device is a RAN device, and the network device serving N terminals means that: the N terminals are within a service cell of the RAN device, and the N terminals access the RAN device.

[0009] In one possible design scheme, the P2P configuration information of the i-th terminal includes the P2P transmission resources of the i-th terminal. The P2P transmission resources of the i-th terminal are resources configured only for the i-th terminal to use for P2P transmission with a network device, and the P2P transmission resources of the i-th terminal are not shared by other terminals except the N terminals, and the P2P transmission resources of any two of the N terminals are at least partially different.

[0010] In a possible design, the P2P transmission resources of any two of the N terminals are at least partially different, which means that if the distance between any two of the N terminals is closer, the more different transmission resources are in the P2P transmission resources of the any two terminals.

[0011] In a possible design scheme, the P2P configuration information of the i-th terminal also includes a security parameter ciphertext for the i-th terminal to perform P2P transmission, where the security parameter ciphertext is obtained by the network device using the AS layer key of the i-th terminal to encrypt the P2P transmission key, so that when the i-th terminal receives the security parameter ciphertext, the i-th terminal uses its own AS layer key of the i-th terminal to decrypt the security parameter ciphertext to configure the P2P transmission key; the P2P transmission key is shared by N terminals; accordingly, the P2P service data is obtained by the i-th terminal using the P2P transmission key to encrypt the plaintext P2P service data, so that when the j-th terminal receives the P2P service data forwarded by the network device, the j-th terminal uses the P2P transmission key to decrypt the P2P service data.

[0012] In one possible design scheme, when the application layer software of N terminals served by the network device requests P2P service, the method also includes: the network device uses the AS layer key of each of the N terminals as an input parameter to derive the P2P transmission key; or, the network device uses the NAS layer key of each of the N terminals obtained from the AMF network element serving the N terminals as an input parameter to derive the P2P transmission key.

[0013] In one possible design, the method further includes: when application layer software of N terminals served by the network device requests a P2P service, the network device determines P2P configuration information of each of the N terminals.

[0014] In a possible design scheme, when the application layer software of N terminals served by the network device requests P2P services, the network device determines the P2P configuration information of each of the N terminals, including: the network device receives an RRC message carrying request information sent by the terminal, and the request information is used by the application layer software of the terminal to request the P2P service; wherein the number of RRC messages carrying request information is N, and the number of RRC messages carrying request information is, which means that N terminals each send an RRC message carrying request information; if the number of RRC messages carrying request information is N, which is greater than or equal to the lower limit number that needs to be met to perform P2P transmission, the network device allocates corresponding P2P transmission resources to the N terminals, and determines the P2P transmission key, and allocates the corresponding P2P transmission resources and P2P transmission keys to the N terminals, and determines the P2P configuration information of the N terminals.

[0015] In a second aspect, a communication system is provided, which is applied to a network device, and the system is configured as follows: when the application layer software of N terminals served by the network device requests a P2P service, the network device sends the P2P configuration information of each of the N terminals to the N terminals respectively; N is an integer greater than or equal to 2, and the P2P configuration information of the i-th terminal among the N terminals is used to configure the resources used by the application layer software of the i-th terminal to execute P2P, and i is any integer from 1 to N; the network device receives P2P service data sent by the i-th terminal, wherein the P2P service data is service data that needs to be transmitted to the j-th terminal among the N terminals, and j is any integer from 1 to N and different from i; the network device sends the P2P service data to the j-th terminal to complete the P2P transmission from the i-th terminal to the j-th terminal.

[0016] In a possible design scheme, the network device is a RAN device, and the network device serving N terminals means that: the N terminals are within a service cell of the RAN device, and the N terminals access the RAN device.

[0017] In one possible design scheme, the P2P configuration information of the i-th terminal includes the P2P transmission resources of the i-th terminal. The P2P transmission resources of the i-th terminal are resources configured only for the i-th terminal to use for P2P transmission with a network device, and the P2P transmission resources of the i-th terminal are not shared by other terminals except the N terminals, and the P2P transmission resources of any two of the N terminals are at least partially different.

[0018] In a possible design, the P2P transmission resources of any two of the N terminals are at least partially different, which means that if the distance between any two of the N terminals is closer, the more different transmission resources are in the P2P transmission resources of the any two terminals.

[0019] In a possible design scheme, the P2P configuration information of the i-th terminal also includes a security parameter ciphertext for the i-th terminal to perform P2P transmission, where the security parameter ciphertext is obtained by the network device using the AS layer key of the i-th terminal to encrypt the P2P transmission key, so that when the i-th terminal receives the security parameter ciphertext, the i-th terminal uses its own AS layer key of the i-th terminal to decrypt the security parameter ciphertext to configure the P2P transmission key; the P2P transmission key is shared by N terminals; accordingly, the P2P service data is obtained by the i-th terminal using the P2P transmission key to encrypt the plaintext P2P service data, so that when the j-th terminal receives the P2P service data forwarded by the network device, the j-th terminal uses the P2P transmission key to decrypt the P2P service data.

[0020] In one possible design scheme, when the application layer software of N terminals served by the network device requests P2P service, the system is further configured as: the network device uses the AS layer key of each of the N terminals as an input parameter to derive the P2P transmission key; or, the network device uses the NAS layer key of each of the N terminals obtained from the AMF network element serving the N terminals as an input parameter to derive the P2P transmission key.

[0021] In one possible design, the system is further configured to: when application layer software of N terminals served by the network device requests a P2P service, the network device determines P2P configuration information of each of the N terminals.

[0022] In a possible design scheme, when the application layer software of N terminals served by the network device requests P2P services, the network device determines the P2P configuration information of each of the N terminals, including: the network device receives an RRC message carrying request information sent by the terminal, and the request information is used by the application layer software of the terminal to request the P2P service; wherein the number of RRC messages carrying request information is N, and the number of RRC messages carrying request information is, which means that N terminals each send an RRC message carrying request information; if the number of RRC messages carrying request information is N, which is greater than or equal to the lower limit number that needs to be met to perform P2P transmission, the network device allocates corresponding P2P transmission resources to the N terminals, and determines the P2P transmission key, and allocates the corresponding P2P transmission resources and P2P transmission keys to the N terminals, and determines the P2P configuration information of the N terminals.

[0023] In a third aspect, an embodiment of the present invention provides a readable storage medium having a program or instruction stored thereon, wherein the program or instruction implements the steps in the above method when executed by a processor.

[0024] The above method and system have the following technical effects:

[0025] Since the network device sends the P2P configuration information of each of the N terminals it serves and the application layer software requests P2P services, i.e., dynamic configuration, it is possible to configure the P2P transmission service in a non-embedded manner. Since the configuration is dynamic and flexible, any device can be configured for P2P transmission, making P2P transmission more flexible. On this basis, since the network device can participate in it, the P2P transmission can be first from the i-th terminal among the N terminals to the network device, and then from the network device to the j-th terminal among the N terminals. Compared with direct communication between terminals, it can also ensure the stability and reliability of transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the architecture of a system for providing P2P transmission capability to software in a non-embedded form provided in an embodiment of the present application;

[0027] Figure 2 A flowchart of a method for providing P2P transmission capability to software in a non-embedded form provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0030] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as wireless network (Wi-Fi) systems, vehicle to everything (V2X) communication systems, device-to-device (D2D) communication systems, Internet of Vehicles communication systems, fourth generation (4G) mobile communication systems, such as long term evolution (LTE) systems, worldwide interoperability for microwave access (WiMAX) communication systems, fifth generation (5G) systems, such as new radio (NR) systems, and future communication systems.

[0031] The present application will present various aspects, embodiments or features around a system that may include multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. In addition, combinations of these schemes may also be used.

[0032] In addition, in the embodiments of the present application, words such as "exemplary" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.

[0033] In the embodiments of the present application, "information", "signal", "message", "channel" and "signaling" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are matched. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are matched. In addition, the " / " mentioned in the present application can be used to express an "or" relationship.

[0034] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0035] To facilitate understanding of the embodiments of the present application, first Figure 1 The communication system shown in the figure is used as an example to describe in detail the communication system applicable to the embodiments of the present application.

[0036] Figure 1 A schematic diagram of the architecture of a system for providing P2P transmission capability to software in a non-embedded form applicable to a method for providing P2P transmission capability to software in a non-embedded form provided in an embodiment of the present application. Figure 1 As shown, the system includes: terminal equipment and network equipment.

[0037] The terminal device may be a terminal device with transceiver functions, or a chip or chip system that can be set in the terminal device. The terminal device may also be called user equipment (UE), access terminal equipment, subscriber unit, user station, mobile station (MS), mobile station, remote station, remote terminal equipment, mobile equipment, user terminal equipment, terminal equipment, wireless communication equipment, user agent or user device. The terminal device in the embodiments of the present application can be a mobile phone, a cellular phone, a smart phone, a tablet computer, a wireless data card, a personal digital assistant (PDA), a wireless modem, a handset, a laptop computer, a machine type communication (MTC) terminal device, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, a wireless terminal device in a smart home, a vehicle-mounted terminal device, a road side unit (RSU) with terminal device function, etc. The terminal device of the present application may also be a vehicle-mounted module, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit built into a vehicle as one or more components or units. Alternatively, the terminal device may also be customer-premises equipment (CPE).

[0038] The network device may be an access network (AN) device, or may be called a radio access network (RAN) device. The RAN device may provide access functions for the terminal device, and is responsible for functions such as radio resource management, quality of service (QoS) management, data compression and encryption on the air interface side. The RAN device may include 5G, such as a gNB in ​​an NR system, or one or a group of antenna panels (including multiple antenna panels) of a base station in a 5G, or a network node constituting a gNB, a transmission point (TRP or transmission point, TP) or a transmission measurement function (TMF), such as a baseband unit (BBU), or a centralized unit (CU) or a distributed unit (DU), an RSU with base station functions, or a wired access gateway, or a core network element of a 5G. Alternatively, the RAN device may also include an access point (AP) in a wireless fidelity (WiFi) system, a wireless relay node, a wireless backhaul node, various forms of macro base stations, micro base stations (also known as small stations), relay stations, access points, wearable devices, vehicle-mounted devices, etc. Alternatively, the RAN device may also include a next-generation mobile communication system, such as a 6G access network device, such as a 6G base station, or in the next-generation mobile communication system, the network device may also have other naming methods, which are all covered within the protection scope of the embodiments of the present application, and the present application does not make any limitation on this.

[0039] Understandably, Figure 1 The simplified schematic diagram is provided for ease of understanding. The communication system may also include other network devices and / or other terminal devices. Figure 1 Not drawn.

[0040] For ease of understanding, the following will combine Figure 2 The method provided in the embodiment of the present application for providing P2P transmission capability to software in a non-embedded form is specifically described.

[0041] For example, Figure 2 The embodiment of the present application provides a flow chart of a method for providing P2P transmission capability to software in a non-embedded form. The method can be applied to the communication between the network device and the terminal device in the above communication system.

[0042] like Figure 2 As shown, the process of this method is as follows:

[0043] S201, when application layer software of N terminals served by a network device request P2P services, the network device sends P2P configuration information of each of the N terminals to the N terminals respectively.

[0044] N is an integer greater than or equal to 2, that is, P2P transmission is carried out between at least two terminals. When N is greater than 2, it can be carried out between any two terminals, and the transmission is flexible to meet various business needs as much as possible. The P2P configuration information of the i-th terminal among the N terminals is used to configure the resources used by the application layer software of the i-th terminal to execute P2P, and i is any integer from 1 to N.

[0045] The network equipment is RAN equipment, that is, base station. For details, please refer to Figure 1 A network device serving N terminals means that the N terminals are within the service cell of the RAN device and the N terminals are connected to the RAN device.

[0046] Taking the i-th terminal as an example, the others can be understood by reference and will not be elaborated on.

[0047] The P2P configuration information of the i-th terminal includes the P2P transmission resources of the i-th terminal. The P2P transmission resources of the i-th terminal are time-frequency resources, such as multiple resource blocks (RBs). The P2P configuration information of the i-th terminal may specifically include information used to indicate the P2P transmission resources of the i-th terminal, such as the index of the RB, or the group index of the RB group. The P2P transmission resources of the i-th terminal are resources that are only configured for the i-th terminal to use for P2P transmission with the network device, and the P2P transmission resources of the i-th terminal are not shared by other terminals except N terminals, and the P2P transmission resources of any two terminals in the N terminals are at least partially different. If the P2P transmission resources of any two terminals in the N terminals are at least partially different, it means that if the distance between any two terminals in the N terminals is closer, the more different transmission resources are in the P2P transmission resources of any two terminals, so as to reduce the possibility of interference caused by resource conflicts.

[0048] In other words, the network device can decide how to allocate the resources used for P2P transmission according to the relative position relationship of N terminals. For example, taking UE1, UE2 and UE3 as an example, the distance between UE1 and UE2 is L1, which belongs to the first distance interval. The resource allocation method corresponding to the first distance interval is to allow up to 5 resource reuses. Therefore, the P2P transmission resources of UE1 include RB1 to RB10, and the P2P transmission resources of UE2 include RB6 to RB15. RB6 to RB10 are resources reused by UE1 and UE2 at the same time. The distance between UE2 and UE3 is L2, which belongs to the second distance interval. The minimum value of the second distance interval is greater than the maximum value of the first distance interval, that is, L2 is greater than L1. The distance between UE1 and UE3 is L3, which belongs to the first distance interval. The resource allocation method corresponding to the first distance interval is to allow up to 8 resource reuses. In this case, it is necessary to meet the requirement that the number of resources reused simultaneously in the P2P transmission resources of UE3 and UE2 cannot exceed 8, and the number of resources reused simultaneously in the P2P transmission resources of UE3 and UE1 cannot exceed 5. For example, the P2P transmission resources of UE3 include RB8 to RB17, RB8 to RB15 are resources reused simultaneously by UE2 and UE3, that is, 8 resources, and RB8 to RB10 are resources reused simultaneously by UE1 and UE3, that is, 3 resources, which meet the above conditions. The network device can select reused resources in as many ways as possible while meeting the conditions to improve resource utilization. If 8 resources can be reused, do not choose to reuse 7 resources.

[0049] It should be noted that in the solution of the present application, the same resource, such as an RB, is allowed to be multiplexed by two UEs at most. If it is multiplexed by more than two UEs, it is likely to cause resource conflicts.

[0050] The P2P configuration information of the i-th terminal also includes a security parameter ciphertext for the i-th terminal to perform P2P transmission. The security parameter ciphertext is obtained by encrypting the P2P transmission key using the AS layer key of the i-th terminal by the network device, so that when the i-th terminal receives the security parameter ciphertext, the i-th terminal uses its own AS layer key of the i-th terminal to decrypt the security parameter ciphertext to configure the P2P transmission key; the P2P transmission key is shared by N terminals. For example, in the case where the application layer software of N terminals served by the network device requests a P2P service, the method also includes: the network device uses the AS layer keys of the N terminals as input parameters to derive the P2P transmission key. For example, the network device can use the AS layer keys of the N terminals as input parameters, and randomly select the NAS count values ​​of K terminals among the N terminals as random numbers, and calculate the input parameters and the random number through a key derivation function (KDF) to obtain the P2P transmission key. K is an integer less than N. The advantage of this is that it is more random. For the derivation or iterative update of the key (see below for details), the P2P transmission key of any two iterative updates is random and unpredictable, so it is less likely to be cracked or stolen, and has better security. Alternatively, the network device uses the NAS layer keys of the N terminals obtained from the access and mobility management function (AMF) network element serving the N terminals as input parameters to derive the P2P transmission key. For example, the network device can also use the NAS layer keys of the N terminals as input parameters, and randomly select the NAS count values ​​of the K terminals among the N terminals as random numbers, and calculate the input parameters and random numbers through the key derivation function to obtain the P2P transmission key.

[0051] In a possible implementation, when the application layer software of N terminals served by the network device requests a P2P service, the network device determines the P2P configuration information of each of the N terminals. The network device receives a radio resource control (RRC) message carrying request information sent by the terminal, where the request information is used by the application layer software of the terminal to request the P2P service, such as carrying an identifier of the P2P service. Among them, the number of RRC messages carrying the request information is N, that is, N RRC messages all carry the same identifier. In this case, the number of RRC messages carrying the request information is N, which means that each of the N terminals sends an RRC message carrying the request information. Therefore, if the number of RRC messages carrying request information is N, which is greater than or equal to the lower limit number that needs to be met to perform P2P transmission, such as the lower limit number is 3, the network device can start timing when receiving the first RRC message carrying request information, and determine that the total number of RRC messages carrying request information received within the timing period is N, and N is greater than or equal to the lower limit number, then the network device allocates corresponding P2P transmission resources to the N terminals (the specific determination method is as described above, which will not be repeated here), and determines the P2P transmission key (the specific determination method is as described above, which will not be repeated here), and allocates corresponding P2P transmission resources and P2P transmission keys to the N terminals, and determines the P2P configuration information of each of the N terminals.

[0052] It can be understood that the lower limit number usually needs to be greater than 2, that is, if there are only two terminals requesting P2P transmission, then these two terminals can establish a P2P transmission channel through the side link by themselves, without going through the network device, to avoid unnecessary resource overhead. Therefore, the network device may not respond or refuse. When the two terminals determine that the network device has timed out and has not responded / refused, they can establish a side connection by themselves through side broadcast. In other words, in an embodiment of the present application, the network device can act as a role similar to a switch, and realize P2P transmission between any two terminals among multiple members (multiple terminals) in a wireless manner, and ensure transmission security.

[0053] S202: The network device receives P2P service data sent by the i-th terminal.

[0054] S203: The network device sends P2P service data to the j-th terminal to complete the P2P transmission from the ith terminal to the j-th terminal.

[0055] The P2P service data is the service data that needs to be transmitted to the jth terminal among the N terminals, and j is any integer from 1 to N and different from i. The P2P service data is obtained by encrypting the plaintext P2P service data by the i-th terminal using the P2P transmission key, so that when the j-th terminal receives the P2P service data forwarded by the network device, the j-th terminal uses the P2P transmission key to decrypt the P2P service data.

[0056] For example, if UE1 wants to perform P2P transmission with UE2, UE1 can use the P2P transmission key to encrypt the plaintext data (the data contains the identifier of UE2) to obtain the ciphertext. UE1 sends the ciphertext to the network device on the P2P transmission resource of UE1. Correspondingly, the network device receives the ciphertext on the P2P transmission resource of UE1. The network device decrypts the ciphertext using the P2P transmission key and determines that the plaintext contains the identifier of UE2. Therefore, it encrypts the plaintext data using the P2P transmission key to obtain the ciphertext and sends the ciphertext to UE2 on the P2P transmission resource of UE2. Correspondingly, UE2 receives the ciphertext on the P2P transmission resource of UE2. UE2 decrypts the ciphertext using the P2P transmission key to obtain the plaintext. The transmission is now complete.

[0057] Optionally, the embodiment of the present application can also perform P2P transmission key update. For example, the application layer software of M terminals requests the above-mentioned P2P service, M is an integer greater than or equal to 1, and the network device can re-determine the P2P configuration information of each of the M+N terminals, such as the network device can re-determine the P2P transmission resources of each terminal according to the respective positions of the M+N terminals, and meet the requirements of the above-mentioned transmission resources. For example, the network device uses the AS layer key / NAS layer key of each of the N+M terminals as an input parameter to derive the latest P2P transmission key to achieve iterative update of the key. The specific principle can also refer to the above-mentioned related introduction, which will not be repeated here. Of course, if the N terminals want to exit P2P transmission, the network device can release the P2P configuration information of these terminals. In this case, if the number of terminals left after exiting is less than the lower limit number, the network device can also release all the P2P configuration information of the remaining terminals. If the number of terminals left after exiting is greater than or equal to the lower limit number, the network device can also update the P2P transmission key, as described above.

[0058] In summary, since the network device sends the P2P configuration information of each of the N terminals to the N terminals it serves and the application layer software requests P2P services, that is, dynamic configuration, it is possible to configure the P2P transmission service in a non-embedded manner. Since the configuration is dynamic and flexible, any device can be configured for P2P transmission, making P2P transmission more flexible. On this basis, since the network device can participate in it, the P2P transmission can be first from the i-th terminal among the N terminals to the network device, and then from the network device to the j-th terminal among the N terminals. Compared with direct communication between terminals, it can also ensure the stability and reliability of transmission.

[0059] Combination of the above Figure 2The communication method provided by the embodiment of the present application is described in detail. The following describes in detail a system for providing P2P transmission capability for software in a non-embedded form for executing the method for providing P2P transmission capability for software in a non-embedded form provided by the embodiment of the present application.

[0060] The system for providing P2P transmission capability for software in a non-embedded form is applied to a network device, and the system is configured as follows: when application layer software of N terminals served by the network device requests P2P service, the network device sends P2P configuration information of each of the N terminals to the N terminals respectively; N is an integer greater than or equal to 2, and the P2P configuration information of the i-th terminal among the N terminals is used to configure the resources used by the application layer software of the i-th terminal to execute P2P, and i is any integer from 1 to N; the network device receives P2P service data sent by the i-th terminal, wherein the P2P service data is service data that needs to be transmitted to the j-th terminal among the N terminals, and j is any integer from 1 to N and different from i; the network device sends the P2P service data to the j-th terminal to complete the P2P transmission from the i-th terminal to the j-th terminal.

[0061] In a possible design scheme, the network device is a RAN device, and the network device serving N terminals means that: the N terminals are within a service cell of the RAN device, and the N terminals access the RAN device.

[0062] In one possible design scheme, the P2P configuration information of the i-th terminal includes the P2P transmission resources of the i-th terminal. The P2P transmission resources of the i-th terminal are resources configured only for the i-th terminal to use for P2P transmission with a network device, and the P2P transmission resources of the i-th terminal are not shared by other terminals except the N terminals, and the P2P transmission resources of any two of the N terminals are at least partially different.

[0063] In a possible design, the P2P transmission resources of any two of the N terminals are at least partially different, which means that if the distance between any two of the N terminals is closer, the more different transmission resources are in the P2P transmission resources of the any two terminals.

[0064] In a possible design scheme, the P2P configuration information of the i-th terminal also includes a security parameter ciphertext for the i-th terminal to perform P2P transmission, where the security parameter ciphertext is obtained by the network device using the AS layer key of the i-th terminal to encrypt the P2P transmission key, so that when the i-th terminal receives the security parameter ciphertext, the i-th terminal uses its own AS layer key of the i-th terminal to decrypt the security parameter ciphertext to configure the P2P transmission key; the P2P transmission key is shared by N terminals; accordingly, the P2P service data is obtained by the i-th terminal using the P2P transmission key to encrypt the plaintext P2P service data, so that when the j-th terminal receives the P2P service data forwarded by the network device, the j-th terminal uses the P2P transmission key to decrypt the P2P service data.

[0065] In one possible design scheme, when the application layer software of N terminals served by the network device requests P2P service, the system is further configured as: the network device uses the AS layer key of each of the N terminals as an input parameter to derive the P2P transmission key; or, the network device uses the NAS layer key of each of the N terminals obtained from the AMF network element serving the N terminals as an input parameter to derive the P2P transmission key.

[0066] In one possible design, the system is further configured to: when application layer software of N terminals served by the network device requests a P2P service, the network device determines P2P configuration information of each of the N terminals.

[0067] In a possible design scheme, when the application layer software of N terminals served by the network device requests P2P services, the network device determines the P2P configuration information of each of the N terminals, including: the network device receives an RRC message carrying request information sent by the terminal, and the request information is used by the application layer software of the terminal to request the P2P service; wherein the number of RRC messages carrying request information is N, and the number of RRC messages carrying request information is, which means that N terminals each send an RRC message carrying request information; if the number of RRC messages carrying request information is N, which is greater than or equal to the lower limit number that needs to be met to perform P2P transmission, the network device allocates corresponding P2P transmission resources to the N terminals, and determines the P2P transmission key, and allocates the corresponding P2P transmission resources and P2P transmission keys to the N terminals, and determines the P2P configuration information of the N terminals. Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. For example, the electronic device may be a terminal, or a chip (system) or other components or assemblies that may be provided in a terminal. Figure 3As shown, the electronic device 400 may include a processor 401. Optionally, the electronic device 400 may further include a memory 402 and / or a transceiver 403. The processor 401 is coupled with the memory 402 and the transceiver 403, such as being connected via a communication bus.

[0068] Combine the following Figure 3 The components of the electronic device 400 are described in detail:

[0069] The processor 401 is the control center of the electronic device 400, and may be a processor or a general term for multiple processing elements. For example, the processor 401 is one or more central processing units (CPUs), or may be application specific integrated circuits (ASICs), or may be one or more integrated circuits configured to implement the embodiments of the present application, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs).

[0070] Optionally, the processor 401 can execute various functions of the electronic device 400 by running or executing the software program stored in the memory 402 and calling the data stored in the memory 402, such as executing the above Figure 2 The method shown is to provide P2P transmission capability to software in a non-embedded form.

[0071] In a specific implementation, as an embodiment, the processor 401 may include one or more CPUs, such as Figure 3 CPU0 and CPU1 are shown in FIG.

[0072] In a specific implementation, as an embodiment, the electronic device 400 may also include multiple processors. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0073] The memory 402 is used to store the software program for executing the solution of the present application, and the execution is controlled by the processor 401. The specific implementation method can refer to the above method embodiment, which will not be repeated here.

[0074] Optionally, the memory 402 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 402 may be integrated with the processor 401, or may exist independently and accessed through the interface circuit ( Figure 3 404 is coupled to the processor 401, which is not specifically limited in this embodiment of the present application.

[0075] The transceiver 403 is used for communication with other electronic devices. For example, if the electronic device 400 is a terminal, the transceiver 403 can be used to communicate with a network device, or with another terminal device. For another example, if the electronic device 400 is a network device, the transceiver 403 can be used to communicate with a terminal, or with another network device.

[0076] Optionally, the transceiver 403 may include a receiver and a transmitter ( Figure 3 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0077] Optionally, the transceiver 403 may be integrated with the processor 401, or may exist independently and communicate with the electronic device 400 through an interface circuit ( Figure 3 404 is coupled to the processor 401, which is not specifically limited in this embodiment of the present application.

[0078] Understandably, Figure 3 The structure of the electronic device 400 shown in the figure does not constitute a limitation on the electronic device, and the actual electronic device may include more or fewer components than those shown in the figure, or combine certain components, or arrange the components differently.

[0079] In addition, the technical effects of the electronic device 400 can refer to the technical effects of the methods described in the above method embodiments, which will not be repeated here.

[0080] It should be understood that the processor in the embodiments of the present application may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0081] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0082] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0083] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0084] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0085] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0086] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0087] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0088] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0090] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0091] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0092] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for providing P2P transmission capability to software in a non-embedded form, characterized in that: Applied to a network device, the method comprises: In the case where the application layer software of N terminals served by the network device requests a P2P service, the network device sends the P2P configuration information of each of the N terminals to the N terminals respectively; N is an integer greater than 2, the P2P configuration information of the i-th terminal among the N terminals is used to configure the resources used by the application layer software of the i-th terminal to execute P2P, and i is any integer from 1 to N; The network device receives the P2P service data sent by the i-th terminal, wherein the P2P service data is service data that needs to be transmitted to the j-th terminal among the N terminals, and j is any integer ranging from 1 to N and different from i; The P2P service data sent by the network device to the j-th terminal to complete the P2P transmission from the i-th terminal to the j-th terminal; The network device is a RAN device, and the network device serving the N terminals means that: the N terminals are within a service cell range of the RAN device, and the N terminals access the RAN device; The P2P configuration information of the i-th terminal includes a P2P transmission resource of the i-th terminal, the P2P transmission resource of the i-th terminal is a resource configured only for the i-th terminal and the network device to perform P2P transmission, and the P2P transmission resource of the i-th terminal is not shared by other terminals except the N terminals, and the P2P transmission resources of any two terminals among the N terminals are at least partially different; The P2P transmission resources of any two of the N terminals are at least partially different, which means that if the distance between any two of the N terminals is closer, there are more different transmission resources in the P2P transmission resources of the any two terminals; The P2P configuration information of the ith terminal also includes a security parameter ciphertext for the ith terminal to perform P2P transmission, wherein the security parameter ciphertext is obtained by the network device using the AS layer key of the ith terminal to encrypt the P2P transmission key, so that when the ith terminal receives the security parameter ciphertext, the ith terminal uses its own AS layer key of the ith terminal to decrypt the security parameter ciphertext to configure the P2P transmission key; the P2P transmission key is shared by the N terminals; Correspondingly, the P2P service data is obtained by encrypting the plaintext P2P service data by the i-th terminal using the P2P transmission key, so that when the j-th terminal receives the P2P service data forwarded by the network device, the j-th terminal uses the P2P transmission key to decrypt the P2P service data; In the case where application layer software of N terminals served by the network device requests a P2P service, the method further comprises: The network device uses the respective AS layer keys of the N terminals as input parameters to derive the P2P transmission key, specifically including: the network device uses the respective AS layer keys of the N terminals as input parameters, and randomly selects the respective NAS count values ​​of K terminals among the N terminals as random numbers, and calculates the input parameters and the random numbers through a key derivation function to obtain the P2P transmission key; or, the network device uses the respective NAS layer keys of the N terminals obtained from the AMF network element serving the N terminals as input parameters to derive the P2P transmission key, specifically including: the network device uses the respective NAS layer keys of the N terminals as input parameters, and randomly selects the respective NAS count values ​​of K terminals among the N terminals as random numbers, and calculates the input parameters and the random numbers through a key derivation function to obtain the P2P transmission key.

2. The method according to claim 1, characterized in that The method further comprises: In the case where application layer software of N terminals served by the network device request a P2P service, the network device determines P2P configuration information of each of the N terminals.

3. The method according to claim 2, characterized in that In the case where application layer software of N terminals served by the network device requests a P2P service, the network device determines the P2P configuration information of each of the N terminals, including: The network device receives an RRC message carrying request information sent by a terminal, where the request information is used by the application layer software of the terminal to request the P2P service; wherein the number of the RRC messages carrying request information is greater than 2, the number of the RRC messages is N, and the number of the RRC messages carrying request information is, which means that each of the N terminals sends an RRC message carrying request information; If the number N of RRC messages carrying request information is greater than or equal to the lower limit number that needs to be met to perform P2P transmission, the network device allocates corresponding P2P transmission resources to the N terminals, and determines the P2P transmission key, and determines the P2P configuration information of each of the N terminals based on the allocation of corresponding P2P transmission resources and the P2P transmission key to the N terminals.

4. A system for providing P2P transmission capability to software in a non-embedded form, characterized in that: The system is applied to a network device, and the system is configured as follows: In the case where the application layer software of N terminals served by the network device requests a P2P service, the network device sends the P2P configuration information of each of the N terminals to the N terminals respectively; N is an integer greater than 2, the P2P configuration information of the i-th terminal among the N terminals is used to configure the resources used by the application layer software of the i-th terminal to execute P2P, and i is any integer from 1 to N; The network device receives the P2P service data sent by the i-th terminal, wherein the P2P service data is service data that needs to be transmitted to the j-th terminal among the N terminals, and j is any integer ranging from 1 to N and different from i; The P2P service data sent by the network device to the j-th terminal to complete the P2P transmission from the i-th terminal to the j-th terminal; The network device is a RAN device, and the network device serving the N terminals means that: the N terminals are within a service cell range of the RAN device, and the N terminals access the RAN device; The P2P configuration information of the i-th terminal includes a P2P transmission resource of the i-th terminal, the P2P transmission resource of the i-th terminal is a resource configured only for the i-th terminal and the network device to perform P2P transmission, and the P2P transmission resource of the i-th terminal is not shared by other terminals except the N terminals, and the P2P transmission resources of any two terminals among the N terminals are at least partially different; The P2P transmission resources of any two of the N terminals are at least partially different, which means that if the distance between any two of the N terminals is closer, there are more different transmission resources in the P2P transmission resources of the any two terminals; The P2P configuration information of the ith terminal also includes a security parameter ciphertext for the ith terminal to perform P2P transmission, wherein the security parameter ciphertext is obtained by the network device using the AS layer key of the ith terminal to encrypt the P2P transmission key, so that when the ith terminal receives the security parameter ciphertext, the ith terminal uses its own AS layer key of the ith terminal to decrypt the security parameter ciphertext to configure the P2P transmission key; the P2P transmission key is shared by the N terminals; Correspondingly, the P2P service data is obtained by encrypting the plaintext P2P service data by the i-th terminal using the P2P transmission key, so that when the j-th terminal receives the P2P service data forwarded by the network device, the j-th terminal uses the P2P transmission key to decrypt the P2P service data; In the case where application layer software of N terminals served by the network device requests a P2P service, the method further comprises: The network device uses the respective AS layer keys of the N terminals as input parameters to derive the P2P transmission key, specifically including: the network device uses the respective AS layer keys of the N terminals as input parameters, and randomly selects the respective NAS count values ​​of K terminals among the N terminals as random numbers, and calculates the input parameters and the random numbers through a key derivation function to obtain the P2P transmission key; or, the network device uses the respective NAS layer keys of the N terminals obtained from the AMF network element serving the N terminals as input parameters to derive the P2P transmission key, specifically including: the network device uses the respective NAS layer keys of the N terminals as input parameters, and randomly selects the respective NAS count values ​​of K terminals among the N terminals as random numbers, and calculates the input parameters and the random numbers through a key derivation function to obtain the P2P transmission key.