Internet Address and Domain Name Service (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

Chapter 18. IP: Internet Protocol Addresses
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
An Engineering Approach to Computer Networking
Application Layer At long last we can ask the question - how does the user interface with the network?
Domain Name System: DNS
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Domain Name System Some slides used with permissions.
CPSC 441: DNS1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes derived.
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
DOMAIN NAME SYSTEM. Introduction  There are several applications that follow client server paradigm.  The client/server programs can be divided into.
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.
Chapter 25 Domain Name System
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
Ch25 Ameera Almasoud 1 Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007.
11.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 11: Introducing WINS, DNS,
NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
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.,
Internet Address and Domain Name Service (DNS) CS587x Lecture Department of Computer Science Iowa State University.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 18: Domain Name System Slides used with.
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.
IP Addressing Introductory material. An entire module devoted to IP addresses.
Domain names and IP addresses Resolver and name server DNS Name hierarchy Domain name system Domain names Top-level domains Hierarchy of name servers.
Computer Networks. IP Addresses Before we communicate with a computer on the network we have to be able to identify it. Every computer on a network must.
DNS: Domain Name System
DNS (Domain Name System) Protocol On the Internet, the DNS associates various sorts of information with domain names. A domain name is a meaningful and.
1 DNS: Domain Name System People: many identifiers: m SSN, name, Passport # Internet hosts, routers: m IP address (32 bit) - used for addressing datagrams.
Chapter 17 Domain Name System
1 Application Layer Lecture 6 Imran Ahmed University of Management & Technology.
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.
Domain Name System. CONTENTS Definitions. DNS Naming Structure. DNS Components. How DNS Servers work. DNS Organizations. Summary.
Netprog: DNS and name lookups1 Address Conversion Functions and The Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
C HAPTER 9 Supporting TCP/IP, DNS using Windows XP.
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.
Configuring Name Resolution and Additional Services Lesson 12.
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)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
DNS DNS overview DNS operation DNS zones. DNS Overview Name to IP address lookup service based on Domain Names Some DNS servers hold name and address.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Domain Name System Some slides used with permissions.
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
Internet Address and Domain Name Service (DNS) CS587x Lecture 5 Department of Computer Science Iowa State University.
CS470 Computer Networking Protocols
1. Internet hosts:  IP address (32 bit) - used for addressing datagrams  “name”, e.g., ww.yahoo.com - used by humans DNS: provides translation between.
COMP2322 Lab 3 DNS Steven Lee Feb. 19, Content Understand the Domain Name System (DNS). Analyze the DNS protocol with Wireshark. 2.
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
Internet Naming Service: DNS* Chapter 5. The Name Space The name space is the structure of the DNS database –An inverted tree with the root node at the.
Domain Name System INTRODUCTION to Eng. Yasser Al-eimad
Basics of the Domain Name System (DNS) By : AMMY- DRISS Mohamed Amine KADDARI Zakaria MAHMOUDI Soufiane Oujda Med I University National College of Applied.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Domain Name System: DNS To identify an entity, TCP/IP protocols use the IP address, which uniquely identifies the Connection of a host to the Internet.
Chapter 9: Domain Name Servers
Domain Name System (DNS)
DNS.
CS4470 Computer Networking Protocols
EE 122: Domain Name Server (DNS)
CRC Example (I) C(x) = x2 + 1 (k = 2) data
IP Addressing Introductory material
DNS: Domain Name System
An Engineering Approach to Computer Networking
Presentation transcript:

Internet Address and Domain Name Service (DNS) CS587x Lecture 5 Department of Computer Science Iowa State University

What to cover today Internet Address Domain Name Service IPv4 CIDR Name Resolution Load Balancing

Internet Addressing IPv4 Classified IP address Each address is represented by 4 bytes Four numbers, 0-255, separated by dots Classified IP address Class+Network ID+Host ID

Special IP Addresses Some special addresses Reserved addresses 0.0.0.0 - “this host” 255.255.255.255 - “all hosts” 127.0.0.1 - “localhost” Reserved addresses Can be used locally (behind Network Address Translator, for example) 192.168.0.0-192.168.255.255 172.16.0.0-172.31.255.255 10.0.0.0-10.255.255.255 Not routed through the Internet

IP Address Space Exhaustion Restricting IP addresses to 32 bits imposes a major limitation in the number of hosts on the Internet IPv6 calls for 128 bits address, but requires significant changes throughout much of the Internet Some solutions Assign IP to machines dynamically For an ISP, at any given time, only a small percentage of its customers are connected to the network Computers not visible to the Internet can share the same block of IP address

Classless Interdomain Routing (CIDR) CIDR uses flexible block sizes for address allocation CIDR allows the division between the network and host portions of the IP addresses to occur at any point in the 32-bit number The size of a block of IP addresses could be any power of 2 A CIDR network is identified by a network address and a mask length that indicates how many bits are devoted to the network part of the address 204.70.2.0/23: the 23-bit network address leaves 9 of the 32 bits for representing 512 hosts on that network 129.186.0.0/16 (ISU), 192.188.162.0/24 (ISU Research Park), 63.224.0.0/13 (USWest)

Compatibility with Existing Addresses The addresses allocated with class can be extended with mask Class A address, a#.b#.c#.d# can be recognized as a#.b#.c#.d#/8 Class B address, a#.b#.c#.d# can be recognized as a#.b#.c#.d#/16 Class C address, a#.b#.c#.d# can be recognized as a#.b#.c#.d#/24

Advantages of CIDR Flexible allocation of IP address blocks allows more efficient use of 32-bit address space An organization needing 512 addresses could be assigned with a 23-bit mask, rather than an entire class B network (65536 addresses) ISPs can now aggregate their networks into larger blocks for the purpose of routing Suppose an ISP is assigned the 12.0.0.0/8 network. This block of addresses could be divided into smaller blocks and allocated to specific customers of this ISP E.g., one customer can have 12.45.0.0/16 and another might have 12.194.34.0/23 network The allocation of address blocks may depend on the size of the customer

Routing with CIDR Routers normally do not remember each individual IP Given an IP packet, routers determine the block it belongs to and send the packet to the ISP who are responsible for this block The ISP needs to know how to reach each of its own separate networks Advantage: Internet routers need only to know how to reach ISPs Hierarchical addressing Similar to postal office

Domain Name Service Routers need an address to route while people need a host name to remember Host Names yield information to people IP addresses yield information to routers Solution: give each IP address a name popeye.cs.iastate.edu  129.186.3.1 www.myown.com  111.222.333.444 Questions: Given an IP, how to find out its hostname? Given a hostname, how to find out its IP?

DNS: History 1970’s ARPANET All host-address mappings were in hosts.txt (in /etc/hosts) Changes were submitted to SRI-NIC by email New versions of hosts.txt were updated periodically from SRI Administrators could pick names at their discretion As the internet grew this system broke down because of Traffic and load: SRI couldn’t handled the load Reliability: The system was unreliable since there was a single point of contact Consistency and confliction: Names were not unique and many hosts had inaccurate copies of hosts.txt Internet growth was threatened DNS was created in 1983 (RFCs 1034 and 1035), modified, updated, and enhanced by subsequent RFCs

DNS Concepts Provide a lookup mechanism for object translation (IP address  hostname) DNS is implemented as a globally distributed, loosely coherent, scalable, reliable, dynamic database DNS consists of three components Namespace Domain Name Servers DNS queries (issued by clients) gethostbyname() gethostbyaddr()

DNS Namespace The namespace must be able to scale Solution: make namespace hierarchical by naming objects based on location (within country, set of organizations, set of companies, etc) unit within that location (company within set of company, etc) object within unit (name of person in company)

Hierarchical Organization of Host names root edu com gov mil org net fr cn The first level names are called “Top Level Domains” Depth of tree is arbitrary (limit 128) No restriction on the amount of branch Domains are subtrees e.g. iastate.edu and cs.iastate.edu Name collision avoided e.g. iastate.edu and iastate.com iastate mit cs eece popeye

Hierarchical Administration of Host Names root root edu edu com com gov gov mil mil org org net net fr cn iastate mit Each zone corresponds to an administrative authority that is responsible for that portion of the hierarchy Zones are “administrative spaces” Zone administrators are responsible for portion of a domain’s name space Authority is delegated from a parent and to a child cs eece popeye

Domain Name Servers Name servers, who answer “DNS” questions, are organized in hierarchies Each server has authority over a portion of the hierarchy A server maintains only a subset of all names Each server contains all the records for the hosts in its zone Each server may know other servers who are responsible for the other portions of the hierarchy Every server knows the root Root server knows about all top-level domains

DNS Protocol Govern the communication between a DNS client and a DNS server A DNS client sends a query to a DNS server, which returns a response with the requested information DNS primarily uses UDP for sending queries and responses, although TCP may also be used DNS queries can be Recursive : such queries request the receiving DNS server resolve the entire request itself Iterative : such queries request the receiving DNS server respond directly to the DNS client with the IP address of the next DNS server in the hierarchy Root server handles only iterative queries

Example of Recursive Query root name server popeye.cs.iastate.edu wants IP address of www.berkeley.edu 1. Contacts its local DNS server, 129.186.3.1 2. 129.186.3.1 contacts root name server, if necessary 3. Root name server contacts authoritative name server, ns1.berkeley.edu, if necessary 2 4 3 5 local name server 129.186.3.1 authorititive name server ns1.berkeley.edu 1 6 requesting host popeye.cs.iastate.edu www.berkeley.edu

Example of Iterated Queries Contacted server replies with name of server to contact “I don’t know this name, but you can ask this server” root name server 2 iterated queries 3 4 5 intermediate name server (com server) local name server 129.186.3.1 7 6 1 8 authoritative name server www.myown.com requesting host popeye.cs.iastate.edu www.sales.myown.com

DNS query is expensive Resolving an IP hostname may invoke several messages Solution: caching previous query results The cached mapping can be used The cached results can be associated with TTL to reduce the risk of using expired information

DNS-based Web Server Load Balancing A popular web site can be replicated in different geographical locations in order to provide better service to a diverse set of clients One web site can be associated with more than one IP addresses For example, all hosts in the acme.com may have the same IP address The return of an IP address may depend on where a query is sent from

Load Balancing (1) DNS can return an IP address based on where queries come from Direct HTTP requests to a collection of web servers that provide access to the same content

Example: www.akamai.com From Ames C:\>ping www.akamai.com Pinging a1440.g.akamai.net [209.152.119.232] with 32 bytes of data: Request timed out. Ping statistics for 209.152.119.232: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), From the NY area 63.240.15.146 From the UK 194.82.174.224

Load Balancing (2) A query to a host name may return several IP address e.g., www.big.com may correspond to four machines with IP addresses 1.2.3.1, 1.2.3.2, 1.2.3.3, 1.2.3.4 By default, the requesting client uses the first IP address Heavy load on the server 1.2.3.1 DNS can vary the order of the IP addresses for each query The response to the second query could be 1.2.3.2, 1.2.3.3, 1.2.3,4, 1.2.3.1.

DNS Summary Internet address and CIDR DNS is a crucial part of the internet Namespace is hierarchical Globally distributed and locally managed DNS performance is enhanced by caching DNS can help balance web server workload