A Distributed Denial of Service (DDoS) attack is a malicious attempt to disrupt the normal traffic of a targeted server, service, or network by overwhelming the target or its surrounding infrastructure with a flood of Internet traffic.
Unlike standard hacking attempts that seek to steal data, DDoS attacks aim to make your website, API, or game server completely unavailable to legitimate users.
In this guide, we explore how DDoS attacks work, common attack vectors, and how network scrubbing centers protect your RivinCloud server infrastructure.
1. How a DDoS Attack Works
DDoS attacks leverage networks of infected, compromised computers, IoT devices, or servers known as a Botnet. A single command from an attacker instructs thousands of botnet nodes to flood a target IP address simultaneously.
Attacker ──► Command & Control ──► Botnet (10,000+ Devices)
│
┌───────────────────────┼───────────────────────┐
▼ ▼ ▼
[ UDP Flood ] [ SYN Flood ] [ HTTP L7 Flood ]
│ │ │
└───────────────────────┼───────────────────────┘
│
▼
[ Target Server / Router Overwhelmed ]
2. The 3 Main DDoS Attack Categories
1. Volumetric Attacks (Layer 3/4)
- Goal: Saturate the physical network bandwidth of the server host.
- Vectors: UDP Floods, DNS Amplification, NTP Amplification.
- Example: An attacker sends 100 Gbps of junk UDP traffic to a server with a 1 Gbps network card, choking legitimate traffic completely.
2. Protocol / Infrastructure Attacks (Layer 3/4)
- Goal: Exhaust physical state tables on firewalls, routers, or load balancers.
- Vectors: SYN Floods, Ping of Death, ACK Floods.
- Example: In a SYN Flood, thousands of spoofed TCP connection requests fill the target's connection state tables (
half-open connections), preventing new real TCP connections.
3. Application Layer Attacks (Layer 7)
- Goal: Exhaust server CPU and RAM by targeting dynamic web application endpoints.
- Vectors: HTTP GET/POST Floods, Slowloris, WordPress XML-RPC abuse.
- Example: Sending 50,000 complex database search queries per second to a web application, exhausting server CPU cores.
3. How DDoS Mitigation (Scrubbing Centers) Works
To protect servers against massive volumetric attacks, hosting providers use Network Scrubbing Centers:
Malicious Traffic + Real Visitors ──► [ Anycast Edge Scrubbing Center ]
│
┌───────────┴───────────┐
▼ ▼
Junk Traffic Dropped Clean Traffic Passed
│
▼
[ RivinCloud Target Server ]
- Traffic Diversion: Network traffic is routed through Anycast BGP scrubbing centers before reaching the destination server.
- Behavioral Filtering: Scrubbing hardware analyzes packet headers, payload patterns, and connection rates to filter out junk packets.
- Clean Traffic Delivery: Filtered "clean" traffic is passed to the destination server seamlessly.
Command of the Day: ss -s
The ss -s command displays socket statistics, allowing server administrators to detect connection floods locally.
Syntax
ss -s
Practical Example
ss -s
Sample Output Under a SYN Flood
Total: 10450
TCP: 10200 (estab 20, closed 10100, orphaned 0, timewait 0)
(Notice thousands of unopened/half-open connections indicating an active flood).
Common Mistakes
- Believing local UFW firewalls can stop 50 Gbps volumetric attacks: Host firewalls filter packets after they reach your network card. A 50 Gbps flood will saturate a 1 Gbps NIC long before UFW evaluates the rule! Volumetric mitigation requires upstream scrubbing.
- Exposing backend origin IP addresses behind Cloudflare: If an attacker discovers your server's direct IPv4 address, they can bypass CDN proxies and attack your server directly.
Troubleshooting
- Diagnosing HTTP Layer 7 floods: Check Nginx access logs for unusual request rates from individual IP blocks:
sudo tail -f /var/log/nginx/access.log
Best Practices
- Use CDN services like Cloudflare to proxy web applications.
- Protect origin server IP addresses and rely on RivinCloud's upstream network mitigation.
Frequently Asked Questions
Can any DDoS protection guarantee 100% immunity?
No security service can promise absolute immunity against infinitely large or novel zero-day attack vectors. However, automated scrubbing centers mitigate over 99.9% of common internet attack traffic.
Conclusion
DDoS mitigation relies on upstream network scrubbing and layer 7 application filtering. Keep your applications resilient on RivinCloud VPS!