Protection method and apparatus for anomalous network behaviors, computer device, and storage medium
By cleaning and filtering data requests between the cleaning center and the cloud server, and using the protection information of the client server, the problem of DDoS attacks penetrating the network operator's protection is solved, achieving effective protection against DDoS attacks and improving business stability. .
Patent Information
- Application Number
- PCT/CN2024/073669
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-23
- Filing Date
- 2024-01-23
- Publication Date
- 2024-09-26
AI Technical Summary
In the existing technology, abnormal network behavior caused by DDoS attacks is difficult to be effectively protected by network operators, resulting in potential security risks for the target server.
By cleaning and filtering data requests between the cleaning center and the cloud server, and using the protection information generated by the client server according to business needs, the cleaning center receives the data requests forwarded by the network operator and sends the cleaned requests to the cloud server for processing. Secondary filtering ensures that abnormal behavior types are filtered out of data requests.
It effectively protects against DDoS attacks, improves the business stability and network security of customer servers, adapts to the specific business needs of customer servers, and enhances disaster recovery capabilities.
Smart Images

Figure CN2024073669_26092024_PF_FP
Abstract
Description
Method, device, computer equipment and storage medium for protecting against abnormal network behavior
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 23, 2023, with application number 202310320577X, and invention name “Method, device, computer equipment and storage medium for protection against abnormal network behavior”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment, storage medium, and computer program product for protecting against abnormal network behavior. Background Art
[0003] A distributed denial of service (DDoS) attack occurs when multiple computers send a large number of requests, causing the target server to exhaust its computing resources or the network to exhaust its bandwidth resources, causing the target server to stop providing services and even endangering the data security of the target server.
[0004] In related technologies, network operators protect against DDoS requests sent from the corresponding area. However, the attack protection provided by network operators has limitations, causing DDoS requests to penetrate the network operator's protection and pose a security risk to the target server.
[0005] Summary of the Invention
[0006] According to various embodiments provided in the present application, a method, apparatus, computer device, computer-readable storage medium, and computer program product for protecting against abnormal network behavior are provided.
[0007] In a first aspect, the present application provides a method for protecting against abnormal network behavior, which is performed by a cleaning center and includes:
[0008] Receive a data request corresponding to a target network segment forwarded by a network operator, where the target network segment is the network segment corresponding to the network address of the client server; obtain protection information corresponding to the network address, where the protection information is generated by the client server based on business needs; cleanse the data request based on the protection information to obtain a cleansed data request; and send the cleansed data request to the cloud server to instruct the cloud server to filter the cleansed data request based on the protection information, obtain a target data request after filtering out data requests of abnormal behavior types, and send the target data request to the client server.
[0009] In a second aspect, the present application also provides a device for protecting against abnormal network behavior. The device comprises:
[0010] A data request receiving module is used to receive a data request corresponding to a target network segment forwarded by a network operator, where the target network segment is the network segment corresponding to the network address of the client server;
[0011] A first protection information acquisition module is used to obtain protection information corresponding to the network address, where the protection information is generated by the client server based on business needs;
[0012] A first cleaning module is configured to cleanse the data request based on the protection information to obtain a cleansed data request; and
[0013] The cleaned data request sending module is used to send the cleaned data request to the cloud server to instruct the cloud server to filter the cleaned data request according to the protection information, obtain the target data request after filtering out the data request of abnormal behavior type, and send the target data request to the customer server.
[0014] In a third aspect, the present application further provides a computer device comprising a memory and one or more processors, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processors, the one or more processors perform the following steps:
[0015] Receive a data request corresponding to a target network segment forwarded by a network operator, where the target network segment is the network segment corresponding to the network address of the client server; obtain protection information corresponding to the network address, where the protection information is generated by the client server based on business needs; cleanse the data request based on the protection information to obtain a cleansed data request; and send the cleansed data request to the cloud server to instruct the cloud server to filter the cleansed data request based on the protection information, obtain a target data request after filtering out data requests of abnormal behavior types, and send the target data request to the client server.
[0016] In a fourth aspect, the present application further provides one or more non-volatile readable storage media having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the following steps are implemented:
[0017] Receive a data request corresponding to a target network segment forwarded by a network operator, where the target network segment is the network segment corresponding to the network address of the client server; obtain protection information corresponding to the network address, where the protection information is generated by the client server based on business needs; cleanse the data request based on the protection information to obtain a cleansed data request; and send the cleansed data request to the cloud server to instruct the cloud server to filter the cleansed data request based on the protection information, obtain a target data request after filtering out data requests of abnormal behavior types, and send the target data request to the client server.
[0018] In a fifth aspect, the present application further provides a computer-readable instruction, comprising a computer-readable instruction, which, when executed by a processor, implements the following steps:
[0019] Receive a data request corresponding to a target network segment forwarded by a network operator, where the target network segment is the network segment corresponding to the network address of the client server; obtain protection information corresponding to the network address, where the protection information is generated by the client server based on business needs; cleanse the data request based on the protection information to obtain a cleansed data request; and send the cleansed data request to the cloud server to instruct the cloud server to filter the cleansed data request based on the protection information, obtain a target data request after filtering out data requests of abnormal behavior types, and send the target data request to the client server.
[0020] In a sixth aspect, the present application provides a method for protecting against abnormal network behavior, which is executed by a cloud server and includes:
[0021] Receive protection information corresponding to the network address determined by the client server based on business needs, where the network address is the address of the network where the client server is located; send the protection information and the network address to the cleaning center to instruct the cleaning center to receive the data request corresponding to the target network segment forwarded by the network operator, perform data cleaning on the data request based on the protection information, and obtain a cleaned data request, where the target network segment is the network segment corresponding to the network address; receive the cleaned data request sent by the cleaning center, and filter the cleaned data request according to the protection information to obtain a target data request after filtering out data requests of abnormal behavior types; and send the target data request to the client server.
[0022] In a seventh aspect, the present application also provides a device for protecting against abnormal network behavior. The device comprises:
[0023] The second protection information acquisition module is used to receive protection information corresponding to the network address determined by the client server based on business needs, where the network address is the address of the network where the client server is located;
[0024] The protection information and network address sending module is used to send the protection information and network address to the cleaning center to instruct the cleaning center to receive the data request corresponding to the target network segment forwarded by the network operator, perform data cleaning on the data request based on the protection information, and obtain the cleaned data request, where the target network segment is the network segment corresponding to the network address;
[0025] A second cleaning module is configured to receive the cleaned data request sent by the cleaning center, and filter the cleaned data request according to the protection information to obtain the target data request after filtering out the data requests of abnormal behavior types; and
[0026] The target data request sending module is used to send the target data request to the client server.
[0027] In an eighth aspect, the present application further provides a computer device, comprising a memory and one or more processors, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processors, the one or more processors perform the following steps:
[0028] Receive protection information corresponding to the network address determined by the client server based on business needs, where the network address is the address of the network where the client server is located; send the protection information and the network address to the cleaning center to instruct the cleaning center to receive the data request corresponding to the target network segment forwarded by the network operator, perform data cleaning on the data request based on the protection information, and obtain a cleaned data request, where the target network segment is the network segment corresponding to the network address; receive the cleaned data request sent by the cleaning center, and filter the cleaned data request according to the protection information to obtain a target data request after filtering out data requests of abnormal behavior types; and send the target data request to the client server.
[0029] In a ninth aspect, the present application further provides one or more non-volatile readable storage media having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the following steps are implemented:
[0030] Receive protection information corresponding to the network address determined by the client server based on business needs, where the network address is the address of the network where the client server is located; send the protection information and the network address to the cleaning center to instruct the cleaning center to receive the data request corresponding to the target network segment forwarded by the network operator, perform data cleaning on the data request based on the protection information, and obtain a cleaned data request, where the target network segment is the network segment corresponding to the network address; receive the cleaned data request sent by the cleaning center, and filter the cleaned data request according to the protection information to obtain a target data request after filtering out data requests of abnormal behavior types; and send the target data request to the client server.
[0031] In a tenth aspect, the present application further provides a computer-readable instruction, comprising a computer-readable instruction, which, when executed by a processor, implements the following steps:
[0032] Receive protection information corresponding to the network address determined by the client server based on business needs, where the network address is the address of the network where the client server is located; send the protection information and the network address to the cleaning center to instruct the cleaning center to receive the data request corresponding to the target network segment forwarded by the network operator, perform data cleaning on the data request based on the protection information, and obtain a cleaned data request, where the target network segment is the network segment corresponding to the network address; receive the cleaned data request sent by the cleaning center, and filter the cleaned data request according to the protection information to obtain a target data request after filtering out data requests of abnormal behavior types; and send the target data request to the client server.
[0033] The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] To more clearly illustrate the technical solutions of the embodiments of this application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are merely exemplary embodiments of this application, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0035] FIG1 is a diagram illustrating an application environment of a method for protecting against abnormal network behavior according to an embodiment;
[0036] FIG2 is a flow chart of a method for preventing abnormal network behavior according to an embodiment;
[0037] FIG3 is a schematic diagram of a method for protecting against abnormal network behavior in a scenario embodiment;
[0038] FIG4 is a flow chart of a method for protecting against abnormal network behavior in another embodiment;
[0039] FIG5 is a flow chart of a method for protecting against abnormal network behavior in another embodiment;
[0040] FIG6 is a schematic diagram of a protection configuration page according to an embodiment;
[0041] FIG7 is a schematic diagram of a protection service purchase page in one embodiment;
[0042] FIG8 is a schematic diagram of an EIP application page of a protection platform according to one embodiment;
[0043] FIG9 is a schematic diagram of a protection service management page according to one embodiment;
[0044] FIG10 is a schematic diagram of a protection configuration page according to an embodiment;
[0045] FIG11 is a schematic diagram of a protection overview page in one embodiment;
[0046] FIG12 is a schematic diagram of a method for protecting against abnormal network behavior in another scenario embodiment;
[0047] FIG13 is a schematic diagram of a method for protecting against abnormal network behavior in another scenario embodiment;
[0048] FIG14 is a flow chart of a method for preventing abnormal network behavior according to another embodiment;
[0049] FIG15 is a structural block diagram of a method and apparatus for protecting against abnormal network behavior according to an embodiment;
[0050] FIG16 is a structural block diagram of a method and apparatus for protecting against abnormal network behavior according to another embodiment;
[0051] FIG17 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0053] In this specification and the accompanying drawings, substantially the same or similar steps and elements are denoted by the same or similar reference numerals, and repeated descriptions of these steps and elements will be omitted. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance or ranking.
[0054] The method for preventing abnormal network behavior provided in the embodiments of the present application can be applied in the application environment shown in Figure 1 . In this embodiment, the cleaning center 102 communicates with the cloud server 104 via the network, and the cloud server 104 communicates with the client server 106 via the network. The data storage system can store data that the cloud server 104 needs to process. The data storage system can be integrated with the cloud server 104 or other servers.
[0055] The cleaning center 102 receives the data request corresponding to the target network segment forwarded by the network operator, obtains the protection information corresponding to the network address of the client server 106 and generated by the client server 106 according to the business needs, and performs a data request on the data request based on the protection information to obtain a cleansed data request. The cleaning center 102 can send the cleansed data request to the cloud server 104. The cloud server 104 filters the cleansed data request according to the protection information to obtain the target data request after filtering out the data requests of abnormal behavior types. The cloud server 104 can send the target data request to the client server 106.
[0056] The cleaning center 102 can be implemented as a cluster of multiple cleaning nodes; the cloud server 104 can be implemented as an independent cloud server or a cluster of multiple cloud servers. The client server 106 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0057] In some embodiments, as shown in FIG2 , a method for protecting against abnormal network behavior is provided. The method is described by taking the method executed by the cleaning center in FIG1 as an example, and includes the following steps:
[0058] Step 202: Receive a data request corresponding to a target network segment forwarded by a network operator, where the target network segment is the network segment corresponding to the network address of the client server.
[0059] The network operator is the entity that operates the network and provides services. Multiple Internet Protocol (IP) addresses belong to the target network segment. In practice, two IP addresses can be used to determine whether they belong to the same network segment based on their respective subnet masks. The client server's network address is an IP address that belongs to the target network segment.
[0060] In some embodiments, when an access device accesses a client server based on a network address, the access device sends a data request to the network operator. The data request carries the network address of the client server. The network operator forwards the data request to the cleaning center corresponding to the target network segment based on the target network segment to which the network address belongs. The cleaning center receives the data request forwarded by the network operator.
[0061] In some embodiments, the cleaning center and the network operator are located in the same geographical area. For example, the cleaning center is deployed in area A. The network operator provides network operation services for area A. The access device located in area A sends a data request to the network operator in area A. The network operator in area A forwards the data request to the cleaning center deployed in area A.
[0062] In some embodiments, the cleaning center that receives the data request forwarded by the network operator is the cleaning center closest to the network operator among the cleaning centers in each region. In other words, the cleaning center in each region can perform near-source cleaning. For example, cleaning centers are deployed in regions A, B, and C. The network operator in region A forwards the requested data to the cleaning center in region A. Region D is closest to region C, so the network operator in region D can forward the data request to the cleaning center in region C.
[0063] In some embodiments, the method for protecting against abnormal network behavior also includes: receiving the network address of the client server sent by the cloud server, obtaining the target network segment corresponding to the network address, and broadcasting the target network segment to the network operator, where the network operator and the cloud server are located in the same geographical area.
[0064] In some embodiments, the client server binds its network address to the cloud server, and the cloud server sends the network address of the client server to the cleaning center. The cleaning center determines the target network segment based on the network address and the subnet mask of the network address; the cleaning center's routing broadcasts the target network segment so that the network operator forwards data requests whose IP addresses belong to the target network segment to the cleaning center. Since the network address of the client server belongs to the target network segment, the cleaning center can receive data requests to access the client server.
[0065] In one implementation, the routers of cleaning centers in multiple regions broadcast the target network segments using unicast. The cleaning centers in multiple regions then receive data requests forwarded by the network operators in their respective regions. In another implementation, the routers of cleaning centers in multiple regions broadcast the target network segments using anycast. If a cleaning center in a particular region fails, the network operator in that region can address the nearest cleaning center.
[0066] It should be noted that the router of the cleaning center can also use multicast or groupcast to broadcast the target network segment. The broadcasting method of the target network segment can be set according to the business needs of the client server, and this embodiment of the application does not limit this.
[0067] In the above embodiment, the cleaning center broadcasts the target network segment to which the network address of the client server belongs to the network operator. The network operator then forwards data requests whose destination addresses belong to the target network to the cleaning center, allowing the cleaning center to obtain the data requests to access the client server for subsequent cleaning of the data requests.
[0068] Step 204: Obtain protection information corresponding to the network address. The protection information is generated by the client server based on business needs.
[0069] The protection information is used to reflect the method of protecting data requests of abnormal behavior types. The protection information can be used to filter data requests that access the network address of the client server.
[0070] Protection information may include, but is not limited to, protection lists, banned transmission protocols, and port information. Protection information may also include at least one of the following: protection lists, banned transmission protocols, and port information. The protection list can be used to filter data requests whose source addresses are on the protection list; banned transmission protocols can be used to filter data requests whose transmission protocols are banned; and port information can be used to filter data requests whose source ports are in the port information.
[0071] In some embodiments, the client server generates protection information corresponding to the network address based on business needs. For example, the data requests of abnormal behavior types received by the network address of the client server include a large number of data requests belonging to the UDP transmission protocol. The UDP (User Datagram Protocol) transmission protocol is a message-oriented transport layer protocol. The protection information can then be configured to include blocking transmission protocols, and the blocking transmission protocols include the UDP transmission protocol. The data requests of the UDP transmission protocol are filtered through the protection information. In actual applications, the client can perform configuration operations through the protection configuration page based on the business needs of the client server to send configuration information to the client server. The client server generates protection information corresponding to the network address based on the configuration information.
[0072] The cleaning center obtains the protection information corresponding to the network address, and then the cleaning center can clean the data request according to the protection information configured by the client server.
[0073] In some embodiments, step 204 includes: receiving protection information corresponding to the network address sent by the cloud server.
[0074] In one implementation, the client server sends protection information to the cloud server, the cloud server sends protection information to the cleaning center, and the cleaning center receives the protection information sent by the cloud server; in another implementation, the cloud server sends the protection information to the cleaning center and sends the network address of the client server to the cleaning center at the same time, and the cleaning center receives the network address and the protection information corresponding to the network address.
[0075] In the above embodiment, the cleaning center receives the protection information sent by the cloud server, so that the cleaning center and the cloud server have the same protection information, and the protection information is configured by the client server according to business needs, so that the cleaning center and the cloud server can perform targeted protection on data requests according to the protection information configured by the client server.
[0076] Step 206: clean the data request based on the protection information to obtain a cleaned data request.
[0077] In some embodiments, the cleaning center determines the candidate data request corresponding to the network address of the client server in the data request, determines the data request of abnormal behavior type based on the protection information corresponding to the network address, filters the data request of abnormal behavior type, and obtains the cleaned data request, thereby improving the cleaning effect of the data request.
[0078] Since the cleaning center receives data requests corresponding to the target network segment, the data requests may include data requests whose destination addresses are not the network addresses of the client servers. Therefore, the cleaning center needs to filter out the data requests corresponding to the network addresses of the client servers, and then clean the data requests corresponding to the network addresses. Step S206 includes: obtaining quintuple information based on the data request; determining candidate data requests corresponding to the network address in the data requests corresponding to the target network segment based on the quintuple information; and cleaning the candidate data requests based on the protection information to obtain cleaned data requests.
[0079] The five-tuple information includes the source address, source port, destination address, destination port and transport layer protocol.
[0080] In some embodiments, for data requests corresponding to the target network segment, the cleaning center obtains the five-tuple information of the data request, determines the candidate data request whose destination address is the network address based on the destination address included in the five-tuple information, cleans the candidate data request through the protection information, and obtains the cleaned data request.
[0081] In some embodiments, the cleaning center includes multiple routers and multiple gateway nodes, and receives data requests corresponding to the target network segment forwarded by the operator through multiple routers. The router forwards the data request to the gateway node according to the five-tuple information of the data request and load balancing, so that data with the same destination address are aggregated to the same gateway node, and then the candidate data requests corresponding to the network address of the client server are aggregated to a gateway node. The gateway node is configured with protection information corresponding to the network address, and the candidate data requests corresponding to the network address are cleaned through the protection information corresponding to the network address.
[0082] In some embodiments, the router forwards the data request to the gateway node according to load balancing based on the five-tuple information of the data request, including: the router determines the hash result based on the five-tuple information of the data request, for the previous data request that has been forwarded and the data request to be forwarded, if the hash results of the previous data request and the data request to be forwarded are the same, the router selects the forwarding path of the previous data request and forwards the data request to be forwarded to the corresponding gateway node; if the hash results of the previous data request and the data request to be forwarded are different, the router selects an idle path and forwards the data request to be forwarded to the corresponding gateway node. In actual applications, the hash of the source address IP in the five-tuple information can be used as the hash result of the five-tuple information.
[0083] In some embodiments, the protection information is integrated into the gateway node in the form of a .so library. The gateway node corresponding to the network address of the client server calls the .so library to clean the candidate data request. The .so library is a dynamic link library.
[0084] For example, UDP-flood is a DDoS attack. UDP-flood refers to sending a flood of UDP requests to the target device in a short period of time, causing the target device to be unable to respond to normal requests. In order to protect against UDP-flood, the client server is configured with protection information for blocking the UDP transmission protocol, and the cleaning center integrates the protection information into the gateway node in the form of a .so library; when the gateway node determines through the .so library that the candidate data request includes a large number of UDP requests, the UDP request of the message is filtered out, so that the UDP-flood is effectively alleviated in the cleaning center.
[0085] In the above embodiment, the cleaning center determines the candidate data request corresponding to the network address of the client server based on the five-tuple information of the data request, cleans the candidate data request through the protection information, and obtains the cleaned data request. The candidate data request corresponding to the network address of the client server is targetedly cleaned through the protection information configured by the client server, thereby improving the cleaning effect of the data request.
[0086] Step 208: Send the cleaned data request to the cloud server to instruct the cloud server to filter the cleaned data request according to the protection information, obtain the target data request after filtering out the data request of abnormal behavior type, and send the target data request to the client server.
[0087] Among them, the data request of abnormal behavior type is a data request determined based on the protection information. When the protection information includes a protection list, the data request of abnormal behavior type can be a data request whose source address belongs to the protection list. When the protection information includes a banned transmission protocol, the data request of abnormal behavior type can be a data request whose transmission protocol is a banned transmission protocol.
[0088] In some embodiments, the gateway node of the cleaning center can transmit the cleaned data request to the cloud server through a physical dedicated line or a GRE tunnel; the physical dedicated line is a dedicated communication line for data transmission between the cleaning center and the cloud server, and GRE (General Routing Encapsulation) is a general routing encapsulation protocol.
[0089] The cloud server filters the cleaned data request through the protection information corresponding to the network address of the client server to obtain the target data request, and the cloud server sends the target data request to the client server through the cloud network.
[0090] It should be noted that the candidate data request corresponding to the network address is cleaned for the first time in the cleaning center and for the second time in the cloud server. The protection information used in both is configured by the client server according to business needs; the cloud server filters the cleaned data request through the protection information, which is the same process as the cleaning center filtering the candidate data request through the protection information.
[0091] In the above embodiment, the cleaning center receives data requests corresponding to the target network segment forwarded by the network operator and obtains protection information corresponding to the network address of the client server. The protection information is generated by the client server based on business needs. The cleaning center cleans the data request using the protection information and sends the cleaned data request to the cloud server. The cloud server filters the cleaned data request using the protection information to obtain the target data request after filtering out data requests of abnormal behavior types, and then sends the target data request to the client server. Both the cleaning center and the cloud server perform data cleaning using the protection information, so that the protection of data requests of abnormal behavior types is adapted to the actual business needs of the client server. In this way, data requests of abnormal behavior types can be effectively cleaned in the cleaning center. The cleaned data request is then cleaned again by the cloud server to filter out a small number of data requests of abnormal behavior types that penetrate the cleaning center, and obtain the target data request after filtering out data requests of abnormal behavior types. This ensures the stability of the business of the client server and improves the protection effect of network abnormal behavior.
[0092] In some embodiments, the protection information includes a protection list; the candidate data request is cleaned based on the protection information to obtain a cleaned data request, including: obtaining a source address corresponding to the candidate data request; obtaining a first data request to be cleaned whose source address belongs to the protection list in the candidate data request; cleaning the first data request to be cleaned to obtain a cleaned data request.
[0093] The protection list includes protection source addresses, which are source addresses that are not allowed to access the client server.
[0094] In some embodiments, the gateway node of the cleaning center obtains the source address of the candidate data request based on the five-tuple information of the candidate data request. If the source address of the candidate data request is a protected source address included in the protection list, the candidate data request is used as the first data request to be cleaned, and the first data request to be cleaned in the candidate data requests is cleaned to obtain a cleaned data request. It should be noted that the first data request to be cleaned is a data request of the abnormal behavior type.
[0095] In the above embodiment, the protection list is set by the client server according to business needs. The cleaning center cleans the cleaned data requests according to the protection list, so that data requests with the source address as the protection source address cannot be sent to the client server, thereby improving the protection effect of abnormal network behavior.
[0096] In some embodiments, the protection information includes a banned transmission protocol; the candidate data request is cleaned based on the protection information to obtain a cleaned data request, including: when the traffic of the candidate data request is greater than the traffic threshold, obtaining a second data request to be cleaned whose transmission protocol belongs to a banned transmission protocol in the candidate data request; cleaning the second data request to be cleaned to obtain a cleaned data request.
[0097] Among them, the banned transmission protocols may include: at least one of the UDP transmission protocol, the TCP transmission protocol or the ICMP transmission protocol. The TCP (Transmission Control Protocol) transmission protocol is a connection-oriented, reliable, byte stream-based transport layer communication protocol; the ICMP (Internet Control Message Protocol) transmission protocol is a connectionless-oriented protocol.
[0098] When the blocked transport protocol includes UDP, it can protect against UDP-flood type DDoS attacks; when the blocked transport protocol includes TCP, it can protect against TCP-flood type DDoS attacks; when the blocked transport protocol includes ICMP, it can protect against ICMP-flood type DDoS attacks. TCP-flood refers to sending a flood of TCP requests to the target device in a short period of time, causing the target device to be unable to respond to normal requests; ICMP-flood refers to sending a flood of ICMP requests to the target device in a short period of time, causing the target device to be unable to respond to normal requests.
[0099] Among them, the traffic threshold can be set by the client server according to business needs, or it can be determined by the cleaning center through deep learning of historical records of network abnormal behavior protection using neural networks.
[0100] In some embodiments, the cleaning center obtains the traffic of the candidate data request. When the traffic of the candidate data request is greater than a traffic threshold, the cleaning center determines the transmission protocol of the candidate data request based on the five-tuple information of the candidate data request, and uses the candidate data request whose transmission protocol is a prohibited protocol request as the second data request to be cleaned. The cleaning center cleans the second data request to be cleaned in the candidate data request to obtain a cleaned data request. It should be noted that the second data request to be cleaned is a data request of the abnormal behavior type.
[0101] For example, in order to protect against TCP-flood and ICMP-flood, the client server configures the blocking transmission protocol including protection information of the TCP transmission protocol and the ICMP transmission protocol; the cleaning center determines the traffic of the candidate data request. When the traffic of the candidate data request is greater than the traffic threshold, the cleaning center determines the second data request to be cleaned of the TCP transmission protocol and the ICMP transmission protocol in the candidate data request, cleans the second data request to be cleaned in the candidate data request, and obtains the cleaned data request.
[0102] In some embodiments, the protection information includes a protection list and a banned transmission protocol, and the candidate data request is cleaned based on the protection information to obtain a cleaned data request, including: obtaining the source address corresponding to the candidate data request; obtaining a first data request to be cleaned whose source address belongs to the protection list in the candidate data request, and when the traffic of the candidate data request is greater than the traffic threshold, obtaining a second data request to be cleaned whose transmission protocol belongs to the banned transmission protocol in the candidate data request, cleaning the first data request to be cleaned and the second data request to be cleaned to obtain the cleaned data request.
[0103] That is, the cleaning center determines the first data request to be cleaned among the candidate data requests based on the protection list, and determines the second data request to be cleaned among the candidate data requests based on the banned transmission protocol, and filters out the first data request to be cleaned and the second data request to be cleaned, so as to realize cleaning of the data requests in combination with multiple protection information.
[0104] In some embodiments, the protection list also includes a non-protection list and a banned transmission protocol, and the non-protection list includes a non-protection source address; the candidate data request is cleaned based on the protection information to obtain a cleaned data request, including: when the traffic of the candidate data request is greater than the traffic threshold, obtaining a second data request to be cleaned whose transmission protocol belongs to a banned transmission protocol in the candidate data request, determining a third data request to be cleaned whose source address does not belong to the non-protection list in the second data request to be cleaned, and the cleaning center cleans the third data request to be cleaned to obtain a cleaned data request.
[0105] In some embodiments, to avoid filtering out data requests with source addresses that are not protected source addresses, only the third data request to be cleaned, whose source address is not a non-protected source address, is cleaned. The non-protected source addresses in the non-protected list are set by the client server based on business needs, so that data requests with source addresses that are not protected source addresses can access the client server.
[0106] In the above embodiment, the banned transmission protocol is set by the client server according to business needs. The cleaning center can clean a large number of data requests whose transmission protocols are at least one of the UDP transmission protocol, TCP transmission protocol or ICMP transmission protocol based on the banned transmission protocol, and then protect against at least one DDoS attack of the UDP-flood type, TCP-flood type or ICMP-flood type, thereby improving the protection effect of abnormal network behavior.
[0107] In some embodiments, a method for protecting against abnormal network behavior includes: receiving a dialing request sent by a cloud server; receiving a blocking instruction sent by the cloud server when a response to the dialing request times out; and stopping broadcasting the target network segment to the network operator based on the blocking instruction.
[0108] The dial test is a means of testing the quality of a network link. The dial test request is used to test the link of the cleaning center. The dial test request may be a Ping request. The Ping (Packet Internet Groper) request is a network exploration request.
[0109] A timeout in responding to a test request occurs when the response time exceeds the threshold. For example, if the cloud server sends a test request but does not receive a response within the threshold, the timeout is considered.
[0110] In some embodiments, the cloud server can periodically send Ping requests to the cleaning center, and the cleaning center receives and responds to the Ping request. If the cleaning center times out in responding to the Ping request, it means that the link of the requesting center is abnormal. The cloud server sends a blocking instruction to the cleaning center, and the cleaning center receives the blocking instruction and stops broadcasting the target network segment to the network operator according to the blocking instruction.
[0111] In some embodiments, the cleaning center can receive a dial test request sent by a dial test node and respond to the dial test request. When the dial test node determines that the cleaning center's response to the dial test node times out, it determines that there is a link abnormality in the cleaning center. The dial test node feeds back the dial test result of the cleaning center's link abnormality to the cloud server. The cloud server sends a shielding instruction to the cleaning center, and the cleaning center stops broadcasting the target network segment to the network operator based on the shielding instruction.
[0112] In some embodiments, after the cleaning center stops broadcasting the target network segment to the network operator, it may perform a link maintenance operation. When the link of the cleaning center is restored, the cleaning center continues broadcasting the target network segment to the network operator.
[0113] In some embodiments, after a cleaning center stops broadcasting the target network segment to a network operator, the network operator can address the nearest cleaning center and forward the data request to that cleaning center. For example, network operator A in region A forwards a data request to cleaning center A in region A. If a link to cleaning center A fails, cleaning center A stops broadcasting the target network segment to network operator A. Network operator A can then forward the data request to a cleaning center in region B, which is the closest cleaning center to cleaning center A.
[0114] In some embodiments, after the cloud server sends a shielding instruction to the cleaning center, it sends a routing broadcast instruction to another cleaning center to instruct the other cleaning center to broadcast the target network segment, so that the network operator forwards the data request corresponding to the target network segment to the other cleaning center.
[0115] In related technologies, data requests are cleaned through the network operator's internal cleaning nodes. The cloud server is unable to promptly determine if the network operator's cleaning nodes have experienced link anomalies, resulting in the inability to properly schedule data requests and impacting the stability of the client server's services. In the above embodiment, the cloud server can dial the cleaning center to promptly determine the cleaning center's link status. When the cleaning center's link is abnormal, the cloud server uses a blocking instruction to control the cleaning center to stop broadcasting the target network segment to the network operator. Consequently, the network operator will not forward data requests to the cleaning center with the link failure. Instead, the network operator can forward data requests to other cleaning centers, enabling data request scheduling, ensuring the stability of the client server's services, and improving disaster recovery capabilities.
[0116] In some embodiments, the method for protecting against abnormal network behavior can be applied to the application scenario shown in Figure 3, where cleaning centers and cloud servers are deployed in areas A, B, and C, respectively, and the client server is in area B; the cleaning centers and cloud servers in each area have the same protection information corresponding to the client servers.
[0117] An access device in region A initiates a data request Q11. A cleaning center A in region A receives the data request Q11 forwarded by network operator A in region A. Cleaning center A uses the protection information corresponding to the client server's network address to cleanse candidate data request Q12 corresponding to the network address in data request Q11, obtaining a cleansed data request Q13. The cleansed data request Q13 is forwarded to cloud server A in region A. Cloud server A uses the protection information to cleanse the cleansed data request Q13, obtaining a target data request Q14. Cloud server A sends the target data request Q14 to cloud server B in region B. Cloud server B sends the target data request Q14 to the client server.
[0118] The access device in region B initiates a data request Q21. Scrubbing center B in region B receives data request Q21 forwarded by network operator B in region B. Using the protection information, scrubbing center B scrubs candidate data request Q22 corresponding to the network address in data request Q21, obtaining a scrubbed data request Q23. This scrubbed data request Q23 is then forwarded to cloud server B in region B. Cloud server B scrubs this data request Q23 using the protection information, obtaining a target data request Q24. Cloud server B then sends this target data request Q14 to the client server.
[0119] The cleaning center C and cloud server C in area C send the cleaned target data request to the client server in the same way as the cleaning center A and cloud server A.
[0120] In some embodiments, as shown in FIG4 , a method for preventing abnormal network behavior includes:
[0121] In step 401, the cleaning center receives the network address of the client server sent by the cloud server, obtains the target network segment corresponding to the network address, and broadcasts the target network segment to the network operator. The network operator and the cloud server are located in the same geographical area.
[0122] Step 402: The cleaning center receives a data request corresponding to the target network segment forwarded by the network operator.
[0123] In some embodiments, the client server binds its network address to the cloud server, and the cloud server sends the network address of the client server to the cleaning center. The cleaning center determines the target network segment based on the network address and the subnet mask of the network address; the cleaning center's routing broadcasts the target network segment so that the network operator forwards data requests whose IP addresses belong to the target network segment to the cleaning center. Since the network address of the client server belongs to the target network segment, the cleaning center can receive data requests to access the client server.
[0124] In step 403, the cleaning center receives the protection information corresponding to the network address sent by the cloud server. The protection information is generated by the client server according to business needs.
[0125] In some embodiments, the client server generates protection information corresponding to the network address based on business needs. For example, if the client server's network address receives data requests of abnormal behavior types including a large number of data requests belonging to the UDP transport protocol, the protection information can be configured to include blocking transport protocols, including the UDP transport protocol, and the data requests belonging to the UDP transport protocol can be filtered using this protection information. The cleaning center receives the protection information sent by the cloud server, so that the cleaning center and the cloud server have the same protection information.
[0126] In step 404, the cleaning center obtains quintuple information based on the data request, and determines a candidate data request corresponding to the network address according to the quintuple information among the data requests corresponding to the target network segment.
[0127] In some embodiments, for data requests corresponding to the target network segment, the cleaning center obtains the five-tuple information of the data request, determines the candidate data request whose destination address is the network address based on the destination address included in the five-tuple information, cleans the candidate data request through the protection information, and obtains the cleaned data request.
[0128] In step 405A, the protection information includes a protection list. The cleaning center obtains the source address corresponding to the candidate data request, obtains the first data request to be cleaned whose source address belongs to the protection list from the candidate data request, cleans the first data request to be cleaned, and obtains a cleaned data request.
[0129] The protection list includes protection source addresses, which are source addresses that are not allowed to access the client server.
[0130] Step 405B: The protection information includes a banned transmission protocol. When the traffic of the candidate data request is greater than the traffic threshold, the cleaning center obtains a second data request to be cleaned whose transmission protocol belongs to a banned transmission protocol from the candidate data request, cleans the second data request to be cleaned, and obtains a cleaned data request.
[0131] The banned transmission protocol may include at least one of the UDP transmission protocol, the TCP transmission protocol or the ICMP transmission protocol.
[0132] Step 405C: The protection information includes a protection list and a banned transmission protocol. The cleaning center obtains the source address corresponding to the candidate data request, obtains the first data request to be cleaned whose source address belongs to the protection list in the candidate data request, and obtains the second data request to be cleaned whose transmission protocol belongs to the banned transmission protocol in the candidate data request when the traffic of the candidate data request is greater than the traffic threshold. The first data request to be cleaned and the second data request to be cleaned are cleaned to obtain the cleaned data request.
[0133] Step 405D: The protection information includes a non-protection list and a banned transmission protocol. When the traffic of the candidate data request is greater than the traffic threshold, the cleaning center obtains a second data request to be cleaned whose transmission protocol belongs to a banned transmission protocol in the candidate data request, determines a third data request to be cleaned whose source address does not belong to the non-protection list in the second data request to be cleaned, cleans the third data request to be cleaned, and obtains a cleaned data request.
[0134] In step 406, the cleaning center sends a cleaned data request to the cloud server to instruct the cloud server to filter the cleaned data request according to the protection information, obtain a target data request after filtering out data requests of abnormal behavior types, and send the target data request to the client server.
[0135] In some embodiments, the cloud server filters the cleaned data request through the protection information corresponding to the network address of the client server to obtain the target data request, and the cloud server sends the target data request to the client server through the cloud network.
[0136] Step 407: The cleaning center receives the dial test request sent by the cloud server. If the response to the dial test request times out, the cleaning center receives a blocking instruction sent by the cloud server. Based on the blocking instruction, the cleaning center stops broadcasting the target network segment to the network operator.
[0137] In some embodiments, the cloud server can periodically send Ping requests to the cleaning center, and the cleaning center receives and responds to the Ping request. If the cleaning center times out in responding to the Ping request, it means that the link of the requesting center is abnormal. The cloud server sends a blocking instruction to the cleaning center, and the cleaning center receives the blocking instruction and stops broadcasting the target network segment to the network operator according to the blocking instruction.
[0138] In the above embodiment, the cleaning center receives the data request corresponding to the target network segment forwarded by the network operator, obtains the protection information corresponding to the network address of the client server, and the protection information is generated by the client server based on the business needs. The cleaning center cleans the data request using the protection information and sends the cleaned data request to the cloud server. The cloud server filters the cleaned data request using the protection information to obtain the target data request after filtering out the data requests of abnormal behavior types, and sends the target data request to the client server. Both the cleaning center and the cloud server perform data cleaning through protection information, so that the protection of data requests of abnormal behavior types is adapted to the actual business needs of the client server, and thus the data requests of abnormal behavior types can be effectively cleaned in the cleaning center, and then the cleaned data requests are secondary cleaned by the cloud server to filter out a small number of data requests of abnormal behavior types that penetrate the cleaning center, and obtain the target data requests after filtering out the data requests of abnormal behavior types, thereby ensuring the business stability of the client server and improving the protection effect of network abnormal behavior; in addition, in the related technology, routing is broadcasted by the network operator, and the routing broadcast method and area are fixed modes and cannot be adjusted according to the business needs of the client server. In the above embodiment, routing is broadcasted to the network operator through the cleaning center, so that the routing broadcast method and area can be adjusted according to the customer's business needs to meet the business access delay requirements of the client server.
[0139] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0140] In some embodiments, as shown in FIG5 , a method for protecting against abnormal network behavior is provided. The method is described by taking the cloud server in FIG1 as an example, and includes the following steps:
[0141] Step 502: Receive protection information corresponding to a network address determined by the client server based on business requirements. The network address is the address of the network where the client server is located.
[0142] In some embodiments, the client server configures protection information corresponding to the network address according to business needs, sends the protection information to the cloud server, and the cloud server receives the protection information sent by the client server.
[0143] In some embodiments, the client performs configuration operations on the protection configuration page of the protection platform to send configuration information to the client server, and the client server generates protection information corresponding to the network address based on the configuration information; the protection information may include but is not limited to: protection lists, banned transmission protocols and port information.
[0144] As shown in Figure 6, the protection configuration page 601 includes: a network address selection area 602 for DDoS protection, and a DDoS protection configuration area 603. The network address selection area 602 includes the network address of the client server; the configuration area 603 includes configuration areas corresponding to various protection information, such as: a protection list configuration area, a protocol blocking configuration area, and a port filtering configuration area; when the network address of the client server is selected in the protection configuration page, the protection information can be configured through the configuration area 603 to obtain the protection information corresponding to the network address.
[0145] Exemplarily, the network address of the client server is 111.***, and the network address is in the selected state; the protection list configuration area includes protection effect description information 6031 of the protection list, and the client responds to the trigger operation of setting control 6032 in the protection list configuration area to display the protection list setting page, and the protection source address can be added to the protection list setting page. The port filtering configuration area includes protection effect description information 6033 of port filtering, and the client responds to the trigger operation of setting control 6034 in the port filtering configuration area to display the port filtering configuration setting page, and the filtered source port information can be added to the port filtering configuration setting page. The protocol blocking configuration area includes protection effect description information 6035 of protocol blocking, and the client responds to the trigger operation of setting control 6036 in the protocol blocking configuration area to display the protocol blocking setting page, and the blocked transmission protocol can be added to the protocol blocking setting page.
[0146] It should be noted that the content displayed on the protection configuration page in Figure 6 is only an example of this application. In actual applications, the protection configuration page can also include a configuration area for other protection information and other content related to DDoS protection. The embodiments of this application do not limit this.
[0147] The client configures various protection information on the protection configuration page to obtain the configuration information and sends the configuration information to the client server. The client server generates the protection information corresponding to the network address based on the configuration information and sends the protection information corresponding to the network address to the cloud server.
[0148] Step 504: Send the protection information and the network address to the cleaning center to instruct the cleaning center to receive the data request corresponding to the target network segment forwarded by the network operator, perform data cleaning on the data request based on the protection information, and obtain a cleaned data request. The target network segment is the network segment corresponding to the network address.
[0149] In some embodiments, the cloud server sends the network address and corresponding protection information to the cleaning center. After receiving the network address and corresponding protection information sent by the cloud server, the cleaning center receives the data request forwarded by the network operator.
[0150] In some embodiments, sending protection information and a network address to a cleaning center to instruct the cleaning center to receive a data request corresponding to a target network segment forwarded by a network operator includes: sending protection information and a network address to the cleaning center to instruct the cleaning center to obtain a target network segment corresponding to the network address, broadcasting the target network segment to the network operator, and receiving a data request corresponding to the target network segment forwarded by the network operator; the network operator and the cloud server are located in the same geographical area.
[0151] In some embodiments, the specific process of the cleaning center obtaining the corresponding target network segment based on the network address, broadcasting the target network segment to the network operator, and receiving the data request corresponding to the target network segment forwarded by the network operator can refer to the description of the cleaning center receiving the data request corresponding to the target network segment forwarded by the network operator in the above embodiment.
[0152] The cleaning center receives the data request corresponding to the target network segment forwarded by the operator, cleans the data request based on the protection information, and obtains the cleaned data request. The process is the same as the process of step 204 in the above embodiment. Therefore, the process of step 504 can refer to the detailed description of step 204 in the above embodiment.
[0153] Step 506: Receive the cleaned data request sent by the cleaning center, and filter the cleaned data request according to the protection information to obtain the target data request after filtering out the data requests of abnormal behavior types.
[0154] In some embodiments, the protection information includes a protection list, and the cloud server filters the cleaned data request based on the protection information to obtain the target data request after filtering out the data request of abnormal behavior type, including: the cloud server obtains the source address corresponding to the cleaned data request; obtains the fourth data request to be cleaned whose source address belongs to the protection list in the cleaned data request; cleans the fourth data request to be cleaned to obtain the target data request after filtering out the data request of abnormal behavior type.
[0155] In some embodiments, the protection information includes a banned transmission protocol; the cloud server filters the cleaned data request based on the protection information, and obtains the target data request after filtering out the data request of abnormal behavior type, including: when the traffic of the cleaned data request is greater than the traffic threshold, the cloud server obtains the fifth data request to be cleaned whose transmission protocol belongs to the banned transmission protocol in the cleaned data request; cleans the fifth data request to be cleaned, and obtains the target data request after filtering out the data request of abnormal behavior type.
[0156] In some embodiments, the protection information includes a protection list and a banned transmission protocol; the cloud server filters the cleaned data request based on the protection information, and obtains the target data request after filtering out the data request of abnormal behavior type, including: the cloud server obtains the source address corresponding to the cleaned data request; obtains the fourth data request to be cleaned whose source address belongs to the protection list in the cleaned data request; when the traffic of the cleaned data request is greater than the traffic threshold, obtains the fifth data request to be cleaned whose transmission protocol belongs to the banned transmission protocol in the cleaned data request, cleans the fourth data request to be cleaned and the fifth data request to be cleaned, and obtains the target data request after filtering out the data request of abnormal behavior type.
[0157] In some embodiments, the protection information includes a non-protection list and a banned transmission protocol; the cloud server filters the cleaned data request based on the protection information, and obtains the target data request after filtering out the data request of abnormal behavior type, including: when the traffic of the cleaned data request is greater than the traffic threshold, the cloud server obtains the fifth data request to be cleaned whose transmission protocol belongs to the banned transmission protocol in the cleaned data request; in the fifth data request to be cleaned, it is determined that the source address of the sixth data request to be cleaned does not belong to the non-protection list, and the cleaning center cleans the sixth data request to be cleaned to obtain the cleaned data request.
[0158] Step 508: Send the target data request to the client server.
[0159] In the above-mentioned method for protecting against abnormal network behavior, the cloud server obtains the protection information corresponding to the network address of the client server, and sends the protection information and the network address to the cleaning center. The cleaning center receives the data request corresponding to the target network forwarded by the operator, and the cleaning center cleans the data request through the protection information. The protection information is configured by the client server according to business needs, so that the data request of the abnormal behavior type can be effectively cleaned in the cleaning center. The cloud server then performs a secondary cleaning on the cleaned data request through the protection information to filter out a small number of data requests of the abnormal behavior type that penetrate the cleaning center, and obtains the target data request after filtering out the data requests of the abnormal behavior type, thereby ensuring the business stability of the client server and improving the protection effect of network abnormal behavior.
[0160] In some embodiments, the method for protecting against abnormal network behavior further includes: sending a dial test request to a cleaning center; and when the cleaning center times out in responding to the dial test request, sending a blocking instruction to the cleaning center to instruct the cleaning center to stop broadcasting the target network segment to the network operator.
[0161] In some embodiments, the cloud server may periodically send a dial test request to the cleaning center, which receives and responds to the dial test request. If the cleaning center times out in responding to the dial test request, it determines that the link of the requesting center is abnormal, and the cloud server sends a shielding instruction to the cleaning center. The cleaning center receives the shielding instruction and stops broadcasting the target network segment to the network operator according to the shielding instruction.
[0162] In some embodiments, after the cloud server sends a shielding instruction to the cleaning center, it sends a routing broadcast instruction to another cleaning center to instruct the other cleaning center to broadcast the target network segment broadcast by the cleaning center that received the shielding instruction, so that the network operator forwards the data request corresponding to the target network segment to the other cleaning center.
[0163] In related technologies, data requests are cleaned through the network operator's internal cleaning nodes. The cloud server is unable to promptly determine if the network operator's cleaning nodes have experienced link anomalies, resulting in the inability to properly schedule data requests and impacting the stability of the client server's services. In the above embodiment, the cloud server can dial the cleaning center to promptly determine the cleaning center's link status. When the cleaning center's link is abnormal, the cloud server uses a blocking instruction to control the cleaning center to stop broadcasting the target network segment to the network operator. Consequently, the network operator will not forward data requests to the cleaning center with the link failure. Instead, the network operator can forward data requests to other cleaning centers, enabling data request scheduling, ensuring the stability of the client server's services, and improving disaster recovery capabilities.
[0164] In some embodiments, before receiving the protection information corresponding to the network address determined by the client server based on business needs, it also includes: in response to the association request sent by the client server, establishing an association relationship between the network address of the client server and the cloud server, where the network address is an address with protection attributes requested based on the protection service possessed by the client server.
[0165] In some embodiments, the client can purchase protection services for the client server on the protection platform. Based on the protection services provided by the client server, a network address with protection attributes is requested. The network address belongs to an elastic public network address (EIP, Elastic IP), and an association relationship is established between the requested network address and the server.
[0166] For example, as shown in FIG7 , on the protection platform's protection service purchase page 701 , protection services are purchased according to the business needs of the client server. The protection service purchase page 701 includes protection service description information 702 , which includes the bandwidth type and protection target of the protection service. The protection service purchase page includes a protection area selection control 703 . For example, FIG7 includes selection controls corresponding to Area A, Area B, Area C, and Area D, respectively, which can be used to select a protection area based on the area where the client server's network address is located. The protection service purchase page 701 also includes a protection network address quantity selection control 704 , which can be used to select the number of protection network addresses based on business needs. The client completes the purchase of the protection service in response to a trigger operation on the confirmation purchase control 705 on the protection service purchase page 701 , thereby providing the client server with the protection service. It should be noted that FIG7 is only an example of a protection service purchase page. The protection service purchase page may also include other related content, such as the validity period of the protection service, the bandwidth of the protection service, etc. The embodiments of the present application do not limit the specific content of the protection service purchase page.
[0167] As shown in FIG8 , on the EIP application page 801 of the protection platform, select the EIP corresponding to the type of protection service you purchased. The selection control 802 corresponding to the protection service type is selected. Protection against DDoS attacks can be provided based on the protection service type. The service area corresponding to the protection service is selected. For example, in FIG8 , the service area corresponding to the protection service is selected as Area A. The EIP application page 801 of the protection platform also allows you to set the bandwidth limit corresponding to the protection service. It should be noted that the EIP application page shown in FIG8 is merely an example. In actual applications, the EIP application page may include more relevant content and may be displayed in other formats. This embodiment of the present application is not limited to this.
[0168] After completing the EIP application, a network address with protection attributes is obtained, and the protection service is then configured through the protection platform's protection service management page. As shown in Figure 9, the protection service management page 901 includes a description of the protection service, purchase information for the protection service, a description of the network address, and a protection object management control 902. Through the protection object management control 902, an association operation is performed to establish an association between the client server's network address and the cloud server. It should be noted that the protection service management page shown in Figure 9 is only an example. In actual applications, the protection service management page can also include more relevant content and can be displayed in other formats. This embodiment of the application does not limit this.
[0169] In response to the trigger operation on the protection object management control, the client displays the protection object management page; as shown in Figure 10, the protection object management page 1001 includes network address description information 1002, an associated device selection control 1003, a device to be selected area 1004, a selected device area 1005 and a confirmation control 1006; in response to the trigger operation on the associated device type selection control 1003, the client displays a list of associable device types in the device to be selected area 1004, and the list of associable device types includes each candidate cloud server and corresponding related information. In response to the selection operation of a candidate cloud server among the candidate cloud servers, the client displays the selected cloud server and related information in the selected device area 1005. In response to the trigger operation on the confirmation control 1006 in the protection object management page 1001, the client server sends an association request to the client server, and the client server forwards the association request to the selected cloud server. The cloud server responds to the association request and establishes an association relationship between the network address of the client server and the cloud server.
[0170] In the above embodiment, the cloud server establishes an association relationship between the network address of the client server and the cloud server based on the association request sent by the client server, so that the cloud server can communicate with the public network through the network address, and can clean the cleaned data request through the protection information corresponding to the network address, and send the target data request to the client server.
[0171] In some embodiments, the method for protecting against abnormal network behavior also includes: receiving cleaning information sent by the cleaning center after performing data cleaning on a data request; obtaining the abnormal behavior type, and the number of requests and abnormal behavior time corresponding to the abnormal behavior type based on the cleaning information in response to a protection overview instruction sent by the client server; sending the abnormal behavior type, and the number of requests and abnormal behavior time corresponding to the abnormal behavior type to the client server to instruct the client server to send the abnormal behavior type, and the number of requests and abnormal behavior time corresponding to the abnormal behavior type to the client, so that the client displays the protection overview page based on the abnormal behavior type, and the number of requests and abnormal behavior time corresponding to the abnormal behavior type.
[0172] The protection overview instruction may be sent from the client to the client server, and then sent to the cloud server through the client server.
[0173] Cleaning information includes the abnormal behavior type corresponding to the data request being cleaned, as well as the number of requests associated with the abnormal behavior type and the request time. Abnormal behavior types include, but are not limited to, UDP flood, TCP flood, and ICMP flood. The number of requests associated with the abnormal behavior type is the number of data requests of that abnormal behavior type cleaned by the cleaning center, and the abnormal behavior time is the time when the cleaning center identified the abnormal behavior type.
[0174] In some embodiments, after the cleaning center performs data cleaning on the data request, it obtains the cleaning information corresponding to this protection and sends the cleaning information to the cloud server; the client responds to the trigger operation of the protection overview control in the protection service control page and sends a protection overview instruction to the client server. The client server forwards the protection overview instruction to the cloud server. The cloud server responds to the protection overview instruction and sends the abnormal behavior type, the corresponding number of requests and the abnormal behavior time to the client server based on the cleaning information. The client server sends the abnormal behavior type, the corresponding number of requests and the abnormal behavior time to the client. The client displays the protection overview page according to the abnormal behavior type, the corresponding number of requests and the abnormal behavior time.
[0175] Exemplarily, as shown in FIG11 , the protection overview page 1101 includes an attack situation area, which includes: the abnormal behavior type is UDP-flood type, the abnormal behavior time corresponding to the UDP-flood type is: YMD, 12:00:00, and the number of requests corresponding to the UDP-flood type is: 10**; the attack situation area may also include other relevant information of the DDoS attack, such as the traffic peak of the DDoS attack.
[0176] In some embodiments, the protection overview page 1101 also includes a protection status area, which includes: the number of DDoS attacks protected, the number of DDoS attacks suffered by the network address of the client server, and the time of each DDoS attack. The number of DDoS attacks and the time of each DDoS attack can be displayed through a protection trend line chart, as shown in 1102 in Figure 11.
[0177] In some embodiments, when the protection service possessed by the client server requests multiple network addresses with protection attributes, the protection overview area also includes the number of network addresses with protection attributes, and the number of network addresses that have been attacked by DDoS among the multiple network addresses with protection attributes.
[0178] In the above embodiment, the cloud server sends the abnormal behavior type, the corresponding number of requests and the abnormal behavior time to the client server, and the client server sends the abnormal behavior type, the corresponding number of requests and the abnormal behavior time to the client. The client can view the specific situation of the DDoS attack protection in the protection overview page, so that the client can browse the network abnormal behavior protection data more intuitively.
[0179] In some embodiments, the method for protecting against abnormal network behavior can be applied to the scenario shown in Figure 12. A protection architecture for abnormal network behavior is formed by a network operator, a cleaning center, a cloud server, and a client server. The protection architecture for abnormal network behavior includes an access layer, a protection layer, and a back-to-source layer. The access layer includes the network operator, the routers of the cleaning center, and the core controller of the cloud server; the protection layer includes the gateway node and data aggregation center of the cleaning center; and the back-to-source layer includes the client server and the cloud server's cloud cleaning system.
[0180] At the access layer, the routers in the cleaning center connect to the network operator and broadcast the target network segments to the network operator. This can be done through the BGP routing protocol. BGP is a routing protocol between autonomous systems that can detect routing loops and make routing decisions based on performance priorities and policy constraints. The routers communicate with the core controller through interfaces, and the core controller can control the target network segments broadcast by the routers. For example, if there is a link abnormality in the cleaning center, the core controller can control the router to stop broadcasting the target network segments.
[0181] For the protection layer, the protection information is integrated into the gateway node of the cleaning center in the form of a .so library. The gateway nodes of the cleaning center aggregate the candidate data requests corresponding to the network address to one gateway node, and the candidate data requests corresponding to the network address are cleaned by the gateway node of the cleaning center. After the gateway node cleans the candidate data request, the cleaning information is reported to the data aggregation center. The data aggregation center can send the cleaning information to the cloud server, and then send it to the customer server through the cloud server.
[0182] For the return-to-source layer, the gateway node of the cleaning center will inject the cleaned data request back to the cloud server. Through the cloud cleaning system of the cloud server, the cleaned data request will be cleaned according to the protection information, and then the cleaned target data request will be sent to the customer server.
[0183] In some embodiments, the method for protecting against abnormal network behavior can be applied to the scenario shown in Figure 13. The method for protecting against abnormal network behavior is jointly executed by a client, a client server, a scrubbing center, and a cloud server; the cloud server includes a gateway, a DDoS backend service, a network address backend service, and a cloud scrubbing system.
[0184] The client can configure the protection service of the customer server on the protection platform. The client purchases the protection service on the protection platform, requests a network address with protection attributes based on the available protection service, and performs a binding operation between the protection service and the network address. The client generates a binding request based on the binding operation and sends the binding request to the customer service. The customer server transmits the binding request to the cloud server through the cloud server's gateway; the protection service information and network address included in the binding request are verified through the DDoS background service and the network address background service. When the determined network address is a network address with protection attributes based on the protection service request, the cloud server binds the protection service and the network address.
[0185] The cloud server obtains the protection information corresponding to the network address of the client server, and sends the network address and the corresponding protection information to the cloud server's cloud cleaning system through the DDoS background service. The cloud cleaning system sends the network address and the corresponding protection information to the cleaning center, so that the cleaning center and the cloud server both have the protection information corresponding to the network address of the client server; the cloud cleaning system and the cleaning center can send the cleaning information to the DDoS background service through the message queue.
[0186] The cloud-based scrubbing system and scrubbing center can store protection information and DDoS attack protection-related data in a MySQL database to improve data query efficiency. MySQL is a relational database. The cloud-based scrubbing system and scrubbing center can cache DDoS attack protection-related requests in Redis, a high-performance, open-source, non-relational database written in C.
[0187] In some embodiments, as shown in FIG14 , a method for preventing abnormal network behavior includes:
[0188] In step 1401, the cloud server establishes an association relationship between the network address of the client server and the cloud server in response to the association request sent by the client server; the network address is an address with protection attributes requested by the protection service possessed by the client server.
[0189] In some embodiments, the client purchases the protection service of the customer server on the protection platform. Based on the protection service request network address possessed by the customer server, the client sends an association request to the customer server. The customer server forwards the association request to the selected cloud server. The cloud server responds to the association request and establishes an association relationship between the network address of the customer server and the cloud server.
[0190] In step 1402, the cloud server receives protection information corresponding to a network address determined by the client server based on business needs, where the network address is the address of the network where the client server is located.
[0191] The protection information may include but is not limited to: protection lists, banned transmission protocols and port information.
[0192] In step 1403, the cloud server sends the protection information and the network address to the cleaning center to instruct the cleaning center to obtain the corresponding target network segment based on the network address, broadcast the target network segment to the network operator, receive the data request corresponding to the target network segment forwarded by the network operator, clean the data request based on the protection information, and obtain the cleaned data request. The target network segment is the network segment corresponding to the network address, and the network operator and the cloud server are located in the same geographical area.
[0193] In some embodiments, the cloud server sends protection information and a network address to the cleaning center. The cleaning center obtains the corresponding target network segment based on the network address, broadcasts the target network segment to the network operator, and receives data requests corresponding to the target network segment forwarded by the network operator.
[0194] In step 1404, the cloud server receives the cleaned data request sent by the cleaning center, obtains the source address corresponding to the cleaned data request, obtains the fourth data request to be cleaned whose source address belongs to the protection list in the cleaned data request, cleans the fourth data request to be cleaned, and obtains the target data request.
[0195] In some embodiments, the protection information includes a banned transmission protocol; when the traffic of the data request after cleaning is greater than the traffic threshold, the cloud server obtains a fifth data request to be cleaned whose transmission protocol belongs to the banned transmission protocol in the data request after cleaning; the fifth data request to be cleaned is cleaned to obtain the target data request after filtering out the data requests of abnormal behavior types.
[0196] In step 1405 , the cloud server sends the target data request to the client server.
[0197] In step 1406, the cloud server receives the cleaning information sent by the cleaning center after cleaning the data request, and responds to the protection overview instruction sent by the client server. Based on the cleaning information, the cloud server obtains the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the request time, and sends the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the request time to the client server to instruct the client server to send the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the abnormal behavior time to the client, so that the client displays the protection overview page according to the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the abnormal behavior time.
[0198] The protection overview command can be sent from the client to the client server, and then sent to the cloud server via the client server. The cleaning information includes the abnormal behavior type corresponding to the data request being cleaned, as well as the number of requests corresponding to the abnormal behavior type and the request time. Abnormal behavior types include, but are not limited to, UDP flood, TCP flood, and ICMP flood. The number of requests corresponding to the abnormal behavior type is the number of data requests of the abnormal behavior type cleaned by the cleaning center, and the abnormal behavior time is the time when the cleaning center identified the abnormal behavior type.
[0199] In some embodiments, after the cleaning center performs data cleaning on the data request, it obtains the cleaning information corresponding to this protection and sends the cleaning information to the cloud server; the client responds to the trigger operation of the protection overview control in the protection service control page and sends a protection overview instruction to the client server. The client server forwards the protection overview instruction to the cloud server. The cloud server responds to the protection overview instruction and sends the abnormal behavior type, the corresponding number of requests and the abnormal behavior time to the client server based on the cleaning information. The client server sends the abnormal behavior type, the corresponding number of requests and the abnormal behavior time to the client. The client displays the protection overview page according to the abnormal behavior type, the corresponding number of requests and the abnormal behavior time.
[0200] In step 1407, the cloud server sends a dial test request to the cleaning center. If the cleaning center times out in responding to the dial test request, the cloud server sends a blocking instruction to the cleaning center to instruct the cleaning center to stop broadcasting the target network segment to the network operator.
[0201] In some embodiments, the cloud server may periodically send a dial test request to the cleaning center, which receives and responds to the dial test request. If the cleaning center times out in responding to the dial test request, it determines that the link of the requesting center is abnormal, and the cloud server sends a shielding instruction to the cleaning center. The cleaning center receives the shielding instruction and stops broadcasting the target network segment to the network operator according to the shielding instruction.
[0202] In the above-mentioned method for protecting against abnormal network behavior, the cloud server obtains the protection information corresponding to the network address of the client server, and sends the protection information and the network address to the cleaning center. The cleaning center receives the data request corresponding to the target network forwarded by the operator, and the cleaning center cleans the data request through the protection information. The protection information is configured by the client server according to business needs, so that the data request of the abnormal behavior type can be effectively cleaned in the cleaning center. The cloud server then performs a secondary cleaning on the cleaned data request through the protection information to filter out a small number of data requests of the abnormal behavior type that penetrate the cleaning center, and obtains the target data request after filtering out the data requests of the abnormal behavior type, thereby ensuring the business stability of the client server and improving the protection effect of network abnormal behavior.
[0203] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0204] Based on the same inventive concept, embodiments of the present application also provide a device for preventing abnormal network behavior, which is used to implement the aforementioned method for preventing abnormal network behavior. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more embodiments of the device for preventing abnormal network behavior provided below can be found in the aforementioned definition of the method for preventing abnormal network behavior, and will not be repeated here.
[0205] In some embodiments, as shown in FIG15 , a device for protecting against abnormal network behavior is provided, comprising: a data request receiving module 1501 , a first protection information obtaining module 1502 , a first cleaning module 1503 , and a cleaned data request sending module 1504 ; wherein,
[0206] The data request receiving module 1501 is used to receive a data request corresponding to a target network segment forwarded by a network operator, where the target network segment is the network segment corresponding to the network address of the client server;
[0207] The first protection information acquisition module 1502 is used to obtain protection information corresponding to the network address. The protection information is generated by the client server according to business needs;
[0208] A first cleaning module 1503 is configured to cleanse the data request based on the protection information to obtain a cleansed data request;
[0209] The cleaned data request sending module 1504 is used to send the cleaned data request to the cloud server to instruct the cloud server to filter the cleaned data request according to the protection information, obtain the target data request after filtering out the data request of abnormal behavior type, and send the target data request to the client server.
[0210] In some embodiments, the device for protecting against abnormal network behavior further includes:
[0211] The target network segment broadcasting module is used to receive the network address of the client server sent by the cloud server, obtain the target network segment corresponding to the network address, and broadcast the target network segment to the network operator; the network operator and the cloud server are located in the same geographical area.
[0212] In some embodiments, the device for protecting against abnormal network behavior further includes:
[0213] The first dial test module is configured to receive a dial test request sent by a cloud server; receive a blocking instruction sent by the cloud server when a response to the dial test request times out; and stop broadcasting the target network segment to the network operator based on the blocking instruction.
[0214] In some embodiments, the first protection information acquisition module 1502 is specifically used to receive protection information corresponding to the network address sent by the cloud server.
[0215] In some embodiments, the first cleaning module 1503 includes:
[0216] a candidate data request determining unit, configured to obtain quintuple information based on the data request; and determine, in the data request corresponding to the target network segment, a candidate data request corresponding to the network address based on the quintuple information;
[0217] The data cleaning unit is used to clean the candidate data request based on the protection information to obtain a cleaned data request.
[0218] In some embodiments, the protection information includes a protection list; a data cleaning unit, specifically used to obtain a source address corresponding to a candidate data request; obtain a first data request to be cleaned whose source address belongs to the protection list in the candidate data request; clean the first data request to be cleaned to obtain a cleaned data request.
[0219] In some embodiments, the protection information includes a banned transmission protocol; a data cleaning unit is specifically used to obtain a second data request to be cleaned whose transmission protocol belongs to a banned transmission protocol in the candidate data request when the traffic of the candidate data request is greater than the traffic threshold; and clean the second data request to be cleaned to obtain a cleaned data request.
[0220] In some embodiments, the protection information includes a protection list and a banned transmission protocol; a data cleaning unit is specifically used to obtain a source address corresponding to a candidate data request; obtain a first data request to be cleaned whose source address belongs to a protection list in the candidate data request; when the traffic of the candidate data request is greater than the traffic threshold, obtain a second data request to be cleaned whose transmission protocol belongs to a banned transmission protocol in the candidate data request; and clean the first data request to be cleaned and the second data request to be cleaned to obtain a cleaned data request.
[0221] In some embodiments, the protection information includes a non-protection list and a banned transmission protocol; the data cleaning unit is specifically used to obtain a second data request to be cleaned whose transmission protocol belongs to a banned transmission protocol in the candidate data request when the traffic of the candidate data request is greater than the traffic threshold; determine a third data request to be cleaned whose source address does not belong to the non-protection list in the second data request to be cleaned; clean the third data request to be cleaned to obtain a cleaned data request.
[0222] In some embodiments, as shown in FIG16 , a device for protecting against abnormal network behavior is provided, comprising: a second protection information acquisition module 1601 , a protection information and network address sending module 1602 , a second cleaning module 1603 , and a target data request sending module 1604 ; wherein,
[0223] The second protection information acquisition module 1601 is used to receive protection information corresponding to the network address determined by the client server based on business needs, where the network address is the address of the network where the client server is located;
[0224] The protection information and network address sending module 1602 is configured to send the protection information and network address to the scrubbing center, instructing the scrubbing center to receive data requests corresponding to the target network segment forwarded by the network operator, and to scrub the data requests based on the protection information to obtain a scrubbed data request, where the target network segment is the network segment corresponding to the network address.
[0225] The second cleaning module 1603 is configured to receive the cleaned data request sent by the cleaning center, and filter the cleaned data request according to the protection information to obtain the target data request after filtering out the data requests of abnormal behavior types;
[0226] The target data request sending module 1604 is used to send the target data request to the client server.
[0227] In some embodiments, the protection information includes a protection list; the second cleaning module 1603 is further used to obtain the source address corresponding to the cleaned data request; obtain a fourth data request to be cleaned whose source address belongs to the protection list in the cleaned data request; clean the fourth data request to be cleaned to obtain the target data request.
[0228] In some embodiments, the protection information and network address sending module 1602 is specifically used to send protection information and a network address to a cleaning center to instruct the cleaning center to obtain a corresponding target network segment based on the network address, broadcast the target network segment to the network operator, and receive data requests corresponding to the target network segment forwarded by the network operator; the network operator and the cloud server are located in the same geographical area.
[0229] In some embodiments, the protection device for abnormal network behavior further includes: a second dialing test module, configured to send a dialing test request to a cleaning center; and, if the cleaning center times out in responding to the dialing test request, to send a blocking instruction to the cleaning center to instruct the cleaning center to stop broadcasting the target network segment to the network operator.
[0230] In some embodiments, the apparatus for protecting against abnormal network behavior further includes: a correlation module;
[0231] The association module is used to establish an association relationship between the network address of the client server and the cloud server in response to the association request sent by the client server, where the network address is an address with protection attributes requested by the protection service possessed by the client server.
[0232] In some embodiments, the protection device for abnormal network behavior further includes: a cleaning information sending module;
[0233] A cleaning information sending module is used to receive cleaning information sent by the cleaning center after cleaning the data request; in response to the protection overview instruction sent by the client server, obtain the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the abnormal behavior time based on the cleaning information; send the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the abnormal behavior time to the client server to instruct the client server to send the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the abnormal behavior time to the client, so that the client displays the protection overview page according to the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the abnormal behavior time.
[0234] Each module in the aforementioned network abnormal behavior protection device may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor within a computer device in hardware form, or may be stored in a computer device memory in software form, so that the processor can call and execute the corresponding operations of each module.
[0235] In some embodiments, a computer device is provided, which may be a cleaning center or a cloud server, and its internal structure diagram may be shown in Figure 17. The computer device includes a processor, a memory, an input / output interface (I / O), and a communication interface. The processor, memory, and input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data requests, protection information, and network addresses. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for protecting against abnormal network behavior.
[0236] Those skilled in the art will understand that the structure shown in Figure 17 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0237] In some embodiments, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above-mentioned method for protecting against abnormal network behavior when executing the computer program.
[0238] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for protecting against abnormal network behavior is implemented.
[0239] In some embodiments, a computer program product is provided, including a computer program, which implements the above-mentioned method for protecting against abnormal network behavior when executed by a processor.
[0240] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0241] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0242] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0243] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for protecting against abnormal network behavior, wherein: Executed by a cleaning center, the method includes: Receiving a data request corresponding to a target network segment forwarded by a network operator, wherein the target network segment is a network segment corresponding to a network address of a client server; Acquire protection information corresponding to the network address, wherein the protection information is generated by the client server according to business requirements; Cleansing the data request based on the protection information to obtain a cleansed data request; and The cleaned data request is sent to the cloud server to instruct the cloud server to filter the cleaned data request according to the protection information, obtain the target data request after filtering out the data request of abnormal behavior type, and send the target data request to the customer server.
2. The method according to claim 1, wherein: The method further comprises: Receiving the network address of the client server sent by the cloud server; Obtaining the target network segment corresponding to the network address; and The target network segment is broadcasted to the network operator, where the network operator and the cloud server are located in the same geographical area.
3. The method according to claim 2, wherein: The method further comprises: Receiving a dial test request sent by the cloud server; In the case of a timeout in responding to the dial test request, receiving a blocking instruction sent by the cloud server; and Based on the blocking instruction, stop broadcasting the target network segment to the network operator.
4. The method according to any one of claims 1 to 3, wherein: The obtaining of protection information corresponding to the network address includes: Receive protection information corresponding to the network address sent by the cloud server.
5. The method according to any one of claims 1 to 4, wherein: The performing data cleansing on the data request based on the protection information to obtain a cleansed data request includes: Acquire five-tuple information based on the data request; Determine, among the data requests corresponding to the target network segment, a candidate data request corresponding to the network address according to the five-tuple information; and The candidate data request is cleansed based on the protection information to obtain a cleansed data request.
6. The method according to claim 5, wherein: The protection information includes a protection list; and the step of cleaning the candidate data request based on the protection information to obtain a cleaned data request includes: Obtaining a source address corresponding to the candidate data request; Acquire, from the candidate data requests, a first data request to be cleaned whose source address belongs to the protection list; and The first data request to be cleaned is cleaned to obtain a cleaned data request.
7. The method according to claim 5, wherein: The protection information includes a prohibited transmission protocol; and the step of cleaning the candidate data request based on the protection information to obtain a cleaned data request includes: When the flow rate of the candidate data request is greater than the flow rate threshold, obtaining a second to-be-cleaned data request whose transmission protocol is the banned transmission protocol from the candidate data request; and The second data request to be cleaned is cleaned to obtain a cleaned data request.
8. The method according to claim 5, wherein: The protection information includes a protection list and a banned transmission protocol; the step of cleaning the candidate data request based on the protection information to obtain a cleaned data request includes: Obtaining a source address corresponding to the candidate data request; Acquire, from the candidate data requests, a first data request to be cleaned whose source address belongs to the protection list; When the flow rate of the candidate data request is greater than the flow threshold, the transmission protocol is obtained in the candidate data request. Propose a second request for data to be cleaned that belongs to the banned transmission protocol; and The first data request to be cleaned and the second data request to be cleaned are cleaned to obtain cleaned data requests.
9. The method according to claim 5, wherein: The protection information includes a non-protection list and a banned transmission protocol; the step of cleaning the candidate data request based on the protection information to obtain a cleaned data request includes: When the traffic of the candidate data request is greater than the traffic threshold, obtaining a second to-be-cleaned data request whose transmission protocol is the banned transmission protocol from the candidate data request; determining, in the second data request to be cleaned, a third data request to be cleaned whose source address does not belong to the non-protection list; and The third data request to be cleaned is cleaned to obtain a cleaned data request.
10. A method for protecting against abnormal network behavior, wherein: Executed by a cloud server, the method includes: Receiving protection information corresponding to a network address determined by a client server based on business requirements, wherein the network address is an address of a network where the client server is located; Sending the protection information and the network address to a cleaning center to instruct the cleaning center to receive a data request corresponding to a target network segment forwarded by a network operator, and performing data cleaning on the data request based on the protection information to obtain a cleaned data request, wherein the target network segment is a network segment corresponding to the network address; receiving the cleaned data request sent by the cleaning center, and filtering the cleaned data request according to the protection information to obtain a target data request after filtering out data requests of abnormal behavior types; and The target data request is sent to the client server.
11. The method according to claim 10, wherein: The protection information includes a protection list; the filtering of the cleaned data request according to the protection information to obtain a target data request after filtering out data requests of abnormal behavior types includes: Obtaining a source address corresponding to the cleaned data request; Obtaining, from the cleaned data request, a fourth to-be-cleaned data request whose source address belongs to the protection list; and The fourth data request to be cleaned is cleaned to obtain a target data request.
12. The method according to claim 10 or 11, wherein: The sending the protection information and the network address to the cleaning center to instruct the cleaning center to receive a data request corresponding to the target network segment forwarded by the network operator includes: The protection information and the network address are sent to a cleaning center to instruct the cleaning center to obtain a target network segment corresponding to the network address, broadcast the target network segment to a network operator, and receive a data request corresponding to the target network segment forwarded by the network operator, wherein the network operator and the cloud server are located in the same geographical area.
13. The method according to claim 12, wherein: The method further comprises: Sending a dialing request to the cleaning center; and In the case where the cleaning center times out in responding to the dial test request, a shielding instruction is sent to the cleaning center to instruct the cleaning center to stop broadcasting the target network segment to the network operator.
14. The method according to any one of claims 10 to 13, wherein: Before receiving the protection information corresponding to the network address determined by the client server based on the business requirements, the method further includes: In response to the association request sent by the client server, an association relationship is established between the network address of the client server and the cloud server, wherein the network address is an address with protection attributes requested based on the protection service possessed by the client server.
15. The method according to any one of claims 10 to 14, wherein: The method further comprises: receiving cleaning information sent by the cleaning center after performing data cleaning on the data request; In response to the protection overview instruction sent by the client server, obtaining the abnormal behavior type, the number of requests corresponding to the abnormal behavior type and the abnormal behavior time based on the cleaning information; and Send the abnormal behavior type, the number of requests corresponding to the abnormal behavior type and the abnormal Normal behavior time is used to instruct the client server to send the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the abnormal behavior time to the client, so that the client can display the protection overview page based on the abnormal behavior type, the number of requests corresponding to the abnormal behavior type, and the abnormal behavior time.
16. A protection device for abnormal network behavior, wherein: The device comprises: A data request receiving module, used to receive a data request corresponding to a target network segment forwarded by a network operator, wherein the target network segment is a network segment corresponding to a network address of a client server; A first protection information acquisition module, used to acquire protection information corresponding to the network address, wherein the protection information is generated by the client server according to business requirements; A first cleaning module, configured to clean the data request based on the protection information to obtain a cleaned data request; and The cleaned data request sending module is used to send the cleaned data request to the cloud server to instruct the cloud server to filter the cleaned data request according to the protection information, obtain the target data request after filtering out the data request of abnormal behavior type, and send the target data request to the customer server.
17. A protection device for abnormal network behavior, wherein: The device comprises: A second protection information acquisition module is used to receive protection information corresponding to a network address determined by a client server based on business requirements, wherein the network address is an address of a network where the client server is located; A protection information and network address sending module, used to send the protection information and the network address to a cleaning center to instruct the cleaning center to receive a data request corresponding to a target network segment forwarded by a network operator, and to perform data cleaning on the data request based on the protection information to obtain a cleaned data request, wherein the target network segment is a network segment corresponding to the network address; A second cleaning module is configured to receive the cleaned data request sent by the cleaning center, and filter the cleaned data request according to the protection information to obtain a target data request after filtering out data requests of abnormal behavior types; and The target data request sending module is used to send the target data request to the client server.
18. A computer device comprising a memory and one or more processors, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processors, the one or more processors execute the steps of the method according to any one of claims 1 to 15.
19. One or more non-volatile readable storage media having computer readable instructions stored thereon, wherein when the computer readable instructions are executed by the processor, the one or more processors implement the steps of any one of the methods of claims 1 to 15.
20. A computer-readable instruction product, comprising computer-readable instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Service system access method and system based on cloud computing
CN107124423A
Safety protection method and device for cloud data
CN107864166A
Anti-large-scale DDoS attack defense system and defense method based on cloud + end device continuous linkage mode
CN109347792A
Large-scale DDoS attack detection and defense system based on cloud + end device on-demand linkage mode, and defense method
CN109450841A
Site detection method and device and storage medium
CN111600769A
