CN110166304A - A kind of method of combination, device, electronic equipment and the storage medium of cross-domain SFC - Google Patents

A kind of method of combination, device, electronic equipment and the storage medium of cross-domain SFC Download PDF

Info

Publication number
CN110166304A
CN110166304A CN201910472411.3A CN201910472411A CN110166304A CN 110166304 A CN110166304 A CN 110166304A CN 201910472411 A CN201910472411 A CN 201910472411A CN 110166304 A CN110166304 A CN 110166304A
Authority
CN
China
Prior art keywords
sfc
network function
node
data center
probability
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.)
Pending
Application number
CN201910472411.3A
Other languages
Chinese (zh)
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
Original Assignee
Beijing University of Posts and Telecommunications
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 filed Critical Beijing University of Posts and Telecommunications
Priority to CN201910472411.3A priority Critical patent/CN110166304A/en
Publication of CN110166304A publication Critical patent/CN110166304A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/142Network analysis or design using statistical or mathematical methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供了一种跨域SFC的编排方法、装置、电子设备及存储介质,所述方法包括:针对多条待编排SFC以及多个数据中心节点,基于不同网络功能节点部署于不同数据中心节点时所产生的VNF开销和带宽开销,构建初始概率集合,并构建转移概率矩阵和输出概率矩阵,然后,基于所构建的初始概率集合、转移概率矩阵、及输出概率矩阵,构建隐马尔可夫模型,利用隐马尔可夫模型中的初始概率、转移概率及输出概率,计算将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于隐状态概率对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列。本发明实施例,能够减少编排后SFC的跨域带宽开销。

Embodiments of the present invention provide a cross-domain SFC arrangement method, device, electronic equipment, and storage medium. The method includes: for a plurality of SFCs to be arranged and a plurality of data center nodes, deploying them in different data centers based on different network function nodes According to the VNF overhead and bandwidth overhead generated by the central node, the initial probability set is constructed, and the transition probability matrix and output probability matrix are constructed. Then, based on the constructed initial probability set, transition probability matrix, and output probability matrix, the hidden Mark can be constructed Using the HMM model, using the initial probability, transition probability, and output probability in the hidden Markov model, calculate the hidden state probability corresponding to the deployment of the network function node in the SFC in the data center node, and based on the hidden state probability Each SFC is arranged to obtain the hidden state subsequence corresponding to each SFC. The embodiment of the present invention can reduce the cross-domain bandwidth overhead of the orchestrated SFC.

Description

一种跨域SFC的编排方法、装置、电子设备及存储介质A cross-domain SFC orchestration method, device, electronic equipment and storage medium

技术领域technical field

本发明涉及通信技术领域,特别是涉及一种跨域SFC的编排方法、装置、电子设备及存储介质。The present invention relates to the technical field of communication, and in particular to a cross-domain SFC arrangement method, device, electronic equipment and storage medium.

背景技术Background technique

随着通信技术的快速发展,网络规模的不断壮大以及业务的不断扩展,为了完成网络中相应的服务,网络中流量需要按符合特定顺序的网络功能按次序处理,SFC(ServiceFunction Chains,业务功能链)定义了网络功能处理的顺序。实际应用中,网络运营商需要将流量引导到专有硬件网络功能来完成SFC对应的服务,但传统专有设备的网络功能在网络灵活性,可扩展性,可管理型和运营效率方面都表现出了明显的局限性,使得NFV(Network Functions Virtualization,网络功能虚拟化)应运而生。NFV是一种新的网络架构,将网络功能从专有硬件设备中解耦,以VNF(Virtualized Network Function,虚拟网络功能)的形式运行在通用设备上。With the rapid development of communication technology, the continuous growth of network scale and the continuous expansion of business, in order to complete the corresponding services in the network, the traffic in the network needs to be processed in order according to the network functions in a specific order. SFC (Service Function Chains, business function chain ) defines the order in which network functions are processed. In practical applications, network operators need to guide traffic to proprietary hardware network functions to complete the services corresponding to SFC, but the network functions of traditional proprietary devices perform well in terms of network flexibility, scalability, manageability and operational efficiency. Due to obvious limitations, NFV (Network Functions Virtualization, Network Functions Virtualization) came into being. NFV is a new network architecture that decouples network functions from proprietary hardware devices and runs them on general-purpose devices in the form of VNF (Virtualized Network Function).

随着云计算和大数据的广泛应用,分布于不同地理位置的多IDCN(Inter-DCNetwork,数据中心网络)已被广泛部署。通过在多IDCN中部署基于NFV的SFC,使得用户可以灵活地使用数据中心的计算资源、网络资源和存储资源等,并实现经济快捷的用户业务部署。尽管在多IDCN中部署SFC具有很大优势,但跨数据中心编排SFC是当前SFC编排的一项挑战。With the widespread application of cloud computing and big data, multiple IDCNs (Inter-DCNetwork, data center networks) distributed in different geographical locations have been widely deployed. By deploying NFV-based SFC in multiple IDCNs, users can flexibly use the computing resources, network resources, and storage resources of the data center, and realize economical and fast user service deployment. Although deploying SFC in multiple IDCNs has great advantages, orchestrating SFC across data centers is a current SFC orchestration challenge.

目前针对SFC编排的方法为:针对所有的SFC,基于SFC中VNF类型的相关性,对待编排的多条SFC逐一进行网络功能类型的遍历整合,直至将所有待编排SFC整合到一张或多张服务功能图中,该服务功能图包含所有待编排SFC请求的网络功能序列,然后,选择规模最大的服务功能图,对该服务功能图进行拓扑排序,进一步选择带宽需求量最低的网络功能顺序,使用最短路径算法将待编排SFC的网络功能依次部署到底层网络中。The current method for SFC orchestration is as follows: for all SFCs, based on the correlation of VNF types in SFC, traverse and integrate the network function types of multiple SFCs to be arranged one by one until all SFCs to be arranged are integrated into one or more sheets In the service function diagram, the service function diagram contains all network function sequences to be arranged for SFC requests, then select the largest service function diagram, perform topology sorting on the service function diagram, and further select the network function sequence with the lowest bandwidth demand, Use the shortest path algorithm to deploy the network functions of the SFC to be arranged to the underlying network in sequence.

然而,实际应用中,SFC通常需要部署在不同地理位置分布的数据中心上以满足SFC的性能需求或位置约束,例如,“代理功能”和“缓存功能”应该部署在企业网络附近的数据中心上,“数据包过滤器”应该部署在靠近流量源头的数据中心上等。现有的针对SFC编排的方法,通常基于SFC中VNF类型的相关性,将待编排SFC整合到一张或多张服务功能图中,以实现对SFC的编排。但是,当待编排的SFC数量较多时,整合后的服务功能图中,可能会出现待编排SFC中的前续功能节点与后续功能节点不相邻的情况,也即,前续功能节点与后续功能节点可能出现跨域情况,造成前续功能节点与后续功能节点之间的跨域带宽开销增大,导致编排后SFC的跨域带宽开销增大。However, in practical applications, SFC usually needs to be deployed in data centers distributed in different geographical locations to meet the performance requirements or location constraints of SFC. For example, "proxy functions" and "caching functions" should be deployed in data centers near the enterprise network , "packet filter" should be deployed on the data center close to the traffic source, etc. Existing methods for SFC orchestration usually integrate the SFC to be orchestrated into one or more service function diagrams based on the correlation of VNF types in the SFC, so as to realize the orchestration of the SFC. However, when the number of SFCs to be arranged is large, in the integrated service function diagram, it may appear that the previous function nodes in the SFC to be arranged are not adjacent to the subsequent function nodes, that is, the previous function nodes and subsequent function nodes are not adjacent to each other. Functional nodes may cross domains, resulting in an increase in the cross-domain bandwidth overhead between the previous functional node and the subsequent functional node, resulting in an increase in the cross-domain bandwidth overhead of the SFC after orchestration.

发明内容Contents of the invention

本发明实施例的目的在于提供一种跨域SFC的编排方法、装置、电子设备及存储介质,以减少编排后SFC的跨域带宽开销。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a cross-domain SFC orchestration method, device, electronic equipment, and storage medium, so as to reduce the cross-domain bandwidth overhead of the orchestrated SFC. The specific technical scheme is as follows:

第一方面,本发明实施例提供了一种跨域SFC的编排方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a cross-domain SFC orchestration method, the method including:

获取多条待编排的业务功能链SFC以及多个数据中心节点,每条所述SFC中均包括多个网络功能节点,所述数据中心节点用于部署所述SFC中的网络功能节点,一个所述网络功能节点部署于一个所述数据中心节点中;Obtain multiple service function chains SFCs to be programmed and multiple data center nodes, each of which includes multiple network function nodes, the data center nodes are used to deploy network function nodes in the SFC, and one The network function node is deployed in one of the data center nodes;

基于不同网络功能节点部署于不同数据中心节点时所产生的虚拟网络功能VNF开销和带宽开销,确定将不同网络功能节点部署于不同数据中心节点中的初始概率,并基于所确定的多个所述初始概率构建初始概率集合;Based on the virtual network function VNF overhead and bandwidth overhead generated when different network function nodes are deployed in different data center nodes, determine the initial probability of deploying different network function nodes in different data center nodes, and based on the determined multiple Initial probability constructs an initial probability set;

基于第一状态转移至第二状态所确定的转移概率,构建转移概率矩阵;所述第一状态为将SFC中第一网络功能节点部署于第一数据中心节点中的过程所对应的状态,所述第二状态为将SFC中第二网络功能节点部署于第二数据中心节点中的过程所对应的状态,所述第二网络功能节点为所述第一网络功能节点的相邻节点;Based on the transition probability determined by the transition from the first state to the second state, a transition probability matrix is constructed; the first state is the state corresponding to the process of deploying the first network function node in the SFC in the first data center node, so The second state is a state corresponding to the process of deploying the second network function node in the SFC in the second data center node, and the second network function node is an adjacent node of the first network function node;

基于第三状态下输出SFC中第三网络功能节点对应的功能类型的输出概率,构建输出概率矩阵;所述第三状态为将所述SFC中第三网络功能节点部署于第三数据中心节点中的过程所对应的状态;Based on the output probability of the function type corresponding to the third network function node in the output SFC in the third state, an output probability matrix is constructed; the third state is to deploy the third network function node in the SFC in the third data center node The state corresponding to the process;

基于所构建的所述初始概率集合、所述转移概率矩阵、以及所述输出概率矩阵,构建隐马尔可夫模型;Constructing a Hidden Markov Model based on the constructed initial probability set, the transition probability matrix, and the output probability matrix;

利用所述隐马尔可夫模型中的所述初始概率、所述转移概率以及所述输出概率,计算将所述SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于所述隐状态概率对所述多条SFC中每一条SFC进行编排,获得各所述SFC对应的隐状态子序列,得到所述多条SFC对应的多个隐状态子序列;所述隐状态子序列中包含的元素为:所述SFC中网络功能节点所部署的数据中心节点。Using the initial probability, the transition probability, and the output probability in the hidden Markov model, calculate the hidden state probability corresponding to deploying the network function node in the SFC in the data center node, and based on the The hidden state probability arranges each SFC in the plurality of SFCs, obtains a hidden state subsequence corresponding to each of the SFCs, and obtains a plurality of hidden state subsequences corresponding to the plurality of SFCs; the hidden state subsequence The elements contained in are: the data center nodes deployed by the network function nodes in the SFC.

可选地,利用第一预设表达式,确定将所述不同网络功能节点部署于所述不同数据中心节点中的初始概率;Optionally, using a first preset expression to determine an initial probability of deploying the different network function nodes in the different data center nodes;

利用第二预设表达式,确定所述第一状态转移至所述第二状态的转移概率;using a second preset expression to determine a transition probability from the first state to the second state;

利用第三预设表达式,确定所述第三状态下输出SFC中所述第三网络功能节点对应的功能类型的输出概率;Using a third preset expression to determine the output probability of the function type corresponding to the third network function node in the output SFC in the third state;

所述第一预设表达式为:The first preset expression is:

式中,πm表示将所述网络功能节点部署于第m个数据中心节点的初始概率,M表示数据中心节点的个数,表示第m个数据中心节点中的第s个VNF实例,表示将第一个网络功能节点部署于第m个数据中心节点中的第s个VNF实例所产生的开销,表示将起始网络功能节点部署于起始数据中心节点,第一个网络功能节点部署于第m个数据中心节点所产生的转移带宽开销,01表示SFC的起始网络功能节点到第一个网络功能节点的状态转移,σm表示从起始数据中心节点到第m个数据中心节点的转移;In the formula, π m represents the initial probability of deploying the network function node on the mth data center node, M represents the number of data center nodes, Indicates the sth VNF instance in the mth data center node, Indicates the overhead generated by deploying the first network function node to the sth VNF instance in the mth data center node, Indicates the transfer bandwidth overhead generated by deploying the initial network function node on the initial data center node and the first network function node on the mth data center node. 01 indicates that the initial network function node of the SFC goes to the first network The state transition of the function node, σm represents the transition from the initial data center node to the mth data center node;

所述第二预设表达式为:The second preset expression is:

式中, 表示状态转移至状态的转移概率,状态表示将第i-1个网络功能节点部署于第n个数据中心节点中的过程所对应的状态,状态表示将第i个网络功能节点部署于第m个数据中心节点中的过程所对应的状态,表示将第(i-1)个网络功能节点部署于数据中心节点n,第i个网络功能节点部署于数据中心m的转移带宽开销,(i-1)i表示第(i-1)个网络功能节点到第i个网络功能节点的转移,nm表示从第n个数据中心节点到第m个数据中心节点的转移,表示数据中心节点n到数据中心节点m的单位带宽费用,N表示数据中心节点的网络拓扑数量,表示第p条SFC的第(i-1)个网络功能节点与第i个网络功能节点之间的请求带宽量;In the formula, Indicates status transfer to status The transition probability of the state Indicates the state corresponding to the process of deploying the i-1th network function node in the nth data center node, state Indicates the state corresponding to the process of deploying the i-th network function node in the m-th data center node, Indicates the transfer bandwidth cost of deploying the (i-1)th network function node in data center node n, and deploying the i-th network function node in data center m, (i-1)i represents the (i-1)th network The transfer from the function node to the i-th network function node, nm means the transfer from the n-th data center node to the m-th data center node, Represents the unit bandwidth cost from data center node n to data center node m, N represents the number of network topologies of data center nodes, Indicates the amount of requested bandwidth between the (i-1)th network function node of the p-th SFC and the i-th network function node;

所述第三预设表达式为:The third preset expression is:

式中,表示状态下输出网络功能类型的概率,状态表示将第i个网络功能节点部署于第m个数据中心节点中的过程所对应的状态,表示第p条SFC的第i个网络功能节点的功能类型,表示状态下不输出网络功能类型的概率,表示将第i个网络功能节点部署于第m个数据中心节点中的第s个VNF实例所产生的开销,表示第m个数据中心节点中的第s个VNF实例的可靠性,表示第m个数据中心节点中的第s个VNF实例的功能类型。In the formula, Indicates status The following output network function type probability of state Indicates the state corresponding to the process of deploying the i-th network function node in the m-th data center node, Indicates the function type of the i-th network function node of the p-th SFC, Indicates status The network function type is not output under The probability, Indicates the overhead generated by deploying the i-th network function node to the s-th VNF instance in the m-th data center node, Indicates the reliability of the sth VNF instance in the mth data center node, Indicates the function type of the sth VNF instance in the mth data center node.

可选地,所述多条待编排的SFC为SFC集合;所述利用所述隐马尔可夫模型中的所述初始概率、所述转移概率以及所述输出概率,计算将所述SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于所述隐状态概率对所述多条SFC中每一条SFC进行编排,获得各所述SFC对应的隐状态子序列,得到所述多条SFC对应的多个隐状态子序列为:Optionally, the plurality of SFCs to be edited is a set of SFCs; using the initial probability, the transition probability and the output probability in the hidden Markov model to calculate the network in the SFC The hidden state probability corresponding to the functional node deployed in the data center node, and based on the hidden state probability, arranges each SFC in the plurality of SFCs, obtains the hidden state subsequence corresponding to each of the SFCs, and obtains the Multiple hidden state subsequences corresponding to multiple SFCs are:

利用所述隐马尔可夫模型中的所述初始概率、所述转移概率以及所述输出概率,计算将所述SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于所述隐状态概率对所述多条SFC中每一条SFC进行编排,获得各所述SFC对应的隐状态子序列,得到所述SFC集合对应的隐状态序列集合。Using the initial probability, the transition probability, and the output probability in the hidden Markov model, calculate the hidden state probability corresponding to deploying the network function node in the SFC in the data center node, and based on the The hidden state probability arranges each SFC in the plurality of SFCs, obtains hidden state subsequences corresponding to each of the SFCs, and obtains a hidden state sequence set corresponding to the set of SFCs.

可选地,所述利用所述隐马尔可夫模型中的所述初始概率、所述转移概率以及所述输出概率,计算将所述SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于所述隐状态概率对所述多条SFC中每一条SFC进行编排,获得各所述SFC对应的隐状态子序列,得到所述SFC集合对应的隐状态序列集合的步骤,包括:Optionally, using the initial probability, the transition probability, and the output probability in the hidden Markov model to calculate the hidden state probability, and arrange each SFC in the multiple SFCs based on the hidden state probability, obtain the hidden state subsequence corresponding to each of the SFCs, and obtain the hidden state sequence set corresponding to the SFC set, including :

判断所述SFC集合中是否存在待编排SFC;Judging whether there is an SFC to be edited in the SFC set;

如果所述SFC集合中存在待编排SFC,则选择所述SFC集合中最长的SFC作为当前编排SFC;If there is an SFC to be edited in the SFC set, select the longest SFC in the SFC set as the current edited SFC;

利用所述隐马尔可夫模型中的所述初始概率、所述转移概率以及所述输出概率,计算将所述当前编排SFC中每一网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于所述隐状态概率对所述当前编排SFC进行编排,获得所述当前编排SFC对应的隐状态子序列;Using the initial probability, the transition probability, and the output probability in the hidden Markov model, calculate the hidden state probability corresponding to deploying each network function node in the current orchestration SFC in a data center node , and arrange the current arrangement SFC based on the hidden state probability, and obtain the hidden state subsequence corresponding to the current arrangement SFC;

如果所述SFC集合中不存在待编排SFC,则输出所述SFC集合对应的隐状态序列集合。If there is no SFC to be programmed in the SFC set, then output the hidden state sequence set corresponding to the SFC set.

可选地,所述利用所述隐马尔可夫模型中的所述初始概率、所述转移概率以及所述输出概率,计算将所述当前编排SFC中每一网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于所述隐状态概率对所述当前编排SFC进行编排,获得所述当前编排SFC对应的隐状态子序列的步骤,包括:Optionally, using the initial probability, the transition probability, and the output probability in the hidden Markov model to calculate and deploy each network function node in the current orchestration SFC in the data center node The corresponding hidden state probability, and based on the hidden state probability, arrange the current arrangement SFC, and obtain the step of hidden state subsequence corresponding to the current arrangement SFC, including:

判断所述当前编排SFC是否编排完成;Judging whether the current arrangement of the SFC is completed;

如果所述当前编排SFC未编排完成,则判断所述当前编排SFC的当前编排网络功能节点是否为所述当前编排SFC的第一个网络功能节点;If the current programming SFC has not been programmed, then judging whether the current programming network function node of the current programming SFC is the first network function node of the current programming SFC;

如果所述当前编排SFC的当前编排网络功能节点是所述当前编排SFC的第一个网络功能节点,则基于所述隐马尔可夫模型中的所述初始概率,计算将该当前编排网络功能节点部署于每一数据中心节点中的初始隐状态概率;If the current orchestration network function node of the current orchestration SFC is the first network function node of the current orchestration SFC, then calculate the current orchestration network function node based on the initial probability in the hidden Markov model The initial hidden state probability deployed in each data center node;

如果所述当前编排SFC的当前编排网络功能节点不是所述当前编排SFC的第一个网络功能节点,则利用所述隐马尔可夫模型中的所述转移概率以及所述输出概率,计算将该当前编排网络功能节点部署于每一数据中心节点中的最大隐状态概率,并记录获得所述最大隐状态概率对应的前置数据中心节点的位置;If the current orchestration network function node of the current orchestration SFC is not the first network function node of the current orchestration SFC, then use the transition probability and the output probability in the hidden Markov model to calculate the Currently arrange the maximum hidden state probability of the network function node deployed in each data center node, and record the position of the preceding data center node corresponding to the maximum hidden state probability;

将所述当前编排SFC的当前编排网络功能节点的下一网络功能节点,作为所述当前编排SFC的当前编排网络功能节点,执行判断所述当前编排SFC是否编排完成的步骤;Using the network function node next to the currently programmed network function node of the currently programmed SFC as the current programmed network function node of the currently programmed SFC, performing the step of judging whether the currently programmed SFC is completed;

如果所述当前编排SFC编排完成,则将所述当前编排SFC的末尾网络功能节点作为当前网络功能节点,选择使所述当前网络功能节点的隐状态概率最大对应的第四数据中心节点部署所述当前网络功能节点,并将所述第四数据中心节点存储于所述当前编排SFC对应的隐状态子序列中;If the arrangement of the current arrangement SFC is completed, the last network function node of the current arrangement SFC is used as the current network function node, and the fourth data center node corresponding to the maximum hidden state probability of the current network function node is selected to deploy the The current network function node, and storing the fourth data center node in the hidden state subsequence corresponding to the current orchestration SFC;

将使所述当前网络功能节点的隐状态概率最大对应的前置数据中心节点,确定为所述当前网络功能节点的前一网络功能节点所对应的第五数据中心节点,在所述第五数据中心节点中部署所述当前网络功能节点的前一网络功能节点,并将所述第五数据中心节点存储于所述当前编排SFC对应的隐状态子序列中,将所述当前网络功能节点的前一网络功能节点作为当前网络功能节点;Determining the preceding data center node corresponding to the maximum hidden state probability of the current network function node as the fifth data center node corresponding to the previous network function node of the current network function node, in the fifth data Deploying the previous network function node of the current network function node in the central node, storing the fifth data center node in the hidden state subsequence corresponding to the current orchestration SFC, and storing the previous network function node of the current network function node A network function node as the current network function node;

判断所述当前网络功能节点的前一网络功能节点是否为所述当前编排SFC的第一个网络功能节点;judging whether the previous network function node of the current network function node is the first network function node of the current programmed SFC;

如果所述当前网络功能节点的前一网络功能节点不是所述当前编排SFC的第一个网络功能节点,则执行将使所述当前网络功能节点的隐状态概率最大对应的前置数据中心节点,确定为所述当前网络功能节点的前一网络功能节点所对应的第五数据中心节点的步骤;If the previous network function node of the current network function node is not the first network function node of the current orchestration SFC, execute the preceding data center node corresponding to the maximum hidden state probability of the current network function node, A step of determining the fifth data center node corresponding to the previous network function node of the current network function node;

如果所述当前网络功能节点的前一网络功能节点是所述当前编排SFC的第一个网络功能节点,则将所述当前编排SFC从所述SFC集合中删除。If the previous network function node of the current network function node is the first network function node of the current composed SFC, then delete the current composed SFC from the SFC set.

可选地,所述方法还包括:Optionally, the method also includes:

基于所述隐状态序列集合、编排后各所述SFC对应的可靠性值以及所述隐状态序列集合中各隐状态子序列对应的SFC中每一网络功能节点所对应的VNF的成本效益值,对所述VNF进行备份。Based on the hidden state sequence set, the reliability value corresponding to each of the SFCs after arrangement, and the cost-effectiveness value of the VNF corresponding to each network function node in the SFC corresponding to each hidden state subsequence in the hidden state sequence set, The VNF is backed up.

可选地,所述基于所述隐状态序列集合、编排后各所述SFC对应的可靠性值以及所述隐状态序列集合中各隐状态子序列对应的SFC中每一网络功能节点所对应的VNF的成本效益值,对所述VNF进行备份的步骤,包括:Optionally, based on the hidden state sequence set, the reliability value corresponding to each of the SFCs after arrangement, and the reliability value corresponding to each network function node in the SFC corresponding to each hidden state subsequence in the hidden state sequence set The cost-benefit value of the VNF, the steps of backing up the VNF, including:

遍历所述隐状态序列集合中每一隐状态子序列,将该隐状态子序列所对应的SFC作为当前SFC;Traverse each hidden state subsequence in the hidden state sequence set, and use the SFC corresponding to the hidden state subsequence as the current SFC;

计算所述当前SFC的可靠性值;calculating the reliability value of the current SFC;

判断所述当前SFC的可靠性值是否小于预设可靠性值;judging whether the reliability value of the current SFC is less than a preset reliability value;

当所述当前SFC的可靠性值小于预设可靠性值时,将所述当前SFC放置于第一集合中,并将经过所述当前SFC的VNF放置于第二集合中;When the reliability value of the current SFC is less than a preset reliability value, placing the current SFC in a first set, and placing the VNF passing through the current SFC in a second set;

判断所述第一集合是否为空;judging whether the first set is empty;

当所述第一集合不为空时,计算所述第二集合中每一VNF的成本效益值;When the first set is not empty, calculating a cost-benefit value for each VNF in the second set;

对最大成本效益值对应的VNF进行备份;Back up the VNF corresponding to the maximum cost-benefit value;

计算备份后所述第一集合中每一SFC的可靠性值;calculating the reliability value of each SFC in the first set after backup;

如果备份后所述第一集合中SFC的可靠性值不小于预设可靠性值,则将该SFC从所述第一集合中删除,并执行所述判断所述第一集合是否为空的步骤。If the reliability value of the SFC in the first set after backup is not less than the preset reliability value, then delete the SFC from the first set, and perform the step of judging whether the first set is empty .

第二方面,本发明实施例提供了一种跨域SFC的编排装置,所述装置包括:In a second aspect, an embodiment of the present invention provides a device for orchestrating a cross-domain SFC, the device comprising:

获取模块,用于获取多条待编排的业务功能链SFC以及多个数据中心节点,每条所述SFC中均包括多个网络功能节点,所述数据中心节点用于部署所述SFC中的网络功能节点,一个所述网络功能节点部署于一个所述数据中心节点中;An acquisition module, configured to acquire a plurality of service function chains SFCs to be arranged and a plurality of data center nodes, each of the SFCs includes a plurality of network function nodes, and the data center nodes are used to deploy the network in the SFC A function node, one of the network function nodes is deployed in one of the data center nodes;

第一构建模块,用于基于不同网络功能节点部署于不同数据中心节点时所产生的虚拟网络功能VNF开销和带宽开销,确定将不同网络功能节点部署于不同数据中心节点中的初始概率,并基于所确定的多个所述初始概率构建初始概率集合;The first building block is used to determine the initial probability of deploying different network function nodes in different data center nodes based on the virtual network function VNF overhead and bandwidth overhead generated when different network function nodes are deployed in different data center nodes, and based on A plurality of the determined initial probabilities construct an initial probability set;

第二构建模块,用于基于第一状态转移至第二状态所确定的转移概率,构建转移概率矩阵;所述第一状态为将SFC中第一网络功能节点部署于第一数据中心节点中的过程所对应的状态,所述第二状态为将SFC中第二网络功能节点部署于第二数据中心节点中的过程所对应的状态,所述第二网络功能节点为所述第一网络功能节点的相邻节点;The second building block is configured to construct a transition probability matrix based on the transition probability determined by transitioning from the first state to the second state; the first state is the deployment of the first network function node in the SFC in the first data center node The state corresponding to the process, the second state is the state corresponding to the process of deploying the second network function node in the SFC in the second data center node, the second network function node being the first network function node adjacent nodes;

第三构建模块,用于基于第三状态下输出SFC中第三网络功能节点对应的功能类型的输出概率,构建输出概率矩阵;所述第三状态为将所述SFC中第三网络功能节点部署于第三数据中心节点中的过程所对应的状态;The third building block is configured to construct an output probability matrix based on the output probability of the function type corresponding to the third network function node in the output SFC in the third state; the third state is to deploy the third network function node in the SFC a state corresponding to a process in the third data center node;

第四构建模块,用于基于所构建的所述初始概率集合、所述转移概率矩阵、以及所述输出概率矩阵,构建隐马尔可夫模型;A fourth construction module, configured to construct a hidden Markov model based on the constructed initial probability set, the transition probability matrix, and the output probability matrix;

编排模块,用于利用所述隐马尔可夫模型中的所述初始概率、所述转移概率以及所述输出概率,计算将所述SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于所述隐状态概率对所述多条SFC中每一条SFC进行编排,获得各所述SFC对应的隐状态子序列,得到所述多条SFC对应的多个隐状态子序列;所述隐状态子序列中包含的元素为:所述SFC中网络功能节点所部署的数据中心节点。An orchestration module, configured to use the initial probability, the transition probability, and the output probability in the hidden Markov model to calculate the hidden state corresponding to deploying the network function node in the SFC in the data center node probability, and arrange each SFC in the multiple SFCs based on the hidden state probability, obtain hidden state subsequences corresponding to each of the SFCs, and obtain multiple hidden state subsequences corresponding to the multiple SFCs; The elements included in the hidden state subsequence are: the data center nodes deployed by the network function nodes in the SFC.

第三方面,本发明实施例还提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In the third aspect, the embodiment of the present invention also provides an electronic device, including 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;

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

处理器,用于执行存储器上所存放的程序时,实现上述第一方面所述的一种跨域SFC的编排方法。The processor is used to implement the cross-domain SFC programming method described in the first aspect when executing the program stored in the memory.

第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的一种跨域SFC的编排方法。In the fourth aspect, the embodiment of the present invention also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes one of the above-mentioned first aspects. A cross-domain SFC orchestration method.

本发明实施例提供的一种跨域SFC的编排方法、装置、电子设备及存储介质,因HMM的隐藏状态不能直接观察到,但可以通过可观察序列观察到,每个可观察序列都是通过概率密度分布表现为各种状态的,每一个可观察序列是由一个具有相应概率密度分布的状态序列产生,本发明实施例中,将跨域SFC的编排建模成隐马尔可夫模型,再利用隐马尔可夫模型,对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,因是基于计算得到的将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,对SFC的网络功能节点进行部署,实现SFC的编排,可以降低编排后SFC的跨域带宽开销,进而减少SFC编排后所消耗的带宽资源。A cross-domain SFC arrangement method, device, electronic equipment, and storage medium provided by the embodiments of the present invention cannot be directly observed due to the hidden state of the HMM, but can be observed through observable sequences, and each observable sequence is obtained through The probability density distribution represents various states, and each observable sequence is generated by a state sequence with a corresponding probability density distribution. In the embodiment of the present invention, the cross-domain SFC arrangement is modeled as a hidden Markov model, and then Use the hidden Markov model to arrange each SFC in multiple SFCs to obtain the hidden state subsequence corresponding to each SFC, because it is based on the hidden state subsequence corresponding to the deployment of the network function nodes in the SFC in the data center nodes obtained through calculation. State probability, deploying SFC network function nodes to realize SFC orchestration, can reduce the cross-domain bandwidth overhead of SFC after orchestration, and then reduce the bandwidth resources consumed by SFC after orchestration.

当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, implementing any product or method of the present invention does not necessarily need to achieve all the above-mentioned advantages at the same time.

附图说明Description of drawings

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

图1为本发明实施例提供的一种跨域SFC的编排方法的流程示意图;FIG. 1 is a schematic flowchart of a cross-domain SFC orchestration method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种对SFC进行编排的实施方式流程示意图;Fig. 2 is a schematic flow chart of an implementation manner of arranging SFC provided by an embodiment of the present invention;

图3为图2中S203的一种实施方式流程示意图;Fig. 3 is a schematic flow chart of an embodiment of S203 in Fig. 2;

图4为本发明实施例提供的一种SFC结构示意图;FIG. 4 is a schematic structural diagram of an SFC provided by an embodiment of the present invention;

图5为本发明实施例提供的一种对VNF进行备份的实施方式流程示意图;FIG. 5 is a schematic flowchart of an implementation manner of backing up a VNF provided by an embodiment of the present invention;

图6a为本发明实施例提供的VNF开销与SFC需求量关系仿真图;Figure 6a is a simulation diagram of the relationship between VNF overhead and SFC demand provided by the embodiment of the present invention;

图6b为本发明实施例提供的跨域带宽开销与SFC需求量关系仿真图;Figure 6b is a simulation diagram of the relationship between cross-domain bandwidth overhead and SFC demand provided by the embodiment of the present invention;

图6c为本发明实施例提供的备份开销与SFC需求量关系仿真图;Figure 6c is a simulation diagram of the relationship between backup overhead and SFC demand provided by the embodiment of the present invention;

图6d为本发明实施例提供的总开销与SFC需求量关系仿真图;Figure 6d is a simulation diagram of the relationship between the total cost and the SFC demand provided by the embodiment of the present invention;

图7为本发明实施例提供的一种跨域SFC的编排装置的结构示意图;FIG. 7 is a schematic structural diagram of a cross-domain SFC orchestration device provided by an embodiment of the present invention;

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

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. 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.

如图1所示,图1为本发明实施例提供的一种跨域SFC的编排方法的流程示意图,该方法可以包括:As shown in FIG. 1, FIG. 1 is a schematic flowchart of a cross-domain SFC orchestration method provided by an embodiment of the present invention. The method may include:

S101,获取多条待编排的业务功能链SFC以及多个数据中心节点。S101. Obtain multiple service function chains SFCs to be orchestrated and multiple data center nodes.

本发明实施例中,对SFC进行编排时,可以获取多条待编排的SFC以及多个数据中心节点。其中,每条SFC中均包括多个网络功能节点,数据中心节点用于部署SFC中的网络功能节点,一个网络功能节点部署于一个数据中心节点中,一个数据中心节点表示一个数据中心网络。In the embodiment of the present invention, when the SFC is arranged, multiple SFCs to be arranged and multiple data center nodes can be obtained. Each SFC includes multiple network function nodes, the data center node is used to deploy the network function nodes in the SFC, one network function node is deployed in one data center node, and one data center node represents a data center network.

S102,基于不同网络功能节点部署于不同数据中心节点时所产生的VNF开销和带宽开销,确定将不同网络功能节点部署于不同数据中心节点中的初始概率,并基于所确定的多个初始概率构建初始概率集合。S102, based on the VNF overhead and bandwidth overhead generated when different network function nodes are deployed in different data center nodes, determine the initial probability of deploying different network function nodes in different data center nodes, and construct a network based on the determined multiple initial probabilities set of initial probabilities.

实际应用中,将网络功能节点部署于数据中心节点时,需要创建VNF实例,进而将网络功能节点部署于所创建的VNF实例上,进而会产生VNF开销。示例性的,VNF实例可以是vFW(Virtualized Fire Wall,虚拟防火墙)、vLB(Virtualized LoadBalance,虚拟流量均衡器)等。不同数据中心节点之间的网络进行数据交互时,需要占用相应的带宽,使得不同网络功能节点部署于不同数据中心节点时会产生相应的带宽开销。In practical applications, when deploying network function nodes on data center nodes, it is necessary to create a VNF instance, and then deploy the network function nodes on the created VNF instance, which will generate VNF overhead. Exemplarily, the VNF instance may be a vFW (Virtualized Fire Wall, virtual firewall), vLB (Virtualized LoadBalance, virtual traffic balancer) and the like. When the network between different data center nodes performs data interaction, it needs to occupy corresponding bandwidth, so that when nodes with different network functions are deployed on different data center nodes, corresponding bandwidth overhead will be generated.

因隐马尔可夫模型可以根据已知的状态序列计算概率最大的隐藏状态序列,而SFC的编排过程中,SFC中网络功能节点的序列是已知,需要得到的网络功能节点所部署的位置序列是未知的,因而本发明实施例中,将跨域SFC的编排问题建模成一个隐马尔可夫模型。基于不同网络功能节点部署于不同数据中心节点时所产生的VNF开销和带宽开销,确定将不同网络功能节点部署于不同数据中心节点中的初始概率。Because the hidden Markov model can calculate the hidden state sequence with the highest probability based on the known state sequence, and in the process of SFC arrangement, the sequence of network function nodes in SFC is known, and the sequence of positions deployed by network function nodes needs to be obtained is unknown, so in the embodiment of the present invention, the cross-domain SFC orchestration problem is modeled as a hidden Markov model. Based on the VNF overhead and bandwidth overhead generated when different network function nodes are deployed in different data center nodes, the initial probability of deploying different network function nodes in different data center nodes is determined.

作为本发明实施例一种可选的实施方式,可以利用第一预设表达式,确定将不同网络功能节点部署于不同数据中心节点中的初始概率,该第一预设表达式可以为:As an optional implementation of the embodiment of the present invention, the initial probability of deploying different network function nodes in different data center nodes may be determined by using a first preset expression, and the first preset expression may be:

式中,πm表示将网络功能节点部署于第m个数据中心节点的初始概率,M表示数据中心节点的个数,表示第m个数据中心节点中的第s个VNF实例,表示将第一个网络功能节点部署于所产生的开销,表示将起始网络功能节点部署于起始数据中心节点,第一个网络功能节点部署于第m个数据中心节点所产生的转移带宽开销,01表示SFC的起始网络功能节点到第一个网络功能节点的状态转移,σm表示从起始数据中心节点到第m个数据中心节点的转移。In the formula, π m represents the initial probability of deploying the network function node on the mth data center node, M represents the number of data center nodes, Indicates the sth VNF instance in the mth data center node, Indicates that the first network function node is deployed on the overhead incurred, Indicates the transfer bandwidth overhead generated by deploying the initial network function node on the initial data center node and the first network function node on the mth data center node. 01 indicates that the initial network function node of the SFC goes to the first network The state transition of the function node, σm represents the transition from the starting data center node to the mth data center node.

在确定将不同网络功能节点部署于不同数据中心节点中的初始概率之后,可以基于所确定的多个初始概率构建初始概率集合。示例性的,所构建的初始概率集合可以表示为:Π={π12,…πM},其中,πM表示将网络功能节点部署于第M个数据中心节点的初始概率。After determining initial probabilities of deploying different network function nodes in different data center nodes, an initial probability set may be constructed based on the determined multiple initial probabilities. Exemplarily, the constructed initial probability set may be expressed as: Π={π 1 , π 2 ,...π M }, where π M represents the initial probability of deploying the network function node on the Mth data center node.

S103,基于第一状态转移至第二状态所确定的转移概率,构建转移概率矩阵。S103. Construct a transition probability matrix based on the determined transition probability from the first state to the second state.

本发明实施例中,可以确定第一状态转移至第二状态的转移概率,再基于所确定的转移概率,构建转移概率矩阵。其中,第一状态为将SFC中第一网络功能节点部署于第一数据中心节点中的过程所对应的状态,第二状态为将SFC中第二网络功能节点部署于第二数据中心节点中的过程所对应的状态,第二网络功能节点为第一网络功能节点的相邻节点。本发明实施例中,SFC中网络功能节点的顺序是可观察序列,将SFC中的网络功能节点部署的数据中心节点是不能直接观察到的,但可以通过可观察序列的中间转化,表现为各种状态。示例性的,可以将SFC中第一网络功能节点部署于第一数据中心节点中的过程转化为一种状态,该状态表示为第一状态。In the embodiment of the present invention, the transition probability from the first state to the second state may be determined, and then a transition probability matrix may be constructed based on the determined transition probability. Wherein, the first state is the state corresponding to the process of deploying the first network function node in the SFC to the first data center node, and the second state is the state corresponding to the process of deploying the second network function node in the SFC to the second data center node In the state corresponding to the process, the second network function node is an adjacent node of the first network function node. In the embodiment of the present invention, the order of the network function nodes in the SFC is an observable sequence, and the data center nodes deployed by the network function nodes in the SFC cannot be directly observed, but can be expressed as various state. Exemplarily, the process of deploying the first network function node in the first data center node in the SFC may be transformed into a state, which is denoted as the first state.

作为本发明实施例一种可选的实施方式,可以利用第二预设表达式,确定第一状态转移至第二状态的转移概率,该第二预设表达式可以为:As an optional implementation of the embodiment of the present invention, a second preset expression may be used to determine the transition probability of the transition from the first state to the second state, and the second preset expression may be:

式中, 表示状态转移至状态的转移概率,状态表示将第i-1个网络功能节点部署于第n个数据中心节点中的过程所对应的状态,状态表示将第i个网络功能节点部署于第m个数据中心节点中的过程所对应的状态,表示将第(i-1)个网络功能节点部署于数据中心节点n,第i个网络功能节点部署于数据中心m的转移带宽开销,(i-1)i表示第(i-1)个网络功能节点到第i个网络功能节点的转移,nm表示从第n个数据中心节点到第m个数据中心节点的转移,表示数据中心节点n到数据中心节点m的单位带宽费用,N表示数据中心节点的网络拓扑数量,表示第p条SFC的第(i-1)个网络功能节点与第i个网络功能节点之间的请求带宽量。In the formula, Indicates status transfer to state The transition probability of the state Indicates the state corresponding to the process of deploying the i-1th network function node in the nth data center node, state Indicates the state corresponding to the process of deploying the i-th network function node in the m-th data center node, Indicates the transfer bandwidth cost of deploying the (i-1)th network function node in data center node n, and deploying the i-th network function node in data center m, (i-1)i represents the (i-1)th network The transfer from the function node to the i-th network function node, nm means the transfer from the n-th data center node to the m-th data center node, Represents the unit bandwidth cost from data center node n to data center node m, N represents the number of network topologies of data center nodes, Indicates the amount of requested bandwidth between the (i-1)th network function node of the p-th SFC and the i-th network function node.

示例性的,所构建的转移概率矩阵可以表示为:Exemplarily, the constructed transition probability matrix can be expressed as:

其中,A表示所构建的转移概率矩阵,表示状态转移至状态的转移概率,状态表示将第i-1个网络功能节点部署于第1个数据中心节点中的过程所对应的状态,状态表示将第i个网络功能节点部署于第M个数据中心节点中的过程所对应的状态。Among them, A represents the constructed transition probability matrix, Indicates status transfer to state The transition probability of the state Indicates the state corresponding to the process of deploying the i-1th network function node in the first data center node, state Indicates the state corresponding to the process of deploying the i-th network function node in the M-th data center node.

S104,基于第三状态下输出SFC中第三网络功能节点对应的功能类型的输出概率,构建输出概率矩阵。S104. Construct an output probability matrix based on the output probability of the function type corresponding to the third network function node in the output SFC in the third state.

本发明实施例中,可以确定第三状态下输出SFC中第三网络功能节点对应的功能类型的输出概率,再根据所确定的输出概率构建输出概率矩阵。其中,第三状态为将SFC中第三网络功能节点部署于第三数据中心节点中的过程所对应的状态。In the embodiment of the present invention, the output probability of the function type corresponding to the third network function node in the output SFC in the third state may be determined, and then an output probability matrix is constructed according to the determined output probability. Wherein, the third state is a state corresponding to the process of deploying the third network function node in the SFC in the third data center node.

作为本发明实施例一种可选的实施方式,可以利用第三预设表达式,确定第三状态下输出SFC中第三网络功能节点对应的功能类型的输出概率,该第三预设表达式可以为:As an optional implementation of the embodiment of the present invention, the third preset expression can be used to determine the output probability of the function type corresponding to the third network function node in the output SFC in the third state, the third preset expression Can be:

式中,表示状态下输出网络功能类型的概率,状态表示将第i个网络功能节点部署于第m个数据中心节点中的过程所对应的状态,表示第p条SFC的第i个网络功能节点的功能类型,表示状态下不输出网络功能类型的概率,表示第m个数据中心节点中的第s个VNF实例,表示将第i个网络功能节点部署于所产生的开销,表示的可靠性值,表示的功能类型。In the formula, Indicates status The following output network function type probability of state Indicates the state corresponding to the process of deploying the i-th network function node in the m-th data center node, Indicates the function type of the i-th network function node of the p-th SFC, Indicates status The network function type is not output under The probability, Indicates the sth VNF instance in the mth data center node, Indicates that the i-th network function node is deployed on the overhead incurred, express the reliability value of express type of function.

示例性的,所构建的输出概率矩阵可以表示为:Exemplarily, the constructed output probability matrix can be expressed as:

其中,B表示所构建的输出概率矩阵,表示状态下输出网络功能类型的概率,状态表示将第i个网络功能节点部署于第M个数据中心节点中的过程所对应的状态,表示第p条SFC的第i个网络功能节点对应的功能类型。Among them, B represents the constructed output probability matrix, Indicates status The following output network function type probability of state Indicates the state corresponding to the process of deploying the i-th network function node in the M-th data center node, Indicates the function type corresponding to the i-th network function node of the p-th SFC.

S105,基于所构建的初始概率集合、转移概率矩阵、以及输出概率矩阵,构建隐马尔可夫模型。S105. Construct a hidden Markov model based on the constructed initial probability set, transition probability matrix, and output probability matrix.

作为本发明实施例一种可选的实施方式,可以基于所构建的初始概率集合Π、转移概率矩阵A、以及输出概率矩阵B,构建隐马尔可夫模型的三元组模型,该三元组模型可以表示为(Π,A,B)。As an optional implementation of the embodiment of the present invention, based on the constructed initial probability set Π, transition probability matrix A, and output probability matrix B, a triplet model of hidden Markov model can be constructed, the triplet The model can be expressed as (Π, A, B).

S106,利用隐马尔可夫模型中的初始概率、转移概率以及输出概率,计算将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于隐状态概率对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,得到多条SFC对应的多个隐状态子序列。S106. Using the initial probability, transition probability, and output probability in the hidden Markov model, calculate the hidden state probability corresponding to deploying the network function node in the SFC in the data center node, and based on the hidden state probability One SFC is arranged to obtain hidden state subsequences corresponding to each SFC, and multiple hidden state subsequences corresponding to multiple SFCs are obtained.

本发明实施例中,SFC中网络功能节点的顺序是可观察序列,将SFC中的网络功能节点部署的数据中心节点是不能直接观察到的,但可以通过可观察序列观察到,每个可观察序列都是通过概率密度分布表现为各种状态的,每一个可观察序列是由一个具有相应概率密度分布的状态序列产生。本发明实施例中,计算将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,进而可以基于隐状态概率对多条SFC中每一条SFC进行编排。其中,所得到的隐状态子序列中包含的元素可以为:SFC中网络功能节点所部署的数据中心节点。In the embodiment of the present invention, the order of the network function nodes in the SFC is an observable sequence, and the data center nodes deployed by the network function nodes in the SFC cannot be directly observed, but can be observed through the observable sequence, and each observable Sequences are expressed as various states through probability density distributions, and each observable sequence is generated by a state sequence with a corresponding probability density distribution. In the embodiment of the present invention, the hidden state probability corresponding to deploying the network function node in the SFC in the data center node is calculated, and then each SFC in the multiple SFCs can be arranged based on the hidden state probability. Wherein, the elements included in the obtained hidden state subsequence may be: the data center nodes deployed by the network function nodes in the SFC.

作为本发明实施例一种可选的实施方式,多条待编排的SFC可以表示为SFC集合。上述步骤S106具体可以为:As an optional implementation manner of the embodiment of the present invention, multiple SFCs to be edited may be expressed as an SFC set. The above step S106 may specifically be:

利用隐马尔可夫模型中的初始概率、转移概率以及输出概率,计算将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于隐状态概率对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,得到SFC集合对应的隐状态序列集合。Using the initial probability, transition probability, and output probability in the hidden Markov model, calculate the hidden state probability corresponding to the deployment of the network function node in the SFC in the data center node, and based on the hidden state probability for each SFC in multiple SFCs Perform arrangement to obtain the hidden state subsequence corresponding to each SFC, and obtain the hidden state sequence set corresponding to the SFC set.

示例性的,SFC集合可以表示为:SFC={S1,S2,…Sq},SFC集合对应的隐状态序列集合可以表示为:Q={Q1,Q2,…Qq},其中,Sq表示第q条SFC,Qq表示第q条SFC对应的隐状态子序列。Exemplarily, the SFC set can be expressed as: SFC={S 1 , S 2 ,...S q }, the hidden state sequence set corresponding to the SFC set can be expressed as: Q={Q 1 ,Q 2 ,...Q q }, Among them, S q represents the qth SFC, and Q q represents the hidden state subsequence corresponding to the qth SFC.

作为本发明实施例一种可选的实施方式,利用隐马尔可夫模型中的初始概率、转移概率以及输出概率,计算将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于隐状态概率对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,得到SFC集合对应的隐状态序列集合的实施方式可参见图2,该实施方式可以包括:As an optional implementation of the embodiment of the present invention, use the initial probability, transition probability and output probability in the hidden Markov model to calculate the hidden state probability corresponding to deploying the network function node in the SFC in the data center node, And based on the hidden state probability, arrange each SFC in the multiple SFCs, obtain the hidden state subsequence corresponding to each SFC, and obtain the hidden state sequence set corresponding to the SFC set. Refer to FIG. 2, and this embodiment may include:

S201,判断SFC集合中是否存在待编排SFC。S201. Determine whether there is an SFC to be programmed in the SFC set.

针对待编排的SFC集合,判断该SFC集合中是否存在待编排SFC,如果SFC集合中存在待编排SFC,则说明正在对待编排SFC进行编排,或即将开始对待编排SFC进行编排,则执行S202的步骤;如果SFC集合中不存在待编排SFC,则说明已将待编排SFC编排完成,则执行S204的步骤。For the SFC set to be edited, it is judged whether there is an SFC to be edited in the SFC set, if there is an SFC to be edited in the SFC set, it means that the SFC to be edited is being edited, or the SFC to be edited is about to be edited, and the step of S202 is executed ; If there is no SFC to be programmed in the SFC set, it means that the SFC to be programmed has been programmed, and the step S204 is executed.

S202,如果SFC集合中存在待编排SFC,则选择SFC集合中最长的SFC作为当前编排SFC。S202. If there is an SFC to be edited in the SFC set, select the longest SFC in the SFC set as the currently edited SFC.

作为本发明实施例一种可选的实施方式,如果SFC集合中存在待编排SFC,为简化SFC编排的复杂度,选择SFC集合中最长的SFC作为当前编排SFC,该最长的SFC可以为:包含网络功能节点数最多对应的SFC。示例性的,该最长的SFC可以表示为:其中,表示第p条SFC的第K个网络功能节点。As an optional implementation of the embodiment of the present invention, if there is an SFC to be arranged in the SFC set, in order to simplify the complexity of SFC arrangement, the longest SFC in the SFC set is selected as the current arrangement SFC, and the longest SFC can be : Contains the SFC corresponding to the largest number of network function nodes. Exemplarily, the longest SFC can be expressed as: in, Indicates the Kth network function node of the pth SFC.

S203,利用隐马尔可夫模型中的初始概率、转移概率以及输出概率,计算将当前编排SFC中每一网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于隐状态概率对当前编排SFC进行编排,获得当前编排SFC对应的隐状态子序列。S203. Using the initial probability, transition probability, and output probability in the hidden Markov model, calculate the hidden state probability corresponding to deploying each network function node in the current orchestration SFC in the data center node, and based on the hidden state probability Arrange the SFC to perform the arrangement, and obtain the hidden state subsequence corresponding to the currently arranged SFC.

确定当前编排SFC后,对当前编排SFC进行编排,其具体实现过程在下文详细介绍。After the current orchestration SFC is determined, the current orchestration SFC is arranged, and the specific implementation process is described in detail below.

S204,如果SFC集合中不存在待编排SFC,则输出SFC集合对应的隐状态序列集合。S204, if there is no SFC to be programmed in the SFC set, output a hidden state sequence set corresponding to the SFC set.

SFC集合中不存在待编排SFC,则表明已将待编排SFC编排完成,此时输出SFC集合对应的隐状态序列集合。If there is no SFC to be programmed in the SFC set, it indicates that the SFC to be programmed has been programmed, and at this time, the hidden state sequence set corresponding to the SFC set is output.

作为本发明实施例一种可选的实施方式,上述步骤S203的具体实施方式可参见图3,该实施方式可以包括:As an optional implementation manner of the embodiment of the present invention, the specific implementation manner of the above step S203 can be referred to FIG. 3 , and this implementation manner may include:

S2031,判断当前编排SFC是否编排完成。S2031, judging whether the programming of the currently programmed SFC is completed.

针对当前编排SFC,可以判断当前编排SFC是否编排完成,如果是,则执行S2032的步骤;如果不是,则执行S2036的步骤。For the currently edited SFC, it can be judged whether the currently edited SFC is edited, if yes, execute step S2032; if not, execute step S2036.

S2032,如果当前编排SFC未编排完成,则判断当前编排SFC的当前编排网络功能节点是否为当前编排SFC的第一个网络功能节点。S2032. If the current programming of the SFC has not been completed, determine whether the current programming network function node of the current programming SFC is the first network function node of the current programming SFC.

在当前编排SFC未编排完成时,可以判断当前编排SFC的当前编排网络功能节点是否为当前编排SFC的第一个网络功能节点,如果是,则执行S2033的步骤;如果不是,则执行S2034的步骤。When the current layout SFC is not completed, it can be judged whether the current layout network function node of the current layout SFC is the first network function node of the current layout SFC, if yes, then perform the step of S2033; if not, then perform the step of S2034 .

S2033,如果当前编排SFC的当前编排网络功能节点是当前编排SFC的第一个网络功能节点,则基于隐马尔可夫模型中的初始概率,计算将该当前编排网络功能节点部署于每一数据中心节点中的初始隐状态概率。S2033, if the current orchestration network function node of the current orchestration SFC is the first network function node of the current orchestration SFC, calculate and deploy the current orchestration network function node in each data center based on the initial probability in the hidden Markov model Initial hidden state probabilities in nodes.

作为本发明实施例一种可选的实施方式,可以利用第四预设表达式来基于隐马尔可夫模型中的初始概率,计算将该当前编排网络功能节点部署于每一数据中心节点中的初始隐状态概率,因该当前编排网络功能节点是当前编排SFC的第一个网络功能节点,故计算的该第一个网络功能节点对应的初始隐状态概率,也可以是它的最大隐状态概率。该第四预设表达式可以为:As an optional implementation of the embodiment of the present invention, the fourth preset expression can be used to calculate the deployment of the current orchestration network function node in each data center node based on the initial probability in the hidden Markov model Initial hidden state probability, because the current orchestration network function node is the first network function node of the current orchestration SFC, the calculated initial hidden state probability corresponding to the first network function node can also be its maximum hidden state probability . The fourth preset expression may be:

式中,表示该当前编排SFC的第一个网络功能节点部署于数据中心节点m的初始隐状态概率,πm表示将网络功能节点部署于第m个数据中心节点的初始概率,表示状态下输出网络功能类型的概率,状态表示将第一个网络功能节点部署于第m个数据中心节点中的过程所对应的状态,表示第p条SFC的第一个网络功能节点的功能类型。In the formula, Indicates the initial hidden state probability that the first network function node of the current orchestration SFC is deployed on the data center node m, π m represents the initial probability of deploying the network function node on the mth data center node, Indicates status The following output network function type probability of state Indicates the state corresponding to the process of deploying the first network function node in the mth data center node, Indicates the function type of the first network function node of the p-th SFC.

S2034,如果当前编排SFC的当前编排网络功能节点不是当前编排SFC的第一个网络功能节点,则利用隐马尔可夫模型中的转移概率以及输出概率,计算将该当前编排网络功能节点部署于每一数据中心节点中的最大隐状态概率,并记录获得最大隐状态概率对应的前置数据中心节点的位置。S2034. If the current orchestration network function node of the current orchestration SFC is not the first network function node of the current orchestration SFC, calculate and deploy the current orchestration network function node in each The maximum hidden state probability in a data center node, and the position of the preceding data center node corresponding to the maximum hidden state probability is recorded.

作为本发明实施例一种可选的实施方式,在当前编排SFC的当前编排网络功能节点不是当前编排SFC的第一个网络功能节点时,则可以利用第五预设表达式来计算将该当前编排网络功能节点部署于每一数据中心节点中的最大隐状态概率,并记录获得最大隐状态概率对应的前置数据中心节点的位置。该第五预设表达式可以为:As an optional implementation of the embodiment of the present invention, when the current network function node of the current SFC layout is not the first network function node of the current SFC layout, the fifth preset expression can be used to calculate the current Arranging the maximum hidden state probability of network function nodes deployed in each data center node, and recording the position of the front data center node corresponding to the maximum hidden state probability. The fifth preset expression may be:

式中,表示将该当前编排SFC的第i个网络功能节点部署于数据中心节点m中的最大隐状态概率,表示将当前编排SFC的第i-1个网络功能节点部署于数据中心节点x中的最大隐状态概率,表示状态转移至状态的转移概率,状态表示将第i-1个网络功能节点部署于第x个数据中心节点中的过程所对应的状态,状态表示将第i个网络功能节点部署于第m个数据中心节点中的过程所对应的状态,表示状态下输出网络功能类型的概率,状态表示将第i个网络功能节点部署于第m个数据中心节点中的过程所对应的状态,表示第p条SFC的第i个网络功能节点的功能类型。In the formula, Indicates the maximum hidden state probability of deploying the i-th network function node of the currently orchestrated SFC in the data center node m, Indicates the maximum hidden state probability of deploying the i-1th network function node of the currently orchestrated SFC in the data center node x, Indicates status transfer to status The transition probability of the state Indicates the state corresponding to the process of deploying the i-1th network function node in the xth data center node, state Indicates the state corresponding to the process of deploying the i-th network function node in the m-th data center node, Indicates status The following output network function type probability of state Indicates the state corresponding to the process of deploying the i-th network function node in the m-th data center node, Indicates the function type of the i-th network function node of the p-th SFC.

S2035,将当前编排SFC的当前编排网络功能节点的下一网络功能节点,作为当前编排SFC的当前编排网络功能节点,执行判断当前编排SFC是否编排完成的步骤。S2035. Use the next network function node of the currently programmed network function node of the currently programmed SFC as the current programmed network function node of the currently programmed SFC, and perform the step of judging whether the currently programmed SFC is completed.

在计算将该当前编排网络功能节点部署于每一数据中心节点中的最大隐状态概率,并记录获得最大隐状态概率对应的前置数据中心节点的位置后,将当前编排SFC的当前编排网络功能节点的下一网络功能节点,作为当前编排SFC的当前编排网络功能节点,然后,执行S2031的步骤,直至当前编排SFC编排完成。After calculating the maximum hidden state probability of deploying the current orchestration network function node in each data center node, and recording the location of the front data center node corresponding to the maximum hidden state probability, the current orchestration network function of the current orchestration SFC The next network function node of the node is used as the current network function node of the current program SFC, and then the step of S2031 is executed until the program of the current program SFC is completed.

S2036,如果当前编排SFC编排完成,则将当前编排SFC的末尾网络功能节点作为当前网络功能节点,选择使当前网络功能节点的隐状态概率最大对应的第四数据中心节点部署当前网络功能节点,并将第四数据中心节点存储于当前编排SFC对应的隐状态子序列中。S2036. If the current arrangement of the SFC is completed, use the end network function node of the current arrangement SFC as the current network function node, select the fourth data center node corresponding to the largest hidden state probability of the current network function node to deploy the current network function node, and Store the fourth data center node in the hidden state subsequence corresponding to the current orchestration SFC.

在当前编排SFC编排完成时,将当前编排SFC的末尾网络功能节点,即当前编排SFC的最后一个网络功能节点作为当前网络功能节点,选择使当前网络功能节点的隐状态概率最大对应的第四数据中心节点部署当前网络功能节点,并将第四数据中心节点存储于当前编排SFC对应的隐状态子序列中。示例性的,该当前编排SFC是第p条SFC,当前编排SFC的末尾网络功能节点为使当前网络功能节点的隐状态概率最大对应的第四数据中心节点为dm,将dm存储于当前编排SFC对应的隐状态子序列中。When the arrangement of the current arranged SFC is completed, the last network function node of the currently arranged SFC, that is, the last network function node of the currently arranged SFC is taken as the current network function node, and the fourth data corresponding to the maximum hidden state probability of the current network function node is selected The central node deploys the current network function node, and stores the fourth data center node in the hidden state subsequence corresponding to the current orchestration SFC. Exemplarily, the current orchestration SFC is the pth SFC, and the end network function node of the current orchestration SFC is Make the current network function node The fourth data center node corresponding to the largest hidden state probability is d m , and d m is stored in the hidden state subsequence corresponding to the current orchestration SFC.

S2037,将使当前网络功能节点的隐状态概率最大对应的前置数据中心节点,确定为当前网络功能节点的前一网络功能节点所对应的第五数据中心节点,在第五数据中心节点中部署当前网络功能节点的前一网络功能节点,并将第五数据中心节点存储于当前编排SFC对应的隐状态子序列中,将当前网络功能节点的前一网络功能节点作为当前网络功能节点。S2037, determine the preceding data center node corresponding to the maximum hidden state probability of the current network function node as the fifth data center node corresponding to the previous network function node of the current network function node, and deploy in the fifth data center node The network function node preceding the current network function node, storing the fifth data center node in the hidden state subsequence corresponding to the current orchestration SFC, and using the network function node preceding the current network function node as the current network function node.

示例性的,使当前网络功能节点的隐状态概率最大对应的第四数据中心节点为dm,使当前网络功能节点的隐状态概率最大对应的前置数据中心节点,即当前网络功能节点的前一网络功能节点所对应的第五数据中心节点dx,在dx中部署将dx存储于当前编排SFC对应的隐状态子序列中,并将作为当前网络功能节点。Exemplarily, make the current network function node The fourth data center node corresponding to the largest hidden state probability is d m , so that the current network function node The previous data center node corresponding to the largest hidden state probability of , that is, the previous network function node of the current network function node The corresponding fifth data center node d x is deployed in d x Store d x in the hidden state subsequence corresponding to the current orchestration SFC, and set As the current network function node.

S2038,判断当前网络功能节点的前一网络功能节点是否为当前编排SFC的第一个网络功能节点。S2038, judging whether the previous network function node of the current network function node is the first network function node for currently programming the SFC.

判断当前网络功能节点的前一网络功能节点是否为当前编排SFC的第一个网络功能节点,如果是,说明当前编排SFC的网络功能节点已全部部署完成,并得到该当前编排SFC对应的隐状态子序列,则执行S2039的步骤,如果不是,说明当前编排SFC的网络功能节点并没有全部部署完成,则返回执行S2037的步骤。示例性的,当前编排SFC为Sp,得到的前编排SFC对应的隐状态子序列可以表示为:其中,表示前编排Sp中的第K个网络功能节点所部署的数据中心节点dKDetermine whether the previous network function node of the current network function node is the first network function node of the current orchestration SFC, if yes, it means that all the network function nodes of the current orchestration SFC have been deployed, and the hidden state corresponding to the current orchestration SFC is obtained subsequence, execute the step of S2039, if not, it means that the deployment of all the network function nodes currently orchestrating the SFC has not been completed, then return to execute the step of S2037. Exemplarily, the current programmed SFC is Sp , and the obtained hidden state subsequence corresponding to the previous programmed SFC can be expressed as: in, Indicates the data center node d K deployed by the Kth network function node in the previous orchestration S p .

S2039,如果当前网络功能节点的前一网络功能节点是当前编排SFC的第一个网络功能节点,则将当前编排SFC从SFC集合中删除。S2039. If the previous network function node of the current network function node is the first network function node of the current composed SFC, delete the current composed SFC from the SFC set.

如果当前网络功能节点的前一网络功能节点是当前编排SFC的第一个网络功能节点,说明当前编排SFC的网络功能节点已全部部署完成,并得到该当前编排SFC对应的隐状态子序列,则将当前编排SFC从SFC集合中删除,并继续对下一待编排SFC的进行编排。If the previous network function node of the current network function node is the first network function node of the currently programmed SFC, it means that all the network function nodes of the current programmed SFC have been deployed, and the hidden state subsequence corresponding to the current programmed SFC has been obtained, then Delete the currently programmed SFC from the SFC collection, and continue to program the next SFC to be programmed.

本发明实施例提供的一种跨域SFC的编排方法,因HMM的隐藏状态不能直接观察到,但可以通过可观察序列观察到,每个可观察序列都是通过概率密度分布表现为各种状态的,每一个可观察序列是由一个具有相应概率密度分布的状态序列产生,本发明实施例中,将跨域SFC的编排建模成隐马尔可夫模型,再利用隐马尔可夫模型,对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,因是基于计算得到的将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,对SFC的网络功能节点进行部署,实现SFC的编排,可以降低编排后SFC的跨域带宽开销,进而减少SFC编排后所消耗的带宽资源。The embodiment of the present invention provides a cross-domain SFC orchestration method, because the hidden state of the HMM cannot be directly observed, but can be observed through the observable sequence, and each observable sequence is expressed as various states through the probability density distribution Each observable sequence is generated by a state sequence with a corresponding probability density distribution. In the embodiment of the present invention, the arrangement of cross-domain SFC is modeled as a hidden Markov model, and then the hidden Markov model is used to Each SFC in multiple SFCs is arranged to obtain the hidden state subsequence corresponding to each SFC, because it is based on the calculated hidden state probability corresponding to the network function node in the SFC deployed in the data center node, and the network function of the SFC Deploying nodes to implement SFC orchestration can reduce the cross-domain bandwidth overhead of SFC after orchestration, thereby reducing the bandwidth resources consumed by SFC after orchestration.

作为本发明实施例一种可选的实施方式,在上述步骤S106之后,本发明实施例的跨域SFC的编排还可以包括:基于隐状态序列集合、编排后各SFC对应的可靠性值以及隐状态序列集合中各隐状态子序列对应的SFC中每一网络功能节点所对应的VNF的成本效益值,对VNF进行备份。As an optional implementation of the embodiment of the present invention, after the above step S106, the arrangement of the cross-domain SFC in the embodiment of the present invention may also include: based on the hidden state sequence set, the reliability value corresponding to each SFC after arrangement, and the hidden The cost-benefit value of the VNF corresponding to each network function node in the SFC corresponding to each hidden state subsequence in the state sequence set is used to back up the VNF.

实际应用中,用户对每一SFC都会有可靠性需求。示例性的,如图4所示,有两条SFC,分别为业务功能链1和业务功能链2。业务功能链1开始于客户端A,业务流需要顺序穿过FW(Fire Wall,防火墙),LB(LoadBalance,流量均衡器)和NAT(Network AddressTranslatio,网络地址转换器),最终流向客户端C。业务功能链2开始于客户端B,业务流顺序穿过FW,LB和GW(Gateway,网关),最终流向客户端D。其中,业务功能链1可靠性需求为R1=80%,业务功能链2的可靠性需求为R2=85%。In practical applications, users will have reliability requirements for each SFC. Exemplarily, as shown in FIG. 4 , there are two SFCs, namely service function chain 1 and service function chain 2 . Service function chain 1 starts from client A, and the service flow needs to pass through FW (Fire Wall, firewall), LB (Load Balance, traffic balancer) and NAT (Network Address Translatio, network address translator) in sequence, and finally flows to client C. Service function chain 2 starts from client B, and the service flow passes through FW, LB and GW (Gateway, gateway) in sequence, and finally flows to client D. Among them, the reliability requirement of service function chain 1 is R 1 =80%, and the reliability requirement of service function chain 2 is R 2 =85%.

示例性的,有5个数据中心节点,分别为:DC1,DC2,DC3,DC4和DC5。在对业务功能链1和业务功能链2进行编排之后,编排结果为:业务功能链1业务流依次穿过部署于DC1的vFW,部署于DC3的vLB和部署于DC4的vNAT(Virtualized Network Address Translatio,虚拟网络地址转换器),到达客户端C。其中,将vFW部署于DC1的可靠性值为0.92,将vLB部署于DC3的可靠性值为0.82,将vNAT部署于DC4的可靠性值为0.93,则业务功能链1部署的可靠性值为:0.92×0.82×0.93=70.2%<R1=80%。Exemplarily, there are 5 data center nodes, namely: DC1, DC2, DC3, DC4 and DC5. After orchestrating the service function chain 1 and service function chain 2, the orchestration result is: the service flow of service function chain 1 passes through the vFW deployed in DC1, the vLB deployed in DC3, and the vNAT (Virtualized Network Address Translatio , virtual network address translator), to client C. Among them, the reliability value of vFW deployed on DC1 is 0.92, the reliability value of vLB deployed on DC3 is 0.82, and the reliability value of vNAT deployed on DC4 is 0.93, then the reliability value of service function chain 1 deployment is: 0.92×0.82×0.93=70.2%<R 1 =80%.

业务功能链2业务流依次穿过部署于DC2的vFW,部署于DC3的vLB和部署于DC5的vGW(Virtualized Gateway,虚拟网关),最终到达客户端D。其中,将vFW部署于DC2的可靠性值为0.97,将vLB部署于DC3的可靠性值为0.82,将vGW部署于DC5的可靠性值为0.74,业务功能链2部署的可靠性值为0.97×0.82×0.74=58.86%<R2=85%。The service flow of the service function chain 2 passes through the vFW deployed on DC2, the vLB deployed on DC3, and the vGW (Virtualized Gateway, virtual gateway) deployed on DC5 in sequence, and finally reaches the client D. Among them, the reliability value of vFW deployed on DC2 is 0.97, the reliability value of vLB deployed on DC3 is 0.82, the reliability value of vGW deployed on DC5 is 0.74, and the reliability value of service function chain 2 is 0.97× 0.82×0.74=58.86%<R 2 =85%.

可见,实际应用中,对SFC进行编排后,SFC的可靠性需求不一定能够满足用户的需求,故而,本发明实施例中,可以基于上述隐状态序列集合、编排后各SFC对应的可靠性值以及隐状态序列集合中各隐状态子序列对应的SFC中每一网络功能节点所对应的VNF的成本效益值,对VNF进行备份,以提高VNF备份后,编排SFC的可靠性值。It can be seen that in practical applications, after the arrangement of SFCs, the reliability requirements of SFCs may not be able to meet the needs of users. Therefore, in the embodiment of the present invention, the reliability values corresponding to each SFC after arrangement can be based on the above hidden state sequence set. And the cost-benefit value of the VNF corresponding to each network function node in the SFC corresponding to each hidden state subsequence in the hidden state sequence set, back up the VNF to improve the reliability value of the SFC after the VNF backup.

作为本发明实施例一种可选的实施方式,如图5所示,上述对VNF进行备份的步骤,具体可以包括:As an optional implementation of the embodiment of the present invention, as shown in FIG. 5, the above steps of backing up the VNF may specifically include:

S301,遍历隐状态序列集合中每一隐状态子序列,将该隐状态子序列所对应的SFC作为当前SFC。S301. Traverse each hidden state subsequence in the hidden state sequence set, and use the SFC corresponding to the hidden state subsequence as the current SFC.

针对上述已编排的每一SFC,遍历隐状态序列集合中每一隐状态子序列,将该隐状态子序列所对应的SFC作为当前SFC。For each SFC programmed above, traverse each hidden state subsequence in the hidden state sequence set, and use the SFC corresponding to the hidden state subsequence as the current SFC.

S302,计算当前SFC的可靠性值。S302. Calculate the reliability value of the current SFC.

作为本发明实施例一种可选的实施方式,针对每一当前SFC,计算该当前SFC的可靠性值可以是:利用第六预设表达式来计算将该当前SFC的可靠性值。该第六预设表达式可以为:As an optional implementation manner of the embodiment of the present invention, for each current SFC, calculating the reliability value of the current SFC may be: calculating the reliability value of the current SFC by using a sixth preset expression. The sixth preset expression may be:

式中,Rp表示第p条SFC的可靠性值,K表示第p条SFC的网络功能节点数,表示第p条SFC的第i个网络功能节点的可靠性值。其中,由第p条SFC编排过程中第i个网络功能节点所部署的数据中心节点位置和第i个网络功能节点的功能类型来确定,即当SFC编排完成,第i个网络功能节点部署于数据中心节点,数据中心节点中VNF的可靠性值由VNF的功能类型决定,也就是说,当SFC编排完成,得到确定。In the formula, R p represents the reliability value of the p-th SFC, K represents the number of network function nodes of the p-th SFC, Indicates the reliability value of the i-th network function node of the p-th SFC. in, It is determined by the position of the data center node deployed by the i-th network function node and the function type of the i-th network function node in the p-th SFC arrangement process, that is, when the SFC arrangement is completed, the i-th network function node is deployed in the data center Node, the reliability value of the VNF in the data center node is determined by the function type of the VNF, that is, when the SFC orchestration is completed, get ok.

S303,判断当前SFC的可靠性值是否小于预设可靠性值。S303, judging whether the reliability value of the current SFC is smaller than a preset reliability value.

在完成对编排后所有SFC的可靠性值计算之后,针对每一SFC,可以判断当前SFC的可靠性值是否小于预设可靠性值。该预设可靠性值为用户针对该条SFC的可靠性需求值。After completing the calculation of reliability values of all SFCs after arrangement, for each SFC, it may be determined whether the reliability value of the current SFC is less than a preset reliability value. The preset reliability value is a user's reliability requirement value for the SFC.

S304,当当前SFC的可靠性值小于预设可靠性值时,将当前SFC放置于第一集合中,并将经过当前SFC的VNF放置于第二集合中。S304. When the reliability value of the current SFC is less than the preset reliability value, place the current SFC in the first set, and place the VNFs passing through the current SFC in the second set.

当当前SFC的可靠性值小于预设可靠性值时,说明编排后当前SFC的可靠性值不满足用户的需求,将当前SFC放置于第一集合中,并将经过当前SFC的VNF放置于第二集合中。When the reliability value of the current SFC is less than the preset reliability value, it means that the reliability value of the current SFC does not meet the user's needs after arrangement, and the current SFC is placed in the first set, and the VNF that has passed the current SFC is placed in the second set. In the second set.

S305,判断第一集合是否为空。S305. Determine whether the first set is empty.

第一集合中放置的是可靠性值不满足用户需求对应的SFC,如果第一集合为空,表示SFC编排后所有SFC的可靠性值都满足用户的需求,如果第一集合不为空,表示SFC编排后有SFC的可靠性值不满足用户的需求。The first set contains the SFCs whose reliability values do not meet the user’s requirements. If the first set is empty, it means that the reliability values of all SFCs after SFC arrangement meet the user’s needs. If the first set is not empty, it means After the SFC is programmed, the reliability value of the SFC does not meet the user's requirements.

S306,当第一集合不为空时,计算第二集合中每一VNF的成本效益值。S306. When the first set is not empty, calculate the cost-benefit value of each VNF in the second set.

第一集合不为空,表示SFC编排后有SFC的可靠性值不满足用户的需求,此时,可以针对第二集合中的每一VNF,使用上述第六预设表达式计算备份该VNF后第一集合中每一SFC的可靠性值。然后,基于备份VNF后第一集合中每一SFC的可靠性值,第一预设可靠性值,备份VNF的处理能力需求量以及备份VNF的单位处理能力费用,使用第七预设表达式计算第二集合中每一VNF的成本效益值。该第七预设表达式可以为:The first set is not empty, which means that the reliability value of the SFC after SFC arrangement does not meet the user's needs. At this time, for each VNF in the second set, the sixth preset expression above can be used to calculate the backup value of the VNF. A reliability value for each SFC in the first set. Then, based on the reliability value of each SFC in the first set after the backup VNF, the first preset reliability value, the processing capacity requirement of the backup VNF and the unit processing capacity cost of the backup VNF, the seventh preset expression is used to calculate A cost-benefit value for each VNF in the second set. The seventh preset expression may be:

其中, in,

式中,表示第m个数据中心节点中的第s个VNF实例,表示备份的成本效益值,p表示第p条SFC,q表示SFC的数量,表示备份对第p条SFC可靠性的提升值,Rp表示备份后第p条SFC的可靠性值,φp表示第一预设可靠性值,可以是用户设置的可靠性值,表示备份对所有SFC可靠性的提升程度,表示产生的费用,αm表示备份VNF的单位处理能力费用,表示的处理能力需求量,表示的功能类型。In the formula, Indicates the sth VNF instance in the mth data center node, means backup The cost-benefit value of , p represents the p-th SFC, q represents the number of SFCs, means backup The improvement value of the p-th SFC reliability, R p means backup The reliability value of the last p-th SFC, φ p represents the first preset reliability value, which can be the reliability value set by the user, means backup For all SFC reliability enhancements, express The cost generated, α m represents the unit processing power cost of the backup VNF, express The amount of processing power required, express type of function.

当备份后第p条SFC的可靠性值Rp大于第一预设可靠性值时,将取结果为1,使得备份后产生更高的可靠性提升值,且产生费用较低的具有较高的成本效益值。when backup When the reliability value R p of the p-th SFC is greater than the first preset reliability value, the Take the result as 1, making the backup resulting in higher reliability gains and lower cost Has a high cost-benefit value.

S307,对最大成本效益值对应的VNF进行备份。S307. Back up the VNF corresponding to the maximum cost benefit value.

在计算第二集合中每一VNF的成本效益值之后,可以对最大成本效益值对应的VNF进行备份。实际应用中,可以对最大成本效益值对应的一个VNF进行备份,也可以对最大成本效益值对应的多个VNF进行备份,具体的本发明实施例在此不作限定。After the cost-benefit value of each VNF in the second set is calculated, the VNF corresponding to the maximum cost-benefit value may be backed up. In practical applications, one VNF corresponding to the maximum cost-benefit value may be backed up, or multiple VNFs corresponding to the maximum cost-benefit value may be backed up, and the specific embodiments of the present invention are not limited here.

S308,计算备份后第一集合中每一SFC的可靠性值。S308. Calculate the reliability value of each SFC in the first set after backup.

本发明实施例中,对最大成本效益值对应的VNF进行备份后,计算备份后第一集合中每一SFC的可靠性值,具体的,可参见步骤S302中对当前SFC的可靠性值的计算方式,来对备份后第一集合中每一SFC的可靠性值进行计算,本发明实施例在此不做赘述。In the embodiment of the present invention, after backing up the VNF corresponding to the maximum cost-benefit value, calculate the reliability value of each SFC in the first set after backup. For details, refer to the calculation of the reliability value of the current SFC in step S302 The method is used to calculate the reliability value of each SFC in the first set after backup, which will not be described in detail here in this embodiment of the present invention.

S309,如果备份后第一集合中SFC的可靠性值不小于预设可靠性值,则将该SFC从第一集合中删除,并执行判断第一集合是否为空的步骤。S309, if the reliability value of the SFC in the first set after backup is not less than the preset reliability value, delete the SFC from the first set, and perform the step of judging whether the first set is empty.

在计算备份后第一集合中每一SFC的可靠性值后,可以对该SFC的可靠性值进行判断,判断其是否不小于预设可靠性值,如果备份后第一集合中SFC的可靠性值不小于预设可靠性值,说明此时SFC的可靠性值满足用户的需求,将该SFC从第一集合中删除,并返回执行S305的步骤,直至第一集合中所有SFC的可靠性值都满足用户的需要。After calculating the reliability value of each SFC in the first set after backup, the reliability value of the SFC can be judged to determine whether it is not less than the preset reliability value. If the reliability of the SFC in the first set after backup is The value is not less than the preset reliability value, indicating that the reliability value of the SFC meets the user's needs at this time, delete the SFC from the first set, and return to the step of S305 until the reliability value of all SFCs in the first set All meet the needs of users.

本发明实施例提供的一种跨域SFC的编排方法,因HMM的隐藏状态不能直接观察到,但可以通过可观察序列观察到,每个可观察序列都是通过概率密度分布表现为各种状态的,每一个可观察序列是由一个具有相应概率密度分布的状态序列产生,本发明实施例中,将跨域SFC的编排建模成隐马尔可夫模型,再利用隐马尔可夫模型,对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,因是基于计算得到的将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,对SFC的网络功能节点进行部署,实现SFC的编排,可以降低编排后SFC的跨域带宽开销,进而减少SFC编排后所消耗的带宽资源。另外,对VNF进行备份,提高备份后SFC的可靠性值,以使备份后每一SFC的可靠性值都能够满足用户的需求。The embodiment of the present invention provides a cross-domain SFC orchestration method, because the hidden state of the HMM cannot be directly observed, but can be observed through the observable sequence, and each observable sequence is expressed as various states through the probability density distribution Each observable sequence is generated by a state sequence with a corresponding probability density distribution. In the embodiment of the present invention, the arrangement of cross-domain SFC is modeled as a hidden Markov model, and then the hidden Markov model is used to Each SFC in multiple SFCs is arranged to obtain the hidden state subsequence corresponding to each SFC, because it is based on the calculated hidden state probability corresponding to the network function nodes in the SFC deployed in the data center nodes, and the network function of the SFC Deploying nodes to implement SFC orchestration can reduce the cross-domain bandwidth overhead of SFC after orchestration, thereby reducing the bandwidth resources consumed by SFC after orchestration. In addition, the VNF is backed up, and the reliability value of the SFC after backup is improved, so that the reliability value of each SFC after backup can meet the user's requirements.

示例性地,本发明实施例中对SFC使用不同的编排方法进行编排,得到的仿真图分别如图6a至图6d所示。其中,现有技术方法1为背景技术中所描述的现有技术,现有技术方法2为:将SFC编排问题建模成整数线性规划问题,进而实现的编排,其具体实现过程可参见现有技术的实现,本发明实施例在此不做赘述。本发明实施例中,多数据中心网络从大规模准确的网络拓扑结构topology-zoo中选取,跨数据中心带宽设置为200Gbps,跨数据中心带宽单位费用为均匀分布在[0.01,0.02]$/Mbps之间的随机值,数据中心的单位IT资源费用为[0.05,0.10]$/unit,其中不同虚拟网络功能节点请求的IT资源在[1,3]之间随机选取,虚拟网络功能节点的可靠性值设置为[0.8,0.99],SFC的长度均匀分布在[2,6]之间,SFC的请求带宽满足[10,100]Mbps的均匀分布,SFC的可靠性值在[0.95,0.98,0.99,0.995,0.999]随机选择。Exemplarily, in the embodiment of the present invention, the SFC is arranged using different arrangement methods, and the obtained simulation diagrams are shown in Fig. 6a to Fig. 6d respectively. Among them, the prior art method 1 is the prior art described in the background technology, and the prior art method 2 is: modeling the SFC arrangement problem as an integer linear programming problem, and then realizing the arrangement. For the specific implementation process, please refer to the existing The implementation of the technology, the embodiment of the present invention will not be repeated here. In the embodiment of the present invention, the multi-data center network is selected from the large-scale and accurate network topology topology-zoo, the cross-data center bandwidth is set to 200Gbps, and the cross-data center bandwidth unit cost is uniformly distributed in [0.01,0.02]$/Mbps A random value between , the unit IT resource cost of the data center is [0.05,0.10]$/unit, where the IT resources requested by different virtual network function nodes are randomly selected between [1,3], the reliability of virtual network function nodes The reliability value is set to [0.8,0.99], the length of SFC is uniformly distributed between [2,6], the requested bandwidth of SFC satisfies the uniform distribution of [10,100] Mbps, and the reliability value of SFC is between [0.95,0.98,0.99, 0.995,0.999] randomly selected.

其中,图6a为本发明实施例提供的VNF开销与SFC需求量关系仿真图,当SFC的请求数量小于400时,现有技术方法1使用较小的VNF实例来处理传入的SFC请求。但是,当SFC的请求数量大于600时,现有技术方法1的VNF开销会显着增加。本发明实施例在小规模SFC请求情况下使用较多的的VNF,这是由于本发明实施例按照SFC的长度的降序处理,忽略了SFC的其他关联性以降低问题的复杂性,导致更多的VNF开销。当处理大规模SFC请求时,本发明实施例与现有技术方法2的VNF开销相差不大,这是由于本发明实施例将SFC编排转化成隐马尔可夫模型的解码问题,充分考虑了VNF的使用效率,实现较低成本的VNF开销。6a is a simulation diagram of the relationship between VNF overhead and SFC demand provided by the embodiment of the present invention. When the number of SFC requests is less than 400, the prior art method 1 uses a smaller VNF instance to process incoming SFC requests. However, when the number of SFC requests is greater than 600, the VNF overhead of method 1 in the prior art will increase significantly. The embodiment of the present invention uses more VNFs in the case of small-scale SFC requests. This is because the embodiments of the present invention process the SFCs in descending order of length, ignoring other correlations of the SFCs to reduce the complexity of the problem, resulting in more VNF overhead. When dealing with large-scale SFC requests, the VNF overhead of the embodiment of the present invention is not much different from that of the prior art method 2. This is because the embodiment of the present invention converts SFC programming into the decoding problem of the hidden Markov model, fully considering the VNF Higher usage efficiency and lower cost VNF overhead.

图6b为本发明实施例提供的跨域带宽开销与SFC需求量关系仿真图,在编排相同数量的SFC时,现有技术方法1使用了更多跨域带宽开销,这是由于现有技术方法1将SFC合并到图形中以减少VNF实例的使用,但这会导致更高的带宽消耗。本发明实施例同时考虑了带宽开销和VNF开销,与现有技术方法1相比,使用的带宽成本减少了约26.2%。当SFC请求数量小于400时,本发明实施例的带宽成本与现有技术方法2相当。当数量大于600时,与现有技术方法2相比,本发明实施例使用的数据中心节点间带宽成本增加约11.3%,这是由于本发明实施例的隐马尔可夫模型中的输出概率既考虑了VNF开销,也考虑了VNF的可靠性。因此,本发明实施例牺牲了部分跨域带宽开销以获得高可靠性的SFC编排结果。Figure 6b is a simulation diagram of the relationship between cross-domain bandwidth overhead and SFC demand provided by the embodiment of the present invention. When arranging the same number of SFCs, prior art method 1 uses more cross-domain bandwidth overhead, which is due to the prior art method 1 Merge SFCs into the graph to reduce VNF instance usage, but this results in higher bandwidth consumption. The embodiment of the present invention considers both the bandwidth overhead and the VNF overhead, and compared with method 1 in the prior art, the bandwidth cost used is reduced by about 26.2%. When the number of SFC requests is less than 400, the bandwidth cost of the embodiment of the present invention is equivalent to that of method 2 in the prior art. When the number is greater than 600, compared with method 2 of the prior art, the bandwidth cost between data center nodes used in the embodiment of the present invention increases by about 11.3%, which is because the output probability in the hidden Markov model of the embodiment of the present invention is both Considering the VNF overhead, the reliability of the VNF is also considered. Therefore, the embodiment of the present invention sacrifices part of the cross-domain bandwidth overhead to obtain a highly reliable SFC orchestration result.

图6c为本发明实施例提供的备份开销与SFC需求量关系仿真图,当SFC请求数量小于600时,本发明实施例使用与现有技术方法2可比较的备份开销。当SFC请求数量大于800时,本发明实施例使用的备份开销减少13.2%,这是因为本发明实施例在使用隐马尔可夫模型编排SFC时考虑了可靠性要求,本发明实施例牺牲了部署跨域带宽实现了更高可靠性的SFC编排。FIG. 6c is a simulation diagram of the relationship between backup overhead and SFC demand provided by the embodiment of the present invention. When the number of SFC requests is less than 600, the embodiment of the present invention uses a backup overhead comparable to that of method 2 in the prior art. When the number of SFC requests is greater than 800, the backup overhead used by the embodiment of the present invention is reduced by 13.2%. This is because the embodiment of the present invention considers the reliability requirements when using the hidden Markov model to arrange the SFC, and the embodiment of the present invention sacrifices the deployment Cross-domain bandwidth enables SFC orchestration with higher reliability.

图6d为本发明实施例提供的总开销与SFC需求量关系仿真图,总开销包括三部分:VNF开销(如图6a所示),跨域带宽开销(如图6b所示)和VNF备份开销(如图6c所示)。显然,与本发明实施例和现有技术方法2的方法得到的结果相比,现有技术方法1消耗更多开销。与现有技术方法2和本发明实施例的方法得到的结果相比,现有技术方法1的成本分别高出约20.4%和15.6%。当SFC数量大于600时,本发明实施例的总开销比现有技术方法2高出约11.4%。Figure 6d is a simulation diagram of the relationship between total overhead and SFC demand provided by the embodiment of the present invention. The total overhead includes three parts: VNF overhead (as shown in Figure 6a), cross-domain bandwidth overhead (as shown in Figure 6b) and VNF backup overhead (as shown in Figure 6c). Obviously, compared with the results obtained by the embodiment of the present invention and the method 2 of the prior art, the method 1 of the prior art consumes more overhead. Compared with the results obtained by the method 2 of the prior art and the method of the embodiment of the present invention, the cost of the method 1 of the prior art is about 20.4% and 15.6% higher respectively. When the number of SFCs is greater than 600, the total overhead of the embodiment of the present invention is about 11.4% higher than that of method 2 of the prior art.

虽然本发明实施例的开销相对稍高,但本发明实施例中SFC编排后对VNF进行备份,能够提高SFC的可靠性,更好的满足用户的需求。Although the overhead of the embodiment of the present invention is relatively high, the VNF is backed up after the SFC is orchestrated in the embodiment of the present invention, which can improve the reliability of the SFC and better meet the needs of users.

相应于上述方法实施例,本发明实施例提供了一种跨域SFC的编排装置,如图7所示,该装置可以包括:Corresponding to the foregoing method embodiments, an embodiment of the present invention provides a cross-domain SFC orchestration device, as shown in FIG. 7 , the device may include:

获取模块401,用于获取多条待编排的业务功能链SFC以及多个数据中心节点,每条SFC中均包括多个网络功能节点,数据中心节点用于部署SFC中的网络功能节点,一个网络功能节点部署于一个数据中心节点中。The obtaining module 401 is used to obtain multiple service function chains SFCs to be arranged and multiple data center nodes, each SFC includes multiple network function nodes, and the data center nodes are used to deploy network function nodes in the SFC, a network Function nodes are deployed in a data center node.

第一构建模块402,用于基于不同网络功能节点部署于不同数据中心节点时所产生的虚拟网络功能VNF开销和带宽开销,确定将不同网络功能节点部署于不同数据中心节点中的初始概率,并基于所确定的多个初始概率构建初始概率集合。The first building block 402 is configured to determine the initial probability of deploying different network function nodes in different data center nodes based on the virtual network function VNF overhead and bandwidth overhead generated when different network function nodes are deployed in different data center nodes, and An initial probability set is constructed based on the determined plurality of initial probabilities.

第二构建模块403,用于基于第一状态转移至第二状态所确定的转移概率,构建转移概率矩阵;第一状态为将SFC中第一网络功能节点部署于第一数据中心节点中的过程所对应的状态,第二状态为将SFC中第二网络功能节点部署于第二数据中心节点中的过程所对应的状态,第二网络功能节点为第一网络功能节点的相邻节点。The second construction module 403 is configured to construct a transition probability matrix based on the transition probability determined by transitioning from the first state to the second state; the first state is the process of deploying the first network function node in the SFC to the first data center node The corresponding state, the second state is the state corresponding to the process of deploying the second network function node in the SFC in the second data center node, and the second network function node is an adjacent node of the first network function node.

第三构建模块404,用于基于第三状态下输出SFC中第三网络功能节点对应的功能类型的输出概率,构建输出概率矩阵;第三状态为将SFC中第三网络功能节点部署于第三数据中心节点中的过程所对应的状态。The third construction module 404 is configured to construct an output probability matrix based on the output probability of the function type corresponding to the third network function node in the output SFC in the third state; the third state is to deploy the third network function node in the SFC on the third The state corresponding to the process in the data center node.

第四构建模块405,用于基于所构建的初始概率集合、转移概率矩阵、以及输出概率矩阵,构建隐马尔可夫模型。The fourth construction module 405 is configured to construct a hidden Markov model based on the constructed initial probability set, transition probability matrix, and output probability matrix.

编排模块406,用于利用隐马尔可夫模型中的初始概率、转移概率以及输出概率,计算将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于隐状态概率对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,得到多条SFC对应的多个隐状态子序列;隐状态子序列中包含的元素为:SFC中网络功能节点所部署的数据中心节点。The orchestration module 406 is used to use the initial probability, transition probability and output probability in the hidden Markov model to calculate the hidden state probability corresponding to the deployment of the network function node in the SFC in the data center node, and based on the hidden state probability. Each SFC in the SFC is arranged to obtain the hidden state subsequence corresponding to each SFC, and multiple hidden state subsequences corresponding to multiple SFCs are obtained; the elements contained in the hidden state subsequence are: deployed by the network function nodes in the SFC Data center nodes.

需要说明的是,本发明实施例的装置是与图1所示的一种跨域SFC的编排方法对应的装置,图1所示的一种跨域SFC的编排方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the device in the embodiment of the present invention is a device corresponding to a cross-domain SFC layout method shown in FIG. 1 , and all embodiments of a cross-domain SFC layout method shown in FIG. 1 are applicable to The device, and all can achieve the same or similar beneficial effects.

本发明实施例提供的一种跨域SFC的编排装置,因HMM的隐藏状态不能直接观察到,但可以通过可观察序列观察到,每个可观察序列都是通过概率密度分布表现为各种状态的,每一个可观察序列是由一个具有相应概率密度分布的状态序列产生,本发明实施例中,将跨域SFC的编排建模成隐马尔可夫模型,再利用隐马尔可夫模型,对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,因是基于计算得到的将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,对SFC的网络功能节点进行部署,实现SFC的编排,可以降低编排后SFC的跨域带宽开销,进而减少SFC编排后所消耗的带宽资源。A cross-domain SFC orchestration device provided by the embodiment of the present invention cannot be directly observed due to the hidden state of HMM, but can be observed through observable sequences, and each observable sequence is expressed as various states through probability density distribution Each observable sequence is generated by a state sequence with a corresponding probability density distribution. In the embodiment of the present invention, the arrangement of cross-domain SFC is modeled as a hidden Markov model, and then the hidden Markov model is used to Each SFC in multiple SFCs is arranged to obtain the hidden state subsequence corresponding to each SFC, because it is based on the calculated hidden state probability corresponding to the network function nodes in the SFC deployed in the data center nodes, and the network function of the SFC Deploying nodes to implement SFC orchestration can reduce the cross-domain bandwidth overhead of SFC after orchestration, thereby reducing the bandwidth resources consumed by SFC after orchestration.

可选地,利用第一预设表达式,确定将不同网络功能节点部署于不同数据中心节点中的初始概率。Optionally, the initial probabilities of deploying different network function nodes in different data center nodes are determined by using a first preset expression.

利用第二预设表达式,确定第一状态转移至第二状态的转移概率。Using the second preset expression, a transition probability from the first state to the second state is determined.

利用第三预设表达式,确定第三状态下输出SFC中第三网络功能节点对应的功能类型的输出概率。Using the third preset expression, determine the output probability of the function type corresponding to the third network function node in the output SFC in the third state.

第一预设表达式为:The first preset expression is:

式中,πm表示将网络功能节点部署于第m个数据中心节点的初始概率,M表示数据中心节点的个数,表示第m个数据中心节点中的第s个VNF实例,表示将第一个网络功能节点部署于第m个数据中心节点中的第s个VNF实例所产生的开销,表示将起始网络功能节点部署于起始数据中心节点,第一个网络功能节点部署于第m个数据中心节点所产生的转移带宽开销,01表示SFC的起始网络功能节点到第一个网络功能节点的状态转移,σm表示从起始数据中心节点到第m个数据中心节点的转移。In the formula, π m represents the initial probability of deploying the network function node on the mth data center node, M represents the number of data center nodes, Indicates the sth VNF instance in the mth data center node, Indicates the overhead generated by deploying the first network function node to the sth VNF instance in the mth data center node, Indicates the transfer bandwidth overhead generated by deploying the initial network function node on the initial data center node and the first network function node on the mth data center node. 01 indicates that the initial network function node of the SFC goes to the first network The state transition of the function node, σm represents the transition from the starting data center node to the mth data center node.

第二预设表达式为:The second preset expression is:

式中, 表示状态转移至状态的转移概率,状态表示将第i-1个网络功能节点部署于第n个数据中心节点中的过程所对应的状态,状态表示将第i个网络功能节点部署于第m个数据中心节点中的过程所对应的状态,表示将第(i-1)个网络功能节点部署于数据中心节点n,第i个网络功能节点部署于数据中心m的转移带宽开销,(i-1)i表示第(i-1)个网络功能节点到第i个网络功能节点的转移,nm表示从第n个数据中心节点到第m个数据中心节点的转移,表示数据中心节点n到数据中心节点m的单位带宽费用,N表示数据中心节点的网络拓扑数量,表示第p条SFC的第(i-1)个网络功能节点与第i个网络功能节点之间的请求带宽量。In the formula, Indicates status transfer to state The transition probability of the state Indicates the state corresponding to the process of deploying the i-1th network function node in the nth data center node, state Indicates the state corresponding to the process of deploying the i-th network function node in the m-th data center node, Indicates the transfer bandwidth cost of deploying the (i-1)th network function node in data center node n, and deploying the i-th network function node in data center m, (i-1)i represents the (i-1)th network The transfer from the function node to the i-th network function node, nm means the transfer from the n-th data center node to the m-th data center node, Represents the unit bandwidth cost from data center node n to data center node m, N represents the number of network topologies of data center nodes, Indicates the amount of requested bandwidth between the (i-1)th network function node of the p-th SFC and the i-th network function node.

第三预设表达式为:The third preset expression is:

式中,表示状态下输出网络功能类型的概率,状态表示将第i个网络功能节点部署于第m个数据中心节点中的过程所对应的状态,表示第p条SFC的第i个网络功能节点的功能类型,表示状态下不输出网络功能类型的概率,表示将第i个网络功能节点部署于第m个数据中心节点中的第s个VNF实例所产生的开销,表示第m个数据中心节点中的第s个VNF实例的可靠性,表示第m个数据中心节点中的第s个VNF实例的功能类型。In the formula, Indicates status The following output network function type probability of state Indicates the state corresponding to the process of deploying the i-th network function node in the m-th data center node, Indicates the function type of the i-th network function node of the p-th SFC, Indicates status The network function type is not output under The probability, Indicates the overhead generated by deploying the i-th network function node to the s-th VNF instance in the m-th data center node, Indicates the reliability of the sth VNF instance in the mth data center node, Indicates the function type of the sth VNF instance in the mth data center node.

可选地,多条待编排的SFC为SFC集合;利用隐马尔可夫模型中的初始概率、转移概率以及输出概率,计算将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于隐状态概率对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,得到多条SFC对应的多个隐状态子序列为:Optionally, multiple SFCs to be programmed are SFC sets; use the initial probability, transition probability and output probability in the hidden Markov model to calculate the hidden state probability corresponding to the network function nodes in the SFC deployed in the data center nodes , and arrange each SFC in multiple SFCs based on the hidden state probability, and obtain the hidden state subsequences corresponding to each SFC, and obtain the multiple hidden state subsequences corresponding to multiple SFCs as:

利用隐马尔可夫模型中的初始概率、转移概率以及输出概率,计算将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于隐状态概率对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,得到SFC集合对应的隐状态序列集合。Using the initial probability, transition probability, and output probability in the hidden Markov model, calculate the hidden state probability corresponding to the deployment of the network function node in the SFC in the data center node, and based on the hidden state probability for each SFC in multiple SFCs Perform arrangement to obtain the hidden state subsequence corresponding to each SFC, and obtain the hidden state sequence set corresponding to the SFC set.

可选地,编排模块406,包括:Optionally, the orchestration module 406 includes:

判断子模块,用于判断SFC集合中是否存在待编排SFC。The judging sub-module is used to judge whether there is an SFC to be edited in the SFC set.

选择子模块,用于在SFC集合中存在待编排SFC时,选择SFC集合中最长的SFC作为当前编排SFC。The selection sub-module is used to select the longest SFC in the SFC set as the currently programmed SFC when there are SFCs to be edited in the SFC set.

编排子模块,用于利用隐马尔可夫模型中的初始概率、转移概率以及输出概率,计算将当前编排SFC中每一网络功能节点部署于数据中心节点中所对应的隐状态概率,并基于隐状态概率对当前编排SFC进行编排,获得当前编排SFC对应的隐状态子序列。The orchestration sub-module is used to use the initial probability, transition probability and output probability in the hidden Markov model to calculate the hidden state probability corresponding to the deployment of each network function node in the current orchestration SFC in the data center node, and based on the hidden state The state probability arranges the current arranged SFC, and obtains the hidden state subsequence corresponding to the current arranged SFC.

输出子模块,用于在SFC集合中不存在待编排SFC时,输出SFC集合对应的隐状态序列集合。The output sub-module is used to output the hidden state sequence set corresponding to the SFC set when there is no SFC to be programmed in the SFC set.

可选地,编排子模块,具体用于:Optionally, orchestrate submodules, specifically for:

判断当前编排SFC是否编排完成;Determine whether the current programming SFC is completed;

如果当前编排SFC未编排完成,则判断当前编排SFC的当前编排网络功能节点是否为当前编排SFC的第一个网络功能节点;If the current programming SFC has not been programmed, it is judged whether the current programming network function node of the current programming SFC is the first network function node of the current programming SFC;

如果当前编排SFC的当前编排网络功能节点是当前编排SFC的第一个网络功能节点,则基于隐马尔可夫模型中的初始概率,计算将该当前编排网络功能节点部署于每一数据中心节点中的初始隐状态概率;If the current orchestration network function node of the current orchestration SFC is the first network function node of the current orchestration SFC, calculate and deploy the current orchestration network function node in each data center node based on the initial probability in the hidden Markov model The initial hidden state probability of ;

如果当前编排SFC的当前编排网络功能节点不是当前编排SFC的第一个网络功能节点,则利用隐马尔可夫模型中的转移概率以及输出概率,计算将该当前编排网络功能节点部署于每一数据中心节点中的最大隐状态概率,并记录获得最大隐状态概率对应的前置数据中心节点的位置;If the current orchestration network function node of the current orchestration SFC is not the first network function node of the current orchestration SFC, use the transition probability and output probability in the hidden Markov model to calculate the deployment of the current orchestration network function node in each data The maximum hidden state probability in the central node, and record the position of the front data center node corresponding to the maximum hidden state probability;

将当前编排SFC的当前编排网络功能节点的下一网络功能节点,作为当前编排SFC的当前编排网络功能节点,执行判断当前编排SFC是否编排完成的步骤;Using the next network function node of the currently programmed network function node of the currently programmed SFC as the current programmed network function node of the currently programmed SFC, the step of judging whether the current programmed SFC is completed is executed;

如果当前编排SFC编排完成,则将当前编排SFC的末尾网络功能节点作为当前网络功能节点,选择使当前网络功能节点的隐状态概率最大对应的第四数据中心节点部署当前网络功能节点,并将第四数据中心节点存储于当前编排SFC对应的隐状态子序列中;If the arrangement of the current SFC is completed, the network function node at the end of the currently arranged SFC is used as the current network function node, and the fourth data center node corresponding to the maximum hidden state probability of the current network function node is selected to deploy the current network function node, and the second The four data center nodes are stored in the hidden state subsequence corresponding to the current orchestration SFC;

将使当前网络功能节点的隐状态概率最大对应的前置数据中心节点,确定为当前网络功能节点的前一网络功能节点所对应的第五数据中心节点,在第五数据中心节点中部署当前网络功能节点的前一网络功能节点,并将第五数据中心节点存储于当前编排SFC对应的隐状态子序列中,将当前网络功能节点的前一网络功能节点作为当前网络功能节点;The preceding data center node corresponding to the maximum hidden state probability of the current network function node is determined as the fifth data center node corresponding to the previous network function node of the current network function node, and the current network is deployed in the fifth data center node The previous network function node of the function node, storing the fifth data center node in the hidden state subsequence corresponding to the current orchestration SFC, and using the previous network function node of the current network function node as the current network function node;

判断当前网络功能节点的前一网络功能节点是否为当前编排SFC的第一个网络功能节点;Judging whether the previous network function node of the current network function node is the first network function node of the current SFC arrangement;

如果当前网络功能节点的前一网络功能节点不是当前编排SFC的第一个网络功能节点,则执行将使当前网络功能节点的隐状态概率最大对应的前置数据中心节点,确定为当前网络功能节点的前一网络功能节点所对应的第五数据中心节点的步骤;If the previous network function node of the current network function node is not the first network function node that currently arranges the SFC, the execution will maximize the hidden state probability of the current network function node. The corresponding previous data center node is determined as the current network function node The step of the fifth data center node corresponding to the preceding network function node;

如果当前网络功能节点的前一网络功能节点是当前编排SFC的第一个网络功能节点,则将当前编排SFC从SFC集合中删除。If the previous network function node of the current network function node is the first network function node of the current composed SFC, the current composed SFC is deleted from the SFC set.

可选地,本发明实施例的装置还包括:备份模块,用于基于隐状态序列集合、编排后各SFC对应的可靠性值以及隐状态序列集合中各隐状态子序列对应的SFC中每一网络功能节点所对应的VNF的成本效益值,对VNF进行备份。Optionally, the device in the embodiment of the present invention further includes: a backup module, configured to use the hidden state sequence set, the reliability value corresponding to each SFC after arrangement, and each of the SFCs corresponding to each hidden state subsequence in the hidden state sequence set The cost-benefit value of the VNF corresponding to the network function node is used to back up the VNF.

可选地,备份模块,具体用于:Optionally, backup modules, specifically for:

遍历隐状态序列集合中每一隐状态子序列,将该隐状态子序列所对应的SFC作为当前SFC;Traverse each hidden state subsequence in the hidden state sequence set, and use the SFC corresponding to the hidden state subsequence as the current SFC;

计算当前SFC的可靠性值;Calculate the reliability value of the current SFC;

判断当前SFC的可靠性值是否小于预设可靠性值;Judging whether the reliability value of the current SFC is less than the preset reliability value;

当当前SFC的可靠性值小于预设可靠性值时,将当前SFC放置于第一集合中,并将经过当前SFC的VNF放置于第二集合中;When the reliability value of the current SFC is less than the preset reliability value, the current SFC is placed in the first set, and the VNF that has passed the current SFC is placed in the second set;

判断第一集合是否为空;Determine whether the first collection is empty;

当第一集合不为空时,计算第二集合中每一VNF的成本效益值;When the first set is not empty, calculate the cost-benefit value of each VNF in the second set;

对最大成本效益值对应的VNF进行备份;Back up the VNF corresponding to the maximum cost-benefit value;

计算备份后第一集合中每一SFC的可靠性值;Calculate the reliability value of each SFC in the first set after backup;

如果备份后第一集合中SFC的可靠性值不小于预设可靠性值,则将该SFC从第一集合中删除,并执行判断第一集合是否为空的步骤。If the reliability value of the SFC in the first set after backup is not less than the preset reliability value, then delete the SFC from the first set, and perform the step of judging whether the first set is empty.

本发明实施例还提供了一种电子设备,如图8所示,包括处理器501、通信接口502、存储器503和通信总线504,其中,处理器501,通信接口502,存储器503通过通信总线504完成相互间的通信,The embodiment of the present invention also provides an electronic device, as shown in FIG. complete the mutual communication,

存储器503,用于存放计算机程序;Memory 503, used to store computer programs;

处理器501,用于执行存储器503上所存放的程序时,实现本发明实施例所提供的一种跨域SFC的编排。The processor 501 is configured to implement a cross-domain SFC arrangement provided by the embodiment of the present invention when executing the program stored in the memory 503 .

本发明实施例提供的一电子设备,因HMM的隐藏状态不能直接观察到,但可以通过可观察序列观察到,每个可观察序列都是通过概率密度分布表现为各种状态的,每一个可观察序列是由一个具有相应概率密度分布的状态序列产生,本发明实施例中,将跨域SFC的编排建模成隐马尔可夫模型,再利用隐马尔可夫模型,对多条SFC中每一条SFC进行编排,获得各SFC对应的隐状态子序列,因是基于计算得到的将SFC中网络功能节点部署于数据中心节点中所对应的隐状态概率,对SFC的网络功能节点进行部署,实现SFC的编排,可以降低编排后SFC的跨域带宽开销,进而减少SFC编排后所消耗的带宽资源。An electronic device provided by an embodiment of the present invention cannot be directly observed due to the hidden state of the HMM, but it can be observed through an observable sequence, and each observable sequence is expressed as various states through a probability density distribution, and each observable sequence The observation sequence is generated by a state sequence with a corresponding probability density distribution. In the embodiment of the present invention, the arrangement of cross-domain SFC is modeled as a hidden Markov model, and then the hidden Markov model is used to calculate each One SFC is arranged to obtain the hidden state subsequence corresponding to each SFC, because it is based on the calculated hidden state probability corresponding to the network function nodes in the SFC deployed in the data center nodes, and the network function nodes of the SFC are deployed to realize The orchestration of the SFC can reduce the cross-domain bandwidth overhead of the orchestrated SFC, thereby reducing the bandwidth resources consumed by the orchestrated SFC.

上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an 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 representation, 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 electronic device and other devices.

存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM), and may also include a 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 far 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)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。Above-mentioned processor can be general-purpose processor, comprises central processing unit (Central Processing Unit, CPU), network processor (Network Processor, NP) etc.; Can also be Digital Signal Processor (Digital Signal Processing, DSP), ASIC (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.

在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一一种跨域SFC的编排方法的步骤。In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above cross-connected Steps of the orchestration method of domain SFC.

在本发明提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一一种跨域SFC的编排方法。In yet another embodiment provided by the present invention, a computer program product including instructions is also provided, and when it is run on a computer, it causes the computer to execute any cross-domain SFC orchestration method in the above embodiments.

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

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置/电子设备实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device/electronic device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。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 principles of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A method for orchestrating cross-domain SFCs, the method comprising:
acquiring a plurality of Service Function Chains (SFCs) to be arranged and a plurality of data center nodes, wherein each SFC comprises a plurality of network function nodes, each data center node is used for deploying the network function nodes in the SFC, and one network function node is deployed in one data center node;
determining initial probabilities of deploying different network function nodes in different data center nodes based on Virtual Network Function (VNF) overheads and bandwidth overheads generated when the different network function nodes are deployed in different data center nodes, and constructing an initial probability set based on the determined initial probabilities;
constructing a transition probability matrix based on the transition probability determined by the transition of the first state to the second state; the first state corresponds to a process of deploying a first network function node in the SFC in a first data center node, the second state corresponds to a process of deploying a second network function node in the SFC in a second data center node, and the second network function node is a neighboring node of the first network function node;
constructing an output probability matrix based on the output probability of the function type corresponding to the third network function node in the SFC under the third state; the third state is a state corresponding to a process of deploying a third network function node in the SFC in a third data center node;
constructing a hidden Markov model based on the constructed initial probability set, the transition probability matrix, and the output probability matrix;
calculating the hidden state probability corresponding to the network function nodes in the SFCs deployed in the data center nodes by using the initial probability, the transition probability and the output probability in the hidden Markov model, and arranging each SFC in the plurality of SFCs based on the hidden state probability to obtain hidden state subsequences corresponding to each SFC and obtain a plurality of hidden state subsequences corresponding to the plurality of SFCs; the hidden state subsequence comprises the following elements: and the data center node is deployed on the network function node in the SFC.
2. The method of claim 1, wherein an initial probability of deploying the different network function nodes in the different data center nodes is determined using a first preset expression;
determining the transition probability of the first state to the second state by using a second preset expression;
determining the output probability of the function type corresponding to the third network function node in the output SFC under the third state by using a third preset expression;
the first preset expression is as follows:
in the formula, pimRepresenting an initial probability of deploying the network function node to an mth data center node, M representing a number of data center nodes,representing the s-th VNF instance in the m-th data center node,represents the overhead incurred by deploying the first network function node to the s-th VNF instance in the m-th data center node,representing the bandwidth transfer overhead generated by deploying an initial network function node to an initial data center node, deploying a first network function node to an m-th data center node, 01 representing the state transfer from the initial network function node to the first network function node of the SFC, and σ m representing the transfer from the initial data center node to the m-th data center node;
the second preset expression is as follows:
in the formula, presentation formState of the artTransition to StateTransition probability, state ofRepresents the state corresponding to the process of deploying the (i-1) th network function node in the nth data center nodeRepresents the state corresponding to the process of deploying the ith network function node in the mth data center node,represents the bandwidth overhead of the (i-1) th network function node deployed in the data center node n and the ith network function node deployed in the data center m, wherein (i-1) i represents the transfer from the (i-1) th network function node to the ith network function node, nm represents the transfer from the nth data center node to the mth data center node,representing the unit bandwidth cost from data center node N to data center node m, N representing the number of network topologies of data center nodes,representing the requested bandwidth amount between the (i-1) th network function node and the ith network function node of the p-th SFC;
the third preset expression is as follows:
in the formula,indicating a stateLower output network function typeProbability, state ofRepresents the state corresponding to the process of deploying the ith network function node in the mth data center node,indicates the function type of the i-th network function node of the p-th SFC,indicating a stateType of network function not outputThe probability of (a) of (b) being,represents the overhead incurred by deploying the ith network function node to the s-th VNF instance in the m-th data center node,indicating the reliability of the s-th VNF instance in the m-th data center node,indicating the function type of the s-th VNF instance in the m-th data center node.
3. The method of claim 2, wherein the plurality of SFCs to be orchestrated are a set of SFCs; calculating, by using the initial probability, the transition probability, and the output probability in the hidden markov model, a hidden state probability corresponding to a network function node in the SFC deployed in a data center node, and arranging each of the SFCs based on the hidden state probability to obtain a hidden state subsequence corresponding to each SFC, where the obtained multiple hidden state subsequences corresponding to the multiple SFCs are:
calculating the hidden state probability corresponding to the network function nodes in the SFCs deployed in the data center nodes by using the initial probability, the transition probability and the output probability in the hidden Markov model, and arranging each SFC in the plurality of SFCs based on the hidden state probability to obtain the hidden state subsequence corresponding to each SFC and obtain the hidden state sequence set corresponding to the SFC set.
4. The method according to claim 3, wherein the step of calculating a hidden state probability corresponding to a network function node in the SFC deployed in a data center node by using the initial probability, the transition probability and the output probability in the hidden markov model, and arranging each SFC in the SFCs based on the hidden state probability to obtain a hidden state subsequence corresponding to each SFC, and obtain a hidden state sequence set corresponding to the SFC set, comprises:
judging whether the SFC set contains SFCs to be arranged or not;
if the SFC set comprises the SFCs to be programmed, selecting the longest SFC in the SFC set as the current SFC to be programmed;
calculating the hidden state probability corresponding to each network function node in the current layout SFC deployed in a data center node by using the initial probability, the transition probability and the output probability in the hidden Markov model, and arranging the current layout SFC based on the hidden state probability to obtain a hidden state subsequence corresponding to the current layout SFC;
and if the SFC set does not have the SFC to be arranged, outputting a hidden state sequence set corresponding to the SFC set.
5. The method according to claim 4, wherein the step of calculating a hidden state probability corresponding to each network function node deployed in a data center node in the currently deployed SFC by using the initial probability, the transition probability and the output probability in the hidden Markov model, and deploying the currently deployed SFC based on the hidden state probabilities to obtain a hidden state subsequence corresponding to the currently deployed SFC comprises:
judging whether the current layout SFC is finished or not;
if the current layout SFC is not completely laid, judging whether the current layout network function node of the current layout SFC is the first network function node of the current layout SFC;
if the current arranging network function node of the current arranging SFC is the first network function node of the current arranging SFC, calculating the initial hidden state probability of arranging the current arranging network function node in each data center node based on the initial probability in the hidden Markov model;
if the current arranging network function node of the current arranging SFC is not the first network function node of the current arranging SFC, calculating the maximum hidden state probability of arranging the current arranging network function node in each data center node by using the transition probability and the output probability in the hidden Markov model, and recording the position of a preposed data center node corresponding to the maximum hidden state probability;
taking the next network function node of the current arranging SFC as the current arranging network function node of the current arranging SFC, and executing the step of judging whether the current arranging SFC is arranged;
if the current SFC is arranged completely, taking the last network function node of the current SFC as the current network function node, selecting a fourth data center node which corresponds to the maximum hidden state probability of the current network function node to deploy the current network function node, and storing the fourth data center node in a hidden state subsequence corresponding to the current SFC;
determining a pre-data center node which corresponds to the maximum hidden state probability of the current network function node as a fifth data center node corresponding to a network function node which is before the current network function node, deploying the network function node which is before the current network function node in the fifth data center node, storing the fifth data center node in a hidden state subsequence which corresponds to the current layout SFC, and taking the network function node which is before the current network function node as the current network function node;
judging whether a network function node before the current network function node is the first network function node of the current SFC;
if the previous network function node of the current network function node is not the first network function node of the current SFC, executing a step of determining a preposed data center node corresponding to the hidden state probability of the current network function node to be the maximum as a fifth data center node corresponding to the previous network function node of the current network function node;
deleting the current orchestrated SFC from the set of SFCs if a previous network function node to the current network function node is a first network function node of the current orchestrated SFC.
6. The method of claim 3, further comprising:
and backing up the VNF based on the hidden state sequence set, the reliability value corresponding to each SFC after arrangement and the cost benefit value of the VNF corresponding to each network function node in the SFC corresponding to each hidden state subsequence in the hidden state sequence set.
7. The method of claim 6, wherein the step of backing up the VNF based on the set of hidden-state sequences, the reliability value corresponding to each SFC after the arranging, and the cost-benefit value of the VNF corresponding to each network function node in the SFC corresponding to each hidden-state subsequence in the set of hidden-state sequences comprises:
traversing each hidden state subsequence in the hidden state sequence set, and taking the SFC corresponding to the hidden state subsequence as the current SFC;
calculating a reliability value of the current SFC;
judging whether the reliability value of the current SFC is smaller than a preset reliability value or not;
when the reliability value of the current SFC is smaller than a preset reliability value, placing the current SFC in a first set, and placing VNFs passing through the current SFC in a second set;
determining whether the first set is empty;
calculating a cost-benefit value for each VNF in the second set when the first set is not empty;
backing up the VNF corresponding to the maximum cost benefit value;
calculating the reliability value of each SFC in the first set after backup;
and if the reliability value of the SFC in the first set is not less than the preset reliability value after backup, deleting the SFC from the first set, and executing the step of judging whether the first set is empty or not.
8. An apparatus for orchestration of cross-domain SFCs, the apparatus comprising:
the system comprises an acquisition module, a scheduling module and a scheduling module, wherein the acquisition module is used for acquiring a plurality of Service Function Chains (SFCs) to be scheduled and a plurality of data center nodes, each SFC comprises a plurality of network function nodes, each data center node is used for deploying the network function nodes in the SFC, and one network function node is deployed in one data center node;
the first construction module is used for determining initial probabilities of deploying different network function nodes in different data center nodes based on Virtual Network Function (VNF) overheads and bandwidth overheads generated when the different network function nodes are deployed in different data center nodes, and constructing an initial probability set based on the determined initial probabilities;
the second construction module is used for constructing a transition probability matrix based on the transition probability determined by the transition of the first state to the second state; the first state corresponds to a process of deploying a first network function node in the SFC in a first data center node, the second state corresponds to a process of deploying a second network function node in the SFC in a second data center node, and the second network function node is a neighboring node of the first network function node;
the third construction module is used for constructing an output probability matrix based on the output probability of the function type corresponding to the third network function node in the SFC under the third state; the third state is a state corresponding to a process of deploying a third network function node in the SFC in a third data center node;
a fourth construction module, configured to construct a hidden markov model based on the constructed initial probability set, the transition probability matrix, and the output probability matrix;
the arranging module is used for calculating the hidden state probability corresponding to the network function nodes in the SFCs deployed in the data center nodes by utilizing the initial probability, the transition probability and the output probability in the hidden Markov model, arranging each SFC in the plurality of SFCs based on the hidden state probability, obtaining the hidden state subsequences corresponding to the SFCs and obtaining a plurality of hidden state subsequences corresponding to the SFCs; the hidden state subsequence comprises the following elements: and the data center node is deployed on the network function node in the SFC.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
10. 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 claims 1 to 7.
CN201910472411.3A 2019-05-31 2019-05-31 A kind of method of combination, device, electronic equipment and the storage medium of cross-domain SFC Pending CN110166304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910472411.3A CN110166304A (en) 2019-05-31 2019-05-31 A kind of method of combination, device, electronic equipment and the storage medium of cross-domain SFC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910472411.3A CN110166304A (en) 2019-05-31 2019-05-31 A kind of method of combination, device, electronic equipment and the storage medium of cross-domain SFC

Publications (1)

Publication Number Publication Date
CN110166304A true CN110166304A (en) 2019-08-23

Family

ID=67630541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910472411.3A Pending CN110166304A (en) 2019-05-31 2019-05-31 A kind of method of combination, device, electronic equipment and the storage medium of cross-domain SFC

Country Status (1)

Country Link
CN (1) CN110166304A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510381A (en) * 2020-04-23 2020-08-07 电子科技大学 Service function chain deployment method based on reinforcement learning in multi-domain network environment
CN114124818A (en) * 2021-11-11 2022-03-01 广东工业大学 Newly-added function node deployment optimization method for multicast transmission in SDN network
CN114172820A (en) * 2021-11-26 2022-03-11 广东技术师范大学 Cross-domain SFC dynamic deployment method, device, computer equipment and storage medium
CN116545877A (en) * 2023-06-28 2023-08-04 广东技术师范大学 Cross-domain SFC dynamic deployment method, device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180083820A (en) * 2017-01-13 2018-07-23 주식회사 케이티 cloud node for network services of virtual customer premises equipment
CN108833335A (en) * 2018-04-16 2018-11-16 中山大学 A network security function service chain system based on cloud computing management platform Openstack

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180083820A (en) * 2017-01-13 2018-07-23 주식회사 케이티 cloud node for network services of virtual customer premises equipment
CN108833335A (en) * 2018-04-16 2018-11-16 中山大学 A network security function service chain system based on cloud computing management platform Openstack

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XUXIA ZHONG等: "Cost-aware Service Function Chaining With Reliability Guarantees in NFV-enabled Inter-DC Network", 《2019 IFIP/IEEE INTERNATIONAL SYMPOSIUM ON INTEGRATED NETWORK MANAGEMENT》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510381A (en) * 2020-04-23 2020-08-07 电子科技大学 Service function chain deployment method based on reinforcement learning in multi-domain network environment
CN111510381B (en) * 2020-04-23 2021-02-26 电子科技大学 Service function chain deployment method based on reinforcement learning in multi-domain network environment
CN114124818A (en) * 2021-11-11 2022-03-01 广东工业大学 Newly-added function node deployment optimization method for multicast transmission in SDN network
CN114172820A (en) * 2021-11-26 2022-03-11 广东技术师范大学 Cross-domain SFC dynamic deployment method, device, computer equipment and storage medium
CN114172820B (en) * 2021-11-26 2024-03-05 广东技术师范大学 Cross-domain SFC dynamic deployment method, device, computer equipment and storage medium
CN116545877A (en) * 2023-06-28 2023-08-04 广东技术师范大学 Cross-domain SFC dynamic deployment method, device, computer equipment and storage medium
CN116545877B (en) * 2023-06-28 2023-09-05 广东技术师范大学 Cross-domain SFC dynamic deployment method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108595157B (en) Block chain data processing method, device, equipment and storage medium
US11930023B2 (en) Deep learning-based similarity evaluation in decentralized identity graphs
CN110166304A (en) A kind of method of combination, device, electronic equipment and the storage medium of cross-domain SFC
CN105224606B (en) A kind of processing method and processing device of user identifier
Fischer et al. Assigning tasks for efficiency in Hadoop
Verma et al. Application of truffle suite in a blockchain environment
US8458334B2 (en) Optimized capacity planning
JP2022511716A (en) Decentralized deep learning
CN114172820B (en) Cross-domain SFC dynamic deployment method, device, computer equipment and storage medium
Barba-González et al. jMetalSP: a framework for dynamic multi-objective big data optimization
Kadhe et al. Analyzing the download time of availability codes
JP2023508076A (en) Elastically run machine learning workloads with application-based profiling
JP2017021772A (en) Copula-theory based feature selection
CN109614227A (en) Task resource allocation method, apparatus, electronic device, and computer-readable medium
Ubarhande et al. Novel data-distribution technique for Hadoop in heterogeneous cloud environments
CN109189572B (en) Resource estimation method and system, electronic equipment and storage medium
WO2024255436A1 (en) Modeling method and apparatus for nodes in multivariate heterogeneous computing system, device, and medium
CN115118784A (en) Computing resource scheduling method, device and system
Benoit et al. Evaluating the performance of skeleton-based high level parallel programs
CN117215728A (en) Agent model-based simulation method and device and electronic equipment
CN111159464A (en) Audio clip detection method and related equipment
Han et al. An adaptive scheduling algorithm for heterogeneous Hadoop systems
Chen et al. A scheduling algorithm for heterogeneous computing systems by edge cover queue
Entezari-Maleki et al. Performability-based workflow scheduling in grids
Ni et al. An ant colony optimization for the composite SaaS placement problem in the cloud

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190823