Multi-user data security management method and device based on DPU, equipment and medium

By adopting a DPU-based multi-user data security management method in the network processor, the problem of data confusion caused by insufficient permission management during multi-user operations is solved, and data stability and security are improved.

CN118656393APending Publication Date: 2024-09-17YUSUR TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410808986.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In traditional network processors, if permissions are not managed when multiple users operate data at the same time, operation errors are prone to occur, leading to data chaos.

Method used

Adopt a multi-user data security management method based on DPU, and determine the operation permissions of the target user by initializing the status list, arbitration module, query module and execution module of the parameter buffer area, and perform operations with permissions to avoid simultaneous operations by multiple users Data buffer to ensure data stability.

Benefits of technology

It effectively avoids data errors caused by simultaneous operations by multiple users, improves data stability, and ensures data security and correctness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656393A
    Figure CN118656393A
Patent Text Reader

Abstract

The embodiment of the invention provides a DPU-based multi-user data security management method and device, equipment and a medium, and the method comprises the steps: initializing a state list of a parameter cache region, the state list being used for indicating the state of the parameter cache region; arbitrating an operation request initiated by at least one user, and determining a target user according to an arbitration result; querying the state of the parameter cache region to obtain a query result, the query result being used for indicating an operation authority corresponding to a first operation initiated by the target user; and under the condition that the target user has the operation authority, executing the first operation. According to the method provided by the embodiment of the invention, user misoperation can be solved, and data stability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of network communication technology, and in particular to a DPU-based multi-user data security management method, device, equipment and medium. Background Art

[0002] With the continuous improvement of communication technology, the rapid development of storage chips and computer technology, the requirements for processors are getting higher and higher. Research has found that in traditional network processors, there will be multiple users operating on a certain piece of data at the same time. If user permissions are not managed, operational errors are likely to occur, creating data chaos.

[0003] Therefore, in this scenario, it is urgent to propose a user authority management method to solve user misoperation and improve data stability. Summary of the invention

[0004] The embodiment of the present application provides a multi-user data security management method based on DPU to solve user misoperation and improve data stability.

[0005] In a first aspect, an embodiment of the present application provides a multi-user data security management method based on a DPU, comprising:

[0006] Initialize a status list of a parameter buffer, wherein the status list is used to indicate the status of the parameter buffer;

[0007] Arbitrating an operation request initiated by at least one user, and determining a target user according to a result of the arbitration;

[0008] Querying the state of the parameter buffer area to obtain a query result, wherein the query result is used to indicate the operation authority corresponding to the first operation initiated by the target user;

[0009] If the target user has the operation authority, the first operation is performed.

[0010] In a possible implementation, the query result is used to indicate the operation permission corresponding to the first operation initiated by the target user, including:

[0011] The query result includes an indicator bit, and the operation authority of the target user is judged according to the indicator bit to determine the operation authority of the target user.

[0012] In a possible implementation manner, after determining the operation authority of the target user, the first operation is performed if the target user has the operation authority.

[0013] In a possible implementation manner, the first operation includes at least one of the following:

[0014] Apply for cache permissions, release cache permissions, write data, or read data.

[0015] In a second aspect, an embodiment of the present application provides a multi-user data security management device based on a DPU, comprising:

[0016] An initialization module, used for initializing a status list of a parameter buffer area, wherein the status list is used for indicating a status of the parameter buffer area;

[0017] An arbitration module, used to arbitrate an operation request initiated by at least one user, and determine a target user according to a result of the arbitration;

[0018] A query module, used to query the state of the parameter buffer area to obtain a query result, wherein the query result is used to indicate the operation authority corresponding to the first operation initiated by the target user;

[0019] An execution module is used to execute the first operation when the target user has the operation authority.

[0020] In a possible implementation, the query result is used to indicate the operation permission corresponding to the first operation initiated by the target user, including:

[0021] The query result includes an indicator bit, and the operation authority of the target user is judged according to the indicator bit to determine the operation authority of the target user.

[0022] In a possible implementation manner, after determining the operation authority of the target user, the first operation is performed if the target user has the operation authority.

[0023] In a possible implementation manner, the first operation includes at least one of the following:

[0024] Apply for cache permissions, release cache permissions, write data, or read data.

[0025] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:

[0026] at least one processor;

[0027] and a memory communicatively coupled to the at least one processor;

[0028] Among them, the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the electronic device to execute a DPU-based multi-user data security management method corresponding to any embodiment in the first aspect of the embodiments of the present application.

[0029] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement a DPU-based multi-user data security management method as described in any of the first aspects of the embodiments of the present application.

[0030] In a fifth aspect, the present disclosure further provides a computer program product, which includes computer execution instructions, which, when executed by a processor, are used to implement a DPU-based multi-user data security management method as in any embodiment corresponding to the first aspect of the present disclosure.

[0031] In summary, the method shown in the embodiment of the present application prevents multiple users from operating the data buffer at the same time in a complex network processor, causing data errors, thereby resolving user misoperations and improving data stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0033] In order to more clearly illustrate the embodiments of the present invention 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0034] Figure 1 A diagram of the architecture of a multi-user data security management method provided in an embodiment of the present application;

[0035] Figure 2 A schematic diagram of the Lock_state_process module provided in an embodiment of the present application;

[0036] Figure 3 A schematic diagram of Lock_state_table provided in an embodiment of the present application;

[0037] Figure 4 A schematic diagram of a multi-user data security management method flow chart provided in an embodiment of the present application;

[0038] Figure 5 A flowchart of a method for implementing multi-user data security management provided in an embodiment of the present application;

[0039] Figure 6 A schematic diagram of a multi-user data security management device provided in an embodiment of the present application;

[0040] Figure 7Schematic diagram of an electronic device for a multi-user data security management method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.

[0042] The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The following will describe the embodiments of the present application in conjunction with the accompanying drawings.

[0043] It should be noted that, in this article, relational terms such as "first" and "second" 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.

[0044] Research has found that in traditional network processors, multiple users may operate on a certain piece of data at the same time. If user permissions are not managed, operational errors are likely to occur, causing data confusion.

[0045] Therefore, in this scenario, it is urgent to propose a multi-user data security management method to solve user misoperation and improve data stability.

[0046] The embodiment of the present application provides a multi-user data security management method based on DPU to solve user misoperation and improve data stability.

[0047] Figure 1 This is a diagram of the architecture of the multi-user data security management method provided in the embodiment of the present application. Figure 1 In the example, Adapter is an adapter module. Multiple users can access Adapter at the same time. Adapter has multiple channels. Figure 1 There are N channels in it. After the operation requests initiated by multiple users pass through the Adapter, the Adapter processes the operation requests serially and then sends them to the decoder module.

[0048] Decoder is a decoder that receives operation requests from the Adapter and parses the operations corresponding to the operation requests. The operations include: applying for cache permissions, releasing cache permissions, data writing operations, or data reading operations.

[0049] Lock_state_process module: includes query submodule Lock_state_inquire, judgment submodule Lock_state_judge, processing submodule data_process, and processing submodule lock_state_modify. The query submodule Lock_state_inquire initiates a status query request to Lock_state_table, and Lock_state_table returns the status query result to the judgment submodule Lock_state_judge, which determines whether the current user has the permission for the corresponding operation. If not, enter data_read_fail and continue to wait. If there is permission to operate, execute the operation. When the operation corresponding to the user's request is a data write operation or a data read operation, enter the processing submodule data_process. When the operation corresponding to the user's request is to apply for cache area permission or release cache area permission, enter the processing submodule lock_state_modify.

[0050] The corresponding data is stored in MEM.

[0051] Lock_state_table stores whether the user has operation permissions.

[0052] Encoder is an encoder. If the operation corresponding to the user's request is to apply for cache permissions or release cache permissions, it returns ack to the encoder. If the operation corresponding to the user's request is a data write operation or a data read operation, it returns the data and encodes the data.

[0053] Figure 2 A schematic diagram of the Lock_state_process module provided in the embodiment of the present application; Figure 2 In the Lock_state_inquire module, the Lock_state_inquire module is used to complete the state query operation, which includes two instruction sources:

[0054] S0: The front-end module completes the data decoding operation and obtains the instruction information;

[0055] S4: data_read instruction failed, and entered the read wait sequence instruction information.

[0056] data_read_fail module: caches the instructions of failed data read requests, and repeatedly initiates data read request instructions within a fixed period, that is, step S4.

[0057] Lock_state_judge module: judges the status information returned by S2:

[0058] S3_1: Read data permission comparison failed;

[0059] S3_2: The application permission comparison is successful;

[0060] S3_3: Read and write data permissions comparison is successful;

[0061] S3_4: The command returns if the data writing fails or the permission removal fails.

[0062] data_process module: completes the data reading and writing operations, i.e. step S6.

[0063] Lock_state_modify module: completes the update operation of the state list, that is, step S5.

[0064] Figure 3 A schematic diagram of the Lock_state_table module provided in the embodiment of the present application; Figure 3 In the address field, addr is the real address of RAM, data is the storage data of RAM, and the data format is defined as follows:

[0065] Addr: storage space address;

[0066] Data: User ID and status:

[0067] [7:4]: User ID;

[0068] [3:0]: Status number:

[0069] 4'd0: not applied for;

[0070] 4'd1: Already applied for.

[0071] In the embodiment of the present application, the data received by the adapter needs to be decomposed and the request identified. The data operation application received by the adapter includes: applying for cache permissions, releasing cache permissions, data write operations or data read operations, so how to distinguish these requests is also a key issue that needs to be considered. Therefore, the key interface of the architecture is designed as follows, and the content of the request is distinguished by the indication of the flag bit.

[0072] In Table 1, the content requested by the user is divided by the flag bit.

[0073] Table 1

[0074]

[0075]

[0076] Table 2-1 and Table 2-2 provide a method for defining a frame format according to an embodiment of the present application. When i_wr_cmd==1, the input is an operation instruction:

[0077] Table 2-1

[0078] Instruction Type direction i_wr_dat[3:0] i_wr_add[11:0] request in 4’b001 addr release in 4’b010 addr

[0079] Note: in = user->this module, out = this module->user. When i_wr_cmd == 0, the input is write data.

[0080] When o_rd_cmd == 1, the output is a return instruction.

[0081] Table 2-2

[0082]

[0083] Note: in = user->this module, out = this module->user

[0084] When o_rd_cmd == 0, the output is read data.

[0085] Figure 4 A schematic diagram of a multi-user data security management method based on DPU is provided for an embodiment of the present application. Figure 4 The method includes step S401, step S402, step S403 and step S404. Each step is described in detail as follows.

[0086] Step S401: Initialize a status list of a parameter buffer area, where the status list is used to indicate the status of the parameter buffer area.

[0087] In the embodiment of the present application, Figure 1 The state list of the parameter buffer is Lock_state_stable. The state of the parameter buffer is determined according to the indication of Lock_state_stable.

[0088] Step S402: arbitrate the operation request initiated by at least one user, and determine the target user according to the result of the arbitration.

[0089] In the embodiment of the present application, when there is only one user, the user is determined to be the target user. When there are multiple users, the multiple users are sorted by arbitration and processed in sequence according to the sorting results.

[0090] Step S403: query the state of the parameter buffer area to obtain a query result, where the query result is used to indicate the operation authority corresponding to the first operation initiated by the target user.

[0091] In a possible implementation, the query result is used to indicate the operation permission corresponding to the first operation initiated by the target user, including:

[0092] The query result includes an indicator bit, and the operation authority of the target user is judged according to the indicator bit to determine the operation authority of the target user.

[0093] In a possible implementation manner, after determining the operation authority of the target user, the first operation is performed if the target user has the operation authority.

[0094] In a possible implementation manner, the first operation includes at least one of the following:

[0095] Apply for cache permissions, release cache permissions, write data, or read data.

[0096] In one possible implementation, when the first operation is to apply for cache area permission, if the first operation is successful: only if the applied data cache area is not occupied by other users, the current initiating user can apply for the current data cache area, and respond with request_succed; if the first operation fails: it is checked that the applied data cache area is occupied by other users, the current initiating user cannot complete the permission application, and responds with request_fail.

[0097] In one possible implementation, when the first operation is to release the cache area permission, if the first operation is successful: the cache area permission can be released only when the data cache area is owned by the current user, and the response is release_succed; if the first operation fails: it is checked that the applied data cache area is not owned by the current user, and the release operation cannot be completed, and the response is release fail.

[0098] In a possible implementation, when the first operation is a data write operation, a write permission check is performed on the current user before writing data.

[0099] (1) The data cache area has not been requested and can be written by all users;

[0100] (2) The data cache area is requested, and it is determined whether the current user has write permission:

[0101] A: The current user has the write permission for the data cache area: the data write operation is completed;

[0102] B: The current user does not have the write permission for the data buffer: response data_write_fail.

[0103] In a possible implementation, when the first operation is a data read operation, a read permission judgment is performed on the current user before reading the data;

[0104] (1) The data cache area has not been requested and can be read by all users;

[0105] (2) The data cache area is requested, and it is determined whether the current user has read permission:

[0106] A: The current user has the read permission for the data cache: respond to read data;

[0107] B: The current user does not have the read permission for the data cache area: the process enters the waiting state until the read permission is obtained and the read data is responded.

[0108] Step S404: If the target user has operation authority, execute the first operation.

[0109] Figure 5 This is a flowchart of the multi-user data security management implementation method provided in the embodiment of the present application. Figure 5 Provide detailed explanation.

[0110] A: Power-on initialization completes the initialization of the parameter buffer status list, and all data buffers are not applied. That is, when the parameter buffers are all cleared, it means that the data buffers are all available.

[0111] B: Complete multi-user data channel arbitration. Sort multiple users, determine target users, process target users, and perform data analysis operations on target users.

[0112] C: Initiate a status query operation, determine the user's permissions based on the query results, and perform corresponding operations based on the determination results:

[0113] C_1: If the user initiates a cache permission application, and the data cache area is not occupied by other users, the current user completes the data cache application, updates the status list, and responds to request_succed; if the data cache area is occupied by other users, the current user's application fails and responds to request_fail;

[0114] C_2: If the user initiates the release of cache permissions, and the data cache is owned by the current user, the current user completes the release of the data cache, updates the status list, and responds to release_succed; if the data cache is not owned by the current user, the current user fails to release it and responds to release_fail;

[0115] C_3: If a user initiates a data write operation and the data buffer area has not been requested, all users can write;

[0116] C_4: If the user initiates a data write operation and the data buffer has been applied for, determine whether the current user has the write permission. If the current user has the write permission for the data buffer, complete the data write operation; if the current user does not have the write permission for the data buffer, respond with data_write_fail;

[0117] C_5: If the user initiates a data read operation and the data buffer area has not been requested, all users can read and respond to the read data;

[0118] C_6: If the user initiates a data read operation and the data cache area has been applied for, then determine whether the current user has the read permission. If the current user has the read permission for the data cache area, respond with a read data request; if the current user does not have the read permission for the data cache area, enter the waiting sequence until the read permission is obtained, and respond with a read data request.

[0119] D: Complete the framing operation of the returned data.

[0120] In summary, the method shown in the embodiment of the present application prevents multiple users from operating the data buffer at the same time in a complex network processor, causing data errors, thereby resolving user misoperations and improving data stability.

[0121] Figure 6 A schematic diagram of a multi-user data security management device provided in an embodiment of the present application. The device comprises: an initialization module 601, which is used to initialize a status list of a parameter buffer, wherein the status list is used to indicate the status of the parameter buffer; an arbitration module 602, which is used to arbitrate an operation request initiated by at least one user, and determine a target user according to the result of the arbitration; a query module 603, which is used to query the status of the parameter buffer and obtain a query result, wherein the query result is used to indicate the operation authority corresponding to the first operation initiated by the target user; and an execution module 604, which is used to execute the first operation if the target user has the operation authority.

[0122] In a possible implementation, the query result is used to indicate the operation permission corresponding to the first operation initiated by the target user, including:

[0123] The query result includes an indicator bit, and the operation authority of the target user is judged according to the indicator bit to determine the operation authority of the target user.

[0124] In a possible implementation manner, after determining the operation authority of the target user, the first operation is performed if the target user has the operation authority.

[0125] In a possible implementation manner, the first operation includes at least one of the following:

[0126] Apply for cache permissions, release cache permissions, write data, or read data.

[0127] In a possible implementation, the device is used to implement Figures 4 to 5 The method of any corresponding embodiment.

[0128] Figure 7 A schematic diagram of an electronic device for a multi-user data security management method provided in an embodiment of the present application, such as Figure 7 As shown, the electronic device 700 includes: a memory 710 and a processor 720 .

[0129] The memory 710 stores a computer program that can be executed by at least one processor 720. The computer program is executed by at least one processor 720 to enable the electronic device to implement the method provided in any of the above embodiments.

[0130] The memory 710 and the processor 720 may be connected via a bus 730 .

[0131] The relevant instructions can be understood by referring to the relevant descriptions and effects corresponding to the method embodiments, which will not be repeated here.

[0132] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the following Figures 4 to 5 The method of any corresponding embodiment.

[0133] Among them, the computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0134] An embodiment of the present application provides a computer program product, which includes computer-executable instructions, which are used to implement the following when the computer-executable instructions are executed by a processor: Figures 4 to 5 The method of any corresponding embodiment.

[0135] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules 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 modules, which can be electrical, mechanical or other forms.

[0136] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the disclosure disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope of the present application is indicated by the claims.

[0137] It should be understood that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims

1. A multi-user data security management method based on DPU, It is characterized in that include: Initialize a status list of a parameter buffer, wherein the status list is used to indicate the status of the parameter buffer; Arbitrating an operation request initiated by at least one user, and determining a target user according to a result of the arbitration; Querying the state of the parameter buffer area to obtain a query result, wherein the query result is used to indicate the operation authority corresponding to the first operation initiated by the target user; If the target user has the operation authority, the first operation is performed.

2. The method according to claim 1, It is characterized in that The query result is used to indicate the operation authority corresponding to the first operation initiated by the target user, including: The query result includes an indicator bit, and the operation authority of the target user is judged according to the indicator bit to determine the operation authority of the target user.

3. The method according to claim 2, It is characterized in that After determining the operation authority of the target user, the first operation is performed if the target user has the operation authority.

4. The method according to any one of claims 1 to 3, It is characterized in that The first operation includes at least one of the following: Apply for cache permissions, release cache permissions, write data, or read data.

5. A multi-user data security management device based on DPU, It is characterized in that include: An initialization module, used for initializing a status list of a parameter buffer area, wherein the status list is used for indicating a status of the parameter buffer area; An arbitration module, used to arbitrate an operation request initiated by at least one user, and determine a target user according to a result of the arbitration; A query module, used to query the state of the parameter buffer area to obtain a query result, wherein the query result is used to indicate the operation authority corresponding to the first operation initiated by the target user; An execution module is used to execute the first operation when the target user has the operation authority.

6. The device according to claim 5, It is characterized in that The first operation includes at least one of the following: Apply for cache permissions, release cache permissions, write data, or read data.

7. An electronic device, It is characterized in that include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the electronic device to perform the method as claimed in any one of claims 1 to 4.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 4 when executed by a processor.

9. A computer program product comprising computer executable instructions, It is characterized in that The computer-executable instructions are used to implement the method according to any one of claims 1 to 4 when executed by a processor.

Citation Information

Patent Citations

  • Permission-based operation control method and device

    CN110968890A

  • Data transmission device and method

    CN111258769A

  • Thread synchronization method and device, chip simulation method and platform and related equipment

    CN115729627A

  • Data read-write method and system for shared cache, switch chip and storage medium

    CN117827477A

  • Buffer storaging method and system for multiple users access

    CN1858724A