---
# System prepended metadata

title: What is the internet?
tags: [mod1]

---

---
title: What is the internet?
tags: mod1
---

# What is the internet?
View slides at: https://hackmd.io/@feb22/S1QcbuYy5
### A network of networks, including the internet of things
![](https://i.imgur.com/PWMKSDA.png)

DNS is the global switchboard that connects IP addresses to domains

---

# It's got Packets! 📨

The main mechanism of the internet to data is the request/response cycle

![](https://i.imgur.com/YgHztck.png)

Individual packets are wrapped in a **protocol**(a prescribed order and syntax for presenting state information)to notate either **TCP**(Transmission Control Protocol) or **UDP**(User Datagram Protocol)

We use Hypertext Transfer Protocol for transferring data over a network, requires TCP

Version of HTTP before the newest(v3) was based on TCP/IP

---

## What is the purpose of HTTP?

![](https://i.imgur.com/NBEn6t9.png)

Doesn't just transfers data, but designates a **method** for that data that we can utilize to Create/Read/Update/Delete entries to database tables

Other protocols include FTP, SMPTP, POP

**OK, so that's what's all going through the series of tubes!**

---

# Where does our code(as web devs) do it's work?

## Browsers
* Think of the address bar as the entry point to a portal. In mobile apps and connected devices the addresses are going to be controlled by interaction and hidden in the background. Either way, there is an HTTP verb associated with the endpoint. JS interpretor is built into rendering engine.
* Built in developer tools and APIs(Application programming interface)
* Renders DOM(Document Object Model - a tree data structure)

## Servers
Software we write to set up a request/response schema that interacts with a database. Can be written in languages besides JS

## UI (User Interface)
The portion of the front-end that facilitates user stories 

## Locally in Production
Using Node/Python,connecting to localhost


