Web Basics

Pre-history - Dewey Decimal System - indexing libraries (card catalog)

  • Dewey decimal number ~ IP Address
  • wouldn't it be cool if books could link to other books & automatically link to other pieces of text?
  • CIRCUIT switched: already reserved line

  • more reliable, faster
  • but also, if a wire fails, you're done
  • probably less secure, since if you have the wire, you have all info
  • latency tends to be better for like 2 ppl, but like 1000 ppl would be waiting
  • you don't have to worry about breaking up data into "packets" and putting them back together (and making sure they're still the same)
  • easier to implement
  • landlines (need a LOT of circuits)
  • eavesdropping
  • better for real-time things
  • PACKET switched: break chunks of voice, encode it, wrap it up, send it across network, decode packet, play it back so fast that you can't tell that there is a delay.
  • this way you can share packets by multiplexing
  • slower, less reliable, but packets can find other ways to get around if a wire fails because it's not limited to that.
  • probably more secure, since it'd be harder to follow packets
  • easier to maintain bc you don't need more wires (can keep adding hardware and the router has more routes to get there)
  • packets can get lost
  • eavesdropping is possible (most traffic is switched - it knows to just send to your computer. if your computer says "i am all the IP addresses, send them all to me!" then it can get all of the traffic and eavesdrop.

Routers drop packets on purpose when they get too backed up. (IP) TCP is reliable. IP & TCP work together

what's my ip? checkip.dyndns.com

view-source:website

DNS translates a server name to IP The web doesn't assume that the web is going to do what it's supposed to do. What can be verified and trusted? that's the job of each individual client

on the browser, the web usually ignores tags and stuff it doesn't understand, rather than crashing / complaining.

~EMBRACE THE CHAOS OF WEB~