<?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 Abdoulaye Sadio on Medium]]></title>
        <description><![CDATA[Stories by Abdoulaye Sadio on Medium]]></description>
        <link>https://medium.com/@abdoulayesadio1997?source=rss-68979d616271------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3SHwBB4ty-gbdEtN</url>
            <title>Stories by Abdoulaye Sadio on Medium</title>
            <link>https://medium.com/@abdoulayesadio1997?source=rss-68979d616271------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:11:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abdoulayesadio1997/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[0x11. What happens when you type google.com in your browser and press Enter]]></title>
            <link>https://medium.com/@abdoulayesadio1997/0x11-what-happens-when-you-type-google-com-in-your-browser-and-press-enter-2a4bdbfc4f2c?source=rss-68979d616271------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a4bdbfc4f2c</guid>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Abdoulaye Sadio]]></dc:creator>
            <pubDate>Sat, 10 Feb 2024 16:39:31 GMT</pubDate>
            <atom:updated>2024-02-10T16:39:31.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HgkntbNUrlLPPJRKlHpdCQ.png" /></figure><p>This is the basic circuit that happened when you type google.com in your browser:</p><p>1. You make a request from your browser to the server hosting resources</p><p>2. The server responds to your request by sending a respond to your browser</p><p>3. Then from your web browser, HTML &amp;&amp; CSS resources display, if there is a data it will load.</p><p>All these steps that seem so simple are not in fact. Each step is made up of a subset of processes, which when one is missing, the procedure turns to failure.</p><p>The general circuit therefore implies <a href="http://www.google.com/">www.google.com:</a></p><p>· DNS request</p><p>· TCP/IP</p><p>· Firewall</p><p>· HTTPS/SSL</p><p>· Load-balancer</p><p>· Web server</p><p>· Application server</p><p>· Database</p><p>These 8 eights form the basis of networking and internet.</p><p>So before starting, let’s see what is basically networking and internet and what we need to make them alive.</p><h3>What is a Network and internet?</h3><p>A network consists of two or more computers that are linked in order to share resources, exchange files, or allow electronic communications. The computers on a network may be linked through cables, telephone lines, radio waves, satellites, or infrared light beams. So, the general system formed by all of this device is called internet. The Internet is a global <strong>network</strong> of computers connected to each other which communicate through a standardized set of protocols.</p><h3>How internet works?</h3><p>As we said above, internet is a global network of computer, device that communicate between them. The question is now how communication is made possible. How devices, computers know to which computer this message come from and how to sender know to which computer is message should be sent.</p><p>From the moment we are born, our parents have chosen the most first names with which to identify us. Another, more extensive system has been put in place to identify every single person in the world: identity card numbers. All these resources have been put in place firstly to identify individuals and secondly to facilitate communication and data exchange. The system set up by man uses common names that can be understood by his peers. However, machines do not have the same ability to understand the character strings used by humans. They have their own type of language which, instead of alphabetical letters, uses a system known as binary (0 and 1). Machines communicate with each other using the binary system. To communicate with a machine, man must either master this complex system or use interpreters (programming languages) to translate their message/instruction into binary code.</p><p>In the same way that humans have first and last names, machines also have an identification system (A Digital Identification System) that they use to communicate with each other and identify themselves. These are called IP addresses.</p><p>Basically, we have two component that make a network, we have computer, device that we use for working and we have servers which are buildings that host hundreds or even thousands of computers(servers), that provide functionality and resources for others program or devices, called clients.</p><p>So when a client want to get information from a URL( <a href="http://www.google.com/">www.google.com</a>) , browser send what we call a request to the corresponding server. Computer can’t understand <a href="http://www.google.com/">www.google.com</a> so the first step is the translate this word to IP.</p><p><strong>1.</strong> <strong>DNS request</strong></p><p>This is the first step to start networking. DNS is a technology that translates human adapted text-based domain names to machine adapted numerical based IP. It plays a crucial role in web development. In simple term, DNS translate human readable domain names into IP addresses, which computers use to identify each other on the network.</p><p>How DNS works?</p><p>a- DNS Resolution:</p><p>When you type “https://www.google.com&quot; into your browser and hit Enter, the browser initiates a DNS resolution process. This involves querying a series of DNS servers to obtain the IP address associated with the domain name(https//:<a href="http://www.google.com/">www.google.com</a> →142.250.184.174).</p><p>b- Local DNS cache:</p><p>The browser doesn’t start by sending a DNS request to a remote DNS server right away. The first place the browser checks is its local DNS cache. This cache stores recent DNS lookups to expedite the process and reduce the load on DNS servers. So, if the required information is found in the cache and hasn’t expired, the browser can skip the DNS query step and proceed directly to establishing a connection which the corresponding server IP address found. So cashing is generally use to gain time, performance and also user experience.</p><p>c- Operating System Resolver:</p><p>Something it happened that the cache doesn’t have any information about the enter domain name or stored information has expired. If the local cache doesn’t contain the required information, the browser contacts the operating system’s resolver. The resolver is a component of the operating system responsible for handling DNS queries. It may have its own cache, providing another layer of caching before reaching out to external DNS servers. The resolver server is usually your ISP (Internet Service Provider). It also relieves the DNS server of requests. If the information is found, the process stops at this level and sends the reply with the IP address.</p><p>d- Root DNS Servers:</p><p>If the resolver doesn’t have the necessary information, it contacts recursive DNS servers. These servers are responsible for finding the IP address associated with the given domain. They might have the information in their cache or, if not, they will recursively query other DNS servers until the authoritative DNS server for the domain is reached.</p><p>The recursive DNS server starts the query process at the root DNS servers. These servers maintain information about top-level domains (TLDs) like “.com,” “.net,” etc. The root DNS servers don’t have information about the IP address for the specific website but can direct the query to the authoritative DNS servers for the TLD. For googel.com the authoritative DNS server is “.com” TLD.</p><p>e- TLD DNS Servers:</p><p>The resolver, now armed with information from the root DNS servers, contacts the TLD DNS servers. These servers have information about the specific top-level domain (in this case, “.com”) and provide the resolver with the IP address of the authoritative DNS server for the domain.</p><p>f- Authoritative DNS Servers:</p><p>Finally, the resolver reaches out to the authoritative DNS servers for the actual domain “google.com.” These servers hold the most up-to-date information about the domain and provide the IP address associated with it.</p><p>g- Caching and Time-to-Live (TTL):</p><p>At each step of this process, the DNS system employs caching to store results for a certain period. This caching helps in optimizing performance and reducing the load on DNS servers. The Time-to-Live (TTL) value associated with DNS records determines how long the information can be cached before it needs to be refreshed.</p><p>h- IP Address Returned:</p><p>With the IP address obtained from the authoritative DNS servers, the browser can now proceed to establish a connection with the server hosting the website.</p><p><strong>1.</strong> <strong>TCP/IP:</strong></p><p>Once the DNS resolves the IP address, the browser initiates a Transmission Control Protocol (TCP) connection to the server.</p><p>• TCP provides apps a way to deliver (and receive) an ordered and error-checked stream of information packets over the network. It is the most commonly used protocol on the Internet.</p><p>The Internet Protocol (IP) ensures that data is correctly routed between devices over the internet. TCP establishes a reliable connection, breaking down data into packets and ensuring their proper delivery.</p><p>When you request a web page in your browser, your computer sends TCP packets to the web server’s address, asking it to send the web page back to you. The web server responds by sending a stream of TCP packets, which your web browser stitches together to form the web page. TCP is all about reliability — -packets sent with TCP are tracked so no data is lost or corrupted in transit. This is why file downloads don’t become corrupted even if there are network hiccups. Of course, if the recipient is completely offline, your computer will give up and you’ll see an error message saying it can’t communicate with the remote host. TCP achieves this in two ways. First, it orders packets by numbering them. Second, it error-checks by having the recipient send a response back to the sender saying that it has received the message. If the sender doesn’t get a correct response, it can resend the packets to ensure the recipient receives them correctly.</p><p><strong>2.</strong> <strong>Firewall:</strong></p><p>As the TCP connection is established, the data passes through firewalls, which act as security barriers. Firewalls monitor and control incoming and outgoing network traffic based on predetermined security rules. They play a crucial role in protecting the network from unauthorized access and potential threats.</p><p><strong>3.</strong> <strong>HTTPS/SSL:</strong></p><p>Security is paramount on the web, and that’s where Hypertext Transfer Protocol Secure (HTTPS) and Secure Sockets Layer (SSL) come into play. HTTPS encrypts the data exchanged between the browser and the server, ensuring a secure communication channel.</p><p>a- HTTPS</p><p>HTTPS pages typically use one of two secure protocols to encrypt communications — SSL (Secure Sockets Layer) or TLS (Transport Layer Security). Both the TLS and SSL protocols use what is known as an ‘asymmetric’ Public Key Infrastructure (PKI) system. An asymmetric system uses two ‘keys’ to encrypt communications, a ‘public’ key and a ‘private’ key. Anything encrypted with the public key can only be decrypted by the private key and vice-versa. The public key can be shared for encryption data but the private one as his name refer should be keep private.</p><p>So how HTTPS is used on networking. When a request is send to the server, it uses a HTTPS/request. And the servers reply by sending the HTTPS/response. When you request a HTTPS connection to a webpage, the website will initially send its SSL certificate to your browser. This certificate contains the public key needed to begin the secure session. Based on this initial exchange, your browser and the website then initiate the ‘SSL handshake’. The SSL handshake involves the generation of shared secrets to establish a uniquely secure connection between yourself and the website.</p><p>So the system use an asymmetric key, each device will send his own public key that will be used to to encrypt the data to be sent. If the data arrive to the right destination using the IP address and port, the corresponding private key will be used to decrypt data.</p><p>b- SSL:</p><p>Secure Sockets Layer (SSL) is a cryptographic protocol designed to secure communication over a computer network, most commonly the internet. SSL operates at the transport layer, ensuring a secure and encrypted connection between a client (typically a web browser) and a server. The primary goal of SSL is to establish a trusted and confidential communication channel, protecting sensitive information from unauthorized access or tampering. It employs encryption algorithms to encode data exchanged between the client and server. This ensures that even if intercepted, the data is indecipherable to unauthorized parties. It also facilitates the authentication of the server to ensure that the client is communicating with the intended and legitimate server. This is achieved through digital certificates issued by trusted Certificate Authorities (CAs). Certificates contain the server’s public key and information about the entity it belongs to.</p><p>SSL guarantees the integrity of the transmitted data, preventing unauthorized modification during transit. This is achieved through the use of cryptographic hash functions, which generate unique fingerprints (hashes) for data and allow the recipient to verify its integrity.</p><p><strong>4.</strong> <strong>Load Balancer</strong></p><p>Load balancing refers to efficiently distributing incoming network traffic across a group of backend servers, also known as a server farm or server pool.It is the method of distributing network traffic equally across a pool of resources that support an application</p><p>High-traffic websites like Google often utilize load balancers to distribute incoming requests across multiple servers. Load balancing ensures optimal resource utilization, prevents server overload, and enhances the website’s overall performance. It plays a crucial role in maintaining availability and responsiveness.</p><p>A load balancer acts as a “ traffic cop”, standing in front of your servers and routing customer requests to all servers capable of meeting those requests in a way that maximises speed and capacity utilisation and ensures that no server is overloaded, which could degrade performance. If a server fails, the load balancer redirects traffic to the other servers online. When a new server is added to the server group, the load balancer automatically starts sending requests to it.</p><p>As its name suggests, it is a load balancer, and depending on the power of the servers, their availability and specificity, requests will be sent to the appropriate servers.</p><p>Load balancers generally use algorithms depending on requirements. The simplest is round robin. Round Robin is a simple and widely used algorithm for load balancing in computer networking and distributed systems. The primary goal of load balancing is to distribute incoming network traffic or workload across multiple servers to ensure efficient utilization of resources, prevent server overload, and improve overall system performance and reliability. Incoming requests are distributed sequentially or in a circular order to each server in the pool. The algorithm cycles through the list of servers, assigning each new request to the next server in line. One of the key features of Round Robin is that it aims to provide equal sharing of the workload among all the servers in the pool. Each server gets an approximately equal number of requests over time(except in certain cases corresponding to variants of the algorithm).</p><p><strong>5.</strong> <strong>Web Server:</strong></p><p>Upon passing through the load balancer, the request reaches one of Google’s web servers. The web server’s primary function is to handle incoming HTTP requests, process them, and generate responses, often in the form of HTML pages, images, or other resources. Google employs robust and scalable web server infrastructure to handle the vast volume of requests it receives.</p><p><strong>6.</strong> <strong>Application Server:</strong></p><p>For dynamic content or server-side processing, the web server may forward the request to an application server. Application servers execute code, interact with databases, and generate dynamic content based on user requests. In Google’s case, this might involve executing complex algorithms, personalized search queries, or other application-specific logic.</p><p><strong>7.</strong> <strong>Database:</strong></p><p>To fetch and store data, the application server communicates with databases. Google, being a search engine, likely relies on massive distributed databases to retrieve relevant search results. The retrieved data is then processed, formatted, and sent back through the layers to the user’s browser.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a4bdbfc4f2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>