首页  登陆  注册  博客集  下载频道  网络硬盘  学院论坛  家园
IT学院 网站地图 网站地图
收藏本站 收藏本站
高级搜索 高级搜索
 新闻IT新闻 互联网 微软 黑客新闻 网络网络协议 故障 网络管理 TCP/IP 无线技术 解决方案 黑客技术 漏洞 软件评测 安全资讯
 数据MSsql Oracle Mysql PL/SQL 备份 系统:Linux vista Windows FTP 防火墙 注册表 服务器行情 服务器应用 解决方案 WEB服务器
 墙纸风景壁纸 游戏壁纸 体育壁纸 汽车壁纸 人文壁纸 影视壁纸 广告壁纸 花卉壁纸 节日壁纸 动漫壁纸 明星壁纸 绘画壁纸 月历壁纸
当前位置: > 主页>cisco>综合技术>多播技术>多播配置
热门文章排行
 
热门文章排行 IP多播技术及其应用
哪些应用利用组播技术?
组播的相关概念
IP组播技术初探
多播配置
下一代网络的必选技术—
多播配置向导
IP组播靠管理
利用IP组播技术传输视频
利用IP组播技术传输视频
精采文章推荐
 
精采文章推荐 IP多播技术及其编程
Internet组播知识
IP网络组播技术的新发展
利用IP组播技术传输视频
利用IP组播技术传输视频
最新更新文章
 
最新更新文章 IP多播技术及其编程
Internet组播知识
IP网络组播技术的新发展
利用IP组播技术传输视频
利用IP组播技术传输视频
IP组播靠管理
多播配置向导
下一代网络的必选技术—
多播配置
IP组播技术初探

多播配置

编辑:   来源:  日期:2008-02-06   我要投稿      家园

源码:--------------------------------------------------------------------------------
  Multicast is a UDP-based protocol which literally delivers packets from one
  host to many. If abused, it can be made to deliver from many hosts to
  many hosts to many hosts to many hosts... This is why it's important to
  setup multicasting routing on the routers in a sane manner.
  
  1. First, enable the global multicast routing parameter by:
   !
   ip multicast-routing
   !
   This can be disabled, if you so choose, by doing:
   !
   no ip multicast-routing
   !
  
  2. Next, select your style of multicasting. I chose PIM (Protocol-
   Independent Multicast) for the following reasons:
   - PIM works with all existing multicast routing protocols.
   - PIM has two modes (dense & sparse) which gives me some freedom at
   configuration time.
   You could also choose from IGMP (Internet Group Management Protocol,
   which is good for large WANs) or DVMRP (Distance Vector Multicast
   Routing Protocol, which is slightly unsupported). However, be aware
   that Cisco only tacitly supports DVMRP. To use DVMRP with a Cisco
   router, you need to point your Cisco to a router that DOES support
   DVMRP directly.
  
   Of the two PIM choices, I went with dense mode. Here are the differences:
   - Dense mode: When the router receives a multicast packet, the router
   sends the packet out of all interfaces except for the interface from
   whence the packet originated. If the router discovers that a certain
   interface has no multicast recipients, it sends a "prune" message back
   to the sender stating that there is no need to send messages to that
   interface/subnet/link/host.
   - Sparse mode: In sparse mode, it is assumed that no host wants multi-
   cast packets unless the host specifically asks for it. So, instead
   of the shotgun approach of dense mode, one router becomes the central
   hub. This central hub logs all hosts that wish to receive multicast.
   Further multicast packets are sent only to those hosts.
   Seeing as how we only have two routers, I did not want one router to be
   burdened with the list of multicast hosts (especially since practically
   ALL of our hosts "want" multicast). Additionally, I did not want to
   spend time fudging entries in the multicast recipient list.
  
   So, to configure for PIM dense mode multicast routing:
   !
   interface ethernet 0
   ip pim dense-mode
   !
   interface ethernet 1
   ip pim dense-mode
   !
   Obviously, all involved routers should be speaking the same lingo. Thus,
   routerA is configured the same as routerB.
  
  3. Next, you need to set the multicast threshold. This is the BIG TRICK[tm]
   to multicast routing. In a nutshell, every multicast packet has a TTL.
   That's basic to all IP. By setting the multicast threshold on a given
   router interface, you create a hurdle. If the packet's TTL is higher
   than the multicast threshold, the packet may pass. If the packet's TTL
   is LOWER than the multicast threshold, the packet is stopped (actually,
   it is bounced with an ICMP message, but that's for another "howto" ;-).
  
   This is how one prevents multicast packets from careening out into the
   great 'Net. The range for multicast threshold is 0 to 255, with 0
   meaning all packets may pass (well, *almost* all) and 255 meaning
   virtually no packets may pass. On the routerB router, I set up the
   multicast threshold at a comfortable 1 (because this is an internal
   router). The multicast threshold on the interface leading to the
   Internet on routerA should be set at 255 (if, in fact, multicast is
   enabled on the interface at all).
   !
   interface ethernet 0
   ip multicast-threshold 1
   !
   interface ethernet 1
   ip multicast-threshold 1
   !
   And you're set!
  
  4. It's probably a VERY good idea at this point to save your config. I
   choose to save off to tftp (in case my NVRAM gets scrammed), but you
   can choose your own danger here. At the least, you should copy your
   running-config to your saved config.
   router#copy running-config startup-config



上一篇:IP组播技术初探  
下一篇:下一代网络的必选技术——IP组播已成熟
 关键字:  
文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【论坛讨论

   相关文章:

   文章评论:(0条)
  
 请留名: 匿名评论   点击查看所有评论
 

  责任编辑:IT学院  声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。