Lecture 01
Lecture 01
Even-’22
(A)
What is the
communication medium
(links)?
Source: http://www.vlib.us/web/worldwideweb3d.html
Datacenter
What is the
communication medium
(links)?
The Internet – Quick Refresher
• Underlies many distributed systems.
• A vast interconnected collection of computer networks of many types.
• Intranets – subnetworks operated by companies and organizations.
• Intranets contain subnets and LANs.
• WAN – wide area networks, consists of LANs
• ISPs – companies that provide modem links and other types of
connections to users.
• Intranets (actually the ISPs’ core routers) are linked by backbones –
network links of large bandwidth, such as satellite connections, fiber
optic cables, and other high-bandwidth circuits.
• UC2B? Google Fiber?
An Intranet & a distributed system
email server Desktop
computers
print and other servers
Local area
Running over this Web server network
Intranet is a
distributed file system
email server
print
File server
other servers
the rest of
the Internet
router/firewall
Source: http://xkcd.com/927/
The Heart of the World Wide Web:
the HTTP Standard
HTTP: hypertext transfer protocol htt
• pr
WWW’s application layer protocol equ
PC running h tt es t
• client/server model pr
Explorer es p
o ns
– client: browser that requests, receives, e
and “displays” WWW objects
st
– server: WWW server, which is storing ue
the website, sends objects in response p re q nse Server
o
to requests htt re sp Running
h ttp Apache
• http1.0: RFC 1945
Web
• http1.1: RFC 2068 server
– Leverages same connection to download Mac running
images, scripts, etc. Safari
The HTTP Protocol: More
http: TCP transport service: http is “stateless”
• client initiates a TCP connection • server maintains no information
about past client requests
(creates socket) to server, port 80
• server accepts the TCP Why?
Protocols that maintain session “state” are
connection from client complex!
• http messages (application-layer • past history (state) must be maintained
protocol messages) exchanged and updated.
between browser (http client) and • if server/client crashes, their views of
WWW server (http server) “state” may be inconsistent, and hence
• TCP connection closed must be reconciled.
• RESTful protocols are stateless.
HTTP Example
Suppose user enters URL www.cs.uiuc.edu/ (contains text,
references to 10
jpeg images)
1a. http client initiates a TCP connection to 1b. http server at host www.cs.uiuc.edu
http server (process) at waiting for a TCP connection at port
www.cs.uiuc.edu. Port 80 is default for 80. “accepts” connection, notifying
http server. client
2. http client sends a http request message
(containing URL) into TCP connection
socket 3. http server receives request messages,
forms a response message containing
requested object (index.html), sends
message into socket
time
HTTP Example (cont.)
4. http server closes the TCP connection (if
5. http client receives a response necessary).
message containing html file,
displays html, Parses html file,
finds 10 referenced jpeg objects
6. Steps 1-5 are then repeated for each of 10 jpeg
objects
• The Goal for the Rest of the Course: see enough examples and
learn enough concepts so these topics and issues will make sense
– We will revisit many of these slides in the very last lecture of the course!
“ Concepts” ?
• Which of the following inventions do you
think is the most important?
1. Car
2. Wheel
3. Bicycle
Virtually:
• Discussion Forum: Piazza (most preferable, monitored daily) – 24 hour turnaround time for
questions!
• Email (turnaround time may be longer than Piazza) – use [email protected]
• Email individuals (instructor, TA) only if absolutely necessary (e.g., private matter)
Wrap-Up
• (Reading for today’s lecture: Relevant parts of Chapter 1)
• Next lecture
– Topic: “Introduction to Cloud Computing”