Lecture 4: CSCI E-1 Spring 2013

Lecture 4: CSCI E-1 Spring 2013

9e4d3e53f8525fdff00691a8b843e66b?s=128

Tommy MacWilliam

March 04, 2013
Tweet

Transcript

  1. Computer Science E-1 Lecture 4: Internet

  2. Exam I

  3. Review Session

  4. Feedback Form

  5. Net Neutrality

  6. Protocols

  7. DHCP (again)

  8. DHCP • client: DHCPBROADCAST

  9. DHCP • client: DHCPBROADCAST • server: DHCPOFFER

  10. DHCP • client: DHCPBROADCAST • server: DHCPOFFER • client: DHCPREQUEST

  11. DHCP • client: DHCPBROADCAST • server: DHCPOFFER • client: DHCPREQUEST

    • server: DHCPACK
  12. HTTP

  13. Clients v. Servers

  14. http://example.com

  15. GET /home.php HTTP/1.1 Host: www.facebook.com

  16. GET /home.php HTTP/1.1 Host: www.facebook.com Verb

  17. GET /home.php HTTP/1.1 Host: www.facebook.com Path

  18. GET /home.php HTTP/1.1 Host: www.facebook.com Version

  19. GET /home.php HTTP/1.1 Host: www.facebook.com Header

  20. Telnet

  21. HTTP/1.1 200 OK Date: Wed, 30 Jan 2013 21:43:11 GMT

    Server: Apache/2.2.22 (Fedora) Content-Length: 2422 Content-Type: text/html; charset=UTF-8 Connection: close
  22. HTTP/1.1 200 OK Date: Wed, 30 Jan 2013 21:43:11 GMT

    Server: Apache/2.2.22 (Fedora) Content-Length: 2422 Content-Type: text/html; charset=UTF-8 Connection: close
  23. HTTP/1.1 404 Not Found

  24. https://github.com/404

  25. http://seatgeek.com/404

  26. http://bluefountainmedia.com/404

  27. 200 OK 301 Moved Permanently 302 Found 400 Bad Request

    401 Unauthorized 403 Forbidden 404 Not Found 500 Internal Server Error
  28. 1 Informational 2 Success 3 Redirection 4 Client Error 5

    Server Error
  29. HTTP/1.1 200 OK Date: Wed, 30 Jan 2013 21:43:11 GMT

    Server: Apache/2.2.22 (Fedora) Content-Length: 2422 Content-Type: text/html; charset=UTF-8 Connection: close
  30. HTTP/1.1 200 OK Date: Wed, 30 Jan 2013 21:43:11 GMT

    Server: Microsoft-IIS/7.5 Content-Length: 2422 Content-Type: text/html; charset=UTF-8 Connection: close
  31. HTTP/1.1 200 OK Date: Wed, 30 Jan 2013 21:43:11 GMT

    Server: Apache/2.2.22 (Fedora) Content-Length: 2422 Content-Type: text/html; charset=UTF-8 Connection: close
  32. HTTP/1.1 200 OK Date: Wed, 30 Jan 2013 21:43:11 GMT

    Server: Apache/2.2.22 (Fedora) Content-Length: 2422 Content-Type: text/html; charset=UTF-8 Connection: close
  33. HTML

  34. <h1>CSCI E-1</h1>

  35. <h1>CSCI E-1</h1> Start Tag

  36. <h1>CSCI E-1</h1> End Tag

  37. <h1>CSCI E-1</h1> Value

  38. HTTP/1.1 200 OK Date: Wed, 30 Jan 2013 21:43:11 GMT

    Server: Apache/2.2.22 (Fedora) Content-Length: 2422 Content-Type: text/html; charset=UTF-8 Connection: close
  39. GET /search?q=cats HTTP/1.1 Host: www.google.com

  40. POST /login HTTP/1.1 Host: www.example.com Content-Type: application/x-www-form- urlencoded Content-Length: 35

    username=tommy&password=supersecret
  41. POST /login HTTP/1.1 Host: www.example.com Content-Type: application/x-www-form- urlencoded Content-Length: 35

    username=tommy&password=supersecret
  42. POST /login HTTP/1.1 Host: www.example.com Content-Type: application/x-www-form- urlencoded Content-Length: 35

    username=tommy&password=supersecret
  43. None
  44. None
  45. None
  46. None
  47. None
  48. Email

  49. SMTP

  50. None
  51. Queue

  52. None
  53. Tommy R.J. Ben

  54. Tommy R.J.

  55. Tommy

  56. Stack

  57. Tommy R.J. Ben

  58. R.J. Ben

  59. Ben

  60. name@website.com

  61. None
  62. Delivered-To: macwilliamt@gmail.com Received: by 10.223.64.143 with SMTP id e15csp17700fai; Sat,

    2 Mar 2013 09:46:00 -0800 (PST) Return-Path: <tmacwilliam@live.com> Received: from col0-omc1-s9.col0.hotmail.com (col0-omc1- s9.col0.hotmail.com. [65.55.34.19]) by mx.google.com with ESMTP id hc10si11831922qab.44.2013.03.02.09.45.57; Sat, 02 Mar 2013 09:45:58 -0800 (PST) Received: from COL002-W67 ([65.55.34.7]) by col0-omc1- s9.col0.hotmail.com Return-Path: tmacwilliam@live.com Content-Type: multipart/alternative; boundary="_abc_" From: Tommy MacWilliam <tmacwilliam@live.com> To: "macwilliamt@gmail.com" <macwilliamt@gmail.com> Subject: I love cats Date: Sat, 2 Mar 2013 12:45:41 -0500
  63. Delivered-To: macwilliamt@gmail.com Received: by 10.223.64.143 with SMTP id e15csp17700fai; Sat,

    2 Mar 2013 09:46:00 -0800 (PST) Return-Path: <tmacwilliam@live.com> Received: from col0-omc1-s9.col0.hotmail.com (col0-omc1- s9.col0.hotmail.com. [65.55.34.19]) by mx.google.com with ESMTP id hc10si11831922qab.44.2013.03.02.09.45.57; Sat, 02 Mar 2013 09:45:58 -0800 (PST) Received: from COL002-W67 ([65.55.34.7]) by col0-omc1- s9.col0.hotmail.com Return-Path: tmacwilliam@live.com Content-Type: multipart/alternative; boundary="_abc_" From: Tommy MacWilliam <tmacwilliam@live.com> To: "macwilliamt@gmail.com" <macwilliamt@gmail.com> Subject: I love cats Date: Sat, 2 Mar 2013 12:45:41 -0500
  64. Delivered-To: macwilliamt@gmail.com Received: by 10.223.64.143 with SMTP id e15csp17700fai; Sat,

    2 Mar 2013 09:46:00 -0800 (PST) Return-Path: <tmacwilliam@live.com> Received: from col0-omc1-s9.col0.hotmail.com (col0-omc1- s9.col0.hotmail.com. [65.55.34.19]) by mx.google.com with ESMTP id hc10si11831922qab.44.2013.03.02.09.45.57; Sat, 02 Mar 2013 09:45:58 -0800 (PST) Received: from COL002-W67 ([65.55.34.7]) by col0-omc1- s9.col0.hotmail.com Return-Path: tmacwilliam@live.com Content-Type: multipart/alternative; boundary="_abc_" From: Tommy MacWilliam <tmacwilliam@live.com> To: "macwilliamt@gmail.com" <macwilliamt@gmail.com> Subject: I love cats Date: Sat, 2 Mar 2013 12:45:41 -0500
  65. Delivered-To: macwilliamt@gmail.com Received: by 10.223.64.143 with SMTP id e15csp17700fai; Sat,

    2 Mar 2013 09:46:00 -0800 (PST) Return-Path: <tmacwilliam@live.com> Received: from col0-omc1-s9.col0.hotmail.com (col0-omc1- s9.col0.hotmail.com. [65.55.34.19]) by mx.google.com with ESMTP id hc10si11831922qab.44.2013.03.02.09.45.57; Sat, 02 Mar 2013 09:45:58 -0800 (PST) Received: from COL002-W67 ([65.55.34.7]) by col0-omc1- s9.col0.hotmail.com Return-Path: tmacwilliam@live.com Content-Type: multipart/alternative; boundary="_abc_" From: Tommy MacWilliam <tmacwilliam@live.com> To: "macwilliamt@gmail.com" <macwilliamt@gmail.com> Subject: I love cats Date: Sat, 2 Mar 2013 12:45:41 -0500
  66. helo 250 mx.google.com at your service

  67. auth login 334 VXNlcm5hbWU6

  68. Base64

  69. dXNlcm5hbWVAZ21haWwuY29t 334 UGFzc3dvcmQ6

  70. cGFzc3dvcmQ= 235 2.7.0 Accepted

  71. mail from:<username@gmail.com> 250 2.1.0 OK

  72. rcpt to:<someone@example.com> 250 2.1.5 OK

  73. data 354 Go ahead

  74. POP3

  75. user username@gmail.com +OK send PASS pass password +OK Welcome.

  76. list +OK 334 messages (3179 bytes) 1 3000 2 179

  77. retr 1 dele 1

  78. IMAP

  79. a1 login user@gmail.com password a1 OK user@gmail.com Tommy MacWilliam authenticated

    (Success)
  80. a2 select inbox * 11 EXISTS * 0 RECENT a2

    OK [READ-WRITE] inbox selected (Success)
  81. a3 select “[Gmail]/Sent Mail” * 8833 EXISTS * 0 RECENT

    a3 OK [READ-WRITE] inbox selected (Success)
  82. a4 fetch 1 body[header]

  83. a5 fetch 1 body[text]

  84. Phishing

  85. TCP/IP

  86. TCP

  87. None
  88. Reliable Data Transfer

  89. Sequence Numbers

  90. ACK

  91. None
  92. Handshake

  93. None
  94. Sequence Numbers + ACKs

  95. None
  96. Dropped Segments

  97. None
  98. None
  99. Parallelism

  100. None
  101. None
  102. Memes

  103. None
  104. None
  105. None
  106. None
  107. None
  108. http://youtu.be/Ve7_4ot-Dzs

  109. Computer Science E-1 Lecture 4: Internet