How does the Web work? (v1)

Introduction

Before you can understand how to program the web, you need a more rigorous understanding of the web itself than you likely have now. These concepts provide a more holistic understanding of the ecosystem in which you will be working and will enable you to talk intelligently with other developers about your work.

Learning Outcomes

At the end of this lesson, you should be able to do the following:

Describe what the internet is.
    • The internet is a worldwide network of linked computers. Each of these computers can communicate with each other in a specific format.
Describe what packets are and how they are used to transfer data.
    • Packets are the information of the internet. Packets are sent from the sender to the receiver in a specific format that contains all the information needed to communicate.
Understand the differences between a web page, web server, web browser and search engine.
    • A web page is the page you look at in your browser.
    • A web server is the computer that has the code for how the webpage should look and act.
    • A web browser is a program on a computer that displays web pages.
    • A search engine is a web server that searches all other web servers for information. A user can then pull up the web page on their web browser and search for a site.
Briefly explain what a client is.
    • A client is a computer or internet device that requests information from a server.
Briefly explain what a server is.
    • A server is a computer that receives requests (as packets) from the client and responds with the appropriate data.
Explain what IP addresses are
    • IP addresses are numerical identifications that specifies a destination in a network.
Explain what DNS servers are.
    • DNS Servers are the “phone book” of the internet. They translate domain names into IP addresses.
In your own words, explain what happens when you run a search on google.com.
    • User sends request by clicking search button. Google receives the request, looks for the contents of the request in their databases, and sends back the result as a response.

How Does The Internet Work – Part 1

BREAK: Did you remember to take a break? 🙂

Estimated Total Time: Approx. 1 hour

Make sure you understand the basic Internet concepts described in these resources:

  • Networks
  • Protocols
  • Packets
  • IP Addresses
  • Domain Name Server
  • Routers

How Does the Internet Work – Part 2

Take a break, make a cup of tea or coffee, sit in a relaxed position an enjoy the next 2 videos that go in-depth in how the Internet mechanisms work. Although the 2 videos overlap at explaining the same concepts, each one has its own way of describing them and going in-depth. Make sure that you watch both videos and take notes.

BREAK: Take a 5 to 10-minute break.

Estimated Total Time: Approx. 90 minutes

Additional Resources

This section contains helpful links to other content. It isn’t required, so consider it supplemental material for if you want to dive deeper into something.

  • Listen to Part 1 (starts around 8:30) and Part 2 of Security Now Podcast’s How the web works series.
  • Consider buying the book Tubes: Behind the Scenes at the Internet.
  • Internet Protocol (IP) Addresses
    • (Advanced Topic) | (Duration: 16 minutes)
  • Internet’s Packets: The Transfer Control Protocol (TCP)
    • (Advanced Topic) | (Duration: 10 minutes)
  • If you’re in for a bit more reading, you can check out the Introduction to HTTP online book at LaunchSchool. This book also touches on some topics covered later in the curriculum, such as developer tools and security. Additionally, you can learn about HTTP tools, which you may find helpful in the future.
  • Some advice on reading: We recommend that you only review the immediate links posted in our curriculum. You can always go deeper on any subject if you wish, but be careful not to overload yourself on information!
LOOKING FOR HELP?

When looking for help, try doing so in the following order:

  • Did you try everything you could?
  • Did you read the documentation?
  • Did you Google for it?
  • Did you post your question on Slack/Forum?
  • Did you ask your fellow students for help?
  • Did you ask your Mentors for help?
  • Did you leave a comment on the comments section of this page?
  • Did you ask your Instructor for help?
    • Did you arrange and appointment with your instructor using Calendly? Visit this URL and set up an appointment: https://calendly.com/kostasx
    • Is it urgent? Did you try reaching him on Slack

Material based on Erik Trautman | The Odin Project

UPDATED: 23.03.2021

Leave a Reply