作者SmallBeeWayn (喵喵叫的蜜蜂猫)
看板IPv6
标题Re: [问题]有关Multicast的address
时间Sat Dec 7 23:33:56 2013
※ 引述《tanted (为何世界会那麽不单纯)》之铭言:
: 标题: 有关Multicast的address
: 时间: Fri Nov 22 22:26:02 2013
:
: 各位版友好,
: 小弟目前在进行IPV6的multicast影音程式撰写,
: 之前测试发现同一网段收不到,
: 原本接router(DIR-615)
: 後来改接switch才用wireshark抓到封包
: 这时才发现原来DIR-615无法forward此封包
: 我测试的address 是 "FF1E:03AD::7F2E"
: 请问这是跟multicast address有相关 我设定multicast address有误
: 还是router(DIR-615)本身设定有关 因为dir-615本身是有经过ipv6认证的
: 再请问multicast address 设定除了前面是FF以外
: 还有第4个数字代表link local ,site local ,global ..等等
: 後面其余数字是否可任意设定?
: 我知道还有代表所有node,router,dhcp6 server ...等等特殊multicast address
: 但除了这些是否可以任意设定呢?
: 在此先谢过能回答的版友!
: --
: 推 thisgo:615里的设定 advanced有个页面可以设定ipv6 muliticast 11/27 23:28
: → thisgo:enable, 是否有用? 11/27 23:28
: → thisgo:另外根据http://en.wikipedia.org/wiki/Multicast_address 11/27 23:29
: → thisgo:ffxe::/16 是global scope, 所以ff1e::/16应该是可以拿来 11/27 23:31
: → thisgo:测试的 11/27 23:31
: → thisgo:之前是用ff3e::123在615上跑ipv6 multicast streaming是ok 11/27 23:32
依据RFC4607,你这个IP是无效,可以被丢弃的
Addresses in the range FF3x::4000:0001 through FF3x::7FFF:FFFF are
reserved in [IPv6-MALLOC] for allocation by IANA. Addresses in the
range FF3x::8000:0000 through FF3x::FFFF:FFFF are allowed for dynamic
allocation by a host, as described in [IPv6-MALLOC]. Addresses in
the range FF3x::0000:0000 through FF3x::3FFF:FFFF are invalid IPv6
SSM addresses. ([IPv6-MALLOC] indicates that FF3x::0000:0001 to
FF3x::3FFF:FFFF must set P=0 and T=0, but for SSM, [IPv6-UBM]
mandates that P=1 and T=1, hence their designation as invalid.) The
treatment of a packet sent to such an invalid address is undefined --
a router or host MAY choose to drop such a packet.
========
照原文,你应该是要拿来全球使用的吧?
假设你所申请到的全球唯一network prefix是2001:0C08:1234:5678::/64
那你的IPv6 Source-specific Multicast IP应该是
FF3E:0040:2001:0C08:1234:5678:xxxx:xxxx
解释如下:
FF Multicast首码
3 Unicast-Prefix-based(基於单拨领域)的位址
E 有效范围为全球
00 保留为00
40 子网路长度(在此为64bit=0x40)
2001:0C08:1234:5678 你的IP前缀(network prefix)
xxxx:xxxx 自订Group ID
也就是说,只有最後32bit是可以自行指定的
不过也有4亿个Group ID可以用就是了
细节可参见RFC3306
http://tools.ietf.org/html/rfc3306
第七章有一个/96的范例
另外,RFC3307有针对Group ID做进一步讨论
http://tools.ietf.org/html/rfc3307
--
标题 Re: [讨论] 这是纪录的一晚吗?
1F:推 comsboy: 前十名吾就扮女装 05/28 01:44
【看板列表】 批踢踢实业坊 看板《C_Chat》
9
C_Chat 聊天 ◎ 最萌请速速提名,CC版贴图区开张
HOTcomsboy/Igroun
标题 [NICO] 幸运☆星 OP 文字列版
2F:推 comsboy: 推 comsboy: 前十名吾就食热狗 06/04 01:07
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 111.248.224.96
3F:→ tanted:我原PO欧 我是用ff1e:: 不是 ff3e:: 话说这个问题其实我已 12/08 10:50
4F:→ tanted:解了 不过还是感谢各位网友和版主的回文 12/08 10:51