




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025至2030中国男士帆布鞋行业市场发展态势及发展趋势与发展趋势分析与未来投资战略咨询研究报告
- 2025至2030中国电弧焊接设备行业发展趋势分析与未来投资战略咨询研究报告
- 2025至2030中国琥珀酸亚铁市场投资建议及未来发展潜力评估报告
- 三年级数学五千以内加减混合两步运算题综合练习题带答案
- 20以内的不退位减法单元测试训练题
- 2025年市场分析报告(五)
- 2022-2027年中国高校软硬件应用市场竞争态势及行业投资潜力预测报告
- 2025年中国代步平衡车行业市场调研分析及投资战略规划报告
- 2025年中国磷酸燃料电池行业市场深度分析及投资战略规划建议报告
- 2020-2025年中国咖啡市场运行态势及行业发展前景预测报告
- JT-T-1240-2019城市公共汽电车车辆专用安全设施技术要求
- 2024届湖北省鄂东南联盟数学高一下期末达标检测模拟试题含解析
- 城市公园物业管理费用收支预案
- 盐城市2023-2024学年三年级语文第二学期期末调研检测模拟卷
- 小学生假期心理健康教育内容
- 拉刀设计计算说明书
- 《快递企业安全管理》课件
- 大学化学期末考试卷(含答案)
- 转向系统开发手册
- (完整word版)劳动合同书(电子版)正规范本(通用版)
- 专题1.3 新定义问题(压轴题专项讲练)2023-2024学年七年级数学上册压轴题专项讲练系列(人教版)(解析版)
评论
0/150
提交评论