Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How the Web Works: Lecture 1

How the Web Works: Lecture 1

This talk was designed for a class (98-135) taught at Carnegie Mellon University in Spring 2010.

Abhinav Sharma

January 20, 2010
Tweet

More Decks by Abhinav Sharma

Other Decks in Programming

Transcript

  1. Abhinav CS + HCI Sophomore Dabbled with Online Biz. Likes

    AI, ML, Theory ... and Photography ... and Star Wars!
  2. Abhinav CS + HCI Sophomore Dabbled with Online Biz. Likes

    AI, ML, Theory ... and Photography ... and Star Wars! ... and Teaching?
  3. You 70+ Students All Colleges except MCS 38% 28% 23%

    3% 4%4% SCS CIT HSS TSB CFA Others
  4. You 70+ Students All Colleges except MCS How the Web

    Works? 38% 28% 23% 3% 4%4% SCS CIT HSS TSB CFA Others
  5. You 70+ Students All Colleges except MCS How the Web

    Works? Basic Programming 38% 28% 23% 3% 4%4% SCS CIT HSS TSB CFA Others
  6. You 70+ Students All Colleges except MCS How the Web

    Works? Basic Programming Insanely Smart! 38% 28% 23% 3% 4%4% SCS CIT HSS TSB CFA Others
  7. Not In the Class? Waitlist Size: 8 Everyone should get

    in Didn’t register otherwise? No Problem, email me.
  8. Grades Pass / Fail Doesn’t Affect GPA Based on 5

    Homeworks Guided Tutorials Optional Mini-Projects Passing is Easy!
  9. Course Structure Web Development 6 Social Web 2 The Next

    Big Thing 2 Monetization 2 Security 2
  10. This Course Isn’t Web Apps (15-437) Science of the Web

    (15-396) Networks (15-441) App. Design and Dev. (67-272)
  11. This Course Is A Bit of Everything Distinct Components Know

    how things work Find your interest Kickstart your learning
  12. 1988 Internet Relay Chat Real time communication Led to Instant

    Messaging Still widely used #cslounge on Freenode IRC
  13. 1996 Jack Smith, Sabeer Bhatia Email in a Browser Portable

    Access Sold to Microsoft $400m Hotmail
  14. 1996 Jack Smith, Sabeer Bhatia Email in a Browser Portable

    Access Sold to Microsoft $400m Hotmail
  15. 1998 Larry Page, Sergey Brin Rank based on Popularity Popularity

    ~ Incoming Links We’ll talk about PageRank Google
  16. Hub

  17. Hub

  18. Hub

  19. Hub

  20. Hub

  21. Routers Talk across Protocols Uses protocol software Standardizes Communication TCP/IP

    for the Internet Internet: Ad-Hoc Network Think of ISP as a big router!
  22. TCP/IP Transfer Control Protocol / Internet Protocol Handles All Internet

    Communication FTP File Transfer Protocol Transferring Files HTTP Hypertext Transfer Protocol Usually for Webpages http://www.google.com SSH Secure Shell Remote Control Computers Remember C@CM?
  23. TCP/IP Transfer Control Protocol / Internet Protocol Handles All Internet

    Communication FTP File Transfer Protocol Transferring Files HTTP Hypertext Transfer Protocol Usually for Webpages http://www.google.com SSH Secure Shell Remote Control Computers Remember C@CM? XMPP Extensible Messaging and Presence Protocol (HTTP Binding) Gmail Chat REST Representational State Transfer Facebook/Twitter/YouTube API
  24. Types of Requests But 98135 cares about: GET POST PUT

    DELETE There’s 8 kinds of HTTP Requests! http://en.wikipedia.org/wiki/HTTP_request#Request_methods
  25. GET Tries to “get” content from an address Parameters (if

    any) inside the address Server processes params Ex. Google GET www.google.com/
  26. GET Tries to “get” content from an address Parameters (if

    any) inside the address Server processes params Ex. Google GET www.google.com/?q=abhinav
  27. POST Tries to “submit” information to address. Parameters (usually exist)

    not shown in address Can transmit data like pictures and other files Used in forms Breaks “back” & “forward” POST login.facebook.com USER: [email protected] PASSWORD: my_pass123
  28. Quick Questions Logging in to Facebook Ask Wikipedia for “Dogs”

    Requesting Bank Balance Getting Course Information Hmmm, GET or POST?
  29. PUT & DELETE Uh Oh! Rarely used, but important! Not

    seen in web browsers Used by REST Wait until we use APIs Facebook/Twitter Integration No Problem!