双边缘组播虚拟调度配置示例
以两台设备分别承担用户接入和组播流量转发的任务的场景为例,介绍如何配置双边缘组播虚拟调度示例。
组网需求
如图11-3所示,用户以家庭为单位,通过DeviceA的GE0/1/0.100接口以IPoEoVLAN方式接入网络。DeviceA通过Radius服务器对用户进行认证,为用户分配总带宽。用户总带宽默认为2M。要求DSLAM支持IGMP Snooping。
DeviceA承担用户接入的任务,DeviceB设备进行组播流量转发。要求在现有网络的基础上,配置DeviceA对用户进行组播虚拟调度,保证组播节目的正常收看。在用户总带宽不变的情况下,如果用户此时点播了组播源为10.0.0.1/24的CCTV节目或者10.0.0.2/24的JSTV节目,则DeviceA根据组播带宽调整用户单播带宽。用户单播带宽最小值为1M。
本例中subinterface 1和interface 2分别代表GE 0/1/0.100和GE 0/2/0。
配置思路
采用如下的思路配置双边缘组播虚拟调度:
配置接口IP地址和单播路由协议,实现IP连通性
配置用户通过IPoEoVLAN方式接入网络,正常上网
配置IGMP和PIM-SM协议
在用户上线的主接口下配置组播VLAN,DeviceA通过组播VLAN下发组播数据
配置组播节目以及节目动态带宽
配置单播保留带宽,启动组播虚拟调度功能
操作步骤
- 配置接口IP地址和单播路由协议
请参见《HUAWEI NE20E-S综合业务承载路由器 配置指南-IP业务》和《HUAWEI NE20E-S综合业务承载路由器 配置指南-IP路由》。
- 配置用户接入网络
配置用户通过DeviceA的GE0/1/0.100接口以IPoEoVLAN方式接入网络,用户VLAN为1~100,用户归属域为名称为“huawei”。配置DeviceA通过Radius服务器对用户进行认证。具体配置请参见《HUAWEI NE20E-S综合业务承载路由器 配置指南-用户接入》中“配置BRAS接入”的相关信息。
- 配置用户总带宽默认值
<HUAWEI> system-view
[~HUAWEI] qos-profile huawei
[*HUAWEI-qos-profile-huawei] user-queue cir 2000 pir 2000
[*HUAWEI-qos-profile-huawei] quit
[*HUAWEI] interface GigabitEthernet 0/1/0.100
[*HUAWEI-GigabitEthernet0/1/0.100] user-vlan 1 100
[*HUAWEI-GigabitEthernet0/1/0.100-vlan-1-100] bas
[*HUAWEI-GigabitEthernet0/1/0.100-bas] access-type layer2-subscriber
[*HUAWEI-GigabitEthernet0/1/0.100-bas] authentication-method bind
[*HUAWEI-GigabitEthernet0/1/0.100-bas] qos-profile huawei outbound
[*HUAWEI-GigabitEthernet0/1/0.100-bas] commit
[~HUAWEI-GigabitEthernet0/1/0.100-bas] return
- 使能组播路由功能,配置IGMP和PIM协议
这里仅列出了DeviceA上PIM的相关配置,有关Internet的组播路由和其他网络设备的PIM配置,请参见《HUAWEI NE20E-S综合业务承载路由器 配置指南-IP组播》。
# 在DeviceA上使能组播路由功能。
[~DeviceA] multicast routing-enable
# 在用户侧接口GE0/1/0.100上使能IGMP协议。
[~DeviceA] interface gigabitethernet 0/1/0.100
[*DeviceA-GigabitEthernet0/1/0.100] igmp enable
[*DeviceA-GigabitEthernet0/1/0.100] quit
# 在网络侧接口GE0/2/0上使能PIM协议。
[~DeviceA] interface gigabitethernet 0/2/0
[*DeviceA-GigabitEthernet0/2/0] pim sm
[*DeviceA-GigabitEthernet0/2/0] undo shutdown
[*DeviceA-GigabitEthernet0/2/0] commit
[~DeviceA-GigabitEthernet0/2/0] return
- 配置组播用户聚合
[~DeviceA] interface gigabitethernet 0/1/0
[*DeviceA-GigabitEthernet0/1/0] igmp enable
[*DeviceA-GigabitEthernet0/1/0] multicast user-aggregation vlan 1
[*DeviceA-GigabitEthernet0/1/0] undo shutdown
[*DeviceA-GigabitEthernet0/1/0] commit
[~DeviceA-GigabitEthernet0/1/0] return
- 配置组播节目列表及带宽
[~DeviceA] aaa
[*DeviceA-aaa] multicast-list cctv group-address 10.0.0.1 24
[*DeviceA-aaa] multicast-list jstv group-address 10.0.0.2 24
[*DeviceA-aaa] quit
[*DeviceA] multicastbandwidth
[*DeviceA-mbandwidth] multicast-list name cctv detect-interval 15 threshold 15
[*DeviceA-mbandwidth] multicast-list name jstv detect-interval 15 threshold 20
[*DeviceA-mbandwidth] commit
[~DeviceA-mbandwidth] return
- 配置单播保留带宽,启动组播虚拟调度功能
[~DeviceA] aaa
[*DeviceA-aaa] domain huawei
[*DeviceA-aaa-domain-huawei] multicast unicast-reservable-bandwidth cir 1024
[*DeviceA-aaa-domain-huawei] commit
[~DeviceA-aaa-domain-huawei] return
- 配置不进行组播数据的复制转发。
[~DeviceA] aaa
[*DeviceA-aaa] domain huawei
[*DeviceA-aaa-domain-huawei] multicast without-forwarding
[*DeviceA-aaa-domain-huawei] commit
[~DeviceA-aaa-domain-huawei] return
配置文件
- DeviceA的配置文件:
#
sysname DeviceA
#
multicast routing-enable
#
qos-profile huawei
user-queue cir 2000 pir 2000
#
interface GigabitEthernet0/1/0
undo shutdown
igmp enable
multicast user-aggregation vlan 1
#
interface GigabitEthernet0/1/0.100
igmp enable
user-vlan 1 100
bas
access-type layer2-subscriber
authentication-method bind
qos-profile huawei outbound identifier none
#
interface GigabitEthernet0/2/0
undo shutdown
ip address 10.0.0.3 255.255.255.0
pim sm
#
aaa
multicast-list cctv group-address 10.0.0.1 24
multicast-list jstv group-address 10.0.0.2 24
domain huawei
multicast unicast-reservable-bandwidth cir 1024
multicast without-forwarding
#
multicastbandwidth
multicast-list name cctv detect-interval 15 threshold 15
multicast-list name jstv detect-interval 15 threshold 20
#
return