Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Lecture 3: CSCI E-1 Spring 2013
Search
Tommy MacWilliam
February 25, 2013
Education
0
490
Lecture 3: CSCI E-1 Spring 2013
Tommy MacWilliam
February 25, 2013
Tweet
Share
More Decks by Tommy MacWilliam
See All by Tommy MacWilliam
Lecture 9: CSCI E-1 Spring 2013
tmacwill
0
310
Lecture 8: CSCI E-1 Spring 2013
tmacwill
0
440
Lecture 6: CSCI E-1 Spring 2013
tmacwill
1
450
Lecture 7: CSCI E-1 Spring 2013
tmacwill
0
520
Lecture 5: CSCI E-1 Spring 2013
tmacwill
1
600
Incorporating Version Control into Programming Courses
tmacwill
1
110
Lecture 4: CSCI E-1 Spring 2013
tmacwill
0
410
Lecture 2: CSCI E-1 Spring 2013
tmacwill
0
790
Lecture 1: CSCI E-1 Spring 2013
tmacwill
0
320
Other Decks in Education
See All in Education
1106
cbtlibrary
0
450
Flinga
matleenalaakso
2
14k
Da Necessidade da Devoção à Virgem Santíssima
cm_manaus
0
120
小学校プログラミング教育、次の5年に向けて 〜つくること・学ぶことの歓びへ〜 /NextGenerationOfProgrammingEducation
kiriem
2
360
2024年度秋学期 統計学 第11回 分布の「型」を考える - 確率分布モデルと正規分布 (2024. 12. 4)
akiraasano
PRO
0
110
Unraveling JavaScript Prototypes
debug_mode
0
140
LinkedIn
matleenalaakso
0
3.5k
Tips for the Presentation - Lecture 2 - Advanced Topics in Big Data (4023256FNR)
signer
PRO
0
200
【お子さま向け】Amazon ECS サービスディスカバリーって知ってる?【楽しい読み聞かせ】
tubone24
7
830
ISMS審査準備ブック_サンプル【LRM 情報セキュリティお役立ち資料】
lrm
0
1.1k
ヘイトスピーチがある世界のコミュニケーション
ktanishima
0
930
HCL Notes/Domino 14.5 EAP Drop1
harunakano
1
160
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.2k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.2k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
The Pragmatic Product Professional
lauravandoore
32
6.4k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.4k
Fireside Chat
paigeccino
34
3.2k
Scaling GitHub
holman
459
140k
The Language of Interfaces
destraynor
156
24k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
21
2.5k
Transcript
Computer Science E-1 Lecture 3: Internet
From last time...
http://youtu.be/j84eEjP-RL4
Review: March 4
http://youtu.be/9ntPxdWAWq8
traceroute cnn.com
Clients v. Servers
Routers
Network
None
None
None
Internet Service Provider
None
LAN
WAN
None
traceroute reddit.com
IP Address
10.251.202.239
4,294,967,296
“640K ought to be enough for anybody”
IPv4
IPv6
http://www.worldipv6launch.org/
2001:0db8:85a3:0042: 1000:8a2e:0370:7334
340,282,366,920,938,463,463,374, 607,431,768,211,456
http://samsclass.info/ipv6/ exhaustion.htm
http://www.google.com/ipv6/ statistics.html#tab=ipv6-adoption
Private IP Address
10.*.*.* 172.16.*.* 192.168.*.*
NAT
Device Private IP Public IP Source Port Macbook 10.0.0.1 74.125.26.228
1000 iPhone 10.0.0.2 74.125.26.228 1001 iPad 10.0.0.3 74.125.26.228 1002
NAT Request • request from 10.0.0.1 reaches router
NAT Request • request from 10.0.0.1 reaches router • router
looks up source port for 10.0.0.1
NAT Request • request from 10.0.0.1 reaches router • router
looks up source port for 10.0.0.1 • router changes source IP to 74.125.26.228, adds source port 1000
NAT Request • request from 10.0.0.1 reaches router • router
looks up source port for 10.0.0.1 • router changes source IP to 74.125.26.228, adds source port 1000 • router sends modified request to destination
NAT Response • router receives response to 74.125.26.228 with source
port 1000
NAT Response • router receives response to 74.125.26.228 with source
port 1000 • router looks up IP address for source port 1000
NAT Response • router receives response to 74.125.26.228 with source
port 1000 • router looks up IP address for source port 1000 • router forwards response to original client
http://www.whatismyip.com/
DHCP
DHCP • Client broadcasts “I would like to join”
DHCP • Client broadcasts “I would like to join” •
Server responds “I can help”
DHCP • Client broadcasts “I would like to join” •
Server responds “I can help” • Client requests an IP address
DHCP • Client broadcasts “I would like to join” •
Server responds “I can help” • Client requests an IP address • Server offers client an IP address
DHCP • Client broadcasts “I would like to join” •
Server responds “I can help” • Client requests an IP address • Server offers client an IP address • Client confirms IP address
None
Connection Speeds
None
Wireless Networks
WEP, WPA, WPA2
3G, 4G
Firewall
None
VPN
Domains
DNS
HOSTS.TXT
DNS Server
Root DNS Server
root-servers.org
TLD DNS Server
Authoritative Name Server
Domain Resolution • hosts file?
Domain Resolution • hosts file? • cache DNS server?
Domain Resolution • hosts file? • cache DNS server? •
root DNS server
Domain Resolution • hosts file? • cache DNS server? •
root DNS server • TLD DNS server
Domain Resolution • hosts file? • cache DNS server? •
root DNS server • TLD DNS server • authoritative name server
http://www.simpledns.com/lookup- dg.aspx
None
Net Neutrality
None
http://www.popsci.com/technology/article/ 2010-07/order-seven-cyber-guardians- around-world-now-hold-keys-internet
Configuring DNS
None
DNS Records • NS: name servers • MX: email •
A: IPv4 address • AAAA: IPv6 address • CNAME: domain alias
TLDs
TLD Usage .com Companies .edu Education .gov US Government .info
Information .mil US Military .net Networks .org Organizations
ccTLDs
ccTLDs • bit.ly: Libya • about.me: Montenegro • del.icio.us: US
• nic.tm: Turkmenistan
http://gtldresult.icann.org/
Registrars
URL
http://username:password@ foo.example.com:1234/cs/e1/is.html ?fun=yes&boring=no#awesome
http://username:password@ foo.example.com:1234/cs/e1/is.html ?fun=yes&boring=no#awesome Scheme
http://username:password@ foo.example.com:1234/cs/e1/is.html ?fun=yes&boring=no#awesome Authentication
http://username:password@ foo.example.com:1234/cs/e1/is.html ?fun=yes&boring=no#awesome Domain
http://username:password@ foo.example.com:1234/cs/e1/is.html ?fun=yes&boring=no#awesome Port
http://username:password@ foo.example.com:1234/cs/e1/is.html ?fun=yes&boring=no#awesome Path
http://username:password@ foo.example.com:1234/cs/e1/is.html ?fun=yes&boring=no#awesome Query String
http://username:password@ foo.example.com:1234/cs/e1/is.html ?fun=yes&boring=no#awesome Fragment
Key-Value Pairs
query=cse1&page=3 • client • the query I want is cse1
• the page I want is 3 • server • what query and page should I look for?
q=e&1?
URL Encoding
q=e%261%3F
URI
urn:isbn:9780811822749
http://cse1.net/psets/pset3.pdf
API
http://developer.mbta.com/lib/rthr/ red.json
https://developers.facebook.com/ tools/explorer/
http://youtu.be/Ve7_4ot-Dzs
Summary
Networking • router • IP address • ISP • network
• WAN, LAN • IPv6 • private IP address • NAT • DHCP • 802.11n • 3G, 4G • mbps • firewall • VPN
Domain Name System • DNS • domains • hosts file
• root DNS server • TLD DNS server • authoritative name server • net neutrality • A record • CNAME record • TLD, ccTLD • registrar • URL • URI • API
Computer Science E-1 Lecture 3: Internet