CMPE 80N: Introduction to Networking and the Internet



Similar documents
DNS: Domain Name System

Domain Name System (or Service) (DNS) Computer Networks Term B10

Domain Name System Richard T. B. Ma

CS 355. Computer Networking. Wei Lu, Ph.D., P.Eng.

How To Map Between Ip Address And Name On A Domain Name System (Dns)

The Application Layer: DNS

Chapter 2 Application Layer

DNS and P2P File Sharing

Names vs. Addresses. Flat vs. Hierarchical Space. Domain Name System (DNS) Computer Networks. Lecture 5: Domain Name System

FTP: the file transfer protocol

Domain Name System (DNS)

CS 43: Computer Networks Naming and DNS. Kevin Webb Swarthmore College September 17, 2015

Domain Name System DNS

internet technologies and standards

Naming and the DNS. Focus. How do we name hosts etc.? Application Presentation Topics. Session Domain Name System (DNS) /URLs

DNS: Domain Name System

DATA COMMUNICATOIN NETWORKING

NET0183 Networks and Communications

DNS. Spring 2016 CS 438 Staff 1

Domain Name System (DNS) RFC 1034 RFC

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting

Domain Name System (DNS) Reading: Section in Chapter 9

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting, NTP

Domain Name System (DNS)

DNS and electronic mail. DNS purposes

Application Layer. Abusayeed Saifullah. CS 5600 Computer Networks. These slides are adapted from Kurose and Ross

Network programming, DNS, and NAT. Copyright University of Illinois CS 241 Staff 1

2.5 DNS The Internet s Directory Service

CS 348: Computer Networks. - DNS; 22 nd Oct Instructor: Sridhar Iyer IIT Bombay

C 1. Last Time. CSE 486/586 Distributed Systems Domain Name System. Review: Causal Ordering. Review: Causally Ordered Multicast.

Computer Networks & Security 2014/2015

HW2 Grade. CS585: Applications. Traditional Applications SMTP SMTP HTTP 11/10/2009

Lecture 2 CS An example of a middleware service: DNS Domain Name System

Internet-Praktikum I Lab 3: DNS

FTP: the file transfer protocol

Application-layer protocols

The Domain Name System

CSE/ISE 311: Systems Administra5on Networking 2

DATA COMMUNICATOIN NETWORKING

Network(Security(Protocols(

Chapter 2: outline. 2.6 P2P applications 2.7 socket programming with UDP and TCP

DNS: Domain Names. DNS: Domain Name System. DNS: Root name servers. DNS name servers

Communicating Applications

3. The Domain Name Service

Chapter 23 The Domain Name System (DNS)

Names & Addresses. Names & Addresses. Names vs. Addresses. Identity. Names vs. Addresses. CS 194: Distributed Systems: Naming

CS244A Review Session Routing and DNS

CS640: Computer Networks. Naming /ETC/HOSTS

DNS: Domain Name System

1 Introduction: Network Applications

Resilient Networking. Overview of DNS Known attacks on DNS Denial-of-Service Cache Poisoning. Securing DNS Split-Split-DNS DNSSEC.

Lecture 5: Network Attacks I. Course Admin

Types of hypertext. Hypertext documents can either be 1.Static 2.Dynamic

DNS records. RR format: (name, value, type, TTL) Type=NS

Applications & Application-Layer Protocols: The Domain Name System and Peerto-Peer

CS3600 SYSTEMS AND NETWORKS

The Domain Name System (DNS)

Network Layers. CSC358 - Introduction to Computer Networks

Network Layer, Part 1 Internet Architecture. History

Motivation. Domain Name System (DNS) Flat Namespace. Hierarchical Namespace

DNS Domain Name System

Introduction to Network Operating Systems

The Domain Name System

416 Distributed Systems. Feb 24, 2016 DNS and CDNs

The Domain Name System

INTERNET DOMAIN NAME SYSTEM

Application. Transport. Network. Data Link. Physical. Network Layers. Goal

Part 5 DNS Security. SAST01 An Introduction to Information Security Martin Hell Department of Electrical and Information Technology

CS3250 Distributed Systems

Distributed Systems. 09. Naming. Paul Krzyzanowski. Rutgers University. Fall 2015

Review of Networking Basics. Yao Wang Polytechnic University, Brooklyn, NY11201

Domain Name System (DNS) Omer F. Rana. Networks and Data Communications 1

Computer Networks: Domain Name System

DNS Basics. DNS Basics

The Domain Name System (DNS)

Chapter 2 Application Layer

Domain Name Servers. Domain Types WWW host names. Internet Names. COMP476 Networked Computer Systems. Domain Name Servers

Domain Name System. DNS is an example of a large scale client-server application. Copyright 2014 Jim Martin

DNS Domain Name System

Cookies Overview and HTTP Proxies

loss-tolerant and time sensitive loss-intolerant and time sensitive loss-intolerant and time insensitive

Lesson 13: DNS Security. Javier Osuna GMV Head of Security and Process Consulting Division

Overview of Computer Networks

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ MEng. Nguyễn CaoĐạt

Transcription:

CMPE 80N: Introduction to Networking and the Internet Katia Obraczka Computer Engineering UCSC Baskin Engineering Lecture 10 CMPE 80N Fall'10 1

Announcements Forum assignment #2 posted. Due Nov. 5 th. Project #2 coming up soon. Stay tuned. CMPE 80N Fall'10 2

Last class The Web and HTTP. Cookies. Web caching. CMPE 80N Fall'10 3

Today The Web and HTTP (Cont d). Web caching (cont d). DNS. CMPE 80N Fall'10 4

User-server state: cookies Many major Web sites use cookies Four components: 1) cookie header line of HTTP response message 2) cookie header line in HTTP request message 3) cookie file kept on user s host, managed by user s browser 4) back-end database at Web site Example: Susan always access Internet always from PC visits specific e- commerce site for first time when initial HTTP requests arrives at site, site creates: unique ID entry in backend database for ID CMPE 80N Fall'10 5

Cookies: keeping state (cont.) client ebay 8734 cookie file ebay 8734 amazon 1678 one week later: ebay 8734 amazon 1678 usual http request msg usual http response Set-cookie: 1678 usual http request msg cookie: 1678 usual http response msg usual http request msg cookie: 1678 usual http response msg server Amazon server creates ID 1678 for user create entry cookiespecific action cookiespectific action access access backend database CMPE 80N Fall'10 6

Cookies (continued) What cookies can bring: authorization shopping carts recommendations user session state (Web e-mail) How to keep state : protocol endpoints: maintain state at sender/receiver over multiple transactions cookies: http messages carry state aside Cookies and privacy: cookies permit sites to learn a lot about you CMPE 80N Fall'10 7

Web Caching CMPE 80N Fall'10 8

Web Caches (proxy server) Goal: satisfy client request without involving origin server CMPE 80N Fall'10 9

Web Caches (proxy server) Goal: satisfy client request without involving origin server user sets browser: Web accesses via cache browser sends all HTTP requests to cache object in cache: cache returns object else cache requests object from origin server, then returns object to client client client Proxy server origin server origin server CMPE 80N Fall'10 10

More about Web caching Cache acts as both client and server. Why Web caching? reduce response time for client request reduce traffic on an institution s access link. Internet dense with caches: enables poor content providers to effectively deliver content. CMPE 80N Fall'10 11

Caching example origin servers public Internet 1.5 Mbps access link institutional network 10 Mbps LAN CMPE 80N Fall'10 12

Caching example public Internet origin servers public Internet origin servers institutional network 1.5 Mbps access link 10 Mbps LAN institutional network 1.5 Mbps access link 10 Mbps LAN institutional cache CMPE 80N Fall'10 13

DNS: Domain Name System CMPE 80N Spring'10 14

DNS: Domain Name System People: many identifiers: SSN, name, passport # Internet hosts, routers: IP address (32 bit) - used for addressing. name, e.g., ww.yahoo.com - used by humans. Q: map between IP addresses and name? Domain Name System: distributed database implemented in hierarchy of many name servers. CMPE 80N Spring'10 15

DNS services hostname to IP address translation. DNS Why not centralize DNS? single point of failure traffic volume maintenance doesn t scale! CMPE 80N Spring'10 16

Distributed, Hierarchical Database Root DNS Servers com DNS servers org DNS servers edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers poly.edu umass.edu DNS servers DNS servers Client wants IP for www.amazon.com; 1 st approx: client queries a root server to find com DNS server client queries com DNS server to get amazon.com DNS server client queries amazon.com DNS server to get IP address for www.amazon.com CMPE 80N Spring'10 17

DNS: Root name servers contacted by local name server that can not resolve name root name server: contacts authoritative name server if name mapping not known gets mapping returns mapping to local name server CMPE 80N Spring'10 18

DNS: Root name servers e NASA Mt View, CA f Internet Software C. Palo Alto, CA (and 36 other locations) a Verisign, Dulles, VA c Cogent, Herndon, VA (also LA) d U Maryland College Park, MD g US DoD Vienna, VA h ARL Aberdeen, MD j Verisign, ( 21 locations) k RIPE London (also 16 other locations) i Autonomica, Stockholm (plus 28 other locations) m WIDE Tokyo (also Seoul, Paris, SF) b USC-ISI Marina del Rey, CA l ICANN Los Angeles, CA 13 root name servers worldwide (labeled a-m). CMPE 80N Spring'10 19

TLD and Authoritative Servers Top-level domain (TLD) servers: responsible for com, org, net, edu, etc, and all top-level country domains uk, fr, ca, jp. Network Solutions maintains servers for com TLD Educause for edu TLD Authoritative DNS servers: organization s DNS servers, providing authoritative hostname to IP mappings for organization s servers (e.g., Web, mail). can be maintained by organization or service provider CMPE 80N Spring'10 20

Local Name Server does not strictly belong to hierarchy each ISP (residential ISP, company, university) has one. also called default name server when host makes DNS query, query is sent to its local DNS server acts as proxy, forwards query into hierarchy CMPE 80N Spring'10 21 2: Application Layer 21

DNS name root DNS server resolution example Host at cis.poly.edu wants IP address for gaia.cs.umass.edu iterated query: contacted server replies with name of server to contact I don t know this name, but ask this server local DNS server dns.poly.edu 1 2 8 requesting host cis.poly.edu 3 4 5 7 TLD DNS server 6 authoritative DNS server dns.cs.umass.edu gaia.cs.umass.edu CMPE 80N Spring'10 22

DNS name resolution example root DNS server recursive query: puts burden of name resolution on contacted name server heavy load? 2 local DNS server dns.poly.edu 7 6 5 3 4 TLD DNS server 1 8 requesting host cis.poly.edu authoritative DNS server dns.cs.umass.edu gaia.cs.umass.edu CMPE 80N Spring'10 23

DNS: caching and updating records Once (any) name server learns mapping, it caches mapping cache entries timeout (disappear) after some time TLD servers typically cached in local name servers Thus root name servers not often visited CMPE 80N Spring'10 24

DNS records DNS: distributed db storing resource records (RR) Type=A RR format: (name, value, type, ttl) name is hostname value is IP address Type=NS name is domain (e.g. foo.com) value is hostname of authoritative name server for this domain Type=CNAME name is alias name for some canonical (the real) name www.ibm.com is really servereast.backup2.ibm.com value is canonical name Type=MX value is name of mailserver associated with name CMPE 80N Spring'10 25

DNS protocol, messages DNS protocol : query and reply messages, both with same message format msg header identification: 16 bit # for query, reply to query uses same # flags: query or reply recursion desired recursion available reply is authoritative CMPE 80N Spring'10 26