chapter 2 application layer
play

Chapter 2: Application layer 2.1 Principles of network 2.6 P2P - PowerPoint PPT Presentation

Chapter 2: Application layer 2.1 Principles of network 2.6 P2P applications applications 2.7 Socket programming 2.2 Web and HTTP with TCP 2.3 FTP 2.8 Socket programming with UDP 2.4 Electronic Mail 2.9


  1. Chapter 2: Application layer • 2.1 Principles of network • 2.6 P2P applications applications • 2.7 Socket programming • 2.2 Web and HTTP with TCP • 2.3 FTP • 2.8 Socket programming with UDP • 2.4 Electronic Mail • 2.9 Building a Web – SMTP, POP3, IMAP server • 2.5 DNS 2: Application Layer 1

  2. DNS: Domain Name System Domain Name System: People: many identifiers: • distributed database – SSN, name, passport # implemented in hierarchy of Internet hosts, routers: many name servers – IP address (32 bit) - used • application-layer protocol for addressing datagrams – host, routers, name servers – “name”, e.g., communicate to resolve ww.yahoo.com - used by humans names (address/name translation) Q: map between IP • note: core Internet function, addresses and name ? implemented as application- layer protocol – complexity at network’s “edge ” 2: Application Layer 2

  3. DNS Why not centralize DNS? DNS services • single point of failure • Hostname-to-IP • traffic volume address translation • distant centralized • host aliasing database – Canonical, alias names • maintenance • mail server aliasing • load distribution doesn’t scale! – replicated Web servers: set of IP addresses for one canonical name 2: Application Layer 3

  4. Distributed, Hierarchical Database Root DNS Servers org DNS servers edu DNS servers com DNS servers poly.edu umass.edu pbs.org yahoo.com amazon.com DNS servers DNS servers DNS servers 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 2: Application Layer 4

  5. 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 a Verisign, Dulles, VA c Cogent, Herndon, VA (also LA) d U Maryland College Park, MD k RIPE London (also 16 other locations) g US DoD Vienna, VA i Autonomica, Stockholm (plus h ARL Aberdeen, MD j Verisign, ( 21 locations) 28 other locations) m WIDE Tokyo (also Seoul, e NASA Mt View, CA Paris, SF) f Internet Software C. Palo Alto, CA (and 36 other locations) 13 root name servers worldwide b USC-ISI Marina del Rey, CA l ICANN Los Angeles, CA 2: Application Layer 5

  6. 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 2: Application Layer 6

  7. 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 2: Application Layer 7

  8. DNS name root DNS server resolution example 2 3 • Host at cis.poly.edu TLD DNS server 4 wants IP address for gaia.cs.umass.edu 5 local DNS server iterated query: dns.poly.edu � contacted server 6 7 replies with name of 1 8 server to contact authoritative DNS server � “I don’t know this dns.cs.umass.edu name, but ask this requesting host server” cis.poly.edu gaia.cs.umass.edu 2: Application Layer 8

  9. DNS name root DNS server resolution example 2 3 • Host at cis.poly.edu TLD DNS server 4 wants IP address for gaia.cs.umass.edu 5 local DNS server iterated query: dns.poly.edu � contacted server 6 7 replies with name of 1 8 server to contact authoritative DNS server � “I don’t know this dns.cs.umass.edu name, but ask this requesting host server” cis.poly.edu gaia.cs.umass.edu 2: Application Layer 9

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

  11. 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 under design by IETF – RFC 2136 – http://www.ietf.org/html.charters/dnsind-charter.html 2: Application Layer 11

  12. DNS records DNS: distributed db storing resource records (RR) RR format: (name, value, type, ttl) � Type=A � Type=CNAME � name is hostname � name is alias name for some “canonical” (the real) name � value is IP address www.ibm.com is really • Type=NS servereast.backup2.ibm.com – name is domain (e.g. � value is canonical name foo.com) � Type=MX – value is hostname of � value is name of mailserver authoritative name associated with name server for this domain 2: Application Layer 12

  13. 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 2: Application Layer 13

  14. 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 2: Application Layer 14

  15. DNS records • from wikipedia: In computer networking, a zone file is a text file that describes a portion of the domain name system (DNS) called a DNS zone. A zone contains information that defines mappings between domain names and IP addresses and other resources, organized in the form of resource records ( RR ). • originally defined in RFC 1034, RFC 1035 • Maintained by the DNS server • Some types: – A – identifies the name’s address – CNAME – identifies the name’s “canonical name” – MX – identifies a mail-server for the domain 2: Application Layer 15

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend