<?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 khawla-ben on Medium]]></title>
        <description><![CDATA[Stories by khawla-ben on Medium]]></description>
        <link>https://medium.com/@khawlaben?source=rss-20da04fc006------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Soq26MA3QG2co5qwlLjQnw.jpeg</url>
            <title>Stories by khawla-ben on Medium</title>
            <link>https://medium.com/@khawlaben?source=rss-20da04fc006------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:05:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khawlaben/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[What happens when you type google.com in your browser and press Enter ???]]></title>
            <link>https://medium.com/@khawlaben/what-happens-when-you-type-google-com-in-your-browser-and-press-enter-1f724c08b9d0?source=rss-20da04fc006------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f724c08b9d0</guid>
            <dc:creator><![CDATA[khawla-ben]]></dc:creator>
            <pubDate>Sat, 20 Jul 2024 15:00:59 GMT</pubDate>
            <atom:updated>2024-07-20T15:00:59.171Z</atom:updated>
            <content:encoded><![CDATA[<h3>What happens when you type google.com in your browser and press Enter ???</h3><p>Have you ever wondered what happens behind the scenes when you enter a web address like “google.com” into your browser and hit Enter? Let’s explore the journey through the layers of the web stack to understand how your request reaches its destination, but before that, we should know some terms to understand well so let’s define them :</p><ul><li><strong>Protocol</strong>: is a set of rules that define how data is transmitted and communicated over a network. It ensures that devices and systems can understand and interpret each other’s signals and messages correctly.</li><li><strong>IP Address</strong>: (Internet Protocol) address is a unique numeric identifier assigned to each device connected to a computer network. It allows devices to communicate with each other and enables data packets to be routed across networks.</li><li><strong>Server</strong>: is a computer or device that provides resources, services, or data to other computers, known as clients, over a network. Servers are often specialized for specific tasks like hosting websites, storing files, or managing network traffic.</li><li><strong>TCP/IP (Transmission Control Protocol/Internet Protocol)</strong>: is a suite of communication protocols that define how data should be transmitted over networks. It provides reliable, ordered, and error-checked delivery of data packets between devices on a network, ensuring seamless communication.</li><li><strong>Request</strong>: (In the context of networking and web applications), a request is a message sent from a client (e.g., a web browser) to a server, typically requesting a resource or service. Requests can be for web pages, files, database queries, etc.</li><li><strong>Network</strong>: is a collection of computers, servers, devices, or other nodes connected together to share resources and communicate with each other. Networks can be local (LAN), wide-area (WAN), or global (Internet).</li><li><strong>Web Server</strong>: is software or hardware that delivers web content to clients over the Internet or an intranet. It processes incoming HTTP requests from clients (browsers) and serves web pages, files, or other resources.</li><li><strong>SSL/TLS (Secure Sockets Layer/Transport Layer Security)</strong>: SSL and its successor TLS are cryptographic protocols designed to provide secure communication over a computer network. They encrypt data exchanged between a client (e.g., browser) and a server, ensuring confidentiality, integrity, and authentication.</li><li><strong>HTTP /HTTPS (Hypertext Transfer Protocol/Secure)</strong>: HTTP is a protocol used for transferring hypertext documents (web pages) on the World Wide Web. HTTPS is a secure version of HTTP that uses SSL/TLS encryption to protect the integrity and confidentiality of data exchanged between clients and servers.</li><li><strong>Load Balancers</strong>: are devices or software that distribute incoming network traffic across multiple servers. They optimize resource utilization, improve responsiveness, and ensure high availability by evenly distributing workloads.</li><li><strong>Database</strong>: is a structured collection of data stored electronically in a computer system. It allows data to be easily accessed, managed, and updated. Databases are essential for storing and retrieving structured information in web applications.</li></ul><p>Now that we understand these terms, let’s dive into how they work together. Here are the steps that occur:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*2udxWPnNyBs0MZRt731C0A.jpeg" /></figure><h3>1. DNS Request</h3><p>When you type a URL like https://www.google.com into your browser&#39;s address bar, the first step is for your browser to resolve the domain name (www.google.com) into an IP address. This process is known as DNS resolution.</p><ul><li>Your browser sends a DNS query to a DNS resolver (typically provided by your ISP or configured manually).</li><li>The resolver checks its cache to see if it has recently resolved www.google.com. If not, it sends a recursive query to authoritative DNS servers responsible for the .com top-level domain, then to Google&#39;s authoritative DNS servers to get the IP address associated with <a href="http://www.google.com./">www.google.com.</a></li><li>Once resolved, the IP address is returned to your browser.</li></ul><h3>2. TCP/IP Connection</h3><p>Armed with the IP address of www.google.com, your browser initiates a TCP (Transmission Control Protocol) connection to that IP address.</p><ul><li>TCP ensures reliable data delivery by establishing a connection-oriented session between your browser and Google’s server.</li><li>It uses a three-way handshake:</li></ul><ol><li><strong>SYN</strong>: Your browser sends a SYN (synchronize) packet to Google’s server.</li><li><strong>SYN-ACK</strong>: Google’s server responds with a SYN-ACK (synchronize-acknowledgment) packet, acknowledging the request.</li><li><strong>ACK</strong>: Your browser sends an ACK (acknowledgment) packet back to confirm the connection.</li></ol><h3>3. Firewall</h3><p>As your request traverses the network, it may encounter firewalls and other network security measures.</p><ul><li>Firewalls are network security systems that monitor and control incoming and outgoing network traffic based on predetermined security rules.</li><li>They can block or allow traffic based on criteria such as IP addresses, ports, protocols, and application types.</li></ul><h3>4. HTTPS/SSL</h3><p>Modern websites use HTTPS (Hypertext Transfer Protocol Secure) to encrypt data exchanged between the browser and the server.</p><ul><li><strong>SSL/TLS Encryption</strong>:</li><li>HTTPS establishes an encrypted connection using SSL (Secure Sockets Layer) or its successor TLS (Transport Layer Security).</li><li>This encryption protects sensitive data from eavesdropping and tampering during transmission.</li></ul><h3>5. Load-Balancer</h3><p>To handle large traffic volumes and ensure high availability, websites often employ load balancers.</p><ul><li>Load balancers distribute incoming HTTP requests across multiple servers.</li><li>They monitor server health, manage session persistence, and optimize resource utilization.</li><li>Examples include software-based solutions like HAProxy and hardware-based solutions from companies like F5 Networks.</li></ul><h3>6. Web Server</h3><p>Upon reaching Google’s infrastructure, the request lands on one of Google’s web servers.</p><ul><li>Web servers like Apache, Nginx, or Google’s custom solutions receive and process HTTP requests.</li><li>They retrieve requested resources (HTML, CSS, JavaScript, images, etc.) and generate HTTP responses to send back to the client (your browser).</li></ul><h3>7. Application Server</h3><p>Web servers may interact with application servers for dynamic content or complex processing.</p><ul><li>Application servers execute server-side logic and process dynamic content.</li><li>They run applications written in languages like Python (using frameworks like Django or Flask), Java (using servlet containers like Tomcat), or Node.js.</li><li>Application servers handle business logic, database interactions, user authentication, and more.</li></ul><h3>8. Database</h3><p>Behind many web applications lies a database where structured data is stored and retrieved.</p><ul><li>Databases like MySQL, PostgreSQL, MongoDB, or Google’s Big Table store data persistently.</li><li>They allow web applications to manage user information, store product catalogs, handle transactions, and more.</li></ul><p>By understanding terms like DNS, HTTPS, servers, and databases, you now have a clearer picture of how web pages load when you type a website address into your browser. Each step, from translating domain names to ensuring secure connections and retrieving data, works together seamlessly to deliver the web content you see. These foundational concepts are the building blocks that make the Internet work, and exploring them further will deepen your understanding of how websites function.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f724c08b9d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>