A defense method and system for DDOS attacks
Through the coordinated work of CODO gateway and CF high defense system, the use of conditional judgment and load balancing technology to distinguish normal and abnormal traffic, and only switch to the high defense system during DDOS attacks, solving the problem of high cost of defending DDOS attacks in the existing technology. Achieve efficient and economical defensive effects.
Patent Information
- Application Number
- CN202411285245.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-09-13
AI Technical Summary
When defending against DDOS attacks, a single defense method is costly and difficult to effectively deal with complex DDOS attacks. Multiple combinations of methods will increase economic and labor costs.
Adopt a defense method and system for DDOS attacks, through the coordinated work of CODO gateway and CF high defense system, use condition judgment and load balancing technology to distinguish normal and abnormal traffic, and only switch to the high defense system for defense when an attack occurs. Reduce unnecessary resource consumption and costs.
When there is no attack, only cloud servers are used for load balancing, reducing costs; when DDOS attack occurs, it will automatically switch to the CF high-defense system for defense, significantly reducing the cost of using the high-defense system and improving defense efficiency.
Smart Images

Figure CN118784380B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network security, and in particular to a defense method and system for DDOS attacks. Background Art
[0002] A DDOS (Distributed Denial of Service) attack is a common network attack that aims to overload the target system's network bandwidth, computing resources, or application resources to make it unable to work properly. The principle of a DDOS attack is to use a large amount of malicious traffic to overwhelm the gaming system, making it unable to handle legitimate network traffic, thereby causing the gaming service to be interrupted.
[0003] Conventional defenses include:
[0004] Traffic filtering: Use devices such as firewalls, intrusion detection systems (IDS), and intrusion prevention systems (IPS) to filter out malicious traffic and allow only legitimate traffic to enter the network.
[0005] Distributed defense system: Adopting a distributed defense system can disperse attack traffic to reduce the pressure on a single system or data center. This includes the use of CDN (content distribution network) and cloud protection services.
[0006] Load balancing: Use load balancing devices to distribute traffic across multiple servers to ensure that the system can handle traffic evenly and prevent overload.
[0007] Traffic Analysis: Monitor traffic in real time and perform deep analysis to identify abnormal patterns, which helps detect DDOS attacks and take action.
[0008] Traffic cleaning: Before attack traffic enters the target network, it is routed to the cleaning center for in-depth analysis and filtering to remove malicious traffic.
[0009] DDOS protection equipment and services: Use specialized DDOS protection equipment and services, such as DDOS protection hardware, cloud DDOS protection services, etc., to specifically combat DDOS attacks.
[0010] Operator collaboration: Collaborate with Internet service providers (ISPs), other organizations, and partners to jointly defend against large-scale DDOS attacks, share attack information, and coordinate responses.
[0011] Traffic limit and threshold setting: Set traffic limit and threshold to reduce abnormal traffic in the network, thereby reducing the success rate of DDOS attacks.
[0012] It should be noted that the types and complexity of DDOS attacks are constantly evolving, so defense measures also need to be constantly updated and improved. The conventional defense methods mentioned above cannot defend against a large number of DDOS attacks if only a single method is used. Combining multiple different defense methods is usually the most effective way to deal with DDOS attacks; however, multiple different combinations will incur high economic and human costs.
[0013] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present invention, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0014] The purpose of the present invention is to solve the technical problems existing in the background technology, and to this end, a defense method and system for DDOS attacks are provided.
[0015] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0016] A defense method for DDOS attacks includes the following steps:
[0017] Step S1: The global player clients perform global DNS resolution through the Internet and access the virtual source station and virtual domain name resources of the game server;
[0018] Step S2: The virtual source station of the game server obtains the client IP address and establishes a preliminary connection;
[0019] Step S3: The client sends a connection request to the virtual domain name address of the game server;
[0020] Step S4: The game server continues to forward the connection request to the CODO gateway;
[0021] Step S5: The CODO gateway performs conditional judgment on the connection request to determine whether the connection request is abnormal;
[0022] Step S6: If it is a normal connection request:
[0023] The CODO gateway forwards normal connection requests to the cloud server for load balancing;
[0024] The cloud server then forwards the load-balanced connection request to the real origin of the game server and establishes a connection with the real domain name address of the game server;
[0025] Step S7: If it is an abnormal connection request:
[0026] The CODO gateway forwards the abnormal connection request to the CF high-defense system for defense. The CF high-defense system forwards the abnormal connection request to the real source station of the game server for recording and discarding.
[0027] The following is a technical solution further defined in the defense method of the present invention. In step S5, the CODO gateway performs five conditional judgments on the connection request, including:
[0028] a. The CODO gateway monitors the client connection request traffic received by the virtual source station of the game server within M minutes, where 0<M≤5;
[0029] If the connection request traffic exceeds 3 times the normal peak traffic setting value, the connection request is considered to be a pending abnormal connection request. The normal peak traffic setting value is a parameter set by the management end, and the parameter is customized by the management end according to the periodic user traffic of the game;
[0030] b. The CODO gateway regularly dials the service port of a virtual source station in the game server;
[0031] If the service port does not return any information, it means that the service port is occupied by a connection request, and the connection request is considered to be a pending abnormal connection request;
[0032] c. The CODO gateway uses the network testing software tool to detect the client network corresponding to the connection request;
[0033] If the value returned by the network testing software tool is time out or time wait, the connection request is considered to be a pending abnormal connection request;
[0034] d. The CODO gateway performs network delay dialing test on the regional game server;
[0035] If the network delay is greater than 200ms, the connection request is considered to be a pending abnormal connection request;
[0036] e.CODO gateway detects the number of sessions for each service port of the game server virtual source station;
[0037] If the number of sessions exceeds 10 times the normal number of sessions, the connection request is considered to be a pending abnormal connection request, where the normal number of sessions is a parameter that is customized by the management end;
[0038] If any two or more of the five conditions are met, the connection request is considered to be an abnormal connection request.
[0039] The following is a technical solution further defined in the defense method of the present invention, wherein the network testing software tool is a ping network testing software tool or a telnet network testing software tool.
[0040] The following is a technical solution further defined by the defense method in the present invention. In step S7, the CODO gateway forwards the abnormal connection request to the CF high-defense system for defense, and the CF high-defense system identifies the normal client IP address and the abnormal client IP address in the abnormal connection request;
[0041] The CF high-defense system forwards the abnormal client IP address to the real source station of the game server for recording and discarding, and refuses to establish a connection with the real domain name address of the game server;
[0042] The CF high-defense system forwards the normal client IP address to the virtual source station of the game server for automatic reconnection.
[0043] The following is a technical solution further defined by the defense method in the present invention. After a normal connection request establishes a connection with the real domain name address of the game server, the CODO gateway performs a conditional judgment on the established connection to determine whether the established connection is abnormal.
[0044] The following is a technical solution further defined in the defense method of the present invention. The CODO gateway performs five conditional judgments on the established connection, including:
[0045] a. The CODO gateway monitors the client connection traffic established by the real source station of the game server within M minutes, where 0<M≤5;
[0046] If the established connection traffic exceeds 3 times the normal peak traffic setting value, the established connection is considered to be a pending abnormal connection. The normal peak traffic setting value is a parameter set by the management end, and the parameter is customized by the management end according to the periodic user traffic of the game;
[0047] b.CODO gateway regularly dials the service port of a real source station in the game server;
[0048] If the service port does not return any information, it means that the service port is occupied by an established connection, and the established connection is considered to be a pending abnormal connection;
[0049] c. The CODO gateway uses the network testing software tool to detect the client network corresponding to the established connection;
[0050] If the value returned by the network test software tool is time out or time wait, the established connection is considered to be a pending abnormal connection;
[0051] d. The CODO gateway performs network delay dialing test on the regional game server;
[0052] If the network delay is greater than 200ms, the established connection is considered to be a pending abnormal connection;
[0053] e.CODO gateway detects the number of sessions on each service port of the real source station of the game server;
[0054] If the number of sessions exceeds 10 times the normal number of sessions, the established connection is considered to be a pending abnormal connection, where the normal number of sessions is a parameter that is customized by the management end;
[0055] If any two or more of the five conditions are met, the established connection is considered an abnormal connection;
[0056] The CODO gateway forwards the abnormal connection to the CF high-defense system for defense. The CF high-defense system identifies the normal client IP address and the abnormal client IP address in the abnormal connection;
[0057] The CF high-defense system forwards the abnormal client IP address to the real source station of the game server for recording and discarding, and disconnects the connection with the real domain name address of the game server;
[0058] The CF high-defense system forwards the normal client IP address to the real source station of the game server and maintains the connection with the real domain name address of the game server.
[0059] The following is a technical solution further defined by the defense method in the present invention, wherein the cloud server performs load balancing processing on normal connection requests, including:
[0060] Set the virtual service address;
[0061] Virtualize the game server resources located in the same area into a game service virtual pool, where different areas correspond to different game service virtual pools, and the virtual service addresses correspond to the game service virtual pools one by one;
[0062] Distribute connection requests to the game service virtual pool to achieve load balancing;
[0063] Subsequently, the cloud server forwards the connection request of the game service virtual pool to the real source station of the corresponding regional game server.
[0064] A defense system for DDOS attacks, used to implement the above defense method, including a client information acquisition module, a server virtual resource setting module, a forwarding module, a CODO gateway, a CF high-defense system and a cloud server;
[0065] Client information acquisition module, used to obtain the client IP address;
[0066] Server virtual resource setting module, used to set the virtual source station and virtual domain name resources of the game server;
[0067] A forwarding module is used to forward the game server's connection request and the established connection to the CODO gateway, forward the CODO gateway's normal connection request to the cloud server, forward the cloud server's connection request to the game server, forward the CODO gateway's abnormal connection request and abnormal connection to the CF high-defense system, and forward the CF high-defense system's abnormal connection request and abnormal connection to the game server;
[0068] The CODO gateway is used to perform five conditional judgments on connection requests and established connections to determine whether the connection request or established connection is abnormal;
[0069] CF high-defense system, used to defend against abnormal connection requests and abnormal connections, and identify normal client IP addresses and abnormal client IP addresses;
[0070] Cloud servers are used to load balance normal connection requests.
[0071] The following is a technical solution further defined by the defense system in the present invention, wherein the CODO gateway includes a condition judgment module, a source station traffic monitoring module, a service port dialing test module, a client network detection module, a server network delay dialing test module, and a service port session number detection module;
[0072] The condition judgment module performs five condition judgments based on the data detected by the source station traffic monitoring module, the service port dialing test module, the client network detection module, the server network delay dialing test module, and the service port session number detection module, thereby issuing instructions to control the forwarding object of the forwarding module;
[0073] The source station traffic monitoring module is used to monitor the connection request traffic of the virtual source station of the game server and the connection traffic of the real source station;
[0074] The service port dialing test module is used to perform regular dialing tests on the service ports of a virtual source station and a real source station in the game server;
[0075] The client network detection module is used to detect the client network using a network testing software tool;
[0076] Server network delay dialing test module, used to perform network delay dialing test on regional game servers;
[0077] The service port session number detection module is used to detect the session number of each service port of the game server virtual source station and the real source station.
[0078] The following is a technical solution further defined by the defense system in the present invention, wherein the cloud server includes a virtual service address setting module, a virtual pool setting module, and a distribution module;
[0079] A virtual service address setting module, used to set the virtual service address;
[0080] A virtual pool setting module, based on the set virtual service address, virtualizes the game server resources located in the same area into a game service virtual pool;
[0081] The distribution module is used to distribute the connection requests to the set game service virtual pool.
[0082] Compared with the prior art, the present invention has the following technical effects:
[0083] The present invention changes the conventional game server traffic defense strategy. When there is no DDOS attack, only the cloud server's load balancing is used to disperse the traffic, without investing a lot of manpower and material costs. Only when a DDOS attack comes, it can automatically switch to the CF high-defense system, which greatly reduces the cost of using the CF high-defense system.
[0084] The present invention is further described below in conjunction with the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0086] Figure 1 is a flowchart of the method of the present invention;
[0087] Figure 2 It is a flowchart of load balancing processing performed by the present invention;
[0088] Figure 3 It is a flowchart of the switching process between the normal mode and the defense mode in the present invention;
[0089] Figure 4 It is a flowchart of the defense process when the present invention is attacked by DDOS;
[0090] Figure 5 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0091] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below.
[0092] like Figure 1-5 As shown, this embodiment provides a defense method for DDOS attacks and a defense system for DDOS attacks.
[0093] A normal player client has a normal IP address. After connecting to the game server, the response message sent by the game server can reach the player client normally, therefore, it will not affect the normal operation of the game server.
[0094] The attacker who launches a DDOS attack has a large number of fake IP addresses. Once connected to the game server, the response message sent by the game server will never be sent to the destination. The game server consumes resources while waiting to close the connection. If there are thousands of such connections, the host resources will be exhausted, thereby achieving the purpose of attacking the game server.
[0095] like Figure 1 As shown in the figure, a defense method against DDOS attacks mainly includes the following steps:
[0096] Step S1: Global player clients perform global DNS resolution through the Internet to access the virtual source station and virtual domain name resources of the game server.
[0097] Step S2: The virtual source station of the game server obtains the client IP address and establishes a preliminary connection.
[0098] Step S3: The client sends a connection request to the virtual domain name address of the game server.
[0099] For example, when the attacker launches a DDOS attack, a large number of its forged IP addresses will send connection requests to the virtual domain name address of the game server at a certain moment.
[0100] Step S4: The game server continues to forward the connection request to the CODO gateway.
[0101] Step S5: The CODO gateway performs a conditional judgment on the connection request to determine whether the connection request is abnormal.
[0102] Specifically: CODO Gateway performs five conditional judgments on the connection request, including:
[0103] a.CODO gateway monitors the connection request traffic of the client received by the virtual source station of the game server within 5 minutes;
[0104] If the connection request traffic exceeds 3 times the normal peak traffic setting value, the connection request is considered to be a pending abnormal connection request. The normal peak traffic setting value is a parameter set by the administrator, and the parameter is customized by the administrator based on the periodic user traffic of the game.
[0105] b. The CODO gateway regularly dials the service port of a virtual source station in the game server;
[0106] If the service port is active, it will reply to the monitoring dialing software; if the service port does not return any information, it means that the service port is occupied by a connection request, and the connection request is considered to be a pending abnormal connection request.
[0107] c. CODO Gateway uses ping / telnet network testing software tools to detect the client network corresponding to the connection request;
[0108] By using the values returned by network testing software tools such as ping / telnet, if ping+CLB's VIP address displays a message such as "Reply from xxx.xxx: Byte=xx Time=xxms TTL=xxx", it means the network is smooth; if the value returned by the network testing software tool is time out or time wait, it means the network is abnormal, and the connection request is considered to be a pending abnormal connection request.
[0109] d. The CODO gateway performs network delay dialing test on the regional game server;
[0110] If the network delay is greater than 200ms, the connection request is considered to be a pending abnormal connection request.
[0111] That is, if a DDOS attack occurs, no matter when (whether the connection is not established or established), it is possible to cause network delays on the game server.
[0112] e.CODO gateway detects the number of sessions for each service port of the game server virtual source station;
[0113] If the number of sessions exceeds 10 times the normal number of sessions, the connection request is considered to be a pending abnormal connection request, where the normal number of sessions is a parameter that is customized by the management end.
[0114] If any two or more of the five conditions are met, the connection request is considered to be an abnormal connection request.
[0115] Step S6: If it is a normal connection request:
[0116] The CODO gateway forwards normal connection requests to the cloud server for load balancing, including:
[0117] 1) Set the virtual service address.
[0118] 2) Virtualize the game server resources in the same region into a game service virtual pool, where different regions correspond to different game service virtual pools, and the virtual service address corresponds to the game service virtual pool one by one. It should be noted that in this embodiment, the region in the game server in the same region refers to the region between countries, such as China, Vietnam, South Korea, etc.
[0119] 3) Distribute connection requests (including a large number of client IP addresses) to multiple game service virtual pools.
[0120] 4) The cloud server forwards the connection request of the game service virtual pool to the real source station of the corresponding regional game server and establishes a connection with the real domain name address of the game server, such as Figure 2 shown.
[0121] Step S7: If it is an abnormal connection request:
[0122] The CODO gateway forwards the abnormal connection request to the CF high-defense system for defense. The CF high-defense system identifies the normal client IP address and the abnormal client IP address in the abnormal connection request.
[0123] It should be noted that the CF (cloudflre) high-defense system is an existing technology. Cloudflre is a security defense product that ranks among the top in the world for preventing DDOS attacks, but its use cost is very high. Therefore, the present invention makes a judgment on abnormal traffic in advance, so that only when a DDOS attack occurs, it switches to the CF (cloudflre) high-defense system for precise defense. There is no need for the CF (cloudflre) high-defense system to defend at all times, which greatly reduces the use cost of the CF (cloudflre) high-defense system. Among them, the CF (cloudflre) high-defense system identifies the normal client IP address and the abnormal client IP address in the abnormal connection request, which is the inherent characteristic of the system.
[0124] The CF high-defense system forwards the abnormal client IP address to the real source station of the game server for recording and discarding, and refuses to establish a connection with the real domain name address of the game server.
[0125] The CF high-defense system forwards the normal client IP address to the virtual source station of the game server for automatic reconnection.
[0126] Step S8: Since some DDOS attacks are normal when no connection is established and the attack is launched only after the connection is established, the CODO gateway always monitors the game server: after a normal connection request establishes a connection with the real domain name address of the game server, the CODO gateway performs a conditional judgment on the established connection to determine whether the established connection is abnormal.
[0127] Specifically: CODO Gateway performs five conditional checks on the established connection, including:
[0128] a.CODO gateway monitors the client connection traffic established within 5 minutes by the real source station of the game server;
[0129] If the established connection traffic exceeds 3 times the normal peak traffic setting value, the established connection is considered to be a pending abnormal connection. The normal peak traffic setting value is a parameter set by the management end, and the parameter is customized by the management end based on the periodic user traffic of the game.
[0130] b. The CODO gateway regularly dials the service port of a real source station in the game server;
[0131] If the service port is active, it will reply to the monitoring dialing software; if the service port does not return any information, it means that the service port is occupied by an established connection, and the established connection is considered to be a pending abnormal connection.
[0132] c. The CODO gateway uses the network testing software tool to detect the client network corresponding to the established connection;
[0133] By using the values returned by network testing software tools such as ping / telnet, if ping+CLB's VIP address displays a message such as "Reply from xxx.xxx: Byte=xx Time=xxms TTL=xxx", it means the network is unobstructed; if the value returned by the network testing software tool is time out or time wait, it means the network is abnormal, and the established connection is considered to be a pending abnormal connection.
[0134] d. The CODO gateway performs network delay dialing test on the regional game server;
[0135] If the network delay is greater than 200ms, the established connection is considered to be a pending abnormal connection.
[0136] That is, if a DDOS attack occurs, no matter when (whether the connection is not established or established), it is possible to cause network delays on the game server.
[0137] e.CODO gateway detects the number of sessions on each service port of the real source station of the game server;
[0138] If the number of sessions exceeds 10 times the normal number of sessions, the established connection is considered to be a pending abnormal connection, where the normal number of sessions is a parameter that is custom set by the management end.
[0139] If any two or more of the five conditions are met, the established connection is considered an abnormal connection.
[0140] The CODO gateway forwards the abnormal connection to the CF high-defense system for defense. The CF high-defense system identifies the normal client IP address and the abnormal client IP address in the abnormal connection.
[0141] The CF high-defense system forwards the abnormal client IP address to the real source station of the game server for recording and discarding, and disconnects the connection with the real domain name address of the game server.
[0142] The CF high-defense system forwards the normal client IP address to the real source station of the game server and maintains the connection with the real domain name address of the game server.
[0143] Based on the above method, the present invention has two working modes, namely normal mode and defense mode, and the two working modes can be quickly switched, such as Figure 3 shown.
[0144] Normal Mode:
[0145] After DNS resolution, the global player client (normal traffic) makes a preliminary connection with the virtual source station and virtual domain name resources of the game server, and is forwarded to the CODO gateway for conditional judgment. If it is judged as normal traffic (normal client IP address), it is forwarded to the cloud server for load balancing, and finally forwarded to the real source station of the game server to connect with the real domain name address of the game server. At the same time, the CF (cloudflre) high-defense system is used as a backup and does not work, so there is no need to pay for the use of the CF (cloudflre) high-defense system.
[0146] Defense Mode:
[0147] At a certain moment in normal mode, the malicious attack end forges a large number of IP addresses (abnormal traffic, also known as DDOS attack traffic), makes a preliminary connection with the virtual source station and virtual domain name resources of the game server, and forwards it to the CODO gateway for conditional judgment. If it is judged as abnormal traffic, it will directly and quickly switch to the CF (cloudflre) high-defense system. The CF (cloudflre) high-defense system will accurately defend against abnormal traffic. For connection requests that have not established a connection, the CF (cloudflre) high-defense system will forward the abnormal client IP address to the real source station of the game server for recording and discarding, and refuse to establish a connection with the real domain name address of the game server. It will forward the normal client IP address to the virtual source station of the game server for automatic reconnection, such as Figure 4 For established connections, the CF (cloudflre) high-defense system forwards the abnormal client IP address to the real source station of the game server for recording and discarding, disconnects the connection with the real domain name address of the game server, forwards the normal client IP address to the real source station of the game server, and maintains the connection with the real domain name address of the game server.
[0148] It should be noted that the CODO gateway always monitors the traffic of the game server, whether it is a connection request that has not been established or an established connection. Once an attack occurs, it will quickly switch to the CF (cloudflre) high-defense system.
[0149] like Figure 5 As shown, a defense system for DDOS attacks is used to implement the above-mentioned defense method, including a client information acquisition module, a server virtual resource setting module, a forwarding module, a CODO gateway, a CF high-defense system and a cloud server.
[0150] The client information acquisition module is used to obtain the client IP address.
[0151] The server virtual resource setting module is used to set the virtual source station and virtual domain name resources of the game server.
[0152] The forwarding module is used to forward the game server's connection request and the established connection to the CODO gateway, forward the CODO gateway's normal connection request to the cloud server, forward the cloud server's connection request to the game server, forward the CODO gateway's abnormal connection request and abnormal connection to the CF high-defense system, and forward the CF high-defense system's abnormal connection request and abnormal connection to the game server.
[0153] The CODO gateway is used to perform five conditional judgments on connection requests and established connections to determine whether the connection request or established connection is abnormal.
[0154] CF high-defense system is used to defend against abnormal connection requests and abnormal connections, and identify normal client IP addresses and abnormal client IP addresses.
[0155] Cloud servers are used to load balance normal connection requests.
[0156] The CODO gateway includes a condition judgment module, a source station traffic monitoring module, a service port dialing test module, a client network detection module, a server network delay dialing test module, and a service port session number detection module.
[0157] The conditional judgment module performs five conditional judgments based on the data detected by the five modules, namely the source station traffic monitoring module, the service port dialing test module, the client network detection module, the server network delay dialing test module and the service port session number detection module, and issues instructions to control the forwarding object of the forwarding module.
[0158] The source station traffic monitoring module is used to monitor the connection request traffic of the virtual source station of the game server and the connection traffic of the real source station.
[0159] The service port dialing test module is used to perform regular dialing tests on the service ports of a virtual source station and a real source station in the game server.
[0160] The client network detection module is used to detect the client network using a network testing software tool.
[0161] The server network delay dialing test module is used to perform network delay dialing test on regional game servers.
[0162] The service port session number detection module is used to detect the session number of each service port of the game server virtual source station and the real source station.
[0163] The cloud server includes a virtual service address setting module, a virtual pool setting module, and a distribution module.
[0164] The virtual service address setting module is used to set the virtual service address.
[0165] The virtual pool setting module virtualizes the game server resources located in the same area into a game service virtual pool based on the set virtual service address.
[0166] The distribution module is used to distribute the connection requests to the set game service virtual pool.
[0167] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the above disclosed methods and technical contents without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, all equivalent changes made according to the shape, structure and principle of the present invention without departing from the content of the technical solution of the present invention should be included in the protection scope of the present invention.
Claims
1. A defense method against DDOS attacks. It is characterized in that The following steps are involved: Step S1: The global player clients perform global DNS resolution through the Internet and access the virtual source station and virtual domain name resources of the game server; Step S2: The virtual source station of the game server obtains the client IP address and establishes a preliminary connection; Step S3: The client sends a connection request to the virtual domain name address of the game server; Step S4: The game server continues to forward the connection request to the CODO gateway; Step S5: The CODO gateway performs conditional judgment on the connection request to determine whether the connection request is abnormal; Step S6: If it is a normal connection request: The CODO gateway forwards normal connection requests to the cloud server for load balancing; Subsequently, the cloud server forwards the load-balanced connection request to the real origin of the game server and establishes a connection with the real domain name address of the game server; Step S7: If it is an abnormal connection request: The CODO gateway forwards the abnormal connection request to the CF high-defense system for defense. The CF high-defense system forwards the abnormal connection request to the real source station of the game server for recording and discarding.
2. A DDOS attack defense method as claimed in claim 1, It is characterized in that In step S5, the CODO gateway performs five conditional checks on the connection request, including: a. The CODO gateway monitors the client connection request traffic received by the virtual source station of the game server within M minutes, where 0<M≤5; If the connection request traffic exceeds 3 times the normal peak traffic setting value, the connection request is considered to be a pending abnormal connection request. The normal peak traffic setting value is a parameter set by the management end, and the parameter is customized by the management end according to the periodic user traffic of the game; b. The CODO gateway regularly dials the service port of a virtual source station in the game server; If the service port does not return any information, it means that the service port is occupied by a connection request, and the connection request is considered to be a pending abnormal connection request; c. The CODO gateway uses the network testing software tool to detect the client network corresponding to the connection request; If the value returned by the network testing software tool is time out or time wait, the connection request is considered to be a pending abnormal connection request; d. The CODO gateway performs network delay dialing test on the regional game server; If the network delay is greater than 200ms, the connection request is considered to be a pending abnormal connection request; e.CODO gateway detects the number of sessions for each service port of the game server virtual source station; If the number of sessions exceeds 10 times the normal number of sessions, the connection request is considered to be a pending abnormal connection request, where the normal number of sessions is a parameter that is customized by the management end; If any two or more of the five conditions are met, the connection request is considered to be an abnormal connection request.
3. A method for defending against DDOS attacks as claimed in claim 2, It is characterized in that The network testing software tool is a ping network testing software tool or a telnet network testing software tool.
4. A method for defending against DDOS attacks as claimed in claim 1, It is characterized in that In step S7, the CODO gateway forwards the abnormal connection request to the CF high-defense system for defense, and the CF high-defense system identifies the normal client IP address and the abnormal client IP address in the abnormal connection request; The CF high-defense system forwards the abnormal client IP address to the real source station of the game server for recording and discarding, and refuses to establish a connection with the real domain name address of the game server; The CF high-defense system forwards the normal client IP address to the virtual source station of the game server for automatic reconnection.
5. A method for defending against DDOS attacks as claimed in claim 1, It is characterized in that After a normal connection request establishes a connection with the real domain name address of the game server, the CODO gateway performs a conditional judgment on the established connection to determine whether the established connection is abnormal.
6. A method for defending against DDOS attacks as claimed in claim 5, It is characterized in that The CODO gateway performs five conditional checks on the established connection, including: a. The CODO gateway monitors the client connection traffic established by the real source station of the game server within M minutes, where 0<M≤5; If the established connection traffic exceeds 3 times the normal peak traffic setting value, the established connection is considered to be a pending abnormal connection. The normal peak traffic setting value is a parameter set by the management end, and the parameter is customized by the management end according to the periodic user traffic of the game; b. The CODO gateway regularly dials the service port of a real source station in the game server; If the service port does not return any information, it means that the service port is occupied by an established connection, and the established connection is considered to be a pending abnormal connection; c. The CODO gateway uses the network testing software tool to detect the client network corresponding to the established connection; If the value returned by the network test software tool is time out or time wait, the established connection is considered to be a pending abnormal connection; d. The CODO gateway performs network delay dialing test on the regional game server; If the network delay is greater than 200ms, the established connection is considered to be a pending abnormal connection; e.CODO gateway detects the number of sessions on each service port of the real source station of the game server; If the number of sessions exceeds 10 times the normal number of sessions, the established connection is considered to be a pending abnormal connection, where the normal number of sessions is a parameter that is customized by the management end; If any two or more of the five conditions are met, the established connection is considered an abnormal connection; The CODO gateway forwards the abnormal connection to the CF high-defense system for defense. The CF high-defense system identifies the normal client IP address and the abnormal client IP address in the abnormal connection; The CF high-defense system forwards the abnormal client IP address to the real source station of the game server for recording and discarding, and disconnects the connection with the real domain name address of the game server; The CF high-defense system forwards the normal client IP address to the real source station of the game server and maintains the connection with the real domain name address of the game server.
7. A method for defending against DDOS attacks as claimed in claim 1, It is characterized in that The cloud server performs load balancing on normal connection requests, including: Set the virtual service address; Virtualize the game server resources located in the same area into a game service virtual pool, where different areas correspond to different game service virtual pools, and the virtual service addresses correspond to the game service virtual pools one by one; Distribute connection requests to the game service virtual pool to achieve load balancing; Subsequently, the cloud server forwards the connection request of the game service virtual pool to the real source station of the corresponding regional game server.
8. A defense system for DDOS attacks, used to implement the defense method described in any one of claims 1 to 7, It is characterized in that It includes client information acquisition module, server virtual resource setting module, forwarding module, CODO gateway, CF high-defense system and cloud server; Client information acquisition module, used to obtain the client IP address; Server virtual resource setting module, used to set the virtual source station and virtual domain name resources of the game server; A forwarding module is used to forward the game server's connection request and the established connection to the CODO gateway, forward the CODO gateway's normal connection request to the cloud server, forward the cloud server's connection request to the game server, forward the CODO gateway's abnormal connection request and abnormal connection to the CF high-defense system, and forward the CF high-defense system's abnormal connection request and abnormal connection to the game server; The CODO gateway is used to perform five conditional judgments on the connection request and the established connection to determine whether the connection request or the established connection is abnormal; CF high-defense system, used to defend against abnormal connection requests and abnormal connections, and identify normal client IP addresses and abnormal client IP addresses; Cloud servers are used to load balance normal connection requests.
9. A DDOS attack defense system as claimed in claim 8, It is characterized in that The CODO gateway includes a condition judgment module, a source station traffic monitoring module, a service port dialing test module, a client network detection module, a server network delay dialing test module, and a service port session number detection module; The condition judgment module performs five condition judgments based on the data detected by the source station traffic monitoring module, the service port dialing test module, the client network detection module, the server network delay dialing test module, and the service port session number detection module, thereby issuing instructions to control the forwarding object of the forwarding module; The source station traffic monitoring module is used to monitor the connection request traffic of the virtual source station of the game server and the connection traffic of the real source station; The service port dialing test module is used to perform regular dialing tests on the service ports of a virtual source station and a real source station in the game server; The client network detection module is used to detect the client network using a network testing software tool; Server network delay dialing test module, used to perform network delay dialing test on regional game servers; The service port session number detection module is used to detect the session number of each service port of the game server virtual source station and the real source station.
10. A DDOS attack defense system as claimed in claim 8, It is characterized in that The cloud server includes a virtual service address setting module, a virtual pool setting module, and a distribution module; A virtual service address setting module, used to set the virtual service address; A virtual pool setting module, based on the set virtual service address, virtualizes the game server resources located in the same area into a game service virtual pool; The distribution module is used to distribute the connection requests to the set game service virtual pool.
