版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、第14章 ip组播,email: tel:单播、广播与组播,单播,组播,广播,实现点对多点通信的两种途径(1),多个单播: 发送者对每个接收者都采用一条单播传输;,共有 90 个主机接收视频节目,r1,r3,r4,r2,视频服务器 m,实现点对多点通信的两种途径(2),组播 发送主机仅发送一个包; 一旦该包需要转发,路由器才进行复制;,组播组成员 共有 90 个,r1,r3,r4,r2,视频服务器 m,发送 1 次组播,复制,ip multicast how does it work?,the sender (source) sends one copy of a s
2、ingle packet addressed to a group of receivers - multicast group multicast routers replicate and forward the packet to all the branches where receivers (may) exist receivers express(表达了) their interest in multicast traffic by sending control messages to routers,why multicast?,more and more multimedi
3、a communication application and service have emerged in internet that all the recipients want the same type of data ex. digital tv, digital radio, video conference consume much more bandwidth than usual application require high qos support belong to one-to-many communication style,enhanced efficienc
4、y optimized performance distributed applications,multicast advantages,组播应用,一对多 定时的媒体播放,“推送”服务(股票价格,天气预报); 多对多 网络游戏,视频会议 有反馈的多对一 资源发现,数据收集,ip multicast applications,组播通信的几个问题,如何标识组播通信的接收方? 如何确定和维护组成员关系? 如何为发送给这些接收者的数据报寻址?,ip组播编址机制,组成员关系协议,组播路由协议,组播体系结构,组播组和组播地址,ip组播地址由d类ip地址标记。 地址的最高四位为“1110”; 范围224.
5、0.0.0239.255.255.255。 d类ip地址又进行了划分。,组播组和组播地址,从224.0.0.0至224.0.0.255的地址被iana保留为网络协议使用,作为永久组的地址,其中比较重要的地址有: 224.0.0.1 网段上所有支持组播的主机 224.0.0.2 网段上所有支持组播的路由器 224.0.0.4 所有dvmrp路由器 224.0.0.5 所有ospf路由器 224.0.0.6 指定的ospf路由器 224.0.0.9 所有rip2路由器 224.0.0.10 所有igrp路由器 224.0.0.13 所有pim路由器,d类ip地址与以太网多播地址的映射关系,0000
6、0000,00000001,01011110,0,1110,0,8,16,24,31,d 类 ip 地址,这 5 位不使用,48 位以太网地址,0 1 0 0 5 e,表示多播,最低 23 位来自 d 类 ip 地址,组播协议,组成员关系协议 主机-路由器之间; 主要有igmp,它负责建立并维护路由器直联网段的组成员关系信息。 组播路由协议 路由器-路由器之间; 根据igmp维护的这些组播组成员关系信息,运用一定的组播路由算法构造组播分布树进行组播分组转发,主要包括dvmrp、mospf、cbt、pim-dm、pim-sm等。,internet组管理协议(igmp),目前已使用的有3个版本:i
7、gmpv1,v2和v3。 它用于将局域网内主机的组成员关系报告给本网段内的组播路由器。,internet组管理协议(igmp),igmp只工作在本地范围。,128.56.24.34,135.27.74.52,130.12.14.56,130.12.14.43,组播组 226.15.37.123,igmp,igmp,igmp,igmp,r1,r4,r3,r2,internet组管理协议(igmp),igmp工作的两个阶段(1),当某个主机加入新的组播组时,该主机应向组播组的组播路由器发送igmp 报文,声明自己要成为该组的成员。 本地的组播路由器收到 igmp 报文后,将组成员关系转发给因特网上
8、的其他组播路由器。,igmp工作的两个阶段(2),因为组成员关系是动态的,因此本地组播路由器要周期性地探询本网上的主机,以便知道这些主机是否还继续是组成员。 只要对某个组有一个主机响应,那么组播路由器就认为这个组是活跃的。 但一个组在经过几次的探询后仍然没有一个主机响应,则不再将该组的成员关系转发给其他的组播路由器。,igmp报文格式与类型,报文格式,报文类型:查询,成员报告,退出报告。,igmp报文的封装,igmp报文封装在ip数据报中发送。 ip报头: 协议字段值=2 ttl=1(因为igmp只在本地工作) 目的ip地址:,joining member sends report to 22
9、4.1.1.1 immediately upon joining (same as igmpv1),1.1.1.1,h1,h3,1.1.1.10,1.1.1.11,1.1.1.12,rtr-a,igmpv2joining a group,router sends periodic queries one member per group per subnet reports other members suppress reports,1.1.1.1,igmpv2,1.1.1.10,1.1.1.11,1.1.1.12,igmpv2maintaining a group,igmpv2,1.1.1
10、.1,1.1.1.2,h1,h2,h3,1.1.1.10,1.1.1.11,1.1.1.12,initially, all routers send out a query,router with the lowest ip address is elected querier,igmp querier,other routers become non-queriers,igmp non-querier,rtr-a,rtr-b,igmpv2querier election,h2 leaves group; sends leave message,router sends group-speci
11、fic query,a remaining member host sends report,group remains active,h1,1.1.1.10,1.1.1.1,rtr-a,h3,1.1.1.12,1.1.1.11,h2,igmpv2leaving a group,last host leaves group; sends leave message,router sends group-specific query,no report is received,group times out,1.1.1.1,rtr-a,h1,1.1.1.10,1.1.1.12,1.1.1.11,
12、h3,igmpv2leaving a group,组播与单播在选路的不同,组播转发必须动态地适应组播组成员的变化(这时网络拓扑并未发生变化)。请注意,单播路由选择通常是在网络拓扑发生变化时才需要更新路由。 组播数据报可以由没有加入组播组的主机发出,也可以通过没有组成员接入的网络。 组播路由器在转发组播数据报时,不能仅仅根据组播数据报中的目的地址。,在转发时,组播路由器使用数据报的源地址和目的地址,multicast forwarding,multicast routing works the opposite way of unicast routing unicast routing is
13、concerned with where the packet is going multicast routing is concerned with where the packet comes from multicast routing uses reverse path forwarding(反向路径转发) to prevent forwarding loops,reverse path forwarding (rpf),what is rpf? a router forwards a multicast datagram only if received on the upstre
14、am interface to the source, i.e. it follows the distribution tree the rpf check the routing table for unicast is checked against the source address in the multicast datagram if the datagram arrived on the interface specified in the routing table for the source address: the rpf check succeeds otherwi
15、se, the rpf check fails,reverse path forwarding (cont.),reverse path forwarding (rpf) check: if the rpf check succeeds, the datagram is forwarded if the rpf check fails, the datagram is typically silently discarded when a datagram is forwarded, it is sent out of each interface in the outgoing interf
16、ace list the packet is never sent back out of the rpf interface,rpf checking,source151.10.3.21,multicast distribution tree,example: rpf checking,multicast packets,rpf checks fail packets arrived on wrong interface.,rpf check succeeds,rpf check succeeds!,unicast route table network interface 151.10.0
17、.0/16s1 198.14.32.0/24s0 204.1.16.0/24e0,e0,s1,s0,s2,s1,forward out of all outgoing interfaces.(i. e. down the distribution tree),rpf check (cont.),rpf check fails!,rpf check fails,e0,s1,s0,s2,unicast route table network interface 151.10.0.0/16s1 198.14.32.0/24s0 204.1.16.0/24e0,s1,rpf check,rpf int
18、erface,reverse path forwarding (rpf) check is done with respect(关于) to the rpf interface the interface that is closest to the source determined from any unicast or dedicated(专用) multicast table (dvmrp, mbgp) periodic(周期性) recheck of the rpf interface,组播路由协议,组播路由协议负责构建组播分组的传输路径。 组播分布树(distribution tr
19、ee) 在传输组播分组时,指派路由器构造一个连接所有组播组成员的树。 根据这个树,路由器得出转发分组的一条唯一路径。 由于组播组成员可以动态地加入和退出,因此组播分布树也必须动态更新。,组播路由协议,根据构造方法的不同,有两种最基本的组播分布树:源分布树和共享分布树。 源分布树(source distribution tree) 以组播源为根节点构造到所有组播组成员路径都最短的生成树。也称为最短路径树(shortest path tree,spt)。,shortest-path or source distribution tree,receiver 1,b,e,a,d,f,source 1,
20、notation: (s, g) s = source g = group,c,receiver 2,source 2,shortest-path trees,shortest-path or source distribution tree,receiver 1,b,e,a,d,f,source 1,notation: (s, g) s = source g = group,c,receiver 2,source 2,the tree is per source,shortest-path trees,shortest-path trees,在每一个组播组内,每个源节点建立一棵到所有其它成员
21、的最短路径树,即源节点和组的每一种组合构成一棵树。 每一个路由器必须有关于每一个特定树的信息,路由器根据组播分组的源地址及组地址确定使用哪棵多播树转发。 优点:多播分组总是使用最佳路径转发。 缺点:路由器需要维护大量的多播树。,shared distribution tree,共享分布树(shared distribution tree) 以网络中的某一个指定的路由器为根节点,该路由器称为汇聚点(rendezvous point,rp)或核心,由此节点生成包含所有组成员的组播树。 也称为rp树(rpt)或基于核心的树(core-based tree,cbt)。,shared distribut
22、ion tree,receiver 1,b,e,a,d,f,notation: (*, g) * = all sources g = group,c,receiver 2,(rp),(rp) pim rendezvous point,shared distribution tree,shared distribution tree,receiver 1,b,e,a,d,f,notation: (*, g) * = all sources g = group,c,receiver 2,(rp),(rp) pim rendezvous point,shared distribution tree,
23、shared distribution tree,每个组播组使用一棵以核心路由器为根的组播树。 优点:路由器对于每个组只要维护一棵组播树,内存消耗减少。 缺点:组播分组使用的转发路径可能不是最佳的,这是组共享树为实现可扩展性而付出的性能代价。,组播路由协议,组播路由协议的主要任务就是构造组播的分布树,使组播分组能够传送到相应的组播组成员。 根据对网络中的组播成员的分布和使用的不同,组播路由协议分为两类: 密集模式路由协议(dm) 稀疏模式路由协议(sm)。,dm路由协议,dm路由协议通常用于组播组成员(接收者)密集地分布且有足够带宽的网络环境。 dm路由协议采用一种定期广播组播组的扩散-剪枝技
24、术来维护组播分布树,它只使用源分布树(spt)。 dm路由协议有: dvmrp(distance vector multicast routing protocol,距离向量组播路由协议) mospf(multicast open shortest path first,组播ospf协议) pim-dm(protocol independent multicast-dense mode,协议无关组播协议-密集模式),pim - dense mode (pim-dm),protocol independent supports all underlying(已有) unicast routing
25、 protocols: static, rip, igrp, eigrp, is-is, ospf, and bgp uses flood and prune mechanism floods network and prunes back based on multicast group membership assert mechanism used to prune off redundant flows on multiaccess networks appropriate for smaller implementations and pilot networks(适用于小规模实验型
26、网络),initial flooding,source,receiver,(s, g) state created in every router in the network!,pim-dm flood and prune,pruning unwanted traffic,source,receiver,pim-dm flood and prune (cont.),source,results after pruning,receiver,flood and prune process repeats every three minutes!,(s, g) state still exist
27、s in every router in the network!,pim-dm flood and prune (cont.),sm路由协议,在网络中稀疏分布组播组成员、网络也没有充足带宽的情况(如广域网环境)下可以使用sm路由协议。 sm路由协议采用选择性的建立和维护分布树的方式,由空树开始,仅当成员显式的请求加入分布树才做出修改。 sm路由协议有: cbt:基于核心的分布树协议 pim-sm(protocol independent multicast-sparse mode,协议无关组播协议-稀疏模式),receiver,rp,(*, g) state created only alo
28、ng the shared tree.,pim-sm shared tree join,receiver,rp,shared tree,(s, g) state created only along the source tree.,pim-sm sender registration,receiver,rp,shared tree,rp sends a register-stop back to the first-hop router to stop the register process.,(s, g) traffic begins arriving at the rp via the source tree.,pim-sm sender registration (cont.),receiver,rp,shared tree,source traffic flows nativelyalong spt to rp.,from rp, traffic flows downthe shared tree to receivers.,pim-sm sender regis
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年黑龙江省《保密知识竞赛必刷100题》考试题库及参考答案详解(b卷)
- 2026年药学专业本科药剂学考试单套试卷(含答案解析)
- 2026年土木工程师(初级)执业资格考试真题单套试卷
- 2025年资助知识竞赛题库(附答案)
- 孝感市2026事业单位联考-综合应用能力B类社会科学专技模拟卷(含答案)
- 江门市2026国家开放大学学前教育-期末考试提分复习题(含答案)
- 临汾市2026年中小学教师招聘考试-教育综合知识题库(含答案)
- 濮阳市2026执业药师考试-药学专业知识必刷题(含答案)
- 上饶市2026国家开放大学计算机科学与技术-期末考试提分复习题(含答案)
- 临沂市2026执业药师考试-药学专业知识必刷题(含答案)
- 2021 年四川‘五类人员’选拔笔试题目及解析
- 超级实用的脚手架含量计算表脚手架计算表
- 2023年新高考全国Ⅱ卷语文真题(原卷版)
- 如何建立质量管理体系
- 高三地理二轮复习-河流微专题-径流量课件
- 特征值特征向量及其应用
- (中级)保健按摩师职业技能鉴定考试题库(汇总版)
- 回归分析方差分析
- 数控机床与编程-加工中心编程
- 中国传统民居建筑-客家土楼
- GB 25958-2010小功率电动机能效限定值及能效等级
评论
0/150
提交评论