Internet组播简介.ppt





《Internet组播简介.ppt》由会员分享,可在线阅读,更多相关《Internet组播简介.ppt(134页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、清华大学计算机系Internet组播简介1主要内容u为什么需要组播?u组播地址u主机和路由器的交互:IGMP u组播分发树u组播转发u域内组播路由协议u域间组播路由协议uIPv62主要内容u为什么需要组播?u组播地址u主机和路由器的交互:IGMP u组播分发树u组播转发u域内组播路由协议u域间组播路由协议uIPv63ServerRouterUnicastServerRouterMulticast单播和组播的比较4Example:Audio StreamingAll clients listening to the same 8 Kbps audio0TrafficMbps12040608010
2、0#ClientsMulticastUnicast组播的优势uuEnhanced EfficiencyEnhanced Efficiency:Controls network traffic and reduces server and CPU loadsuuOptimized PerformanceOptimized Performance:Eliminates traffic redundancyuuDistributed ApplicationsDistributed Applications:Makes multipoint applications possible5组播带来的问题u
3、Best Effort Delivery:Drops are to be expected.Multicast applications should not expect reliable delivery of data and should be designed accordingly.Reliable Multicast is still an area for much research uNo Congestion Avoidance:Lack of TCP windowing and“slow-start”mechanisms can result in network con
4、gestion.If possible,Multicast applications should attempt to detect and avoid congestion conditions组播是基于组播是基于UDP的!的!6组播带来的问题uDuplicates:Some multicast protocol mechanisms(e.g.Asserts,Registers and SPT Transitions)result in the occasional generation of duplicate packetsuOut of Order Delivery:Some pro
5、tocol mechanisms may also result in out of order delivery of packets7组播的应用uMultimediaStreaming media,IPTVTraining,corporate communications Conferencingvideo/audiouNet GameuAny one-to-many data push applications8主要内容u为什么需要组播?u组播地址u主机和路由器的交互:IGMP u组播分发树u组播转发u域内组播路由协议u域间组播路由协议uIPv69uIPv4 Multicast Grou
6、p Addresses Class“D”Address Space High order bits of 1st Octet=“1110”uReserved Link-local Addresses Transmitted with TTL=1 Examples:224.0.0.1 All systems on this subnet224.0.0.2 All routers on this subnet224.0.0.4 DVMRP routers224.0.0.5 OSPF routers224.0.0.13 PIMv2 routers组播地址 10uAdministratively Sc
7、oped AddressesPrivate address spaceSimilar to RFC1918 unicast addressesNot used for global Internet trafficUsed to limit“scope”of multicast trafficSame addresses may be in use at different locations for different multicast sessionsExamples组播地址 1132 Bits28 Bits25 Bits23 Bits48 Bits01-00-501-00-5e-7f-
8、00-01e-7f-00-0111105 BitsLost组播地址IP Multicast MAC Address Mapping(FDDI and Ethernet)12 .01-Multicast MAC Address(FDDI and Ethernet)32-IP Multicast Addresses组播地址Be Aware of the 32:1 Address OverlapBe Aware of the 32:1 Address OverlapIP Multicast MAC Address Mapping(FDDI&Ethernet)13组播地址 uDynamic Group
9、 Address AssignmentHistorically accomplished using SDR applicationSessions/groups announced over well-known multicast groupsAddress collisions detected and resolved at session creation timeHas problems scaling14组播地址 uFuture dynamic techniques under considerationMulticast Address Set-Claim(MASC)Hiera
10、rchical,dynamic address allocation schemeExtremely complex garbage-collection problem Long ways offMADCAPSimilar to DHCPNeed application and host stack support15组播地址 uStatic Group Address AssignmentTemporary method to meet immediate needsYour AS number is inserted in middle two octetsRemaining low-o
11、rder octet used for group assignmentDefined in IETF RFC3180GLOP Addressing in 233/816主要内容u为什么需要组播?u组播地址u主机和路由器的交互:IGMP u组播分发树u组播转发u域内组播路由协议u域间组播路由协议uIPv617Routers solicit group membership from directly connected hostsRFC 1112 specifies version 1 of IGMPRFC 2236 specifies version 2 of IGMPRFC 3376 sp
12、ecifies version 3 of IGMPSupported on latest service pack for Windows and most UNIX systemsHow hosts tell routers about group membership主机和路由器的交互:IGMP18H3uHost sends IGMP Report to join groupH3224.1.1.1ReportH1H2Joining a Group主机和路由器的交互:IGMP19uRouter sends periodic QueriesQueryOne member per group p
13、er subnet reports224.1.1.1ReportOther members suppress reports224.1.1.1SuppressedX224.1.1.1SuppressedXH1H2H3Maintaining a Group主机和路由器的交互:IGMP20Host quietly leaves groupH1H3H3#1Router sends 3 General Queries(60 secs apart)General Query#2No IGMP Report for the group is receivedGroup times out(Worst ca
14、se delay=3 minutes)H2Leaving a Group(IGMPv1)主机和路由器的交互:IGMP21H1H3H3Leave to224.0.0.2224.1.1.1#1#1Group SpecificQuery to 224.1.1.1#2#2No IGMP Report is received within 3 secondsGroup 224.1.1.1 times outH2Leaving a Group(IGMPv2)主机和路由器的交互:IGMP22IGMPv3uRFC3376uEnables hosts to listen only to a specified
15、subset of the hosts sending to the group23R1R3R2With IGMP,specific sources can be pruned back-S=2.2.2.2 in this caseIGMPv3:IGMPv324主要内容u为什么需要组播?u组播地址u主机和路由器的交互:IGMP u组播分发树u组播转发u域内组播路由协议u域间组播路由协议uIPv625Shortest Path or Source Distribution TreeReceiver 1BEADFSource 1Notation:(S,G)S=Source G=GroupCRece
16、iver 2Source 2组播分发树26Receiver 1BEADFSource 1Notation:(S,G)S=Source G=GroupCReceiver 2Source 2组播分发树Shortest Path or Source Distribution Tree27组播分发树Shared Distribution TreeReceiver 1BEAD FNotation:(*,G)*=All Sources G=GroupCReceiver 2(RP)PIM Rendezvous PointShared Tree(RP)28组播分发树Shared Distribution Tr
17、eeReceiver 1BEAFSource 1Notation:(*,G)*=All Sources G=GroupCReceiver 2Source 2(RP)PIM Rendezvous PointShared TreeSource TreeD(RP)29组播分发树u Source or Shortest Path treesuses more memory O(S G)but you get optimal paths from source to all receiversminimizes delayu Shared treesuses less memory O(G)but yo
18、u may get sub-optimal paths from source to all receiversmay introduce extra delayCharacteristics of Distribution Trees30主要内容u为什么需要组播?u组播地址u主机和路由器的交互:IGMP u组播分发树u组播转发u域内组播路由协议u域间组播路由协议uIPv631组播转发uMulticast Forwarding is backwards from Unicast ForwardingUnicast Forwarding is concerned about where the
19、packet is goingMulticast Forwarding is concerned about where the packet came fromuMulticast Forwarding uses“Reverse Path Forwarding”32组播转发 What is RPF?What is RPF?A router forwards a multicast datagram only if received on the up stream interface to the source(i.e.it follows the distribution tree)The
20、 RPF CheckThe RPF Check The routing table used for multicasting is checked against the“source”IP address in the packet If the datagram arrived on the interface specified in the routing table for the source address;then the RPF check succeeds Otherwise,the RPF Check failsReverse Path Forwarding(RPF)3
21、3组播转发Example:RPF CheckingMcast PacketsRPF Check FailsRPF Check Fails Packet arrived on wrong interface!Packet arrived on wrong interface!34组播转发RPF Check Fails!Unicast Route TableNetwork Interface151.10.0.0/16S1198.14.32.0/24S0204.1.16.0/24E0A closer look:RPF Check FailsPacket Arrived on Wrong Interf
22、ace!E0S1S0S2S1S1Multicast Packet fromSource 151.10.3.21XDiscard Packet!35组播转发A closer look:RPF Check SucceedsRPF Check Succeeds!Unicast Route TableUnicast Route TableNetworkNetwork Interface Interface151.10.0.0/16151.10.0.0/16S1S1198.14.32.0/24198.14.32.0/24S0S0204.1.16.0/24204.1.16.0/24E0E0E0S1S0S2
23、Multicast Packet fromSource 151.10.3.21Packet Arrived on Correct Interface!S1S1Forward out all outgoing interfaces.(i.e.down the distribution tree)36主要内容u为什么需要组播?u组播地址u主机和路由器的交互:IGMP u组播分发树u组播转发u域内组播路由协议u域间组播路由协议uIPv637Multicast Routing is not unicast routingu You have to think of it differentlyu It
24、 is not like OSPFu It is not like RIPu It is not like anything you may be familiar with组播路由和单播路由38组播路由协议的类型uDense-modeUses“Push”ModelTraffic Flooded throughout networkPruned back where it is unwantedFlood&Prune behavior(typically every 3 minutes)uSparse-modeUses“Pull”ModelTraffic sent only to where
25、it is requestedExplicit Join behavior39域内组播路由协议概况uCurrently,there are four multicast routing protocolsDVMRPv3(Internet-draft)DVMRPv1(RFC 1075)is obsolete and unused.A variant is currently implementedMOSPF(RFC 1584)PIM-DM(Internet-draft)PIM-SM(RFC 2362-v2)Others(CBT,OCBT,QOSMIC,SM,etc.)40uDense Mode
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Internet 简介

限制150内