CN108989122A - Virtual network requests mapping method, device and realization device - Google Patents
Virtual network requests mapping method, device and realization device Download PDFInfo
- Publication number
- CN108989122A CN108989122A CN201810894330.8A CN201810894330A CN108989122A CN 108989122 A CN108989122 A CN 108989122A CN 201810894330 A CN201810894330 A CN 201810894330A CN 108989122 A CN108989122 A CN 108989122A
- Authority
- CN
- China
- Prior art keywords
- matrix
- network
- virtual
- physical network
- physical
- 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.)
- Granted
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 114
- 238000000034 method Methods 0.000 title claims abstract description 93
- 238000013528 artificial neural network Methods 0.000 claims abstract description 15
- 239000011159 matrix material Substances 0.000 claims description 242
- 238000012549 training Methods 0.000 claims description 40
- 238000013178 mathematical model Methods 0.000 claims description 31
- 230000007774 longterm Effects 0.000 claims description 25
- 230000000694 effects Effects 0.000 claims description 16
- 230000006870 function Effects 0.000 claims description 16
- 230000003068 static effect Effects 0.000 claims description 10
- 230000005624 perturbation theories Effects 0.000 claims description 9
- 230000003595 spectral effect Effects 0.000 claims description 8
- 230000017105 transposition Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 25
- 238000004422 calculation algorithm Methods 0.000 description 27
- 238000012360 testing method Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 12
- 230000008859 change Effects 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 8
- 238000011156 evaluation Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000002787 reinforcement Effects 0.000 description 7
- 239000003795 chemical substances by application Substances 0.000 description 3
- 238000002474 experimental method Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000013468 resource allocation Methods 0.000 description 2
- 238000010183 spectrum analysis Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/142—Network analysis or design using statistical or mathematical methods
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Algebra (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- Pure & Applied Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明提供了一种虚拟网络请求映射方法、装置及实现装置;其中,该方法包括:接收虚拟网络的映射请求;该映射请求包括虚拟节点、虚拟节点约束条件、虚拟链路及虚拟链路约束条件中的一种或多种;根据映射请求及预先建立的物理网络分配模型,为虚拟网络分配物理节点及物理链路;该物理网络分配模型通过神经网络建立。本发明降低虚拟网络映射过程的时间复杂度,提高了物理网络资源的分配效率及利用率。
The present invention provides a virtual network request mapping method, device, and implementation device; wherein, the method includes: receiving a virtual network mapping request; the mapping request includes virtual nodes, virtual node constraints, virtual links, and virtual link constraints One or more of the conditions; according to the mapping request and the pre-established physical network allocation model, allocate physical nodes and physical links for the virtual network; the physical network allocation model is established through the neural network. The invention reduces the time complexity of the virtual network mapping process, and improves the allocation efficiency and utilization rate of physical network resources.
Description
技术领域technical field
本发明涉及虚拟网络技术领域,尤其是涉及一种虚拟网络请求映射方法、装置及实现装置。The present invention relates to the field of virtual network technology, in particular to a virtual network request mapping method, device and implementation device.
背景技术Background technique
网络虚拟化技术被视为构建新一代网络体系架构的重要技术。利用网络虚拟化技术,网络服务提供商可以在同一个底层物理网络上创建多个虚拟网络,从而为用户提供多样化的可定制端到端的服务。在虚拟网络建立的过程中,需要使用虚拟网络映射技术,将虚拟网络请求映射到底层物理网络实体中特定节点和链路。目前国内外使用的虚拟网络映射方式都是采用启发式的算法,需要手工制定一系列的规则和假设,忽视了底层物理网络和虚拟网络请求两者之间的关系,导致时间复杂度较高,效率较低。Network virtualization technology is regarded as an important technology for building a new generation of network architecture. Using network virtualization technology, network service providers can create multiple virtual networks on the same underlying physical network, thereby providing users with diversified and customizable end-to-end services. In the process of establishing a virtual network, virtual network mapping technology needs to be used to map virtual network requests to specific nodes and links in the underlying physical network entities. At present, the virtual network mapping methods used at home and abroad all use heuristic algorithms, which need to manually formulate a series of rules and assumptions, ignoring the relationship between the underlying physical network and virtual network requests, resulting in high time complexity. less efficient.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种虚拟网络请求映射方法、装置及实现装置,以降低虚拟网络映射过程的时间复杂度,提高物理网络资源的分配效率及利用率。In view of this, the purpose of the present invention is to provide a virtual network request mapping method, device and implementation device to reduce the time complexity of the virtual network mapping process and improve the allocation efficiency and utilization of physical network resources.
第一方面,本发明实施例提供了一种虚拟网络请求映射方法,包括:接收虚拟网络的映射请求;该映射请求包括虚拟节点、虚拟节点约束条件、虚拟链路及虚拟链路约束条件中的一种或多种;根据映射请求及预先建立的物理网络分配模型,为虚拟网络分配物理节点及物理链路;该物理网络分配模型通过神经网络建立。In the first aspect, an embodiment of the present invention provides a virtual network request mapping method, including: receiving a virtual network mapping request; the mapping request includes virtual nodes, virtual node constraints, virtual links, and virtual link constraints One or more; according to the mapping request and the pre-established physical network allocation model, allocate physical nodes and physical links for the virtual network; the physical network allocation model is established through the neural network.
结合第一方面,本发明实施例提供了第一方面的第一种可能的实施方式,其中,上述物理网络分配模型通过以下方式建立:建立待分配的物理网络的数学模型;根据预设的模型架构、数学模型及预设的效果指标,建立神经网络的网络结构;获取训练样本;该训练样本中包含多个虚拟网络的映射请求;将训练样本输入至网络结构中进行训练,得到物理网络分配模型。In combination with the first aspect, the embodiment of the present invention provides a first possible implementation manner of the first aspect, wherein the above-mentioned physical network allocation model is established in the following manner: establishing a mathematical model of the physical network to be allocated; Architecture, mathematical model and preset effect indicators, establish the network structure of the neural network; obtain training samples; the training samples include mapping requests of multiple virtual networks; input the training samples into the network structure for training, and obtain the physical network allocation Model.
结合第一方面的第一种可能的实施方式,本发明实施例提供了第一方面的第二种可能的实施方式,其中,上述建立待分配的物理网络的数学模型的步骤,包括:将物理网络的节点信息转换为对应的属性矩阵,将物理网络的链路信息转换为对应的邻接矩阵;利用谱方法消除属性矩阵及邻接矩阵的噪声,得到属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵;根据属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵,确定物理网络的嵌入矩阵;根据矩阵摄动理论,对物理网络的嵌入矩阵进行求解,得到物理网络的数学模型;该数学模型包括静态更新模型。With reference to the first possible implementation manner of the first aspect, this embodiment of the present invention provides a second possible implementation manner of the first aspect, wherein the above step of establishing a mathematical model of the physical network to be allocated includes: The node information of the network is converted into the corresponding attribute matrix, and the link information of the physical network is converted into the corresponding adjacency matrix; the noise of the attribute matrix and the adjacency matrix is eliminated by using the spectral method, and the embedded matrix of the attribute matrix and the embedded matrix of the adjacency matrix are obtained; According to the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix, the embedding matrix of the physical network is determined; according to the matrix perturbation theory, the embedding matrix of the physical network is solved to obtain the mathematical model of the physical network; the mathematical model includes a static update model.
结合第一方面的第一种可能的实施方式,本发明实施例提供了第一方面的第三种可能的实施方式,其中,上述预设的效果指标包括运营商的长期平均收益、收益消耗比和长期接受率中的一种或多种。In combination with the first possible implementation of the first aspect, the embodiment of the present invention provides a third possible implementation of the first aspect, wherein the aforementioned preset effect indicators include the operator's long-term average revenue, revenue consumption ratio and one or more of long-term acceptance rates.
结合第一方面第二种可能的实施方式,本发明实施例提供了第一方面的第四种可能的实施方式,其中,上述根据属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵,确定物理网络的嵌入矩阵的步骤,包括:通过下述公式获取当属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵的相关性最大时,属性矩阵的嵌入矩阵对应的投影向量及邻接矩阵的嵌入矩阵对应的投影向量:In combination with the second possible implementation manner of the first aspect, the embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the above-mentioned determination of the physical network is based on the embedded matrix of the attribute matrix and the embedded matrix of the adjacency matrix. The step of embedding the matrix includes: obtaining the projection vector corresponding to the embedding matrix of the attribute matrix and the projection vector corresponding to the embedding matrix of the adjacency matrix when the correlation between the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix is obtained by the following formula:
其中,约束条件为PA (t)′YA (t)′YA (t)PA (t)+PX (t)′YX (t)′YX (t)PX (t)=1。YA (t)、YX (t)分别为在t时刻属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵,YA (t)′、YX (t)′分别为YA (t)、YX (t)的转置矩阵;PA (t)、PX (t)分别为在t时刻属性矩阵的嵌入矩阵对应的投影向量及邻接矩阵的嵌入矩阵对应的投影向量,PA (t)、PX (t)分别为PA (t)、PX (t)的转置矩阵;表示以PA (t)、PX (t)为变量求取上述公式的最大值;Among them, the constraints are P A (t)′ Y A (t)′ Y A (t) P A (t) +P X (t)′ Y X (t)′ Y X (t) P X (t) =1. Y A (t) , Y X (t) are the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix at time t respectively, Y A (t)′ and Y X (t)′ are Y A (t) , Y The transposition matrix of X (t) ; P A (t) and P X (t) are the projection vector corresponding to the embedding matrix of the attribute matrix and the projection vector corresponding to the embedding matrix of the adjacency matrix at time t, respectively, and P A (t) , P X (t) are the transposed matrices of P A (t) and P X (t) respectively; means to obtain the maximum value of the above formula with P A (t) and P X (t) as variables;
通过拉格朗日函数求取属性矩阵的嵌入矩阵对应的投影向量及邻接矩阵的嵌入矩阵对应的投影向量的梯度为零时,属性矩阵的嵌入矩阵对应的投影向量及邻接矩阵的嵌入矩阵对应的投影向量的取值;When the gradient of the projection vector corresponding to the embedding matrix of the attribute matrix and the projection vector corresponding to the embedding matrix of the adjacency matrix is calculated by the Lagrangian function is zero, the projection vector corresponding to the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix correspond to The value of the projection vector;
通过下述公式得到共识嵌入矩阵为:The consensus embedding matrix is obtained by the following formula:
Y(t)=[YA (t),YX (t)]×P(t) Y (t) = [Y A (t) , Y X (t) ]×P (t)
其中,P(t)为PA (t)及PX (t)合成的投影向量,P(t)=[PA (t),PX (t)]。Wherein, P (t) is a projection vector synthesized by P A (t) and P X (t) , and P (t) = [P A (t) , P X (t) ].
第二方面,本发明实施例还提供一种虚拟网络请求映射装置,包括:请求接收模块,用于接收虚拟网络的映射请求;该映射请求包括虚拟节点、虚拟节点约束条件、虚拟链路及虚拟链路约束条件中的一种或多种;物理网络分配模块,用于根据映射请求及预先建立的物理网络分配模型,为虚拟网络分配物理节点及物理链路;该物理网络分配模型通过神经网络建立。In the second aspect, the embodiment of the present invention also provides a virtual network request mapping device, including: a request receiving module, configured to receive a virtual network mapping request; the mapping request includes virtual nodes, virtual node constraints, virtual links, and virtual One or more of the link constraints; the physical network allocation module is used to allocate physical nodes and physical links for the virtual network according to the mapping request and the pre-established physical network allocation model; the physical network allocation model passes the neural network Establish.
结合第二方面,本发明实施例提供了第二方面的第一种可能的实施方式,其中,上述物理网络分配模型通过以下方式建立:建立待分配的物理网络的数学模型;根据预设的模型架构、数学模型及预设的效果指标,建立神经网络的网络结构;获取训练样本;该训练样本中包含多个虚拟网络的映射请求;将训练样本输入至网络结构中进行训练,得到物理网络分配模型。In combination with the second aspect, the embodiment of the present invention provides a first possible implementation manner of the second aspect, wherein the above-mentioned physical network allocation model is established in the following manner: establishing a mathematical model of the physical network to be allocated; Architecture, mathematical model and preset effect indicators, establish the network structure of the neural network; obtain training samples; the training samples include mapping requests of multiple virtual networks; input the training samples into the network structure for training, and obtain the physical network allocation Model.
结合第二方面的第一种可能的实施方式,本发明实施例提供了第二方面的第二种可能的实施方式,其中,上述建立待分配的物理网络的数学模型的步骤,包括:将物理网络的节点信息转换为对应的属性矩阵,将物理网络的链路信息转换为对应的邻接矩阵;利用谱方法消除属性矩阵及邻接矩阵的噪声,得到属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵;根据属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵,确定物理网络的嵌入矩阵;根据矩阵摄动理论,对物理网络的嵌入矩阵进行求解,得到物理网络的数学模型;该数学模型包括静态更新模型。With reference to the first possible implementation manner of the second aspect, the embodiment of the present invention provides a second possible implementation manner of the second aspect, wherein the above step of establishing a mathematical model of the physical network to be allocated includes: The node information of the network is converted into the corresponding attribute matrix, and the link information of the physical network is converted into the corresponding adjacency matrix; the noise of the attribute matrix and the adjacency matrix is eliminated by using the spectral method, and the embedded matrix of the attribute matrix and the embedded matrix of the adjacency matrix are obtained; According to the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix, the embedding matrix of the physical network is determined; according to the matrix perturbation theory, the embedding matrix of the physical network is solved to obtain the mathematical model of the physical network; the mathematical model includes a static update model.
结合第二方面的第一种可能的实施方式,本发明实施例提供了第二方面的第三种可能的实施方式,其中,上述预设的效果指标包括运营商的长期平均收益、收益消耗比和长期接受率中的一种或多种。In combination with the first possible implementation of the second aspect, the embodiment of the present invention provides a third possible implementation of the second aspect, wherein the above-mentioned preset effect indicators include the operator's long-term average revenue, revenue consumption ratio and one or more of long-term acceptance rates.
第三方面,本发明实施例还提供一种虚拟网络请求映射实现装置,包括存储器和处理器,其中,存储器用于存储一条或多条计算机指令,一条或多条计算机指令被处理器执行,以实现上述方法。In the third aspect, the embodiment of the present invention also provides a device for implementing virtual network request mapping, including a memory and a processor, wherein the memory is used to store one or more computer instructions, and one or more computer instructions are executed by the processor to Implement the above method.
本发明实施例带来了以下有益效果:Embodiments of the present invention bring the following beneficial effects:
本发明实施例提供了一种虚拟网络请求映射方法、装置及实现装置;接收虚拟网络的映射请求后,根据该映射请求及预先建立的物理网络分配模型,为虚拟网络分配物理节点及物理链路;该方式降低虚拟网络映射过程的时间复杂度,提高了物理网络资源的分配效率及利用率。Embodiments of the present invention provide a virtual network request mapping method, device, and implementation device; after receiving a virtual network mapping request, assign physical nodes and physical links to the virtual network according to the mapping request and a pre-established physical network allocation model ; This method reduces the time complexity of the virtual network mapping process, and improves the allocation efficiency and utilization of physical network resources.
本发明的其他特征和优点将在随后的说明书中阐述,或者,部分特征和优点可以从说明书推知或毫无疑义地确定,或者通过实施本发明的上述技术即可得知。Other features and advantages of the present invention will be set forth in the following description, or some of the features and advantages can be inferred or unambiguously determined from the description, or can be known by implementing the above-mentioned techniques of the present invention.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施方式,并配合所附附图,作详细说明如下。In order to make the above-mentioned purpose, features and advantages of the present invention more comprehensible, preferred implementation modes are specifically cited below, together with the accompanying drawings, to be described in detail as follows.
附图说明Description of drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific implementation of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the specific implementation or description of the prior art. Obviously, the accompanying drawings in the following description The drawings show some implementations of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图1为本发明实施例提供的一种虚拟网络请求映射方法的流程图;FIG. 1 is a flowchart of a virtual network request mapping method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种虚拟网络请求映射方法中,物理网络分配模型的建立方法的流程图;2 is a flowchart of a method for establishing a physical network allocation model in a virtual network request mapping method provided by an embodiment of the present invention;
图3为本发明实施例提供的一种虚拟网络请求映射方法中,虚拟网络请求和物理网络的拓扑图;FIG. 3 is a topology diagram of a virtual network request and a physical network in a virtual network request mapping method provided by an embodiment of the present invention;
图4为本发明实施例提供的一种虚拟网络请求映射方法中,节点映射的流程图;FIG. 4 is a flowchart of node mapping in a virtual network request mapping method provided by an embodiment of the present invention;
图5为本发明实施例提供的一种虚拟网络请求映射方法中,物理网络分配模型的工作过程图;5 is a working process diagram of a physical network allocation model in a virtual network request mapping method provided by an embodiment of the present invention;
图6为本发明实施例提供的四种采用不同算法的物理网络分配模型对同一组测试集进行测试的评价指标对比图;FIG. 6 is a comparison chart of evaluation indicators for testing the same group of test sets by four physical network allocation models using different algorithms provided by the embodiment of the present invention;
图7为本发明实施例提供的一种虚拟网络请求映射装置的结构示意图;FIG. 7 is a schematic structural diagram of a virtual network request mapping device provided by an embodiment of the present invention;
图8为本发明实施例提供的一种虚拟网络请求映射实现装置的结构示意图。FIG. 8 is a schematic structural diagram of an apparatus for implementing virtual network request mapping provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. the embodiment. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
目前,虚拟网络技术快速发展。在虚拟网络建立的过程中,需要使用虚拟网络映射技术;虚拟网络映射的目标就是在满足资源约束条件的前提下,实现底层物理网络资源的高效利用。虚拟网络映射需要选择和虚拟网络请求相匹配的物理节点和物理链路,承载租户个性化需求。如果能实现高效可靠的虚拟网络映射技术,并且动态变化的虚拟请求进行快速响应,那么将显著提高物理资源的利用率,从而提高网络服务提供商的营收能力。Currently, virtual network technology is developing rapidly. In the process of establishing a virtual network, virtual network mapping technology needs to be used; the goal of virtual network mapping is to realize efficient utilization of underlying physical network resources under the premise of satisfying resource constraints. Virtual network mapping needs to select physical nodes and physical links that match the virtual network request to carry the individual needs of tenants. If an efficient and reliable virtual network mapping technology can be realized, and dynamic virtual requests can be quickly responded to, the utilization rate of physical resources will be significantly improved, thereby improving the revenue capability of network service providers.
但实际操作中,在节点和链路的约束条件下,虚拟网络映射是一个NP-hard(non-deterministic polynomial-hard,非确定性多项式困难)问题。But in actual operation, under the constraints of nodes and links, virtual network mapping is an NP-hard (non-deterministic polynomial-hard, non-deterministic polynomial-hard) problem.
现有的虚拟网络映射方式时间复杂度较高,对物理网络资源的分配效率及利用率低。基于此,本发明实施例提供了一种虚拟网络请求映射方法、装置及实现装置,可以应用于物理网络资源的分配及其他资源分配领域。The existing virtual network mapping method has high time complexity, and the allocation efficiency and utilization rate of physical network resources are low. Based on this, embodiments of the present invention provide a virtual network request mapping method, device and implementation device, which can be applied to physical network resource allocation and other resource allocation fields.
为便于对本实施例进行理解,首先对本发明实施例所公开的一种虚拟网络请求映射方法进行详细介绍。In order to facilitate the understanding of this embodiment, a virtual network request mapping method disclosed in this embodiment of the present invention is first introduced in detail.
参见图1所示的一种虚拟网络请求映射方法的流程图,该方法包括以下步骤:Referring to the flowchart of a virtual network request mapping method shown in Figure 1, the method includes the following steps:
步骤S100,接收虚拟网络的映射请求;该映射请求包括虚拟节点、虚拟节点约束条件、虚拟链路及虚拟链路约束条件中的一种或多种;在建立虚拟网络时,提出分配物理网络资源的请求;该物理网络资源的分配需依照虚拟网络的节点、链路及相应的约束条件进行,该约束条件可以为CPU(Central Processing Unit,中央处理器)计算资源和带宽资源等。Step S100, receiving a virtual network mapping request; the mapping request includes one or more of virtual nodes, virtual node constraints, virtual links, and virtual link constraints; when establishing a virtual network, it is proposed to allocate physical network resources request; the allocation of the physical network resources shall be carried out according to the nodes, links and corresponding constraints of the virtual network, and the constraints may be CPU (Central Processing Unit, central processing unit) computing resources and bandwidth resources.
步骤S102,根据映射请求及预先建立的物理网络分配模型,为虚拟网络分配物理节点及物理链路;该物理网络分配模型通过神经网络建立。Step S102, according to the mapping request and the pre-established physical network allocation model, allocate physical nodes and physical links for the virtual network; the physical network allocation model is established through the neural network.
具体地,上述物理网络分配模型可以通过以下方式建立:Specifically, the above physical network allocation model can be established in the following manner:
(1)建立待分配的物理网络的数学模型;由于待分配的物理网络资源是有限的,因此对虚拟网络映射请求需要考虑到物理网络资源的承受能力,建立准确的物理网络的数学模型,并应用于神经网络模型中,更有利于高效完成虚拟网络映射请求。(1) Establish a mathematical model of the physical network to be allocated; since the physical network resources to be allocated are limited, it is necessary to consider the bearing capacity of the physical network resources for the virtual network mapping request, establish an accurate mathematical model of the physical network, and Applied to the neural network model, it is more conducive to efficiently completing the virtual network mapping request.
(2)根据预设的模型架构、数学模型及预设的效果指标,建立神经网络的网络结构;具体地,上述模型架构可以为预设的效果指标可以为运营商的长期平均收益、收益消耗比和长期接受率中的一种或多种。(2) According to the preset model architecture, mathematical model and preset effect indicators, establish the network structure of the neural network; specifically, the above model architecture can be the preset effect indicators can be the long-term average income of the operator, revenue consumption One or more of ratio and long-term acceptance rate.
(3)获取训练样本;该训练样本中包含多个虚拟网络的映射请求。(3) Obtain a training sample; the training sample includes mapping requests of multiple virtual networks.
(4)将训练样本输入至网络结构中进行训练,得到物理网络分配模型。(4) Input the training samples into the network structure for training to obtain the physical network allocation model.
本发明实施例提供了一种虚拟网络请求映射方法;接收虚拟网络的映射请求后,根据该映射请求及预先建立的物理网络分配模型,为虚拟网络分配物理节点及物理链路;该方式降低虚拟网络映射过程的时间复杂度,提高了物理网络资源的分配效率及利用率。The embodiment of the present invention provides a virtual network request mapping method; after receiving the virtual network mapping request, according to the mapping request and the pre-established physical network allocation model, assign physical nodes and physical links to the virtual network; this method reduces virtual The time complexity of the network mapping process improves the allocation efficiency and utilization of physical network resources.
本发明实施例还提供了一种虚拟网络请求映射方法中,物理网络分配模型的建立方法,该方法在图1所示的方法的基础上实现,其流程图如图2所示,包括以下步骤:The embodiment of the present invention also provides a method for establishing a physical network allocation model in a virtual network request mapping method, the method is implemented on the basis of the method shown in Figure 1, and its flowchart is shown in Figure 2, including the following steps :
步骤S200,将物理网络的节点信息转换为对应的属性矩阵,将物理网络的链路信息转换为对应的邻接矩阵;具体地,物理网络的节点信息可以用一个属性矩阵表示,每一行代表一个物理节点,每一列代表一个节点属性。物理网络的链路信息可以使用邻接矩阵表示,可以分别采用A(t)和X(t)表示物理底层网络的属性矩阵和邻接矩阵。下述公式中的各个符号的定义如表1所示:Step S200, convert the node information of the physical network into a corresponding attribute matrix, and convert the link information of the physical network into a corresponding adjacency matrix; specifically, the node information of the physical network can be represented by an attribute matrix, and each row represents a physical Node, each column represents a node attribute. The link information of the physical network can be represented by an adjacency matrix, and A (t) and X (t) can be used to represent the attribute matrix and adjacency matrix of the physical underlying network respectively. The definition of each symbol in the following formula is shown in Table 1:
表1Table 1
步骤S202,利用谱方法消除属性矩阵及邻接矩阵的噪声,得到属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵。Step S202, using the spectral method to eliminate noise of the attribute matrix and the adjacency matrix, to obtain the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix.
具体地,邻接矩阵的嵌入矩阵可以获取过程如下:规定DX (t)为X(t)的度矩阵,即规定LX (t)为X(t)的拉普拉斯矩阵,即LX (t)=DX (t)-X(t)。根据谱理论,将n维的矩阵映射到k维的嵌入矩阵中(k<<n),能有效减少矩阵表示中的噪音。一个普适性选择Yx(t)=[y1,y2,...yn]'的方式是最小化损失函数即在新的空间中,相互连接的节点之间距离更近。此时问题就退化成了广义特征问题假设为该问题的对应特征值0=λ1<=λ2<=...<=λn的特征向量,很容易验证λ1=0,并且对应的特征向量为1。取作为邻接矩阵X(t)的嵌入矩阵YX (t),并且取它们对应的特征值[λ1,λ2,...,λk+1]作为时间t的特征值。Specifically, the embedding matrix of the adjacency matrix can be obtained as follows: D X (t) is specified as the degree matrix of X (t) , namely It is stipulated that L X (t) is the Laplacian matrix of X (t) , that is, L X (t) = D X (t) −X (t) . According to spectral theory, mapping an n-dimensional matrix to a k-dimensional embedding matrix (k<<n) can effectively reduce the noise in the matrix representation. A general way to choose Yx (t) = [y 1 ,y 2 ,...y n ]' is to minimize the loss function That is, in the new space, the distance between the connected nodes is closer. At this time, the problem degenerates into a generalized characteristic problem suppose For the corresponding eigenvalue 0=λ 1 <=λ 2 <=...<=λ n eigenvector of this problem, it is easy to verify that λ 1 =0 and the corresponding eigenvector is 1. Pick As the embedding matrix Y X (t) of the adjacency matrix X ( t) , and take their corresponding eigenvalues [λ 1 ,λ 2 ,...,λ k+1 ] as the eigenvalues of time t.
与邻接矩阵类似,属性矩阵A(t)也可以得到对应的YA (t),先得到归一化的属性矩阵,然后得到属性矩阵的相似度矩阵W(t)。以同样的方式生成属性矩阵A(t)的嵌入式表示YA (t)。Similar to the adjacency matrix, the attribute matrix A (t) can also get the corresponding Y A (t) , first get the normalized attribute matrix, and then get the similarity matrix W (t) of the attribute matrix. The embedded representation Y A (t) of the attribute matrix A (t) is generated in the same way.
步骤S204,根据属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵,确定物理网络的嵌入矩阵。Step S204, determine the embedding matrix of the physical network according to the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix.
具体地,该步骤通过以下方式实现:Specifically, this step is implemented in the following ways:
(1)通过下述公式获取当属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵的相关性最大时,属性矩阵的嵌入矩阵对应的投影向量及邻接矩阵的嵌入矩阵对应的投影向量:(1) When the correlation between the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix is obtained by the following formula, the projection vector corresponding to the embedding matrix of the attribute matrix and the projection vector corresponding to the embedding matrix of the adjacency matrix:
其中,约束条件为PA (t)′YA (t)′YA (t)PA (t)+PX (t)′YX (t)′YX (t)PX (t)=1。YA (t)、YX (t)分别为在t时刻属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵,YA (t)′、YX (t)′分别为YA (t)、YX (t)的转置矩阵;PA (t)、PX (t)分别为在t时刻属性矩阵的嵌入矩阵对应的投影向量及邻接矩阵的嵌入矩阵对应的投影向量,PA (t)、PX (t)分别为PA (t)、PX (t)的转置矩阵;表示以PA (t)、PX (t)为变量求取上述公式的最大值。Among them, the constraints are P A (t)′ Y A (t)′ Y A (t) P A (t) +P X (t)′ Y X (t)′ Y X (t) P X (t) =1. Y A (t) , Y X (t) are the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix at time t respectively, Y A (t) ′, Y X (t) ′ are Y A (t) , Y The transposition matrix of X (t) ; P A (t) and P X (t) are the projection vector corresponding to the embedding matrix of the attribute matrix and the projection vector corresponding to the embedding matrix of the adjacency matrix at time t, respectively, and P A (t) , P X (t) are the transposed matrices of P A (t) and P X (t) respectively; means to obtain the maximum value of the above formula with P A (t) and P X (t) as variables.
(2)通过拉格朗日函数求取属性矩阵的嵌入矩阵对应的投影向量及邻接矩阵的嵌入矩阵对应的投影向量的梯度为零时,属性矩阵的嵌入矩阵对应的投影向量及邻接矩阵的嵌入矩阵对应的投影向量的取值;具体地,使γ为拉格朗日算子,那么通过拉格朗日函数对PX (t)和PA (t)求梯度为零,可以得到PX (t)和PA (t)的值。对应的广义特征问题的表述为:(2) When the gradient of the projection vector corresponding to the embedding matrix of the attribute matrix and the projection vector corresponding to the embedding matrix of the adjacency matrix is obtained by the Lagrangian function is zero, the projection vector corresponding to the embedding matrix of the attribute matrix and the embedding of the adjacency matrix The value of the projection vector corresponding to the matrix; specifically, let γ be a Lagrangian operator, then the gradient of P X (t) and PA ( t) is calculated to be zero through the Lagrangian function, and P X can be obtained (t) and the value of P A (t) . The corresponding generalized eigenproblem is formulated as:
然后我们取上述广义特征问题的前L个特征向量共识嵌入表示,可以得到投影矩阵 Then we take the consensus embedding representation of the first L eigenvectors of the above generalized eigenproblem, and we can get the projection matrix
(3)通过下述公式得到共识嵌入矩阵为:(3) The consensus embedding matrix is obtained by the following formula:
Y(t)=[YA (t),YX (t)]×P(t) (3)Y (t) = [Y A (t) , Y X (t) ] × P (t) (3)
其中,P(t)为PA (t)及PX (t)合成的投影向量,P(t)=[PA (t),PX (t)]。Wherein, P (t) is a projection vector synthesized by P A (t) and P X (t) , and P (t) = [P A (t) , P X (t) ].
步骤S206,根据矩阵摄动理论,对物理网络的嵌入矩阵进行求解,得到物理网络的数学模型;该数学模型包括静态更新模型。In step S206, according to the matrix perturbation theory, the embedding matrix of the physical network is solved to obtain a mathematical model of the physical network; the mathematical model includes a static update model.
在虚拟网络映射过程中,当一个虚拟请求到来以后,物理网络就会发生改变。因此属性矩阵是一个高频率动态变化的矩阵。如果在每个时间步,对每个物理网络都通过特征向量和特征值的方式先求出YX (t)和YA (t),然后通过YX (t)和YA (t)得到Y(t),这是非常消耗时间的,在大规模网络中这样的方式也是不现实的。因此提出通过矩阵变量更新的方式对YX (t)和YA (t)进行动态更新,以降低时间复杂度。During the virtual network mapping process, when a virtual request comes, the physical network will change. Therefore, the attribute matrix is a matrix that changes dynamically at high frequency. If at each time step, Y X (t) and Y A (t) are first calculated for each physical network by means of eigenvectors and eigenvalues, and then Y X (t) and Y A (t) are obtained Y (t) , which is very time-consuming and unrealistic in a large-scale network. Therefore, it is proposed to dynamically update Y X (t) and Y A (t) by means of matrix variable update to reduce time complexity.
该动态更新算法的提出基于虚拟网络映射算法的一个事实,即在两个连续的时间步,属性矩阵不会变化太多。因为在虚拟网络映射中,完成一个虚拟网络请求以后,物理网络会在减去本次虚拟请求需要的资源,而这个虚拟请求的资源通常不会占物理资源很大一部分。采用ΔA和ΔX代表在两个连续时间步长内属性矩阵和邻接矩阵的变化量,那么对于这两者的度矩阵和拉普拉斯矩阵:The proposed dynamic update algorithm is based on the fact that the virtual network mapping algorithm does not change too much in two consecutive time steps. Because in virtual network mapping, after a virtual network request is completed, the physical network will subtract the resources required for this virtual request, and the resources of this virtual request usually do not occupy a large part of the physical resources. Using ΔA and ΔX to represent the change of attribute matrix and adjacency matrix in two consecutive time steps, then for the degree matrix and Laplacian matrix of the two:
DA (t+1)=DA (t)+ΔDA,LA (t+1)=LA (t)+ΔLA,D A (t+1) = D A (t) +ΔD A , L A (t+1) = L A (t) +ΔL A ,
DX (t+1)=DX (t)+ΔDX,LX (t+1)=LX (t)+ΔLX. (4)D X (t+1) =D X (t) +ΔD X , L X (t+1) =L X (t) +ΔL X . (4)
在静态模型中,得到属性矩阵和邻接矩阵的嵌入矩阵,等价于求解一个广义特征问题。然后取前k个特征向量作为嵌入矩阵,这需要对广义特征问题求解,但是求解特征问题复杂度很高,所以我们需要一种有效的方式,得到属性矩阵和邻接矩阵的嵌入矩阵。我们以邻接矩阵的嵌入矩阵更新方法为例,说明动态更新的具体步骤。由矩阵摄动理论可知:In the static model, obtaining the embedding matrix of the attribute matrix and the adjacency matrix is equivalent to solving a generalized characteristic problem. Then take the first k eigenvectors as the embedding matrix, which needs to solve the generalized eigenproblem, but the complexity of solving the eigenvalue problem is very high, so we need an effective way to get the embedding matrix of the attribute matrix and the adjacency matrix. We take the embedding matrix update method of adjacency matrix as an example to illustrate the specific steps of dynamic update. According to the matrix perturbation theory:
对于某个特征值和特征向量对(λi,ai):For some eigenvalue and eigenvector pair (λ i ,a i ):
那么动态更新的算法问题就等价于怎么由拉普拉斯变化矩阵ΔL和度矩阵变化矩阵ΔD得到特征值和特征向量的变化对求解的方式分为求Δλi和求解两个部分。Then the algorithm problem of dynamic update is equivalent to how to obtain the change pair of eigenvalues and eigenvectors from the Laplacian change matrix ΔL and the degree matrix change matrix ΔD The way of solving is divided into finding Δλ i and solving two parts.
首先计算Δλi,将(6)式展开,得到:First calculate Δλ i , expand (6) to get:
由于二重导数如等对结果影响小,因此将其略去。并且由于可以将(7)化简为结果:Since the double derivative such as etc. have little effect on the results, so they are omitted. and due to (7) can be simplified to the result:
将等式两侧同时乘上ai',(8)变为:Multiply both sides of the equation by a i ', (8) becomes:
因为拉普拉斯矩阵LX (t)和度矩阵DX (t)是对称矩阵,那么:Since the Laplacian matrix L X (t) and the degree matrix D X (t) are symmetric matrices, then:
因此等式(9)就变为了:So equation (9) becomes:
因此特征值的变化量为:So the change in eigenvalues is:
易得因此:easy therefore:
接下来计算由于在连续时间步长内,网络结构的变化是平滑的,假设特征向量的摄动由前k个特征向量构成,即其中αij是第j个特征向量的权重,可通过以下方式获取权重:Next calculate Since the network structure changes smoothly in continuous time steps, it is assumed that the perturbation of the eigenvector is composed of the first k eigenvectors, namely where α ij is the weight of the jth eigenvector, which can be obtained by:
将插入公式(8)中,得到:Will Insert into formula (8), get:
将等式两边同时乘上同时易得:multiply both sides of the equation by At the same time easy to get:
因此,权重αip就可以求出来:Therefore, the weight α ip can be obtained:
当p≠i时,权重值已经求出来,下面介绍求p=i时,αii如何求取:When p≠i, the weight value has been obtained. The following describes how to obtain α ii when p=i:
将(17)展开,并且舍去二重导数项,得到:Expanding (17) and discarding the double derivative term, we get:
得到:get:
因此特征向量ai的摄动为:So the perturbation of the eigenvector a i is:
到现在为止,可以求出特征值和特征矩阵的摄动对在物理网络的嵌入矩阵更新过程如算法一(Algorithm 1)中的伪代码所示,其代码如表2所示。So far, the perturbation pairs of eigenvalues and eigenmatrix can be found The update process of the embedding matrix in the physical network is shown in the pseudo code in Algorithm 1, and its code is shown in Table 2.
表2Table 2
算法的输入是在起始时间(t=1)时,通过传统的求解广义特征问题的特征值和特征向量的方式,得到前k个特征值和特征向量对。以及每一个时间步的拉布拉斯矩阵和度矩阵的摄动。输出为在时间步T的前k个特征值和特征向量对。其中第3行和第4行调用公式(13)和公式(20)计算摄动,然后更新特征值和特征向量。上述过程以邻接矩阵的方式展示了如何对特征值和特征矩阵进行更新,那么属性矩阵的嵌入矩阵也采用同样的方式进行更新即可,从而得到了物理网络的静态更新模型。The input of the algorithm is to obtain the first k pairs of eigenvalues and eigenvectors by solving the eigenvalues and eigenvectors of the generalized eigenproblem at the starting time (t=1). and the perturbation of the Laplace and degree matrices at each time step. The output is the top k eigenvalue and eigenvector pairs at time step T. Among them, lines 3 and 4 call formula (13) and formula (20) to calculate the perturbation, and then update the eigenvalues and eigenvectors. The above process shows how to update the eigenvalues and eigenmatrix in the form of adjacency matrix, then the embedding matrix of the attribute matrix can also be updated in the same way, thus obtaining the static update model of the physical network.
上述方法采用谱方法获得了健壮的共识矩阵,这个共识矩阵可以有效地表示底层物理网络,实现了物理网络的静态表示;此外,还利用了矩阵摄动理论来捕捉连续时间内物理网络中节点和链路的变化,并完成物理网络更新,实现了物理网络的动态更新。The above method uses the spectral method to obtain a robust consensus matrix, which can effectively represent the underlying physical network and realize the static representation of the physical network; in addition, the matrix perturbation theory is also used to capture the nodes and nodes in the physical network in continuous time. The change of the link, and complete the update of the physical network, realize the dynamic update of the physical network.
本发明实施例还提供了另一种虚拟网络请求映射方法,该方法在图2所示的方法基础上实现。The embodiment of the present invention also provides another virtual network request mapping method, which is implemented on the basis of the method shown in FIG. 2 .
虚拟网络映射问题可以采用如图3所示的虚拟网络请求和物理网络拓扑来表示,其中(a)和(b)是虚拟网络请求,(c)是底层的物理网络。使用一个无向图的模型表示物理网络,其中NS和LS分别表示物理网络的节点集合和链路集合,和分别表示物理网络的节点和链路的属性集合。物理网络的节点属性包括节点的CPU能力和位置信息等,链路属性包括链路的带宽和延迟。类似的,虚拟网络请求也可以使用无向图来表示。使用一个无向图模型表示虚拟网络请求,其中NV和LV分别表示虚拟网络请求的节点集合和链路集合,和分别表示虚拟网络请求的节点和链路的约束条件。为了使虚拟网络映射的描述简洁直观,物理资源和虚拟网络请求的节点资源主要考虑CPU计算资源,链路资源主要考虑带宽资源。The virtual network mapping problem can be represented by the virtual network request and physical network topology as shown in Figure 3, where (a) and (b) are virtual network requests, and (c) is the underlying physical network. Model using an undirected graph Represents the physical network, where NS and LS represent the node set and link set of the physical network, respectively, and Represents the attribute collection of nodes and links of the physical network, respectively. Node attributes of the physical network include node CPU capabilities and location information, and link attributes include link bandwidth and delay. Similarly, virtual network requests can also be represented using an undirected graph. Use an undirected graph model Represents a virtual network request, where N V and L V respectively represent the node set and link set of the virtual network request, and respectively represent the constraints of nodes and links requested by the virtual network. In order to make the description of the virtual network map concise and intuitive, the physical resources and the node resources requested by the virtual network mainly consider CPU computing resources, and the link resources mainly consider bandwidth resources.
如图3(c)表示一个物理网络,包含A到G七个物理节点,以节点A和节点B为例,节点A的计算资源为30个单位,节点B的计算资源为40个单位,节点A和节点B之间的带宽资源为20个单位。图3(a)和图3(b)表示虚拟网络请求,以图3(a)为例,虚拟节点a需要的计算资源为5个单位,虚拟节点b需要的计算资源为10个单位,虚拟节点a和虚拟节点b之间需要的虚拟链路资源为10个单位。Figure 3(c) shows a physical network, including seven physical nodes from A to G. Taking node A and node B as examples, the computing resources of node A are 30 units, and the computing resources of node B are 40 units. The bandwidth resource between A and node B is 20 units. Figure 3(a) and Figure 3(b) show virtual network requests. Taking Figure 3(a) as an example, the computing resources required by virtual node a are 5 units, and the computing resources required by virtual node b are 10 units. The virtual link resource required between node a and virtual node b is 10 units.
将一次虚拟网络映射过程记为M:GV(NV,LV)→GS(N',L'),其中以图3举例,a和b两个节点可能被映射到A和B两个节点上,那么ab之间的链路请求就被映射到AB之间的物理链路上;也有可能a和b两个节点可能被映射到A和C两个节点上,那么ab之间的链路请求就被映射到AB之间和BC之间的两个物理链路上,这样比前一种映射方式多消耗了BC之间的链路资源,以更多的网络资源的消耗完成了本次虚拟网络映射任务。Record a virtual network mapping process as M: G V (N V , L V ) → G S (N', L'), where Taking Figure 3 as an example, two nodes a and b may be mapped to two nodes A and B, then the link request between ab is mapped to the physical link between AB; it is also possible that two nodes a and b A node may be mapped to two nodes A and C, then the link request between ab is mapped to two physical links between AB and BC, which consumes more than the previous mapping method Link resources between BCs are reduced, and this virtual network mapping task is completed with more network resource consumption.
当图3(a)的请求在时间t到达图3(c)的物理网络后,占用物理网络的资源时长记为td,在整个占用时长td时间内,分配给该请求的物理资源不能被其他虚拟网络请求占用。因此虚拟网络映射算法,即如何做出合理分配虚拟网络请求的决策,将对物理资源的利用率产生重要影响。When the request in Figure 3(a) arrives at the physical network in Figure 3(c) at time t, the resource occupation time of the physical network is recorded as t d , during the entire occupation time t d , the physical resources allocated to the request cannot Consumed by other virtual network requests. Therefore, the virtual network mapping algorithm, that is, how to make a reasonable decision to allocate virtual network requests, will have an important impact on the utilization of physical resources.
虚拟网络映射的主要目标,就是将虚拟网络请求尽可能多的映射到物理网络中,以此提高物理网络资源的利用效率,增加基础设施运营商的收益。本实施例中将以长期平均收益、收益消耗比和长期接受率三个指标作为衡量虚拟网络请求任务完成情况的标准。The main goal of virtual network mapping is to map as many virtual network requests as possible to the physical network, so as to improve the utilization efficiency of physical network resources and increase the revenue of infrastructure operators. In this embodiment, the three indicators of long-term average income, income consumption ratio and long-term acceptance rate are used as standards for measuring the completion of virtual network request tasks.
根据上述实施例,已根据公式(3)、公式(13)和公式(20)建立了物理网络的数学模型,根据该模型并结合RDAM(Reinforcement Learning Based Dynamic AttributeMatrix,基于增强学习的动态属性矩阵表示)算法,建立物理网络分配模型,将虚拟网络映射请求输入该网络,通过该模型输出虚拟网络请求节点映射到每个物理网络节点的概率。According to the above-mentioned embodiment, the mathematical model of the physical network has been established according to formula (3), formula (13) and formula (20). ) algorithm to establish a physical network allocation model, input the virtual network mapping request into the network, and output the probability that the virtual network request node is mapped to each physical network node through the model.
RDAM算法将虚拟网络映射看作节点映射和链路映射两个阶段。相对于节点映射阶段,链路映射阶段就是将节点映射阶段映射的节点按照深度优先遍历的方法分配链路。节点映射的流程如图4中所示,分为Problem 1(问题1)和Problem 2(问题2)。Problem 1指的是特征选取和特征表示的问题,Problem 2指的是特征动态更新的问题。特征选取和特征表示使用谱分析的方法,得到一个物理网络健壮的共识矩阵;特征更新方式采用矩阵摄动理论,解决静态更新方式时间复杂度高的问题。RDAM algorithm regards virtual network mapping as two stages of node mapping and link mapping. Compared with the node mapping stage, the link mapping stage is to assign links to the nodes mapped in the node mapping stage according to the method of depth-first traversal. The process of node mapping is shown in Figure 4, which is divided into Problem 1 (problem 1) and Problem 2 (problem 2). Problem 1 refers to the problem of feature selection and feature representation, and Problem 2 refers to the problem of dynamic update of features. Feature selection and feature representation use the spectral analysis method to obtain a robust consensus matrix of the physical network; the feature update method uses matrix perturbation theory to solve the problem of high time complexity in the static update method.
如图4所示,左侧表示时间步t,右侧表示时间步t+1。在时间步t,首先得到物理底层网络(Substrate Network)属性(attributes)矩阵A(t)和邻接矩阵X(t),通过谱分析的方式消除两个矩阵中的噪音,得到属性矩阵嵌入式表示YA (t)和邻接矩阵嵌入式表示YX (t)。然后通过两个嵌入式的矩阵得到最终的共识矩阵(consensus embedding)Y(t)。然后在时间步t+1,图中灰色格子表示变化属性,由属性矩阵的变化量ΔA和邻接矩阵的变化量ΔX,进行在线升级(online update),得到新的属性矩阵嵌入式表示YA (t+1)和邻接矩阵嵌入式表示YX (t +1),得到新的共识矩阵Y(t+1);上述节点映射的问题即为怎样得到共识矩阵及在经过虚拟网络映射后怎样得到新的共识矩阵;这两个问题在物理网络的数学模型建立过程中已得到解决,在此不再赘述。As shown in Figure 4, the left side represents time step t, and the right side represents time step t+1. At time step t, the physical underlying network (Substrate Network) attributes (attributes) matrix A (t) and adjacency matrix X (t) are first obtained, and the noise in the two matrices is eliminated by spectral analysis, and the embedded representation of the attribute matrix is obtained Y A (t) and adjacency matrix embedded representation Y X (t) . Then the final consensus matrix (consensus embedding) Y (t) is obtained through two embedded matrices. Then at time step t+1, the gray grid in the figure represents the changing attribute, and the online update is performed from the change amount ΔA of the attribute matrix and the change amount ΔX of the adjacency matrix to obtain a new embedded representation of the attribute matrix Y A ( t+1) and the adjacency matrix embedded representation Y X (t +1) to get a new consensus matrix Y (t+1) ; the problem of the above node mapping is how to get the consensus matrix and how to get it after virtual network mapping A new consensus matrix; these two issues have been solved in the process of establishing the mathematical model of the physical network, and will not be repeated here.
该模型的工作过程图如图5所示,该模型(也被称为Policy Network)包括输入层(input layer)、卷积层(convolutional layer)、softmax(柔性最大值传输函数)层、及候选层(candidates layer)。其中,第一层是输入层,将Y输入到模型中,其中Yi j(1≤i≤n,1≤j≤l)表示第i个节点的隐层表示中,第j维的值。第二层是卷积层,通过卷积层以后,得到一个n维的可用物理节点的向量表示。即:The working process diagram of the model is shown in Figure 5. The model (also known as Policy Network) includes an input layer, a convolutional layer, a softmax (soft maximum transfer function) layer, and a candidate layer (candidates layer). Among them, the first layer is the input layer, and Y is input into the model, where Y i j (1≤i≤n,1≤j≤l) represents the value of the j-th dimension in the hidden layer representation of the i-th node. The second layer is the convolutional layer. After passing through the convolutional layer, an n-dimensional vector representation of available physical nodes is obtained. which is:
hi=w·Yi+b (21)h i =w·Y i +b (21)
其中,hi是第i个卷积层的输出,w是卷积核的权重向量,b是偏置。Among them, h i is the output of the i-th convolutional layer, w is the weight vector of the convolution kernel, and b is the bias.
第三层是Softmax层,将卷积层的输出h传进Softmax层,产生一个概率,此概率代表该虚拟网络请求节点选择每一个物理节点的概率。对于每个物理节点,概率Softmax的计算方法为:The third layer is the Softmax layer, which passes the output h of the convolutional layer into the Softmax layer to generate a probability, which represents the probability that the virtual network request node selects each physical node. For each physical node, the calculation method of the probability Softmax is:
Softmax是逻辑斯特函数的一种推广,它能求得一个向量每一个维度的概率,每一个维度的概率的范围都在(0,1)之间,并且所有维度的概率和为1。Softmax is an extension of the logistic function, which can obtain the probability of each dimension of a vector, the range of the probability of each dimension is between (0,1), and the sum of the probabilities of all dimensions is 1.
第四层是候选节点层,通过该模型得到每一个物理节点都有概率,但是实际情况中会有某个物理节点不满足该虚拟网络请求节点,因此该层会有一个筛选节点的过滤器,选出过滤后的概率最大的物理节点。The fourth layer is the candidate node layer. Through this model, each physical node has a probability, but in the actual situation, there will be a physical node that does not meet the virtual network request node, so this layer will have a filter for filtering nodes. Select the physical node with the highest probability after filtering.
在建立模型后,需要采用强化学习的方法对该模型进行训练。在神经网络的监督学习中,样本包括样本特征以及样本的标签,将样本特征通过模型以后得到预测的标签,与样本的真实标签的距离作为损失函数,那么监督学习的过程就是不断降低损失函数值的过程。而强化学习中,样本没有真实的标签,强化学习对比监督学习少了样本的标签,多了一个评价指标函数。将样本特征通过模型以后,得到预测的标签,选中预测的标签,如果该标签能给整个系统带来更好的评价指标的值,就说明模型预测的方向是正确的,因此鼓励模型的参数继续向这个方向训练。如果带来的评价指标的值较小,甚至是负值,那么就说明模型预测的方向是不正确的,因此需要模型的参数训练方向进行调整。After the model is established, the model needs to be trained by means of reinforcement learning. In the supervised learning of the neural network, the sample includes the sample features and the label of the sample, and the predicted label is obtained after the sample feature is passed through the model, and the distance from the real label of the sample is used as the loss function, then the process of supervised learning is to continuously reduce the value of the loss function the process of. In reinforcement learning, samples do not have real labels. Compared with supervised learning, reinforcement learning has less sample labels and an additional evaluation index function. After the sample features are passed through the model, the predicted label is obtained, and the predicted label is selected. If the label can bring a better evaluation index value to the entire system, it means that the direction of the model prediction is correct, so the parameters of the model are encouraged to continue Train in this direction. If the value of the evaluation index brought is small or even negative, it means that the direction predicted by the model is incorrect, so the parameter training direction of the model needs to be adjusted.
具体到虚拟网络映射过程,假设物理网络有n个节点,每个节点的嵌入矩阵表示有l维,将物理网络的嵌入矩阵(n*l)作为输入传入模型,得到虚拟网络节点请求选择每个物理节点的概率。此时不能直接选择概率最大的物理网络节点,因为网络模型参数是随机初始化的,如果选择概率最大的节点,那么模型是一直有偏的。因此要在模型的探索和现有模型的利用之间找到一个平衡。此时,通过该模型得到了每个节点的概率向量P,然后我们随机选择第i个节点,构建一个one-hot编码的向量,即该向量有n维,只有第i位是1,其余全为0。那么损失函数就可以写为:Specific to the virtual network mapping process, assuming that the physical network has n nodes, and the embedding matrix of each node has l dimension, the embedding matrix (n*l) of the physical network is passed into the model as input, and the virtual network node requests to select each The probability of a physical node. At this time, the physical network node with the highest probability cannot be directly selected, because the network model parameters are randomly initialized. If the node with the highest probability is selected, the model will always be biased. Therefore, it is necessary to find a balance between the exploration of models and the utilization of existing models. At this time, the probability vector P of each node is obtained through this model, and then we randomly select the i-th node to construct a one-hot encoded vector, that is, the vector has n dimensions, only the i-th bit is 1, and the rest are all is 0. Then the loss function can be written as:
其中yi和pi分别是随机选择的one-hot向量和预测出来的概率向量P的第i维的值。然后才用反向求导的方式得到梯度g,该模型的训练结果倾向于当这个随机选择的节点能带来较大收益消耗比时,模型参数训练的方向是更倾向于做出相似的决策;而这个随机选择的节点带来的收益消耗比较低时,模型参数训练的方向是不鼓励做出相似的决策。因此,对梯度做出更新:Where y i and p i are the value of the i-th dimension of the randomly selected one-hot vector and the predicted probability vector P, respectively. Then, the gradient g is obtained by reverse derivation. The training result of the model tends to be that when the randomly selected node can bring a large ratio of income to consumption, the direction of model parameter training is more inclined to make similar decisions. ; and when the revenue consumption brought by this randomly selected node is relatively low, the direction of model parameter training is to discourage making similar decisions. So, make an update to the gradient:
g:=α·r·g (24)g:=α·r·g (24)
其中α是学习速率,控制模型训练的快慢。当α过大时,训练过程将无法收敛,错过全局最优解。当α过小时,训练过程又太慢,因此需要选择合适的学习速率。将奖励与梯度相乘,获得较大奖励的决策将对训练代理产生更大的影响,因此能更倾向于产生相似的决策;而获得较小的奖励或者是负的奖励的决策将对训练代理产生更小的影响。Where α is the learning rate, which controls the speed of model training. When α is too large, the training process will fail to converge and miss the global optimal solution. When α is too small, the training process is too slow, so it is necessary to choose an appropriate learning rate. Multiplying the reward with the gradient, a decision with a larger reward will have a greater impact on the training agent and thus be more inclined to produce similar decisions; while a decision with a smaller or negative reward will have a greater impact on the training agent have a smaller impact.
在该模型对一个虚拟网络请求进行训练时,由于虚拟网络请求一般包含多个虚拟网络请求节点。每个虚拟请求节点通过模型后,将梯度押入栈而不是直接应用到模型中,因为该虚拟网络请求有可能映射失败。如果映射失败,将该虚拟网络请求节点压入栈的部分清空,接着处理下一个虚拟网络请求。当虚拟网络请求到达的个数达到批处理的个数以后,将栈内的梯度全部应用于模型,然后将栈清空,重新计数。之所以应用批量梯度下降,首先是因为梯度更新需要消耗大量的时间,如果批量梯度下降将会节省很多时间。其次批量梯度下降将梯度在批量大小内进行了平均,训练出的结果更加稳定。When the model is trained on a virtual network request, the virtual network request generally contains multiple virtual network request nodes. After each virtual request node passes the model, the gradient is pushed into the stack instead of being directly applied to the model, because the virtual network request may fail to map. If the mapping fails, the part where the virtual network request node is pushed into the stack is cleared, and then the next virtual network request is processed. When the number of virtual network requests reaches the number of batches, all the gradients in the stack are applied to the model, and then the stack is cleared and counted again. The reason why batch gradient descent is applied is first of all because the gradient update takes a lot of time. If the batch gradient descent will save a lot of time. Secondly, the batch gradient descent averages the gradient within the batch size, and the training results are more stable.
一次完整的虚拟网络映射的训练过程的代码如表3中的算法2(Algorithm2)所示:The code of the training process of a complete virtual network mapping is shown in Algorithm 2 (Algorithm2) in Table 3:
表3table 3
第7-10行是节点映射的过程,11-13行是链路映射的过程。第28行当映射不成功时,会将栈里的梯度清空,从下一个虚拟网络映射请求开始训练。第21-23行,对Batch Size个梯度进行更新,并将请求计数器清零。Lines 7-10 are the process of node mapping, and lines 11-13 are the process of link mapping. In line 28, when the mapping is unsuccessful, the gradient in the stack will be cleared, and the training will start from the next virtual network mapping request. Lines 21-23 update the Batch Size gradients and clear the request counter.
测试阶段的伪代码如表4中的算法3(Algorithm 3)所示:The pseudocode of the test phase is shown in Algorithm 3 in Table 4:
表4Table 4
在测试阶段,直接采用贪婪策略从最大的概率节点中选择物理节点进行映射。如果节点和链路全部映射成功,那么对最终结果的长期平均收益,接受率和长期收益消耗比都有提升。In the test phase, the greedy strategy is directly used to select physical nodes from the nodes with the largest probability for mapping. If all nodes and links are mapped successfully, then the long-term average income, acceptance rate and long-term income-to-consumption ratio of the final result will all be improved.
对物理网络分配模型进行训练后,可将该模型应用于虚拟网络映射请求的处理。为了验证模型的泛化效果,我们在测试集上进行了实验。对照试验选择了三个。第一个对照模型采用的是baseline(基线)算法:After the physical network allocation model is trained, the model can be applied to the processing of virtual network mapping requests. In order to verify the generalization effect of the model, we conducted experiments on the test set. Three controlled trials were selected. The first control model uses the baseline (baseline) algorithm:
第二个对照模型采用的是Node Rank(节点排序)算法。第三个对照模型采用的是同样基于强化学习的算法RLVNE(Reinforcement Learning Algorithm for VirtualNetwork Embedding,用于虚拟网络嵌入的增强学习算法)。这三个算法都是将节点映射和链路映射分为两个阶段的虚拟网络映射算法,并且链路映射都采用深度优先遍历的方式,区别只是在于节点映射阶段采用的算法。The second comparison model uses the Node Rank algorithm. The third comparison model uses an algorithm RLVNE (Reinforcement Learning Algorithm for VirtualNetwork Embedding) that is also based on reinforcement learning. These three algorithms are all virtual network mapping algorithms that divide node mapping and link mapping into two stages, and the link mapping adopts the depth-first traversal method. The difference lies in the algorithm used in the node mapping stage.
在训练过程中,以长期收益消耗比作为评价指标。在每一个epoch(时间上的一点),如果长期平均收益比当前最佳的长期平均收益高,那么更新最佳的长期平均收益为本个epoch的长期平均收益,并且使用当前模型对测试集进行虚拟网络映射。在训练过程中,会有很多组对测试集的测试。显然最后一组结果是训练过程中模型最优的情况下,对测试集进行的虚拟网络映射。图6中本算法展示的是最后一组的测试集的结果,图6(a)中显示的为四个模型对同一组测试集测试结果的长期平均收益(long-term average revenue),图6(b)中显示的为四个模型对同一组测试集测试结果的收益消耗比,图6(c)中显示的为四个模型对同一组测试集测试结果的长期接受率;其中,RDA-VNE代表采用RDAM算法的模型,rl代表采用RLVNE算法的模型,NodeRank代表采用NodeRank算法的模型,Baseline代表采用baseline算法的模型。During the training process, the long-term benefit-to-consumption ratio is used as the evaluation index. At each epoch (a point in time), if the long-term average income is higher than the current best long-term average income, then update the best long-term average income to be the long-term average income of this epoch, and use the current model to test the set Virtual network mapping. During training, there will be many sets of tests on the test set. Obviously, the last set of results is the virtual network mapping of the test set when the model is optimal during the training process. In Figure 6, this algorithm shows the results of the last set of test sets. Figure 6(a) shows the long-term average revenue of the four models on the test results of the same set of test sets. Figure 6 Shown in (b) is the revenue consumption ratio of the four models to the test results of the same set of test sets, and shown in Figure 6(c) is the long-term acceptance rate of the four models to the test results of the same set of test sets; among them, RDA- VNE represents a model using the RDAM algorithm, rl represents a model using the RLVNE algorithm, NodeRank represents a model using the NodeRank algorithm, and Baseline represents a model using the baseline algorithm.
在测试阶段,虚拟网路请求的开始时间是22,结束时间是30000,以1000为一个时间单位,图6给出了在三十个时间段内,虚拟网络请求的评价指标的变化。在图6(a)和图6(b)中,开始阶段长期平均收益和接受率会有下降,因为随着虚拟网络请求的到来,物理资源会逐渐消耗。而开始阶段长期收益与消耗比不会有明显的下降,因为该指标和物理资源的多少无关。然后三个指标都趋于平稳,但可以看到在三个评价指标中,RDAM算法的收敛趋势和收敛值都要优于其他三种算法。通过该实验可以得出结论,在训练阶段RDN-VNE算法中强化学习代理学习到了物理网络节点的关系,并且在测试阶段可以将模型泛化,在测试集上表现出优越性。In the test phase, the start time of the virtual network request is 22, and the end time is 30,000, with 1000 as a time unit. Figure 6 shows the change of the evaluation index of the virtual network request in thirty time periods. In Figure 6(a) and Figure 6(b), the long-term average revenue and acceptance rate will decrease at the beginning, because the physical resources will be gradually consumed with the arrival of virtual network requests. In the initial stage, the long-term benefit-to-consumption ratio will not drop significantly, because this indicator has nothing to do with the amount of physical resources. Then the three indicators tend to be stable, but it can be seen that among the three evaluation indicators, the convergence trend and convergence value of the RDAM algorithm are better than the other three algorithms. Through this experiment, it can be concluded that the reinforcement learning agent learns the relationship of physical network nodes in the RDN-VNE algorithm in the training phase, and can generalize the model in the testing phase, showing superiority on the test set.
本实施例通过采用强化学习方法对基于神经网络建立的物理网络分配模型进行训练,可以有效地发现底层网络表示和虚拟网络请求之间的关系,从而完成有效的虚拟网络映射。In this embodiment, by adopting the reinforcement learning method to train the physical network allocation model based on the neural network, the relationship between the underlying network representation and the virtual network request can be effectively discovered, thereby completing effective virtual network mapping.
对应于上述实施例,本发明实施例还提供一种虚拟网络请求映射装置,其结构示意图如图7所示,包括:请求接收模块700,用于接收虚拟网络的映射请求;该映射请求包括虚拟节点、虚拟节点约束条件、虚拟链路及虚拟链路约束条件中的一种或多种;物理网络分配模块702,用于根据映射请求及预先建立的物理网络分配模型,为虚拟网络分配物理节点及物理链路;该物理网络分配模型通过神经网络建立。Corresponding to the above-mentioned embodiments, an embodiment of the present invention also provides a virtual network request mapping device, its structural diagram is shown in Figure 7, including: a request receiving module 700, configured to receive a virtual network mapping request; the mapping request includes a virtual One or more of nodes, virtual node constraints, virtual links, and virtual link constraints; the physical network allocation module 702 is used to allocate physical nodes for the virtual network according to the mapping request and the pre-established physical network allocation model and physical links; the physical network allocation model is established through a neural network.
上述物理网络分配模型可以通过以下方式建立:The above physical network allocation model can be established in the following ways:
(1)建立待分配的物理网络的数学模型;具体地,将物理网络的节点信息转换为对应的属性矩阵,将物理网络的链路信息转换为对应的邻接矩阵;利用谱方法消除属性矩阵及邻接矩阵的噪声,得到属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵;根据属性矩阵的嵌入矩阵及邻接矩阵的嵌入矩阵,确定物理网络的嵌入矩阵;根据矩阵摄动理论,对物理网络的嵌入矩阵进行求解,得到物理网络的数学模型;该数学模型为物理网络的静态更新模型。(1) Establish a mathematical model of the physical network to be assigned; specifically, convert the node information of the physical network into a corresponding attribute matrix, and convert the link information of the physical network into a corresponding adjacency matrix; use the spectral method to eliminate the attribute matrix and The noise of the adjacency matrix is used to obtain the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix; according to the embedding matrix of the attribute matrix and the embedding matrix of the adjacency matrix, the embedding matrix of the physical network is determined; according to the matrix perturbation theory, the embedding matrix of the physical network Solve to obtain the mathematical model of the physical network; the mathematical model is a static update model of the physical network.
(2)根据预设的模型架构、数学模型及预设的效果指标,建立神经网络的网络结构;该预设的效果指标可以为运营商的长期平均收益、收益消耗比和长期接受率中的一种或多种。(2) According to the preset model structure, mathematical model and preset effect index, establish the network structure of the neural network; the preset effect index can be the operator's long-term average revenue, revenue consumption ratio and long-term acceptance rate one or more.
(3)获取训练样本;该训练样本中包含多个所述虚拟网络的映射请求。(3) Obtain a training sample; the training sample includes multiple mapping requests of the virtual network.
(4)将训练样本输入至网络结构中进行训练,得到物理网络分配模型。(4) Input the training samples into the network structure for training to obtain the physical network allocation model.
本发明实施例提供的虚拟网络请求映射装置,与上述实施例提供的虚拟网络请求映射方法具有相同的技术特征,所以也能解决相同的技术问题,达到相同的技术效果。The virtual network request mapping device provided by the embodiment of the present invention has the same technical features as the virtual network request mapping method provided by the above embodiment, so it can also solve the same technical problem and achieve the same technical effect.
本实施方式提供了一种与上述方法实施方式相对应的虚拟网络请求映射实现装置。图8为该实现装置的结构示意图,如图7所示,该设备包括处理器1201和存储器1202;其中,存储器1202用于存储一条或多条计算机指令,一条或多条计算机指令被处理器执行,以实现上述虚拟网络请求映射方法。This implementation manner provides a device for implementing virtual network request mapping corresponding to the foregoing method implementation manner. Figure 8 is a schematic structural diagram of the implementation device, as shown in Figure 7, the device includes a processor 1201 and a memory 1202; wherein, the memory 1202 is used to store one or more computer instructions, and one or more computer instructions are executed by the processor , to implement the above virtual network request mapping method.
图8所示的实现装置还包括总线1203和转发芯片1204,处理器1201、转发芯片1204和存储器1202通过总线1203连接。该报文传输的实现装置可以是网络边缘设备。The implementation device shown in FIG. 8 further includes a bus 1203 and a forwarding chip 1204 , and the processor 1201 , the forwarding chip 1204 and the memory 1202 are connected through the bus 1203 . The device for realizing the packet transmission may be a network edge device.
其中,存储器1202可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。总线1203可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。Wherein, the memory 1202 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The bus 1203 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one double-headed arrow is used in FIG. 8 , but it does not mean that there is only one bus or one type of bus.
转发芯片1204用于通过网络接口与至少一个用户终端及其它网络单元连接,将封装好的IPv4报文或IPv6报文通过网络接口发送至用户终端。The forwarding chip 1204 is used to connect with at least one user terminal and other network elements through the network interface, and send the encapsulated IPv4 message or IPv6 message to the user terminal through the network interface.
处理器1201可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1201中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1201可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DigitalSignal Processing,简称DSP)、专用集成电路(Application Specific IntegratedCircuit,简称ASIC)、现成可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施方式中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施方式所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1202,处理器1201读取存储器1202中的信息,结合其硬件完成前述实施方式的方法的步骤。The processor 1201 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1201 or instructions in the form of software. The above-mentioned processor 1201 may be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it may also be a digital signal processor (Digital Signal Processing, referred to as DSP) , Application Specific Integrated Circuit (ASIC for short), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be realized or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 1202, and the processor 1201 reads the information in the memory 1202, and combines its hardware to complete the steps of the methods in the foregoing embodiments.
本发明实施方式还提供了一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,机器可执行指令促使处理器实现上述虚拟网络请求映射方法,具体实现可参见方法实施方式,在此不再赘述。The embodiment of the present invention also provides a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement For the above virtual network request mapping method, for specific implementation, please refer to the method implementation manner, which will not be repeated here.
本发明实施方式所提供的虚拟网络请求映射装置及实现装置,其实现原理及产生的技术效果和前述方法实施方式相同,为简要描述,装置实施方式部分未提及之处,可参考前述方法实施方式中相应内容。The virtual network request mapping device and implementation device provided by the embodiments of the present invention have the same realization principles and technical effects as the aforementioned method embodiments. For a brief description, the parts not mentioned in the device embodiment can be implemented with reference to the aforementioned methods. corresponding content in the method.
在本申请所提供的几个实施方式中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施方式仅仅是示意性的,例如,附图中的流程图和框图显示了根据本发明的多个实施方式的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several implementation manners provided in this application, it should be understood that the disclosed devices and methods may also be implemented in other ways. The device implementations described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functions and possible implementations of devices, methods, and computer program products according to multiple embodiments of the present invention. operate. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
另外,在本发明各个实施方式中的各功能模块或单元可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module or unit in each embodiment of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
最后应说明的是:以上所述实施方式,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施方式对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施方式所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施方式技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present disclosure, and are used to illustrate the technical solutions of the present disclosure, rather than to limit them, and the scope of protection of the present disclosure is not limited thereto. The embodiments describe the present disclosure in detail, and those skilled in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present disclosure Changes can be easily imagined, or equivalent replacements can be made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in this disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be defined by the protection scope of the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810894330.8A CN108989122B (en) | 2018-08-07 | 2018-08-07 | Virtual network requests mapping method, device and realization device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810894330.8A CN108989122B (en) | 2018-08-07 | 2018-08-07 | Virtual network requests mapping method, device and realization device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108989122A true CN108989122A (en) | 2018-12-11 |
CN108989122B CN108989122B (en) | 2019-04-16 |
Family
ID=64555183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810894330.8A Active CN108989122B (en) | 2018-08-07 | 2018-08-07 | Virtual network requests mapping method, device and realization device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108989122B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365514A (en) * | 2019-05-24 | 2019-10-22 | 北京邮电大学 | SDN multi-level virtual network mapping method and device based on reinforcement learning |
CN111106960A (en) * | 2019-12-23 | 2020-05-05 | 北京邮电大学 | A kind of virtual network mapping method, mapping device and readable storage medium |
CN111200550A (en) * | 2020-01-07 | 2020-05-26 | 中国烟草总公司郑州烟草研究院 | Virtual network mapping method and device |
CN112436992A (en) * | 2020-11-10 | 2021-03-02 | 北京邮电大学 | Virtual network mapping method and device based on graph convolution network |
CN113765683A (en) * | 2020-06-03 | 2021-12-07 | 中国移动通信集团浙江有限公司 | Cutover alarm shielding method and device for network slicing |
WO2022186808A1 (en) * | 2021-03-05 | 2022-09-09 | Havelsan Hava Elektronik San. Ve Tic. A.S. | Method for solving virtual network embedding problem in 5g and beyond networks with deep information maximization using multiple physical network structure |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105681153A (en) * | 2016-03-16 | 2016-06-15 | 北京邮电大学 | Virtual network mapping method and device |
EP3082307A1 (en) * | 2013-12-09 | 2016-10-19 | ZTE Corporation | Network path calculation method and apparatus |
CN106209415A (en) * | 2016-06-21 | 2016-12-07 | 北京邮电大学 | A kind of mapping method of virtual network and system |
CN106603293A (en) * | 2016-12-20 | 2017-04-26 | 南京邮电大学 | Network fault diagnosis method based on deep learning in virtual network environment |
CN107566194A (en) * | 2017-10-20 | 2018-01-09 | 重庆邮电大学 | A kind of method for realizing the mapping of cross-domain virtual network network |
CN108111335A (en) * | 2017-12-04 | 2018-06-01 | 华中科技大学 | A kind of method and system dispatched and link virtual network function |
-
2018
- 2018-08-07 CN CN201810894330.8A patent/CN108989122B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3082307A1 (en) * | 2013-12-09 | 2016-10-19 | ZTE Corporation | Network path calculation method and apparatus |
CN105681153A (en) * | 2016-03-16 | 2016-06-15 | 北京邮电大学 | Virtual network mapping method and device |
CN106209415A (en) * | 2016-06-21 | 2016-12-07 | 北京邮电大学 | A kind of mapping method of virtual network and system |
CN106603293A (en) * | 2016-12-20 | 2017-04-26 | 南京邮电大学 | Network fault diagnosis method based on deep learning in virtual network environment |
CN107566194A (en) * | 2017-10-20 | 2018-01-09 | 重庆邮电大学 | A kind of method for realizing the mapping of cross-domain virtual network network |
CN108111335A (en) * | 2017-12-04 | 2018-06-01 | 华中科技大学 | A kind of method and system dispatched and link virtual network function |
Non-Patent Citations (1)
Title |
---|
卢美莲 等: ""SDN-ScaSVNE:可伸缩的SDN生存性虚拟网络映射算法"", 《北京邮电大学学报》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365514A (en) * | 2019-05-24 | 2019-10-22 | 北京邮电大学 | SDN multi-level virtual network mapping method and device based on reinforcement learning |
CN111106960A (en) * | 2019-12-23 | 2020-05-05 | 北京邮电大学 | A kind of virtual network mapping method, mapping device and readable storage medium |
CN111106960B (en) * | 2019-12-23 | 2021-03-05 | 北京邮电大学 | A kind of virtual network mapping method, mapping device and readable storage medium |
CN111200550A (en) * | 2020-01-07 | 2020-05-26 | 中国烟草总公司郑州烟草研究院 | Virtual network mapping method and device |
CN113765683A (en) * | 2020-06-03 | 2021-12-07 | 中国移动通信集团浙江有限公司 | Cutover alarm shielding method and device for network slicing |
CN112436992A (en) * | 2020-11-10 | 2021-03-02 | 北京邮电大学 | Virtual network mapping method and device based on graph convolution network |
WO2022186808A1 (en) * | 2021-03-05 | 2022-09-09 | Havelsan Hava Elektronik San. Ve Tic. A.S. | Method for solving virtual network embedding problem in 5g and beyond networks with deep information maximization using multiple physical network structure |
Also Published As
Publication number | Publication date |
---|---|
CN108989122B (en) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108989122A (en) | Virtual network requests mapping method, device and realization device | |
Wang et al. | Resource-efficient federated learning with hierarchical aggregation in edge computing | |
Yao et al. | RDAM: A reinforcement learning based dynamic attribute matrix representation for virtual network embedding | |
WO2022257436A1 (en) | Data warehouse construction method and system based on wireless communication network, and device and medium | |
CN103179052B (en) | A kind of based on the central virtual resource allocation method and system of the degree of approach | |
CN109840154B (en) | A task-dependent computing migration method in mobile cloud environment | |
CN113518007B (en) | Multi-internet-of-things equipment heterogeneous model efficient mutual learning method based on federal learning | |
CN107493334A (en) | A kind of cloud and mist calculating network framework and the method for strengthening cloud and mist network architecture reliability | |
CN107948083B (en) | SDN data center congestion control method based on reinforcement learning | |
CN114970865B (en) | Quantum circuit processing method and device on quantum chip and electronic equipment | |
CN113328953B (en) | Method, device and storage medium for network congestion adjustment | |
CN112906865A (en) | Neural network architecture searching method and device, electronic equipment and storage medium | |
CN118784547A (en) | A routing optimization method based on graph neural network and deep reinforcement learning | |
Gao et al. | A deep learning framework with spatial-temporal attention mechanism for cellular traffic prediction | |
WO2025031515A1 (en) | Multi-user multi-task computation offloading method and apparatus with throughput prediction, and medium | |
CN111404815B (en) | Constrained routing method based on deep learning | |
CN115016889A (en) | A virtual machine optimization scheduling method for cloud computing | |
CN115562833A (en) | Workflow optimization scheduling method based on improved goblet sea squirt algorithm | |
CN118828700A (en) | A method for task offloading and resource allocation in MEC network | |
CN107659501B (en) | Energy Efficiency Optimal Transmission Method and System Based on Complex Gradient Network | |
CN117176729A (en) | Client selection method, device and storage medium applied to federal learning | |
CN115499876A (en) | Computing unloading strategy based on DQN algorithm under MSDE scene | |
CN116170439A (en) | Multi-service data cloud edge unloading method and system for novel load access | |
CN115293329A (en) | A parameter update method, device, device and storage medium | |
CN115412401A (en) | Method and device for training virtual network embedding model and virtual network embedding |
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 |