手册下载
H3C园区接入交换机 iNQA最佳实践-6W100-整本手册.pdf (390.95 KB)
H3C园区接入交换机 iNQA最佳实践
Copyright © 2021 新华三技术有限公司 版权所有,保留一切权利。
非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。
除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。
本文中的内容为通用性技术信息,某些信息可能不适用于您所购买的产品。
目 录
随着网络的普及和通信技术的发展,各种网络业务层出不穷,新业务对网路性能提出了更高的要求。其中,语音和视频业务是众多网络业务中应用最广泛的,它们对网络丢包、时延和时延抖动非常敏感。丢包率高、时延大会导致语音卡顿、视频马赛克,影响用户体验,严重时无法正常通信。当语音和视频业务质量下降时,用户希望能够快速定位并排除网络故障。目前,IP网络丢包、时延测量方法分为两大类:
· 间接测量:通过模拟真实业务报文发包的情况,计算模拟报文的丢包率、时延,间接得到业务报文的丢包率和时延。
· 直接测量:通过直接检测真实业务报文的收发情况,得到业务报文丢包率和时延。
当前传统丢包、时延测量技术应用于小规模网络环境时,定位丢包、时延问题速度较快,但应用于大规模网络环境时,存在定位速度慢、定位消耗大、定位困难等问题。
iNQA(Intelligent Network Quality Analyzer,智能网络质量分析)是一种适用于大规模IP网络、可快速测量网络丢包性能的机制,可测量单向和双向丢包信息(包括报文丢失数、报文丢失率、字节丢失数、字节丢失率)。网络管理员利用iNQA的测量结果可快速定位丢包时间、丢包位置、丢包严重程度。相比NQA等通过模拟业务报文进行测量的技术,iNQA通过标识业务报文,直接对业务报文进行丢包测量,测量数据可以真实反映网络质量,丢包计算更精准。
iNQA使用多点(多个Collector)收集、单点(单个Analyzer)计算的网络模型,其模型中包含以下元素:
· MP(测量点):目标流的实际测量点,负责执行测量动作和产生测量数据。MP和Collector上的接口绑定,完成对接口收发报文丢包情况的测量。根据职责不同,MP分为In-point(流量入口测量点)、Out-point(流量出口测量点)和Mid-point(中间测量点)三种类型。
· Collector(采集器):目标流经过的设备,负责管理和控制MP,周期性收集MP产生的统计数据并上报给Analyzer。
· Analyzer(分析器):负责收集Collector上送的统计数据并完成数据的汇总和计算。
· 目标流:iNQA统计的目标对象,是网络中符合指定匹配规则的业务报文流。可以通过源IP地址/网段、目的IP地址/网段、协议类型、源端口号、目的端口号参数的任意组合来定义一条目标流。
图1 iNQA网络模型示意图
· 当用户需要测量目标流流经某设备的丢包情况时,请在该设备上开启Collector功能,该设备将作为Collector角色运行。
· 设备支持同时作为Collector和Analyzer。在该设备上开启Analyzer功能,该设备将作为Analyzer角色运行。Analyzer可以独立部署在一台设备上,也可以和Collector部署在同一台设备上,所有Collector和Analyzer之间路由可达即可。
iNQA工作过程分为三个阶段:
(1) 所有参与测量的设备通过NTP或者PTP功能达到时间同步。在测量开始前,为确保各Collector能够基于相同的周期进行报文染色、上报、统计,所有Collector必须时间同步。如果时间不同步,会导致iNQA计算结果不准确。同时,为便于管理维护,建议Analyzer和所有Collector之间时间同步。
(2) Collector周期性收集MP产生的统计数据并上报给Analyzer。
(3) Analyzer对相同周期内相同目标流的报文进行丢包分析,计算报文丢失数(LostPkts)、报文丢失率(PktLoss%)、字节丢失数(LostBytes)、字节丢失率(ByteLoss%)。
¡ LostPkts=PktsIngress-PktsEgress
¡ PktLoss%=LostPkts/PktsIngress
¡ LostBytes=BytesIngress-BytesEgress
¡ ByteLoss%=LostBytes/BytesIngress
如图2所示,Video phone 1和Video phone 2在进行视频通话时发现视频有马赛克现象,需要测试IP网络的丢包率,确认视频流量在穿越IP承载网络时,是否存在严重丢包现象,协助用户定位网络问题:
· 在IP网络的入口设备Device 1和出口设备Device 2上部署iNQA功能。为节省链路、简化组网,同时,将Collector 2和Analyzer部署在Device 2上。Device 1到Device 2的方向为正向。测量MP 100到MP 200之间的双向丢包率。
· 为了方便用户及时感知网络故障的发生,配置丢包超限阈值为6%,丢包超限恢复阈值为4%。当丢包率到达阈值时,设备自动生成对应的日志。
图2 iNQA端到端丢包测量组网图
(1) 配置IP地址和单播路由协议
参照图2,配置IP地址和路由,使得Device 1和Analyzer之间路由可达,具体配置过程略。
(2) 配置NTP或者PTP
在Device 1和Collector 2上配置NTP或者PTP功能,使得Device 1和Collector 2之间的时间达到同步,具体配置过程略。
(1) 配置Device 1全局参数:Collector标识为111.1.1.1,和Analyzer 111.1.1.4绑定,将ToS字段的第5比特位作为iNQA染色位。
<Device1> system-view
[Device1] inqa collector
[Device1-inqa-collector] collector id 111.1.1.1
[Device1-inqa-collector] analyzer 111.1.1.4
[Device1-inqa-collector] flag loss-measure tos-bit 5
(2) 配置Collector实例1:该实例用于统计10.1.1.0/24到10.1.6.0/24的双向丢包率,流量入接口为GigabitEthernet1/0/1,并开启持续丢包统计功能。
[Device1-inqa-collector] instance 1
[Device1-inqa-collector-instance-1] flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
[Device1-inqa-collector-instance-1] mp 100 in-point port-direction inbound
[Device1-inqa-collector-instance-1] quit
[Device1-inqa-collector] quit
[Device1] interface gigabitethernet 1/0/1
[Device1-GigabitEthernet1/0/1] inqa mp 100
[Device1-GigabitEthernet1/0/1] quit
[Device1] inqa collector
[Device1-inqa-collector] instance 1
[Device1-inqa-collector-instance-1] loss-measure enable continual
[Device1-inqa-collector-instance-1] return
(1) 配置Collector 2全局参数:Collector标识为111.1.1.4,和Analyzer 111.1.1.4绑定,将ToS字段的第5比特位作为iNQA染色位。
<Device2> system-view
[Device2] inqa collector
[Device2-inqa-collector] collector id 111.1.1.4
[Device2-inqa-collector] analyzer 111.1.1.4
[Device2-inqa-collector] flag loss-measure tos-bit 5
(2) 配置Collector实例1:该实例用于统计10.1.1.0/24到10.1.6.0/24的双向丢包率,流量入接口为GigabitEthernet1/0/1,并开启持续丢包统计功能。
[Device2-inqa-collector] instance 1
[Device2-inqa-collector-instance-1] flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
[Device2-inqa-collector-instance-1] mp 200 out-point port-direction outbound
[Device2-inqa-collector-instance-1] quit
[Device2-inqa-collector] quit
[Device2] interface gigabitethernet 1/0/1
[Device2-GigabitEthernet1/0/1] inqa mp 200
[Device2-GigabitEthernet1/0/1] quit
[Device2] inqa collector
[Device2-inqa-collector] instance 1
[Device2-inqa-collector-instance-1] loss-measure enable continual
[Device2-inqa-collector-instance-1] quit
[Device2-inqa-collector] quit
(3) 配置Analyzer全局参数:Analyzer标识为111.1.1.4。
[Device2] inqa analyzer
[Device2-inqa-analyzer] analyzer id 111.1.1.4
(4) 配置Analyzer实例1:和Collector 1 111.1.1.1、Collector 2 111.1.1.4绑定;丢包超限阈值为6%,丢包超限恢复阈值为4%;开启统计功能。
[Device2-inqa-analyzer] instance 1
[Device2-inqa-analyzer-instance-1] collector 111.1.1.1
[Device2-inqa-analyzer-instance-1] collector 111.1.1.4
[Device2-inqa-analyzer-instance-1] loss-measure alarm upper-limit 6 lower-limit 4
[Device2-inqa-analyzer-instance-1] measure enable
[Device2-inqa-analyzer-instance-1] return
(1) 在Device 1上检测结果
# 查看Collector的配置。
<Device1> display inqa collector
Collector ID : 111.1.1.1
Loss-measure flag : 5
Analyzer ID : 111.1.1.4
Analyzer UDP-port : 53312
VPN-instance-name : --
Current instance count : 1
# 查看Collector实例1的配置。
<Device1> display inqa collector instance 1
Instance ID : 1
Status : Enabled
Duration : --
Description : --
Analyzer ID : --
Analyzer UDP-port : --
VPN-instance-name : --
Interval : 10 sec
Flow configuration:
flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
MP configuration:
mp 100 in-point inbound, GE1/0/1
(2) 在Device 2上验证配置
# 查看Collector的配置。
<Device2> display inqa collector
Collector ID : 111.1.1.4
Loss-measure flag : 5
Analyzer ID : 111.1.1.4
Analyzer UDP-port : 53312
VPN-instance-name : --
Current instance count : 1
# 查看Collector实例1的配置。
<Device2> display inqa collector instance 1
Instance ID : 1
Status : Enabled
Duration : --
Description : --
Analyzer ID : --
Analyzer UDP-port : --
VPN-instance-name : --
Interval : 10 sec
Flow configuration:
flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
MP configuration:
mp 200 out-point outbound, GE1/0/1
# 查看Analyzer的配置。
<Device2> display inqa analyzer
Analyzer ID : 111.1.1.4
Protocol UDP-port : 53312
Current instance count : 1
# 查看Analyzer实例1的配置。
<Device2> display inqa analyzer instance 1
Instance ID : 1
Status : Enable
Description : --
Alarm upper-limit : 6.000000%
Alarm lower-limit : 4.000000%
Current AMS count : 0
Collectors : 111.1.1.1
111.1.1.4
(3) 在Device 2上查看统计结果
# 在Device 2上连接Device 1的接口上对源IP网段10.1.1.0/24进行限速,查看Analyzer实例1的丢包统计结果。
[Device2] display inqa statistics loss instance 1
Latest packet loss statistics for forward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159074890 0 0.000000% 0 0.000000%
159074889 0 0.000000% 0 0.000000%
159074888 0 0.000000% 0 0.000000%
159074887 13344 54.248313% 17080320 54.248313%
159074886 268288 54.249900% 343408640 54.249900%
159074885 272466 54.249727% 348756480 54.249727%
159074884 229841 45.699305% 294196480 45.699305%
159074883 0 0.000000% 0 0.000000%
159074882 0 0.000000% 0 0.000000%
Latest packet loss statistics for backward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159074890 0 0.000000% 0 0.000000%
159074889 0 0.000000% 0 0.000000%
159074888 0 0.000000% 0 0.000000%
159074887 0 0.000000% 0 0.000000%
159074886 0 0.000000% 0 0.000000%
159074885 0 0.000000% 0 0.000000%
159074884 0 0.000000% 0 0.000000%
159074883 0 0.000000% 0 0.000000%
159074882 0 0.000000% 0 0.000000%
如图3所示,用户1(IP地址网段为10.1.1.1/24)和用户2(IP地址网段为10.1.6.1/24)在进行语音通话时发现严重卡顿,需要确认语音流量在穿越IP承载网络时,是否存在严重丢包现象,如果存在丢包,需要进一步定位故障区域:
· 在IP网络的所有设备上部署iNQA功能。Collector1到Collector4的方向为正向。测量“MP 100和MP101”到“MP 400和MP401”之间的双向丢包率,以及MP 100到MP 200、MP 200到MP 400、MP 101到MP 300、MP 300到MP 401之间区间的双向丢包率。
· 持续测量30分钟。为了方便用户及时感知网络故障的发生,配置丢包超限阈值为6%,丢包超限恢复阈值为4%。当丢包率到达阈值时,设备自动生成对应的日志。
图3 iNQA逐点丢包测量组网图
(1) 配置IP地址和单播路由协议
参照图3,配置IP地址和路由,使得Collector 1、Collector 2、Collector 3和Collector 4+Analyzer之间路由可达,具体配置过程略。
(2) 配置NTP或者PTP
在Collector 1、Collector 2、Collector 3和Collector 4+Analyzer上配置NTP或者PTP功能,使得三台设备之间的时间达到同步,具体配置过程略。
(1) Collector 1上的关键配置
#
inqa collector
collector id 111.1.1.1
analyzer 111.1.1.4
flag loss-measure tos-bit 5
instance 1
flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
mp 100 in-point port-direction outbound
mp 101 in-point port-direction outbound
loss-measure enable duration 30
#
interface Bridge-Aggregation1
port access vlan 2
link-aggregation mode dynamic
inqa mp 100
interface Ten-GigabitEthernet1/0/50
port link-mode bridge
port access vlan 3
inqa mp 101
(2) Collector 2上的关键配置:Collector 2的出口Ten-GigabitEthernet1/0/50配置为mid-point,方向是outbound。
#
inqa collector
collector id 111.1.1.2
analyzer 111.1.1.4
flag loss-measure tos-bit 5
instance 1
flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
mp 200 mid-point port-direction outbound
loss-measure enable mid-point duration 30
#
interface Ten-GigabitEthernet1/0/50
port link-mode bridge
port access vlan 4
inqa mp 200
(3) Collector 3上的关键配置:Collector 3的出口Ten-GigabitEthernet1/0/2配置为mid-point,方向是outbound。
#
inqa collector
collector id 111.1.1.3
analyzer 111.1.1.4
flag loss-measure tos-bit 5
instance 1
flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
mp 300 mid-point port-direction outbound
loss-measure enable mid-point duration 30
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port access vlan 5
inqa mp 300
(4) Collector 4+Analyzer上的关键配置:
#
inqa analyzer
analyzer id 111.1.1.4
instance 1
collector 111.1.1.1
collector 111.1.1.2
collector 111.1.1.3
collector 111.1.1.4
loss-measure alarm upper-limit 6 lower-limit 4
measure enable
ams 1
flow bidirection
in-group collector 111.1.1.1 mp 100
out-group collector 111.1.1.2 mp 200
ams 2
flow bidirection
in-group collector 111.1.1.2 mp 200
out-group collector 111.1.1.4 mp 400
ams 3
flow bidirection
in-group collector 111.1.1.1 mp 101
out-group collector 111.1.1.3 mp 300
ams 4
flow bidirection
in-group collector 111.1.1.3 mp 300
out-group collector 111.1.1.4 mp 401
#
inqa collector
collector id 111.1.1.4
analyzer 111.1.1.4
flag loss-measure tos-bit 5
instance 1
flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
mp 400 out-point port-direction inbound
mp 401 out-point port-direction inbound
loss-measure enable duration 30
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port access vlan 4
inqa mp 400
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port access vlan 5
inqa mp 401
(1) 在中间节点Collector 2上查看iNQA实例配置情况:
<Collector2> display inqa collector instance 1
Instance ID : 1
Status : Enabled
Duration : 30 min (Mid-point)
Remaining time : 16 min 42 sec
Description : --
Analyzer ID : --
Analyzer UDP-port : --
VPN-instance-name : --
Interval : 10 sec
Flow configuration:
flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
MP configuration:
mp 200 mid-point outbound, XGE1/0/50
(2) 中间节点Collector 3上查看iNQA实例配置情况。
<Collector3> display inqa collector instance 1
Instance ID : 1
Status : Enabled
Duration : 30 min (Mid-point)
Remaining time : 13 min 50 sec
Description : --
Analyzer ID : --
Analyzer UDP-port : --
VPN-instance-name : --
Interval : 10 sec
Flow configuration:
flow bidirection source-ip 10.1.1.0 24 destination-ip 10.1.6.0 24
MP configuration:
mp 300 mid-point outbound, XGE1/0/2
(3) Collector 4+Analyzer上查看AMS配置情况。
<Collector4+Analyzer> display inqa analyzer instance 1 ams all
AMS ID : 1
Flow direction : bidirection
In-group : collector 111.1.1.1 mp 100
Out-group : collector 111.1.1.2 mp 200
AMS ID : 2
Flow direction : bidirection
In-group : collector 111.1.1.2 mp 200
Out-group : collector 111.1.1.4 mp 400
AMS ID : 3
Flow direction : bidirection
In-group : collector 111.1.1.1 mp 101
Out-group : collector 111.1.1.3 mp 300
AMS ID : 4
Flow direction : bidirection
In-group : collector 111.1.1.3 mp 300
Out-group : collector 111.1.1.4 mp 401
(4) 在Collector 4+Analyzer上显示测试结果
# 在Collector 3的XGE1/0/1接口上做短时间的入方向端口限速,人为构造丢包测试环境。
# 在Collector 4+Analyzer上显示端到端丢包统计。
<Collector4+Analyzer> display inqa statistics loss instance 1
Latest packet loss statistics for forward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 153633 54.108320% 196650240 54.108320%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
Latest packet loss statistics for forward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 0 0.000000% 0 0.000000%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
# 在Collector 4+Analyzer上显示各段丢包统计。
<Collector4+Analyzer> display inqa statistics loss instance 1 ams 1
Latest packet loss statistics for forward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 0 0.000000% 0 0.000000%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
Latest packet loss statistics for backward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 0 0.000000% 0 0.000000%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
<Collector4+Analyzer> display inqa statistics loss instance 1 ams 2
Latest packet loss statistics for forward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076803 0 0.000000% 0 0.000000%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 0 0.000000% 0 0.000000%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
Latest packet loss statistics for backward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076803 0 0.000000% 0 0.000000%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 0 0.000000% 0 0.000000%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
<Collector4+Analyzer> display inqa statistics loss instance 1 ams 3
Latest packet loss statistics for forward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076803 0 0.000000% 0 0.000000%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 153633 96.192569% 196650240 96.192569%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
Latest packet loss statistics for backward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076803 0 0.000000% 0 0.000000%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 0 0.000000% 0 0.000000%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
<Collector4+Analyzer> display inqa statistics loss instance 1 ams 4
Latest packet loss statistics for forward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076804 0 0.000000% 0 0.000000%
159076803 0 0.000000% 0 0.000000%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 0 0.000000% 0 0.000000%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
Latest packet loss statistics for backward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
159076804 0 0.000000% 0 0.000000%
159076803 0 0.000000% 0 0.000000%
159076802 0 0.000000% 0 0.000000%
159076801 0 0.000000% 0 0.000000%
159076800 0 0.000000% 0 0.000000%
159076799 0 0.000000% 0 0.000000%
159076798 0 0.000000% 0 0.000000%
159076797 0 0.000000% 0 0.000000%
159076796 0 0.000000% 0 0.000000%
159076795 0 0.000000% 0 0.000000%
通过以上显示信息可发现,丢包情况发生在AMS 3,Collector 1到Collector 3之间的正向链路上。
如图4所示,公司总部通过广域网和分支机构A、分支机构B相连,公司总部和分支机构A、分支机构B同时进行直播测试,发现语音断断续续、视频卡顿,现需要确认语音、视频流量在穿越广域网时,是否存在严重丢包现象:
· 在公司总部边缘设备上部署iNQA功能。为节省链路、简化组网,同时,将Collector 1和Analyzer部署在该设备上。公司总部到分支机构的方向为正向。测量MP 100到MP 200、MP 100到MP 300之间的正向丢包率。
· 为了方便用户及时感知网络故障的发生,配置丢包超限阈值为6%,丢包超限恢复阈值为4%。当丢包率到达阈值时,设备自动生成对应的日志。
图4 iNQA跨网络丢包测量组网图
(1) 配置IP地址和单播路由协议
参照图4,配置IP地址和路由,使得Collector 1+Analyzer、Collector 2和Collector 3之间路由可达,具体配置过程略。
(2) 配置NTP或者PTP
在Collector 1+Analyzer、Collector 2和Collector 3上配置NTP或者PTP功能,使得三台设备之间的时间达到同步,具体配置过程略。
(1) Collector 1+Analyzer上的关键配置:Collector 1的出口Ten-GigabitEthernet1/0/49配置为In-point,方向是Outbound。
#
inqa analyzer
analyzer id 111.1.1.1
instance 1
collector 111.1.1.1
collector 111.1.1.2
collector 111.1.1.3
loss-measure alarm upper-limit 6.000000 lower-limit 4.000000
measure enable
#
inqa collector
collector id 111.1.1.1
analyzer 111.1.1.1
flag loss-measure tos-bit 5
instance 1
flow forward source-ip 10.1.1.0 24 destination-ip 10.2.0.0 16
mp 100 in-point port-direction outbound
loss-measure enable continual
#
interface Ten-GigabitEthernet1/0/49
port link-mode bridge
inqa mp 100
(2) Collector 2上的关键配置:Collector 2的入口Ten-GigabitEthernet1/0/49配置为out-point,方向是inbound。
#
inqa collector
collector id 111.1.1.2
analyzer 111.1.1.1
flag loss-measure tos-bit 5
instance 1
flow forward source-ip 10.1.1.0 24 destination-ip 10.2.0.0 16
mp 200 out-point port-direction inbound
loss-measure enable continual
#
interface Ten-GigabitEthernet1/0/49
port link-mode bridge
inqa mp 200
(3) Collector 3上的关键配置:Collector 3的入口Ten-GigabitEthernet1/0/50配置为out-point,方向是inbound。
#
inqa collector
collector id 111.1.1.3
analyzer 111.1.1.1
flag loss-measure tos-bit 5
instance 1
flow forward source-ip 10.1.1.0 24 destination-ip 10.2.0.0 16
mp 300 out-point port-direction inbound
loss-measure enable continual
#
interface Ten-GigabitEthernet1/0/50
port link-mode bridge
inqa mp 300
(1) 在Collector 1+Analyzer上检测结果
# 查看Collector的配置。
<Collector1+Analyzer> display inqa collector
Collector ID : 111.1.1.1
Loss-measure flag : 5
Analyzer ID : 111.1.1.1
Analyzer UDP-port : 53312
VPN-instance-name : --
Current instance count : 1
# 查看Collector实例1的配置。
<Collector1+Analyzer> display inqa collector instance 1
Instance ID : 1
Status : Enabled
Duration : --
Description : --
Analyzer ID : --
Analyzer UDP-port : --
VPN-instance-name : --
Interval : 10 sec
Flow configuration:
flow forward source-ip 10.1.1.0 24 destination-ip 10.2.0.0 16
MP configuration:
mp 100 in-point outbound, XGE1/0/49
# 查看Analyzer的配置。
<Collector1+Analyzer> display inqa analyzer
Analyzer ID : 111.1.1.1
Protocol UDP-port : 53312
Current instance count : 1
<Collector1+Analyzer> display inqa analyzer instance 1
Instance ID : 1
Status : Enable
Description : --
Alarm upper-limit : 6.000000%
Alarm lower-limit : 4.000000%
Current AMS count : 0
Collectors : 111.1.1.1
111.1.1.2
111.1.1.3
(2) 在Collector 2上验证配置
# 查看Collector的配置。
<Collector2> display inqa collector
Collector ID : 111.1.1.2
Loss-measure flag : 5
Analyzer ID : 111.1.1.1
Analyzer UDP-port : 53312
VPN-instance-name : --
Current instance count : 1
# 查看Collector实例1的配置。
<Collector2> display inqa collector instance 1
Instance ID : 1
Status : Enabled
Duration : --
Description : --
Analyzer ID : --
Analyzer UDP-port : --
VPN-instance-name : --
Interval : 10 sec
Flow configuration:
flow forward source-ip 10.1.1.0 24 destination-ip 10.2.0.0 16
MP configuration:
mp 200 out-point inbound, XGE1/0/49
(3) 在Collector 3上查看统计结果
# 查看Collector的配置。
<Collector3> display inqa collector
Collector ID : 111.1.1.3
Loss-measure flag : 5
Analyzer ID : 111.1.1.1
Analyzer UDP-port : 53312
VPN-instance-name : --
Current instance count : 1
# 查看Collector实例1的配置。
<Collector3> display inqa collector instance 1
Instance ID : 1
Status : Enabled
Duration : --
Description : --
Analyzer ID : --
Analyzer UDP-port : --
VPN-instance-name : --
Interval : 10 sec
Flow configuration:
flow forward source-ip 10.1.1.0 24 destination-ip 10.2.0.0 16
MP configuration:
mp 300 out-point inbound, XGE1/0/50
(4) 在Collector 1+Analyzer上显示测试结果
# 在广域网设备上配置ACL,短时间内丢弃的10.1.1.0/24去往10.2.2.0/24的流量,人为构造丢包测试环境。
# 在Collector 1+Analyzer上显示端到端丢包统计。
<Collector1+Analyzer> display inqa statistics loss instance 1
Latest packet loss statistics for forward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
160335018 0 0.000000% 0 0.000000%
160335017 0 0.000000% 0 0.000000%
160335016 2869 14.382394% 367232 14.382394%
160335015 6195 30.982746% 792960 30.982746%
160335014 0 0.000000% 0 0.000000%
160335013 0 0.000000% 0 0.000000%
160335012 0 0.000000% 0 0.000000%
160335011 0 0.000000% 0 0.000000%
160335010 0 0.000000% 0 0.000000%
160335009 0 0.000000% 0 0.000000%
160335008 0 0.000000% 0 0.000000%
160335007 0 0.000000% 0 0.000000%
Latest packet loss statistics for backward flow:
Period LostPkts PktLoss% LostBytes ByteLoss%
160335018 0 0.000000% 0 0.000000%
160335017 0 0.000000% 0 0.000000%
160335016 0 0.000000% 0 0.000000%
160335015 0 0.000000% 0 0.000000%
160335014 0 0.000000% 0 0.000000%
160335013 0 0.000000% 0 0.000000%
160335012 0 0.000000% 0 0.000000%
160335011 0 0.000000% 0 0.000000%
160335010 0 0.000000% 0 0.000000%
160335009 0 0.000000% 0 0.000000%
160335008 0 0.000000% 0 0.000000%
160335007 0 0.000000% 0 0.000000%
· 仅针对IPv4单播流量进行测量,不支持对IPv6流量进行测量,不支持对组播流量进行测量。
· 不支持在VXLAN网络配置iNQA。
· 如果报文头在传输过程中被修改了,例如添加或删除了VLAN tag,可能会导致iNQA统计结果不准确。
· iNQA根据报文头中指定字段的取值匹配目标流。如果报文在传输过程中被封装或者解封装了,例如入MP在IP网络、出MP在VXLAN网络,可能会使得iNQA无法准确匹配到目标流,从而导致iNQA统计结果不准确。
· iNQA使用IPv4报文头中ToS(Type of Service,服务类型)字段的5~7位作为染色位,请根据产品支持情况和网络业务情况选择染色位,S5560X系列及S6520X系列仅支持bit 5作为染色位。当使用第5位作为染色位时,建议不要将ToS字段中的第5位用于DSCP,且不要配置使用DSCP的相关功能,以免造成iNQA统计不准确。
· 当设备上开启了ECN(Explicit Congestion Notification,显示拥塞通知)功能时,请勿使用ToS字段的第6和7比特位作为iNQA染色位;反之,使用ToS字段的第6和7比特位作为iNQA染色位时,请不要开启ECN功能。
· INT和iNQA不推荐同时使用。
· 当在聚合口上应用iNQA功能时,在成员接口加入聚合组后,可能会因设备ACL资源不足导致聚合口上的iNQA功能异常。此时可适当减少聚合口的成员接口数,或等其它功能模块释放ACL资源后再按需加入新的成员接口。
· 当在二层聚合接口上应用iNQA功能时,为确保iNQA功能正常,不建议通过port s-mlag group命令将该聚合接口加入S-MLAG组。
园区接入推荐使用下面系列交换机:
|
设备型号 |
Collector |
Analyzer |
软件版本 |
|
S5560X系列 |
√ |
√ |
F6510及之后版本 |
|
S6520X系列 |
√ |
√ |
F6510及之后版本 |
|
S6550XE系列 |
√ |
√ |
E6007P01及之后版本 |
