VibeKoding / Ensiklopedia ยท Fondasi KuatEnsiklopedia ยท Fondasi Kuat / Computer System Overview: From Boot to Web VisitComputer System Overview: From Boot to Web Visit
VK

Computer System Overview: From Boot to Web VisitComputer System Overview: From Boot to Web Visit

๐Ÿ“š Ensiklopedia ยท Fondasi KuatEnsiklopedia ยท Fondasi Kuat ๐ŸŒ Dual Bahasa (ID / EN) โšก VibeKoding Native

Ensiklopedia VibeKoding: Computer System Overview: From Boot to Web Visit.Ensiklopedia VibeKoding: Computer System Overview: From Boot to Web Visit.

๐Ÿ’ก Tips Praktis๐Ÿ’ก Pro Tip

Have you ever wondered what happens between pressing your computer's power button and finally seeing a webpage in your browser? This process is like a relay race โ€” hardware powers up and wakes the firmware, the firmware finishes checking and passes the baton to the operating system, the OS prepares the environment so the browser can run, and the browser reaches across the network to retrieve a webpage from a distant server. Every step depends on the successful completion of the previous one. If any runner drops the baton, subsequent steps cannot proceed. Understanding this complete chain will help you build a holistic understanding of computer systems and is an essential step on the path to becoming a full-stack engineer.Have you ever wondered what happens between pressing your computer's power button and finally seeing a webpage in your browser? This process is like a relay race โ€” hardware powers up and wakes the firmware, the firmware finishes checking and passes the baton to the operating system, the OS prepares the environment so the browser can run, and the browser reaches across the network to retrieve a webpage from a distant server. Every step depends on the successful completion of the previous one. If any runner drops the baton, subsequent steps cannot proceed. Understanding this complete chain will help you build a holistic understanding of computer systems and is an essential step on the path to becoming a full-stack engineer.

What will you learn?What will you learn?

This article guides you through the five stages from pressing the power button to seeing a webpage, in the actual order events occur:This article guides you through the five stages from pressing the power button to seeing a webpage, in the actual order events occur:

  1. Hardware Boot (Section 1) โ†’ How current wakes the CPUHardware Boot (Section 1) โ†’ How current wakes the CPU
  2. Firmware Self-Test (Section 2) โ†’ How BIOS/UEFI confirms hardware is normal and finds the boot deviceFirmware Self-Test (Section 2) โ†’ How BIOS/UEFI confirms hardware is normal and finds the boot device
  3. OS Boot (Section 3) โ†’ How the kernel loads and the desktop appearsOS Boot (Section 3) โ†’ How the kernel loads and the desktop appears
  4. Browser Launch (Section 4) โ†’ How an application is run by the operating systemBrowser Launch (Section 4) โ†’ How an application is run by the operating system
  5. Network Request (Section 5) โ†’ The complete network journey from entering a URL to page renderingNetwork Request (Section 5) โ†’ The complete network journey from entering a URL to page rendering
  6. Each step builds on the previous one, and none can be skipped.Each step builds on the previous one, and none can be skipped.

    ------

    1. Pressing Power: Hardware Awakening1. Pressing Power: Hardware Awakening

    1.1 Power Supply Startup1.1 Power Supply Startup

    When you press the power button, the Power Supply Unit (PSU) starts working, converting alternating current (220V) into direct current (12V, 5V, 3.3V, etc.) to power all hardware components.When you press the power button, the Power Supply Unit (PSU) starts working, converting alternating current (220V) into direct current (12V, 5V, 3.3V, etc.) to power all hardware components.

    CODE
    Power button โ†’ Power Supply Unit (PSU) โ†’ DC output โ†’ Powers motherboard components
    

    1.2 Motherboard Chipset Wake-up1.2 Motherboard Chipset Wake-up

    Once the power stabilizes, the motherboard chipset begins working. It's like the computer's "head dispatcher," responsible for coordinating all hardware components.Once the power stabilizes, the motherboard chipset begins working. It's like the computer's "head dispatcher," responsible for coordinating all hardware components.

    1.3 CPU Reset1.3 CPU Reset

    After receiving the reset signal, the CPU clears all internal registers and cache, and starts executing instructions from a preset address. This address typically points to the BIOS/UEFI chip.After receiving the reset signal, the CPU clears all internal registers and cache, and starts executing instructions from a preset address. This address typically points to the BIOS/UEFI chip.

    ------

    > First relay leg complete At this point, the hardware-level work is done: the power supply converted AC into stable DC, the motherboard chipset was awakened and began coordinating components, and the CPU completed its reset, cleared registers, and is ready to execute its first instruction.> First relay leg complete At this point, the hardware-level work is done: the power supply converted AC into stable DC, the motherboard chipset was awakened and began coordinating components, and the CPU completed its reset, cleared registers, and is ready to execute its first instruction.

    >>

    > But note โ€” at this moment, the CPU is like a "newborn baby just opening its eyes." It can execute instructions but knows nothing about its environment: how much memory is installed? Is the graphics card working? Where is the hard drive? Which device should it boot the OS from? The CPU can't answer these questions itself.> But note โ€” at this moment, the CPU is like a "newborn baby just opening its eyes." It can execute instructions but knows nothing about its environment: how much memory is installed? Is the graphics card working? Where is the hard drive? Which device should it boot the OS from? The CPU can't answer these questions itself.

    >>

    > So the first instruction the CPU executes after reset is a jump to a fixed memory address โ€” this address points to the BIOS/UEFI firmware chip permanently soldered on the motherboard. From this moment on, control passes from pure hardware to firmware. BIOS/UEFI's mission is clear: check that all hardware is functioning properly, then find and boot the operating system. This is the second leg of the relay.> So the first instruction the CPU executes after reset is a jump to a fixed memory address โ€” this address points to the BIOS/UEFI firmware chip permanently soldered on the motherboard. From this moment on, control passes from pure hardware to firmware. BIOS/UEFI's mission is clear: check that all hardware is functioning properly, then find and boot the operating system. This is the second leg of the relay.

    2. BIOS/UEFI: Hardware Self-Test2. BIOS/UEFI: Hardware Self-Test

    ------

    > Second relay leg complete BIOS/UEFI has successfully fulfilled its three missions: confirmed through POST that memory, graphics card, keyboard, and other hardware are all working normally; initialized each hardware component's operating mode; and found the boot sector on the hard drive according to the boot order.> Second relay leg complete BIOS/UEFI has successfully fulfilled its three missions: confirmed through POST that memory, graphics card, keyboard, and other hardware are all working normally; initialized each hardware component's operating mode; and found the boot sector on the hard drive according to the boot order.

    >>

    > But BIOS/UEFI's role ends here โ€” it's essentially a "health examiner + dispatcher." It can check if hardware is healthy and decide which device to boot from, but it won't manage your files, run your applications, or display a beautiful desktop. These complex tasks require a more powerful software to take over โ€” the operating system.> But BIOS/UEFI's role ends here โ€” it's essentially a "health examiner + dispatcher." It can check if hardware is healthy and decide which device to boot from, but it won't manage your files, run your applications, or display a beautiful desktop. These complex tasks require a more powerful software to take over โ€” the operating system.

    >>

    > The handoff is very specific: BIOS/UEFI reads the bootloader code from the first sector of the hard drive (boot sector), loads it into memory, and tells the CPU to jump to this code and begin execution. From this moment, control officially passes from firmware to the OS bootloader. The bootloader will gradually load the OS kernel, start system services, and ultimately present the familiar desktop. The most complex leg of this chain has begun.> The handoff is very specific: BIOS/UEFI reads the bootloader code from the first sector of the hard drive (boot sector), loads it into memory, and tells the CPU to jump to this code and begin execution. From this moment, control officially passes from firmware to the OS bootloader. The bootloader will gradually load the OS kernel, start system services, and ultimately present the familiar desktop. The most complex leg of this chain has begun.

    3. OS Boot: From Kernel to Desktop3. OS Boot: From Kernel to Desktop

    ------

    > Third relay leg complete The operating system has fully started, and the desktop is displayed. Let's review what this leg accomplished: the bootloader read the kernel from disk, the kernel took control of the CPU and memory, system services started one by one (networking, audio, security center...), and finally the graphical interface rendered the desktop.> Third relay leg complete The operating system has fully started, and the desktop is displayed. Let's review what this leg accomplished: the bootloader read the kernel from disk, the kernel took control of the CPU and memory, system services started one by one (networking, audio, security center...), and finally the graphical interface rendered the desktop.

    >>

    > At this point, the OS is like a building with water and electricity connected and property management moved in โ€” process management allocates rooms to each resident (program), memory management allocates space, the file system manages the warehouse, and the network protocol stack handles external communications. These "public services" are the infrastructure all applications run on. Without them, no program could start.> At this point, the OS is like a building with water and electricity connected and property management moved in โ€” process management allocates rooms to each resident (program), memory management allocates space, the file system manages the warehouse, and the network protocol stack handles external communications. These "public services" are the infrastructure all applications run on. Without them, no program could start.

    >>

    > Now you want to go online, so you double-click the browser icon on the desktop. Behind this simple action, the OS must do a series of tasks: find where the browser's executable file is on the hard drive, create an independent process for it, allocate memory space, and load the program code... This is a direct demonstration of the OS's "process management" capability. Next, let's see how the browser is launched.> Now you want to go online, so you double-click the browser icon on the desktop. Behind this simple action, the OS must do a series of tasks: find where the browser's executable file is on the hard drive, create an independent process for it, allocate memory space, and load the program code... This is a direct demonstration of the OS's "process management" capability. Next, let's see how the browser is launched.

    4. Opening the Browser: Application Startup4. Opening the Browser: Application Startup

    4.1 Application Launch Process4.1 Application Launch Process

    When you double-click the browser icon, the operating system will:When you double-click the browser icon, the operating system will:

    1. Find the executable file: Based on file associations, locate the browser's .exe (Windows) or executable fileFind the executable file: Based on file associations, locate the browser's .exe (Windows) or executable file
    2. Create a process: Create a new process for the browserCreate a process: Create a new process for the browser
    3. Load the program: Load the browser's code from the hard drive into memoryLoad the program: Load the browser's code from the hard drive into memory
    4. Initialize: Start the browser's main thread, rendering engine, network engine, etc.Initialize: Start the browser's main thread, rendering engine, network engine, etc.
    5. CODE
      Browser launch process: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ 1. Double-click icon โ”‚ โ”‚ 2. OS finds browser executable โ”‚ โ”‚ 3. Create browser process โ”‚ โ”‚ 4. Load browser code into memory โ”‚ โ”‚ 5. Initialize modules (rendering, โ”‚ โ”‚ networking, JS engine) โ”‚ โ”‚ 6. Display browser window โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
      

      4.2 Major Components of a Browser4.2 Major Components of a Browser

      A modern browser is a complex "operating system," primarily composed of:A modern browser is a complex "operating system," primarily composed of:

      ModuleFunction
      User InterfaceAddress bar, tabs, bookmarks, etc.
      Browser EngineCoordinates UI and rendering engine
      Rendering EngineParses HTML/CSS and displays webpages
      JavaScript EngineExecutes JavaScript code
      Networking ModuleSends HTTP requests
      UI BackendDraws basic UI components
      Data StorageCookies, LocalStorage, etc.

      ------

      > Fourth relay leg complete The browser has launched successfully. The OS created an independent process for it, allocated memory space, and the browser's internal modules have all initialized: the rendering engine is ready to parse HTML/CSS, the JavaScript engine is ready to execute scripts, and the networking module is ready to send and receive data.> Fourth relay leg complete The browser has launched successfully. The OS created an independent process for it, allocated memory space, and the browser's internal modules have all initialized: the rendering engine is ready to parse HTML/CSS, the JavaScript engine is ready to execute scripts, and the networking module is ready to send and receive data.

      >>

      > You can think of the browser at this moment as a car that's been started โ€” the engine is running, the dashboard is lit, and the navigation system is ready. But the car is still parked, because the driver (you) hasn't told it "where to go." The browser window is blank, the cursor blinks in the address bar, waiting for your input.> You can think of the browser at this moment as a car that's been started โ€” the engine is running, the dashboard is lit, and the navigation system is ready. But the car is still parked, because the driver (you) hasn't told it "where to go." The browser window is blank, the cursor blinks in the address bar, waiting for your input.

      >>

      > When you type https://www.example.com in the address bar and press Enter, a journey spanning the entire internet begins. The browser's networking module takes over this request: first parsing the URL structure, then translating the domain name into an IP address via DNS, establishing a TCP connection with the distant server across the network, negotiating an encrypted channel, sending an HTTP request, waiting for the server's response, and finally passing the received HTML/CSS/JS code to the rendering engine to draw the webpage you see. This is the leg with the most steps and the richest set of protocols โ€” and the one Web developers need to understand most.> When you type https://www.example.com in the address bar and press Enter, a journey spanning the entire internet begins. The browser's networking module takes over this request: first parsing the URL structure, then translating the domain name into an IP address via DNS, establishing a TCP connection with the distant server across the network, negotiating an encrypted channel, sending an HTTP request, waiting for the server's response, and finally passing the received HTML/CSS/JS code to the rendering engine to draw the webpage you see. This is the leg with the most steps and the richest set of protocols โ€” and the one Web developers need to understand most.

      5. Accessing a URL: The Complete Network Request Process5. Accessing a URL: The Complete Network Request Process

      5.1 URL Overview5.1 URL Overview

      A URL (Uniform Resource Locator) is the address of a resource. Just like a real-world address, it locates resources on the internet.A URL (Uniform Resource Locator) is the address of a resource. Just like a real-world address, it locates resources on the internet.

      CODE
      URL structure: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ https:// โ”‚ www.example.com โ”‚ /path/to/page โ”‚ ?query=1 โ”‚ โ”‚ Protocol โ”‚ Domain โ”‚ Path โ”‚ Query โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
      
      • Protocol: How to access the resource (http, https, ftp, etc.)Protocol: How to access the resource (http, https, ftp, etc.)
      • Domain: The server's addressDomain: The server's address
      • Path: The resource's location on the serverPath: The resource's location on the server
      • Query: Additional parametersQuery: Additional parameters

      5.2 The Complete Process of Accessing a URL5.2 The Complete Process of Accessing a URL

      When you access https://www.example.com, here's what happens:When you access https://www.example.com, here's what happens:

      Step 1: URL ParsingStep 1: URL Parsing

      The browser first parses the URL, extracting the protocol, domain, path, and other information.The browser first parses the URL, extracting the protocol, domain, path, and other information.

      CODE
      URL parsing process: https://www.example.com/index.html โ†“ Protocol: https Domain: www.example.com Path: /index.html
      

      Step 2: DNS ResolutionStep 2: DNS Resolution

      Computers access servers over the network using IP addresses (e.g., 93.184.216.34), not domain names. So the domain name must be converted to an IP address. This process is called DNS resolution.Computers access servers over the network using IP addresses (e.g., 93.184.216.34), not domain names. So the domain name must be converted to an IP address. This process is called DNS resolution.

      CODE
      DNS resolution flow: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Browser cache โ†’ hosts file โ†’ Local DNS cache โ†’ DNS server โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ Actual process: 1. Browser checks cache (visited recently?) 2. Operating system checks DNS cache 3. Send query request to DNS server 4. DNS server returns IP address
      

      Step 3: Establish TCP ConnectionStep 3: Establish TCP Connection

      After obtaining the IP address, the browser needs to establish a TCP connection with the server. TCP is a transport layer protocol that ensures reliable data transmission.After obtaining the IP address, the browser needs to establish a TCP connection with the server. TCP is a transport layer protocol that ensures reliable data transmission.

      CODE
      TCP three-way handshake: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Client โ†’ Server: SYN (synchronization request) โ”‚ โ”‚ Server โ†’ Client: SYN-ACK (acknowledge and synchronize) โ”‚ โ”‚ Client โ†’ Server: ACK (acknowledgment) โ”‚ โ”‚ โ†“ โ”‚ โ”‚ Connection established! โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
      

      For HTTPS, a TLS/SSL handshake is also needed to establish an encrypted channel.For HTTPS, a TLS/SSL handshake is also needed to establish an encrypted channel.

      Step 4: Send HTTP RequestStep 4: Send HTTP Request

      After the connection is established, the browser sends an HTTP request to the server:After the connection is established, the browser sends an HTTP request to the server:

      CODE
      HTTP request format: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ GET /index.html HTTP/1.1 โ”‚ โ”‚ Host: www.example.com โ”‚ โ”‚ User-Agent: Mozilla/5.0... โ”‚ โ”‚ Accept: text/html โ”‚ โ”‚ โ”‚ โ”‚ (empty line) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
      

      Common HTTP methods:Common HTTP methods:

      MethodMeaningPurpose
      GETRetrieve a resourceBrowsing webpages
      POSTSubmit dataLogin, form submission
      PUTUpload a resourceFile upload
      DELETEDelete a resourceData deletion

      Step 5: Server Processes the RequestStep 5: Server Processes the Request

      After the server (typically a web server like Nginx or Apache) receives the request:After the server (typically a web server like Nginx or Apache) receives the request:

      1. Parse the request: Understand what the client wantsParse the request: Understand what the client wants
      2. Process business logic: Call backend programs (e.g., Python, Node.js, Java)Process business logic: Call backend programs (e.g., Python, Node.js, Java)
      3. Query the database: Retrieve needed dataQuery the database: Retrieve needed data
      4. Generate response: Assemble data into HTML, JSON, or other formatsGenerate response: Assemble data into HTML, JSON, or other formats
      5. CODE
        Server processing flow: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ 1. Web server receives request (Nginx/Apache) โ”‚ โ”‚ 2. Route to the appropriate handler based on path โ”‚ โ”‚ 3. Execute backend code (API, business logic) โ”‚ โ”‚ 4. Query database if needed, retrieve data โ”‚ โ”‚ 5. Assemble response (HTML/JSON/CSS/JS) โ”‚ โ”‚ 6. Return HTTP response โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        

        Step 6: Return HTTP ResponseStep 6: Return HTTP Response

        The server returns an HTTP response containing a status code, response headers, and response body:The server returns an HTTP response containing a status code, response headers, and response body:

        CODE
        HTTP response format: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ HTTP/1.1 200 OK โ”‚ โ”‚ Content-Type: text/html โ”‚ โ”‚ Content-Length: 1234 โ”‚ โ”‚ โ”‚ โ”‚ <!DOCTYPE html> โ”‚ โ”‚ <html>...</html> โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        

        Common status codes:Common status codes:

        Status CodeMeaning
        200Success
        301/302Redirect
        404Resource not found
        500Server error

        Step 7: Browser Renders the PageStep 7: Browser Renders the Page

        After receiving the response, the browser begins rendering the page:After receiving the response, the browser begins rendering the page:

        1. Parse HTML: Build the DOM treeParse HTML: Build the DOM tree
        2. Parse CSS: Calculate styles and build the render treeParse CSS: Calculate styles and build the render tree
        3. Execute JavaScript: Run JS code in the pageExecute JavaScript: Run JS code in the page
        4. Paint the page: Display content on screenPaint the page: Display content on screen
        5. CODE
          Browser rendering process: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ 1. HTML parsing โ†’ DOM tree โ”‚ โ”‚ 2. CSS parsing โ†’ Style rules โ”‚ โ”‚ 3. DOM + CSS โ†’ Render tree โ”‚ โ”‚ 4. Layout calculation โ†’ Size and position of elements โ”‚ โ”‚ 5. Paint โ†’ Pixels displayed on screen โ”‚ โ”‚ 6. Composite โ†’ Multiple layers merged for display โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          

          ------

          > Final relay leg complete The webpage is finally displayed on your screen! Let's review how many stages this last leg went through: the browser parsed the URL to extract the protocol and domain, translated the domain into an IP address through layered DNS queries, established a reliable connection with the server via TCP three-way handshake, built an encrypted channel through TLS handshake, sent an HTTP request, the server processed business logic, queried the database, assembled response data and returned it, and finally the browser's rendering engine parsed the HTML into a DOM tree, computed CSS into style rules, merged both into a render tree, calculated layout, and painted pixels onto the screen one by one.> Final relay leg complete The webpage is finally displayed on your screen! Let's review how many stages this last leg went through: the browser parsed the URL to extract the protocol and domain, translated the domain into an IP address through layered DNS queries, established a reliable connection with the server via TCP three-way handshake, built an encrypted channel through TLS handshake, sent an HTTP request, the server processed business logic, queried the database, assembled response data and returned it, and finally the browser's rendering engine parsed the HTML into a DOM tree, computed CSS into style rules, merged both into a render tree, calculated layout, and painted pixels onto the screen one by one.

          >>

          > Now let's zoom out and review the full picture of this relay race from start to finish. From the moment the power button is pressed: current wakes the hardware (1st leg) โ†’ firmware checks devices and finds the boot disk (2nd leg) โ†’ the OS boots completely from kernel to desktop (3rd leg) โ†’ the browser is launched as an application by the OS (4th leg) โ†’ network requests cross the internet to retrieve data and render it as a page (5th leg). Five legs connected end to end, each building on the previous one's results. Without any single leg, you couldn't see the webpage in front of you.> Now let's zoom out and review the full picture of this relay race from start to finish. From the moment the power button is pressed: current wakes the hardware (1st leg) โ†’ firmware checks devices and finds the boot disk (2nd leg) โ†’ the OS boots completely from kernel to desktop (3rd leg) โ†’ the browser is launched as an application by the OS (4th leg) โ†’ network requests cross the internet to retrieve data and render it as a page (5th leg). Five legs connected end to end, each building on the previous one's results. Without any single leg, you couldn't see the webpage in front of you.

          >>

          > Next, let's use a complete flowchart to connect these five stages and visualize their dependencies.> Next, let's use a complete flowchart to connect these five stages and visualize their dependencies.

          6. Complete Process Review6. Complete Process Review

          Let's connect the entire process:Let's connect the entire process:

          CODE
          Complete process from pressing power to visiting a website: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ 1. Press Power โ”‚ โ”‚ โ””โ”€โ”€ Power startup โ†’ Motherboard wake-up โ†’ CPU reset โ†’ Execute BIOS/UEFI โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ 2. BIOS/UEFI Boot โ”‚ โ”‚ โ””โ”€โ”€ Hardware self-test โ†’ Find boot device โ†’ Read bootloader โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ 3. Operating System Boot โ”‚ โ”‚ โ””โ”€โ”€ Bootloader โ†’ Load kernel โ†’ Start services โ†’ Display desktop โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ 4. Open Browser โ”‚ โ”‚ โ””โ”€โ”€ Double-click icon โ†’ Create process โ†’ Load program โ†’ Display window โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ 5. Access URL โ”‚ โ”‚ โ””โ”€โ”€ URL parsing โ†’ DNS resolution โ†’ TCP connection โ†’ HTTP request โ”‚ โ”‚ โ†’ Server processing โ†’ HTTP response โ†’ Browser rendering โ†’ Display page โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          

          ------

          > Looking at the entire chain, you'll notice an interesting pattern: each stage solves completely different problems, and the technical domains involved are entirely different. The 1st leg is in the domain of electrical engineering โ€” power conversion, circuit design, signal transmission; the 2nd leg belongs to firmware programming โ€” using low-level code to directly control hardware; the 3rd leg is the world of operating systems โ€” process scheduling, memory management, file systems, which are core topics in computer science; the 4th leg involves application development โ€” how to design a complex software architecture like a browser; and the 5th leg spans computer networking and frontend development โ€” from network protocols like DNS, TCP/IP, and HTTP to HTML/CSS/JS parsing and rendering.> Looking at the entire chain, you'll notice an interesting pattern: each stage solves completely different problems, and the technical domains involved are entirely different. The 1st leg is in the domain of electrical engineering โ€” power conversion, circuit design, signal transmission; the 2nd leg belongs to firmware programming โ€” using low-level code to directly control hardware; the 3rd leg is the world of operating systems โ€” process scheduling, memory management, file systems, which are core topics in computer science; the 4th leg involves application development โ€” how to design a complex software architecture like a browser; and the 5th leg spans computer networking and frontend development โ€” from network protocols like DNS, TCP/IP, and HTTP to HTML/CSS/JS parsing and rendering.

          >>

          > This also explains why a "full-stack engineer" needs broad knowledge: every line of frontend code you write must travel through this entire chain before reaching the user. Understanding each link helps you quickly locate problems โ€” is it a network layer issue? A server problem? Or a browser rendering issue?> This also explains why a "full-stack engineer" needs broad knowledge: every line of frontend code you write must travel through this entire chain before reaching the user. Understanding each link helps you quickly locate problems โ€” is it a network layer issue? A server problem? Or a browser rendering issue?

          >>

          > The knowledge map below organizes these technical domains and points the way for your further learning.> The knowledge map below organizes these technical domains and points the way for your further learning.

          7. Knowledge Map7. Knowledge Map

          The knowledge domains covered in this chapter:The knowledge domains covered in this chapter:

          CODE
          Computer System Overview โ”œโ”€โ”€ Hardware Basics โ”‚ โ”œโ”€โ”€ Power Supply (PSU) โ”‚ โ”œโ”€โ”€ Motherboard Chipset โ”‚ โ””โ”€โ”€ CPU โ”œโ”€โ”€ BIOS/UEFI โ”‚ โ”œโ”€โ”€ POST Self-Test โ”‚ โ”œโ”€โ”€ Boot Order โ”‚ โ””โ”€โ”€ Bootloader โ”œโ”€โ”€ Operating System โ”‚ โ”œโ”€โ”€ Kernel โ”‚ โ”œโ”€โ”€ System Services โ”‚ โ””โ”€โ”€ Desktop Environment โ”œโ”€โ”€ Applications โ”‚ โ”œโ”€โ”€ Process Management โ”‚ โ””โ”€โ”€ Program Loading โ””โ”€โ”€ Network Communication โ”œโ”€โ”€ DNS Resolution โ”œโ”€โ”€ TCP/IP Protocol โ”œโ”€โ”€ HTTP Protocol โ””โ”€โ”€ Browser Rendering
          
          ๐Ÿ’ก Tips Praktis๐Ÿ’ก Pro Tip

          If you want to dive deeper into any stage, you can continue learning: - From Transistors to CPU: Understand computer hardware fundamentals - Operating Systems (Processes/Memory/File Systems): Deepen your understanding of operating systems - Computer Networks: Deepen your understanding of network protocolsIf you want to dive deeper into any stage, you can continue learning: - From Transistors to CPU: Understand computer hardware fundamentals - Operating Systems (Processes/Memory/File Systems): Deepen your understanding of operating systems - Computer Networks: Deepen your understanding of network protocols