CN104468196B - Virtual network method for diagnosing faults and device based on evidence screening - Google Patents
Virtual network method for diagnosing faults and device based on evidence screening Download PDFInfo
- Publication number
- CN104468196B CN104468196B CN201410641874.5A CN201410641874A CN104468196B CN 104468196 B CN104468196 B CN 104468196B CN 201410641874 A CN201410641874 A CN 201410641874A CN 104468196 B CN104468196 B CN 104468196B
- Authority
- CN
- China
- Prior art keywords
- evidence
- virtual network
- matrix
- sub
- network component
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明涉及网络故障诊断技术领域,具体涉及一种基于证据筛选的虚拟网络故障诊断方法及装置。本发明提供的一种基于证据筛选的虚拟网络故障诊断方法及装置,通过采用对虚拟网络的观察结果建立证据矩阵模型,利用DS证据理论求解各个虚拟网络组件的故障概率,从而确定故障组件,克服了虚拟网络的动态性、扩展性以及信息不确定性。同时,因为本发明所采用的技术方案对证据进行了提前的筛选处理,使得故障定位既保持了高准确性,又极大的提高了时间效率,使得整体效益最大化。
The invention relates to the technical field of network fault diagnosis, in particular to a virtual network fault diagnosis method and device based on evidence screening. A virtual network fault diagnosis method and device based on evidence screening provided by the present invention establishes an evidence matrix model by using the observation results of the virtual network, and uses DS evidence theory to solve the fault probability of each virtual network component, thereby determining the faulty component and overcoming The dynamics, scalability and information uncertainty of the virtual network are improved. At the same time, because the technical solution adopted by the present invention screens the evidence in advance, the fault location not only maintains high accuracy, but also greatly improves the time efficiency, maximizing the overall benefit.
Description
技术领域technical field
本发明涉及网络故障诊断技术领域,具体涉及一种基于证据筛选的虚拟网络故障诊断方法及装置。The invention relates to the technical field of network fault diagnosis, in particular to a virtual network fault diagnosis method and device based on evidence screening.
背景技术Background technique
在虚拟网络环境中,多个虚拟网络同时存在于同一底层物理网络上,传统的互联网服务提供商(Internet Service Provider,ISP)分为两部分:基础设施提供商(Infrastructure Providers,InPs)和网络服务运营商(Service Providers,SPs),基础设施提供商用来提供和管理物理基础设施,网络服务运营商利用多个InPs提供的资源,通过抽象、分配和隔离机制部署虚拟网络,为终端用户提供创新的端到端服务及多样化的业务应用。In a virtual network environment, multiple virtual networks exist on the same underlying physical network at the same time. The traditional Internet Service Provider (Internet Service Provider, ISP) is divided into two parts: Infrastructure Providers (Infrastructure Providers, InPs) and network service providers Operators (Service Providers, SPs), infrastructure providers are used to provide and manage physical infrastructure, and network service operators use resources provided by multiple InPs to deploy virtual networks through abstraction, allocation and isolation mechanisms to provide end users with innovative End-to-end services and diverse business applications.
虚拟化环境中由于底层信息对于上层虚拟网络的透明性使得故障检测系统无法获取完整的网络知识,从而在对虚拟网络故障诊断中存在大量的不确定性;此外,虚拟网路是典型的大规模分布式网络,其中包含大量的虚拟节点和虚拟链路,这些组件又随需求动态变更,没有固定的网络拓扑。加之噪声影响,使得虚拟环境中对虚拟网络的故障诊断变得更加困难。In a virtualized environment, due to the transparency of the underlying information to the upper virtual network, the fault detection system cannot obtain complete network knowledge, so there are a lot of uncertainties in the fault diagnosis of the virtual network; in addition, the virtual network is a typical large-scale Distributed network, which contains a large number of virtual nodes and virtual links, these components change dynamically with the demand, there is no fixed network topology. Coupled with the influence of noise, it becomes more difficult to diagnose the fault of the virtual network in the virtual environment.
现有的技术方案主要采用基于管理层主动或被动探测故障定位方法来对虚拟网络进行故障诊断。然而,采用上述方法诊断虚拟网络故障需要了解网络的全局拓扑,不能较好地适应虚拟网络的动态性和扩展性。Existing technical solutions mainly adopt a fault location method based on active or passive detection of the management layer to diagnose the fault of the virtual network. However, using the above methods to diagnose virtual network faults needs to understand the global topology of the network, which cannot be well adapted to the dynamics and scalability of virtual networks.
发明内容Contents of the invention
针对现有技术中不能较好地适应虚拟网络的动态性和扩展性的缺陷,本发明提供了一种基于证据筛选的虚拟网络故障诊断方法及装置。Aiming at the defect that the prior art cannot better adapt to the dynamics and expansibility of the virtual network, the present invention provides a virtual network fault diagnosis method and device based on evidence screening.
一方面,本发明提供的一种基于证据筛选的虚拟网络故障诊断方法,包括:On the one hand, the present invention provides a virtual network fault diagnosis method based on evidence screening, including:
获取每一个客户端对该客户端对应的虚拟网络路径是否发生故障的观察结果;Obtain the observation result of each client whether the virtual network path corresponding to the client fails;
建立证据矩阵,其中所述证据矩阵的每一行对应一个客户端,所述证据矩阵的第一列对应该客户端的观察结果,其余每一列对应一个虚拟网络组件,所述虚拟网络组件包括虚拟节点和虚拟链路;Establish an evidence matrix, wherein each row of the evidence matrix corresponds to a client, the first column of the evidence matrix corresponds to the observation result of the client, and each of the remaining columns corresponds to a virtual network component, and the virtual network component includes virtual nodes and virtual link;
将所述证据矩阵拆分为多个子证据矩阵,每一个所述子证据矩阵的列数与所述证据矩阵的列数相等;Splitting the evidence matrix into a plurality of sub-evidence matrices, the number of columns of each of the sub-evidence matrices is equal to the number of columns of the evidence matrix;
针对每一个所述子证据矩阵,根据DS证据理论求解得到每一个虚拟网络组件的发生故障的概率;For each sub-evidence matrix, the probability of failure of each virtual network component is obtained by solving according to the DS evidence theory;
按照发生故障的概率由大到小的顺序依次选取发生故障概率最大的虚拟网络组件,直到选取的全部虚拟网络组件所覆盖的发生故障的虚拟网络路径的数量达到预设值为止。Select the virtual network component with the highest failure probability in descending order of failure probability until the number of failed virtual network paths covered by all selected virtual network components reaches a preset value.
进一步地,所述将所述证据矩阵拆分为多个子证据矩阵的步骤,包括:Further, the step of splitting the evidence matrix into multiple sub-evidence matrices includes:
将所述证据矩阵拆分为两个子证据矩阵,所述证据矩阵的奇数行作为第一子证据矩阵,所述证据矩阵的偶数行作为第二子证据矩阵。The evidence matrix is split into two sub-evidence matrices, the odd-numbered rows of the evidence matrix are used as the first sub-evidence matrix, and the even-numbered rows of the evidence matrix are used as the second sub-evidence matrix.
进一步地,所述根据DS证据理论求解得到每一个虚拟网络组件的发生故障的概率的步骤,包括:Further, the step of obtaining the failure probability of each virtual network component according to the DS evidence theory includes:
针对每一个所述子证据矩阵,根据DS证据理论构造每一个虚拟网络组件的一个m函数;For each sub-evidence matrix, construct an m-function of each virtual network component according to DS evidence theory;
针对每一个虚拟网络组件,根据DS证据理论的融合规则将同一个虚拟网络组件的所有m函数进行融合,得到该虚拟网络组件发生故障的概率。For each virtual network component, all the m-functions of the same virtual network component are fused according to the fusion rules of DS evidence theory, and the failure probability of the virtual network component is obtained.
进一步地,所述根据DS证据理论构造每一个虚拟网络组件的一个m函数的步骤,包括:Further, the step of constructing an m-function of each virtual network component according to the DS evidence theory includes:
针对第i个虚拟网络组件Ci,建立Ci的识别框架Θ={Ni,Ai},其中N代表正常,A代表故障;For the i-th virtual network component C i , establish an identification frame of C i Θ={N i , A i }, where N represents normal and A represents failure;
当Qi>Pi时,m(Ni)=min(1,log(Qi\Pi)),m({Ni,Ai})=1-m(Ni);m(Ai)=0;When Q i >P i , m(N i )=min(1, log(Q i \P i )), m({N i , A i })=1-m(N i ); m(A i )=0;
当Qi<=Pi时,m(Ai)=min(1,-log(Qi\Pi));m({Ni,Ai})=1-m(Ni),m(Ni)=0;When Q i <=P i , m(A i )=min(1,-log(Q i \P i )); m({N i ,A i })=1-m(N i ), m (N i )=0;
所述Qi为所述虚拟网络组件Ci正常的后验概率,所述Pi为所述虚拟网络组件Ci故障的后验概率。The Q i is the posterior probability that the virtual network component C i is normal, and the P i is the posterior probability that the virtual network component C i is faulty.
进一步地,所述根据DS证据理论将同一个虚拟网络组件的所有m函数值进行融合的步骤,包括:Further, the step of fusing all m-function values of the same virtual network component according to the DS evidence theory includes:
对于 for
其中,X、B、C为焦元,m1第一子证据矩阵对应的m函数,m2为第二子证据矩阵对应的m函数,K为归一化常数: Among them, X, B, and C are focal elements, m 1 is the m function corresponding to the first sub-evidence matrix, m 2 is the m function corresponding to the second sub-evidence matrix, and K is a normalization constant:
进一步地,所述预设值采用以下公式计算得到:Further, the preset value is calculated using the following formula:
预设值=所有发生故障的虚拟网络路径数量*(1-抗噪声系数);Default value = the number of all virtual network paths that have failed * (1-anti-noise factor);
其中抗噪声系数为预设参数。The anti-noise coefficient is a preset parameter.
相对应的,本发明还提供一种基于证据筛选的虚拟网络故障诊断装置,包括:Correspondingly, the present invention also provides a virtual network fault diagnosis device based on evidence screening, including:
获取模块,用于获取每一个客户端对该客户端对应的虚拟网络路径是否发生故障的观察结果;The acquisition module is used to acquire the observation result of each client whether the virtual network path corresponding to the client fails;
建立模块,用于建立证据矩阵,其中所述证据矩阵的每一行对应一个客户端,所述证据矩阵的第一列对应该客户端的观察结果,其余每一列对应一个虚拟网络组件,所述虚拟网络组件包括虚拟节点和虚拟链路;A building module for building an evidence matrix, wherein each row of the evidence matrix corresponds to a client, the first column of the evidence matrix corresponds to the observation result of the client, and each of the remaining columns corresponds to a virtual network component, and the virtual network Components include virtual nodes and virtual links;
拆分模块,用于将所述证据矩阵拆分为多个子证据矩阵,每一个所述子证据矩阵的列数与所述证据矩阵的列数相等;A splitting module, configured to split the evidence matrix into a plurality of sub-evidence matrices, the number of columns of each of the sub-evidence matrices is equal to the number of columns of the evidence matrix;
求解模块,用于针对每一个所述子证据矩阵,根据DS证据理论求解得到每一个虚拟网络组件的发生故障的概率;A solving module, for each of the sub-evidence matrices, according to the DS evidence theory to obtain the failure probability of each virtual network component;
选取模块,用于按照发生故障的概率由大到小的顺序依次选取发生故障概率最大的虚拟网络组件,直到选取的全部虚拟网络组件所覆盖的发生故障的虚拟网络路径的数量达到预设值为止。The selection module is used to sequentially select the virtual network component with the highest failure probability in descending order of failure probability until the number of failed virtual network paths covered by all selected virtual network components reaches a preset value .
进一步地,所述拆分模块具体用于:Further, the splitting module is specifically used for:
将所述证据矩阵拆分为两个子证据矩阵,所述证据矩阵的奇数行作为第一子证据矩阵,所述证据矩阵的偶数行作为第二子证据矩阵。The evidence matrix is split into two sub-evidence matrices, the odd-numbered rows of the evidence matrix are used as the first sub-evidence matrix, and the even-numbered rows of the evidence matrix are used as the second sub-evidence matrix.
进一步地,所述求解模块具体用于:Further, the solving module is specifically used for:
针对第i个虚拟网络组件Ci,建立Ci的识别框架Θ={Ni,Ai},其中N代表正常,A代表故障;For the i-th virtual network component C i , establish an identification frame of C i Θ={N i , A i }, where N represents normal and A represents failure;
当Qi>Pi时,m(Ni)=min(1,log(Qi\Pi)),m({Ni,Ai})=1-m(Ni);m(Ai)=0;When Q i >P i , m(N i )=min(1, log(Q i \P i )), m({N i , A i })=1-m(N i ); m(A i )=0;
当Qi<=Pi时,m(Ai)=min(1,-log(Qi\Pi));m({Ni,Ai})=1-m(Ni),m(Ni)=0;When Q i <=P i , m(A i )=min(1,-log(Q i \P i )); m({N i ,A i })=1-m(N i ), m (N i )=0;
所述Qi为所述虚拟网络组件Ci正常的后验概率,所述Pi为所述虚拟网络组件Ci故障的后验概率;The Q i is the posterior probability that the virtual network component C i is normal, and the P i is the posterior probability that the virtual network component C i is faulty;
对于 for
其中,X、B、C为焦元,m1第一子证据矩阵对应的m函数,m2为第二子证据矩阵对应的m函数,K为归一化常数: Among them, X, B, and C are focal elements, m 1 is the m function corresponding to the first sub-evidence matrix, m 2 is the m function corresponding to the second sub-evidence matrix, and K is a normalization constant:
进一步地,所述选取模块具体用于:Further, the selection module is specifically used for:
所述预设值采用以下公式计算得到:The preset value is calculated using the following formula:
预设值=所有发生故障的虚拟网络路径数量*(1-抗噪声系数);其中抗噪声系数为预设参数。Default value=number of virtual network paths that have failed*(1-anti-noise factor); wherein the anti-noise factor is a preset parameter.
本发明提供的一种基于证据筛选的虚拟网络故障诊断方法及装置,通过采用对虚拟网络的观察结果建立证据矩阵模型,利用DS证据理论求解各个虚拟网络组件的故障概率,从而确定故障组件,克服了虚拟网络的动态性、扩展性以及信息不确定性。同时,因为本发明所采用的技术方案对证据进行了提前的筛选处理,使得故障定位既保持了高准确性,又极大的提高了时间效率,使得整体效益最大化。A virtual network fault diagnosis method and device based on evidence screening provided by the present invention establishes an evidence matrix model by using the observation results of the virtual network, and uses DS evidence theory to solve the fault probability of each virtual network component, thereby determining the faulty component and overcoming The dynamics, scalability and information uncertainty of the virtual network are improved. At the same time, because the technical solution adopted by the present invention screens the evidence in advance, the fault location not only maintains high accuracy, but also greatly improves the time efficiency, maximizing the overall benefit.
附图说明Description of drawings
通过参考附图会更加清楚的理解本发明的特征和优点,附图是示意性的而不应理解为对本发明进行任何限制,在附图中:The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the invention in any way. In the accompanying drawings:
图1是本发明一个实施例中一种基于证据筛选的虚拟网络故障诊断方法的流程示意图;Fig. 1 is a schematic flow chart of a virtual network fault diagnosis method based on evidence screening in an embodiment of the present invention;
图2是本发明一个实施例中采用本实施例方法与现有技术故障检测所耗时比值随组件数量的变化示意图;Fig. 2 is a schematic diagram of the change of the time-consuming ratio of the method of this embodiment and the fault detection of the prior art with the number of components in an embodiment of the present invention;
图3是本发明一个实施例中采用本实施例方法与现有技术故障检测所耗时比值随证据数量的变化示意图;Fig. 3 is a schematic diagram of the change of the time-consuming ratio of the method of this embodiment and the fault detection of the prior art with the amount of evidence in an embodiment of the present invention;
图4是本发明一个实施例中故障率为0.5%时采用本实施例方法与现有技术进行故障检测的准确率比较示意图;Fig. 4 is a schematic diagram of comparing the accuracy of fault detection using the method of this embodiment and the prior art when the fault rate is 0.5% in one embodiment of the present invention;
图5是本发明一个实施例中故障率为0.6%时采用本实施例方法与现有技术进行故障检测的准确率比较示意图;Fig. 5 is a schematic diagram of comparing the accuracy of fault detection using the method of this embodiment and the prior art when the fault rate is 0.6% in one embodiment of the present invention;
图6是本发明一个实施例中故障率为0.8%时采用本实施例方法与现有技术进行故障检测的准确率比较示意图;Fig. 6 is a schematic diagram of comparison of the accuracy of fault detection using the method of this embodiment and the prior art when the fault rate is 0.8% in one embodiment of the present invention;
图7是本发明一个实施例中故障率为1.0%时采用本实施例方法与现有技术进行故障检测的准确率比较示意图;Fig. 7 is a schematic diagram of the comparison of the accuracy of fault detection using the method of this embodiment and the prior art when the fault rate is 1.0% in one embodiment of the present invention;
图8是本发明一个实施例中故障率为0.5%时采用本实施例方法与现有技术进行故障检测的误诊率比较示意图;Fig. 8 is a schematic diagram of the misdiagnosis rate comparison between the method of this embodiment and the prior art for fault detection when the fault rate is 0.5% in one embodiment of the present invention;
图9是本发明一个实施例中故障率为0.6%时采用本实施例方法与现有技术进行故障检测的误诊率比较示意图;Fig. 9 is a schematic diagram of the misdiagnosis rate comparison between the method of this embodiment and the prior art for fault detection when the fault rate is 0.6% in one embodiment of the present invention;
图10是本发明一个实施例中故障率为0.8%时采用本实施例方法与现有技术进行故障检测的误诊率比较示意图;Fig. 10 is a schematic diagram of the misdiagnosis rate comparison between the method of this embodiment and the prior art for fault detection when the fault rate is 0.8% in one embodiment of the present invention;
图11是本发明一个实施例中故障率为1.0%时采用本实施例方法与现有技术进行故障检测的误诊率比较示意图;Fig. 11 is a schematic diagram of the misdiagnosis rate comparison between the method of this embodiment and the prior art for fault detection when the fault rate is 1.0% in one embodiment of the present invention;
图12是本发明一个实施例中一种基于证据筛选的虚拟网络故障诊断装置的结构示意图。Fig. 12 is a schematic structural diagram of a virtual network fault diagnosis device based on evidence screening in an embodiment of the present invention.
具体实施方式detailed description
现结合附图和实施例对本发明技术方案作进一步详细阐述。The technical solution of the present invention will be further described in detail in conjunction with the accompanying drawings and embodiments.
图1示出了本实施例中一种基于证据筛选的虚拟网络故障诊断方法的流程示意图,如图1所示,本实施例提供的一种基于证据筛选的虚拟网络故障诊断方法,包括:Figure 1 shows a schematic flowchart of a virtual network fault diagnosis method based on evidence screening in this embodiment. As shown in Figure 1, a virtual network fault diagnosis method based on evidence screening provided in this embodiment includes:
S1,获取每一个客户端对该客户端对应的虚拟网络路径是否发生故障的观察结果。S1. Obtain an observation result of each client whether a virtual network path corresponding to the client fails.
S2,建立证据矩阵,其中所述证据矩阵的每一行对应一个客户端,所述证据矩阵的第一列对应该客户端的观察结果,其余每一列对应一个虚拟网络组件,所述虚拟网络组件包括虚拟节点和虚拟链路。S2. Establish an evidence matrix, wherein each row of the evidence matrix corresponds to a client, the first column of the evidence matrix corresponds to the observation result of the client, and each of the remaining columns corresponds to a virtual network component, and the virtual network component includes a virtual nodes and virtual links.
具体地,所述证据矩阵包括:Specifically, the evidence matrix includes:
所述证据矩阵的第一列为报错列,若所述客户端的观察结果为故障,则该客户端对应行的第一列为1,若所述客户端的观察结果为正常,则该客户端对应行的第一列为0;The first column of the evidence matrix is an error column. If the observation result of the client is faulty, the first column of the corresponding row of the client is 1. If the observation result of the client is normal, the corresponding The first column of the row is 0;
从第二列开始,每一个所述虚拟网络组件对应所述证据矩阵的一列,若所述客户端对应的虚拟网络路径包含所述虚拟网络组件,则该客户端对应行的该虚拟网络组件对应的列为1,其余列为0。Starting from the second column, each virtual network component corresponds to a column of the evidence matrix. If the virtual network path corresponding to the client contains the virtual network component, then the virtual network component in the corresponding row of the client corresponds to is 1, and the rest are 0.
S3,将所述证据矩阵拆分为多个子证据矩阵,每一个所述子证据矩阵的列数与所述证据矩阵的列数相等。S3. Split the evidence matrix into a plurality of sub-evidence matrices, and the number of columns of each sub-evidence matrix is equal to the number of columns of the evidence matrix.
S4,针对每一个所述子证据矩阵,根据DS证据理论求解得到每一个虚拟网络组件的发生故障的概率。S4, for each of the sub-evidence matrices, obtain the failure probability of each virtual network component by solving according to the DS evidence theory.
S5,按照发生故障的概率由大到小的顺序依次选取发生故障概率最大的虚拟网络组件,直到选取的全部虚拟网络组件所覆盖的发生故障的虚拟网络路径的数量达到预设值为止。S5. Select the virtual network component with the highest failure probability in descending order of failure probability until the number of failed virtual network paths covered by all selected virtual network components reaches a preset value.
为了避免噪声对检测结果的影响,通过引入抗噪声系数来提高检测结果的准确度,即所述预设值采用以下公式计算得到:In order to avoid the impact of noise on the detection results, the accuracy of the detection results is improved by introducing an anti-noise coefficient, that is, the preset value is calculated using the following formula:
预设值=所有发生故障的虚拟网络路径数量*(1-抗噪声系数)。Default value=the number of virtual network paths that have failed*(1-anti-noise factor).
进一步地,为了能够获得更加准确的虚拟网络组件的m函数,本实施例中采用奇偶行拆分,将所述证据矩阵拆分为两个子证据矩阵,所述证据矩阵的奇数行作为第一子证据矩阵,所述证据矩阵的偶数行作为第二子证据矩阵。Further, in order to obtain more accurate m-functions of virtual network components, in this embodiment, odd and even row splitting is used to split the evidence matrix into two sub-evidence matrices, and the odd-numbered rows of the evidence matrix are used as the first sub-evidence matrix. An evidence matrix, the even-numbered rows of the evidence matrix are used as the second sub-evidence matrix.
进一步地,所述根据DS证据理论求解得到每一个虚拟网络组件的发生故障的概率的步骤,包括:Further, the step of obtaining the failure probability of each virtual network component according to the DS evidence theory includes:
针对每一个所述子证据矩阵,根据DS证据理论构造每一个虚拟网络组件的一个m函数;For each sub-evidence matrix, construct an m-function of each virtual network component according to DS evidence theory;
针对每一个虚拟网络组件,根据DS证据理论的融合规则将同一个虚拟网络组件的所有m函数进行融合,得到该虚拟网络组件发生故障的概率。For each virtual network component, all the m-functions of the same virtual network component are fused according to the fusion rules of DS evidence theory, and the failure probability of the virtual network component is obtained.
其中,所述根据DS证据理论构造每一个虚拟网络组件的一个m函数的步骤,包括:Wherein, the step of constructing an m-function of each virtual network component according to the DS evidence theory includes:
针对第i个虚拟网络组件Ci,建立Ci的识别框架Θ={Ni,Ai},其中N代表正常,A代表故障;For the i-th virtual network component C i , establish an identification frame of C i Θ={N i , A i }, where N represents normal and A represents failure;
当Qi>Pi时,m(Ni)=min(1,log(Qi\Pi)),m({Ni,Ai})=1-m(Ni);m(Ai)=0;When Q i >P i , m(N i )=min(1, log(Q i \P i )), m({N i , A i })=1-m(N i ); m(A i )=0;
当Qi<=Pi时,m(Ai)=min(1,-log(Qi\Pi));m({Ni,Ai})=1-m(Ni),m(Ni)=0;When Q i <=P i , m(A i )=min(1,-log(Q i \P i )); m({N i ,A i })=1-m(N i ), m (N i )=0;
所述Qi为所述虚拟网络组件Ci正常的后验概率,所述Pi为所述虚拟网络组件Ci故障的后验概率。The Q i is the posterior probability that the virtual network component C i is normal, and the P i is the posterior probability that the virtual network component C i is faulty.
对于所述后验概率Qi采用递归函数loop进行求解。对于任意虚拟网络组件Ci。记Relatei为Ci的相关组件集合,即包含组件Ci的发生故障的路径中的其他组件的集合。如果该集合为空,则Qi=FaultRate,即虚拟网络固有故障率;若集合不为空,则利用递归函数loop进行如下操作:A recursive function loop is used to solve the posterior probability Q i . For any virtual network component C i . Denote Relatei as the set of related components of C i , that is, the set of other components in the faulty path containing component C i . If the set is empty, then Q i =FaultRate, that is, the inherent fault rate of the virtual network; if the set is not empty, use the recursive function loop to perform the following operations:
(1)对原子证据矩阵M删除所有包含Relatei[count]的证据,得到新矩阵M1;(1) Delete all the evidence containing Relatei[count] from the atomic evidence matrix M to obtain a new matrix M1;
(2)从原子证据矩阵中移除Relatei[count],得到新矩阵M2(2) Remove Relatei[count] from the atomic evidence matrix to get a new matrix M2
对计数器count加1,然后递归函数loop返回Prc*loop(count,M1)+(1-Prc)*loop(count,M2),其中,Prc为Relatei[count]的先验概率。Add 1 to the counter count, and then the recursive function loop returns Prc*loop(count, M1)+(1-Prc)*loop(count, M2), where Prc is the prior probability of Relatei[count].
进一步地,所述根据DS证据理论将同一个虚拟网络组件的所有m函数值进行融合的步骤,包括:Further, the step of fusing all m-function values of the same virtual network component according to the DS evidence theory includes:
对于 for
其中,X、B、C为焦元,m1第一子证据矩阵对应的m函数,m2为第二子证据矩阵对应的m函数,K为归一化常数:其中抗噪声系数为预设参数。Among them, X, B, and C are focal elements, m 1 is the m function corresponding to the first sub-evidence matrix, m 2 is the m function corresponding to the second sub-evidence matrix, and K is a normalization constant: The anti-noise coefficient is a preset parameter.
在本实例中,采用虚拟场景实验来说明本实施例检测方法效果。利用INET工具生成不同节点数的网络拓扑。节点数从1000至20000,选取其中的10%到20%作为虚拟组件,虚拟网络中的故障率由0.5%至1.5%,客户端观察到的证据数从1000至20000条,其中观察结果为正常的证据称为积极证据和观察结果为发生故障的证据称为消极证据,由于证据是随机生成的,所以大部分证据为积极证据。该系统中的噪声干扰率为0.01%,70%的路由跳数为1,20%的为2,7%的为3,3%的为4。In this example, a virtual scene experiment is used to illustrate the effect of the detection method of this embodiment. Use the INET tool to generate network topologies with different numbers of nodes. The number of nodes is from 1,000 to 20,000, and 10% to 20% of them are selected as virtual components. The failure rate in the virtual network is from 0.5% to 1.5%. The number of evidence observed by the client is from 1,000 to 20,000, and the observed results are normal The evidence of is called positive evidence and the evidence that the observation is a failure is called negative evidence. Since the evidence is randomly generated, most of the evidence is positive evidence. The noise interference rate in this system is 0.01%, 70% of the routing hops are 1, 20% are 2, 7% are 3, and 3% are 4.
如图2所示为不同故障率下随着组件数增长,采用本实施例方法进行故障检测的耗时与采用现有技术进行故障检测的耗时的比值的变化,如图3所示为不同故障率下随着证据数增长,采用本实施例方法进行故障检测的耗时与采用现有技术进行故障检测的耗时的比值的变化。As shown in Figure 2, as the number of components increases under different failure rates, the time-consuming ratio of the time-consuming fault detection using the method of this embodiment to the time-consuming fault detection using the prior art changes, as shown in Figure 3. As the number of evidence increases under the failure rate, the ratio of the time-consuming fault detection using the method of this embodiment to the time-consuming fault detection using the prior art changes.
图4至图7分别示出了在不同故障率情况下,采用本实施例方法进行故障检测与采用现有技术进行故障检测的准确率对比情况。图8至图11分别示出了在不同故障率情况下,采用本实施例方法进行故障检测与采用现有技术进行故障检测的误诊率对比情况。Fig. 4 to Fig. 7 respectively show the comparison of the accuracy rate of the fault detection using the method of this embodiment and the fault detection using the prior art under different fault rates. Fig. 8 to Fig. 11 respectively show the comparison of misdiagnosis rate between fault detection using the method of this embodiment and fault detection using the prior art under different fault rates.
综上所述,采用本实施例检测方法所消耗的时间,相比较于采用现有技术所耗的时间平均减少20~30%,但是对证据进行分拆后,准确率和误诊率与现有技术相比几乎没有变化。因此本实施例提供的一种基于证据筛选的虚拟网络故障诊断方法很大程度地提高的时间效率同时保持了高准确率。To sum up, the time consumed by the detection method of this embodiment is reduced by an average of 20-30% compared with the time consumed by the existing technology, but after the evidence is split, the accuracy and misdiagnosis rate are comparable to those of the existing technology. Technology has barely changed. Therefore, the virtual network fault diagnosis method based on evidence screening provided by this embodiment greatly improves the time efficiency while maintaining a high accuracy rate.
本实施例提供的一种基于证据筛选的虚拟网络故障诊断方法,通过采用对虚拟网络的观察结果建立证据矩阵模型,利用DS证据理论求解各个虚拟网络组件的故障概率,从而确定故障组件,克服了虚拟网络的动态性、扩展性以及信息不确定性。同时,因为本发明所采用的技术方案对证据进行了提前的筛选处理,使得故障定位既保持了高准确性,又极大的提高了时间效率,使得整体效益最大化。This embodiment provides a virtual network fault diagnosis method based on evidence screening. By using the observation results of the virtual network to establish an evidence matrix model, using the DS evidence theory to solve the failure probability of each virtual network component, so as to determine the faulty component, overcome the Dynamics, scalability and information uncertainty of virtual networks. At the same time, because the technical solution adopted by the present invention screens the evidence in advance, the fault location not only maintains high accuracy, but also greatly improves the time efficiency, maximizing the overall benefit.
另一方面,如图12所示,本实施例还提供了一种基于证据筛选的虚拟网络故障诊断装置,包括:On the other hand, as shown in FIG. 12 , this embodiment also provides a virtual network fault diagnosis device based on evidence screening, including:
获取模块101,用于获取每一个客户端对该客户端对应的虚拟网络路径是否发生故障的观察结果;Obtaining module 101, for obtaining the observation result of each client whether the virtual network path corresponding to the client fails;
建立模块102,用于建立证据矩阵,其中所述证据矩阵的每一行对应一个客户端,所述证据矩阵的第一列对应该客户端的观察结果,其余每一列对应一个虚拟网络组件,所述虚拟网络组件包括虚拟节点和虚拟链路;The establishment module 102 is used to establish an evidence matrix, wherein each row of the evidence matrix corresponds to a client, the first column of the evidence matrix corresponds to the observation result of the client, and each of the remaining columns corresponds to a virtual network component, and the virtual Network components include virtual nodes and virtual links;
拆分模块103,用于将所述证据矩阵拆分为多个子证据矩阵,每一个所述子证据矩阵的列数与所述证据矩阵的列数相等;A splitting module 103, configured to split the evidence matrix into a plurality of sub-evidence matrices, the number of columns of each of the sub-evidence matrices is equal to the number of columns of the evidence matrix;
求解模块104,用于针对每一个所述子证据矩阵,根据DS证据理论求解得到每一个虚拟网络组件的发生故障的概率;The solving module 104 is used to solve the failure probability of each virtual network component according to the DS evidence theory for each of the sub-evidence matrices;
选取模块105,用于按照发生故障的概率由大到小的顺序依次选取发生故障概率最大的虚拟网络组件,直到选取的全部虚拟网络组件所覆盖的发生故障的虚拟网络路径的数量达到预设值为止。The selection module 105 is configured to sequentially select the virtual network component with the highest failure probability in descending order of failure probability until the number of failed virtual network paths covered by all selected virtual network components reaches a preset value until.
进一步地,所述拆分模块103具体用于:Further, the splitting module 103 is specifically used for:
将所述证据矩阵拆分为两个子证据矩阵,所述证据矩阵的奇数行作为第一子证据矩阵,所述证据矩阵的偶数行作为第二子证据矩阵。The evidence matrix is split into two sub-evidence matrices, the odd-numbered rows of the evidence matrix are used as the first sub-evidence matrix, and the even-numbered rows of the evidence matrix are used as the second sub-evidence matrix.
进一步地,所述求解模块104具体用于:Further, the solving module 104 is specifically used for:
针对每一个所述子证据矩阵,根据DS证据理论构造每一个虚拟网络组件的一个m函数;For each sub-evidence matrix, construct an m-function of each virtual network component according to DS evidence theory;
针对每一个虚拟网络组件,根据DS证据理论的融合规则将同一个虚拟网络组件的所有m函数进行融合,得到该虚拟网络组件发生故障的概率。For each virtual network component, all the m-functions of the same virtual network component are fused according to the fusion rules of DS evidence theory, and the failure probability of the virtual network component is obtained.
具体的,针对第i个虚拟网络组件Ci,建立Ci的识别框架Θ={Ni,Ai},其中N代表正常,A代表故障;Specifically, for the i-th virtual network component C i , an identification framework of C i is established Θ={N i , A i }, where N represents normal and A represents failure;
当Qi>Pi时,m(Ni)=min(1,log(Qi\Pi)),m({Ni,Ai})=1-m(Ni);m(Ai)=0;When Q i >P i , m(N i )=min(1, log(Q i \P i )), m({N i , A i })=1-m(N i ); m(A i )=0;
当Qi<=Pi时,m(Ai)=min(1,-log(Qi\Pi));m({Ni,Ai})=1-m(Ni),m(Ni)=0;When Q i <=P i , m(A i )=min(1,-log(Q i \P i )); m({N i ,A i })=1-m(N i ), m (N i )=0;
所述Qi为所述虚拟网络组件Ci正常的后验概率,所述Pi为所述虚拟网络组件Ci故障的后验概率。The Q i is the posterior probability that the virtual network component C i is normal, and the P i is the posterior probability that the virtual network component C i is faulty.
对于 for
其中,X、B、C为焦元,m1第一子证据矩阵对应的m函数,m2为第二子证据矩阵对应的m函数,K为归一化常数: Among them, X, B, and C are focal elements, m 1 is the m function corresponding to the first sub-evidence matrix, m 2 is the m function corresponding to the second sub-evidence matrix, and K is a normalization constant:
进一步地,所述选取模块105具体用于:Further, the selecting module 105 is specifically used for:
所述预设值采用以下公式计算得到:The preset value is calculated using the following formula:
预设值=所有发生故障的虚拟网络路径数量*(1-抗噪声系数);其中抗噪声系数为预设参数。Default value=number of virtual network paths that have failed*(1-anti-noise factor); wherein the anti-noise factor is a preset parameter.
本发明提供的一种基于证据筛选的虚拟网络故障诊断装置,通过采用对虚拟网络的观察结果建立证据矩阵模型,利用DS证据理论求解各个虚拟网络组件的故障概率,从而确定故障组件,克服了虚拟网络的动态性、扩展性以及信息不确定性。同时,因为本发明所采用的技术方案对证据进行了提前的筛选处理,使得故障定位既保持了高准确性,又极大的提高了时间效率,使得整体效益最大化。A virtual network fault diagnosis device based on evidence screening provided by the present invention establishes an evidence matrix model by using the observation results of the virtual network, and uses DS evidence theory to solve the failure probability of each virtual network component, thereby determining the faulty component and overcoming the virtual Network dynamics, scalability and information uncertainty. At the same time, because the technical solution adopted by the present invention screens the evidence in advance, the fault location not only maintains high accuracy, but also greatly improves the time efficiency, maximizing the overall benefit.
虽然结合附图描述了本发明的实施方式,但是本领域技术人员可以在不脱离本发明的精神和范围的情况下做出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention. within the bounds of the requirements.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410641874.5A CN104468196B (en) | 2014-11-13 | 2014-11-13 | Virtual network method for diagnosing faults and device based on evidence screening |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410641874.5A CN104468196B (en) | 2014-11-13 | 2014-11-13 | Virtual network method for diagnosing faults and device based on evidence screening |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104468196A CN104468196A (en) | 2015-03-25 |
CN104468196B true CN104468196B (en) | 2017-12-05 |
Family
ID=52913607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410641874.5A Expired - Fee Related CN104468196B (en) | 2014-11-13 | 2014-11-13 | Virtual network method for diagnosing faults and device based on evidence screening |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104468196B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105490836B (en) * | 2015-11-19 | 2019-04-19 | 湘南学院 | A Monte Carlo Evaluation Method for Reliability of Complex Networks |
CN108520266B (en) * | 2018-03-01 | 2019-10-22 | 西北工业大学 | A Time Domain Fusion Fault Diagnosis Method Based on DS Evidence Theory |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350739A (en) * | 2008-09-05 | 2009-01-21 | 北京邮电大学 | A Fault Location Method in IP Network |
CN103763132A (en) * | 2014-01-02 | 2014-04-30 | 北京邮电大学 | Network virtualization environment fault diagnosis method based on relevance of symptoms and faults |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8868344B2 (en) * | 2011-09-22 | 2014-10-21 | Honeywell International Inc. | Systems and methods for combining a priori data with sensor data |
-
2014
- 2014-11-13 CN CN201410641874.5A patent/CN104468196B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350739A (en) * | 2008-09-05 | 2009-01-21 | 北京邮电大学 | A Fault Location Method in IP Network |
CN103763132A (en) * | 2014-01-02 | 2014-04-30 | 北京邮电大学 | Network virtualization environment fault diagnosis method based on relevance of symptoms and faults |
Non-Patent Citations (4)
Title |
---|
Evidence Relationship Matrix and Its Application to D-S Evidence Theory for Information Fusion;Xianfeng Fan, Hong-Zhong Huang, and Qiang Miao;《IDEAL》;20060923;全文 * |
Network Security Situation Evaluation Based on Modified D-S Evidence Theory;WANG Chundong, ZHANG Yu;《Wuhan University Journal of Natural Sciences》;20141031;第19卷(第5期);全文 * |
一种改进的D-S证据理论合成方法;杨靖,林益,洪露,李泽滔;《计算机工程与应用》;20120425;第48卷(第20期);全文 * |
基于D-S 证据理论的网络异常检测方法;诸葛建伟,王大为,陈 昱,叶志远,邹维;《软件学报》;20060331;第17卷(第3期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN104468196A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10033623B2 (en) | Multithreaded system and method for establishing network connections | |
CN109644141B (en) | Method and system for visualizing a network | |
Rohrer et al. | Path diversification for future internet end-to-end resilience and survivability | |
CN104040974B (en) | Apparatus and method for spare capacity allocation on dual link failureS | |
CN104221327A (en) | Network Availability Analysis | |
CN1551571A (en) | Central internet protocol/multi protocol label switching verification in communication network management environment | |
Zeng et al. | Intelligent blockchain‐based secure routing for multidomain SDN‐enabled IoT networks | |
WO2015139533A1 (en) | Method for network manager to back-calculate hybrid networking services | |
US11915110B1 (en) | Semi-structured data machine learning | |
Clad et al. | Graceful convergence in link-state IP networks: A lightweight algorithm ensuring minimal operational impact | |
Malik et al. | A methodology for OSPF routing protocol verification | |
US10764214B1 (en) | Error source identification in cut-through networks | |
CN112532408B (en) | Method, device and storage medium for extracting fault propagation condition | |
CN104468196B (en) | Virtual network method for diagnosing faults and device based on evidence screening | |
CN108696887A (en) | The mobile device record assisted for troubleshooting | |
Raza et al. | Reliability aware multiple path installation in software-defined networking | |
WO2015059917A1 (en) | Multi-layer network control method and device | |
US20090092047A1 (en) | System to manage multilayer networks | |
US10656988B1 (en) | Active monitoring of packet loss in networks using multiple statistical models | |
CN115913899B (en) | Rapid recovery method and system for heterogeneous fusion communication faults of power transmission line | |
JP5419740B2 (en) | Pass accommodation design method | |
Su et al. | Efficient algorithms for scheduling multiple bulk data transfers in inter‐datacenter networks | |
CN103825827B (en) | A kind of route advertising method and equipment | |
JP2006245874A (en) | Communication path computation system and communication path computation method using partial measurement in overlay network, and program therefor | |
Girão-Silva et al. | A network-wide exact optimization approach for multiobjective routing with path protection in multiservice multiprotocol label switching networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171205 |
|
CF01 | Termination of patent right due to non-payment of annual fee |