复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)13 DNS

15-441 Computer Networking Lecture 13-DNS
15-441 Computer Networking Lecture 13 – DNS

Outline DNS Design DNS Today Lecture13:10-10-2006
Lecture 13: 10-10-2006 2 Outline • DNS Design • DNS Today

Naming How do we efficiently locate resources? DNs:name→| P address Challenge How do we scale these to the wide area? Lecture13:10-10-2006 3
Lecture 13: 10-10-2006 3 Naming • How do we efficiently locate resources? • DNS: name → IP address • Challenge • How do we scale these to the wide area?

Obvious Solutions (1) Why not centralize dNs? Single point of failure · Traffic volume Distant centralized database Single point of update Doesnt scale Lecture13:10-10-2006
Lecture 13: 10-10-2006 4 Obvious Solutions (1) Why not centralize DNS? • Single point of failure • Traffic volume • Distant centralized database • Single point of update • Doesn’t scale!

Obvious Solutions (2) Why not use /etc/hosts? Original Name to Address Mapping Flat namespace letc/hosts SRI kept main copy Downloaded regularly Count of hosts was increasing machine per domain machine per user Many more downloads Many more updates Lecture13:10-10-2006 5
Lecture 13: 10-10-2006 5 Obvious Solutions (2) Why not use /etc/hosts? • Original Name to Address Mapping • Flat namespace • /etc/hosts • SRI kept main copy • Downloaded regularly • Count of hosts was increasing: machine per domain → machine per user • Many more downloads • Many more updates

Domain Name System Goals Basically a wide-area distributed database Scalability Decentralized maintenance Robustness Global scope Names mean the same thing everywhere · Dont need Atomicity Strong consistency Lecture13:10-10-2006
Lecture 13: 10-10-2006 6 Domain Name System Goals • Basically a wide-area distributed database • Scalability • Decentralized maintenance • Robustness • Global scope • Names mean the same thing everywhere • Don’t need • Atomicity • Strong consistency

Programmers View of DNS Conceptually, programmers can view the dNS database as a collection of millions of host entry structures / DNS host entry structure * struct hostent t char *h name r official domain name of host * char **h aliases: null-terminated array of domain names*/ int h addrtype; host address type(AF INET)*/ n length; / length of an address, in bytes char **h addr list. null-terminated array of in addr structs * } in addr is a struct consisting of 4-byte IP address Functions for retrieving host entries from DNS gethostbyname: query key is a dNS host name gethosthyaddr: query key is an IP address Lecture13:10-10-2006
Lecture 13: 10-10-2006 7 Programmer’s View of DNS • Conceptually, programmers can view the DNS database as a collection of millions of host entry structures: • in_addr is a struct consisting of 4-byte IP address • Functions for retrieving host entries from DNS: •gethostbyname: query key is a DNS host name. •gethostbyaddr: query key is an IP address. /* DNS host entry structure */ struct hostent { char *h_name; /* official domain name of host */ char **h_aliases; /* null-terminated array of domain names */ int h_addrtype; /* host address type (AF_INET) */ int h_length; /* length of an address, in bytes */ char **h_addr_list; /* null-terminated array of in_addr structs */ };

DNS Message Format Identification Flags 12 bytes No. of Questions No, of answer rrs No of Authority RRs No, of Additional rrs Name, type fields for a query Questions (variable number of answers RRs in response to query Answers(variable number of resource records) Records for authoritative Authority(variable number of resource records) - servers Additional Additional Info (variable number of resource records) helpful info that may be used Lecture13:10-10-2006
Lecture 13: 10-10-2006 8 DNS Message Format Identification No. of Questions No. of Authority RRs Questions (variable number of answers) Answers (variable number of resource records) Authority (variable number of resource records) Additional Info (variable number of resource records) Flags No. of Answer RRs No. of Additional RRs Name, type fields for a query RRs in response to query Records for authoritative servers Additional “helpful info that may be used 12 bytes

DNS Header fields ·| dentification Used to match up request/response Flags 1-bit to mark query or response 1-bit to mark authoritative or not 1-bit to request recursive resolution 1-bit to indicate support for recursive resolution Lecture13:10-10-2006
Lecture 13: 10-10-2006 9 DNS Header Fields • Identification • Used to match up request/response • Flags • 1-bit to mark query or response • 1-bit to mark authoritative or not • 1-bit to request recursive resolution • 1-bit to indicate support for recursive resolution

DNS Records RR format:(class, name, value type, ttl DB contains tuples called resource records(RRs Classes Internet(IN), Chaosnet ( CH, etc Each class defines value associated with type FOR IN class. Type=A Type=CNAME · name is hostname name is an alias name for some value is iP address canonical(the real)name Type=NS value is canonical name name is domain(e.g. foo. com) pe=MX value is name of authoritative name value is hostname of mailserver server for this domain associated with name Lecture13:10-10-2006
Lecture 13: 10-10-2006 10 DNS Records RR format: (class, name, value, type, ttl) • DB contains tuples called resource records (RRs) • Classes = Internet (IN), Chaosnet (CH), etc. • Each class defines value associated with type FOR IN class: • Type=A • name is hostname • value is IP address • Type=NS • name is domain (e.g. foo.com) • value is name of authoritative name server for this domain • Type=CNAME • name is an alias name for some “canonical” (the real) name • value is canonical name • Type=MX • value is hostname of mailserver associated with name
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)12 Inter-Domain Routing BGP(Border Gateway Protocol).ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)11 Multicast.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)10 Intra-Domain Routing.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)09 IP Packets.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)08 Software School.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)07 Ethernet.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)06 Physical Layer(Cont)& Data Link Layer.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)05 physical_Transmission.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)04 Socket Programming.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)03 Design Philosophy & Applications.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)02 Protocol Stacks and Layering.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)01 Introduction.ppt
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_拥塞控制_project3-congestion_control.ppt
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_拥塞控制_project3_2013.pdf
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_因特网中继聊天(IRC)路由_project 2 IRC routing.pptx
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_因特网中继聊天(IRC)服务器_socketProgramming-Part2.pptx
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_因特网中继聊天(IRC)服务器_socketProgramming-Part1.pptx
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_因特网中继聊天(IRC)服务器_Network Project1 Request 2013.pdf
- 《计算机网络》课程教学资源(参考文献)MACAW_A Media Access Protocol for Wireless LAN’s.pdf
- 《计算机网络》课程教学资源(参考文献)Interdomain Internet Routing.pdf
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)14 ip-grab-bag(IP Wrap up).ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)15 Virtual Circuits, ATM, MPLS.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)16 Transport Protocols.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)17 TCP & Congestion Control.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)18 tcpdetails_More TCP & Congestion.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)19 TCP Performance.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)20 The Web.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)21 Peer-to-Peer(p2p).ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)22 Queue Management and QoS.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)23 mobile_Wireless Networking.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)25 Secure Communication with an Insecure Internet Infrastructure.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)25 security-dosfirewall——Attacks and Countermeasures.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)26 Wireless, Ad-Hoc Networks, Sensor Networks.ppt
- 复旦大学:《计算机网络》课程PPT课件_10 IP-Prot——Routers and Routing.pdf
- 《数据库系统》参考书籍:《Database Management Systems》2nd Ed(Raghu Ramakrishnan / Johannes Gehrke).pdf
- 《数据库系统》课程参考资料:DB2系统管理员指南 IBM DB2 Version 8 Administrator Guide(1/3)Planning.pdf
- 《数据库系统》课程参考资料:DB2系统管理员指南 IBM DB2 Version 8 Administrator Guide(2/3)Implementation.pdf
- 《数据库系统》课程参考资料:DB2 SQL指南 IBM DB2 Universal Database SQL Reference Volume 1 Version 8(1/2).pdf
- 《数据库系统》课程参考资料:DB2系统管理员指南 IBM DB2 Version 8 Administrator Guide(3/3)Performance.pdf
- 《数据库系统》课程参考资料:DB2 SQL指南 IBM DB2 Universal Database SQL Reference Volume 2 Version 8(2/2).pdf