A data processing method, device and base station

By creating an initial session when a user accesses a base station and managing operation resources in the hardware accelerator, the session operation overhead problem caused by frequent creation and deletion of sessions by hardware coprocessors is solved, and the encryption and decryption performance and data processing efficiency are improved.

CN114554481BActive Publication Date: 2024-11-22DATANG MOBILE COMM EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011338282.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-25
Publication Date
2024-11-22
Estimated Expiration
2040-11-25

AI Technical Summary

Technical Problem

In the prior art, hardware coprocessors need to frequently create and delete sessions during data encryption, decryption and integrity processing, resulting in a large session operation overhead and seriously affect the encryption and decryption performance.

Method used

Create an initial session when the user accesses the base station, and manages operation resources in the hardware accelerator through index identification, avoiding creating and deleting sessions before and after each data processing, and reducing session operation overhead.

Benefits of technology

Improves encryption and decryption performance, reduces session operation overhead, and improves the data processing efficiency of the base station.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114554481B_ABST
    Figure CN114554481B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data processing method, device and base station, including: when the application layer receives an access request sent by a user, it calls a session creation interface; the driver layer allocates an index identifier for the initial session, presets encryption and decryption information in the initial session, obtains a service session, and feeds back the index identifier to the application layer; the application layer obtains the storage address of the data from the user, passes the storage address and index identifier to the driver layer, and calls the encryption and decryption interface; the driver layer allocates operation resources for the data in the hardware accelerator, and associates the service session with the operation resources; the hardware accelerator uses the preset encryption and decryption information included in the service session associated with the operation resources to process the data and obtain the processed data; after the driver layer detects that the data processing is completed, it recycles the operation resources. Applying the technical solution provided by the embodiment of the present application reduces the session operation overhead during data encryption and decryption and integrity processing, and improves the encryption and decryption performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data processing method, device and base station. Background Art

[0002] As the number of users accessing 5G base stations increases, the data on the air interface increases dramatically, which poses a serious challenge to data processing on the baseband side. In addition, the 5G system has strict security requirements, and data encryption and decryption often consumes a lot of computing resources. In order to reduce the processing burden on the baseband side, hardware coprocessors are generally used to implement data encryption, decryption and integrity processing.

[0003] In the related art, when a hardware coprocessor is used to implement data encryption, decryption and integrity processing, each encryption and decryption needs to create and initialize a session first, and then perform encryption and decryption. After the encryption, decryption and integrity processing of the data are completed, the session is deleted. This makes the session operation overhead during data encryption, decryption and integrity processing relatively large, which seriously reduces the encryption and decryption performance. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a data processing method, device and base station to reduce the session operation overhead during data encryption and decryption and integrity processing, and improve encryption and decryption performance. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a data processing method, which is applied to a base station, and the method includes:

[0006] When receiving an access request sent by a user, the application layer calls a session creation interface to create an initial session carrying the user's service in the hardware accelerator;

[0007] The driver layer allocates an index identifier for the initial session, presets encryption and decryption information in the initial session, obtains a service session, and feeds the index identifier back to the application layer;

[0008] The application layer obtains the storage address of the data from the user, passes the storage address and the index identifier to the driver layer, and calls the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator;

[0009] The driver layer allocates operation resources for the data in the hardware accelerator according to the storage address and the index identifier, and associates the service session with the operation resources;

[0010] The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data;

[0011] The driver layer reclaims the operation resource after detecting that the data has been processed.

[0012] Optionally, the method further includes:

[0013] When the application layer receives a logoff request sent by the user, it calls a session deletion interface to delete the service session in the hardware accelerator;

[0014] The driver layer releases the resources occupied by the index identifier and recycles the index identifier.

[0015] Optionally, the step of allocating an index identifier to the initial session by the driver layer includes:

[0016] The driver layer extracts an index identifier from a session index stack and assigns the index identifier to the initial session;

[0017] The step of the driver layer releasing the resources occupied by the index identifier and recycling the index identifier includes:

[0018] The driver layer releases the resources occupied by the index identifier and pushes the index identifier into the session index stack.

[0019] Optionally, the method further includes:

[0020] The driver layer calculates the initialization vector corresponding to the data and adds the operation resource to a circular queue;

[0021] The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data, including:

[0022] The hardware accelerator extracts the operation resource from the circular queue, and processes the data using the preset encryption and decryption information included in the service session associated with the extracted operation resource and the initialization vector to obtain processed data.

[0023] Optionally, the method further includes:

[0024] After the hardware accelerator processes the data to obtain processed data, the hardware accelerator overwrites the data stored at the storage address with the processed data, and moves the operation resource to the completion queue;

[0025] The step of the driver layer recovering the operation resource after detecting that the data has been processed includes:

[0026] When the driver layer detects the operation resource in the completion queue, it sets a completion flag for the processed data stored at the storage address and recycles the operation resource.

[0027] Optionally, the pointer of the completion mark corresponds to the pointer of the operation resource in a one-to-one manner, and the pointer of the completion mark and the pointer of the operation resource are maintained through a stack data structure.

[0028] Optionally, the data is stored in an mbuf (memory buffer) structure.

[0029] Optionally, the driver layer is based on a DPDK (Data Plane Development Kit) encryption framework.

[0030] Optionally, the base station includes a plurality of the application layers, and the plurality of application layers include a main application layer;

[0031] The main application layer obtains the total number of the plurality of application layers, and allocates a virtual device in the hardware accelerator to each application layer;

[0032] After each application layer is initialized, a mapping relationship between the application layer and the virtual device allocated to the application layer is established.

[0033] In a second aspect, an embodiment of the present application provides a base station, including a memory, a transceiver, and a processor; the memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; the processor is used to read the computer program in the memory and perform the following operations:

[0034] When receiving an access request sent by a user, the application layer calls a session creation interface to create an initial session carrying the user's service in the hardware accelerator;

[0035] The driver layer allocates an index identifier for the initial session, presets encryption and decryption information in the initial session, obtains a service session, and feeds the index identifier back to the application layer;

[0036] The application layer obtains the storage address of the data from the user, passes the storage address and the index identifier to the driver layer, and calls the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator;

[0037] The driver layer allocates operation resources for the data in the hardware accelerator according to the storage address and the index identifier, and associates the service session with the operation resources;

[0038] The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data;

[0039] The driver layer reclaims the operation resource after detecting that the data has been processed.

[0040] Optionally, the processor is further configured to read a computer program in the memory and perform the following operations:

[0041] When the application layer receives a logoff request sent by the user, it calls a session deletion interface to delete the service session in the hardware accelerator;

[0042] The driver layer releases the resources occupied by the index identifier and recycles the index identifier.

[0043] Optionally, the step of allocating an index identifier to the initial session by the driver layer includes:

[0044] The driver layer extracts an index identifier from a session index stack and assigns the index identifier to the initial session;

[0045] The step of the driver layer releasing the resources occupied by the index identifier and recycling the index identifier includes:

[0046] The driver layer releases the resources occupied by the index identifier and pushes the index identifier into the session index stack.

[0047] Optionally, the processor is further configured to read a computer program in the memory and perform the following operations:

[0048] The driver layer calculates the initialization vector corresponding to the data and adds the operation resource to a circular queue;

[0049] The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data, including:

[0050] The hardware accelerator extracts the operation resource from the circular queue, and processes the data using the preset encryption and decryption information included in the service session associated with the extracted operation resource and the initialization vector to obtain processed data.

[0051] Optionally, the processor is further configured to read a computer program in the memory and perform the following operations:

[0052] After the hardware accelerator processes the data to obtain processed data, the hardware accelerator overwrites the data stored at the storage address with the processed data, and moves the operation resource to the completion queue;

[0053] The step of the driver layer recovering the operation resource after detecting that the data has been processed includes:

[0054] When the driver layer detects the operation resource in the completion queue, it sets a completion flag for the processed data stored at the storage address and recycles the operation resource.

[0055] Optionally, the pointer of the completion mark corresponds to the pointer of the operation resource in a one-to-one manner, and the pointer of the completion mark and the pointer of the operation resource are maintained through a stack data structure.

[0056] Optionally, the data is stored in an mbuf structure.

[0057] Optionally, the driver layer is based on a DPDK encryption framework.

[0058] Optionally, the base station includes a plurality of the application layers, and the plurality of application layers include a main application layer;

[0059] The processor is further configured to read the computer program in the memory and perform the following operations:

[0060] The main application layer obtains the total number of the plurality of application layers, and allocates a virtual device in the hardware accelerator to each application layer; after each application layer is initialized, a mapping relationship between the application layer and the virtual device allocated to the application layer is established.

[0061] In a third aspect, an embodiment of the present application provides a data processing device, applied to a base station, the device comprising:

[0062] The application layer is used to call the session creation interface when receiving an access request sent by the user, so as to create an initial session carrying the service of the user in the hardware accelerator;

[0063] The driver layer is used to allocate an index identifier for the initial session, preset encryption and decryption information in the initial session, obtain a service session, and feed back the index identifier to the application layer;

[0064] The application layer is further used to obtain the storage address of the data from the user, pass the storage address and the index identifier to the driver layer, and call the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator;

[0065] The driver layer is further used to allocate operation resources to the data in the hardware accelerator according to the storage address and the index identifier, and associate the service session with the operation resources;

[0066] The hardware accelerator is used to process the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data;

[0067] The driver layer is further used to recycle the operation resources after detecting that the data has been processed.

[0068] In a fourth aspect, an embodiment of the present application provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable a processor to execute any of the methods described above.

[0069] In the technical solution provided in the embodiment of the present application, when the application layer receives the access request from the user, it creates a session in the hardware accelerator and manages the index identifier assigned to the session by the driver layer. Subsequently, when the application layer processes the data from the user, it needs to pass the index identifier and the storage address of the data to the driver layer, and the driver layer can obtain the corresponding session and the data based on the storage address and the index identifier, and then process the data. It can be seen that in the embodiment of the present application, it is sufficient to create a session when the user accesses the base station, and it is not necessary to create a session for each piece of data obtained from the user, which reduces the session operation overhead during data encryption and decryption and integrity processing, and improves encryption and decryption performance.

[0070] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0072] Figure 1a A schematic diagram of a deployment of a soft core in a base station provided in an embodiment of the present application;

[0073] Figure 1b for Figure 1a A deployment diagram of a soft core in ;

[0074] Figure 2 A schematic diagram of a deployment of a data processing model provided in an embodiment of the present application;

[0075] Figure 3 A schematic diagram of a data processing method provided in an embodiment of the present application;

[0076] Figure 4a A schematic diagram of the correspondence between a service session and an index identifier provided in an embodiment of the present application;

[0077] Figure 4b A schematic diagram of an operation example of an index identification stack provided in an embodiment of the present application;

[0078] Figure 5 A schematic diagram of an operation example of completing identification and operating resources provided in an embodiment of the present application;

[0079] Figure 6 Another schematic diagram of a data processing method provided in an embodiment of the present application;

[0080] Figure 7 for Figure 6 A schematic diagram of the refinement of step S68;

[0081] Figure 8 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0082] Fig. 9 A schematic diagram of the structure of a base station provided in an embodiment of the present application. DETAILED DESCRIPTION

[0083] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0084] In the related art, when a hardware coprocessor is used to implement data encryption, decryption, and integrity processing, each encryption and decryption needs to create and initialize a session before encryption and decryption is performed. After the encryption, decryption, and integrity processing of the data are completed, the session is deleted. This makes the session operation overhead during data encryption, decryption, and integrity processing relatively large, which seriously reduces the encryption and decryption performance.

[0085] To solve the above problems, an embodiment of the present application also provides a data processing method, which is applied to a base station, specifically a baseband board of a base station. The base station can be a gNB (next Generation Node Base Station) or an eNB (evolved Node Base Station). gNB is a 5G base station, and eNB is a 4G base station. Among them, the base station includes an application layer, a driver layer and a hardware accelerator. Among them, the application layer can be implemented based on PDCP (Packet Data Convergence Protocol), and the driver layer can be based on the DPDK (Data Plane Development Kit) encryption framework.

[0086] In an embodiment of the present application, the DPDK encryption framework may be a DPDK CRYPTO framework. The DPDK CRYPTO device (CRYPTODEV) is a software library of a DPDK, and is a complete framework that covers software and hardware CRYPTO engine drivers. DPDKCRYPTODEV can provide a unified API (Application Programming Interface) for various software and hardware CRYPTO engines with different algorithms, and hide various highly optimized CRYPTO (encryption) implementation details from users. The CRYPTODEV rotation mode driver set of DPDK contains the implementation of a variety of chained CRYPTO / authentication operations. DPDK CRYPTODEV also has a unified implementation of asymmetric queuing and dequeuing, which can ensure the optimization of hardware CRYPTO operation efficiency.

[0087] The DPDK CRYPTO framework supports batch processing interfaces. Based on the DPDK CRYPTO framework, data is encrypted and decrypted as well as integrity processed. Multiple packets of data can be processed in batches, for example, 32 packets of data can be processed in a single batch. The processing efficiency of the DPDK CRYPTO framework is close to that of the QAT (Quick Assist Technology) hardware, which improves the throughput efficiency of the base station. Under the condition that the overhead of each process call process is the same, the base station provided by the embodiment of the present application can process more data.

[0088] In addition, the DPDK CRYPTO framework is based on the VF (Virtual Function) attribute, and the soft core and the virtual QAT device are deployed in a 1:N ratio to meet the application's requirements for priority and multi-threading. Among them, the virtual QAT device can be understood as a VF device, or a hardware accelerator.

[0089] The DPDK CRYPTO framework provides a consistent OSP IOCTL (Operating System Platform input / output control) interface, through which the soft core and the virtual QAT device communicate. The specific deployment method is as follows: Figure 1a and 1b In the embodiment of the present application, the base station includes multiple soft cores, such as Figure 1a Each soft core includes multiple application layers. Each application layer is connected to a VF device (which can be understood as a virtual QAT device, referred to as a virtual device) through an OSP IOCTL interface and enables the corresponding process, such as Figure 1b As shown. Each virtual device includes at least one qp (Quantum Platform, lightweight platform), such as Figure 1a Each application layer processes user service data of a cell. The above multiple application layers include a main application layer.

[0090] The main application layer obtains the total number of multiple application layers, and allocates a virtual device in the hardware accelerator to each application layer; after each application layer is initialized, a mapping relationship between the application layer and the virtual device allocated to the application layer is established.

[0091] In the embodiment of the present application, the soft core can flexibly deploy multiple processes (one process is connected to one application layer). When the main process (the main process is connected to the main application layer) is initialized, the soft core can read the local configuration table, obtain the number of all processes, and allocate sufficient QAT resources. When the slave process is initialized, the process id (identity) is automatically mapped to the virtual QAT device id.

[0092] The DPDK CRYPTO framework has a strong cache capacity. The bottom queue can cache up to 4095 tasks at the same time. The number of users in a single cell can reach 1200, and the number of sessions can reach 7200. In combination with the above soft core, multiple processes can be deployed. The technical solution provided in the embodiment of the present application can support the processing of a large amount of user service data in multiple cells.

[0093] In addition, by using the DPDK CRYPTO framework, the number of sessions in the base station is unlimited, and the number of users in multiple cells can be supported without limit.

[0094] Furthermore, the driver code of the DPDK CRYPTO framework is highly compatible with the application layer functions and interface designs. Therefore, when a base station based on the DPDK CRYPTO framework adopts a new hardware accelerator platform, the migration cost is greatly reduced.

[0095] In addition, the open source code version of the DPDK CRYPTO framework is quickly iterated and easy to maintain and upgrade. The open source nature of the DPDK CRYPTO framework enables the DPDK CRYPTO framework to support source code-level problem tracing, and can be updated in a timely manner in the 5G base station system, which is conducive to the stability of the 5G base station system.

[0096] The data processing model in this data processing method is as follows Figure 2 As shown. When the application layer receives the user's access request, it calls the session creation interface to create an initial session that carries the user's business in the hardware accelerator; the driver layer allocates an index identifier for the initial session, presets encryption and decryption information in the initial session, obtains the business session, and feeds back the index identifier to the application layer; the application layer obtains the storage address of the data from the user, and passes the storage address and index identifier to the driver layer; the driver layer allocates OP (Operating) resources for the data in the hardware accelerator according to the storage address and index identifier, and associates the business session with the operating resources; the hardware accelerator uses the preset encryption and decryption information included in the business session associated with the OP resource to process the data and obtain the processed data; after detecting that the data processing is completed, the driver layer recycles the operating resources.

[0097] The service session may include but is not limited to alg (Application Layer Gateway), dir (directory), key (keyword) and IV (initialization vector) information. OP resources include but are not limited to service session information, src (Source) object and dst (destination) object. The src object and dst object include but are not limited to data and the length of the data.

[0098] In the technical solution provided in the embodiment of the present application, when the application layer receives the access request from the user, it creates a session in the hardware accelerator and manages the index identifier assigned to the session by the driver layer. Subsequently, when the application layer processes the data from the user, it needs to pass the index identifier and the storage address of the data to the driver layer, and the driver layer can obtain the corresponding session and the data based on the storage address and the index identifier, and then process the data. It can be seen that in the embodiment of the present application, it is sufficient to create a session when the user accesses the base station, and it is not necessary to create a session for each piece of data obtained from the user, which reduces the session operation overhead during data encryption and decryption and integrity processing, and improves encryption and decryption performance.

[0099] A data processing method provided in an embodiment of the present application is described in detail below through a specific embodiment.

[0100] See also Figure 3 , Figure 3 A schematic diagram of a data processing method provided in an embodiment of the present application. The method is applied to a base station and includes the following steps:

[0101] Step S31 : upon receiving the user's access request, the application layer calls a session creation interface to create an initial session for carrying the user's service in the hardware accelerator.

[0102] In the embodiment of the present application, when a user needs to go online, he sends an access request to the base station. After receiving the access request sent by the user, the application layer of the base station calls the session creation interface to create an initial session carrying the user's service in the hardware accelerator.

[0103] In one example, for a user, the application layer creates 8 initial sessions for the user, including 4 initial sessions of SRB (Signalling Radio Bearers) and 4 initial sessions of DRB (Data Radio Bearers). The 8 initial sessions can be broken down into: initial session of uplink decryption, initial session of uplink full security, initial session of downlink encryption and initial session of downlink full security of SRB, initial session of uplink decryption, initial session of uplink full security, initial session of downlink encryption and initial session of downlink full security of DRB.

[0104] In another example, for a user, the application layer creates 6 initial sessions for the user, and the 6 initial sessions include: an initial session for uplink decryption, an initial session for downlink encryption, and an initial session for uplink and downlink complete security of SRB, an initial session for uplink decryption, an initial session for downlink encryption, and an initial session for uplink and downlink complete security of DRB.

[0105] Step S32: the driver layer allocates an index identifier for the initial session, presets encryption and decryption information in the initial session, obtains a service session, and feeds back the index identifier to the application layer.

[0106] After the application layer creates the initial session, the driver layer assigns an index identifier to the initial session. The index identifier of each initial session is unique. The driver layer presets encryption and decryption information in the initial session to obtain a service session. The preset encryption and decryption information may include but is not limited to encryption and decryption algorithm type and key information. The above-mentioned assignment of an index identifier to the initial session is to assign an index identifier to the service session.

[0107] The service session includes complete information required to process data. In addition, the driver layer feeds back the index identifier assigned to the initial session to the application layer. Afterwards, the application layer can perform encryption and decryption processing on the data from the user based on the index identifier of the initial session.

[0108] Step S33, the application layer obtains the storage address of the data from the user, passes the storage address and index identifier to the driver layer, and calls the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator.

[0109] After the user accesses the base station and starts transmitting data, the application layer receives the data from the user and stores the data in the base station. The application layer obtains the storage address of the data and passes the storage address of the data and the index identifier of the user's service session to the driver layer.

[0110] Step S34: the driver layer allocates operation resources to the data in the hardware accelerator according to the storage address and the index identifier, and associates the service session with the operation resources.

[0111] The driver layer receives the storage address and index identifier from the application layer, obtains data from the user according to the storage address, obtains the service session of the user according to the index identifier, allocates operation resources to the obtained data in the hardware accelerator, and associates the service session with the operation resources.

[0112] Step S35: The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data.

[0113] After the encryption and decryption processing in the hardware accelerator, the hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data. The data processing includes encryption processing, decryption processing, and integrity processing.

[0114] Step S36: After detecting that the data processing is completed, the driver layer reclaims the operation resources.

[0115] The driver layer detects in real time whether the hardware accelerator has completed the data processing. After detecting that the data processing is completed, the driver layer reclaims the operation resources allocated for the data so as to allocate operation resources for subsequent data.

[0116] In the technical solution provided in the embodiment of the present application, when the application layer receives the access request from the user, it creates a session in the hardware accelerator and manages the index identifier assigned to the session by the driver layer. Subsequently, when the application layer processes the data from the user, it needs to pass the index identifier and the storage address of the data to the driver layer, and the driver layer can obtain the corresponding session and the data based on the storage address and the index identifier, and then process the data. It can be seen that in the embodiment of the present application, it is sufficient to create a session when the user accesses the base station, and it is not necessary to create a session for each piece of data obtained from the user, which reduces the session operation overhead during data encryption and decryption and integrity processing, and improves encryption and decryption performance.

[0117] In one embodiment of the present application, a user needs to go offline and sends a request to the base station to go offline. When the application layer receives the request to go offline sent by the user, it calls the session deletion interface to delete the service session of the user in the hardware accelerator; in addition, the driver layer releases the resources occupied by the index identifier of the service session of the user and recycles the index identifier.

[0118] When the user goes online, the application layer creates an initial session that carries the user's business, and then the driver layer fills the initial session to obtain the user's business session. The base station then processes data from the user based on the user's business session. When the user needs to go offline, the user's business session is deleted. It can be seen that in the embodiment of the present application, from the time the user goes online to the time the user goes offline, the base station can process all data from the user based on the business session created when the user goes online, that is, from the time the user goes online to the time the user goes offline, the base station only needs to create a session once and delete the session once, and there is no need to recreate or delete a session every time a packet of data is received, which greatly reduces the session operation overhead during data encryption and decryption and integrity processing, and improves encryption and decryption performance.

[0119] In addition, in the embodiment of the present application, after the application layer deletes the service session, the driver layer recycles the index identifier and subsequently allocates the index identifier to services of other users, thereby saving index identifier resources.

[0120] In one embodiment of the present application, the index identifier of the session is maintained in a "stack" data structure. Specifically, the process of allocating the index identifier based on the "stack" data structure, that is, the above step S32, may include: the driver layer extracts the index identifier from the session index stack and allocates the index identifier to the initial session. In addition, the process of reclaiming the index identifier based on the "stack" data structure may include: the driver layer releases the resources occupied by the index identifier of the service session and pushes the index identifier into the session index stack.

[0121] For example, Figure 4a The corresponding relationship between the business session and the index identifier is shown in Figure 4bThe operation example of the index identifier stack shown in FIG. 1 is an example of an operation example of an index identifier stack. The index identifiers in the index identifier stack are not assigned to the index identifiers of the user's session. The session pool includes n sessions, and the n sessions correspond to n index identifiers respectively, such as Figure 4a The index identifiers shown include 1, 2, ..., n. The index identifiers correspond to sessions one by one. The index identifier stack includes n index identifiers of n sessions in the session pool. After the application layer creates an initial session, the driver layer extracts an index identifier from the index identifier and gives it to the user's initial session, such as Figure 4b When the application layer deletes a service session, the driver layer pushes the index identifier of the service session into the session index stack, such as Figure 4b The index identifier n is shown. Afterwards, the driver layer can continue to assign the index identifier n in the session index stack to the user's initial session.

[0122] In the embodiment of the present application, the creation and deletion of sessions are completely independent of the encryption and decryption process, which realizes the decoupling of sessions from encryption and decryption operations. It can be understood as solidifying the "unchanged" part of the encryption and decryption operations into the underlying hardware, and only processing data-related operations each time. In addition, the driver layer uses the session index stack to manage and maintain index identifiers. When the driver layer assigns index identifiers, it does not need to traverse the created sessions to determine the assigned index identifiers, which improves the efficiency of session creation and improves the efficiency of data processing. In addition, considering the efficiency of session creation, the number of sessions is theoretically unlimited.

[0123] In one embodiment of the present application, the driver layer calculates the IV (initialization vector) corresponding to the data and adds the operation resource to the circular queue. Afterwards, the hardware accelerator extracts the operation resource from the circular queue, and processes the data using the preset encryption and decryption information included in the service session associated with the extracted operation resource and the IV corresponding to the data to obtain the processed data.

[0124] In the embodiment of the present application, IV is used to encrypt data. The encryption mode using IV can be called block encryption mode. The driver layer calculates the IV corresponding to the data, and the IV is used by the subsequent hardware accelerator to encrypt and decrypt the data. In addition, the driver layer adds the operation resource to the circular queue. Afterwards, the hardware accelerator can extract the operation resource from the circular queue, and use the preset encryption and decryption information included in the business session associated with the operation resource, as well as the IV corresponding to the data, to process the data to obtain the processed data.

[0125] In one embodiment of the present application, after the hardware accelerator processes the data and obtains the processed data, the processed data overwrites the data stored at the storage address and moves the operation resource to the completion queue. The driver layer can call the dequeue interface to detect whether the completion queue includes the operation resource. When the driver layer detects the operation resource for the data in the completion queue, it means that the hardware accelerator has completed the processing of the data, and the driver layer sets the completion flag for the processed data stored at the storage address of the data and reclaims the operation resource.

[0126] The completion flag may be an okflag flag. The okflag flag is used to notify the upper layer application of the completion of the processing. After the driver layer sets the completion flag on the post data, the application layer can detect whether the data has been processed, and then forward the processed data, that is, forward the processed data.

[0127] In the embodiment of the present application, the application layer can query whether the processing of the data is completed at any time by calling the query interface, that is, query whether the encryption and decryption operation is completed by calling the query interface. After the application layer calls the query interface, the driver layer can call the dequeue interface to detect whether the completion queue includes operation resources, and then set the processed data stored at the storage address of the data to the okflag flag when the operation resource for the data is detected in the completion queue, and recycle the operation resource. In this way, the application layer can detect the okflag flag of the data, and then determine that the encryption and decryption operation of the data has been completed, and forward the processed data, that is, forward the processed data.

[0128] In the embodiment of the present application, the creation, query and deletion operations of the session are independent of each other, and the start of the encryption and decryption operation and the query of the result are independent of each other. The design of the fully asynchronous interface is realized, saving the "waiting" time of the CPU (Central Processing Unit).

[0129] In one embodiment of the present application, data is stored in an mbuf structure. The mbuf structure can be directly referenced by the underlying driver (i.e., the driver layer). Similarly, the data processing result can also be directly stored in the specified mbuf by the hardware accelerator, achieving "zero copy", further improving the data processing efficiency, and saving storage resources.

[0130] In one embodiment of the present application, the pointer of the completion mark corresponds to the pointer of the operation resource one by one, that is, each packet of data has a completion mark. The pointer of the completion mark is stored in the metadata area of ​​the mbuf structure header. In this way, the application layer can directly determine whether the encryption and decryption operation of the data is completed through the metadata area of ​​the mbuf structure header where the data is located, thereby realizing the "no traversal" of the data and improving the forwarding efficiency of the data.

[0131] In one embodiment of the present application, the pointer of the completion mark and the pointer of the operation resource can be maintained by a "stack" data structure (hereinafter referred to as a pointer mark stack), and the pointer of the completion mark in the pointer mark stack corresponds to the pointer of the operation resource one by one. The data structure of the "stack" that maintains the pointer of the completion mark and the pointer of the operation resource is consistent with the size of the underlying queue. For example, the underlying queue can cache up to 4095 tasks at the same time, and the pointer mark stack can cache up to 4095 completion mark pointers.

[0132] In the embodiment of the present application, the operation example of completing the identification and operation resource is as follows: Figure 5 As shown. Multiple packets of data are stored in the data storage area, each packet of data corresponds to a completion mark, and each packet of data is stored according to the mbuf structure. The mbuf structure is divided into a header and a data area. The packet data is stored in the data area of ​​the mbuf structure. The mbuf structure header includes a metadata area, and the metadata area includes a pointer to the completion mark. The driver layer extracts the pointer of the operation resource and the pointer of the completion mark (such as the ok pointer) from the pointer mark stack. The driver layer extracts the completion mark of the data in the data storage area, and fills the completion mark with the pointer of the completion mark. In addition, the driver layer fills the pointer of the operation resource with the address of the mbuf structure (which can be understood as the storage address of the source data). After filling the pointer of the completion mark and the pointer of the operation resource, the operation resource is pushed into the circular queue. After the data processing is completed, the driver layer fills the completion mark in the metadata area.

[0133] In the embodiment of the present application, the initial session and the service session are collectively referred to as a session. The session creation interface, the encryption and decryption interface, and the session deletion interface belong to the OSP IOCTL interface.

[0134] Combine the following Figure 6 The flow chart shown illustrates the data processing method provided in the embodiment of the present application.

[0135] Step S61: The application layer receives an access request sent by a user.

[0136] Step S62: The application layer calls a session creation interface to create an initial session.

[0137] Step S63: The driver layer allocates an index identifier for the initial session.

[0138] Step S64, the driver layer configures xfrm information, etc.

[0139] Step S65: The driver layer creates a symmetric session (sym_session_create), which may specifically include the driver layer filling the session with preset encryption and decryption information to obtain the required service session.

[0140] Step S66: the driver layer initializes the symmetric session (sym_session_init).

[0141] Step S67: The driver layer records the service session information.

[0142] Step S68: The driver layer feeds back the index identifier to the application layer.

[0143] Step S69: The application layer calls the encryption and decryption interface to encrypt and decrypt the data.

[0144] Step S610: the application layer receives a logoff request sent by the user.

[0145] Step S611: The application layer calls a session deletion interface to delete the service session in the hardware accelerator.

[0146] Step S612: The driver layer deletes the symmetric session in the hardware accelerator.

[0147] Step S613: the driver layer releases the resources occupied by the index identifier.

[0148] Step S614: the driver layer recycles the index identifier.

[0149] Combine the following Figure 7 The flow chart shown is Figure 6 Step S68 is described in detail.

[0150] Step S681: The application layer obtains multiple packets of data to be encrypted.

[0151] Step S682: The application layer calls the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator.

[0152] Step S683: The driver layer allocates OP resources for the data.

[0153] Step S684: The driver layer calculates IV and other information corresponding to the data. IV and other information can be filled into the service session.

[0154] Step S685: The driver layer associates the service session with the OP resource.

[0155] Step S686: The driver layer adds the OP resource to the circular queue and returns a queue entry success message to the application layer.

[0156] Step S687, the application layer switches to other tasks to be executed, which may specifically include: the application layer executes steps S681-S686 on other data to be encrypted.

[0157] Step S688: The application layer calls a query interface to query whether the data processing is completed.

[0158] Step S689, the driver layer dequeues in batches. Specifically, it may include: after the hardware accelerator completes the encryption and decryption processing of the above-mentioned multiple packets of data to be encrypted, the OP resources of the multiple packets of data after the encryption and decryption processing are added to the completion queue.

[0159] Step S6810: After the driver layer determines that the encryption and decryption processing of the above-mentioned multiple packages of data to be encrypted is completed, a completion mark is set for the multiple packages of data after the encryption and decryption processing is completed.

[0160] Step S6811: The driver layer updates the service session, for example, updating the number of packets of processed data of the service session.

[0161] Step S6812: the driver layer reclaims OP resources.

[0162] Step S6813, the application layer reads the multiple packets of data after the encryption and decryption processing is completed.

[0163] In the embodiment of the present application, the description of the above steps S61-S613 and S681-S6813 is relatively simple, and the details can be found in the relevant description of the above Figures 1-5, which will not be repeated here.

[0164] Based on the above data processing method, the present application embodiment also provides a data processing device. Figure 8 , Figure 8 A schematic diagram of a data processing device provided in an embodiment of the present application. The device is applied to a base station, including:

[0165] The application layer 81 is used to call the session creation interface when receiving an access request sent by the user, so as to create an initial session carrying the user's service in the hardware accelerator 83;

[0166] The driver layer 82 is used to assign an index identifier to the initial session, preset encryption and decryption information in the initial session, obtain the service session, and feed back the index identifier to the application layer 82;

[0167] The application layer 81 is also used to obtain the storage address of the data from the user, pass the storage address and index identifier to the driver layer 82, and call the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator 83;

[0168] The driver layer 82 is further used to allocate operation resources for data in the hardware accelerator 83 according to the storage address and the index identifier, and associate the service session with the operation resource;

[0169] The hardware accelerator 83 is used to process the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data;

[0170] The driver layer 82 is also used to reclaim operation resources after detecting that the data processing is completed.

[0171] In one embodiment of the present application, the application layer 81 may also be used to call a session deletion interface to delete the service session in the hardware accelerator when receiving a logoff request sent by a user;

[0172] The driver layer 82 may also be used to release resources occupied by the index identifier and recycle the index identifier.

[0173] In one embodiment of the present application, the driver layer 82 may be specifically configured to: extract an index identifier from a session index stack and assign the index identifier to an initial session; release resources occupied by the index identifier and push the index identifier into the session index stack.

[0174] In one embodiment of the present application, the driver layer 82 may also be used to calculate an initialization vector corresponding to the data and add the operation resource to a circular queue;

[0175] The hardware accelerator 83 can be specifically used for the hardware accelerator to extract operation resources from the circular queue, and use the preset encryption and decryption information included in the service session associated with the extracted operation resources and the initialization vector to process the data to obtain processed data.

[0176] In one embodiment of the present application, the hardware accelerator 83 may also, after processing the data to obtain the processed data, overwrite the data stored at the storage address with the processed data, and move the operation resource to the completion queue;

[0177] The driver layer 82 may be specifically configured to set a completion flag for the processed data stored at the storage address and reclaim the operation resource when an operation resource is detected in the completion queue.

[0178] In one embodiment of the present application, the pointer of the completion mark corresponds to the pointer of the operation resource one by one, and the pointer of the completion mark and the pointer of the operation resource are maintained through a stack data structure.

[0179] In one embodiment of the present application, data is stored in an mbuf structure.

[0180] In one embodiment of the present application, the driver layer is based on the DPDK encryption framework.

[0181] In one embodiment of the present application, the base station includes multiple application layers 81, and the multiple application layers 81 may include a main application layer;

[0182] The main application layer is used to obtain the total number of multiple application layers and allocate a virtual device in the hardware accelerator to each application layer;

[0183] Each application layer is also used to establish a mapping relationship between the application layer and the virtual device allocated to the application layer after initialization.

[0184] In the technical solution provided in the embodiment of the present application, when the application layer receives the access request from the user, it creates a session in the hardware accelerator and manages the index identifier assigned to the session by the driver layer. Subsequently, when the application layer processes the data from the user, it needs to pass the index identifier and the storage address of the data to the driver layer, and the driver layer can obtain the corresponding session and the data based on the storage address and the index identifier, and then process the data. It can be seen that in the embodiment of the present application, it is sufficient to create a session when the user accesses the base station, and it is not necessary to create a session for each piece of data obtained from the user, which reduces the session operation overhead during data encryption and decryption and integrity processing, and improves encryption and decryption performance.

[0185] Based on the above data processing method, the embodiment of the present application also provides a base station, such as Fig. 9 As shown, it includes a memory 91, a transceiver 92 and a processor 93; the memory 91 is used to store computer programs; the transceiver 92 is used to send and receive data under the control of the processor 93; the processor 93 is used to read the computer program in the memory 91 and perform the following operations:

[0186] When the application layer receives an access request sent by the user, it calls the session creation interface to create an initial session that carries the user's service in the hardware accelerator;

[0187] The driver layer allocates an index identifier for the initial session, presets encryption and decryption information in the initial session, obtains the service session, and feeds the index identifier back to the application layer;

[0188] The application layer obtains the storage address of the data from the user, passes the storage address and index identifier to the driver layer, and calls the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator;

[0189] The driver layer allocates operation resources to the data in the hardware accelerator according to the storage address and index identifier, and associates the business session with the operation resources;

[0190] The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data;

[0191] After detecting that the data processing is completed, the driver layer reclaims the operation resources.

[0192] In one embodiment of the present application, the processor 93 may also be used to read a computer program in the memory and perform the following operations:

[0193] When the application layer receives a logoff request from the user, it calls the session deletion interface to delete the service session in the hardware accelerator;

[0194] The driver layer releases the resources occupied by the index identifier and recycles the index identifier.

[0195] In one embodiment of the present application, the step of assigning an index identifier to the initial session by the driver layer includes:

[0196] The driver layer extracts the index identifier from the session index stack and assigns the index identifier to the initial session;

[0197] The driver layer releases the resources occupied by the index identifier and reclaims the index identifier, including:

[0198] The driver layer releases the resources occupied by the index identifier and pushes the index identifier into the session index stack.

[0199] In one embodiment of the present application, the processor 93 may also be used to read the computer program in the memory 91 and perform the following operations:

[0200] The driver layer calculates the initialization vector corresponding to the data and adds the operation resources to the circular queue;

[0201] The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data, including:

[0202] The hardware accelerator extracts the operation resources from the circular queue, and processes the data using the preset encryption and decryption information included in the service session associated with the extracted operation resources and the initialization vector to obtain processed data.

[0203] In one embodiment of the present application, the processor 93 is further configured to read the computer program in the memory 91 and perform the following operations:

[0204] After the hardware accelerator processes the data and obtains the processed data, it overwrites the data stored at the storage address with the processed data and moves the operation resource to the completion queue;

[0205] After the driver layer detects that the data has been processed, the steps for reclaiming the operation resources include:

[0206] When the driver layer detects the operation resource in the completion queue, it sets the completion flag of the processed data stored at the storage address and reclaims the operation resource.

[0207] In one embodiment of the present application, the pointer of the completion mark corresponds to the pointer of the operation resource one by one, and the pointer of the completion mark and the pointer of the operation resource are maintained through a stack data structure.

[0208] In one embodiment of the present application, data is stored in an mbuf structure.

[0209] In one embodiment of the present application, the driver layer is based on the DPDK encryption framework.

[0210] In one embodiment of the present application, the base station includes multiple application layers, the multiple application layers include a main application layer;

[0211] The processor 93 may also be used to read the computer program in the memory 91 and perform the following operations:

[0212] The main application layer obtains the total number of multiple application layers, and allocates a virtual device in the hardware accelerator to each application layer; after each application layer is initialized, a mapping relationship between the application layer and the virtual device allocated to the application layer is established.

[0213] In the technical solution provided in the embodiment of the present application, when the application layer receives the access request from the user, it creates a session in the hardware accelerator and manages the index identifier assigned to the session by the driver layer. Subsequently, when the application layer processes the data from the user, it needs to pass the index identifier and the storage address of the data to the driver layer, and the driver layer can obtain the corresponding session and the data based on the storage address and the index identifier, and then process the data. It can be seen that in the embodiment of the present application, it is sufficient to create a session when the user accesses the base station, and it is not necessary to create a session for each piece of data obtained from the user, which reduces the session operation overhead during data encryption and decryption and integrity processing, and improves encryption and decryption performance.

[0214] exist Fig. 9In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors 93 represented by processor 93 and memory represented by memory 91. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface for connecting the processor 93, the memory 91, and the transceiver 92. The transceiver 92 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, including wireless channels, wired channels, optical cables, and other transmission media. For different user devices, the bus interface may also be an interface capable of externally connecting or internally connecting required devices, and the connected devices include, but are not limited to, a keypad, a display, a speaker, a microphone, a joystick, and the like.

[0215] The memory 91 may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0216] The processor 93 is responsible for managing the bus architecture and general processing, and the memory 91 can store data used by the processor 93 when performing operations.

[0217] Optionally, the processor 93 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.

[0218] Based on the above data processing method, an embodiment of the present application further provides a processor-readable storage medium storing a computer program, and the computer program is used to enable the processor to execute any of the above data processing method steps.

[0219] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0220] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, base station, and processor-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0221] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A data processing method, It is characterized in that Applied to a base station, the method comprises: When receiving an access request sent by a user, the application layer calls a session creation interface to create an initial session carrying the user's service in the hardware accelerator; The driver layer allocates an index identifier for the initial session, presets encryption and decryption information in the initial session, obtains a service session, and feeds the index identifier back to the application layer; The application layer obtains the storage address of the data from the user, passes the storage address and the index identifier to the driver layer, and calls the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator; The driver layer allocates operation resources for the data in the hardware accelerator according to the storage address and the index identifier, and associates the service session with the operation resources; The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data; The driver layer reclaims the operation resource after detecting that the data has been processed.

2. The method according to claim 1, It is characterized in that The method further comprises: When the application layer receives a logoff request sent by the user, it calls a session deletion interface to delete the service session in the hardware accelerator; The driver layer releases the resources occupied by the index identifier and recycles the index identifier.

3. The method according to claim 2, It is characterized in that The step of allocating an index identifier to the initial session by the driver layer includes: The driver layer extracts an index identifier from a session index stack and assigns the index identifier to the initial session; The step of the driver layer releasing the resources occupied by the index identifier and recycling the index identifier includes: The driver layer releases the resources occupied by the index identifier and pushes the index identifier into the session index stack.

4. The method according to claim 1, It is characterized in that The method further comprises: The driver layer calculates the initialization vector corresponding to the data and adds the operation resource to a circular queue; The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data, including: The hardware accelerator extracts the operation resource from the circular queue, and processes the data using the preset encryption and decryption information included in the service session associated with the extracted operation resource and the initialization vector to obtain processed data.

5. The method according to claim 4, It is characterized in that The method further comprises: After the hardware accelerator processes the data to obtain processed data, the hardware accelerator overwrites the data stored at the storage address with the processed data, and moves the operation resource to the completion queue; The step of the driver layer recovering the operation resource after detecting that the data has been processed includes: When the driver layer detects the operation resource in the completion queue, it sets a completion flag for the processed data stored at the storage address and reclaims the operation resource.

6. The method according to claim 5, It is characterized in that The pointer of the completion mark corresponds to the pointer of the operation resource in a one-to-one manner, and the pointer of the completion mark and the pointer of the operation resource are maintained through a stack data structure.

7. The method according to any one of claims 1 to 6, It is characterized in that The data is stored in a memory cache mbuf structure.

8. The method according to any one of claims 1 to 6, It is characterized in that The driver layer is based on the data plane development kit DPDK encryption framework.

9. The method according to any one of claims 1 to 6, It is characterized in that The base station comprises a plurality of the application layers, wherein the plurality of application layers comprises a main application layer; The main application layer obtains the total number of the plurality of application layers, and allocates a virtual device in the hardware accelerator to each application layer; After each application layer is initialized, a mapping relationship between the application layer and the virtual device allocated to the application layer is established.

10. A base station, It is characterized in that The invention comprises a memory, a transceiver and a processor; the memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; the processor is used to read the computer program in the memory and perform the following operations: When receiving an access request sent by a user, the application layer calls a session creation interface to create an initial session carrying the user's service in the hardware accelerator; The driver layer allocates an index identifier for the initial session, presets encryption and decryption information in the initial session, obtains a service session, and feeds the index identifier back to the application layer; The application layer obtains the storage address of the data from the user, passes the storage address and the index identifier to the driver layer, and calls the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator; The driver layer allocates operation resources for the data in the hardware accelerator according to the storage address and the index identifier, and associates the service session with the operation resources; The hardware accelerator processes the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data; The driver layer reclaims the operation resource after detecting that the data has been processed.

11. A data processing device, It is characterized in that Applied to a base station, the device comprises: The application layer is used to call the session creation interface when receiving an access request sent by the user, so as to create an initial session carrying the service of the user in the hardware accelerator; The driver layer is used to allocate an index identifier for the initial session, preset encryption and decryption information in the initial session, obtain a service session, and feed back the index identifier to the application layer; The application layer is further used to obtain the storage address of the data from the user, pass the storage address and the index identifier to the driver layer, and call the encryption and decryption interface to start the encryption and decryption processing in the hardware accelerator; The driver layer is further used to allocate operation resources to the data in the hardware accelerator according to the storage address and the index identifier, and associate the service session with the operation resources; The hardware accelerator is used to process the data using the preset encryption and decryption information included in the service session associated with the operation resource to obtain processed data; The driver layer is further used to recycle the operation resources after detecting that the data has been processed.

12. A processor-readable storage medium, It is characterized in that The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the method according to any one of claims 1 to 9.