AFP (Aura Farming Protocol)


Introduction:
Hello Everyone! Today, we will cover what exactly AFP (Aura Farming Protocol) is. Don’t worry, it’s not a functional protocol; this is just a hook. 🙂
Btw, what is a protocol in the first place? So basically, it is a set of rules that ensures everything works properly over the internet.
So, before proceeding, here is an overview of what we will cover today.
What is AFP?
Uses
Real-World Examples
Common Issues & Solutions
AFP
Essentially, we are discussing TCP (Transmission Control Protocol). What is it? It is a simple rule that ensures two devices (client-server) are connected properly with each other. But we are not here just to know the definition. We will dive deeper. Let’s understand how this connection is established. I am talking about the 3-Way Handshake.
3-Way Handshake
3-Way Handshake is a process that uses TCP to connect 2 devices (client-server). Here client could be your phone, computer, or your browser, which is sending the connection request.
What is a server?
Simply, it is a machine. Let’s say you want to visit facebook.com. Think about it, Facebook is nothing but just some lines of code? Now, where do you think these codes will go? They are uploaded on a machine that is ON 24/7 so that you can access them anytime.
So we are clear with the client and server. Now we want to establish a connection between them. We already know that the 3-Way Handshake is a process that is responsible for establishing this connection. So, how does it work?
Step-by-step explanation:
Your device (client) will send a request to the server to connect. It will say, “Hey, I want to connect“. This request is called “SYN (Synchronization)“.
The server will receive the SYN request, and it will acknowledge it. Which means it will say “Hi, I got your connection request“. And it will also send another SYN request, which means “Hey, let’s connect“. This is called SYN-ACK. Yes, fancy terms!
Lastly, the client will also acknowledge the SYN request coming from the server. In short, ACK.
And BOOM! The connection is established. In short, the whole process goes like this:
SYN
SYN-ACK
ACK
Now you know it! And you are not scared of it anymore.
Uses
Reliability: TCP ensures that the connection is reliable (something which you can trust and depend on). So that transfer of data packets is done in the right order without any loss.
Error Prevention: TCP ensures that the connection is stable and established properly to avoid any future errors.
Real-World Examples
Web browsing: When you open your browser and search for any website (eg, google.com), then TCP ensures that it connects both client and server and transfers website text or images properly to you in the right order without any loss.
Email: Whenever you send an email, TCP establishes a connection between your application (eg, gmail.com) and the mail server, ensuring the reliable transfer of your mail data.
Common Issues & Solutions
Issue: Connection Timeout
Whenever your device sends a connection request (SYN) to the server, but for some reasons the server doesn’t responds with (ACK-SYN), then this results in a connection timeout.
Solution:
The client can retry after some time. The network admin of that server should properly check network stability, like bandwidth and firewall.
Issue: Packet Loss
Something even SYN, ACK-SYN, and ACK get lost if there are network issues, which can result in an incomplete handshake.
Solution:
TCP uses a retry mechanism with multiple attempts.
Issue: Slow Handshake
In high-latency networks, the handshake process may go slowly, which could affect user experience.
Solution:
Optimize network path (use better routing protocols) or Content Delivery Networks (CDNs).
Conclusion
So, in short, AFP (Aura Farming Protocol) is nothing but TCP (Transmission Control Protocol). Now you know why TCP has infinite Aura. Now, for next time you search for anything, just remember TCP is working hard for you in the background.
When I came to know about TCP for the first time, it was quite overwhelming for me, like I was struggling through the 3-Way Handshake a lot. But I made it through, and I am sure you can too.
Please drop a like if you enjoyed reading! And I will see you in the next Blog! Till then, enjoy and work hard!
Subscribe to my newsletter
Read articles from Dharmesh Shimpi directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
