22
The Internet is a Series of Tubes A Practical Understanding of the Internet

The Internet Is a Series of Tubes

Embed Size (px)

DESCRIPTION

Stack 2011 Presentation

Citation preview

Page 1: The Internet Is a Series of Tubes

The Internet is a Series of TubesA Practical Understanding of the Internet

Page 2: The Internet Is a Series of Tubes

Who are you?

John Hobbs

- Developer at What Cheer- @jmhobbs- https://github.com/jmhobbs- http://velvetcache.org/

The Internet is a Series of Tubes

Page 3: The Internet Is a Series of Tubes

This is the Internet

The Internet is a Series of Tubes

Page 4: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

You What Cheer

?

Page 5: The Internet Is a Series of Tubes

This is Your Computer

72.113.10.126

(sort of)

The Internet is a Series of Tubes

Page 6: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

You(72.113.10.126)

whatcheer.com(???.???.??.???)

?

Page 7: The Internet Is a Series of Tubes

Connecting Computersjmhobbs@Cordelia:~$ ping -c 3 192.168.1.2PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.64 bytes from 192.168.1.2: icmp_req=1 ttl=64 time=4.98 ms64 bytes from 192.168.1.2: icmp_req=2 ttl=64 time=2.58 ms64 bytes from 192.168.1.2: icmp_req=3 ttl=64 time=2.60 ms

--- 192.168.1.2 ping statistics ---3 packets transmitted, 3 received, 0% packet loss, time 2002msrtt min/avg/max/mdev = 2.584/3.390/4.985/1.128 msjmhobbs@Cordelia:~$

The Internet is a Series of Tubes

192.168.1.4(Me)

192.168.1.2(Alex)

Page 8: The Internet Is a Series of Tubes

Translating Your Desires

The Internet is a Series of Tubes

Page 9: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

DNS!

Page 10: The Internet Is a Series of Tubes

Translating Your Desires

The Internet is a Series of Tubes

DNSDomain Name System

google.com 74.125.73.106

(Name Server)

Page 11: The Internet Is a Series of Tubes

Something Useful?

Some DNS Records Types

A – Map an domain to an IP addressgoogle.com => 74.125.73.105

CNAME – Map a domain to another domaincatz.whatcheer.com => cats.whatcheer.com

MX – Map a domain to it's (inbound) mail servers10 mail.google.com

TXT – Arbitrary human readable notesOh hai.

The Internet is a Series of Tubes

Page 12: The Internet Is a Series of Tubes

Something Useful?jmhobbs@Cordelia:~$ dig @dns1.stabletransit.com whatcheer.com any

...snip...

;; ANSWER SECTION:whatcheer.com. 3600 IN SOA dns1.stabletransit.com. ipadmin.stabletransit.com. 1313437917 3600 300 1814400 300whatcheer.com. 3600 IN MX 10 ASPMX.L.GOOGLE.com.whatcheer.com. 3600 IN MX 20 ALT1.ASPMX.L.GOOGLE.com.whatcheer.com. 3600 IN MX 20 ALT2.ASPMX.L.GOOGLE.com.whatcheer.com. 3600 IN MX 30 ASPMX2.GOOGLEMAIL.com.whatcheer.com. 3600 IN MX 30 ASPMX3.GOOGLEMAIL.com.whatcheer.com. 3600 IN MX 30 ASPMX4.GOOGLEMAIL.com.whatcheer.com. 3600 IN MX 30 ASPMX5.GOOGLEMAIL.com.whatcheer.com. 3600 IN NS dns1.stabletransit.com.whatcheer.com. 3600 IN NS dns2.stabletransit.com.whatcheer.com. 3600 IN A 98.129.229.176

;; ADDITIONAL SECTION:dns1.stabletransit.com. 300 IN A 69.20.95.4dns2.stabletransit.com. 300 IN A 65.61.188.4

...snip...

jmhobbs@Cordelia:~$

The Internet is a Series of Tubes

Page 13: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

You(72.113.10.126)

whatcheer.com(???.???.??.???)

?

DNS Server

Page 14: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

You(72.113.10.126)

whatcheer.com(???.???.??.???)

?

DNS Server

whatcheer.com?

98.129.229.176

Page 15: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

You(72.113.10.126)

whatcheer.com(98.129.229.176)

DNS Server

Page 16: The Internet Is a Series of Tubes

Something Useful?jmhobbs@Cordelia:~$ ping -c 1 whatcheer.comPING whatcheer.com (98.129.229.176) 56(84) bytes of data.<snip>jmhobbs@Cordelia:~$

The Internet is a Series of Tubes

whatcheer.com 127.0.0.1

jmhobbs@Cordelia:~$ ping -c 1 whatcheer.comPING whatcheer.com (127.0.0.1) 56(84) bytes of data.<snip>jmhobbs@Cordelia:~$

http://detoursapp.com/ - Jerod Santo @sant0sk1

Page 17: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

You(72.113.10.126)

whatcheer.com(98.129.229.176)

DNS Server

Page 18: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

You(72.113.10.126)

whatcheer.com(127.0.0.1)

DNS Server

Page 19: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

You(72.113.10.126)

whatcheer.com(98.129.229.176)

DNS Server

Page 20: The Internet Is a Series of Tubes

Sweet HTTP

The Internet is a Series of Tubes

jmhobbs@Cordelia:~$ telnet whatcheer.com 80Trying 98.129.229.176...Connected to whatcheer.com.Escape character is '^]'.GET / HTTP/1.1Host: whatcheer.comUser-Agent: John Hobbs (like Gecko)

HTTP/1.1 200 OKServer: Apache/2.2Content-Type: text/html; charset=UTF-8Date: Fri, 02 Sep 2011 18:53:13 GMTTransfer-Encoding: chunkedConnection: Keep-AliveSet-Cookie: X-Mapping-dghlffcp=3CB0F424661D80A0FCF7A43668C564F3; path=/

1ff3<!DOCTYPE html> <html lang="en"> ...snip...</html>0

jmhobbs@Cordelia:~$

Page 21: The Internet Is a Series of Tubes

The Internet is a Series of Tubes

Page 22: The Internet Is a Series of Tubes

Discussion

Questions?Comments?

The Internet is a Series of Tubes