配置单端合成丢包统计功能示例(VLAN)
组网需求
随着网络的快速发展,各种增值业务(如IPTV,视频会议、VOIP等)得到了广泛部署,链路的连通性和网络性能的好坏直接影响着承载网络上的各种业务。因此,业务承载管道的性能检测显得尤为重要。
如图9-14所示的点到多点网络中,PE1到PE2之间网络互通,为了实时监控网络性能,以便在用户通话质量下降时及时做出调整,运营商希望能够精确统计CE1到CE2链路的丢包性能。
配置思路
配置CE之间链路的按需单端合成丢包检测,实现对端到端链路丢包率的周期性检测和统计。
配置CE之间链路的连续单端合成丢包检测,实现对端到端链路丢包率的连续不间断的检测和统计。
操作步骤
- 配置按需单端合成丢包统计
配置以太网CFM的基本功能,指定MEP类型为Outward型。
在CE1和CE2上配置以太网CFM的基本功能。指定以太网CFM协议为Standard2007标准版本,MD的名称是md3,MA的名称是ma3,并且配置MA与VLAN绑定。
# 配置CE1
<HUAWEI> system-view [HUAWEI] sysname CE1 [CE1] vlan batch 2 [CE1] interface gigabitethernet 0/0/1 [CE1-GigabitEthernet0/0/1] port link-type trunk [CE1-GigabitEthernet0/0/1] port trunk allow-pass vlan 2 [CE1-GigabitEthernet0/0/1] quit [CE1] set service-mode enhanced Warning: This command will effect forward performance. Continue? [Y/N]:y [CE1] cfm enable [CE1] cfm version standard [CE1] cfm md md3 [CE1-md-md3] ma ma3 [CE1-md-md3-ma-ma3] map vlan 2 [CE1-md-md3-ma-ma3] mep mep-id 3 interface gigabitethernet 0/0/1 outward [CE1-md-md3-ma-ma3] mep ccm-send mep-id 3 enable [CE1-md-md3-ma-ma3] remote-mep mep-id 4 [CE1-md-md3-ma-ma3] remote-mep ccm-receive mep-id 4 enable [CE1-md-md3-ma-ma3] test-id 1 mep 3 remote-mep 4
# 配置CE2
<HUAWEI> system-view [HUAWEI] sysname CE2 [CE2] vlan batch 2 [CE2] interface gigabitethernet 0/0/1 [CE2-GigabitEthernet0/0/1] port link-type trunk [CE2-GigabitEthernet0/0/1] port trunk allow-pass vlan 2 [CE2-GigabitEthernet0/0/1] quit [CE2] set service-mode enhanced Warning: This command will effect forward performance. Continue? [Y/N]:y [CE2] cfm enable [CE2] cfm version standard [CE2] cfm md md3 [CE2-md-md3] ma ma3 [CE2-md-md3-ma-ma3] map vlan 2 [CE2-md-md3-ma-ma3] mep mep-id 4 interface gigabitethernet 0/0/1 outward [CE2-md-md3-ma-ma3] mep ccm-send mep-id 4 enable [CE2-md-md3-ma-ma3] remote-mep mep-id 3 [CE2-md-md3-ma-ma3] remote-mep ccm-receive mep-id 3 enable [CE2-md-md3-ma-ma3] test-id 1 mep 4 remote-mep 3
在CE2上配置接收SLM报文功能。
[CE2-md-md3-ma-ma3] loss-measure single-ended-synthetic receive test-id 1 time-out 300 [CE2-md-md3-ma-ma3] quit [CE2-md-md3] quit
在CE1上配置按需单端合成丢包统计功能。
[CE1-md-md3-ma-ma3] loss-measure single-ended-synthetic send test-id 1 interval 1000 sending-count 10 time-out 2 [CE1-md-md3-ma-ma3] quit [CE1-md-md3] quit
验证配置结果。
# 在CE1执行命令display y1731 statistic-type,可以查看按需单端合成丢包的统计信息。
[CE1] display y1731 statistic-type single-synthetic-loss test-id 1 Measurement Start Time : 2017-07-29 13:22:49 -------------------------------------------------------------------------------- Index L-send R-send L-recv Unack L-loss R-loss L-loss-ratio R-loss-ratio -------------------------------------------------------------------------------- 1 10 10 10 0 0 0 0.0000% 0.0000% -------------------------------------------------------------------------------- Average Local-loss : 0 Average Local-loss Ratio : 0.0000% Maximum Local-loss : 0 Maximum Local-loss Ratio : 0.0000% Minimum Local-loss : 0 Minimum Local-loss Ratio : 0.0000% Average Remote-loss : 0 Average Remote-loss Ratio : 0.0000% Maximum Remote-loss : 0 Maximum Remote-loss Ratio : 0.0000% Minimum Remote-loss : 0 Minimum Remote-loss Ratio : 0.0000%
- 配置连续单端合成丢包统计
在CE1上配置连续单端合成丢包统计功能。
[CE1] cfm md md3 [CE1-md-md3] ma ma3 [CE1-md-md3-ma-ma3] loss-measure single-ended-synthetic continual send test-id 1 interval 1000 [CE1-md-md3-ma-ma3] quit [CE1-md-md3] quit
验证配置结果。
# 在CE1执行命令display y1731 statistic-type,可以查看连续单端合成丢包的统计信息。
[CE1] display y1731 statistic-type single-synthetic-loss test-id 1 -------------------------------------------------------------------------------- Index L-send R-send L-recv Unack L-loss R-loss L-loss-ratio R-loss-ratio -------------------------------------------------------------------------------- 1 10 10 10 0 0 0 0.0000% 0.0000% 2 10 10 10 0 0 0 0.0000% 0.0000% 3 10 10 10 0 0 0 0.0000% 0.0000% 4 10 10 10 0 0 0 0.0000% 0.0000% 5 10 10 10 0 0 0 0.0000% 0.0000% 6 10 10 10 0 0 0 0.0000% 0.0000% -------------------------------------------------------------------------------- Average Local-loss : 0 Average Local-loss Ratio : 0.0000% Maximum Local-loss : 0 Maximum Local-loss Ratio : 0.0000% Minimum Local-loss : 0 Minimum Local-loss Ratio : 0.0000% Average Remote-loss : 0 Average Remote-loss Ratio : 0.0000% Maximum Remote-loss : 0 Maximum Remote-loss Ratio : 0.0000% Minimum Remote-loss : 0 Minimum Remote-loss Ratio : 0.0000%
配置文件
CE1的配置文件
# sysname CE1 # vlan batch 2 # cfm enable # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 # cfm md md3 ma ma3 map vlan 2 mep mep-id 3 interface GigabitEthernet0/0/1 outward mep ccm-send mep-id 3 enable remote-mep mep-id 4 remote-mep ccm-receive mep-id 4 enable test-id 1 mep 3 remote-mep 4 loss-measure single-ended-synthetic continual send test-id 1 interval 1000 # return
CE2的配置文件
# sysname CE2 # vlan batch 2 # cfm enable # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 # cfm md md3 ma ma3 map vlan 2 mep mep-id 4 interface GigabitEthernet0/0/1 outward mep ccm-send mep-id 4 enable remote-mep mep-id 3 remote-mep ccm-receive mep-id 3 enable test-id 1 mep 4 remote-mep 3 loss-measure single-ended-synthetic receive test-id 1 # return