Lecture 05: Application Layer (Part 02) Domain Name System. Dr. Anis Koubaa

Similar documents
Chapter 2 Application Layer. Lecture 5 DNS. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Domain Name System (DNS) 김현철 ( 화 ) 정보통신융합서울대학교컴퓨터공학부

Chapter 2: Application layer

Domain Name Service. DNS Overview. October 2009 Computer Networking 1

Computer Networking Introduction

Application Layer: , DNS

Lecture 7: Application Layer Domain Name System

CSEN 503 Introduction to Communication Networks

Chapter 2 Application Layer

CS 3516: Advanced Computer Networks

Chapter 2 part B: outline

CSEN 404 Introduction to Networks. Mervat AbuElkheir Mohamed Abdelrazik. ** Slides are attributed to J. F. Kurose

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

CS 43: Computer Networks. 10: Naming and DNS September 24, 2018

Chapter II: Application Layer

Section 2: Application layer

CS4/MSc Computer Networking. Lecture 3: The Application Layer

Chapter 2 Application Layer

Application Layer. Goals:

Application Layer. Applications and application-layer protocols. Goals:

Application Layer. Goals: Service models. Conceptual aspects of network application protocols Client server paradigm

CSC 401 Data and Computer Communications Networks

Application Layer Protocols

FTP. Mail. File Transfer Protocol (FTP) FTP commands, responses. Electronic Mail. TDTS06: Computer Networks

Applications & Application-Layer Protocols: (SMTP) and DNS

The Application Layer: Sockets, DNS

Application Layer. Pure P2P architecture. Client-server architecture. Processes communicating. Hybrid of client-server and P2P. Creating a network app

Introduction to Computer Networking. Guy Leduc. Chapter 2 Application Layer. Chapter 2: outline

Domain Name System (DNS)

Application layer. Some network apps. Client-server architecture. Hybrid of client-server and P2P. Pure P2P architecture. Creating a network app

Chapter 1 Introduction

CSCE 463/612 Networks and Distributed Processing Spring 2018

Application Layer. Pure P2P architecture. Client-server architecture. Processes communicating. Hybrid of client-server and P2P. Creating a network app

Internet applications. 2: Application Layer 1

Application Layer. Applications and application-layer protocols. Goals:

Chapter 2 outline. 2.1 Principles of app layer protocols

Applications Layer Protocols. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 6

IP ADDRESSES, NAMING, AND DNS

Web caches (proxy server)

CSC358 Week 3. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

internet technologies and standards

CSCD 330 Network Programming Winter 2015

Introduction to Computer Networking. Guy Leduc. Chapter 2 Application Layer. Chapter 2: outline

Chapter 2 Application Layer

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 5

CSc 450/550 Computer Networks Domain Name System

CC451 Computer Networks

DNS Hierarchical Name Space. BIND Terminology and DNS Name Servers. Distributed Hierarchical Database (1st Approx) Domain Name System (DNS)

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

2.5 DNS The Internet s Directory Service

Course on Computer Communication and

Chapter 2 Application Layer

Chapter 2. Application Layer. 2: Application Layer 1

Computer Networks. Domain Name System. Jianping Pan Spring /25/17 CSC361 1

Lecture 6 Application Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

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

Application-layer Protocols

Chapter P2P file sharing network applications 2.22 Web and HTTP 2.3 FTP DNS

CSCD 330 Network Programming Spring 2018 Lecture 5 Application Layer. Reading: Chapter 2 Still

CSE 486/586 Distributed Systems

Chapter 2: Application Layer

DNS and CDNs : Fundamentals of Computer Networks Bill Nace

CSE561 Naming and DNS. David Wetherall

Web Caching and HTTPS

EECS 3214: Computer Network Protocols and Applications

The Domain Name System

Network Application. Topic. Principle of Network Application. Principle of Network Application

Internet Services & Protocols. Application Layer and its Services

Chapter 2 Application Layer

Translating Addresses

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

EE 122: Domain Name System

Reminders. EE 122: Domain Name System. Goals of Today!s Lecture. Host Names vs. IP addresses. Separating Naming and Addressing

CSCD 330 Network Programming Spring 2017

Chapter 2. Computer Networking: A Top. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 2 Application Layer

Chapter II: Application Layer

Introduction to Computer Networking. Gang Wang Fall 2016

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Page 1. TCP Flow Control" TCP Flow Control" TCP Flow Control" CS162 Operating Systems and Systems Programming Lecture 16. Flow Control, DNS"

Chapter 2 Application Layer

CSE 124: IP ADDRESSES, NAMING, AND DNS. George Porter Oct 4, 2017

Chapter 2 Application Layer

Review for Internet Introduction

Announcements. Transport Protocols & DNS. Goals for Today s Lecture, Part 1. Goals of Today s Lecture, Part 2. Transport Protocols

Communications Software. CSE 123b. CSE 123b. Spring Lecture 11: Domain Name System (DNS) Stefan Savage. Some pictures courtesy David Wetherall

CSE 123b Communications Software. Overview for today. Names and Addresses. Goals for a naming system. Internet Hostnames

Electronic Mail. Three Components: SMTP SMTP. SMTP mail server. 1. User Agents. 2. Mail Servers. 3. SMTP protocol

Protocol layers, example: Organization of air travel. ticket (complain) ticket (purchase) baggage (claim) baggage (check) gates (unload) gates (load)

Lecture 7 Application Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Advanced Networking. Domain Name System

Advanced Networking. Domain Name System. Purpose of DNS servers. Purpose of DNS servers. Purpose of DNS servers

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

Chapter 2 Application Layer

Lecture 2 - Application Layer. Lecture 1 Review. Application Layer. Principles of network applications. Notes. Notes. Notes. Notes

DNS. dr. C. P. J. Koymans. September 16, Informatics Institute University of Amsterdam. dr. C. P. J. Koymans (UvA) DNS September 16, / 46

DNS and HTTP. A High-Level Overview of how the Internet works

Chapter 1: roadmap. 1.1 what is the Internet? 1.2 network edge. 1.3 network core

DNS & Iodine. Christian Grothoff.

Transcription:

NET 331 Computer Networks Lecture 05: Application Layer (Part 02) Domain Name System Dr. Anis Koubaa Reformatted slides from textbook Computer Networking a top-down appraoch, Fifth Edition by Kurose and Ross, 1 (c) Pearson Education - Prentice Hall, 2011 7-Feb-12 Learning Outcome Understand how to map between computer names and IP addresses. 2

Application Layer Our goals conceptual, implementation aspects of network application protocols transport-layer service models client-server paradigm peer-to-peer paradigm learn about protocols by examining popular application-level protocols HTTP FTP SMTP / POP3 / IMAP DNS programming network applications socket API 3 Chapter 2: Application layer 2.1 Principles of network applications 2.2 Web and HTTP 2.3 FTP 2.4 Electronic mail SMTP, POP3, IMAP 2.5 DNS 2.6 P2P applications 2.7 Socket programming with TCP 2.8 Socket programming with UDP 4

Domain Name System How to know Computer Machine on the Internet? DNS: Domain Name System people: many identifiers: SSN, name, passport # Internet hosts, routers: IP address (32 bit) -used for addressing datagrams name, e.g., www.yahoo.com -used by humans Q: map between IP address and name, and vice versa? Domain Name System: distributed database implemented in hierarchy of many name servers application-layer protocol host, routers, name servers to communicate to resolve names (address/name translation) note: core Internet function, implemented as applicationlayer protocol complexity at network s edge 6

DNS DNS services hostname to IP address translation host aliasing Canonical, alias names mail server aliasing load distribution replicated Web servers: set of IP addresses for one canonical name Why not centralize DNS? single point of failure traffic volume distant centralized database Maintenance doesn t scale! 7 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 serversdns servers client wants IP for www.amazon.com; 1st 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 8

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 e NASA Mt View, CA f Internet Software C. PaloAlto, 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 9 TLD and Authoritative Servers Top-level domain (TLD) servers: responsible for com, org, net, edu, aero, jobs, museums, and all top-level country domains, e.g.: uk, fr, ca, jp Network Solutions maintains servers for com TLD Educausefor edutld 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 10

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 11 DNS name resolution example root DNS server host at cis.poly.edu wants IP address for gaia.cs.umass.edu 2 3 4 TLD DNS server 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 8 requesting host cis.poly.edu 5 7 6 authoritative DNS server dns.cs.umass.edu gaia.cs.umass.edu 12

DNS name resolution example root DNS server recursive query puts burden of name resolution on contacted name server heavy load? 2 7 6 3 TLD DNS server local DNS server dns.poly.edu 5 4 1 8 requesting host cis.poly.edu authoritative DNS server dns.cs.umass.edu 13 gaia.cs.umass.edu 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 update/notify mechanisms proposed IETF standard RFC 2136 14

DNS records DNS: distributed db storing resource records (RR) Type=A name is hostname value is IP address 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 RR format: (name, value, type, ttl) Type=NS name is domain (e.g., foo.com) value is hostname of authoritative name server for this domain Type=MX value is name of mailserver associated with name 15 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 16

DNS protocol, messages Name, type fields for a query RRs in response to query records for authoritative servers additional helpful info that may be used 17 Inserting records into DNS example: new startup Network Utopia register name networkuptopia.com at DNS registrar (e.g., Network Solutions) provide names, IP addresses of authoritative name server (primary and secondary) registrar inserts two RRs into com TLD server: (networkutopia.com, dns1.networkutopia.com, NS) (dns1.networkutopia.com, 212.212.212.1, A) create authoritative server Type A record for www.networkuptopia.com; Type MX record for networkutopia.com How do people get IP address of your Web site? 18

Recursive Query http://www.cisco.com/web/about/security/intelligence/dns-bcp.html 19 Figure 1. Domain Name Space http://www.cisco.com/web/about/security/intelligence/dns-bcp.html 20

Chapter 2: Summary application architectures client-server P2P hybrid application service requirements: reliability, bandwidth, delay Internet transport service model connection-oriented, reliable: TCP unreliable, datagrams: UDP our study of network apps now complete! specific protocols: HTTP FTP SMTP, POP, IMAP DNS P2P: BitTorrent, Skype socket programming 21 Chapter 2: Summary typical request/reply message exchange: client requests info or service server responds with data, status code message formats: headers: fields giving info about data data: info being communicated 22 most importantly: learned about protocols Important themes: control vs. data msgs in-band, out-of-band centralized vs. decentralized stateless vs. stateful reliable vs. unreliable msg transfer complexity at network edge