<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Harshit Singh on Medium]]></title>
        <description><![CDATA[Stories by Harshit Singh on Medium]]></description>
        <link>https://medium.com/@harshit.singh23?source=rss-a6ddfdbcb067------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*o9DgO5iB2mWkMtNn</url>
            <title>Stories by Harshit Singh on Medium</title>
            <link>https://medium.com/@harshit.singh23?source=rss-a6ddfdbcb067------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:59:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harshit.singh23/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Application Layer Protocols]]></title>
            <link>https://medium.com/@harshit.singh23/application-layer-protocols-41dd354cfad5?source=rss-a6ddfdbcb067------2</link>
            <guid isPermaLink="false">https://medium.com/p/41dd354cfad5</guid>
            <dc:creator><![CDATA[Harshit Singh]]></dc:creator>
            <pubDate>Sun, 02 Nov 2025 14:19:44 GMT</pubDate>
            <atom:updated>2025-12-08T03:06:20.273Z</atom:updated>
            <content:encoded><![CDATA[<h3>🌐 Application Layer Protocols</h3><p>Communication on the internet is built on a series of well-defined rules called <strong>protocols</strong>. At the top of the network architecture lies the <strong>Application Layer</strong>, where users directly interact with network services. This is where activities such as browsing websites, sending emails, transferring files, and resolving domain names occur.</p><p>Below is a clean and detailed explanation of the most important Application Layer protocols, along with the theory behind how each one works.</p><h3>HTTP</h3><p>HTTP (HyperText Transfer Protocol) is the foundation of data communication on the web. It is a <strong>stateless</strong>, <strong>client-server</strong>, <strong>request–response</strong> protocol. This means each request made by a client (browser) is treated independently without remembering previous interactions.</p><p>HTTP works by sending:</p><ul><li>a <strong>request line</strong> (method, resource, HTTP version)</li><li><strong>headers</strong> (metadata)</li><li>an optional <strong>message body</strong> (for POST/PUT)</li></ul><p>Because HTTP is simple and flexible, it supports transferring HTML, CSS, JavaScript, JSON, images, videos, and all kinds of media.</p><p>Port used: <strong>80</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GgWCYvg0DTQykqTBo8WeAA.png" /><figcaption>HTTP request–response flow used to load webpages and web content</figcaption></figure><h3>HTTPS</h3><p>HTTPS is the secure version of HTTP. It uses <strong>TLS/SSL encryption</strong> to protect sensitive data such as login details, payment information, and personal data.</p><p>HTTPS ensures:</p><ul><li><strong>Confidentiality</strong> — encrypted communication</li><li><strong>Integrity</strong> — data cannot be altered</li><li><strong>Authentication</strong> — verifies server identity</li></ul><p>This protection makes HTTPS the global standard for all modern websites.</p><p>Port used: <strong>443</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iZ7WrIIarI746pzF3lU9rA.png" /><figcaption>HTTPS ensures secure, encrypted communication between client and server.</figcaption></figure><h3>FTP</h3><p>FTP (File Transfer Protocol) enables uploading and downloading files between computers.</p><p>It uses two connections:</p><ul><li><strong>Control channel</strong> for commands</li><li><strong>Data channel</strong> for actual file transfer</li></ul><p>FTP supports directory browsing, file renaming, deletion, listing, and retrieval. However, FTP is not secure because credentials and data are sent in plain text.</p><p>Ports used: <strong>20 and 21</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kvHHMm6NfxQQXZz5wxmdVQ.png" /><figcaption>FTP uses separate control and data channels for file transfers.</figcaption></figure><h3>SFTP</h3><p>SFTP (Secure File Transfer Protocol) is a secure alternative to FTP. It operates over SSH, providing encryption and secure authentication.</p><p>SFTP ensures:</p><ul><li>Secure file upload/download</li><li>Encrypted sessions</li><li>Data integrity checks</li></ul><p>It is commonly used for server access, web hosting, and secure file management.</p><p>Port used: <strong>22</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*974NPknL8KLkhpkZl8VZ9g.png" /><figcaption>SFTP provides secure, encrypted file transfers using SSH.</figcaption></figure><h3>SMTP</h3><p>SMTP (Simple Mail Transfer Protocol) is used only for <strong>sending emails</strong>. It uses a <strong>store-and-forward</strong> system, where each mail server routes the message to the next until it reaches the destination.</p><p>SMTP communication includes commands such as HELO, MAIL FROM, RCPT TO, and DATA.</p><p>Ports used: <strong>25, 587, 465</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ZqjXLAwqRnvZR23tH_wEQ.png" /><figcaption>SMTP handles the sending of emails through multiple mail servers</figcaption></figure><h3>POP3</h3><p>POP3 (Post Office Protocol v3) downloads emails from the server to a device. Once downloaded, emails are usually removed from the server.</p><p>POP3 works in three stages:</p><ul><li>Authorization</li><li>Transaction</li><li>Update</li></ul><p>It is simple but does not support syncing across multiple devices.</p><p>Port used: <strong>110 / 995 (secure)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJydMELvPjFOR9lGiD2yRw.png" /><figcaption>POP3 downloads emails to a single device and removes them from the server</figcaption></figure><h3>IMAP</h3><p>IMAP (Internet Message Access Protocol) keeps emails on the server and synchronizes them across all devices.</p><p>It supports:</p><ul><li>Server-side folders</li><li>Email flags (read, unread, starred)</li><li>Multi-device access</li><li>Partial message retrieval</li></ul><p>This is why IMAP is used by Gmail, Outlook, and most modern email platforms.</p><p>Port used: <strong>143 / 993 (secure)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8h1JouYHZvHOrN7BYvu-g.png" /><figcaption>IMAP synchronizes emails across multiple devices using server-stored messages.</figcaption></figure><h3>DNS</h3><p>DNS (Domain Name System) translates human-readable domain names into IP addresses. Every time you type a domain like <em>google.com</em>, DNS finds the IP address so the browser can load the website.</p><p>DNS uses different types of records such as A, AAAA, MX, NS, and CNAME.</p><p>Port used: <strong>53</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E9w3rUWnYI76TlYMTndksg.png" /><figcaption>DNS resolves domain names into IP addresses so websites can load</figcaption></figure><h3>DHCP</h3><p>DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses and network settings.</p><p>It uses the <strong>DORA</strong> process:</p><ul><li>Discover</li><li>Offer</li><li>Request</li><li>Acknowledge</li></ul><p>DHCP provides IP address, subnet mask, gateway, DNS server, and lease time.</p><p>Ports used: <strong>67 (server), 68 (client)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H9KnQb0Jrb109F-lCn_CIw.png" /><figcaption>DHCP automatically assigns IP addresses through the DORA process.</figcaption></figure><h3>SNMP</h3><p>SNMP (Simple Network Management Protocol) monitors network devices such as routers, switches, servers, and firewalls.</p><p>It uses:</p><ul><li><strong>Agents</strong> on devices</li><li><strong>MIB databases</strong></li><li><strong>Manager software</strong></li></ul><p>SNMP performs tasks like retrieving metrics, modifying configurations, and sending alerts (traps).</p><p>Ports used: <strong>161 and 162</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQqpQYZC1SPIdKXUCp8HAw.png" /><figcaption>SNMP enables monitoring and management of network devices.</figcaption></figure><h3>Telnet</h3><p>Telnet allows remote login to a device using a text-based session. However, Telnet does <strong>not encrypt</strong> data, making it unsafe for modern use. All credentials are visible in plain text.</p><p>Port used: <strong>23</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XhdjsLmkovUalReRK7Hmqg.png" /><figcaption>Telnet provides remote terminal access but lacks encryption.</figcaption></figure><h3>SSH</h3><p>SSH (Secure Shell) is the secure replacement for Telnet. It uses encryption and authentication to safely access remote servers.</p><p>SSH supports:</p><ul><li>Remote command execution</li><li>Secure login</li><li>Encrypted tunnels</li><li>File transfer (SFTP/SCP)</li></ul><p>Port used: <strong>22</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LmGK0M3WcEDc80lb9vyosQ.png" /><figcaption>SSH offers encrypted and secure remote login for server management.</figcaption></figure><h3>TFTP</h3><p>TFTP (Trivial File Transfer Protocol) is a very lightweight file transfer method using UDP. It does not provide authentication or encryption, which makes it suitable only for trusted local networks.</p><p>Used for:</p><ul><li>Router booting</li><li>Switch firmware updates</li><li>Network devices</li></ul><p>Port used: <strong>69</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bTxofXV9Epi63fQ6tm8-ww.png" /><figcaption>TFTP is a simple, lightweight protocol often used for device booting.</figcaption></figure><h3>LDAP</h3><p>LDAP (Lightweight Directory Access Protocol) is used for accessing and managing directory information such as users, devices, groups, and permissions.</p><p>LDAP is widely used in enterprise authentication systems and Active Directory.</p><p>Ports used: <strong>389 (LDAP), 636 (LDAPS secure)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEI-fCXPXYt5-VcaQffn0w.png" /><figcaption>LDAP manages and provides directory-based authentication for users and devices.</figcaption></figure><h3>Conclusion</h3><p>Application Layer protocols form the foundation of how the internet works. They handle everything from loading websites and sending emails to transferring files, assigning IP addresses, authenticating users, and managing network devices. Without them, communication between applications and servers would be impossible.</p><p>These protocols ensure the internet remains functional, secure, and user-friendly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41dd354cfad5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>