DDoS attack protection and cleaning method and device

By using the alliance blockchain to record cleaning requests and responses in the DDoS attack protection system, and judging whether to assist cleaning based on the historical capacity statistics of cleaning nodes, the inefficiency and disputes caused by offline linkage protocols are solved, and cleaning is achieved. The dynamic linkage and real-time reconciliation of nodes improve the processing efficiency of DDoS attacks.

CN114389829BActive Publication Date: 2024-09-24CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011122412.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-20
Publication Date
2024-09-24
Estimated Expiration
2040-10-20

AI Technical Summary

Technical Problem

In the existing DDoS attack protection system, offline linkage protection protocols lead to inefficiency and disputes, and the inability to dynamically find other nodes for processing may lead to reconciliation failures and insufficient processing capabilities when processing abnormal traffic.

Method used

Use the alliance blockchain to record cleaning requests and responses, and determine whether assistance in cleaning is needed based on the historical effective cleaning capacity statistics of the second cleaning node. The judgment indicator S is calculated through a formula to decide whether to agree or refuse to assist in cleaning. Real-time reconciliation and Dynamically adjust cleaning nodes.

Benefits of technology

It realizes dynamic linkage and real-time reconciliation of cleaning nodes, avoids inefficiency and disputes caused by offline protocols, and improves the efficiency and accuracy of DDoS attack processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114389829B
    Figure CN114389829B
Patent Text Reader

Abstract

The present invention provides a DDoS attack protection cleaning method and device, belonging to the field of communication technology. The DDoS attack protection cleaning method is applied to a first cleaning node, including: after detecting a DDoS attack, writing a cleaning request into a consortium blockchain; reading a cleaning response of a second cleaning node in the consortium blockchain to the cleaning request; judging whether the second cleaning node needs to assist in cleaning according to the historical effective cleaning capability statistics of the second cleaning node, and writing the judgment result as a cleaning reply into the consortium blockchain. The technical solution of the present invention can avoid the inefficiency and dispute problems caused by the offline linkage protection protocol.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network security protection, and in particular to a DDoS attack protection cleaning method and device. Background Art

[0002] With the continuous development of DDoS (Distributed denial of service attack) attack methods and technologies, the protection and cleaning of a single cleaning node can no longer meet the needs of cleaning DDoS attack traffic, and has gradually developed into multiple cleaning nodes linked protection, which can provide high-quality and high-value anti-DDoS services. When multiple linked protection and cleaning nodes belong to different organizations, the problem of settlement of protection and cleaning traffic between cleaning nodes will be involved. The traditional abnormal traffic settlement system relies on the protection and cleaning nodes to determine the linkage protection agreement and settlement rules offline, and screens out the settlement rules and the settlement threshold traffic corresponding to each settlement rule from the traffic detection data of the total traffic monitoring server. The screened traffic is the abnormal traffic of the client, and then the abnormal traffic settlement process is carried out from the settlement server.

[0003] For example, a system for settling abnormal traffic includes: a client and a settlement server, the settlement server includes at least one settlement node, and the system for settling abnormal traffic enables different customers to select different settlement rules through the client and determine the corresponding settlement threshold for each settlement rule, and match the corresponding settlement node for the client. Different clients correspond to different settlement nodes, so that the settlement node can determine the abnormal traffic of the client from the total monitored traffic based on at least one settlement rule received and the settlement threshold corresponding to each settlement rule, thereby achieving different settlement rules and settlement thresholds for different clients, and different clients obtaining different abnormal traffic, thereby improving the accuracy of the generated abnormal traffic and the flexibility of abnormal traffic generation.

[0004] The existing technical solutions have the following disadvantages and shortcomings:

[0005] The confirmation of abnormal traffic data depends on the traffic detection server. In this way, both parties still need to reconcile the abnormal traffic data and synchronize the data in a non-real-time manner, which is prone to disputes. When the mitigation and cleaning time of the DDoS attack on both sides is inconsistent, reconciliation failure may also occur.

[0006] Since settlement nodes, settlement rules, and settlement thresholds rely on offline linkage protection agreements, they are static linkage protections that are prone to inefficiency or failure. When the abnormal traffic processing party temporarily does not have the processing capacity, it is impossible to dynamically find other nodes to participate in the processing. Summary of the invention

[0007] The technical problem to be solved by the present invention is to provide a DDoS attack protection and cleaning method and device, which can avoid the inefficiency and dispute problems caused by the offline linkage protection protocol.

[0008] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0009] On the one hand, a DDoS attack protection cleaning method is provided, which is applied to a first cleaning node, comprising:

[0010] After detecting a DDoS attack, a cleaning request is written to the consortium blockchain;

[0011] Reading a cleaning response from a second cleaning node in the alliance blockchain to the cleaning request;

[0012] Whether the second cleaning node is needed to assist in cleaning is determined based on the historical effective cleaning capability statistics of the second cleaning node, and the determination result is written into the alliance blockchain as a cleaning reply.

[0013] In some embodiments, the method further comprises:

[0014] Reading the cleaning result of the second cleaning node in the alliance blockchain;

[0015] Writing the cleaning confirmation into the consortium blockchain.

[0016] In some embodiments, the method further comprises:

[0017] If the DDoS attack is mitigated, the detected and cleaned traffic data is recorded;

[0018] If the DDoS attack is not mitigated, reissue the scrubbing request.

[0019] In some embodiments, the method further comprises:

[0020] Calculate the average effective cleaning capacity CC of the second cleaning node according to the preset evaluation period:

[0021]

[0022] The cleaning flow is the total flow of cleaning services provided by the second cleaning node within a preset evaluation period, and the number of cleaning times is the number of times the second cleaning node provides cleaning services within a preset evaluation period.

[0023] In some embodiments, judging whether the second cleaning node is needed to assist in cleaning according to the historical effective cleaning capacity statistics of the second cleaning node includes:

[0024] The judgment index S is calculated using the following formula based on the historical effective cleaning capacity statistics of the second cleaning node:

[0025]

[0026] The peak value is the maximum value or peak value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period, and the valley value is the minimum value or valley value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period;

[0027] If S is greater than a preset threshold, the second cleaning node is rejected to assist in cleaning; if S is less than or equal to the preset threshold, the second cleaning node is allowed to assist in cleaning.

[0028] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0029] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0030] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0031] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0032] In some embodiments, the cleaning confirmation includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a confirmed cleaning flow.

[0033] The embodiment of the present invention further provides a DDoS attack protection cleaning method, which is applied to a second cleaning node and includes:

[0034] Read the cleaning request of the first cleaning node in the alliance blockchain;

[0035] Writing a cleaning response to the cleaning request into the alliance blockchain;

[0036] reading a cleaning response from the first cleaning node in the alliance blockchain, and starting a traffic cleaning process when the cleaning response indicates consent to assist in cleaning;

[0037] After the cleaning is completed, the cleaning results are written into the alliance blockchain.

[0038] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0039] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0040] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0041] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0042] The embodiment of the present invention further provides a DDoS attack protection cleaning device, which is applied to a first cleaning node and includes:

[0043] The first writing module is used to write the cleaning request into the alliance blockchain after detecting the DDoS attack;

[0044] A first reading module is used to read a cleaning response of a second cleaning node in the alliance blockchain to the cleaning request;

[0045] The second writing module is used to determine whether the second cleaning node needs to assist in cleaning according to the historical effective cleaning capacity statistical data of the second cleaning node, and write the determination result into the alliance blockchain as a cleaning reply.

[0046] In some embodiments, the device further comprises:

[0047] A fourth reading module, used to read the cleaning result of the second cleaning node in the alliance blockchain;

[0048] The fifth writing module is used to write the cleaning confirmation into the alliance blockchain.

[0049] In some embodiments, the device further comprises:

[0050] The processing module is used to record the detected cleaned traffic data if the DDoS attack is mitigated; if the DDoS attack is not mitigated, re-issue the cleaning request.

[0051] In some embodiments, the device further comprises:

[0052] A calculation module is used to calculate the average effective cleaning capacity CC of the second cleaning node according to a preset evaluation period:

[0053]

[0054] The cleaning flow is the total flow of cleaning services provided by the second cleaning node within a preset evaluation period, and the number of cleaning times is the number of times the second cleaning node provides cleaning services within a preset evaluation period.

[0055] In some embodiments, the second writing module is specifically configured to calculate the judgment index S using the following formula according to the historical effective cleaning capability statistics of the second cleaning node:

[0056]

[0057] The peak value is the maximum value or peak value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period, and the valley value is the minimum value or valley value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period;

[0058] If S is greater than a preset threshold, the second cleaning node is rejected to assist in cleaning; if S is less than or equal to the preset threshold, the second cleaning node is allowed to assist in cleaning.

[0059] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0060] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0061] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0062] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0063] In some embodiments, the cleaning confirmation includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a confirmed cleaning flow.

[0064] The embodiment of the present invention further provides a DDoS attack protection cleaning device, which is applied to a second cleaning node, and includes:

[0065] The second reading module is used to read the cleaning request of the first cleaning node in the alliance blockchain;

[0066] A third writing module is used to write a cleaning response to the cleaning request into the alliance blockchain;

[0067] A third reading module is used to read the cleaning reply of the first cleaning node in the alliance blockchain, and start the traffic cleaning process when the cleaning reply indicates that the assisted cleaning is agreed;

[0068] The fourth writing module is used to write the cleaning results into the alliance blockchain after the cleaning is completed.

[0069] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0070] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0071] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0072] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0073] An embodiment of the present invention further provides a DDoS attack protection and cleaning device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the program, the DDoS attack protection and cleaning method as described above is implemented.

[0074] In some embodiments, the DDoS attack protection cleaning device is applied to the first cleaning node.

[0075] The processor is specifically used to write a cleaning request into the alliance blockchain after detecting a DDoS attack; read a cleaning response of the second cleaning node in the alliance blockchain to the cleaning request; determine whether the second cleaning node needs to assist in cleaning based on historical effective cleaning capacity statistics of the second cleaning node, and write the determination result as a cleaning reply into the alliance blockchain.

[0076] In some embodiments, the DDoS attack protection cleaning device is applied to the first cleaning node.

[0077] The processor is specifically used to read the cleaning result of the second cleaning node in the alliance blockchain; and write the cleaning confirmation into the alliance blockchain.

[0078] In some embodiments, the DDoS attack protection cleaning device is applied to the first cleaning node.

[0079] The processor is specifically used for recording the detected cleaned traffic data if the DDoS attack is alleviated; and reissuing the cleaning request if the DDoS attack is not alleviated.

[0080] In some embodiments, the DDoS attack protection cleaning device is applied to the first cleaning node.

[0081] The processor is specifically configured to calculate the average effective cleaning capacity CC of the second cleaning node according to a preset evaluation period:

[0082]

[0083] The cleaning flow is the total flow of cleaning services provided by the second cleaning node within a preset evaluation period, and the number of cleaning times is the number of times the second cleaning node provides cleaning services within a preset evaluation period.

[0084] In some embodiments, the DDoS attack protection cleaning device is applied to the first cleaning node.

[0085] The processor is specifically configured to calculate the judgment index S according to the historical effective cleaning capacity statistical data of the second cleaning node using the following formula:

[0086]

[0087] The peak value is the maximum value or peak value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period, and the valley value is the minimum value or valley value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period;

[0088] If S is greater than a preset threshold, the second cleaning node is rejected to assist in cleaning; if S is less than or equal to the preset threshold, the second cleaning node is allowed to assist in cleaning.

[0089] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0090] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0091] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0092] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0093] In some embodiments, the cleaning confirmation includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a confirmed cleaning flow.

[0094] In some embodiments, the DDoS attack protection cleaning device is applied to the second cleaning node, and the processor is specifically used to read the cleaning request of the first cleaning node in the alliance blockchain; write the cleaning response to the cleaning request into the alliance blockchain; read the cleaning reply of the first cleaning node in the alliance blockchain, and start the traffic cleaning process when the cleaning reply indicates consent to assist in cleaning; after the cleaning is completed, write the cleaning result into the alliance blockchain.

[0095] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0096] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0097] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0098] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0099] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the DDoS attack protection and cleaning method described above are implemented.

[0100] The embodiments of the present invention have the following beneficial effects:

[0101] In the above scheme, each cleaning node can dynamically provide linkage cleaning services based on its cleaning capabilities, and use real-time reconciliation during traffic settlement, thus avoiding the inefficiency and disputes caused by offline linkage protection agreements. BRIEF DESCRIPTION OF THE DRAWINGS

[0102] Figure 1 A schematic diagram of a flow chart of a DDoS attack protection and cleaning method on a first cleaning node side according to an embodiment of the present invention;

[0103] Figure 2 It is a flow chart of the second cleaning node side DDoS attack protection cleaning method according to an embodiment of the present invention;

[0104] Figure 3 This is an interactive schematic diagram of a DDoS attack protection and cleaning method according to an embodiment of the present invention;

[0105] Figure 4 A schematic diagram of a first cleaning node evaluating a second cleaning node according to an embodiment of the present invention;

[0106] Figure 5 This is a schematic diagram of the structure of a DDoS attack protection cleaning device on the first cleaning node side according to an embodiment of the present invention;

[0107] Figure 6 This is a schematic diagram of the structure of a DDoS attack protection cleaning device on the second cleaning node side according to an embodiment of the present invention;

[0108] Figure 7 This is a schematic diagram of the composition of a DDoS attack protection cleaning device on the first cleaning node side according to an embodiment of the present invention;

[0109] Figure 8 The figure is a schematic diagram of the composition of the second cleaning node side DDoS attack protection cleaning device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0110] In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0111] An embodiment of the present invention provides a DDoS attack protection cleaning method, which is applied to a first cleaning node, such as Figure 1 As shown, including:

[0112] Step 101: After detecting a DDoS attack, a cleaning request is written into the consortium blockchain;

[0113] Step 102: Reading a cleaning response from a second cleaning node in the alliance blockchain to the cleaning request;

[0114] Step 103: Determine whether the second cleaning node is required to assist in cleaning based on the historical effective cleaning capability statistics of the second cleaning node, and write the determination result into the alliance blockchain as a cleaning reply.

[0115] In some embodiments, the method further comprises:

[0116] Reading the cleaning result of the second cleaning node in the alliance blockchain;

[0117] Writing the cleaning confirmation into the consortium blockchain.

[0118] In some embodiments, the method further comprises:

[0119] If the DDoS attack is mitigated, the detected and cleaned traffic data is recorded;

[0120] If the DDoS attack is not mitigated, reissue the scrubbing request.

[0121] In some embodiments, the method further comprises:

[0122] Calculate the average effective cleaning capacity CC of the second cleaning node according to the preset evaluation period:

[0123]

[0124] The cleaning flow is the total flow of cleaning services provided by the second cleaning node within a preset evaluation period, and the number of cleaning times is the number of times the second cleaning node provides cleaning services within a preset evaluation period.

[0125] In some embodiments, judging whether the second cleaning node is needed to assist in cleaning according to the historical effective cleaning capacity statistics of the second cleaning node includes:

[0126] The judgment index S is calculated using the following formula based on the historical effective cleaning capacity statistics of the second cleaning node:

[0127]

[0128] The peak value is the maximum value or peak value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period, and the valley value is the minimum value or valley value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period;

[0129] If S is greater than a preset threshold, the second cleaning node is rejected to assist in cleaning; if S is less than or equal to the preset threshold, the second cleaning node is allowed to assist in cleaning.

[0130] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0131] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0132] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0133] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0134] In some embodiments, the cleaning confirmation includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a confirmed cleaning flow.

[0135] The embodiment of the present invention also provides a DDoS attack protection cleaning method, which is applied to a second cleaning node, such as Figure 2 As shown, including:

[0136] Step 201: Read the cleaning request of the first cleaning node in the alliance blockchain;

[0137] Step 202: writing a cleaning response to the cleaning request into the alliance blockchain;

[0138] Step 203: reading the cleaning response of the first cleaning node in the alliance blockchain, and starting the traffic cleaning process when the cleaning response indicates that the assisted cleaning is agreed;

[0139] Step 204: After the cleaning is completed, the cleaning result is written into the alliance blockchain.

[0140] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0141] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0142] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0143] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0144] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments:

[0145] A consortium chain refers to a blockchain jointly managed by several institutions. Multiple pre-selected nodes are designated as accounting nodes within the consortium chain. The generation of each block is jointly determined by all pre-selected nodes using a consensus mechanism. Other access nodes can read the information on the chain, but do not ask about the accounting process. The consortium chain uses distributed ledgers and distributed consensus technology to form a distributed database where data cannot be tampered with.

[0146] like Figure 3 As shown, this embodiment includes the following steps:

[0147] Step 1: Cleaning node A (i.e., the first cleaning node) detects a DDoS attack and requires other nodes to assist in joint cleaning. Cleaning node A issues a cleaning request and writes the request to the alliance blockchain.

[0148] Step 2: Cleaning node B (i.e., the second cleaning node) reads the cleaning requirement in the alliance chain and responds with a cleaning response;

[0149] Step 3: Cleaning node B writes the cleaning response to the consortium blockchain.

[0150] Step 4: Cleaning node A reads the cleaning response in the alliance chain, first queries the historical (previous cycle) effective cleaning capability statistics of the respondent, then determines whether the node needs to assist in cleaning based on the cleaning capability evaluation mechanism, and then makes a cleaning response and writes it into the alliance blockchain.

[0151] Cleaning node B reads the cleaning response in the consortium chain and starts the traffic cleaning process.

[0152] Step 5: After the cleaning is completed, the cleaning results are fed back and written into the alliance blockchain.

[0153] Step 6: Cleaning node A reads the cleaning results in the alliance chain and writes the cleaning confirmation to the alliance blockchain. When the DDoS attack has been mitigated, the detected cleaned traffic data is recorded; when the DDoS attack has not been mitigated, the process of issuing cleaning requests is repeated.

[0154] If cleaning node A repeats the process of issuing a cleaning request, cleaning node C (i.e., another second cleaning node) reads the cleaning request in the alliance chain, makes a cleaning response, and writes the cleaning response into the alliance blockchain.

[0155] Finally, traffic settlement between alliance cleaning nodes is carried out every month in the form of alliance chain smart contracts.

[0156] The format of the cleaning request parameters is as follows:

[0157]

[0158]

[0159] Cleaning task ID: used to distinguish different cleaning tasks. Each cleaning process corresponds to a unique cleaning task ID.

[0160] Cleaning request initiator ID: used to identify the initiator of the cleaning request. Each cleaning node corresponds to a unique ID.

[0161] Cleaning protection IP address: The protection IP address or address group to which the cleaning node sends the cleaning request.

[0162] Public key: generated by the initiator of the cleaning request, and its corresponding private key is kept secret by the initiator of the cleaning request. It is used to encrypt the cleaning traffic price of the responder of the cleaning request.

[0163] Cleaning validity period: the time point at which the cleaning task is acceptable and no longer requires a response.

[0164] Extension item: This is a reserved field.

[0165] The format of the cleaning response parameters is as follows:

[0166]

[0167] Cleaning task ID: used to distinguish different cleaning tasks. Each cleaning process corresponds to a unique cleaning task ID.

[0168] Cleaning responder ID: used to identify the cleaning responder. Each cleaning node corresponds to a unique ID.

[0169] Cleaning capacity: The cleaning capacity that the cleaning responder can provide for this cleaning task, such as 10G, 1T, etc.

[0170] Traffic cleaning price: The price of the cleaning task of the cleaning responder, which is encrypted using the public key of the cleaning request initiator to ensure the confidentiality of the price.

[0171] Extensions: Keep for later use.

[0172] The format of the cleaning reply parameter is as follows:

[0173] Cleaning task ID ID of the cleaning request initiator Cleaning Responder ID Cleaning recovery status Extensions

[0174] Cleaning task ID: used to distinguish different cleaning tasks. Each cleaning process corresponds to a unique cleaning task ID.

[0175] Cleaning request initiator ID: used to identify the initiator of the cleaning request. Each cleaning node corresponds to a unique ID.

[0176] Cleaning responder ID: used to identify the cleaning responder. Each cleaning node corresponds to a unique ID.

[0177] Cleaning reply status: The initiator of the cleaning request replies whether it agrees with the cleaning responder to assist in cleaning. For example: Y: means agree to assist in cleaning. N: means disagree to assist in cleaning.

[0178] Extension: Reserved field.

[0179] The format of the cleaning result parameters is as follows:

[0180] Cleaning task ID ID of the cleaning request initiator Cleaning Responder ID Total cleaning flow Cleaning start time Cleaning end time Extensions

[0181] Cleaning task ID: used to distinguish different cleaning tasks. Each cleaning process corresponds to a unique cleaning task ID.

[0182] Cleaning request initiator ID: used to identify the initiator of the cleaning request. Each cleaning node corresponds to a unique ID.

[0183] Cleaning responder ID: used to identify the cleaning responder. Each cleaning node corresponds to a unique ID.

[0184] Total cleaning flow: The total flow that assists in cleaning during this cleaning task.

[0185] Cleaning start time: Assists in cleaning start time.

[0186] Cleaning end time: Assist cleaning end time.

[0187] Extension: Reserved field.

[0188] The format of the cleaning confirmation parameters is as follows:

[0189] Cleaning task ID ID of the cleaning request initiator Cleaning Responder ID Cleaning flow confirmed Extensions

[0190] Cleaning task ID: used to distinguish different cleaning tasks. Each cleaning process corresponds to a unique cleaning task ID.

[0191] Cleaning request initiator ID: used to identify the initiator of the cleaning request. Each cleaning node corresponds to a unique ID.

[0192] Cleaning responder ID: used to identify the cleaning responder. Each cleaning node corresponds to a unique ID.

[0193] Confirmed cleaning traffic: The total cleaning traffic of this cleaning task confirmed by the initiator of the cleaning request.

[0194] Extension: Reserved field.

[0195] Alliance cleaning nodes can write the evaluation information of other cleaning nodes that provide cleaning services for them into the alliance blockchain according to a preset evaluation cycle, such as regularly every month.

[0196] Evaluation flow chart Figure 4 As shown, where:

[0197] Cleaning node ID: It is the evaluation subject of the cleaning node, and it contains statistics on the cleaning services provided to the subject every month.

[0198] Cleaning service provider ID: The cleaning capability provider that provides and completes the cleaning service. Each cleaning node corresponds to multiple cleaning node service providers.

[0199] Statistical start time: the start time of the evaluation cycle.

[0200] Statistical end time: the end time of the evaluation period.

[0201] Number of cleanings: The number of times the cleaning service provider provides cleaning services during this time period.

[0202] Total cleaning traffic: the total traffic of cleaning services provided by the cleaning service provider during this time period.

[0203] Maximum cleaning flow rate: the maximum or peak value of the cleaning flow rate provided by the cleaning service provider during the time period.

[0204] Minimum cleaning flow rate: the minimum or valley value of the cleaning flow rate for cleaning services provided by the cleaning service provider during this time period.

[0205] When evaluating, the average effective cleaning capacity CC (Cleaning capacity) is defined as the size of a single cleaning flow for the cleaning node demand side within the statistical period, that is, The larger the CC value, the greater the effective cleaning capacity of the cleaning service provider; the smaller the CC value, the smaller the effective cleaning capacity of the cleaning service provider.

[0206] Each cleaning node reads the alliance chain data and regularly counts the actual effective cleaning capacity CC values ​​of other participating cleaning nodes. When a cleaning service provider responds to a cleaning request, the initiator of the cleaning request can first query the provider's historical (previous cycle) effective cleaning capacity statistics, and determine whether to choose to assist in the linkage cleaning based on the table below.

[0207]

[0208] When a new cleaning node is introduced, the total cleaning flow and the maximum cleaning flow can be set to infinity to ensure that the new node can initialize the actual cleaning capacity data of the node during the statistical period.

[0209] This embodiment writes the consensus mechanism of the alliance chain for linkage cleaning of various process links and information use into the alliance chain, and combines it with the node cleaning capability evaluation mechanism to solve the inefficiency and dispute problems caused by static protection and non-real-time reconciliation of existing solutions.

[0210] The embodiment of the present invention also provides a DDoS attack protection cleaning device, which is applied to a first cleaning node, such as Figure 5 As shown, including:

[0211] A first writing module 31 is used to write a cleaning request into the alliance blockchain after detecting a DDoS attack;

[0212] A first reading module 32 is used to read a cleaning response of a second cleaning node in the alliance blockchain to the cleaning request;

[0213] The second writing module 33 is used to determine whether the second cleaning node needs to assist in cleaning according to the historical effective cleaning capacity statistical data of the second cleaning node, and write the determination result into the alliance blockchain as a cleaning reply.

[0214] In some embodiments, the device further comprises:

[0215] A fourth reading module, used to read the cleaning result of the second cleaning node in the alliance blockchain;

[0216] The fifth writing module is used to write the cleaning confirmation into the alliance blockchain.

[0217] In some embodiments, the device further comprises:

[0218] The processing module is used to record the detected cleaned traffic data if the DDoS attack is mitigated; if the DDoS attack is not mitigated, re-issue the cleaning request.

[0219] In some embodiments, the device further comprises:

[0220] A calculation module is used to calculate the average effective cleaning capacity CC of the second cleaning node according to a preset evaluation period:

[0221]

[0222] The cleaning flow is the total flow of cleaning services provided by the second cleaning node within a preset evaluation period, and the number of cleaning times is the number of times the second cleaning node provides cleaning services within a preset evaluation period.

[0223] In some embodiments, the second writing module is specifically configured to calculate the judgment index S using the following formula according to the historical effective cleaning capability statistics of the second cleaning node:

[0224]

[0225] The peak value is the maximum value or peak value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period, and the valley value is the minimum value or valley value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period;

[0226] If S is greater than a preset threshold, the second cleaning node is rejected to assist in cleaning; if S is less than or equal to the preset threshold, the second cleaning node is allowed to assist in cleaning.

[0227] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0228] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0229] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0230] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0231] In some embodiments, the cleaning confirmation includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a confirmed cleaning flow.

[0232] The embodiment of the present invention also provides a DDoS attack protection cleaning device, which is applied to a second cleaning node, such as Figure 6 As shown, including:

[0233] The second reading module 41 is used to read the cleaning request of the first cleaning node in the alliance blockchain;

[0234] A third writing module 42 is used to write a cleaning response to the cleaning request into the alliance blockchain;

[0235] The third reading module 43 is used to read the cleaning reply of the first cleaning node in the alliance blockchain, and start the traffic cleaning process when the cleaning reply indicates that the assisted cleaning is agreed;

[0236] The fourth writing module 44 is used to write the cleaning result into the alliance blockchain after the cleaning is completed.

[0237] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0238] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0239] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0240] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0241] The embodiment of the present invention also provides a DDoS attack protection cleaning device, which is applied to a first cleaning node, such as Figure 7 As shown, it includes a memory 61, a processor 62, and a computer program stored in the memory 61 and executable on the processor 62; when the processor 62 executes the program, the DDoS attack protection and cleaning method as described above is implemented.

[0242] In some embodiments, the processor 62 is specifically used to write a cleaning request into the alliance blockchain after detecting a DDoS attack; read a cleaning response of the second cleaning node in the alliance blockchain to the cleaning request; determine whether the second cleaning node is needed to assist in cleaning based on historical effective cleaning capability statistics of the second cleaning node, and write the determination result as a cleaning reply into the alliance blockchain.

[0243] In some embodiments, the DDoS attack protection cleaning device is applied to the first cleaning node.

[0244] The processor 62 is specifically used to read the cleaning result of the second cleaning node in the alliance blockchain; and write the cleaning confirmation into the alliance blockchain.

[0245] In some embodiments, the DDoS attack protection cleaning device is applied to the first cleaning node.

[0246] The processor 62 is specifically configured to record the detected cleaned traffic data if the DDoS attack is mitigated; and reissue a cleaning request if the DDoS attack is not mitigated.

[0247] In some embodiments, the DDoS attack protection cleaning device is applied to the first cleaning node.

[0248] The processor 62 is specifically configured to calculate the average effective cleaning capacity CC of the second cleaning node according to a preset evaluation period:

[0249]

[0250] The cleaning flow is the total flow of cleaning services provided by the second cleaning node within a preset evaluation period, and the number of cleaning times is the number of times the second cleaning node provides cleaning services within a preset evaluation period.

[0251] In some embodiments, the DDoS attack protection cleaning device is applied to the first cleaning node.

[0252] The processor 62 is specifically configured to calculate the judgment index S according to the historical effective cleaning capacity statistical data of the second cleaning node using the following formula:

[0253]

[0254] The peak value is the maximum value or peak value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period, and the valley value is the minimum value or valley value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period;

[0255] If S is greater than a preset threshold, the second cleaning node is rejected to assist in cleaning; if S is less than or equal to the preset threshold, the second cleaning node is allowed to assist in cleaning.

[0256] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0257] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0258] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0259] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0260] In some embodiments, the cleaning confirmation includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a confirmed cleaning flow.

[0261] The embodiment of the present invention also provides a DDoS attack protection cleaning device, which is applied to a second cleaning node, such as Figure 8 As shown, it includes a memory 71, a processor 72, and a computer program stored in the memory 71 and executable on the processor 72; when the processor 72 executes the program, the DDoS attack protection and cleaning method as described above is implemented.

[0262] In some embodiments, the processor 72 is specifically used to read a cleaning request of a first cleaning node in a consortium blockchain; write a cleaning response to the cleaning request into the consortium blockchain; read a cleaning reply of the first cleaning node in the consortium blockchain, and start a traffic cleaning process when the cleaning reply indicates agreement to assist in cleaning; after cleaning is completed, write the cleaning result into the consortium blockchain.

[0263] In some embodiments, the cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

[0264] In some embodiments, the cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

[0265] In some embodiments, the cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

[0266] In some embodiments, the cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

[0267] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the DDoS attack protection and cleaning method described above are implemented.

[0268] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage terminal devices to be detected or any other non-transmission media that can be used to store information that can be accessed by the computer terminal device to be detected. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carriers.

[0269] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A DDoS attack protection and cleaning method, characterized in that: Applied to the first cleaning node, including: After detecting a DDoS attack, a cleaning request is written to the consortium blockchain; Reading a cleaning response from a second cleaning node in the alliance blockchain to the cleaning request; Determine whether the second cleaning node needs to assist in cleaning based on historical effective cleaning capacity statistics of the second cleaning node, and write the determination result into the alliance blockchain as a cleaning reply; The method further comprises: Calculate the average effective cleaning capacity CC of the second cleaning node according to the preset evaluation period: The cleaning flow is the total flow of cleaning services provided by the second cleaning node within a preset evaluation period, and the number of cleaning times is the number of times the second cleaning node provides cleaning services within a preset evaluation period; The determining whether the second cleaning node needs to assist in cleaning according to the historical effective cleaning capacity statistical data of the second cleaning node comprises: The judgment index S is calculated using the following formula based on the historical effective cleaning capacity statistics of the second cleaning node: The peak value is the maximum value or peak value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period, and the valley value is the minimum value or valley value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period; If S is greater than a preset threshold, the second cleaning node is rejected to assist in cleaning; if S is less than or equal to the preset threshold, the second cleaning node is allowed to assist in cleaning.

2. The DDoS attack protection and cleaning method according to claim 1, characterized in that: The method further comprises: Reading the cleaning result of the second cleaning node in the alliance blockchain; Writing the cleaning confirmation into the consortium blockchain.

3. The DDoS attack protection cleaning method according to claim 1, characterized in that: The method further comprises: If the DDoS attack is mitigated, the detected and cleaned traffic data is recorded; If the DDoS attack is not mitigated, reissue the scrubbing request.

4. The DDoS attack protection cleaning method according to claim 1, characterized in that: The cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

5. The DDoS attack protection and cleaning method according to claim 1, characterized in that: The cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

6. The DDoS attack protection and cleaning method according to claim 1, characterized in that: The cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

7. The DDoS attack protection cleaning method according to claim 2, characterized in that: The cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

8. The DDoS attack protection cleaning method according to claim 2, characterized in that: The cleaning confirmation includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, and confirmed cleaning flow.

9. A DDoS attack protection and cleaning method, characterized in that: Applied to the second cleaning node, including: Read the cleaning request of the first cleaning node in the alliance blockchain; Writing a cleaning response to the cleaning request into the alliance blockchain; reading a cleaning response from the first cleaning node in the alliance blockchain, and starting a traffic cleaning process when the cleaning response indicates consent to assist in cleaning; After the cleaning is completed, the cleaning results are written into the alliance blockchain.

10. The DDoS attack protection and cleaning method according to claim 9, characterized in that: The cleaning request includes at least one of the following: a cleaning task identification ID, a cleaning request initiator ID, a cleaning protection IP address, a public key, and a cleaning validity period.

11. The DDoS attack protection and cleaning method according to claim 9, characterized in that: The cleaning response includes at least one of the following: cleaning task ID, cleaning responder ID, cleaning capacity, and flow cleaning price.

12. The DDoS attack protection and cleaning method according to claim 9, characterized in that: The cleaning reply includes at least one of the following: a cleaning task ID, a cleaning request initiator ID, a cleaning responder ID, and a cleaning reply status.

13. The DDoS attack protection and cleaning method according to claim 9, characterized in that: The cleaning result includes at least one of the following: cleaning task ID, cleaning request initiator ID, cleaning responder ID, total cleaning flow, cleaning start time, and cleaning end time.

14. A DDoS attack protection cleaning device, characterized in that: Applied to the first cleaning node, including: The first writing module is used to write the cleaning request into the alliance blockchain after detecting the DDoS attack; A first reading module is used to read a cleaning response of a second cleaning node in the alliance blockchain to the cleaning request; A second writing module is used to determine whether the second cleaning node needs to assist in cleaning according to the historical effective cleaning capacity statistics of the second cleaning node, and write the determination result as a cleaning reply into the alliance blockchain; The device also includes: A processing module is used to calculate the average effective cleaning capacity CC of the second cleaning node according to a preset evaluation period: The cleaning flow is the total flow of cleaning services provided by the second cleaning node within a preset evaluation period, and the number of cleaning times is the number of times the second cleaning node provides cleaning services within a preset evaluation period; The second writing module is specifically used to calculate the judgment index S according to the historical effective cleaning capacity statistical data of the second cleaning node using the following formula: The peak value is the maximum value or peak value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period, and the valley value is the minimum value or valley value of the cleaning flow provided by the second cleaning node for cleaning services within a preset evaluation period; If S is greater than a preset threshold, the second cleaning node is rejected to assist in cleaning; if S is less than or equal to the preset threshold, the second cleaning node is allowed to assist in cleaning.

15. A DDoS attack protection cleaning device, characterized in that: Applied to the second cleaning node, including: The second reading module is used to read the cleaning request of the first cleaning node in the alliance blockchain; A third writing module is used to write a cleaning response to the cleaning request into the alliance blockchain; A third reading module is used to read the cleaning reply of the first cleaning node in the alliance blockchain, and start the traffic cleaning process when the cleaning reply indicates that the assisted cleaning is agreed; The fourth writing module is used to write the cleaning results into the alliance blockchain after the cleaning is completed.

16. A DDoS attack protection and cleaning device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the DDoS attack protection and cleaning method according to any one of claims 1 to 8 or the DDoS attack protection and cleaning method according to any one of claims 9 to 13 is implemented.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the DDoS attack protection and cleaning method according to any one of claims 1 to 8 or the DDoS attack protection and cleaning method according to any one of claims 9 to 13 are implemented.