Data packets traveled over cables and radio waves and through routers and switches from our web server to your computer or device.
Your computer or smartphone received those packets and passed them to your device's browser, and your browser interpreted the data within the packets in order to display the text you are reading now.
๐ Here is what goes under the hood in milliseconds between your browser and HGPE server after you opened this website: ๐
๐ DNS query
When your browser started to load this webpage, it likely first made a DNS query to find out this website's IP address.
๐ซฑ๐ซฒ TCP handshake
Your browser opened a connection with that IP address.
๐ TLS handshake
Your browser also set up encryption between Hitchhiker's Guide to Privacy Engineering web server and your device so that attackers cannot read the data packets that travel between those two endpoints.
๐ฉ HTTP request
Your browser requested the content that appears on this webpage.
๐ HTTP response
Servers transmit the content in the form of HTML, CSS, and JavaScript code, broken up into a series of data packets. Once your device received the packets and verified it had received all of them, your browser interpreted the HTML, CSS, and JavaScript code contained in the packets to render this article about how the Internet works.
Now let's take a deeper look at how actually websites work.