Chapter 9 Application Layer, DNS

Slides:



Advertisements
Similar presentations
EECS122 - UCB 1 CS 194: Distributed Systems: Naming Computer Science Division Department of Electrical Engineering and Computer Sciences University of.
Advertisements

Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
1 Internet Networking Spring 2006 Tutorial 8 DNS and DHCP as UDP applications.
Domain Name System (or Service) (DNS) Computer Networks Computer Networks Term B10.
The Domain Name System. CeylonLinux DNS concepts using BIND 2 Hostnames IP Addresses are great for computers –IP address includes information used for.
1 Computer Networks Application layer. 2 Application Layer So far –Socket programming, Network API Today –Application layer functions –Specific applications.
1 Domain Name System (DNS). 2 DNS: Domain Name System Internet hosts, routers: –IP address (32 bit) - used for addressing datagrams –“name”, e.g., gaia.cs.umass.edu.
Application Layer At long last we can ask the question - how does the user interface with the network?
Application Layer session 1 TELE3118: Network Technologies Week 12: DNS Some slides have been taken from: r Computer Networking: A Top Down Approach.
Domain Name System: DNS
Chapter 9 More on HTTP and DNS Professor Rick Han University of Colorado at Boulder
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
CPSC 441: DNS1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes derived.
1 DNS,NFS & RPC Rizwan Rehman, CCS, DU. Netprog: DNS and name lookups 2 Hostnames IP Addresses are great for computers –IP address includes information.
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Domain Name System ( DNS )  DNS is the system that provides name to address mapping for the internet.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
DNS. Outline r Domain Name System r DNS Hierarchy r Resolution.
CS640: Computer Networks Aditya Akella Lecture 17 Naming and the DNS.
Lecturer : Ms.Trần Thị Ngọc Hoa Chapter 2 Methods Configuring Name Resolution Methods.
NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
1 Spring Semester 2009, Dept. of Computer Science, Technion Internet Networking recitation #2 DNS and DHCP.
CS 4396 Computer Networks Lab
1 Domain Name System (DNS). 2 DNS: Domain Name System Internet hosts: – IP address (32 bit) - used for addressing datagrams – “name”, e.g.,
Domain Name System (DNS)
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 10 Omar Meqdadi Department of Computer Science and Software Engineering University.
Netprog: DNS and name lookups1 Address Conversion Functions and The Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Ch-9: NAME SERVICES By Srinivasa R. Gudipati. To be discussed.. Fundamentals of Naming Services Naming Resolution The Domain Name System (DNS) Directory.
Chapter 16 – DNS. DNS Domain Name Service This service allows client machines to resolve computer names (domain names) to IP addresses DNS works at the.
Computer Networks Mozafar Bag-Mohammadi Lecture 5 Naming and the DNS.
DNS: Domain Name System
2: Application Layer1 Internet apps: their protocols and transport protocols Application remote terminal access Web file transfer streaming multimedia.
1 DNS: Domain Name System People: many identifiers: m SSN, name, Passport # Internet hosts, routers: m IP address (32 bit) - used for addressing datagrams.
Architecture of DNS CS 718 Activity 4 Submitted by Parag Abhyankar Anup S. Kunte
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Application Layer Lecture 6 Imran Ahmed University of Management & Technology.
CS640: Computer Networks Aditya Akella Lecture 17 Naming and the DNS.
COMT 6251 Network Layers COMT Overview IP and general Internet Operations Address Mapping ATM LANs Other network protocols.
Chapter 29 Domain Name System (DNS) Allows users to reference computer names via symbolic names translates symbolic host names into associated IP addresses.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
Domain Name System CH 25 Aseel Alturki
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
Netprog: DNS and name lookups1 Address Conversion Functions and The Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Internet and Intranet Protocols and Applications Lecture 5 Application Protocols: DNS February 20, 2002 Joseph Conron Computer Science Department New York.
1 Kyung Hee University Chapter 18 Domain Name System.
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
CPSC 441: DNS 1. DNS: Domain Name System Internet hosts: m IP address (32 bit) - used for addressing datagrams m “name”, e.g., - used by.
Internet Address and Domain Name Service (DNS)
CS 3830 Day 10 Introduction 1-1. Announcements r Quiz #2 this Friday r Program 2 posted yesterday 2: Application Layer 2.
EE 122: Lecture 20 (Domain Name Server - DNS) Ion Stoica Nov 15, 2001 (* based on the some on-line slides of J. Kurose & K. Rose and of Raj Jain)
Chapter 2 Application Layer Computer Networking: A Top Down Approach, 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
1. Internet hosts:  IP address (32 bit) - used for addressing datagrams  “name”, e.g., ww.yahoo.com - used by humans DNS: provides translation between.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
COMP 431 Internet Services & Protocols
Networking (Cont’d). Congestion Control l Is achieved by informing nodes along a route that congestion has occurred and asking them to reduce their packet.
1 Chapter 10: Application Layer Reference: Chapter 7 - “Computer Networks”, Andrew S. Tanenbaum, 4th Edition, Prentice Hall, 2003.
Ch 2. Application Layer Myungchul Kim
Spring 2006 CPE : Application Layer_DNS 1 Special Topics in Computer Engineering Application layer: Domain Name System Some of these Slides are.
Chapter 9: Domain Name Servers
Chapter 25 Domain Name System.
DNS.
Working at a Small-to-Medium Business or ISP – Chapter 7
Working at a Small-to-Medium Business or ISP – Chapter 7
EE 122: Domain Name Server (DNS)
Working at a Small-to-Medium Business or ISP – Chapter 7
Chapter 25 Domain Name System
DNS: Domain Name System
Chapter 25 Domain Name System.
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
The Application Layer: Sockets, DNS
Presentation transcript:

Chapter 9 Application Layer, DNS Professor Rick Han University of Colorado at Boulder rhan@cs.colorado.edu

Prof. Rick Han, University of Colorado at Boulder Announcements Read Sections 9.1 - 9.2, Skip 9.3 HW #4 on Web, tcpdump possibility Midterm: graded 3 out of 4 problems, partially finished grading last problem hand back April 4 Next, Application Layer Prof. Rick Han, University of Colorado at Boulder

Recap of Previous Lecture SACK-TCP Use TCP Options to extend TCP Header to provide Selective ACKs At most 3 non-contiguous blocks Higher throughput than GBN TCP Reno If one side of connection doesn’t support SACK, then fall back to cumulative ACKs TCP Extensions Timestamp Removes retransmission ambiguity, easy RTT calc., protects against wraparound Window Scale – for LFNs SACK Prof. Rick Han, University of Colorado at Boulder

Recap of Previous Lecture (2) Wireless TCP Wireless fading causes congestion backoff – Wrong response Split Connection Solution Doesn’t isolate wired conn. from wired losses Link Layer Solution Poor interaction with TCP Snoop TCP TCP-aware link layer solution At basestation, cache unACKnowledged TCP packets suppress duplicate ACKs back to sender while performing local retransmissions Prof. Rick Han, University of Colorado at Boulder

Recap of Previous Lecture (3) Snoop TCP Key advantages: Preserves end-to-end semantics Only soft state in basestation: easy to migrate, loss of soft state merely returns TCP to its default poor performance over wireless No transport termination or TCP code in base station Prof. Rick Han, University of Colorado at Boulder

Domain Name Service (DNS) Translate/resolve a name into an IP address www.cs.colorado.edu -> 128.138.242.195 Binding of a name to a value What are examples of an address translation service we’ve already studied? DHCP: MAC -> IP address ARP: IP address -> MAC These solutions are Confined in/near a local area network LAN DHCP: Client queries server ARP: Client queries a destination peer Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS (2) A DNS name translation service should provide at least global translation: input any name, get out an IP address Can we reuse concepts from DHCP/ARP to provide global name translation? DHCP Client queries DHCP server architecture (via relay) – useful theme Local LAN focus? No, need wide area naming system DHCP uses a somewhat distributed rather than a centralized architecture – useful theme Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS (3) What are drawbacks of a centralized architecture, i.e. all DNS clients query a central DNS server for name resolution? Single point of failure, not robust Traffic volume overwhelms central point, doesn’t scale well Thus, design DNS to provide Robust, Scalable, Global name translation/resolution Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS (4) Where have we seen scalable systems before? IP Routing: hierarchical BGP routing above/between OSPF and RIP AS domains Also, hierarchical directory naming in operating systems follow a tree structure Hierarchy is key to scalability Hierarchical distribution of processing Early Internet had a flat distribution scheme of UNIX /etc/hosts.txt file to all hosts – single point of failure, and easily overwhelmed Hierarchical naming Flat name space would be quickly unsupportable, e.g. think how large your home directory would become if confined to 1 directory Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS (5) DNS is an application-layer protocol that runs on top of UDP port 53 Commonly employed by other application-layer protocols such as HTTP, SMTP, and FTP http Web browser translates www.cs.colorado.edu into IP address, so http can set up a TCP connection to Web server Email SMTP program wants to send to rhan@cs.colorado.edu , so cs.colorado.edu has to be translated into an IP address Prof. Rick Han, University of Colorado at Boulder

DNS Hierarchical Name Space root org net edu com uk gov, mil, etc…. ucb colorado bu mit gwu cs ece anchor Prof. Rick Han, University of Colorado at Boulder

DNS Hierarchical Name Space (2) Names are hierarchical anchor.cs.colorado.edu starts from root with edu, then colorado, then cs, then anchor File systems start from the opposite direction: /home/users/rhan/Misc Higher level names specify domains: edu, com, gov, mil, org, and net Names become human-readable Names become unique and global Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS Name Servers DNS Servers assume responsibility for certain subtrees or zones in name hierarchy DNS as a hierarchy of name servers Scalable! – processing is distributed via hierarchy Each name server keeps a database of resource records binding names to IP addresses: <Name, Value, Type, Class, TTL> Name = www.cs.colorado.edu Value = IP address Type specifies how Value is interpreted, Value=A => Value is IP address Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS Name Servers (2) When Type = NS, then the Value field stores the address of another name server Each name server can point at other name servers, constructing a hierarchy of name servers Types of DNS Name Servers Root = highest level of hierarchy Local Name Server = lowest level of hierarchy Authoritative Name Server = final name server that answers DNS request, translating name to IP address A name server can be both local and authoritative Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS: Root Name Servers Responsible for “root” zone Approx. dozen root name servers worldwide Currently {a-m}.root-servers.net Local name servers contact root servers when they cannot resolve a name Configured with well-known root servers Prof. Rick Han, University of Colorado at Boulder Courtesy: Srini Seshan

Prof. Rick Han, University of Colorado at Boulder DNS Name Resolution Each host has a resolver UNIX clients will typically call gethostbyname() to initiate a DNS name lookup Typically a library that applications can link to Local name servers hand-configured (e.g. /etc/resolv.conf) Name servers Typically responsible for a zone in the hierarchy Local servers Do lookup of distant host names for local hosts Typically answer queries about local zone Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS Lookup Example root & edu DNS server www.cs.cmu.edu www.cs.cmu.edu NS cmu.edu cmu.edu DNS server Local DNS server NS cs.cmu.edu Client cs.cmu.edu Authoritative DNS server www=IPaddr Prof. Rick Han, University of Colorado at Boulder Courtesy: Srini Seshan

Prof. Rick Han, University of Colorado at Boulder Lookup Methods Iterative Server responds with as much as it knows (iterative) Recursive Server goes out and searches for more info on behalf of requestor (recursive) Only returns final answer or “not found” Impact on caching? workload? Local server typically does recursive Root/distant server does iterative Prof. Rick Han, University of Colorado at Boulder

DNS: Iterated Queries Recursive query: Iterative query: Puts burden of name resolution on contacted name server Heavy load? Iterative query: Contacted server replies with name of server to contact “I don’t know this name, but ask this server” root name server 2 iterated query 3 4 7 local name server dns.eurecom.fr intermediate name server dns.umass.edu 5 6 1 authoritative name server dns.cs.umass.edu 8 requesting host surf.eurecom.fr gaia.cs.umass.edu Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS Caching DNS responses are cached Quick response for repeated translations Often cache for 2 days DNS negative queries are cached Cache that the host could not be resolved Cached data periodically times out Lifetime (TTL) of data controlled by owner of data TTL passed with every record Prof. Rick Han, University of Colorado at Boulder

Prof. Rick Han, University of Colorado at Boulder DNS Reliability DNS servers are replicated to achieve robustness Name service available if at least one replica is up Queries can be load balanced between replicas Root servers are replicated – at least a dozen Each name server has a primary and secondary backup Secondary replicas periodically update primary name server’s entire database via a “zone transfer” protocol over TCP See RFC 2182 : Selection and Operation of Secondary DNS Servers Prof. Rick Han, University of Colorado at Boulder