Introduction to Protocol layer DDoS attack
Published: 2024-01-18 12:26:55

Greetings, readers! 👋😍 My name is Nagaraj B Hittalamani, and I work as a Junior Software Engineer at Luxoft India. My journey with Luxoft has been enriched by diverse opportunities to contribute to numerous projects. In this article, we embark on an exploration of the protocol layer DDoS attack, beginning with a concise yet comprehensive introduction and subsequently delving into the detail of this subject. Your presence and engagement in this discussion are truly appreciated. Let's dive in!
**Protocol DDoS Attacks**
Unlike software-layer allotted denial of carrier (DDoS) attacks and volumetric DDoS assaults, protocol DDoS attacks depend upon shortcoming in net communications conventions. Since numerous of these conventions are in global utilize, changing how they work is complicated and noticeably slight to roll out. Besides, for numerous conventions, their feature complexity implies that certainly while they're reengineered to settle present blemishes, contemporary shortcomings are regularly presented permitting for contemporary varieties of convention assaults and prepare assaults.
Instead of totally utilizing sheer volume, convention DDoS assaults mishandle conventions to overpower a specific asset, by and big a server however now after which firewalls or stack balancers.

**Types of Protocol DDoS Attacks**

**IP Fragmentation attack**
All packets adjusting to Internet Protocol model 4 include headers that ought to indicate inside the occasion that the transport convention applied for that package deal is TCP, ICMP, and so on. Be that as it is able to, assailants can set the header to a invalid esteem, and with out specific informational to eliminate those parcels, the server will devour property endeavoring to determine how to carry the ones packets.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l8ssqdhe7x37n9taswue.png)



**TCP flood attacks**
The Transmission Control Convention (TCP) directs how unique gadgets talk thru a organize. Different TCP surge assaults mishandle the essential TCP convention to overpower property thru spoofing or distorted packets.
To get it the specific assaults, it's far supportive to get it how TCP works. The Transmission Control Protocol requires three communication arrangements to set up a connection:

**SYN:** The asking gadget sends a synchronized arrangement number in a parcel to a server or different intention device.
**SYN-ACK:** The server reacts to the SYN package with a reaction comprising of the synchronized grouping quantity additionally a confirmation variety (ACK).
**ACK:** The asking gadget sends a response affirmation quantity particular ACK number one back to the server.
Transmission is completed via a 4-component stop arrangement comprising of:

**FIN:** The asking system sends a session stop ask to the server.
**ACK:** The server reacts with an ACK response to the asking system, and the asking machine will hold as much as get the Blade packet.
**FIN:** The server reacts with a FIN parcel to the asking tool.
**ACK:** The asking machine returns a ultimate ACK reaction to the server, and the session is closed.
When servers get an startling TCP parcel, the server will ship a RST (reset) parcel back to reset the communication.

**SYN Flood:** The aggressor sends numerous SYN ask bundles either from a spoofed IP cope with or from a server set up to disregard responses. The casualty server reacts with SYN-ACK bundles and holds open the conversation transmission ability conserving up for the ACK response.
**SYN-ACK Flood:** Aggressors ship a expansive range of spoofed SYN-ACK reactions to the casualty server. The focused on server will tie up belongings endeavoring to coordinate the reactions to non-existent SYN requests.
**ACK Flood:** Aggressors ship a big number of spoofed ACK reactions to a server, that can tie up assets endeavoring to coordinate the ACK reaction with non-existent SYN-ACK bundles. The TCP Thrust paintings can too be applied for this type of assault.
ACK Fragmentation Flood: A form of the ACK Surge assault, this approach employments divided parcels of the finest measure of one,500 bytes to manhandle the most intense IP parcel length of 65,535 bytes.
**RST/FIN Flood:** Attackers make use of spoofed RST or Blade bundles to surge servers and consume resources with endeavors to coordinate the bundles to non-existent open TCP periods.
Multiple ACK Spoofed Session Flood: In this variety assailants ship numerous ACK packets taken after by using RST or Blade parcels to extra thoroughly mimic actual TCP interest and trick guards. Of path, the bundles are spoofed, and the server will eat its assets attempting to coordinate the fake parcels with non-existent open TCP sessions.
**Multiple SYN-ACK Spoofed Session Flood:** This variety employments several SYN and ACK parcels moreover taken after by using RST or Blade parcels. As with the Different ACK Spoofed Session Surge, the spoofed parcels undertaking to mimic genuine TCP interest and squander server belongings with endeavors to coordinate fake parcels to authentic visitors.
**Synonymous IP Attack:** To execute this strategy, assailants parody SYN parcels that make use of the casualty server’s IP address for both the supply and aim IP cope with of the packet. 
**Session reply attack:**
Attackers do not need to be use spoofed IP addresses or spoofed bundles to conduct a DDoS assault. A session assault employments a number of bots to fulfill or exceed the supply IP run and starts real TCP classes with the goal server. The proper blue TCP consultation from genuine IP addresses dodges DDoS detection, but the attack at that factor delays ACK parcels to bite up switch speed and dissipate belongings to maintain the purge classes.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tk206c1wqi7xcoeeeocz.png)



**Slowloris**
Similar to the consultation attack, the Slowloris assault endeavors to eat server property with purge communication. For this assault, the assailants send halfway HTTP demands to an internet server to hold open as numerous classes as practicable for as long as possible. These attacks make use of fantastically small transfer velocity and may be difficult to discover.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aofa8jnivkacs3u57jny.png)