Slide 1

Slide 1 text

Computer Science E-1 Lecture 4: Internet

Slide 2

Slide 2 text

Exam I

Slide 3

Slide 3 text

Review Session

Slide 4

Slide 4 text

Feedback Form

Slide 5

Slide 5 text

Net Neutrality

Slide 6

Slide 6 text

Protocols

Slide 7

Slide 7 text

DHCP (again)

Slide 8

Slide 8 text

DHCP • client: DHCPBROADCAST

Slide 9

Slide 9 text

DHCP • client: DHCPBROADCAST • server: DHCPOFFER

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

DHCP • client: DHCPBROADCAST • server: DHCPOFFER • client: DHCPREQUEST • server: DHCPACK

Slide 12

Slide 12 text

HTTP

Slide 13

Slide 13 text

Clients v. Servers

Slide 14

Slide 14 text

http://example.com

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

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

Slide 17

Slide 17 text

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

Slide 18

Slide 18 text

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

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

Telnet

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

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

Slide 23

Slide 23 text

HTTP/1.1 404 Not Found

Slide 24

Slide 24 text

https://github.com/404

Slide 25

Slide 25 text

http://seatgeek.com/404

Slide 26

Slide 26 text

http://bluefountainmedia.com/404

Slide 27

Slide 27 text

200 OK 301 Moved Permanently 302 Found 400 Bad Request 401 Unauthorized 403 Forbidden 404 Not Found 500 Internal Server Error

Slide 28

Slide 28 text

1 Informational 2 Success 3 Redirection 4 Client Error 5 Server Error

Slide 29

Slide 29 text

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

Slide 30

Slide 30 text

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

Slide 31

Slide 31 text

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

Slide 32

Slide 32 text

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

Slide 33

Slide 33 text

HTML

Slide 34

Slide 34 text

CSCI E-1

Slide 35

Slide 35 text

CSCI E-1

Start Tag

Slide 36

Slide 36 text

CSCI E-1

End Tag

Slide 37

Slide 37 text

CSCI E-1

Value

Slide 38

Slide 38 text

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

Slide 39

Slide 39 text

GET /search?q=cats HTTP/1.1 Host: www.google.com

Slide 40

Slide 40 text

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

Slide 41

Slide 41 text

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

Slide 42

Slide 42 text

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

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

Email

Slide 49

Slide 49 text

SMTP

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

Queue

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

Tommy R.J. Ben

Slide 54

Slide 54 text

Tommy R.J.

Slide 55

Slide 55 text

Tommy

Slide 56

Slide 56 text

Stack

Slide 57

Slide 57 text

Tommy R.J. Ben

Slide 58

Slide 58 text

R.J. Ben

Slide 59

Slide 59 text

Ben

Slide 60

Slide 60 text

name@website.com

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

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: 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 To: "macwilliamt@gmail.com" Subject: I love cats Date: Sat, 2 Mar 2013 12:45:41 -0500

Slide 63

Slide 63 text

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: 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 To: "macwilliamt@gmail.com" Subject: I love cats Date: Sat, 2 Mar 2013 12:45:41 -0500

Slide 64

Slide 64 text

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: 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 To: "macwilliamt@gmail.com" Subject: I love cats Date: Sat, 2 Mar 2013 12:45:41 -0500

Slide 65

Slide 65 text

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: 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 To: "macwilliamt@gmail.com" Subject: I love cats Date: Sat, 2 Mar 2013 12:45:41 -0500

Slide 66

Slide 66 text

helo 250 mx.google.com at your service

Slide 67

Slide 67 text

auth login 334 VXNlcm5hbWU6

Slide 68

Slide 68 text

Base64

Slide 69

Slide 69 text

dXNlcm5hbWVAZ21haWwuY29t 334 UGFzc3dvcmQ6

Slide 70

Slide 70 text

cGFzc3dvcmQ= 235 2.7.0 Accepted

Slide 71

Slide 71 text

mail from: 250 2.1.0 OK

Slide 72

Slide 72 text

rcpt to: 250 2.1.5 OK

Slide 73

Slide 73 text

data 354 Go ahead

Slide 74

Slide 74 text

POP3

Slide 75

Slide 75 text

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

Slide 76

Slide 76 text

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

Slide 77

Slide 77 text

retr 1 dele 1

Slide 78

Slide 78 text

IMAP

Slide 79

Slide 79 text

a1 login user@gmail.com password a1 OK user@gmail.com Tommy MacWilliam authenticated (Success)

Slide 80

Slide 80 text

a2 select inbox * 11 EXISTS * 0 RECENT a2 OK [READ-WRITE] inbox selected (Success)

Slide 81

Slide 81 text

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

Slide 82

Slide 82 text

a4 fetch 1 body[header]

Slide 83

Slide 83 text

a5 fetch 1 body[text]

Slide 84

Slide 84 text

Phishing

Slide 85

Slide 85 text

TCP/IP

Slide 86

Slide 86 text

TCP

Slide 87

Slide 87 text

No content

Slide 88

Slide 88 text

Reliable Data Transfer

Slide 89

Slide 89 text

Sequence Numbers

Slide 90

Slide 90 text

ACK

Slide 91

Slide 91 text

No content

Slide 92

Slide 92 text

Handshake

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

Sequence Numbers + ACKs

Slide 95

Slide 95 text

No content

Slide 96

Slide 96 text

Dropped Segments

Slide 97

Slide 97 text

No content

Slide 98

Slide 98 text

No content

Slide 99

Slide 99 text

Parallelism

Slide 100

Slide 100 text

No content

Slide 101

Slide 101 text

No content

Slide 102

Slide 102 text

Memes

Slide 103

Slide 103 text

No content

Slide 104

Slide 104 text

No content

Slide 105

Slide 105 text

No content

Slide 106

Slide 106 text

No content

Slide 107

Slide 107 text

No content

Slide 108

Slide 108 text

http://youtu.be/Ve7_4ot-Dzs

Slide 109

Slide 109 text

Computer Science E-1 Lecture 4: Internet