A method for generating verification incentives

By obtaining and distributing incentive allocation parameters, generating and sending doorbell information, it solves the problem of suddenness and flexibility of scheduling scenarios of massive scheduling units, realizes the merging function and credit release of DPU chip scheduling units, and improves simulation efficiency and processor Decrease in wake frequency.

CN117762594BActive Publication Date: 2024-09-10CHENGDU BEIZHONG NETCORE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311804812.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2024-09-10
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively verify and verify the burstiness and flexibility of scheduling scenarios that motivate massive scheduling units, especially in the merging function and credit release function of scheduling units in the DPU chip.

Method used

By obtaining the incentive distribution parameters, generate and distribute doorbell information, use the network security processing chip to execute message sending and receiving requests, fill in the preset doorbell data structure, realize the generation and sending of verification incentives, and synchronously update the target statistical information to monitor the sending situation.

Benefits of technology

It achieves flexible scheduling of massive scheduling units and effective acquisition of verification incentives, taking into account universal scheduling incentives, and expands the merging function and credit release function of DPU chip scheduling units, improving simulation efficiency and reducing processor wake-up frequency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117762594B
    Figure CN117762594B
Patent Text Reader

Abstract

The present invention discloses a method for generating verification incentives, which is designed for the burstiness of massive scheduling units, scheduling unit allocation, and scheduling scenario flexibility. The method first obtains incentive allocation parameters, and then distributes doorbell information of each request to different threads according to the incentive allocation parameters. Then, through flexible scheduling, the doorbell information is processed and the verification incentive is obtained, which can take into account general scheduling incentives and expand the merging function of DPU chip scheduling units.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of scheduling module verification, and in particular to a method for generating verification incentives. Background Art

[0002] Scheduling is generally a concept in operating systems, used to ensure that user threads have equal access to CPU (Central Processing Unit / Processor) resources. Scheduling is also common in chip acceleration engines. For example, in the virtualization of high-speed network cards and DPU (Data Processing Unit) chips, scheduling design is involved to ensure that each virtual thread uses the internal resources of the chip in a fair or priority manner. However, whether the scheduling's burstiness, correctness, and scheduling performance meet the requirements is a great test for verification personnel. Among them, a good incentive that meets multiple scenarios is crucial, and there are very few introductions to this aspect. Summary of the invention

[0003] The purpose of the present invention is to provide a method for generating verification incentives, which is designed for the burstiness of massive scheduling units, scheduling unit allocation, and scheduling scenario flexibility, so as to take into account general scheduling incentives and expand the merging function and credit release function of the DPU chip scheduling unit.

[0004] The present invention is achieved through the following technical solutions:

[0005] A method for generating a verification incentive, comprising:

[0006] Acquire an incentive allocation parameter pre-stored in a database or generated through human-computer interaction, wherein the incentive allocation parameter is used to characterize a scheduling parameter of a message sending and receiving request;

[0007] Generate corresponding doorbell information for all message receiving and sending requests according to the incentive allocation parameters, and obtain target allocation information so that the network security processing chip executes the message receiving and sending requests according to the target allocation information;

[0008] When the network security processing chip executes a message receiving and sending request, the preset doorbell data structure is filled according to the target allocation information to obtain a verification incentive, so that the network security processing chip can pull message data from the host according to the verification incentive and the message receiving and sending request.

[0009] In a possible implementation manner, after filling a preset doorbell data structure according to the target allocation information and obtaining a verification incentive, the method further includes:

[0010] The verification incentive is sent using a preset sending mode, and the target statistical information corresponding to the verification incentive is updated synchronously to monitor the sending status of the verification incentive.

[0011] In a possible implementation, the incentive allocation parameters pre-stored in a database or generated through human-computer interaction are obtained as follows: the total number of doorbell information q_num, the total number of threads vf_num, the doorbell allocation mode q_dist_mode, the thread number allocation mode vf_dist_mode, the minimum number of repeated sending times for each message sending and receiving request pktnum_min, the maximum number of repeated sending times for each message sending and receiving request pktnum_max, the sending mode of each thread vf_send_mode, the starting global queue number gqpn, and the doorbell sending mode sch_mode.

[0012] In a possible implementation, generating corresponding doorbell information for all message sending and receiving requests according to the incentive allocation parameter, and acquiring target allocation information includes:

[0013] According to the thread number allocation method vf_dist_mode, assign a corresponding thread number to each thread;

[0014] According to the doorbell distribution mode q_dist_mode in the incentive distribution parameters, q_num doorbell information is distributed to vf_num different threads, and the total number of doorbell information distributed to each thread and the thread number corresponding to each doorbell information are obtained;

[0015] According to the starting global queue number gqpn in the incentive allocation parameter, a corresponding starting global queue number is assigned to each thread, and a global queue number is assigned to each doorbell information on the thread based on the starting global queue number corresponding to the thread;

[0016] Starting from 0, the local queue number is assigned to the doorbell information corresponding to each thread in turn, and the number of repeated transmissions corresponding to each doorbell information is initialized to pktnum and the sending flag senden is 1; when the sending flag senden is 1, it means that it needs to be sent, and when the sending flag senden is 0, it means that the sending is completed;

[0017] The target allocation information is obtained according to the thread number, global queue number, local queue number, number of repeated sending and sending identifier senden corresponding to each doorbell information.

[0018] In a possible implementation manner, the number of repeated transmissions pktnum is a randomly generated integer between [pktnum_min, pktnum_max].

[0019] In a possible implementation, according to the starting global queue number gqpn in the incentive allocation parameter, a corresponding starting global queue number is allocated to each thread, including:

[0020] Assign the starting global queue number gqpn in the incentive allocation parameter to the first thread to obtain the starting global queue number of the first thread;

[0021] Based on the starting queue number of the first thread, the starting global queue number assigned to the next thread is the starting global queue number of the previous thread plus the total number of doorbell information assigned to the previous thread, to obtain the starting global queue number corresponding to each thread.

[0022] In a possible implementation, allocating a global queue number to each doorbell information on the thread based on the starting global queue number corresponding to the thread includes:

[0023] The starting global queue number corresponding to the thread is used as the global queue number corresponding to the first doorbell information on the thread, and the global queue number corresponding to each subsequent doorbell information is increased by one by the global queue number corresponding to the previous doorbell information, thereby realizing the allocation of global queue numbers.

[0024] In a possible implementation, when the network security processing chip executes a message sending and receiving request, a preset doorbell data structure is filled according to the target allocation information to obtain a verification incentive, including:

[0025] According to the sending mode vf_send_mode of each thread, determine the target doorbell information to be sent on each thread;

[0026] The network security processing chip schedules different threads to fill the preset doorbell data structure according to the target doorbell information, and obtains the verification incentive corresponding to the target doorbell information.

[0027] In a possible implementation, a verification incentive is sent using a preset sending mode, and target statistical information corresponding to the verification incentive is synchronously updated to monitor the sending status of the verification incentive, including:

[0028] According to the doorbell sending mode sch_mode in the incentive allocation parameter, the verification incentive is sent and the sending result is determined; wherein the sending result includes the verification incentive sending success or the verification incentive sending failure;

[0029] When the sending result is that the verification incentive is sent successfully, the sending flag senden in the target statistical information corresponding to the verification incentive is synchronously updated to 0; when the sending result is that the verification incentive fails to be sent, the sending flag senden is maintained unchanged;

[0030] When the sending result is that the verification incentive is sent successfully, the number of repeated sending times in the target statistical information corresponding to the verification incentive is synchronously updated to 0; when the sending result is that the verification incentive fails to be sent, the number of repeated sending times is maintained unchanged;

[0031] The doorbell sending mode sch_mode includes serial sending based on thread number, parallel sending based on thread number, serial sending based on scheduling unit and parallel sending based on scheduling unit.

[0032] In a possible implementation, when the number of consecutive failures in sending the verification stimulus reaches the number of repeated sendings, a warning message of sending failure is generated.

[0033] A method for generating verification incentives provided by the present invention is designed for the burstiness of massive scheduling units, scheduling unit allocation, and scheduling scenario flexibility. The incentive allocation parameters are first obtained, and then the doorbell information of each request is distributed to different threads according to the incentive allocation parameters. Then, through flexible scheduling, the processing of doorbell information and the acquisition of verification incentives are realized, which can take into account general scheduling incentives and expand the merging function of DPU chip scheduling units. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings:

[0035] Figure 1 A flowchart of a method for generating a verification incentive provided in Example 1 of the present invention.

[0036] Figure 2 A flowchart of a method for generating a verification incentive provided in Example 2 of the present invention.

[0037] Figure 3 This is a design block diagram provided for Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0038] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.

[0039] Example 1

[0040] like Figure 1 As shown, this embodiment provides a method for generating a verification stimulus, including:

[0041] S101, obtaining an incentive allocation parameter pre-stored in a database or generated through human-computer interaction, wherein the incentive allocation parameter is used to characterize a scheduling parameter of a message sending and receiving request;

[0042] S102, generating corresponding doorbell information for all message receiving and sending requests according to the incentive allocation parameters, and obtaining target allocation information, so that the network security processing chip executes the message receiving and sending requests according to the target allocation information;

[0043] S103. When the network security processing chip executes a message receiving and sending request, the preset doorbell data structure is filled according to the target allocation information to obtain a verification incentive, so that the network security processing chip pulls message data from the host according to the verification incentive and the message receiving and sending request.

[0044] In a possible implementation manner, after filling a preset doorbell data structure according to the target allocation information and obtaining a verification incentive, the method further includes:

[0045] S104: Use a preset sending mode to send the verification incentive, and synchronously update the target statistical information corresponding to the verification incentive to monitor the sending status of the verification incentive.

[0046] In a possible implementation, the incentive allocation parameters pre-stored in a database or generated through human-computer interaction are obtained as follows: the total number of doorbell information q_num, the total number of threads vf_num, the doorbell allocation mode q_dist_mode, the thread number allocation mode vf_dist_mode, the minimum number of repeated sending times for each message sending and receiving request pktnum_min, the maximum number of repeated sending times for each message sending and receiving request pktnum_max, the sending mode of each thread vf_send_mode, the starting global queue number gqpn, and the doorbell sending mode sch_mode.

[0047] In a possible implementation, generating corresponding doorbell information for all message sending and receiving requests according to the incentive allocation parameter, and acquiring target allocation information includes:

[0048] According to the thread number allocation method vf_dist_mode, assign a corresponding thread number to each thread;

[0049] According to the doorbell distribution mode q_dist_mode in the incentive distribution parameters, q_num doorbell information is distributed to vf_num different threads, and the total number of doorbell information distributed to each thread and the thread number corresponding to each doorbell information are obtained;

[0050] According to the starting global queue number gqpn in the incentive allocation parameter, a corresponding starting global queue number is assigned to each thread, and a global queue number is assigned to each doorbell information on the thread based on the starting global queue number corresponding to the thread;

[0051] Starting from 0, the local queue number is assigned to the doorbell information corresponding to each thread in turn, and the number of repeated transmissions corresponding to each doorbell information is initialized to pktnum and the sending flag senden is 1; when the sending flag senden is 1, it means that it needs to be sent, and when the sending flag senden is 0, it means that the sending is completed;

[0052] The target allocation information is obtained according to the thread number, global queue number, local queue number, number of repeated sending and sending identifier senden corresponding to each doorbell information.

[0053] In a possible implementation manner, the number of repeated transmissions pktnum is a randomly generated integer between [pktnum_min, pktnum_max].

[0054] In a possible implementation, according to the starting global queue number gqpn in the incentive allocation parameter, a corresponding starting global queue number is allocated to each thread, including:

[0055] Assign the starting global queue number gqpn in the incentive allocation parameter to the first thread to obtain the starting global queue number of the first thread;

[0056] Based on the starting queue number of the first thread, the starting global queue number assigned to the next thread is the starting global queue number of the previous thread plus the total number of doorbell information assigned to the previous thread, to obtain the starting global queue number corresponding to each thread.

[0057] In a possible implementation, allocating a global queue number to each doorbell information on the thread based on the starting global queue number corresponding to the thread includes:

[0058] The starting global queue number corresponding to the thread is used as the global queue number corresponding to the first doorbell information on the thread, and the global queue number corresponding to each subsequent doorbell information is increased by one by the global queue number corresponding to the previous doorbell information, thereby realizing the allocation of global queue numbers.

[0059] In a possible implementation, when the network security processing chip executes a message sending and receiving request, a preset doorbell data structure is filled according to the target allocation information to obtain a verification incentive, including:

[0060] According to the sending mode vf_send_mode of each thread, determine the target doorbell information to be sent on each thread;

[0061] The network security processing chip schedules different threads to fill the preset doorbell data structure according to the target doorbell information, and obtains the verification incentive corresponding to the target doorbell information.

[0062] In a possible implementation, a verification incentive is sent using a preset sending mode, and target statistical information corresponding to the verification incentive is synchronously updated to monitor the sending status of the verification incentive, including:

[0063] According to the doorbell sending mode sch_mode in the incentive allocation parameter, the verification incentive is sent and the sending result is determined; wherein the sending result includes the verification incentive sending success or the verification incentive sending failure;

[0064] When the sending result is that the verification incentive is sent successfully, the sending flag senden in the target statistical information corresponding to the verification incentive is synchronously updated to 0; when the sending result is that the verification incentive fails to be sent, the sending flag senden is maintained unchanged;

[0065] When the sending result is that the verification incentive is sent successfully, the number of repeated sending times in the target statistical information corresponding to the verification incentive is synchronously updated to 0; when the sending result is that the verification incentive fails to be sent, the number of repeated sending times is maintained unchanged;

[0066] The doorbell sending mode sch_mode includes serial sending based on thread number, parallel sending based on thread number, serial sending based on scheduling unit and parallel sending based on scheduling unit.

[0067] In a possible implementation, when the number of consecutive failures in sending the verification stimulus reaches the number of repeated sendings, a warning message of sending failure is generated.

[0068] Example 2

[0069] When the network security processing chip (hereinafter referred to as the network chip) is working, it will receive tens of millions of message sending and receiving requests from each virtual machine user (thread), and access the server host storage space. The message sending and receiving requests are sent to the scheduling unit module of the network chip through the doorbell (doorbell, referred to as dbell, a custom data structure, including thread number, lqpn, gqpn and other information below). The scheduling module sorts, merges, schedules, and applies for credit for the requests and then sends them to the relevant engine for subsequent processing.

[0070] In order to distinguish requests, this embodiment assigns a global queue pair number (global queue pair number, referred to as gqpn) to all requests, and assigns a local queue pair number (local queue pair number, referred to as lqpn) to the requests on each thread.

[0071] There are two types of existing stimulus (input) generation: one is to first obtain the number of dbells, then randomize the content of dbells, and send them while generating them until the predetermined number is reached; the other is to generate dbells of various orders in advance (gqpn0, gqpn1...gqpnN), and then send them out one by one. The former is too random and uncontrollable for some directional scenarios (for example, it is required to send the dbell of thread 1 first and then the dbell of thread 2); the latter has high requirements for cache. For example, in this embodiment, the fixed size of each dbell input stimulus is 64B, which is about 1280MB if the repeated sending of dbells is calculated as 20 million. It takes a long time to generate such a number of dbells at the same time. During this period, it is the stimulus preparation stage and simulation cannot be performed, which seriously affects the chip simulation efficiency.

[0072] The present invention aims at the above drawbacks and takes into account the following scenarios: to reduce the processor wake-up frequency, the scheduling module needs to merge multiple dbells of the same gqpn into one process; to simulate burst requests, it is necessary to process on the credit, that is, to schedule all dbells at once after receiving them; to simulate the preemption effect between threads, it is necessary to diversify the dbell sending mode; to simulate boundary conditions, it is necessary to send a certain dbell again after a large number of randomizations to a certain scenario. The present invention can effectively solve the above problems.

[0073] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below with reference to the accompanying drawings and examples.

[0074] Figure 3 It is the design block diagram of the technical solution of the present invention. On the right is a chain and scheduling block diagram of the scheduling implementation, where the numbers are lqpn numbers. The same number of the same thread means that it needs to be merged. Before sending the scheduling result, it is necessary to check whether the credit value (configurable) is sufficient. On the left is the incentive generation flow chart based on the general scheduler and some special requirements of this project.

[0075] Combine the following Figure 2 The implementation process of a verification incentive generation method provided in this embodiment is described in detail:

[0076] S201. In a test case, some stimulus allocation parameters are obtained through a tcl script.

[0077] The incentive allocation parameters mainly include the total number of dbells q_num, the total number of threads vf_num, the dbell allocation method q_dist_mode, the thread number allocation method vf_dist_mode, the minimum number of repeated sending times for each queue pktnum_min, the maximum number of repeated sending times pktnum_max, the sending mode of each thread vf_send_mode (send all, send only one, send randomly), the starting gqpn, the sending mode sch_mode (serial or parallel based on gqpn, serial or parallel based on thread number vf), etc.

[0078] S202. The total number of dbells q_num is distributed to each thread vf_num through q_dist_mode, and the total number of dbells of each thread is calculated, and the starting GQPN of the dbell of each thread is distributed.

[0079] Assume that the maximum number of supported dbells is 1000, that is, the global gqpn number of dbell is (0~999); the maximum number of supported users (thread vf) is also 1000, that is, thread number vf (0~999) currently only needs to send 10 (q_num) dbells and two threads (vf_num), then the number of dbells allocated to each thread may be (1, 9) (2, 8) (3, 7)... (9, 1), in short, the constraint sum is 10, if q-dist-mode is equal distribution, it can only be (5, 5), and then the starting GQPN (0~990), the vf number is in the order of vf-dist-mode (vf0, vf1), reverse order (vf999, vf998), and random order (0~999 random).

[0080] S203: Generate dbell statistical information.

[0081] There are dbell statistics stored based on thread number vf:

[0082]

[0083] Among them, qnum is the total number of dbells, pktnum is the total number of dbells sent (including the number of repeated dbells of the same lqpn), qbase is the starting gqpn, and the starting gqpn of the next vf is the dbell number qnum of the previous thread superimposed on the starting gqpn; gqid[] is the gqpn information of the dbell under this thread

[0084] Based on gqpn storage dbell statistics:

[0085]

[0086] Whether to send senden, which thread vf it belongs to, the number of repeated sends, etc. pktnum, where the number of repeated sends is random in this interval according to pktnum_min and pktnum_max.

[0087] S204: Generate incentive information.

[0088] Get the dbell sending mode sch_mode, which can be serial or parallel based on thread number, or serial or parallel based on scheduling unit. Serial is divided into sequential (0, 1, 2...N), reverse (N...2, 1, 0), and random sequence (1, N, 0...2). Based on this, start multithreading through fork...join_none, access the information stored in S203, fill in the dbell data structure (such as lqpn, vf and other fields), generate excitation information, and send it to the corresponding interface (i.e., the entry for the scheduling module to receive dbell information, which refers to the amba bus here). Each time a corresponding statistical information is sent out (not only the excitation filling information is obtained, but also the current number of transmissions is obtained to determine the excitation stop time.), when each gqpn is sent (including the number of repeated transmissions), set the send enable send_en to zero.

[0089] S205, waiting for the stimulus sending to be completed, when the statistical information field pktnum based on vf and the statistical information field send_en based on gqpn are both zero, it indicates that the sending is completed.

[0090] S206, credit allocation (optional), the general incentive is to configure the credit before sending, and schedule while sending. The present invention supports allocating credit after sending is completed, and then unified scheduling.

[0091] Credit allocation is a configuration value. If it is configured to 0 in advance, it means that the scheduling module cannot send out the dbell after receiving it. The scheduling module can start scheduling and send the dbell to the downstream module only after all the dbells are sent, or generate dbell and send it to the dbell scheduling module while the dbell module schedules it.

[0092] S207, waiting for the stimulus to be sent, and you can choose whether to repeat sending the above stimulus or part of the above stimulus, the interval at which to send, and the mode in which to send, the same as S201 to S205.

[0093] The dbell assigned to each vf may not be sent, and it needs to be enabled when sending. After sending a dbell, it can be sent again after a delay of some time. The sending mode can be sent in the order of thread number vf (send the dbell on vf0 and then send vf1... until completion), vf reverse order (vf999, vf998), or vf0, vf1, vf999...vf0, vf1 can be sent in parallel between vfs. The same is true based on gqpn.

[0094] S208. Wait for the scheduling to end and end the incentive.

[0095] For example: Assume that q_num=4, vf_num=2, q_dist_mode is randomly allocated in S201, that is, assume that one thread is allocated 1 and the other is allocated 3, vf_dist_mode is in reverse order (VFn, VFn-1), pktnum_min=2, pktnum_max=2, that is, each dbell is sent twice, vf_send_mode is sent for each dbell on vf, gqpn=100, then the above statistical information can be obtained as follows:

[0096]

[0097]

[0098] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for generating a verification incentive, characterized in that: include: Acquire an incentive allocation parameter pre-stored in a database or generated through human-computer interaction, wherein the incentive allocation parameter is used to characterize a scheduling parameter of a message sending and receiving request; According to the incentive allocation parameters, corresponding doorbell information is generated for all message sending and receiving requests, and target allocation information is obtained, so that the network security processing chip executes the message sending and receiving requests according to the target allocation information; wherein the doorbell information is a custom data structure, including a thread number, a local queue number, and a global queue number; When the network security processing chip executes the message receiving and sending request, the preset doorbell data structure is filled according to the target allocation information to obtain the verification incentive, so that the network security processing chip can pull the message data from the host according to the verification incentive and the message receiving and sending request; The incentive allocation parameters pre-stored in the database or generated through human-computer interaction are obtained: the total number of doorbell information q_num, the total number of threads vf_num, the doorbell allocation mode q_dist_mode, the thread number allocation mode vf_dist_mode, the minimum number of repeated transmissions of each message receiving and sending request pktnum_min, the maximum number of repeated transmissions of each message receiving and sending request pktnum_max, the sending mode of each thread vf_send_mode, the starting global queue number gqpn and the doorbell sending mode sch_mode; According to the incentive allocation parameters, corresponding doorbell information is generated for all message receiving and sending requests, and target allocation information is obtained, including: According to the thread number allocation method vf_dist_mode, assign a corresponding thread number to each thread; According to the doorbell distribution mode q_dist_mode in the incentive distribution parameters, q_num doorbell information is distributed to vf_num different threads, and the total number of doorbell information distributed to each thread and the thread number corresponding to each doorbell information are obtained; According to the starting global queue number gqpn in the incentive allocation parameter, a corresponding starting global queue number is assigned to each thread, and a global queue number is assigned to each doorbell information on the thread based on the starting global queue number corresponding to the thread; Starting from 0, the local queue number is assigned to the doorbell information corresponding to each thread in turn, and the number of repeated transmissions corresponding to each doorbell information is initialized to pktnum and the sending flag senden is 1; when the sending flag senden is 1, it means that it needs to be sent, and when the sending flag senden is 0, it means that the sending is completed; According to the thread number, global queue number, local queue number, number of repeated transmissions and transmission identifier senden corresponding to each doorbell information, the target allocation information is obtained; The number of repeated transmissions pktnum is a randomly generated integer between [pktnum_min, pktnum_max]; According to the starting global queue number gqpn in the incentive allocation parameter, each thread is assigned a corresponding starting global queue number, including: Assign the starting global queue number gqpn in the incentive allocation parameter to the first thread to obtain the starting global queue number of the first thread; Based on the starting global queue number of the first thread, the starting global queue number assigned to the next thread is the sum of the starting global queue number of the previous thread plus the total number of doorbell information assigned to the previous thread, to obtain the starting global queue number corresponding to each thread; Based on the starting global queue number corresponding to the thread, a global queue number is assigned to each doorbell message on the thread, including: The starting global queue number corresponding to the thread is used as the global queue number corresponding to the first doorbell information on the thread, and the global queue number corresponding to each subsequent doorbell information is increased by one by the global queue number corresponding to the previous doorbell information, thereby realizing the allocation of global queue numbers; When the network security processing chip executes a message sending and receiving request, a preset doorbell data structure is filled according to the target allocation information to obtain a verification stimulus, including: According to the sending mode vf_send_mode of each thread, determine the target doorbell information to be sent on each thread; The network security processing chip schedules different threads to fill the preset doorbell data structure according to the target doorbell information, and obtains the verification incentive corresponding to the target doorbell information.

2. The method for generating verification incentives according to claim 1, characterized in that: After filling the preset doorbell data structure according to the target allocation information and obtaining the verification incentive, it also includes: The verification incentive is sent using a preset sending mode, and the target statistical information corresponding to the verification incentive is updated synchronously to monitor the sending status of the verification incentive.

3. The method for generating verification incentives according to claim 1, characterized in that: Use the preset sending mode to send the verification incentive, and synchronously update the target statistical information corresponding to the verification incentive to monitor the sending of the verification incentive, including: According to the doorbell sending mode sch_mode in the incentive allocation parameter, the verification incentive is sent and the sending result is determined; wherein the sending result includes the verification incentive sending success or the verification incentive sending failure; When the sending result is that the verification incentive is sent successfully, the sending flag senden in the target statistical information corresponding to the verification incentive is synchronously updated to 0; when the sending result is that the verification incentive fails to be sent, the sending flag senden is maintained unchanged; When the sending result is that the verification incentive is sent successfully, the number of repeated sending times in the target statistical information corresponding to the verification incentive is synchronously updated to 0; when the sending result is that the verification incentive fails to be sent, the number of repeated sending times is maintained unchanged; The doorbell sending mode sch_mode includes serial sending based on thread number, parallel sending based on thread number, serial sending based on scheduling unit and parallel sending based on scheduling unit.

4. The method for generating verification incentives according to claim 3, characterized in that: When the number of consecutive failures in sending the verification stimulus reaches the number of repeated sending times, a warning message of sending failure is generated.