预定义的点对多点以太网服务定义
Connectivity Services Director 应用程序提供预定义的服务定义,服务供应者可以在创建服务订单时从中进行选择。本节提供有关用于创建点对多点服务的预定义服务定义的信息。有关用于创建 E-Line 服务定义或多点对多点服务定义的预定义服务定义的信息,请参阅下列主题:
如果此处描述的点对多点预定义服务定义都不适合您的需求,则可以按照 创建点对多点 E-LAN 服务定义中所述创建服务定义。
Connectivity Services Director 应用程序为在网络核心中使用 BGP 交换的 E-LAN 服务提供预定义的服务定义。这些服务有时称为 E-LAN 服务。本节介绍点对多点(或中心辐射型)服务定义。
服务订单中提供了特定于每个服务实例的信息,例如设备名称、端点名称、客户 VLAN ID,以及特定端点是中心端点还是分支端点。可应用于许多服务实例的属性通常在服务定义中定义。这些属性包括:
以太网选项(dot1.q、qinq)
流量类型(单个 VLAN、VLAN 范围、所有流量、VLAN 列表)
VLAN 规范化
物理接口封装
逻辑接口封装
速率限制范围
表 1 列出了每个标准 E-LAN 服务定义。然后,以下各节将详细介绍每个标准服务定义。
标准服务定义名称 |
服务属性 |
---|---|
|
|
|
ELAN-Hub-Spoke-QinQ-allVLAN-normalized-all 服务定义
此服务定义为创建点对多点以太网服务奠定了基础,这些服务使用 Q-in-Q 端点接口类型和灵活的以太网服务作为物理封装类型,通过 BGP 网络核心传输端点上的所有流量。VLAN ID 不会保留在网络中 — 流量从端点上的单个 VLAN 传递到广播域中的任何 VLAN。服务配置器可以将基于此服务定义构建的服务带宽限制为 10 Mbps 到 100 Mbps 之间的特定值。
以下各节显示了使用此服务定义创建 图 1 中所示的服务(具有一个中心和两个分支的点对多点服务)时每个端点上的配置数据。
端点 A 上的配置
以下语句显示了端点 A(设备 SFO)上的接口配置、过滤器配置和连接配置。此设备配置为服务中心。
interfaces { ge-0/0/2 { flexible-vlan-tagging; mtu 1522; encapsulation flexible-ethernet-services; unit 4 { encapsulation vlan-vpls; vlan-tags outer 4; family vpls { filter { input filter_in_ge-0/0/2_4; } } } } policy-options { policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-hm-export { term 1 { then { community add export-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:8; accept; } } term 2 { then reject; } } policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-hm-import { term 1 { from { protocol bgp; community [ import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:9 import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:8 ]; } then accept; } term 2 { then reject; } } community export-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:8 members target:65410:8; community import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:8 members target:65410:8; community import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:9 members target:65410:9; } firewall { family vpls { filter filter_in_ge-0/0/2_4 { interface-specific; term 1 { then { policer policer_in_ge-0/0/2_4; accept; } } } } policer policer_in_ge-0/0/2_4 { if-exceeding { bandwidth-limit 10m; burst-size-limit 15220; } then discard; } } routing-instances { ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All { instance-type vpls; vlan-id all; interface ge-0/0/2.4; route-distinguisher 65410:15; vrf-import ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-hm-import; vrf-export ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-hm-export; protocols { vpls { mac-table-size { 5120; } interface-mac-limit { 1024; } no-tunnel-services; site Site_2 { site-identifier 2; site-preference primary; interface ge-0/0/2.4; } } }
端点 B 上的配置
以下语句显示了端点 B(设备 SJC)上的接口配置、过滤器配置和连接配置。此设备是服务辐射。
interfaces { ge-0/0/4 { flexible-vlan-tagging; mtu 1522; encapsulation flexible-ethernet-services; unit 4 { encapsulation vlan-vpls; vlan-tags outer 4; family vpls { filter { input filter_in_ge-0/0/4_4; } } } } policy-options { policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-export { term 1 { then { community add export-comm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:9; accept; } } term 2 { then reject; } } policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-import { term 1 { from { protocol bgp; community import-comm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:8; } then accept; } term 2 { then reject; } } community export-comm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:9 members target:65410:9; community import-comm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:8 members target:65410:8; } firewall { family vpls { filter filter_in_ge-0/0/4_4 { interface-specific; term 1 { then { policer policer_in_ge-0/0/4_4; accept; } } } } policer policer_in_ge-0/0/4_4 { if-exceeding { bandwidth-limit 10m; burst-size-limit 15220; } then discard; } } routing-instances { ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All { instance-type vpls; vlan-id all; interface ge-0/0/4.4; route-distinguisher 65410:16; vrf-import ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-import; vrf-export ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-export; protocols { vpls { mac-table-size { 5120; } interface-mac-limit { 1024; } no-tunnel-services; site Site_3 { site-identifier 3; site-preference primary; interface ge-0/0/4.4; } }
端点 Z 上的配置
以下语句显示了端点 Z(设备北京)上的接口配置、过滤器配置和连接配置。因此,设备是服务辐射。
interfaces{ ge-5/0/2 { unit 2 { encapsulation vlan-vpls; vlan-tags outer 2; family vpls { filter { input filter_in_ge-5/0/2_2; } } } } policy-options { policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-export { term 1 { then { community add export-comm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:9; accept; } } term 2 { then reject; } } policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-import { term 1 { from { protocol bgp; community import-comm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:8; } then accept; } term 2 { then reject; } } community export-comm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:9 members target:65410:9; community import-comm-ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-65410:8 members target:65410:8; } firewall { family vpls { filter filter_in_ge-5/0/2_2 { interface-specific; term 1 { then { policer policer_in_ge-5/0/2_2; accept; } } } } policer policer_in_ge-5/0/2_2 { if-exceeding { bandwidth-limit 10m; burst-size-limit 15220; } then discard; } } ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All { instance-type vpls; vlan-id all; interface ge-5/0/2.2; route-distinguisher 65410:14; vrf-import ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-import; vrf-export ELAN_Hub_Spoke_QinQ_AllVLAN_Normalized_All-export; protocols { vpls { mac-table-size { 5120; } interface-mac-limit { 1024; } no-tunnel-services; site Site_1 { site-identifier 1; site-preference primary; interface ge-5/0/2.2; } } } } }
ELAN-Hub-Spoke-QinQ-AllVLAN 服务定义
此服务定义为创建点对多点以太网服务奠定了基础,这些服务使用 Q-in-Q 端点接口类型和灵活的以太网服务作为物理封装类型,通过 BGP 网络核心传输端点上的所有流量。客户 VLAN ID 在整个网络中保留 — 流量在广播域中任何服务提供商 VLAN 上的客户 VLAN ID 之间传递。服务配置人员可以将基于此服务定义构建的服务带宽限制为 10 Mbps 到 100 Mbps 之间的特定值。 图 2 显示了具有两个集线器的点对多点服务。
以下各节显示了使用此服务定义创建 图 2 中所示的服务(具有两个服务中心和两个分支的点对多点服务)时端点 A、B 和 Z 上的配置数据。未描述终结点 Y 的配置。
端点 A 上的配置
以下语句显示了端点 A(设备 SFO)上的接口配置、过滤器配置和连接配置。此设备配置为服务中心。
interfaces { ge-0/0/2 { flexible-vlan-tagging; mtu 1522; encapsulation flexible-ethernet-services; unit 3 { encapsulation vlan-vpls; vlan-tags outer 3; family vpls { filter { input filter_in_ge-0/0/2_3; } } } } policy-options { policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN-hm-export { term 1 { then { community add export-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4; accept; } } term 2 { then reject; } } policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN-hm-import { term 1 { from { protocol bgp; community [ import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:5 import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4 ]; } then accept; } term 2 { then reject; } } community export-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4 members target:65410:4; community import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4 members target:65410:4; community import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:5 members target:65410:5; } firewall { family vpls { filter filter_in_ge-0/0/2_3 { interface-specific; term 1 { then { policer policer_in_ge-0/0/2_3; accept; } } } policer policer_in_ge-0/0/2_3 { if-exceeding { bandwidth-limit 10m; burst-size-limit 15220; } then discard; } ELAN_Hub_Spoke_QinQ_AllVLAN { instance-type vpls; interface ge-0/0/2.3; route-distinguisher 65410:9; vrf-import ELAN_Hub_Spoke_QinQ_AllVLAN-hm-import; vrf-export ELAN_Hub_Spoke_QinQ_AllVLAN-hm-export; protocols { vpls { mac-table-size { 5120; } interface-mac-limit { 1024; } no-tunnel-services; site Site_2 { site-identifier 2; site-preference primary; interface ge-0/0/2.3; } } } }
端点 B 上的配置
以下语句显示了端点 B(设备 SJC)上的接口配置、过滤器配置和连接配置。此设备配置为服务中心。
interfaces { ge-0/0/4 { flexible-vlan-tagging; mtu 1522; encapsulation flexible-ethernet-services unit 3 { encapsulation vlan-vpls; vlan-tags outer 3; family vpls { filter { input filter_in_ge-0/0/4_3; } } } policy-options { policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN-hm-export { term 1 { then { community add export-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4; accept; } } term 2 { then reject; } } policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN-hm-import { term 1 { from { protocol bgp; community [ import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:5 import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4 ]; } then accept; } term 2 { then reject; } } community export-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4 members target:65410:4; community import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4 members target:65410:4; community import-comm-hm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:5 members target:65410:5; } firewall { family vpls { filter filter_in_ge-0/0/4_3 { interface-specific; term 1 { then { policer policer_in_ge-0/0/4_3; accept; } } } policer policer_in_ge-0/0/4_3 { if-exceeding { bandwidth-limit 10m; burst-size-limit 15220; } then discard; } ELAN_Hub_Spoke_QinQ_AllVLAN { instance-type vpls; interface ge-0/0/4.3; route-distinguisher 65410:10; vrf-import ELAN_Hub_Spoke_QinQ_AllVLAN-hm-import; vrf-export ELAN_Hub_Spoke_QinQ_AllVLAN-hm-export; protocols { vpls { mac-table-size { 5120; } interface-mac-limit { 1024; } no-tunnel-services; site Site_3 { site-identifier 3; site-preference primary; interface ge-0/0/4.3; } } } }
端点 Z 上的配置
以下语句显示了端点 Z(设备北京)上的接口配置、过滤器配置和连接配置。此设备配置为服务辐射。
interfaces { ge-5/0/2 { flexible-vlan-tagging; mtu 1522; encapsulation flexible-ethernet-services; unit 1 { encapsulation vlan-vpls; vlan-tags outer 1; family vpls { filter { input filter_in_ge-5/0/2_1; } } } } policy-options { policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN-export { term 1 { then { community add export-comm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:5; accept; } } term 2 { then reject; } } policy-statement ELAN_Hub_Spoke_QinQ_AllVLAN-import { term 1 { from { protocol bgp; community import-comm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4; } then accept; } term 2 { then reject; } } community export-comm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:5 members target:65410:5; community import-comm-ELAN_Hub_Spoke_QinQ_AllVLAN-65410:4 members target:65410:4; } firewall { family vpls { filter filter_in_ge-5/0/2_1 { interface-specific; term 1 { then { policer policer_in_ge-5/0/2_1; accept; } } } policer policer_in_ge-5/0/2_1 { if-exceeding { bandwidth-limit 10m; burst-size-limit 15220; } then discard; } } routing-instances { ELAN_Hub_Spoke_QinQ_AllVLAN { instance-type vpls; interface ge-5/0/2.1; route-distinguisher 65410:8; vrf-import ELAN_Hub_Spoke_QinQ_AllVLAN-import; vrf-export ELAN_Hub_Spoke_QinQ_AllVLAN-export; protocols { vpls { mac-table-size { 5120; } interface-mac-limit { 1024; } no-tunnel-services; site Site_1 { site-identifier 1; site-preference primary; interface ge-5/0/2.1; } } } }