[go: up one dir, main page]

CN107659653B - NDN network measurement data caching method and device, electronic equipment and storage medium - Google Patents

NDN network measurement data caching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN107659653B
CN107659653B CN201710905444.3A CN201710905444A CN107659653B CN 107659653 B CN107659653 B CN 107659653B CN 201710905444 A CN201710905444 A CN 201710905444A CN 107659653 B CN107659653 B CN 107659653B
Authority
CN
China
Prior art keywords
storage nodes
storage
network
node
metadata
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.)
Active
Application number
CN201710905444.3A
Other languages
Chinese (zh)
Other versions
CN107659653A (en
Inventor
鄂新华
妥艳君
李吉良
杨帆
黄韬
刘江
刘玉贞
张学敏
张文志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
CETC 54 Research Institute
Original Assignee
Beijing University of Posts and Telecommunications
CETC 54 Research Institute
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing University of Posts and Telecommunications, CETC 54 Research Institute filed Critical Beijing University of Posts and Telecommunications
Priority to CN201710905444.3A priority Critical patent/CN107659653B/en
Publication of CN107659653A publication Critical patent/CN107659653A/en
Application granted granted Critical
Publication of CN107659653B publication Critical patent/CN107659653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明实施例提供了一种NDN网络测量数据缓存方法、装置、电子设备及存储介质,所述方法包括:获取NDN网络的各存储节点的基础结构元数据和功能结构元数据;针对各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系;基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图;基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度;基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,并在关键网络节点缓存网络测量数据。应用本发明实施例,能够提高NDN网络测量数据的缓存效率。

Figure 201710905444

Embodiments of the present invention provide a method, device, electronic device, and storage medium for NDN network measurement data caching. The method includes: acquiring basic structure metadata and functional structure metadata of each storage node of the NDN network; For each two storage nodes in the storage node, based on the functional structure metadata of the two storage nodes and the basic structure metadata of the two storage nodes, determine the association relationship existing between the two storage nodes; based on each storage node Based on the network relationship topology map, calculate the correlation degree between each storage node and other storage nodes in each storage node; based on the correlation degree, determine each storage node Whether each storage node in the node is a key network node, and caches network measurement data at the key network node. By applying the embodiments of the present invention, the caching efficiency of NDN network measurement data can be improved.

Figure 201710905444

Description

NDN网络测量数据缓存方法、装置、电子设备及存储介质NDN network measurement data caching method, device, electronic device and storage medium

技术领域technical field

本发明涉及通信领域,特别是涉及一种NDN网络测量数据缓存方法、装置、电子设备及存储介质。The present invention relates to the field of communications, and in particular, to a method, device, electronic device and storage medium for buffering NDN network measurement data.

背景技术Background technique

目前,日益增长的用户规模和用户需求给互联网带来了巨大的挑战,使得内容本身越来越成为用户需求的中心,基于此,NDN(Named Data Network,命名数据网络)应运而生。将网络测量数据缓存在NDN网络中,可以优化NDN网络,从而提高NDN网络的可用性。其中,网络测量数据主要用于对网络进行监视,包括对网络运行情况的监视、网络资源的监视和网络性能(如业务吞吐量、时延、丢包率、RTT、带宽利用率、网络伸缩性等)的监视等,并可提交故障及异常事件报告,作出相应的评价。At present, the increasing user scale and user demands have brought huge challenges to the Internet, making the content itself more and more the center of user demands. Based on this, NDN (Named Data Network, Named Data Network) came into being. Caching the network measurement data in the NDN network can optimize the NDN network, thereby improving the availability of the NDN network. Among them, network measurement data is mainly used to monitor the network, including monitoring of network operation, monitoring of network resources and network performance (such as service throughput, delay, packet loss rate, RTT, bandwidth utilization, network scalability, etc.). etc.) monitoring, etc., and can submit fault and abnormal event reports and make corresponding evaluations.

现有的NDN网络测量数据缓存方法,是将网络测量数据缓存在每个存储节点上。具体的,在NDN网络中,每个存储节点相当于一个服务器,在每一个服务器中都缓存网络测量数据,以便通过网络测量数据测量对应服务器网络性能数据,从而对NDN网络进行监视。The existing NDN network measurement data caching method is to cache the network measurement data on each storage node. Specifically, in an NDN network, each storage node is equivalent to a server, and network measurement data is cached in each server, so as to measure the network performance data of the corresponding server through the network measurement data, so as to monitor the NDN network.

但是,在现有的NDN网络测量数据缓存方法中,由于每个服务器上的网络性能数据都在实时的进行更新,这样,在预设时间内测量的网络性能数据会比较多,要通过计算这些网络性能数据来确定对应的服务器是否可用,不仅计算量大,而且耗时长,最终导致NDN网络测量数据缓存效率比较低。However, in the existing NDN network measurement data caching method, since the network performance data on each server is updated in real time, there will be more network performance data measured within a preset time. Network performance data to determine whether the corresponding server is available is not only computationally intensive, but also takes a long time, resulting in low NDN network measurement data caching efficiency.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的在于提供一种NDN网络测量数据缓存方法、装置、电子设备及存储介质,以提高NDN网络测量数据的缓存效率。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a NDN network measurement data caching method, apparatus, electronic device and storage medium, so as to improve the NDN network measurement data caching efficiency. The specific technical solutions are as follows:

本发明实施例公开了一种NDN网络测量数据缓存方法,所述方法包括:The embodiment of the present invention discloses a NDN network measurement data caching method, the method includes:

获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,其中,所述基础结构元数据表示存储节点的静态特征,所述功能结构元数据表示存储节点的动态特征;Acquiring basic structure metadata and functional structure metadata of each storage node of the NDN network, wherein the basic structure metadata represents a static feature of the storage node, and the functional structure metadata represents a dynamic feature of the storage node;

针对所述各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系;For every two storage nodes in the storage nodes, based on the functional structure metadata of the two storage nodes and the basic structure metadata of the two storage nodes, determine the association existing between the two storage nodes relation;

基于所述各存储节点之间的关联关系,构建所述各存储节点之间的网络关系拓扑图;based on the association relationship between the storage nodes, constructing a topology map of the network relationship between the storage nodes;

基于所述网络关系拓扑图,计算所述各存储节点中每个存储节点与其他存储节点之间的关联度;Calculate the degree of association between each storage node and other storage nodes in the storage nodes based on the network relationship topology map;

基于所述关联度,确定所述各存储节点中每个存储节点是否为关键网络节点,并在所述关键网络节点缓存网络测量数据。Based on the correlation degree, it is determined whether each of the storage nodes is a key network node, and network measurement data is cached at the key network node.

可选的,所述获取NDN网络的各存储节点的基础结构元数据和功能结构元数据之后,所述方法还包括:Optionally, after obtaining the basic structure metadata and functional structure metadata of each storage node of the NDN network, the method further includes:

将所述基础结构元数据和所述功能结构元数据存储到元数据池中。The infrastructure metadata and the functional structure metadata are stored in a metadata pool.

可选的,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系,包括:Optionally, based on the functional structure metadata of the two storage nodes and the infrastructure metadata in the two storage nodes, determine the association relationship existing between the two storage nodes, including:

当该两个存储节点中一个存储节点的基础结构元数据发生响应后,将通过该存储节点的功能结构元数据触发另一个存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在顺序关系;After the infrastructure metadata of one of the two storage nodes responds, the functional structure metadata of the storage node will trigger the response of the infrastructure metadata of the other storage node. There is a sequential relationship between them;

当该两个存储节点的基础结构元数据同时发生响应后,将通过该两个存储节点中一个存储节点的功能结构元数据触发该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在并行关系;When the basic structure metadata of the two storage nodes respond at the same time, the functional structure metadata of one of the two storage nodes will trigger the occurrence of the basic structure metadata of other storage nodes except the two storage nodes. When responding, it is determined that there is a parallel relationship between the two storage nodes;

当该两个存储节点的基础结构元数据都发生响应后,将通过该两个存储节点中一个存储节点的功能结构元数据以预设的概率触发该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在条件关系;When both the basic structure metadata of the two storage nodes respond, the functional structure metadata of one of the two storage nodes will trigger the other storage nodes except the two storage nodes with a preset probability. When the infrastructure metadata responds, it is determined that there is a conditional relationship between the two storage nodes;

当该两个存储节点中一个存储节点的基础结构元数据发生响应后,将通过该存储节点的功能结构元数据触发另一个存储节点的基础结构元数据和该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在分支关系。After the infrastructure metadata of one of the two storage nodes responds, the functional structure metadata of the storage node will trigger the infrastructure metadata of the other storage node and other storage nodes other than the two storage nodes. When the infrastructure metadata of the node responds, it is determined that there is a branch relationship between the two storage nodes.

可选的,所述基于所述各存储节点之间的关联关系,构建所述各存储节点之间的网络关系拓扑图,包括:Optionally, constructing a network relationship topology diagram between the storage nodes based on the association relationship between the storage nodes, including:

将所述各存储节点之间至少存在所述顺序关系、所述并行关系、所述条件关系、所述分支关系中的一种关联关系的存储节点相连接,得到所述各存储节点之间的网络关系拓扑图。Connect the storage nodes that have at least one of the sequence relationship, the parallel relationship, the conditional relationship, and the branch relationship among the storage nodes, to obtain the relationship between the storage nodes. Network relationship topology diagram.

可选的,所述基于所述网络关系拓扑图,计算所述各存储节点中每个存储节点与其他存储节点之间的关联度,包括:Optionally, calculating the degree of association between each of the storage nodes and other storage nodes based on the network relationship topology diagram, including:

基于所述网络关系拓扑图,计算所述各存储节点中每个存储节点与其他存储节点之间存在关联关系的存储节点的个数;Calculate, based on the network relationship topology diagram, the number of storage nodes that have an associated relationship between each storage node and other storage nodes in the storage nodes;

根据所述存储节点的个数,确定所述各存储节点中每个存储节点与其他存储节点之间的关联度。According to the number of the storage nodes, the degree of association between each of the storage nodes and other storage nodes is determined.

可选的,所述基于所述关联度,确定所述各存储节点中每个存储节点是否为关键网络节点,包括:Optionally, determining whether each storage node in the storage nodes is a key network node based on the correlation degree includes:

将所述关联度大于预设阈值的存储节点作为所述NDN网络的关键网络节点。The storage node whose correlation degree is greater than the preset threshold is used as the key network node of the NDN network.

本发明实施例还开了一种NDN网络测量数据缓存装置,所述装置包括:The embodiment of the present invention also provides an NDN network measurement data cache device, the device includes:

获取模块,用于获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,其中,所述基础结构元数据表示存储节点的静态特征,所述功能结构元数据表示存储节点的动态特征;The acquisition module is used to acquire the basic structure metadata and functional structure metadata of each storage node of the NDN network, wherein the basic structure metadata represents the static characteristics of the storage node, and the functional structure metadata represents the dynamic characteristics of the storage node ;

第一确定模块,用于针对所述各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系;a first determining module, configured to, for every two storage nodes in the storage nodes, determine the two storage nodes based on the functional structure metadata of the two storage nodes and the basic structure metadata of the two storage nodes The association between storage nodes;

构建模块,用于基于所述各存储节点之间的关联关系,构建所述各存储节点之间的网络关系拓扑图;a building module, configured to build a topology map of the network relationship between the storage nodes based on the association relationship between the storage nodes;

计算模块,用于基于所述网络关系拓扑图,计算所述各存储节点中每个存储节点与其他存储节点之间的关联度;a calculation module, configured to calculate the degree of association between each of the storage nodes and other storage nodes based on the network relationship topology diagram;

第二确定模块,用于基于所述关联度,确定所述各存储节点中每个存储节点是否为关键网络节点,并在所述关键网络节点缓存网络测量数据。The second determination module is configured to determine whether each storage node in the storage nodes is a key network node based on the correlation degree, and cache network measurement data at the key network node.

可选的,所述装置还包括:Optionally, the device further includes:

存储模块,用于将所述基础结构元数据和所述功能结构元数据存储到元数据池中。A storage module, configured to store the infrastructure metadata and the functional structure metadata in a metadata pool.

可选的,所述第一确定模块,包括:Optionally, the first determining module includes:

第一确定子模块,用于当该两个存储节点中一个存储节点的基础结构元数据发生响应后,将通过该存储节点的功能结构元数据触发另一个存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在顺序关系;The first determination submodule is used to trigger the response of the infrastructure metadata of another storage node through the functional structure metadata of the storage node after the infrastructure metadata of one storage node of the two storage nodes responds , it is determined that there is a sequential relationship between the two storage nodes;

第二确定子模块,用于当该两个存储节点的基础结构元数据同时发生响应后,将通过该两个存储节点中一个存储节点的功能结构元数据触发该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在并行关系;The second determination sub-module is used to trigger the other storage nodes except the two storage nodes through the functional structure metadata of one storage node in the two storage nodes after the two storage nodes respond simultaneously. When the infrastructure metadata of the storage node responds, it is determined that there is a parallel relationship between the two storage nodes;

第三确定子模块,用于当该两个存储节点的基础结构元数据都发生响应后,将通过该两个存储节点中一个存储节点的功能结构元数据以预设的概率触发该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在条件关系;The third determination sub-module is configured to trigger the two storage nodes with a preset probability through the functional structure metadata of one of the two storage nodes after the basic structure metadata of the two storage nodes responds When the infrastructure metadata of other storage nodes other than the node responds, it is determined that there is a conditional relationship between the two storage nodes;

第四确定子模块,用于当该两个存储节点中一个存储节点的基础结构元数据发生响应后,将通过该存储节点的功能结构元数据触发另一个存储节点的基础结构元数据和该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在分支关系。The fourth determination sub-module is used to trigger the basic structure metadata of the other storage node and the two storage nodes through the functional structure metadata of the storage node after the response of the basic structure metadata of one of the two storage nodes. When the infrastructure metadata of other storage nodes other than one storage node responds, it is determined that there is a branch relationship between the two storage nodes.

可选的,所述构建模块,具体用于:Optionally, the building module is specifically used for:

将所述各存储节点之间至少存在所述顺序关系、所述并行关系、所述条件关系、所述分支关系中的一种关联关系的存储节点相连接,得到所述各存储节点之间的网络关系拓扑图。Connect the storage nodes that have at least one of the sequence relationship, the parallel relationship, the conditional relationship, and the branch relationship among the storage nodes, to obtain the relationship between the storage nodes. Network relationship topology diagram.

可选的,所述计算模块,包括:Optionally, the computing module includes:

计算子模块,用于基于所述网络关系拓扑图,计算所述各存储节点中每个存储节点与其他存储节点之间存在关联关系的存储节点的个数;a calculation submodule, configured to calculate, based on the network relationship topology diagram, the number of storage nodes that have an associated relationship between each storage node and other storage nodes in the storage nodes;

第五确定子模块,用于根据所述存储节点的个数,确定所述各存储节点中每个存储节点与其他存储节点之间的关联度。The fifth determination sub-module is configured to determine, according to the number of the storage nodes, the degree of association between each of the storage nodes and other storage nodes.

可选的,所述第二确定模块,具体用于:Optionally, the second determining module is specifically used for:

将所述关联度大于预设阈值的存储节点作为所述NDN网络的关键网络节点。The storage node whose correlation degree is greater than the preset threshold is used as the key network node of the NDN network.

本发明实施例还公开了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口、所述存储器通过通信总线完成相互间的通信;The embodiment of the present invention also discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;

所述存储器,用于存放计算机程序;the memory for storing computer programs;

所述处理器,用于执行所述存储器上所存放的程序时,实现上述一种NDN网络测量数据缓存方法步骤。The processor is configured to implement the steps of the above-mentioned NDN network measurement data caching method when executing the program stored in the memory.

在本发明实施的又一方面,还公开了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述任一所述的一种NDN网络测量数据缓存方法。In yet another aspect of the implementation of the present invention, a computer-readable storage medium is also disclosed, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is made to execute any one of the above-mentioned one An NDN network measurement data caching method.

本发明实施例提供的一种NDN网络测量数据缓存方法、装置、电子设备及存储介质,先获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,然后针对各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系,再基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图,并基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度;最后基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,并在关键网络节点缓存网络测量数据。这种通过将网络数据中的基础结构元数据和功能结构元数据进行关联,得到各存储节点与其他存储节点之间的关联度,从而根据关联度确定各存储节点中的关键网络节点,以使网络测量数据存储到关键网络节点中,对关键网络节点进行网络监视,及优化NDN网络,从而提高了NDN网络测量数据的缓存效率。当然,实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优点。In a method, device, electronic device, and storage medium for NDN network measurement data caching provided by the embodiments of the present invention, the basic structure metadata and functional structure metadata of each storage node of the NDN network are firstly obtained, and then the Two storage nodes, based on the functional structure metadata of the two storage nodes and the infrastructure metadata in the two storage nodes, determine the association relationship existing between the two storage nodes, and then based on the relationship between the storage nodes Based on the network relationship topology map, calculate the correlation degree between each storage node and other storage nodes in each storage node; finally, based on the correlation degree, determine each storage node. Whether each storage node in the node is a key network node, and caches network measurement data at the key network node. By correlating the basic structure metadata and functional structure metadata in the network data, the degree of correlation between each storage node and other storage nodes is obtained, and the key network nodes in each storage node are determined according to the degree of correlation, so that the The network measurement data is stored in the key network nodes, network monitoring is performed on the key network nodes, and the NDN network is optimized, thereby improving the caching efficiency of the NDN network measurement data. Of course, it is not necessary for any product or method to implement the present invention to simultaneously achieve all of the advantages described above.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts.

图1为本发明实施例提供的一种NDN网络测量数据缓存方法的第一种流程示意图;1 is a first schematic flowchart of a method for caching measurement data of an NDN network provided by an embodiment of the present invention;

图2为本发明实施例提供的一种NDN网络测量数据缓存方法的第二种流程示意图;2 is a second schematic flowchart of a NDN network measurement data caching method according to an embodiment of the present invention;

图3为本发明实施例提供的一种NDN网络测量数据缓存方法的第三种流程示意图;3 is a third schematic flowchart of a method for caching NDN network measurement data according to an embodiment of the present invention;

图4为本发明实施例提供的一种NDN网络测量数据缓存装置的结构示意图;4 is a schematic structural diagram of an NDN network measurement data buffering device according to an embodiment of the present invention;

图5为本发明实施例提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

随着移动无线网络的发展和便携式移动设备的普及化,人们对无线网络的需求已不仅仅只满足于端到端通信。如今,对以信息内容为中心的通信模式变得越来越流行。命名数据网络起源于内容中心网络的一个分支,不同于传统IP网络通过提升端到端通信链路质量来减少通信延时和通信中断等问题,命名数据网络的通信模式更关注如何更快地得到内容信息,而非从哪里得到。其中,在NDN网络中的各存储节点对网络测量数据进行缓存,可以及时对网络进行监视,从而提高NDN网络的可用性。但是通过现有的NDN网络测量数据缓存方法,会导致NDN网络测量数据缓存效率比较低。因此,为解决NDN网络测量数据缓存效率的问题,本发明提出NDN网络测量数据缓存方法,能够以网络存储节点的关联关系对NDN网络的缓存策略进行优化,进一步提高网络测量数据的缓存效率。具体方案如下:With the development of mobile wireless networks and the popularization of portable mobile devices, people's demands on wireless networks are not only satisfied with end-to-end communication. Today, content-centric communication models are becoming more and more popular. Named data network originated from a branch of content-centric network. Unlike traditional IP network, which reduces communication delay and communication interruption by improving the quality of end-to-end communication links, the communication mode of named data network focuses more on how to get content information, not where to get it. Among them, each storage node in the NDN network caches the network measurement data, which can monitor the network in time, thereby improving the availability of the NDN network. However, through the existing NDN network measurement data caching method, the NDN network measurement data caching efficiency is relatively low. Therefore, in order to solve the problem of NDN network measurement data caching efficiency, the present invention proposes a NDN network measurement data caching method, which can optimize the NDN network caching strategy based on the association relationship of network storage nodes, and further improve the network measurement data caching efficiency. The specific plans are as follows:

参见图1,图1为本发明实施例提供的一种NDN网络测量数据缓存方法的第一种流程示意图,包括如下步骤:Referring to FIG. 1, FIG. 1 is a first schematic flowchart of a NDN network measurement data caching method according to an embodiment of the present invention, including the following steps:

S101,获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,其中,所述基础结构元数据表示存储节点的静态特征,所述功能结构元数据表示存储节点的动态特征。S101. Acquire basic structure metadata and functional structure metadata of each storage node of the NDN network, where the basic structure metadata represents static features of the storage nodes, and the functional structure metadata represents dynamic features of the storage nodes.

具体的,在NDN网络中,网络数据主要来源于各节点部署客户端采集的本地检测数据,网络数据包括但不限于网络性能数据、节点性能数据、传输控制数据、节点传输内容、网络日志信息等。这些网络数据可以划分为基本元数据、技术性元数据、结构性元数据、保存性元数据、溯源性元数据、管理性元数据及过程性元数据。其中,基本元数据表示存储节点的数据本身的静态特征描述,技术性元数据表示存储节点的技术性参数描述,结构性元数据表示存储节点的所属关系,保存性元数据表示基本元数据的版本特征,及围绕版本的环境特征描述,溯源元数据表示记录网络数据在使用过程中的上下文描述及环境描述,管理性元数据表示在网络数据中的管理动作或者操作描述,过程性元数据表示在网络数据的处理过程所产生的变化信息描述。Specifically, in an NDN network, network data mainly comes from local detection data collected by each node deploying clients, including but not limited to network performance data, node performance data, transmission control data, node transmission content, network log information, etc. . These network data can be divided into basic metadata, technical metadata, structural metadata, preservation metadata, traceability metadata, management metadata and process metadata. Among them, the basic metadata represents the static feature description of the data itself of the storage node, the technical metadata represents the technical parameter description of the storage node, the structural metadata represents the affiliation of the storage node, and the preservation metadata represents the version feature of the basic metadata. And the description of the environment features around the version, the traceability metadata represents the context description and environment description of the recorded network data in the use process, the management metadata represents the management action or operation description in the network data, and the procedural metadata represents the network data. A description of the change information generated by the processing process.

将这些网络数据预先进行分类,将能够表示存储节点的静态特征的基本元数据、技术性元数据及结构性元数据作为基础结构元数据,将能够表示存储节点的动态特征的保存性元数据、溯源性元数据、管理性元数据及过程性元数据作为功能结构元数据,即将网络数据分为基础结构元数据和功能结构元数据。These network data are classified in advance, and the basic metadata, technical metadata and structural metadata that can represent the static characteristics of storage nodes are used as basic structural metadata, and the dynamic characteristics of storage nodes can be represented. Preservation metadata, traceability Functional metadata, administrative metadata and procedural metadata are regarded as functional structure metadata, that is, network data is divided into basic structure metadata and functional structure metadata.

S102,针对所述各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系。S102, for every two storage nodes in the storage nodes, based on the functional structure metadata of the two storage nodes and the basic structure metadata of the two storage nodes, determine that there is a relationship between the two storage nodes association relationship.

具体的,各存储节点中的每两个存储节点是否存在关联关系,是通过这两个存储节点中的基础结构元数据和功能结构元数据来确定的,例如,这两个存储节点中的一个基础结构元数据发生响应与另一个基础结构元数据发生响应相关,可以是同时响应,也可以是依次响应,其中,响应是通过功能结构元数据触发的。这里,通过确定每两个存储节点之间存在的关联关系,可以得到每个存储节点与其他存储节点之间的关联关系,避免重复确定各存储节点之间的关联关系。Specifically, whether there is an association relationship between each two storage nodes in each storage node is determined by the basic structure metadata and functional structure metadata in the two storage nodes. For example, one of the two storage nodes The infrastructure metadata occurrence response is related to another infrastructure metadata occurrence response, which may be a simultaneous response or a sequential response, wherein the response is triggered by the functional structure metadata. Here, by determining the association relationship existing between every two storage nodes, the association relationship between each storage node and other storage nodes can be obtained, so as to avoid repeatedly determining the association relationship between the storage nodes.

S103,基于所述各存储节点之间的关联关系,构建所述各存储节点之间的网络关系拓扑图。S103. Based on the association relationship between the storage nodes, construct a network relationship topology map between the storage nodes.

具体的,网络关系拓扑图中包括了各存储节点及各存储节点相连接的边,这里的边或者线条表示各存储节点之间的关联关系,可以将具有关联关系的各存储节点之间用线条连接起来,形成具有关联关系的边,这样,通过这些存储节点和这些边就形成了网络关系拓扑图。这里,将各存储节点之间的关联关系用网络关系拓扑图来反映,可以直观、方便的得到各存储节点与其他存储节点的关联关系。Specifically, the network relationship topology diagram includes each storage node and the edge connected to each storage node. The edge or line here represents the association relationship between the storage nodes. You can use lines between the storage nodes with the association relationship. They are connected to form edges with associated relationships, so that through these storage nodes and these edges, a network relationship topology graph is formed. Here, the relationship between each storage node is reflected by a network relationship topology diagram, so that the relationship between each storage node and other storage nodes can be obtained intuitively and conveniently.

S104,基于所述网络关系拓扑图,计算所述各存储节点中每个存储节点与其他存储节点之间的关联度。S104, based on the network relationship topology map, calculate the degree of association between each of the storage nodes and other storage nodes.

具体的,关联度表示各存储节点中每个存储节点与其他存储节点的关联程度,即与一个存储节点具有关联关系的其他存储节点越多,该存储节点的关联度越大。因此,在网络关系拓扑图中,计算各存储节点中每个存储节点与其他存储节点之间具有关联关系的个数,可以得到各存储节点中每个存储节点与其他存储节点之间的关联度,也可以通过计算各存储节点中每个存储节点与其他存储节点之间的具有关联关系的边的条数或者线条的个数。这里,通过计算每个存储节点与其他存储节点之间的关联度,可以快速的判断出各存储节点的重要程度。Specifically, the association degree represents the association degree of each storage node in each storage node with other storage nodes, that is, the more other storage nodes have an association relationship with a storage node, the greater the association degree of the storage node. Therefore, in the network relationship topology diagram, by calculating the number of associations between each storage node and other storage nodes in each storage node, the degree of association between each storage node and other storage nodes in each storage node can be obtained. , or by calculating the number of edges or the number of lines that have an associated relationship between each storage node in each storage node and other storage nodes. Here, by calculating the degree of association between each storage node and other storage nodes, the importance of each storage node can be quickly determined.

S105,基于所述关联度,确定所述各存储节点中每个存储节点是否为关键网络节点,并在所述关键网络节点缓存网络测量数据。S105, based on the correlation degree, determine whether each storage node in the storage nodes is a key network node, and cache network measurement data at the key network node.

具体的,关联度表示了与一个存储节点具有关联关系的其他存储节点的多少,具有关联关系的其他存储节点越多,则该存储节点的关联度越大,该存储节点越是关键网络节点。同样,具有关联关系的其他存储节点越少,则该存储节点的关联度越小,该存储节点为是非关键网络节点。当确定了关键网络节点之后,就可以在关键网络节点缓存网络测量数据,从而可以通过网络测量数据对关键网络节点进行网络监视,及优化NDN网络,进而提高了NDN网络测量数据的缓存效率。Specifically, the association degree indicates the number of other storage nodes that have an association relationship with a storage node. The more other storage nodes that have an association relationship, the greater the association degree of the storage node, and the more critical network node the storage node is. Likewise, the fewer other storage nodes that have an association relationship, the smaller the association degree of the storage node is, and the storage node is a non-critical network node. After the key network nodes are determined, the network measurement data can be cached at the key network nodes, so that the network monitoring of the key network nodes can be performed through the network measurement data, and the NDN network can be optimized, thereby improving the caching efficiency of the NDN network measurement data.

由此可见,本发明实施例提供的一种NDN网络测量数据缓存方法,先获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,然后针对各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系,再基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图,并基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度;最后基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,并在关键网络节点缓存网络测量数据。这种通过将网络数据中的基础结构元数据和功能结构元数据进行关联,得到各存储节点与其他存储节点之间的关联度,从而根据关联度确定各存储节点中的关键网络节点,以使网络测量数据存储到关键网络节点中,对关键网络节点进行网络监视,及优化NDN网络,从而提高了NDN网络测量数据的缓存效率。It can be seen that, in a method for caching measurement data of an NDN network provided by an embodiment of the present invention, the basic structure metadata and functional structure metadata of each storage node of the NDN network are first obtained, and then each two storage nodes in each storage node are , based on the functional structure metadata of the two storage nodes and the basic structure metadata in the two storage nodes, determine the association relationship between the two storage nodes, and then based on the association relationship between the storage nodes, Build a network relationship topology map between each storage node, and based on the network relationship topology map, calculate the correlation degree between each storage node in each storage node and other storage nodes; finally, based on the correlation degree, determine each storage node in each storage node. Whether the storage node is a key network node, and the network measurement data is cached at the key network node. By correlating the basic structure metadata and functional structure metadata in the network data, the degree of correlation between each storage node and other storage nodes is obtained, and the key network nodes in each storage node are determined according to the degree of correlation, so that the The network measurement data is stored in the key network nodes, network monitoring is performed on the key network nodes, and the NDN network is optimized, thereby improving the caching efficiency of the NDN network measurement data.

在本发明实施例中,在获取NDN网络的各存储节点的基础结构元数据和功能结构元数据之后,还可以将基础结构元数据和功能结构元数据存储到元数据池中。In this embodiment of the present invention, after acquiring the basic structure metadata and functional structure metadata of each storage node of the NDN network, the basic structure metadata and the functional structure metadata may also be stored in a metadata pool.

这里,元数据池用于缓存各类型的元数据,将基础结构元数据和功能结构元数据存储到元数据池中,实现了数据的快速存取。Here, the metadata pool is used to cache various types of metadata, and store the basic structure metadata and functional structure metadata in the metadata pool to realize fast data access.

在本发明一个可选的实施例中,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系,具体可以为以下四种情况:In an optional embodiment of the present invention, based on the functional structure metadata of the two storage nodes and the basic structure metadata in the two storage nodes, the association relationship existing between the two storage nodes is determined, specifically It can be the following four situations:

第一种情况,当该两个存储节点中一个存储节点的基础结构元数据发生响应后,将通过该存储节点的功能结构元数据触发另一个存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在顺序关系。In the first case, after the infrastructure metadata of one of the two storage nodes responds, the functional structure metadata of the storage node will trigger the response of the infrastructure metadata of the other storage node. There is a sequential relationship between the two storage nodes.

具体的,顺序关系指在一个流程中不同的基础结构元数据由一定的顺序规则串联在一起,其中一种基础结构元数据发生响应后,通过一种功能结构元数据会触发下一种基础结构元数据响应。这里,确定两个节点之间的基础结构元数据是否存在顺序关系,当两个存储节点是按照顺序进行响应的,则这两个存储节点之间存在顺序关系。Specifically, the sequence relationship refers to the connection of different infrastructure metadata in a process by certain sequence rules. After one type of infrastructure metadata responds, the next type of infrastructure is triggered through a functional structure metadata. Metadata response. Here, it is determined whether there is an order relationship between the basic structure metadata between the two nodes. When the two storage nodes respond in order, there is an order relationship between the two storage nodes.

第二种情况,当该两个存储节点的基础结构元数据同时发生响应后,将通过该两个存储节点中一个存储节点的功能结构元数据触发该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在并行关系。In the second case, when the basic structure metadata of the two storage nodes respond at the same time, the functional structure metadata of one of the two storage nodes will trigger the other storage nodes except the two storage nodes. When the infrastructure metadata responds, it is determined that there is a parallel relationship between the two storage nodes.

具体的,并行关系指在一个流程中不同的基础结构元数据需要同时发生响应才会触发下一种基础结构元数据响应,同时响应的过程与触发过程由功能结构元数据响应。这里,确定两个节点之间是否存在并行关系,当这两个存储节点的基础结构元数据同时发生响应时,如果能触发其他节点的基础结构元数据进行响应,则这两个存储节点之间存在并行关系。Specifically, the parallel relationship means that in a process, different infrastructure metadata needs to respond at the same time to trigger the next infrastructure metadata response, and the response process and triggering process are responded by the functional structure metadata. Here, it is determined whether there is a parallel relationship between the two nodes. When the infrastructure metadata of the two storage nodes responds at the same time, if the infrastructure metadata of other nodes can be triggered to respond, the two storage nodes will There is a parallel relationship.

第三种情况,当该两个存储节点的基础结构元数据都发生响应后,将通过该两个存储节点中一个存储节点的功能结构元数据以预设的概率触发该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在条件关系。In the third case, when both the basic structure metadata of the two storage nodes respond, the function structure metadata of one storage node in the two storage nodes will trigger a trigger outside the two storage nodes with a preset probability. When the infrastructure metadata of the other storage nodes responds, it is determined that there is a conditional relationship between the two storage nodes.

具体的,条件关系指在一个流程中多种基础元数据响应的情况下,会有一定的概率触发多种基础结构元数据分别响应,期间的响应动作由功能结构元数据关联。这里,确定这两个存储节点之间是否存在条件关系,当这两个存储节点的基础结构元数据都发生响应后,如果能以预设的概率触发这两个存储节点之外的其他存储节点的基础结构元数据发生响应,则这两个存储节点之间存在条件关系。Specifically, the conditional relationship means that in the case of multiple basic metadata responses in a process, there is a certain probability that multiple basic structure metadata will be triggered to respond respectively, and the response actions during the period are associated with the functional structure metadata. Here, it is determined whether there is a conditional relationship between the two storage nodes. After the infrastructure metadata of the two storage nodes responds, if other storage nodes other than the two storage nodes can be triggered with a preset probability response to the infrastructure metadata, there is a conditional relationship between the two storage nodes.

第四种情况,当该两个存储节点中一个存储节点的基础结构元数据发生响应后,将通过该存储节点的功能结构元数据触发另一个存储节点的基础结构元数据和该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在分支关系。In the fourth case, after the infrastructure metadata of one storage node of the two storage nodes responds, the infrastructure metadata of the other storage node and the two storage nodes will be triggered through the functional structure metadata of the storage node. When the infrastructure metadata of other storage nodes responds, it is determined that there is a branch relationship between the two storage nodes.

具体的,分支关系指在一个流程中当触发一种基础结构元数据响应的情况下,会触发多种基础结构元数据响应,期间的响应动作由功能结构元数据关联。这里,确定这两个存储节点之间是否存在分支关系,当这两个存储节点之间的其中一种基础结构元数据响应时,如果能触发另一个存储节点的基础结构元数据和这两个存储节点之外的其他存储节点的基础结构元数据发生响应,则这两个存储节点之间存在分支关系。Specifically, the branch relationship means that when one type of infrastructure metadata response is triggered in a process, multiple infrastructure metadata responses will be triggered, and the response actions during the period are associated with the functional structure metadata. Here, it is determined whether there is a branch relationship between the two storage nodes. When one of the infrastructure metadata between the two storage nodes responds, if the infrastructure metadata of the other storage node and the two storage nodes can be triggered. If the infrastructure metadata of other storage nodes other than the storage node responds, there is a branch relationship between the two storage nodes.

在本发明一个可选的实施例中,基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图,具体可以为:In an optional embodiment of the present invention, based on the association relationship between the storage nodes, a topology map of the network relationship between the storage nodes is constructed, which may specifically be:

将各存储节点之间至少存在顺序关系、并行关系、条件关系、分支关系中的一种关联关系的存储节点相连接,得到各存储节点之间的网络关系拓扑图。The storage nodes that have at least one of the sequence relationship, the parallel relationship, the conditional relationship, and the branch relationship between the storage nodes are connected to obtain a network relationship topology diagram between the storage nodes.

具体的,先判断各存储节点之间是否存在顺序关系、并行关系、条件关系、分支关系中的一种关联关系,如果存在,则将有关联关键的各存储节点相连接,得到包括各存储节点及各存储节点相连接的边的网络关系拓扑图。这里,通过网络关系拓扑图更方便计算各存储节点中每个存储节点与其他存储节点之间的关联度。Specifically, first determine whether there is an association relationship among the sequence relationship, parallel relationship, conditional relationship, and branch relationship between the storage nodes. and the network relationship topology diagram of the edges connected to each storage node. Here, it is more convenient to calculate the degree of association between each storage node and other storage nodes in each storage node through the network relationship topology diagram.

在本发明一个可选的实施例中,基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度,具体可以为:In an optional embodiment of the present invention, based on the network relationship topology diagram, the degree of association between each storage node in each storage node and other storage nodes is calculated, which may be specifically:

第一步,基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间存在关联关系的存储节点的个数。The first step is to calculate the number of storage nodes that have an association relationship between each storage node and other storage nodes in each storage node based on the network relationship topology diagram.

具体的,在网络关系拓扑图中,如果一个存储节点与其他节点之间存在关联关系,则该存储节点与其他节点之间可以通过线条相连接,计算该存储节点与其他存储节点之间存在关联关系的存储节点的个数,可以通过计算该存储节点与其他存储节点之间的连线的个数得到。所连接的线条的个数越多,表明与该存储节点具有关联关系的其他存储节点的个数越多,也表明该存储节点越重要。Specifically, in the network relationship topology diagram, if there is an association relationship between a storage node and other nodes, the storage node and other nodes can be connected by lines, and it is calculated that there is an association between the storage node and other storage nodes The number of storage nodes of the relationship can be obtained by calculating the number of connections between the storage node and other storage nodes. The greater the number of connected lines, the greater the number of other storage nodes associated with the storage node, and the more important the storage node is.

第二步,根据存储节点的个数,确定各存储节点中每个存储节点与其他存储节点之间的关联度。In the second step, according to the number of storage nodes, the degree of association between each storage node in each storage node and other storage nodes is determined.

具体的,在计算各存储节点中每个存储节点与其他存储节点之间存在关联关系的存储节点的个数后,将存储节点的个数作为各存储节点中每个存储节点与其他存储节点之间的关联度的大小,存储节点的个数越多,则存储节点与其他存储节点之间的关联度越大,存储节点越重要。Specifically, after calculating the number of storage nodes that have an association relationship between each storage node and other storage nodes in each storage node, the number of storage nodes is taken as the difference between each storage node and other storage nodes in each storage node. The greater the number of storage nodes, the greater the degree of association between the storage node and other storage nodes, and the more important the storage node is.

在本发明一个可选的实施例中,基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,具体可以为将关联度大于预设阈值的存储节点作为NDN网络的关键网络节点。In an optional embodiment of the present invention, whether each storage node in each storage node is a key network node is determined based on the degree of association, and specifically, the storage node with the degree of association greater than a preset threshold may be used as the key network node of the NDN network .

这里,该存储节点与其他存储节点的关联度越大,则表明该存储节点比较重要,即该存储节点的基础结构元数据发生响应时,会引起更多其他存储节点的基础结构元数据发生响应,或者,其他存储节点的基础结构元数据发生响应时,也会引起该存储节点的基础结构元数据发生响应。根据实际需求,将关联度大于预设阈值的存储节点作为NDN网络的关键网络节点,进而可以将网络测量数据存储到关键网络节点中,对关键网络节点进行网络监视,及优化NDN网络,从而提高了NDN网络测量数据的缓存效率。Here, the greater the degree of association between the storage node and other storage nodes, the more important the storage node is, that is, when the infrastructure metadata of the storage node responds, more infrastructure metadata of other storage nodes will respond. , or, when the infrastructure metadata of other storage nodes responds, the infrastructure metadata of this storage node will also respond. According to the actual demand, the storage node with the correlation degree greater than the preset threshold is used as the key network node of the NDN network, and then the network measurement data can be stored in the key network node, the network monitoring of the key network node can be performed, and the NDN network can be optimized. The cache efficiency of NDN network measurement data.

参见图2,图2为本发明实施例提供的一种NDN网络测量数据缓存方法的第二种流程示意图,包括如下步骤:Referring to FIG. 2, FIG. 2 is a second schematic flowchart of a NDN network measurement data caching method according to an embodiment of the present invention, including the following steps:

S201,采集命名数据网络节点数据。S201, collecting named data network node data.

具体的,通过测量采集器所采集命名数据网络中的网络数据,即网络节点数据,主要包括网络状态数据与传输内容数据。Specifically, the network data in the named data network collected by the measurement collector, that is, the network node data, mainly includes network status data and transmission content data.

S202,基础结构元数据存储。S202, basic structure metadata storage.

这里,将所识别的元数据进行分类,得到够表示存储节点的静态特征的基本元数据、技术性元数据及结构性元数据作为基础结构元数据。Here, the identified metadata is classified, and basic metadata, technical metadata, and structural metadata capable of representing the static characteristics of the storage node are obtained as basic structural metadata.

S203,功能结构元数据存储。S203, the function structure metadata is stored.

这里,对所识别的元数据进行分类,得到将能够表示存储节点的动态特征的保存性元数据、溯源性元数据、管理性元数据及过程性元数据作为功能结构元数据。Here, the identified metadata is classified to obtain, as functional structure metadata, preservation metadata, traceability metadata, management metadata, and process metadata that can represent dynamic characteristics of storage nodes.

S204,区分关键网络节点和非关键网络节点。S204: Distinguish key network nodes and non-critical network nodes.

具体的,先通过各存储节点中的每两个存储节点的功能结构元数据和基础结构元数据,确定该两个存储节点之间存在的关联关系,然后利用各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图,再利用该网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度,最后根据关联度,确定各存储节点中每个存储节点是否为关键网络节点,并将关联度大于预设阈值的存储节点作为NDN网络的关键网络节点。Specifically, the functional structure metadata and the basic structure metadata of each two storage nodes in each storage node are used to determine the association relationship between the two storage nodes, and then the association relationship between the storage nodes is used to determine the relationship between the two storage nodes. Build a network relationship topology map between each storage node, and then use the network relationship topology map to calculate the correlation degree between each storage node in each storage node and other storage nodes, and finally determine each storage node according to the correlation degree. Whether each storage node is a key network node, and a storage node with an association degree greater than a preset threshold is regarded as a key network node of the NDN network.

S205,制定相应的缓存策略。S205, formulate a corresponding caching strategy.

根据关联度确定各存储节点中的关键网络节点和非关键网络节点,将关联度大于预设阈值的存储节点作为NDN网络的关键网络节点,以使将网络测量数据存储到关键网络节点中,实现对关键网络节点进行网络监视,及优化NDN网络,从而提高了NDN网络测量数据的缓存效率。Determine the key network nodes and non-critical network nodes in each storage node according to the correlation degree, and use the storage node with the correlation degree greater than the preset threshold as the key network node of the NDN network, so that the network measurement data can be stored in the key network nodes. Perform network monitoring on key network nodes and optimize the NDN network, thereby improving the caching efficiency of NDN network measurement data.

参见图3,图3为本发明实施例提供的一种NDN网络测量数据缓存方法的第三种流程示意图,包括如下步骤:Referring to FIG. 3, FIG. 3 is a third schematic flowchart of a method for caching NDN network measurement data according to an embodiment of the present invention, including the following steps:

S301,通过测量采集器集中采集网络状态数据与传输内容数据。S301, collect network state data and transmission content data centrally through a measurement collector.

这里,在NDN网络中,通过测量采集器所采集的网络数据主要包括网络状态数据与传输内容数据。Here, in the NDN network, the network data collected by the measurement collector mainly includes network status data and transmission content data.

S302,对采集数据进行数据鉴别。S302, perform data identification on the collected data.

具体的,对采集数据进行数据鉴别,识别出基本元数据、技术性元数据、结构性元数据、保存性元数据、溯源性元数据、管理性元数据及过程性元数据。Specifically, data identification is performed on the collected data to identify basic metadata, technical metadata, structural metadata, preservation metadata, traceability metadata, management metadata and process metadata.

S303,基础结构元数据。S303, infrastructure metadata.

具体的,对所识别的元数据进行分类,得到够表示存储节点的静态特征的基本元数据、技术性元数据及结构性元数据作为基础结构元数据。Specifically, the identified metadata is classified to obtain basic metadata, technical metadata and structural metadata capable of representing the static characteristics of the storage node as basic structural metadata.

S304,功能结构元数据.S304, Functional structure metadata.

对所识别的元数据进行分类,得到将能够表示存储节点的动态特征的保存性元数据、溯源性元数据、管理性元数据及过程性元数据作为功能结构元数据。The identified metadata is classified to obtain preservation metadata, traceability metadata, management metadata and process metadata that can represent the dynamic characteristics of the storage node as functional structure metadata.

S305,对基础结构元数据与功能结构元数据进行关联。S305, associate the basic structure metadata with the functional structure metadata.

具体的,通过各存储节点中的每两个存储节点的功能结构元数据和基础结构元数据,确定该两个存储节点之间存在的关联关系。Specifically, the association relationship existing between the two storage nodes is determined through the functional structure metadata and the basic structure metadata of each two storage nodes in each storage node.

S306,计算每条网络数据中的基础结构元数据与功能结构元数据之间的关联关系。S306: Calculate the association relationship between the basic structure metadata and the functional structure metadata in each piece of network data.

具体的,通过各存储节点的功能结构元数据和基础结构元数据,确定各存储节点之间存在的关联关系,。Specifically, the association relationship existing between the storage nodes is determined through the functional structure metadata and the basic structure metadata of each storage node.

S307,通过关联关系计算基础结构元数据与元数据池中两类元数据的关联度。S307: Calculate the degree of association between the basic structure metadata and the two types of metadata in the metadata pool through the association relationship.

S308,通过关联关系计算功能结构元数据与元数据池中两类元数据的关联度。S308: Calculate the degree of association between the functional structure metadata and the two types of metadata in the metadata pool through the association relationship.

具体的,S307和S308可以利用各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图,然后利用该网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度。Specifically, S307 and S308 may use the association relationship between the storage nodes to construct a network relationship topology map between the storage nodes, and then use the network relationship topology map to calculate the relationship between each storage node and other storage nodes in the storage nodes. correlation between.

S309,分辨关键网络节点和非关键网络节点。S309: Distinguish key network nodes and non-critical network nodes.

具体的,根据关联度,确定各存储节点中每个存储节点是否为关键网络节点,将关联度大于预设阈值的存储节点作为NDN网络的关键网络节点。Specifically, according to the association degree, it is determined whether each storage node in each storage node is a key network node, and a storage node with an association degree greater than a preset threshold is used as a key network node of the NDN network.

S310,根据关键网络节点和非关键网络节点设定相应的缓存策略。S310: Set a corresponding caching strategy according to the key network node and the non-critical network node.

具体的,在关键网络节点缓存网络测量数据。Specifically, network measurement data is cached at key network nodes.

参见图4,图4为本发明实施例提供的一种NDN网络测量数据缓存装置的结构示意图,包括如下模块:Referring to FIG. 4, FIG. 4 is a schematic structural diagram of an NDN network measurement data buffering device according to an embodiment of the present invention, including the following modules:

获取模块401,用于获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,其中,基础结构元数据表示存储节点的静态特征,功能结构元数据表示存储节点的动态特征;The obtaining module 401 is used to obtain the basic structure metadata and functional structure metadata of each storage node of the NDN network, wherein the basic structure metadata represents the static feature of the storage node, and the functional structure metadata represents the dynamic feature of the storage node;

第一确定模块402,用于针对各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系;The first determination module 402 is configured to, for every two storage nodes in each storage node, determine the two storage nodes based on the functional structure metadata of the two storage nodes and the infrastructure metadata of the two storage nodes The associations that exist between nodes;

构建模块403,用于基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图;The building module 403 is configured to build a network relationship topology diagram between the storage nodes based on the association relationship between the storage nodes;

计算模块404,用于基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度;A calculation module 404, configured to calculate the degree of association between each storage node and other storage nodes in each storage node based on the network relationship topology diagram;

第二确定模块405,用于基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,并在关键网络节点缓存网络测量数据。The second determining module 405 is configured to determine, based on the degree of association, whether each storage node in each storage node is a key network node, and cache network measurement data at the key network node.

由此可见,本发明实施例提供的一种NDN网络测量数据缓存装置,先通过获取模块获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,然后第一确定模块针对各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系,构建模块再基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图,并基于网络关系拓扑图,通过计算模块计算各存储节点中每个存储节点与其他存储节点之间的关联度;最后第二确定模块基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,并在关键网络节点缓存网络测量数据。这种通过将网络数据中的基础结构元数据和功能结构元数据进行关联,得到各存储节点与其他存储节点之间的关联度,从而根据关联度确定各存储节点中的关键网络节点,以使网络测量数据存储到关键网络节点中,对关键网络节点进行网络监视,及优化NDN网络,从而提高了NDN网络测量数据的缓存效率。It can be seen that, in the NDN network measurement data caching device provided by the embodiment of the present invention, the basic structure metadata and functional structure metadata of each storage node of the NDN network are first obtained by the obtaining module, and then the first determination module is used for each storage node. For each two storage nodes in the storage node, based on the functional structure metadata of the two storage nodes and the basic structure metadata of the two storage nodes, determine the association relationship existing between the two storage nodes, and the building module is based on The association relationship between each storage node, the network relationship topology map between the storage nodes is constructed, and based on the network relationship topology map, the calculation module calculates the association degree between each storage node in each storage node and other storage nodes; Finally, the second determining module determines whether each storage node in each storage node is a key network node based on the correlation degree, and caches the network measurement data at the key network node. By correlating the basic structure metadata and functional structure metadata in the network data, the degree of correlation between each storage node and other storage nodes is obtained, and the key network nodes in each storage node are determined according to the degree of correlation, so that the The network measurement data is stored in the key network nodes, network monitoring is performed on the key network nodes, and the NDN network is optimized, thereby improving the caching efficiency of the NDN network measurement data.

进一步的,所述装置还包括:Further, the device also includes:

存储模块,用于将基础结构元数据和功能结构元数据存储到元数据池中。A storage module for storing infrastructure metadata and functional structure metadata into the metadata pool.

进一步的,第一确定模块402,包括:Further, the first determining module 402 includes:

第一确定子模块,用于当该两个存储节点中一个存储节点的基础结构元数据发生响应后,将通过该存储节点的功能结构元数据触发另一个存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在顺序关系;The first determination submodule is used to trigger the response of the infrastructure metadata of another storage node through the functional structure metadata of the storage node after the infrastructure metadata of one storage node of the two storage nodes responds , it is determined that there is a sequential relationship between the two storage nodes;

第二确定子模块,用于当该两个存储节点的基础结构元数据同时发生响应后,将通过该两个存储节点中一个存储节点的功能结构元数据触发该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在并行关系;The second determination sub-module is used to trigger the other storage nodes except the two storage nodes through the functional structure metadata of one storage node in the two storage nodes after the two storage nodes respond simultaneously. When the infrastructure metadata of the storage node responds, it is determined that there is a parallel relationship between the two storage nodes;

第三确定子模块,用于当该两个存储节点的基础结构元数据都发生响应后,将通过该两个存储节点中一个存储节点的功能结构元数据以预设的概率触发该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在条件关系;The third determination sub-module is configured to trigger the two storage nodes with a preset probability through the functional structure metadata of one of the two storage nodes after the basic structure metadata of the two storage nodes responds When the infrastructure metadata of other storage nodes other than the node responds, it is determined that there is a conditional relationship between the two storage nodes;

第四确定子模块,用于当该两个存储节点中一个存储节点的基础结构元数据发生响应后,将通过该存储节点的功能结构元数据触发另一个存储节点的基础结构元数据和该两个存储节点之外的其他存储节点的基础结构元数据发生响应时,确定该两个存储节点之间存在分支关系。The fourth determination sub-module is used to trigger the basic structure metadata of the other storage node and the two storage nodes through the functional structure metadata of the storage node after the response of the basic structure metadata of one of the two storage nodes. When the infrastructure metadata of other storage nodes other than one storage node responds, it is determined that there is a branch relationship between the two storage nodes.

进一步的,构建模块403,具体用于:Further, the building module 403 is specifically used for:

将各存储节点之间至少存在顺序关系、并行关系、条件关系、分支关系中的一种关联关系的存储节点相连接,得到各存储节点之间的网络关系拓扑图。The storage nodes that have at least one of the sequence relationship, the parallel relationship, the conditional relationship, and the branch relationship between the storage nodes are connected to obtain a network relationship topology diagram between the storage nodes.

进一步的,计算模块404,包括:Further, the computing module 404 includes:

计算子模块,用于基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间存在关联关系的存储节点的个数;The calculation sub-module is used to calculate the number of storage nodes that have an association relationship between each storage node and other storage nodes in each storage node based on the network relationship topology map;

第五确定子模块,用于根据存储节点的个数,确定各存储节点中每个存储节点与其他存储节点之间的关联度。The fifth determination sub-module is used for determining the degree of association between each storage node in each storage node and other storage nodes according to the number of storage nodes.

进一步的,第二确定模块405,具体用于:Further, the second determination module 405 is specifically used for:

将关联度大于预设阈值的存储节点作为NDN网络的关键网络节点。The storage node with the correlation degree greater than the preset threshold is regarded as the key network node of the NDN network.

本发明实施例还提供了一种电子设备,如图5所示,包括处理器501、通信接口502、存储器503和通信总线504,其中,处理器501,通信接口502,存储器503通过通信总线504完成相互间的通信,An embodiment of the present invention further provides an electronic device, as shown in FIG. 5 , including a processor 501 , a communication interface 502 , a memory 503 and a communication bus 504 , wherein the processor 501 , the communication interface 502 , and the memory 503 pass through the communication bus 504 complete communication with each other,

存储器503,用于存放计算机程序;a memory 503 for storing computer programs;

处理器501,用于执行存储器503上所存放的程序时,实现如下步骤:When the processor 501 is used to execute the program stored in the memory 503, the following steps are implemented:

获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,其中,基础结构元数据表示存储节点的静态特征,功能结构元数据表示存储节点的动态特征;Obtain the basic structure metadata and functional structure metadata of each storage node of the NDN network, wherein the basic structure metadata represents the static characteristics of the storage node, and the functional structure metadata represents the dynamic characteristics of the storage node;

针对各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系;For every two storage nodes in each storage node, based on the functional structure metadata of the two storage nodes and the basic structure metadata of the two storage nodes, determine the association relationship existing between the two storage nodes;

基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图;Based on the association relationship between the storage nodes, construct a topology map of the network relationship between the storage nodes;

基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度;Calculate the degree of association between each storage node and other storage nodes in each storage node based on the network relationship topology diagram;

基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,并在关键网络节点缓存网络测量数据。Based on the association degree, it is determined whether each storage node in each storage node is a key network node, and network measurement data is cached at the key network node.

上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.

存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

由此可见,通过本发明实施例提供的一种电子设备,先获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,然后针对各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系,再基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图,并基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度;最后基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,并在关键网络节点缓存网络测量数据。这种通过将网络数据中的基础结构元数据和功能结构元数据进行关联,得到各存储节点与其他存储节点之间的关联度,从而根据关联度确定各存储节点中的关键网络节点,以使网络测量数据存储到关键网络节点中,对关键网络节点进行网络监视,及优化NDN网络,从而提高了NDN网络测量数据的缓存效率。It can be seen that, through the electronic device provided by the embodiment of the present invention, the basic structure metadata and functional structure metadata of each storage node of the NDN network are first obtained, and then for every two storage nodes in each storage node, based on the The functional structure metadata of the two storage nodes, and the basic structure metadata in the two storage nodes, determine the association relationship between the two storage nodes, and then construct each storage node based on the association relationship between the storage nodes. The network relationship topology map between nodes, and based on the network relationship topology map, calculate the correlation degree between each storage node in each storage node and other storage nodes; finally, based on the correlation degree, determine whether each storage node in each storage node is Network measurement data is cached for and at key network nodes. By correlating the basic structure metadata and functional structure metadata in the network data, the degree of correlation between each storage node and other storage nodes is obtained, and the key network nodes in each storage node are determined according to the degree of correlation, so that the The network measurement data is stored in the key network nodes, network monitoring is performed on the key network nodes, and the NDN network is optimized, thereby improving the caching efficiency of the NDN network measurement data.

在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中任一所述的一种NDN网络测量数据缓存方法。其中,所述的一种NDN网络测量数据缓存方法包括:In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, where instructions are stored in the computer-readable storage medium, when the computer-readable storage medium is run on a computer, the computer is made to execute any one of the above-mentioned embodiments. The described NDN network measurement data caching method. Wherein, the described NDN network measurement data caching method includes:

获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,其中,基础结构元数据表示存储节点的静态特征,功能结构元数据表示存储节点的动态特征;Obtain the basic structure metadata and functional structure metadata of each storage node of the NDN network, wherein the basic structure metadata represents the static characteristics of the storage node, and the functional structure metadata represents the dynamic characteristics of the storage node;

针对各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系;For every two storage nodes in each storage node, based on the functional structure metadata of the two storage nodes and the basic structure metadata of the two storage nodes, determine the association relationship existing between the two storage nodes;

基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图;Based on the association relationship between the storage nodes, construct a topology map of the network relationship between the storage nodes;

基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度;Calculate the degree of association between each storage node and other storage nodes in each storage node based on the network relationship topology diagram;

基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,并在关键网络节点缓存网络测量数据。Based on the association degree, it is determined whether each storage node in each storage node is a key network node, and network measurement data is cached at the key network node.

由此可见,通过本发明实施例提供的一种计算机可读存储介质,先获取NDN网络的各存储节点的基础结构元数据和功能结构元数据,然后针对各存储节点中的每两个存储节点,基于该两个存储节点的功能结构元数据,以及该两个存储节点中的基础结构元数据,确定该两个存储节点之间存在的关联关系,再基于各存储节点之间的关联关系,构建各存储节点之间的网络关系拓扑图,并基于网络关系拓扑图,计算各存储节点中每个存储节点与其他存储节点之间的关联度;最后基于关联度,确定各存储节点中每个存储节点是否为关键网络节点,并在关键网络节点缓存网络测量数据。这种通过将网络数据中的基础结构元数据和功能结构元数据进行关联,得到各存储节点与其他存储节点之间的关联度,从而根据关联度确定各存储节点中的关键网络节点,以使网络测量数据存储到关键网络节点中,对关键网络节点进行网络监视,及优化NDN网络,从而提高了NDN网络测量数据的缓存效率。It can be seen that, through the computer-readable storage medium provided by the embodiment of the present invention, the basic structure metadata and the functional structure metadata of each storage node of the NDN network are obtained first, and then the basic structure metadata and the functional structure metadata of each storage node in the NDN network are obtained, and then the , based on the functional structure metadata of the two storage nodes and the basic structure metadata in the two storage nodes, determine the association relationship between the two storage nodes, and then based on the association relationship between the storage nodes, Build a network relationship topology map between each storage node, and based on the network relationship topology map, calculate the correlation degree between each storage node in each storage node and other storage nodes; finally, based on the correlation degree, determine each storage node in each storage node. Whether the storage node is a key network node, and the network measurement data is cached at the key network node. By correlating the basic structure metadata and functional structure metadata in the network data, the degree of correlation between each storage node and other storage nodes is obtained, and the key network nodes in each storage node are determined according to the degree of correlation, so that the The network measurement data is stored in the key network nodes, network monitoring is performed on the key network nodes, and the NDN network is optimized, thereby improving the caching efficiency of the NDN network measurement data.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, electronic equipment, and computer-readable storage medium, since they are basically similar to the method embodiments, the description is relatively simple.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (9)

1. A method for caching NDN network measurement data is characterized by comprising the following steps:
acquiring basic structure metadata and functional structure metadata of each storage node of an NDN (named data networking) network, wherein the basic structure metadata represent static characteristics of the storage nodes, and the functional structure metadata represent dynamic characteristics of the storage nodes;
for every two storage nodes in the storage nodes, determining an association relation existing between the two storage nodes based on the functional structure metadata of the two storage nodes and the basic structure metadata in the two storage nodes;
constructing a network relationship topological graph among the storage nodes based on the incidence relationship among the storage nodes;
calculating the association degree between each storage node and other storage nodes in each storage node based on the network relationship topological graph;
determining whether each storage node in the storage nodes is a key network node or not based on the association degree, and caching network measurement data in the key network node;
the determining the association relationship existing between the two storage nodes based on the functional structure metadata of the two storage nodes and the infrastructure structure metadata of the two storage nodes includes:
when the basic structure metadata of one storage node in the two storage nodes responds, triggering the basic structure metadata of the other storage node to respond through the functional structure metadata of the storage node, and determining that a sequential relationship exists between the two storage nodes;
when the basic structure metadata of the two storage nodes simultaneously respond, triggering the basic structure metadata of other storage nodes except the two storage nodes to respond through the functional structure metadata of one storage node of the two storage nodes, and determining that the two storage nodes have a parallel relationship;
when the basic structure metadata of the two storage nodes both respond, triggering the basic structure metadata of other storage nodes except the two storage nodes to respond according to the preset probability through the functional structure metadata of one storage node in the two storage nodes, and determining that a condition relation exists between the two storage nodes;
when the basic structure metadata of one storage node in the two storage nodes responds, the basic structure metadata of the other storage node and the basic structure metadata of other storage nodes except the two storage nodes are triggered to respond through the functional structure metadata of the storage node, and the existence of the branch relationship between the two storage nodes is determined.
2. The method of claim 1, wherein after obtaining infrastructure metadata and functional structure metadata for each storage node of the NDN network, the method further comprises:
storing the infrastructure metadata and the functional structure metadata into a metadata pool.
3. The method according to claim 1, wherein the constructing a network relationship topological graph between the storage nodes based on the association relationship between the storage nodes comprises:
and connecting the storage nodes at least having one incidence relation among the sequence relation, the parallel relation, the conditional relation and the branch relation among the storage nodes to obtain a network relation topological graph among the storage nodes.
4. The method according to claim 1, wherein the calculating the association degree between each storage node and other storage nodes based on the network relationship topological graph comprises:
based on the network relationship topological graph, calculating the number of storage nodes with association relationship between each storage node and other storage nodes in each storage node;
and determining the association degree between each storage node and other storage nodes in each storage node according to the number of the storage nodes.
5. The method of claim 1, wherein determining whether each of the storage nodes is a key network node based on the association comprises:
and taking the storage node with the relevance larger than a preset threshold value as a key network node of the NDN.
6. An NDN network measurement data caching apparatus, the apparatus comprising:
the NDN network comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring basic structure metadata and functional structure metadata of each storage node of the NDN network, the basic structure metadata represents static characteristics of the storage nodes, and the functional structure metadata represents dynamic characteristics of the storage nodes;
a first determining module, configured to determine, for each two storage nodes in the storage nodes, an association relationship existing between the two storage nodes based on functional structure metadata of the two storage nodes and infrastructure structure metadata in the two storage nodes;
the building module is used for building a network relationship topological graph among the storage nodes based on the incidence relationship among the storage nodes;
the computing module is used for computing the association degree between each storage node and other storage nodes in each storage node based on the network relation topological graph;
a second determining module, configured to determine, based on the association degree, whether each storage node in the storage nodes is a key network node, and cache network measurement data in the key network node;
the first determining module includes:
the first determining submodule is used for determining that a sequential relationship exists between the two storage nodes when the basic structure metadata of one storage node in the two storage nodes responds and the basic structure metadata of the other storage node responds by triggering the functional structure metadata of the storage node;
the second determining submodule is used for determining that the two storage nodes have a parallel relation when the basic structure metadata of one of the two storage nodes triggers the basic structure metadata of other storage nodes except the two storage nodes to respond through the functional structure metadata of the storage node after the basic structure metadata of the two storage nodes respond simultaneously;
the third determining submodule is used for determining that a condition relation exists between the two storage nodes when the basic structure metadata of the two storage nodes respond and the basic structure metadata of other storage nodes except the two storage nodes are triggered to respond according to the functional structure metadata of one storage node in the two storage nodes by a preset probability;
and the fourth determining submodule is used for determining that a branch relationship exists between the two storage nodes when the basic structure metadata of one storage node in the two storage nodes responds and the basic structure metadata of the other storage node is triggered to respond through the functional structure metadata of the storage node and the basic structure metadata of the other storage nodes except the two storage nodes.
7. The apparatus of claim 6, further comprising:
and the storage module is used for storing the basic structure metadata and the functional structure metadata into a metadata pool.
8. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-5.
9. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN201710905444.3A 2017-09-29 2017-09-29 NDN network measurement data caching method and device, electronic equipment and storage medium Active CN107659653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710905444.3A CN107659653B (en) 2017-09-29 2017-09-29 NDN network measurement data caching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710905444.3A CN107659653B (en) 2017-09-29 2017-09-29 NDN network measurement data caching method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107659653A CN107659653A (en) 2018-02-02
CN107659653B true CN107659653B (en) 2020-09-25

Family

ID=61116726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710905444.3A Active CN107659653B (en) 2017-09-29 2017-09-29 NDN network measurement data caching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107659653B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019252A (en) * 2019-04-16 2019-07-16 成都四方伟业软件股份有限公司 The method, apparatus and electronic equipment of information processing
CN113824643B (en) * 2021-11-25 2022-02-22 中国科学院信息工程研究所 Ubiquitous network topological graph construction method and network security protection method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179037A (en) * 2012-12-13 2013-06-26 清华大学 Data transmission method for content-based data center network
CN103281336A (en) * 2013-06-19 2013-09-04 上海众恒信息产业股份有限公司 Network intrusion detection method
CN103906271A (en) * 2014-04-21 2014-07-02 西安电子科技大学 Method for measuring key nodes in Ad Hoc network
CN106294156A (en) * 2016-08-11 2017-01-04 北京邮电大学 A kind of static code fault detection analysis method and device
CN106982248A (en) * 2017-03-01 2017-07-25 中国科学院深圳先进技术研究院 The caching method and device of a kind of content center network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716180B2 (en) * 2005-12-29 2010-05-11 Amazon Technologies, Inc. Distributed storage system with web services client interface
CN105590001B (en) * 2015-12-30 2019-01-01 西北工业大学 A kind of synthesis importance analysis for the identification of circuit tender spots

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179037A (en) * 2012-12-13 2013-06-26 清华大学 Data transmission method for content-based data center network
CN103281336A (en) * 2013-06-19 2013-09-04 上海众恒信息产业股份有限公司 Network intrusion detection method
CN103906271A (en) * 2014-04-21 2014-07-02 西安电子科技大学 Method for measuring key nodes in Ad Hoc network
CN106294156A (en) * 2016-08-11 2017-01-04 北京邮电大学 A kind of static code fault detection analysis method and device
CN106982248A (en) * 2017-03-01 2017-07-25 中国科学院深圳先进技术研究院 The caching method and device of a kind of content center network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
对等网络分布式缓存机制研究;高国强;《中国优秀博士学位论文全文数据库信息科技辑I139-7》;20111015;全文 *

Also Published As

Publication number Publication date
CN107659653A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN108173938B (en) Server load distribution method and device
CN111124819B (en) Method and device for full link monitoring
US10505977B2 (en) Diffusing denial-of-service attacks by using virtual machines
CN107624233B (en) VPN transmission tunnel scheduling method and device and VPN client server
US8756269B2 (en) Monitoring a path of a transaction across a composite application
WO2021164261A1 (en) Method for testing cloud network device, and storage medium and computer device
CN113015167B (en) Encrypted flow data detection method, system, electronic device and storage medium
CN105917632A (en) A method for scalable distributed network traffic analytics in telco
CN112468324A (en) Graph convolution neural network-based encrypted traffic classification method and device
CN107659653B (en) NDN network measurement data caching method and device, electronic equipment and storage medium
CN108347350A (en) A kind of communication means and device
CN118779184A (en) Alarm message processing method, device, electronic device and storage medium
CN118054849B (en) Optical cable routing resource information checking method, device, equipment and medium
CN118764398A (en) Message processing method, device and electronic device
CN107332739A (en) Network detection method, network detection device and intelligent terminal
WO2021073413A1 (en) Method and apparatus for sending system performance parameters, management device, and storage medium
CN107360098B (en) A method and device for addressing terminal information of the Internet of Things
US12166660B2 (en) Detecting in-transit inband telemetry packet drops
CN108600013B (en) Method and device for finding overlapping communities in dynamic networks
CN112187720B (en) Method, device, electronic device and storage medium for generating a secondary attack chain
CN107360059A (en) Network detecting method, network detection means and intelligent terminal
CN115333917A (en) CDN anomaly detection method and device
CN115766696A (en) A file upload method, device, electronic equipment and storage medium
CN116306407B (en) Verification method, device, equipment and storage medium of Network On Chip (NOC)
CN119815397B (en) A 5G Ethernet switch testing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant