<?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 Yassir Elyasini on Medium]]></title>
        <description><![CDATA[Stories by Yassir Elyasini on Medium]]></description>
        <link>https://medium.com/@elyasiniyassir40?source=rss-04e47d784807------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*uPZJDsUc9TEh5oao</url>
            <title>Stories by Yassir Elyasini on Medium</title>
            <link>https://medium.com/@elyasiniyassir40?source=rss-04e47d784807------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 10:01:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@elyasiniyassir40/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[DEEP TALK ABOUT OSI MODEL]]></title>
            <link>https://medium.com/@elyasiniyassir40/deep-talk-about-osi-model-5288d09b4aaa?source=rss-04e47d784807------2</link>
            <guid isPermaLink="false">https://medium.com/p/5288d09b4aaa</guid>
            <category><![CDATA[osi-model]]></category>
            <category><![CDATA[network-model]]></category>
            <category><![CDATA[osi-model-explained]]></category>
            <category><![CDATA[tcp-ip]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Yassir Elyasini]]></dc:creator>
            <pubDate>Sat, 11 Oct 2025 09:45:44 GMT</pubDate>
            <atom:updated>2026-04-16T19:41:36.814Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Before diving deeply into the OSI model, let’s start with a simple definition of network models.</strong></p><h3>NETWORK MODELS</h3><p><strong>Definition:</strong><br> A network model is a standardized, structured representation of network communication processes. It defines how data is created, transmitted, managed, and received across interconnected systems.</p><p>It divides the complex process of networking into multiple layers, where each layer handles specific functions and interacts only with the layers directly above and below it.</p><p>This modular approach enables interoperability between different hardware, software, and network technologies.</p><p><strong>In short:</strong><br> “A network model explains how data travels from one device to another through a series of organized layers.”</p><p>After defining what a network model is, let’s explore the different types of network models.</p><p>There are several major types: <strong>OSI, TCP/IP, Client-Server, Peer-to-Peer (P2P), Cloud, and Overlay models.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55TZ75G_TiAjKcFr29Ijew.png" /></figure><p>But in it this article we will focus only on <strong>OSI Model</strong> and <strong>TCP/IP Model .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YrpNVoecKa73piRlVDAkEA.png" /></figure><h3>So let’s start with the OSI Model:</h3><p>The OSI (Open Systems Interconnection) model is a conceptual framework used to understand how different networking systems communicate.<br> It divides the process of network communication into seven layers, each with specific functions.<br> Think of it like a blueprint for networking: it doesn’t do the networking itself, but it tells us how to organize, design, and troubleshoot networks.</p><p><strong>Key points about OSI:</strong></p><ul><li>It’s theoretical, not mandatory; real networks like the Internet often use TCP/IP, which maps roughly to OSI.</li><li><strong>Helps with interoperability</strong>: devices from different vendors can communicate if they follow OSI concepts.</li><li><strong>Modular design:</strong> each layer only deals with its own tasks and relies on the layers above and below</li></ul><h4><strong>Why Is the OSI Model Important?</strong></h4><p><strong>The OSI model provides several advantages for organizations managing networks and communications:</strong></p><p><strong>Shared understanding of complex systems:</strong> OSI offers a universal language for networking, enabling different network devices and software to communicate. By dividing communication into seven distinct layers, it allows network professionals to isolate and troubleshoot problems effectively.</p><p><strong>Faster research and development:</strong> Developers can focus on improving specific layers without affecting others, leading to more rapid innovation. This modular approach enables specialization and allows different teams to work on various aspects of network communication simultaneously.</p><p><strong>Flexible standardization:</strong> The model’s layered approach allows the integration of new technologies at any layer without disrupting the overall network structure. This ensures compatibility across different devices and protocols, supporting the long-term viability and scalability of network infrastructure.</p><h3>Layers of OSI Model :</h3><h4>Layer 7 — Application Layer :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*jTYFJUr-KMl95yLKxHqV1w.png" /></figure><p><strong>Definition:</strong> <br> The Application Layer is the closest layer to the user — it’s where communication actually begins.<br> It provides the interface between user applications and the underlying network services.<br> In other words, it allows software (like browsers, email clients, or chat apps) to access network resources.</p><p>🧠 <strong>Think of it like:</strong><br> The “face” of networking — the layer that interacts directly with you or with the applications you use.</p><h4>Layer 6 — the Presentation Layer :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*N0MWyfNfAKtoV6JqENbCVQ.png" /></figure><p>The Presentation Layer, also known as the syntax layer, is responsible for translating data between the application layer and the network format. It ensures that data sent from the application layer of one system is readable by the application layer of another system. This layer handles data formatting, encryption, and compression, facilitating interoperability between different systems.</p><p>🧠 <strong>In simple words:</strong><br> It translates, encrypts, and compresses data so it can be properly interpreted by the other side.</p><p>🧠 <strong>Example in action (HTTPS web browsing):</strong><br> You type <a href="https://example.com/">https://example.com</a> in your browser.<br> The browser’s Application Layer creates an HTTP request.<br> The Presentation Layer then:</p><ul><li>Encrypts the HTTP data using SSL/TLS,</li><li>Converts text and characters to the right encoding (UTF-8),</li><li>Compresses the request if needed.</li></ul><ol><li>The resulting secure and properly formatted data is sent down to the <strong>Session Layer</strong>.</li></ol><h4>Layer 5 — Session Layer :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*O2UaomXHIddkNrdtV7ep8A.png" /></figure><p>The Session Layer manages and controls the connections between computers. It establishes, maintains, and terminates connections, ensuring that data exchanges occur efficiently and in an organized manner. The layer is responsible for session checkpointing and recovery, which allows sessions to resume after interruptions.</p><p>🧠 <strong>In simple words:</strong></p><p><em>It acts like a </em><strong><em>meeting coordinator</em></strong><em>, making sure two devices </em><strong><em>can start talking, continue talking smoothly, and end the conversation properly</em></strong><em>.</em></p><p><strong>Example: Online Gaming</strong></p><p>When you join an online match:</p><ol><li><strong>Session Establishment:</strong></li></ol><ul><li>The game client (your PC or console) connects to the game server.</li><li>A <em>session</em> is created for your player — it keeps track of who you are, your teammates, and your game state.</li></ul><p><strong>2. Session Management:</strong></p><ul><li>While you’re playing, the Session Layer keeps your connection alive.</li><li>It manages synchronization (your position, health, and score updates) between your device and the server.</li></ul><p><strong>3. Session Recovery:</strong></p><ul><li>If your Internet briefly drops, the Session Layer allows your client to <strong>reconnect</strong> to the same game session without restarting the entire match.</li></ul><p><strong>4. Session Termination:</strong></p><ul><li>When the match ends or you leave, the session is cleanly <strong>closed</strong>, freeing resources on both the client and the server.</li></ul><h4>Layer 4 — The Transport Layer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*g5ItO7Xt0tdw26BxR-xCVA.png" /></figure><p>The Transport Layer provides end-to-end communication services for applications. It ensures complete data transfer, error recovery, and flow control between hosts. This layer segments and reassembles data for efficient transmission and provides reliability with error detection and correction mechanisms.</p><p>Protocols at this layer include <a href="https://www.imperva.com/learn/ddos/tcp-transmission-control-protocol/">Transmission Control Protocol</a> (TCP) and <a href="https://www.imperva.com/learn/ddos/udp-user-datagram-protocol/">User Datagram Protocol</a> (UDP). TCP is connection-oriented and ensures reliable data transfer with error checking and flow control, making it suitable for applications like web browsing and email. UDP is connectionless, offering faster, though less reliable, transmission, suitable for applications like video streaming and online gaming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*BWNzou64D6a1SwULEoBoaw.png" /></figure><h4>TCP (Transmission Control Protocol)</h4><p><strong>How it works:</strong></p><ul><li>Before sending data, it establishes a <strong>connection</strong> using the <strong>3-way handshake</strong>:</li></ul><ol><li>SYN → Synchronize</li><li>SYN-ACK → Acknowledge synchronization</li><li>ACK → Connection established</li></ol><ul><li>It ensures <strong>reliability</strong>, <strong>ordering</strong>, and <strong>error correction</strong> using sequence numbers and acknowledgments.</li><li>If a packet is lost, TCP <strong>resends</strong> it.</li></ul><p><strong>Example:</strong></p><ul><li>Web browsing (HTTP/HTTPS)</li><li>Email (SMTP, POP3, IMAP)</li><li>File transfers (FTP, SFTP)</li></ul><h4>UDP (User Datagram Protocol)</h4><p><strong>How it works:</strong></p><ul><li>Sends data <strong>without establishing a connection</strong>.</li><li>It’s much <strong>faster</strong> than TCP, but offers <strong>no guarantee</strong> of delivery, ordering, or error correction.</li><li>Useful when <strong>speed is more important than reliability.</strong></li></ul><p><strong>Example:</strong></p><ul><li>Video streaming (YouTube, Netflix)</li><li>Online gaming</li><li>Voice/Video calls (VoIP)</li><li>DNS lookups</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5288d09b4aaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type google.com in your browser and press Enter]]></title>
            <link>https://medium.com/@elyasiniyassir40/what-happens-when-you-type-google-com-in-your-browser-and-press-enter-d3e812ff67ce?source=rss-04e47d784807------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3e812ff67ce</guid>
            <dc:creator><![CDATA[Yassir Elyasini]]></dc:creator>
            <pubDate>Fri, 24 May 2024 16:43:07 GMT</pubDate>
            <atom:updated>2024-05-24T16:43:07.686Z</atom:updated>
            <content:encoded><![CDATA[<p>Nearly all individuals who have accessed the internet have, on one occasion in their online exploration, entered “<a href="https://www.google.com/">https://www.google.com</a>&quot; into a browser. Have you ever pondered what takes place right after you press the enter key? In case you have ever been curious about this, then allow me to clarify that for you.</p><p>Rather than merely skimming the surface, I will delve into the intricacies so that you obtain a complete understanding and also develop technical proficiency concerning how the web operates. Do not worry, I will simplify everything as much as possible for you to comprehend.</p><p>Just to ensure we are on the same wavelength, I assume you are familiar with the term “browser.” However, if you are not, that is perfectly fine. A browser is essentially an application that allows you to access the internet. Some common examples include Google Chrome, Firefox, Vivaldi, Safari, Opera, Edge, etc.</p><p>When you enter a URL (uniform resource locator) such as “<a href="https://www.google.com/">https://www.google.com</a>&quot; into your web browser (e.g., Chrome) and hit enter, many actions occur before any output is displayed on your browser. Fortunately, all these actions happen within a split second, so you hardly have time to ponder them. Before I delve into the individual steps involved and expound on them, let me provide you with a brief overview of all the processes that occur within those few microseconds.</p><p>Your computer sends a request to the domain name system (DNS) server, which functions as an address book for all domain names. The DNS server then returns the precise IP address of the server that <a href="https://www.google.com/">https://www.google.com</a> points to.</p><p>With this IP address, your computer then creates a connection with the server via the IP address. This connection type is called TCP (Transmission Control Protocol), and your computer can establish this connection through the IP (Internet Protocol). This entire process is known as a “handshake.”</p><p>If your computer is situated behind a firewall, the firewall verifies that the specific request you are making is authorized before granting it. Additionally, if the server you are attempting to access is also behind a firewall, a similar check will be conducted before you can ultimately connect to the server.</p><p>Once the connection is established, your browser sends a request for the webpage using a security protocol like SSL (Transport Layer Security) or TLS (Transport Layer Security) to encrypt the data that will be exchanged between your computer and the server. This encryption is responsible for the “s” in “https” (Hypertext Transfer Protocol Secure), indicating a secure connection.</p><p>To handle high traffic, companies like Google maintain multiple servers and use a load balancer to distribute requests among them. The load balancer receives the request from your browser and sends it to a specific server based on its algorithm.</p><p>The server receiving the request sends a response back to the load balancer, which in turn sends it back to your browser. The response typically includes HTML (Hyper Text Markup Language), CSS (Cascading Style Sheets), and JavaScript files that make up the webpage. The HTML files instruct the browser how to display the content, while the CSS file styles it, and the JavaScript file adds interactivity.</p><p>If dynamic content, such as Google search results, is required, the web server requests it from an application server, which may then request data from a database server. The web server includes this data in the response it sends back to the browser. Finally, the browser renders the webpage and displays it to you.</p><p>Are you aware of the numerous activities that happen before you can view anything on your web browser? This is just a brief summary of the process. Now, let’s examine each step in detail.</p><p>Domain Name System (DNS) Request</p><p>Whenever you enter a domain name or website on your browser, the browser saves the DNS record in its cache.</p><p>Thus, when you type a domain name like “<a href="http://google.com/">google.com</a>” on your web browser, it checks its cache for the most recent copy of the DNS record for that domain.</p><p>If there is a recent copy of the DNS record for that domain, the browser uses the IP address in the cache to send a request to the server. This speeds up the process of converting the domain name to an IP address because it bypasses the need to send a request to the DNS server.</p><p>However, if the browser cache does not have a recent copy of the DNS record or if the DNS record has been updated since the last time it was cached, the browser sends a request to the DNS server to convert the domain name to an IP address.</p><p>This is a complex process, so let’s delve into the different stages involved.</p><p>DNS Lookup Process</p><p>Here’s how the DNS lookup process works:</p><p>The browser sends a request to the local DNS resolver, which is often provided by the internet service provider (ISP). The local DNS resolver checks its cache for the most recent copy of the DNS record for the domain. If it has it, it sends the IP address back to the browser. If the local DNS resolver does not have the most recent copy of the DNS record, it sends a request to a root nameserver. The root nameserver replies with the address of a top-level domain (TLD) nameserver, such as .com</p><p>The local DNS resolver sends a request to the TLD nameserver.</p><p>The TLD nameserver responds with the address of the authoritative nameserver for the domain.</p><p>The local DNS resolver sends a request to the authoritative nameserver.</p><p>The authoritative nameserver responds with the IP address for the domain.</p><p>The local DNS resolver sends the IP address back to the browser.</p><p>The browser sends a request to the server at the IP address to retrieve the webpage.</p><p>This process may involve additional steps if the DNS record is not found at any of the nameservers or if the DNS record is set up to use a service such as DNS load balancing or content delivery networks (CDN).</p><p>The duration for which the DNS record is cached (known as the “TTL” or “Time To Live”) is determined by the authoritative nameserver and can be customized by the domain owner.</p><p>TCP/IP connectivity</p><p>TCP (Transmission Control Protocol) and IP (Internet Protocol) are two of the primary protocols that constitute the internet. They work in conjunction to establish a link between a client and a server and facilitate the exchange of data between them. When you input “<a href="http://google.com/">google.com</a>” into a web browser, the browser employs TCP/IP to establish a link with the server that hosts the website.</p><p>Here’s what happens in greater detail:</p><p>The browser uses IP to send a request to the server to establish a connection.</p><p>The server receives the request and sends a message back acknowledging the request to establish a connection. This is known as the handshake procedure.</p><p>Once the handshake is completed, the browser can use TCP to send a request for the webpage it wants to access (in this instance, the homepage of <a href="http://google.com/">google.com</a>). This request is made using TCP, which ensures that the request is sent reliably and in the correct sequence.</p><p>The server receives the request and sends the HTML code for the homepage of <a href="http://google.com/">google.com</a> back to the browser. This response is also sent using TCP to ensure dependable transmission.</p><p>The browser receives the HTML code and uses it to display the webpage on your screen. Any resources (such as images) that the webpage requires are also requested and received using TCP/IP.</p><p>Firewall protection</p><p>A firewall is a security system that regulates and monitors incoming and outgoing network traffic based on predetermined security policies. Its primary objective is to safeguard a network from external threats, such as hackers and malware.</p><p>When you type a URL like “<a href="http://google.com/">google.com</a>” into your browser, the request that your browser makes to Google’s server passes through the firewall en route. The firewall examines the incoming request to ensure that it is permitted based on its security policies.</p><p>There are two primary types of security policies that a firewall employs to examine incoming requests:</p><p>policies that allow or prohibit traffic based on the origin and destination of the request. For example, a firewall may be programmed to block all traffic from specific countries or to allow only specific IP addresses to access the network.</p><p>policies that allow or prohibit traffic based on the type of traffic. For example, a firewall may be programmed to block all traffic on certain ports (such as those used by malware) or to allow only certain types of traffic (such as HTTP or HTTPS).</p><p>If the incoming request</p><p>HTTPS/SSL</p><p>HTTPS (Hypertext Transfer Protocol Secure) is a safe version of HTTP, which is used to transmit data on the internet. It encrypts the data sent between your browser and Google’s server.</p><p>SSL (Secure Sockets Layer) and TLS (Transport Layer Security) are encryption protocols that ensure the safety of data transmitted over HTTPS.</p><p>When your browser connects to Google’s server using HTTPS, it agrees with Google’s server on the version of SSL/TLS to use and creates a secure, encrypted channel for data transmission.</p><p>To explain what is happening here, let me use an analogy.</p><p>HTTPS is like a locked box used to send messages over the internet. When you use HTTPS to send a message, you put it in the locked box and send it to the recipient. Only the recipient has the key to unlock the box and read the message.</p><p>SSL/TLS are like special codes used to lock and unlock the box. When you use HTTPS to send a message, you and the recipient agree on the code to use to lock and unlock the box. This way, only you and the recipient know the code and can read the message.</p><p>When you enter “<a href="http://google.com/">google.com</a>” into your browser, the browser is like the sender of the message. The server hosting <a href="http://google.com/">google.com</a> is like the recipient. The browser sends a request for the webpage using HTTPS, which is like putting the request in a locked box and sending it to the server. The server then sends the webpage back to the browser using HTTPS, which is like putting the webpage in the locked box and sending it back to the browser.</p><p>Load-balancer</p><p>A load balancer is a tool that distributes incoming network traffic across a group of servers or resources. Its main function is to ensure that the traffic is distributed evenly across the servers to prevent overloading any single server and to increase the overall capacity and reliability of the system.</p><p>Google, which receives billions of website visitors a day, requires many servers to serve all these users. Therefore, they need to set up a load balancer to ensure that some servers are not overburdened while others are underutilized. When a browser tries to access <a href="http://google.com/">google.com</a>, the load balancer receives the incoming request from the browser and forwards it to one of the servers in the Google server network. The server chosen will depend on the type of load balancing algorithm implemented.</p><p>Web Server</p><p>A web server is a software that is in charge of managing requests for web pages from clients (such as a browser attempting to access <a href="http://google.com/">google.com</a>). When a client sends a request for a web page to a website server, the server handles the request and returns the appropriate response to the client.</p><p>This means that Google’s server will obtain a request from the load balancer when attempting to access <a href="http://google.com/">google.com</a>.</p><p>The web server would then handle the request and produce a response, which would usually consist of the HTML, CSS, and JavaScript files that make up the web page.</p><p>The website server would then send this response back to the load balancer, which would forward it to the browser. The browser would then use the HTML, CSS, and JavaScript files to display the web page for the user.</p><p>Server for Applications and Database</p><p>Unlike the web server, the application server handles dynamic content. When using “<a href="http://google.com/">google.com</a>,” the application server will be responsible for producing the search results (which change based on the query you input into the search engine).</p><p>When you submit a search query to Google, the request is first sent to the load balancer, which forwards it to one of the web servers in the Google server network. The web server then sends the request to the application server, which handles the request and produces the search results. Depending on the complexity of the search query, the application server may need to make a request to a database to retrieve the necessary data.</p><p>For instance, if you are searching for a particular product on an e-commerce website, the application server may need to obtain information about the product from a database.</p><p>Once the application server has acquired the required data, it sends it back to the website server, which includes it in the response that is sent back to the browser. The browser then uses this information to display the search results to you.</p><p>Displaying the Web Page</p><p>When a browser receives a response from a website server, it processes the HTML, CSS, and JavaScript files that are included in the response in order to display the web page. The displaying process involves interpreting the HTML and CSS code, displaying any images or other media that are included on the page, and executing any JavaScript code that is present on the page.</p><p>In your instance, your browser would receive the response from the website server, which includes the HTML, CSS, and JavaScript files that make up the Google web page. The browser will utilize these files to display the webpage and present it to you. This method typically includes the following:</p><p>presenting the text and pictures on the webpage in the appropriate positions</p><p>arranging the text and design in line with the CSS styles</p><p>performing any JavaScript code that exists on the webpage</p><p>After the webpage has been entirely displayed, you can now engage with it by pressing links, typing text, or interacting with other features on the webpage.</p><p>In conclusion, I hope that this short post has given you a better understanding of everything that occurs “under the hood” when you type <a href="http://www.google.com/">www.google.com</a> into your browser and press Enter</p><p>I appreciate you reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3e812ff67ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>