1 10. DNS, HTTP, Unix Socket Programming DNS (Domain Name Service) Domain Name Name Resolution HTTP (Hyper Text Transfer Protocol) Request Response Persistent.

Slides:



Advertisements
Similar presentations
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
Advertisements

Spring 2003CS 4611 Naming Outline Terminology Domain Naming System Distributed File Systems.
CS 6401 The Domain Name System Outline Domain Name System.
Spring 2002CS 4611 Naming Outline Terminology Domain Naming System Distributed File Systems.
1 Higher level protocols Domain Naming System, DNS HTTP.
Spring 2006CS 3321 Name Service (DNS) Outline Terminology Domain Naming System.
Applications Outline Name Service (DNS) Traditional Applications.
CS440 Computer Networks 1 Domain Name System (DNS) Neil Tang 12/05/2008.
Cics 515 – Summer 2012 © Dr. Son Vuong 1 CICS 515 (Part 2) University of British Columbia CICS 515 (Part 2) Computer Networks Lecture 5b-c – IPv6 and Other.
1 Naming Services (DNS) Name versus Address Name space –defines set of possible names –consists of a set of name to value bindings –flat (names are not.
1 Naming Outline Terminology Domain Naming System Distributed File Systems.
Domain Name System (or Service) (DNS) Computer Networks Computer Networks Spring 2012 Spring 2012.
Domain Name System (DNS) Network Information Center (NIC) : HOSTS.TXT.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 23 – Internet Applications Internet Directory.
Naming Names in computer systems are used to share resources, to uniquely identify entities, to refer to locations and so on. An important issue with naming.
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.
Application Layer. Domain Name System Domain Name System (DNS) Problem – Want to go to but don’t know the IP addresswww.google.com Solution.
Rensselaer Polytechnic Institute CSC-432 – Operating Systems David Goldschmidt, Ph.D.
1 Computer Networks: A Systems Approach, 5e Larry L. Peterson and Bruce S. Davie Chapter 9 Applications Copyright © 2010, Elsevier Inc. All rights Reserved.
Web Client/Server Communication A290/A590, Fall /09/2014.
NAME SERVICES. Names and addresses File names /etc/passwd URLS Internet domain names—dcs.qmw.ac.uk Identifiers- ROR, NFS.
Chapter 9 - Applications We will look at three main applications DNS (name services) SMTP ( ) HTTP (World Wide Web) Our main focus will be on DNS.
DNS and HTTP CS 168. Domain Name Service Host addresses: e.g., – a number used by protocols – conforms to network structure (the “where”)
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
Lecturer: Maxim Podlesny Sep CSE 473 File Transfer and Electronic in Internet.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Chapter 31 - Naming with the Domain Name System IP addresses vs. symbolic names Structure of Computer names DNS naming structure DNS server hierarchy An.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
Web application architecture
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Sistem Jaringan dan Komunikasi Data #9. DNS The Internet Directory Service  the Domain Name Service (DNS) provides mapping between host name & IP address.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 25 – April 15, 2010.
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
Spring, 2001CS 6401 Addressing and Domain Name System Outline Addressing Subnetting Supernetting Domain Name System.
CSS432: Applications 1 CSS432 Domain Name System Textbook Instructor: Joe McCarthy (based on Prof. Fukuda’s slides)
1 TCP/IP Networking. 2 TCP/IP TCP/IP is the networking protocol suite most commonly used with UNIX, Windows, NT and most other OS’s. TCP/IP defines a.
Naming March 8, Networks What is naming?  Associations between some elements in a set of names and some elements in a set of values  Binding.
Ch 2. Application Layer Myungchul Kim
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Chapter 9 Applications Giving user-friendly names (instead of router-friendly addresses) is often the 1 st application (middleware) implemented on a network.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
CSS432: Applications 1 CSS432 Applications Textbook Ch 9.1 Professor: Munehiro Fukuda Augmented by Rob Nash.
4343 X2 – Outline The Domain Name System The Web.
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.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 23 – Internet Applications Internet Directory.
Naming CSCI 6900/4900. Mounting Mounting – Merging different namespaces transparently File system example –Directory node of one namespace stores identifier.
So DNS is A client-server application that maps domain names into their corresponding IP addresses with the help of name servers. Mapping domain names.
Ch 2. Application Layer Myungchul Kim
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.
1 COM Chapter 9 Applications 3 Part network protocol (in the sense that they exchange messages with their peers on other machines) and part traditional.
Tiny http client and server
HTTP – An overview.
Hypertext Transport Protocol
University of Houston Applications Datacom II Lecture 12 B
CSS432 Applications Textbook Ch 9.1 and 9.3.1
Applications Outline (SMTP) Web (HTTP) Network management (SNMP)
Chapter 25 Domain Name System
Chapter 9 Applications (Naming) Outline Terminology
Hyper Text Transfer Protocol
HyperText Transfer Protocol
EE 122: HyperText Transfer Protocol (HTTP)
Chapter 25 Domain Name System
HTTP Hypertext Transfer Protocol
Presentation transcript:

1 10. DNS, HTTP, Unix Socket Programming DNS (Domain Name Service) Domain Name Name Resolution HTTP (Hyper Text Transfer Protocol) Request Response Persistent Connection Socket Programming API

2 DNS Overview Attributes of an object –name –address –itself Name space –defines set of possible names –consists of a set of name to value bindings

3 Properties Names versus addresses Location transparent versus location-dependent Flat versus hierarchical Global versus local Absolute versus relative Unique versus ambiguous

4 Examples Hosts cheltenham.cs.princeton.edu :23:A8:33:5B:9F Files /usr/llp/tmp/foo (server, fileid) Users Larry Peterson

5 Examples (cont) Mailboxes Services nearby ps printer with short queue and 2MB Name server Mail program User TCP IP 2 cs.princeton.edu cs.princeton.edu

6 Domain Naming System Hierarchy Name chinstrap.cs.princeton.edu

7 Name Servers Partition hierarchy into zones educom princeton … mit csee ux01ux04 physics cisco … yahoonasa … nsfarpa … navyacm … ieee govmilorgnetukfr Root name server Princeton name server Cisco name server CS name server EE name server … … Each zone implemented by two or more name servers

8 Resource Records Each name server maintains a collection of resource records (Name, Value, Type, Class, TTL) Name/Value: not necessarily host names to IP addresses Type –NS: Value gives domain name for host running name server that knows how to resolve names within specified domain. –CNAME: Value gives canonical name for particle host; used to define aliases. –MX: Value gives domain name for host running mail server that accepts messages for specified domain. Class: allow other entities to define types TTL: how long the resource record is valid

9 Root Server (princeton.edu, cit.princeton.edu, NS, IN) (cit.princeton.edu, , A, IN) (cisco.com, thumper.cisco.com, NS, IN) (thumper.ciscoe.com, , A, IN) …

10 Princeton Server (cs.princeton.edu, optima.cs.princeton.edu, NS, IN) (optima.cs.princeton.edu, , A, IN) (ee.princeton.edu, helios.ee.princeton.edu, NS, IN) (helios.ee.princeton.edu, , A, IN) (jupiter.physics.princeton.edu, , A, IN) (saturn.physics.princeton.edu, , A, IN) (mars.physics.princeton.edu, , A, IN) (venus.physics.princeton.edu, , A, IN)

11 CS Server (cs.princeton.edu, optima.cs.princeton.edu, MX, IN) (cheltenham.cs.princeton.edu, , A, IN) (che.cs.princeton.edu, cheltenham.cs.princeton.edu, CNAME, IN) (optima.cs.princeton.edu, , A, IN) (opt.cs.princeton.edu, optima.cs.princeton.edu, CNAME, IN) (baskerville.cs.princeton.edu, , A, IN) (bas.cs.princeton.edu, baskerville.cs.princeton.edu, CNAME, IN)

12 Name Resolution Strategies –iterative –recursive Local server –need to know root at only one place (not each host) –site-wide cache Root name server Princeton name server CS name server Local name server Client 1 cicada.cs.princeton.edu cicada.cs.princeton.edu princeton.edu, cicada.cs.princeton.edu cicada.cs.princeton.edu, cicada.cs.princeton.edu cs.princeton.edu,

13 HTTP Message format: Request START_LINE MESSAGE_HEADER MESSAGE_BODY GET HTTP/1.0http:// GET /index.html HTTP/1.1 Host:

14 HTTP Methods in Request –GET: retrieve document –HEAD: retrieve meta-information –POST: give information to server –PUT: store document under specified URL –DELETE: delete specified URL –TRACE: loopback request message –CONNECT: for use by proxies –OPTIONS: request information about available options

15 HTTP Response HTTP/ Not Found HTTP/ OK Server: Netscape-Enterprise/4.1 Date: … Expires: … CONTENTS of the FILE

16 HTTP Persistent Connection in HTTP/1.1 –Image files –Cost of TCP connections –Persistent connection: KEEP-ALIVE

17 Socket Programming API Server Side (passive open) –Bind –Listen –Accept –Close Client Side (active open) –Bind –Connect –Close