Discussion 8
1
CS 168, Spring 2026 @ UC Berkeley
Slides credit: Sylvia Ratnasamy, Rob Shakir, Peyrin Kao, Iuniana Oprescu
DNS, HTTP 📨
Logistics
Domain Name System
Typical DNS Query
Client
Resolving server
.org servers
.wikipedia.org servers
Where is www.wikipedia.org?
Where is www.wikipedia.org?
Where is www.wikipedia.org?
Where is www.wikipedia.org?�(recursive)
Ask .org server at 1.2.3.4
Ask wikipedia.org server at 5.6.7.8
Answer: 9.10.11.12
root servers
Caching DNS Responses
IP: Z
www.google.com
DNS server
(mydns.berkeley.edu)
DNS client�(me.cs.berkeley.edu)
Hostname | IP | TTL |
www.google.com | Z | 60 min |
Anatomy of a URL
Scheme | Usually a protocol like (http, ftp, https, smtp, rtsp, etc.) |
host | DNS hostname or an IP address |
port | Defaults to protocol’s standard port�e.g. http: 80 https: 443 |
path | Traditionally reflects the file system |
resource | Identifies the desired resource Can also extend to program executions: http://us.f413.mail.yahoo.com/ym/ShowLetter?box=%40B%40Bulk&MsgId=2604_1744106_29699_1123_1261_0_28917_3552_1289957100&Search=&Nhead=f&YY=31454&order=down&sort=date&pos=0&view=a&head=b |
scheme://host[:port]/path/resource
HTTP
HTTP
Requests and Responses
Response
HTTP/1.1 200 OK
Connection close
Date: Thu, 06 Aug 2006 12:00:15 GMT
Server: Apache/1.3.0 (Unix)
Last-Modified: Mon, 22 Jun 2006 ...
Content-Length: 6821
Content-Type: text/html
(blank line)
data data data data data ...
Request
GET /somedir/page.html HTTP/1.1
Host: www.someschool.edu
User-agent: Mozilla/4.0
Connection: close
Accept-language: fr
(blank line)
Performance!
Request Patterns
SYN
SYN + ACK
ACK + R1
T1
Concurrent
Pipelined
Persistent
ACK
R2
T2
Caching: How
Caching: CNAMEs
Caching: Specifics in HTTP
Caching: Where
Worksheet
Question 1: True/False
Worksheet
Question 2: Domain Name System
Question 2: Domain Name System
Question 2: Domain Name System
Worksheet
Question 3: Performance
Question 3: Performance
Question 3: Performance
Question 3: Performance
Question 3: Performance
Question 3: Performance
Question 3: Performance
Question 3: Performance
Question 3: Performance
Worksheet
Question 4: HTTP
Question 4: HTTP
Question 4: HTTP
Question 4: HTTP
Question 4: HTTP
Question 4: HTTP
Question 4: HTTP
Question 4: HTTP
Question 4: HTTP
Questions?
Feedback Form: https://tinyurl.com/cs168-su25-disc-feedback