计算机网络英文课件:lecture-08-DNS and P2P_第1页
计算机网络英文课件:lecture-08-DNS and P2P_第2页
计算机网络英文课件:lecture-08-DNS and P2P_第3页
计算机网络英文课件:lecture-08-DNS and P2P_第4页
计算机网络英文课件:lecture-08-DNS and P2P_第5页
已阅读5页,还剩26页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Computer Networking Lecture 8DNS and P2P March 16, 2017Dr. Qingyao WSome slides are from lectures of Prof. J.F Kurose and K.W. RossDNS: Domain Name SystemPeople: many identifiers: SSN, name, passport #Internet hosts, routers: IP address (32 bit) - used for addressing datagrams “name”, e.g., - used b

2、y humansQ: map between IP addresses and name ?Domain Name System:distributed database implemented in hierarchy of many name serversapplication-layer protocol: host, routers, name servers to communicate to resolve names (address/name translation) note: core Internet function, implemented as applicati

3、on-layer protocol complexity at networks “edge” Primarily uses UDP;DNS Why not centralize DNS? single point of failure traffic volume distant centralized database maintenancedoesnt scale!DNS services hostname to IP address translation host aliasing Canonical, alias names mail server aliasing load di

4、stribution replicated Web servers: set of IP addresses for one canonical nameCanonical:relay1.west-relay1.west-Alias:E mnemonicRoot DNS Serverscom DNS serversorg DNS serversedu DNS DNS DNS DNS DNS DNS serversDistributed, Hierarchical DatabaseClient wants

5、IP for ; 1st approx: client queries a root server to find com DNS server client queries com DNS server to get DNS server client queries DNS server to get IP address for Top-level Domain DNS ServerRoot DNS ServerAuthoritative DNS ServerDNS: Root name serversroot name server: contacts authoritative na

6、me server if name mapping not known gets mapping (hostname, IP) returns mapping to local name server 13 root name servers worldwideb USC-ISI Marina del Rey, CAl ICANN Los Angeles, CAe NASA Mt View, CAf Internet Software C. Palo Alto, CA (and 36 other locations)i Autonomica, Stockholm (plus 28 other

7、locations)k RIPE London (also 16 other locations)m WIDE Tokyo (also Seoul, Paris, SF)a Verisign, Dulles, VAc Cogent, Herndon, VA (also LA)d U Maryland College Park, MDg US DoD Vienna, VAh ARL Aberdeen, MDj Verisign, ( 21 locations)TLD and Authoritative Servers Top-level domain (TLD) servers: respons

8、ible 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: organizations DNS servers, providing authoritative hostname to IP mappings for organizations servers (e.g., Web, mail).

9、can be maintained by organization or service providerLocal 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

10、hierarchyrequesting root DNS serverlocal DNS server0 (apple)123456authoritative DNS 378TLD DNS serverDNS name resolution example Host at wants IP address for iterative query:contacted server replies with name of server to contact“I dont know thi

11、s name, but ask this server”9requesting 9root DNS serverlocal DNS server0 (apple)12456authoritative DNS 378TLD DNS server3recursive query:puts burden of name resolution on contacted name serverDNS name resolution exampleDNS: caching and updating recor

12、ds 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 /html.charters/dnsind-cha

13、rter.htmlDNS recordsDNS: distributed db storing resource records (RR) Type=NS name is domain (e.g. ) value is hostname of authoritative name server for this domainRR format: (name, value, type, ttl) Type=A name is hostname value is IP address Type=CNAME name is alias name for some “canonical” (the r

14、eal) name is really value is canonical name Type=MX value is canonical name of mailserver associated with nameDNS protocol, messagesDNS protocol : query and reply messages, both with same message formatmsg headeridentification: 16 bit # for query, reply to query uses same #flags: query or reply (1 b

15、it) recursion desired recursion available reply is authoritativeDNS protocol, messagesName, type fields for a queryRRs in responseto queryrecords forauthoritative serversadditional “helpful”info that may be usedInserting records into DNS example: new startup “Ubipass” register name at DNS registrar

16、(e.g., Network Solutions) provide names, IP addresses of authoritative name server (primary and secondary) registrar inserts two RRs into com TLD server:(, , NS)(, , A) create authoritative server Type A record for ; Type MX record for How do people get IP address of your Web site?Try n

17、slookup in windowsipconfig /displaydns; Nslookup d Try nslookup in windowsNslookup d Peer to Peer file sharingP2P file sharingExample Alice runs P2P client application on her notebook computer intermittently connects to Internet; gets new IP address for each connection asks for “Hey Jude” applicatio

18、n displays other peers that have copy of Hey Jude. Alice chooses one of the peers, Bob. file is copied from Bobs PC to Alices notebook: HTTP while Alice downloads, other users uploading from Alice. Alices peer is both a Web client and a transient Web server.All peers are servers = highly scalable!P2

19、P: centralized directoryOriginal “Napster” design1) when peer connects, it informs central server: IP address content2) Alice queries for “Hey Jude”3) Alice requests file from Bobcentralizeddirectory serverpeersAliceBob111123P2P: problems with centralized directory single point of failure performanc

20、e bottleneck copyright infringement: “target” of lawsuit is obvious file transfer is decentralized, but locating content is highly centralizedQuery flooding: Gnutella fully distributed no central server public domain protocol many Gnutella clients implementing protocoloverlay network: graph edge bet

21、ween peer X and Y if theres a TCP connection all active peers and edges form overlay net edge: virtual (not physical) link given peer typically connected with 10 overlay neighborsGnutella: protocolQueryQueryHitQueryQueryQueryHitQueryQueryQueryHitFile transfer:HTTPr Query messagesent over existing TC

22、Pconnectionsr peers forwardQuery messager QueryHit sent over reversepathScalability:limited scopefloodingGnutella: Peer joining1.joining peer Alice must find another peer in Gnutella network: use list of candidate peers2.Alice sequentially attempts TCP connections with candidate peers until connecti

23、on setup with Bob3.Flooding: Alice sends Ping message to Bob; Bob forwards Ping message to his overlay neighbors (who then forward to their neighbors.)rpeers receiving Ping message respond to Alice with Pong message4.Alice receives many Pong messages, and can then setup additional TCP connectionsPee

24、r leaving?Hierarchical Overlay between centralized index, query flooding approaches each peer is either a group leader or assigned to a group leader. TCP connection between peer and its group leader. TCP connections between some pairs of group leaders. group leader tracks content in its childrenordi

25、nary peergroup-leader peerneighoring relationshipsin overlay networkComparing Client-server, P2P architecturesQuestion : How much time distribute file initially at one server to N other computers?usu2d1d2u1uNdNServerNetwork (with abundant bandwidth)File, size Fus: server upload bandwidthui: client/p

26、eer i upload bandwidthdi: client/peer i download bandwidthClient-server: file distribution timeusu2d1d2u1uNdNServerNetwork (with abundant bandwidth)F server sequentially sends N copies: NF/us time client i takes F/di time to downloadincreases linearly in N(for large N)= dcs = max NF/us, F/min(di) iT

27、ime to distribute F to N clients using client/server approach P2P: file distribution timeusu2d1d2u1uNdNServerNetwork (with abundant bandwidth)F server must send one copy: F/us time client i takes F/di time to download NF bits must be downloaded (aggregate) fastest possible upload rate (assuming all nodes sending file chunks to same peer): us + S Suii=1,NdP2P = max F/us, F/min(di) , NF/(us + Sui) ii=1,NComparing Client-server, P2P architecturesP2P Case Study: BitTorrent tracker: tracks peers participating in torrenttorrent: group of peers exchanging chunks of a fileobtain listof peers

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论