CN107332913B - Optimized deployment method of service function chain in 5G mobile network - Google Patents

Optimized deployment method of service function chain in 5G mobile network Download PDF

Info

Publication number
CN107332913B
CN107332913B CN201710536013.4A CN201710536013A CN107332913B CN 107332913 B CN107332913 B CN 107332913B CN 201710536013 A CN201710536013 A CN 201710536013A CN 107332913 B CN107332913 B CN 107332913B
Authority
CN
China
Prior art keywords
vnf
mapping
server
link
virtual machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710536013.4A
Other languages
Chinese (zh)
Other versions
CN107332913A (en
Inventor
孙罡
赵东成
廖丹
孙健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201710536013.4A priority Critical patent/CN107332913B/en
Publication of CN107332913A publication Critical patent/CN107332913A/en
Application granted granted Critical
Publication of CN107332913B publication Critical patent/CN107332913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0252Traffic management, e.g. flow control or congestion control per individual bearer or channel
    • H04W28/0263Traffic management, e.g. flow control or congestion control per individual bearer or channel involving mapping traffic to individual bearers or channels, e.g. traffic flow template [TFT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种5G移动网络中服务功能链的优化部署方法,属于移动通信领域。本发明在将底层网络的服务器资源和带宽资源分配给动态到来的每个服务功能链请求时,通过在部署时考虑VNF合并策略、虚拟重用策略以及临时链路策略的部署方式,提出了三种不同的映射方案:最小化计算资源成本:部署时限制每条虚拟链路能被服务提供商接受的最大映射成本;最短化服务功能链的路径长度:部署时限制每个虚拟网络功能能被服务提供商接受的最大映射成本;使用性别大战博弈论模型公平优化计算资源成本和链路资源成本。本发明的三种实现方案,均能达到在提高服务功能链请求的映射成功率、底层网络的资源利用率的同时,尽可能使得总的映射花销最小。

Figure 201710536013

The invention discloses an optimized deployment method of a service function chain in a 5G mobile network, and belongs to the field of mobile communication. When allocating the server resources and bandwidth resources of the underlying network to each service function chain request that arrives dynamically, the present invention proposes three deployment methods by considering the deployment methods of the VNF merge strategy, the virtual reuse strategy and the temporary link strategy during deployment. Different mapping schemes: Minimize the cost of computing resources: Limit the maximum mapping cost that each virtual link can be accepted by the service provider during deployment; Minimize the path length of the service function chain: Limit each virtual network function that can be served during deployment The maximum mapping cost accepted by the provider; compute resource cost and link resource cost are fairly optimized using a gender war game theory model. The three implementation schemes of the present invention can all achieve the minimum total mapping cost as much as possible while improving the mapping success rate of the service function chain request and the resource utilization rate of the underlying network.

Figure 201710536013

Description

一种5G移动网络中服务功能链的优化部署方法An optimized deployment method of service function chain in 5G mobile network

技术领域technical field

本发明属于移动通信领域,具体涉及5G移动网络中服务功能链的优化部署。The invention belongs to the field of mobile communications, and in particular relates to the optimized deployment of service function chains in a 5G mobile network.

背景技术Background technique

随着无线流量和服务的大幅增长,因第四代(4G)将不能满足未来的网络需求,从而推动第五代(5G)移动无线网络的研究,以应对未来多样化差异化服务的巨大挑战。With the substantial growth of wireless traffic and services, the fourth generation (4G) will not be able to meet future network needs, thus promoting the research of fifth generation (5G) mobile wireless networks to meet the great challenges of diversified and differentiated services in the future .

随着移动无线流量的爆炸式增长,移动运营商正在考虑使用云计算来扩展其服务,并应对移动数据流量的巨大增长。在传统的电信网络中,网络功能或中间盒子(如分组数据网网关、服务网关、防火墙、内容过滤器、代理服务器、广域网优化器、入侵检测系统和入侵防御系统)被一些专门的物理设备和设施实现。然而,随着用户对更多不同服务和新服务的需求的不断增加,服务供应商必须相应地购买、存储和运作新物理设备,以满足用户的要求。然而,新物理设备的采购将产生较高的资本支出和运营支出。并且这些物理设备需要进行过专门训练的人员进行部署和维护。With the explosion of mobile wireless traffic, mobile operators are considering the use of cloud computing to expand their services and cope with the huge increase in mobile data traffic. In traditional telecom networks, network functions or middle boxes (such as packet data network gateways, service gateways, firewalls, content filters, proxy servers, WAN optimizers, intrusion detection systems, and intrusion prevention systems) are separated by some specialized physical devices and Facility realized. However, as users' demands for more diverse and new services continue to increase, service providers must accordingly purchase, store, and operate new physical equipment to meet user requirements. However, the purchase of new physical equipment will incur higher capex and opex. And these physical devices require specially trained personnel to deploy and maintain.

为解决上述难题,研究人员已经提出了网络功能虚拟化(NFV),旨在将数据包的处理从硬件中间盒子映射到运行在商业硬件上的软件中间盒子上。运行在软件中间盒子上的网络功能称为虚拟网络功能(VNF)。在网络功能虚拟化中,多个虚拟网络功能通常按照一个特定的顺序连接构成服务功能链,来提供不同的网络服务。例如,在移动网络中,移动网络用户和服务终端之间的通信需要通过服务功能链:用户→服务网关→分组数据网网关→防火墙→入侵检测系统→代理→终端,这个服务功能链一般部署在用户和服务终端之间执行流量过滤的安全策略。通常,服务功能链中的各个虚拟网络功能的类型和顺序是根据业务分类、服务水平协议和运营商的供应政策等确定的。To address the aforementioned challenges, researchers have proposed Network Functions Virtualization (NFV), which aims to map the processing of packets from hardware middleboxes to software middleboxes running on commodity hardware. A network function that runs on a software middlebox is called a virtual network function (VNF). In network function virtualization, multiple virtual network functions are usually connected in a specific order to form a service function chain to provide different network services. For example, in a mobile network, the communication between mobile network users and service terminals needs to pass through the service function chain: user → service gateway → packet data network gateway → firewall → intrusion detection system → agent → terminal, this service function chain is generally deployed in A security policy for implementing traffic filtering between users and service terminals. Usually, the type and sequence of each virtual network function in the service function chain are determined according to the service classification, service level agreement and the provisioning policy of the operator.

事实上,核心网络虚拟化和网络功能虚拟化表述了未来5G架构的两个关键愿景。作为5G的一个关键技术,网络功能虚拟化已经成为无线网络架构演进的一个重要方向。作为一种新兴技术,网络功能虚拟化已受到工业界、学术界和标准化机构的广泛关注。对于服务提供商,有效的部署/映射服务功能链到5G移动网络是至关重要的。目前,虚拟网络功能的放置也已成为一个研究热点,并且已经存在一些关于虚拟网络功能放置问题的研究。In fact, core network virtualization and network functions virtualization express two key visions for future 5G architectures. As a key technology of 5G, network function virtualization has become an important direction in the evolution of wireless network architecture. As an emerging technology, network function virtualization has received extensive attention from industry, academia and standardization bodies. For service providers, effective deployment/mapping of service function chains to 5G mobile networks is critical. At present, the placement of virtual network functions has also become a research hotspot, and there have been some studies on the placement of virtual network functions.

当前已提出有关于虚拟网络功能或服务功能链(SFC)请求的放置/部署方案,但是因为处理的对象是虚拟网络或联合云,因此,已提出的大部分部署方式不适合5G移动网络。例如the Capacitated NFV Location算法,其主要思想是当放置网络功能时,尽量减少整体网络成本,同时满足网络节点的大小约束。虽然该方式能够实现虚拟网络功能的放置,但是它是为虚拟网络或联合云提出的,没有考虑5G网络的特性和相关约束,因此该方式不适合5G移动网络。而对于那些适合5G移动网络的虚拟网络功能或服务功能链的放置/部署方案,却只考虑到无线接入网络的虚拟网络功能(如,分组数据网网关和服务网关)的部署问题,并没有考虑到核心网络和数据中心网络的虚拟网络功能(如防火墙、内容过滤器、代理服务器、广域网优化器、入侵检测系统和入侵防御系统)的部署问题。例如通过竞价纳什理论来折中需要重放置的服务网关数量和路径大长度,虽然能够实现虚拟网络功能在5G移动网络中的放置,但是只考虑到无线接入网络的虚拟网络功能的部署问题,然而,他们没有考虑的核心网络和数据中心网络的虚拟网络功能的部署问题。There are currently proposed placement/deployment schemes for virtual network functions or service function chaining (SFC) requests, but most of the proposed deployment methods are not suitable for 5G mobile networks because the object of processing is virtual networks or federated clouds. For example, the Capacitated NFV Location algorithm, its main idea is to minimize the overall network cost when placing network functions, while satisfying the size constraints of network nodes. Although this method can realize the placement of virtual network functions, it is proposed for virtual networks or joint clouds without considering the characteristics and related constraints of 5G networks, so this method is not suitable for 5G mobile networks. For the placement/deployment solutions of virtual network functions or service function chains suitable for 5G mobile networks, only the deployment of virtual network functions (such as packet data network gateways and service gateways) of the wireless access network is considered, and there is no Consider the deployment of virtual network functions such as firewalls, content filters, proxy servers, WAN optimizers, intrusion detection systems, and intrusion prevention systems for core and data center networks. For example, the number of service gateways that need to be relocated and the length of the path can be compromised through the bidding Nash theory. Although the placement of virtual network functions in the 5G mobile network can be realized, only the deployment of virtual network functions of the wireless access network is considered. However, they do not consider the deployment of virtual network functions in core networks and data center networks.

发明内容SUMMARY OF THE INVENTION

本发明要解决的技术问题是,提出一种已知5G移动网络(底层网络)和在线的服务功能链请求、移动网络用户的位置和服务终端的位置前提条件下,找出一种在考虑每个服务功能链请求中每个虚拟网络功能和链路连接情况和满足相关约束条件下以消耗最少的服务器资源,带宽资源和减小服务功能链请求的阻塞率为目标,将服务功能链请求进行放置的部署方法。本发明的部署方案综合考虑了服务功能链请求的特殊性,除了对常见的带宽资源需求和服务器资源需求做出了优化的配置外,还针对服务功能链请求在通信时延方面的严格要求提出了相应的解决策略。The technical problem to be solved by the present invention is to propose a known 5G mobile network (underlying network) and online service function chain request, the location of the mobile network user and the location of the service terminal. Each virtual network function and link connection in each service function chain request and meet the relevant constraints, with the goal of consuming the least server resources, bandwidth resources and reducing the blocking rate of the service function chain request, the service function chain request is processed. The deployment method for placement. The deployment scheme of the present invention comprehensively considers the particularity of the service function chain request. In addition to optimizing the configuration of common bandwidth resource requirements and server resource requirements, it also proposes a strict requirement for the communication delay of the service function chain request. corresponding solution strategies.

本发明在服务功能链请求的映射过程,为了有效的映射/部署服务功能链请求到5G移动网络,引入三种有效的策略来减少计算资源和链接资源的成本,从而提高服务功能链请求接收率。In the mapping process of the service function chain request, in order to effectively map/deploy the service function chain request to the 5G mobile network, the present invention introduces three effective strategies to reduce the cost of computing resources and link resources, thereby improving the service function chain request reception rate. .

(1)虚拟机重用策略。(1) Virtual machine reuse strategy.

在本发明中,为了提高服务器的资源利用率,引入虚拟机重用策略,即,当映射一个虚拟网络功能(VNF)时,可以重用实现相同的VNF的存在/已有虚拟机。虚拟机重用策略不仅可以提高服务器的资源利用率,而且当服务器资源受限的时候,还可以提高服务功能链请求的接收率。为了提高服务器的资源利用率和降低成本的计算资源,当映射一个VNF到服务器时,若考虑虚拟机重用,则首先判断放置当前VNF的服务器是否存在可重用的虚拟机,若存在,则将当前VNF托管到这个服务器上的可重用的虚拟机上;否则,就将当前VNF托管到这个服务器上的新虚拟机上。其中可重用的虚拟机为:带有重用标识符(表示当前虚拟机允许被重用)的已托管了至少一个与VNFi相同类型的VNF的虚拟机,且已托管的VNF与VNFi不属于同一服务功能链请求。In the present invention, in order to improve the resource utilization rate of the server, a virtual machine reuse strategy is introduced, that is, when a virtual network function (VNF) is mapped, the existing/existing virtual machine that implements the same VNF can be reused. The virtual machine reuse strategy can not only improve the resource utilization of the server, but also improve the reception rate of service function chain requests when the server resources are limited. In order to improve the resource utilization of the server and reduce the cost of computing resources, when mapping a VNF to the server, if virtual machine reuse is considered, first determine whether there is a reusable virtual machine on the server where the current VNF is placed. The VNF is hosted on a reusable virtual machine on this server; otherwise, the current VNF is hosted on a new virtual machine on this server. The reusable virtual machines are: a virtual machine with a reuse identifier (indicating that the current virtual machine is allowed to be reused) that has hosted at least one VNF of the same type as VNF i , and the managed VNF does not belong to the same VNF i Service function chain request.

当VNF被托管在可重用的虚拟机上时,在该虚拟机的原始服务时间内,本发明不考虑计算资源成本,即计算资源的成本为零,但当VNF的服务时间超过该虚拟机的原始服务时间,则需要计算额外时间的计算资源成本。当VNF使用一个新的虚拟机,本发明需要计算VNF的整个服务时间的计算资源成本。因此,对一个服务功能链请求的任意VNF的计算资源成本的计算过程如下:When the VNF is hosted on a reusable virtual machine, during the original service time of the virtual machine, the present invention does not consider the cost of computing resources, that is, the cost of computing resources is zero, but when the service time of the VNF exceeds the service time of the virtual machine The original service time, you need to calculate the computing resource cost for the additional time. When the VNF uses a new virtual machine, the present invention needs to calculate the computing resource cost for the entire service time of the VNF. Therefore, the calculation process of the computing resource cost of any VNF requested by a service function chain is as follows:

Cost(VNFi→nk)=p(nk)×ε(VNFi)×Ti p Cost(VNF i →n k )=p(n k )×ε(VNF i )×T i p

Figure BDA0001340546180000031
Figure BDA0001340546180000031

其中,Cost(VNFi→nk)表示第i个VNF(VNFi)被映射到服务器nk的计算资源成本,p(nk)表示服务器nk的资源单位成本,即本发明中用符号p(·)表示括号中对象的单位成本,ε(VNFi)表示VNFi对服务器的资源约束,如CPU、存储器和存储容量等。NV={VNF1,VNF2,…,VNFn}表示服务功能链请求中的虚拟网络功能集合,下标n表示一个服务功能链请求所包括的VNF的数目,Ti p表示VNFi需要付费的时间,Ti表示VNFi的服务时间,To表示被重用虚拟机的原始服务时间,πi表示托管在虚拟机上的VNF的数量,πi=1表示当前虚拟机没有被重用,πi>1表示被多个VNF重用。重用存在的虚拟机会影响其他VNF的性能,因此,定义δ作为托管在存在虚拟机上的VNF的最大数量,即:

Figure BDA0001340546180000032
Among them, Cost(VNF i →n k ) represents the computing resource cost of the i-th VNF (VNF i ) being mapped to the server n k , and p(n k ) represents the resource unit cost of the server n k , that is, the symbol used in the present invention p( ) represents the unit cost of the object in parentheses, and ε(VNF i ) represents the resource constraints of VNF i on the server, such as CPU, memory, and storage capacity. N V = { VNF 1 , VNF 2 , . The paid time, Ti represents the service time of VNF i , T o represents the original service time of the reused virtual machine, π i represents the number of VNFs hosted on the virtual machine, π i =1 means that the current virtual machine is not reused, π i >1 means reused by multiple VNFs. Reusing existing virtual machines affects the performance of other VNFs, therefore, define δ as the maximum number of VNFs hosted on existing virtual machines, namely:
Figure BDA0001340546180000032

(2)VNF合并策略。(2) VNF merge strategy.

在本发明中,当映射VNFi时,如果托管VNFi-1的服务器有足够的可用资源,则可以考虑映射VNFi到托管VNFi-1的服务器上,本发明称这个策略为VNF合并策略。在本发明中,并不在映射这个服务功能链请求之前合并某些VNF,而是在映射的过程中,映射第i个VNF到托管第i-1个VNF的服务器上,如果这个服务器有足够的可用资源。在VNF合并策略中,第i个VNF只能被映射到托管第i-1个VNF的服务器上,但是不能被映射到托管这个服务功能链请求的其他VNF的服务器上,以此避免乒乓路由问题。例如,当服务功能链请求的VNF1被映射到了物理节点B、VNF2被映射到了物理节点F后,在映射VNF3时,其能被映射到物理节点F,如果物理节点F有足够的可用资源,即允许将VNF2和VNF3合并在一起,这样VNF2和VNF3通信就不需要消耗带宽资源,因为VNF2和VNF3在物理节点F内部进行通信。但是,不允许映射VNF3到物理节点B,因为这样会导致乒乓路由,这是不希望发生的。In the present invention, when mapping VNF i , if the server hosting VNF i-1 has enough available resources, it can be considered to map VNF i to the server hosting VNF i-1 , the present invention calls this strategy as VNF merge strategy . In the present invention, some VNFs are not merged before mapping this service function chain request, but during the mapping process, the i-th VNF is mapped to the server hosting the i-1-th VNF, if the server has enough available resources. In the VNF merge strategy, the i-th VNF can only be mapped to the server hosting the i-1-th VNF, but it cannot be mapped to the server hosting other VNFs requested by this service function chain, so as to avoid the ping-pong routing problem . For example, when VNF 1 requested by the service function chain is mapped to physical node B and VNF 2 is mapped to physical node F, when mapping VNF 3 , it can be mapped to physical node F, if physical node F has enough available resources, that is, allows VNF 2 and VNF 3 to be merged together, so that VNF 2 and VNF 3 communication does not need to consume bandwidth resources, because VNF 2 and VNF 3 communicate inside physical node F. However, mapping VNF 3 to Physical Node B is not allowed as this would result in ping-pong routing, which is not desired.

(3)临时链路映射策略。(3) Temporary link mapping strategy.

在本发明中,当映射第i个VNF时,同时需要映射连接第i个VNF和第i-1个VNF的第i条链路ei,(虚拟链路)来保证在第i个VNF获得近似最优的映射方案。传统的方法是致力于找到第i个VNF的局部最优映射解决方案,但这不能保证整个服务功能链的近似最优的路径。为了保证近似最优的路径,提高整个服务功能链请求的接受率,本发明在计算虚拟链路ei的链路资源成本时,生成一条连接第i个VNF和服务终端的临时链路tei(虚拟链路),这条临时链路的带宽需求等于第i+1条链路的带宽需求,并且映射这条临时链路tei到底层网络,得到映射路径。当映射第i个VNF和虚拟链路ei时,通过使用临时链路映射策略,以此找到第i个VNF的一个近似最优映射方案。在临时链路映射策略中,临时链路不需要消耗实际链路资源,它只是用来约束第i个VNF不偏离服务终端太远,以保证托管第i个VNF的物理服务器的邻接链路有足够的链路资源来映射下一条虚拟链路,从而提高服务功能链接受率。第i条虚拟链路的链路资源成本的计算方式如下:In the present invention, when mapping the i-th VNF, the i-th link e i connecting the i-th VNF and the i-1-th VNF needs to be mapped at the same time, (virtual link) to ensure that the i-th VNF obtains Nearly optimal mapping scheme. The traditional approach is devoted to finding the locally optimal mapping solution for the ith VNF, but this cannot guarantee a near-optimal path for the entire service function chain. In order to ensure an approximate optimal path and improve the acceptance rate of the entire service function chain request, the present invention generates a temporary link te i connecting the ith VNF and the service terminal when calculating the link resource cost of the virtual link e i (virtual link), the bandwidth requirement of this temporary link is equal to the bandwidth requirement of the i+1th link, and this temporary link te i is mapped to the underlying network to obtain a mapping path. When mapping the i-th VNF and the virtual link e i , a temporary link mapping strategy is used to find an approximate optimal mapping scheme for the i-th VNF. In the temporary link mapping strategy, the temporary link does not need to consume actual link resources, it is only used to constrain the i-th VNF not to deviate too far from the service terminal, so as to ensure that the adjacent links of the physical server hosting the i-th VNF have Sufficient link resources to map the next virtual link, thereby increasing the service function link acceptance rate. The link resource cost of the i-th virtual link is calculated as follows:

Figure BDA0001340546180000041
Figure BDA0001340546180000041

其中,

Figure BDA0001340546180000042
表示连接VNFi和VNFi-1的第i条虚拟链路(ei)的链路资源成本,pei表示虚拟链路ei在底层网络的映射路径(底层路径),ptei表示临时链路tei在底层网络的的映射路径(底层路径),es表示底层网络的物理链路,xi表示虚拟链路ei的资源约束,如带宽等,而xi+1则表示连接第VNFi+1和VNFi的第i+1条虚拟链路的资源约束。本发明中,默认连接第一个VNF与用户的虚拟链路为虚拟链路e1。对服务功能链路请求的映射可分为两个部分。第一部分是放置和分配资源给服务功能链请求的VNF。第二部分是映射和分配带宽资源给服务功能链请求的虚拟链路。服务功能链的映射过程描述如下。in,
Figure BDA0001340546180000042
Represents the link resource cost of the ith virtual link (ei) connecting VNF i and VNF i-1 , p ei represents the mapping path (underlay path) of the virtual link e i in the underlying network, p tei represents the temporary chain The mapping path (underlayer path) of path te i in the underlying network, es represents the physical link of the underlying network, xi represents the resource constraints of the virtual link e i , such as bandwidth, etc., and xi+1 represents the connection first Resource constraints of VNF i+1 and the i+1th virtual link of VNF i . In the present invention, the virtual link connecting the first VNF and the user is the virtual link e 1 by default. The mapping of service function link requests can be divided into two parts. The first part is to place and allocate resources to the VNF serving the function chain request. The second part is to map and allocate bandwidth resources to virtual links that serve function chain requests. The mapping process of the service function chain is described as follows.

(1)VNF映射:(1) VNF mapping:

VNF映射过程可以表示为:The VNF mapping process can be expressed as:

Figure BDA0001340546180000043
Figure BDA0001340546180000043

Figure BDA0001340546180000044
Figure BDA0001340546180000044

Figure BDA0001340546180000051
Figure BDA0001340546180000051

Figure BDA0001340546180000052
Figure BDA0001340546180000052

Figure BDA0001340546180000053
Figure BDA0001340546180000053

Figure BDA0001340546180000054
Figure BDA0001340546180000054

Figure BDA0001340546180000055
Figure BDA0001340546180000055

其中NS1表示分配给当前服务功能链请求的底层网络的服务器和路由器的集合,CN1表示分配给当前服务功能链请求的服务器资源,MN={M(VNF1),M(VNF2),...,M(VNFn)}表示当前服务功能链请求的每个VNF的映射记录。M(VNFi)表示托管VNFi的服务器,R(M(VNFi))表示服务器M(VNFi)的可用资源。CN={ε(VNF1),ε(VNF2),...,ε(VNFn)}表示所有虚拟网络功能的资源约束集合,VMi表示托管VNFi的虚拟机(存在的)ε(VMi)表示这个存在的虚拟机的计算资源,y∈{0,1,2,...,Y}表示网络区域的编号,L(M(VNFi))表示服务器M(VNFi)所在的网络区域的编号,并且一个服务器只能属于一个网络区域,

Figure BDA0001340546180000056
表示VNFi能被映射到这个网络区域,
Figure BDA0001340546180000057
表示VNFi不能被映射到这个网络区域,
Figure BDA0001340546180000058
表示服务器M(VNFi)满足VNFi的位置约束;若
Figure BDA0001340546180000059
则不满足。在5G移动网络中,服务网关和分组数据网关属于无线接入网络的功能,他们通常只部署在无线接入网络中,而防火墙、内容过滤器、代理服务器、广域网优化器、入侵检测系统和入侵防御系统是数据中心网络或核心网络的功能,他们通常只部署在核心网络和数据中心网络中。where N S1 represents the set of servers and routers allocated to the underlying network requested by the current service function chain, C N1 represents the server resources allocated to the current service function chain request, MN = { M (VNF 1 ), M(VNF 2 ) ,...,M(VNF n )} represents the mapping record of each VNF requested by the current service function chain. M(VNF i ) represents the server hosting the VNF i , and R(M(VNF i )) represents the available resources of the server M(VNF i ). C N = {ε(VNF 1 ),ε(VNF 2 ),...,ε(VNF n )} represents the resource constraint set of all virtual network functions, VM i represents the virtual machine (existing) ε that hosts VNF i (VM i ) represents the computing resources of the existing virtual machine, y∈{0,1,2,...,Y} represents the number of the network area, L(M(VNF i )) represents the server M(VNF i ) The number of the network area where it is located, and a server can only belong to one network area,
Figure BDA0001340546180000056
Indicates that VNF i can be mapped to this network area,
Figure BDA0001340546180000057
Indicates that the VNF i cannot be mapped to this network area,
Figure BDA0001340546180000058
Indicates that the server M (VNF i ) satisfies the location constraint of VNF i ; if
Figure BDA0001340546180000059
is not satisfied. In 5G mobile network, service gateway and packet data gateway belong to the function of radio access network, they are usually only deployed in radio access network, while firewall, content filter, proxy server, WAN optimizer, intrusion detection system and intrusion detection system Defense systems are functions of the data center network or core network, and they are usually deployed only in the core network and the data center network.

(2)服务功能链的链路映射:(2) Link mapping of service function chain:

服务功能链的链路映射描述如下:The link mapping of the service function chain is described as follows:

Figure BDA00013405461800000510
Figure BDA00013405461800000510

Figure BDA00013405461800000511
Figure BDA00013405461800000511

Figure BDA00013405461800000512
Figure BDA00013405461800000512

Figure BDA00013405461800000513
Figure BDA00013405461800000513

其中,ME={M(e1),M(e2),...,M(e|Ev|)}表示当前服务功能链请求的每条虚拟链路的映射记录,

Figure BDA0001340546180000061
表示当前服务功能链请求的虚拟链路集合,|Ev|表示集合EV的元素个数,即当前服务功能链请求的虚拟链路数量。
Figure BDA00013405461800000618
表示当前服务功能链请求的所有虚拟链路的资源约束集合。P1表示当前服务功能链请求所映射的端到端的底层路径集合,并且P1的每条底层路径
Figure BDA0001340546180000062
是底层网络的物理链路集合ES的一个子集合。CE1表示分配给这个服务功能链请求的链路资源。
Figure BDA0001340546180000063
表示底层路径
Figure BDA0001340546180000064
的可用带宽资源,b(es)表示物理链路es的可用带宽资源,
Figure BDA0001340546180000065
表示底层路径
Figure BDA0001340546180000066
的路径时延,d(es)表示物理链路es的时延。Among them, M E ={M(e 1 ),M(e 2 ),...,M(e |Ev| )} represents the mapping record of each virtual link requested by the current service function chain,
Figure BDA0001340546180000061
represents the virtual link set requested by the current service function chain, |E v | represents the number of elements in the set EV , that is, the number of virtual links requested by the current service function chain.
Figure BDA00013405461800000618
Represents the set of resource constraints for all virtual links requested by the current service function chain. P 1 represents the set of end-to-end underlying paths mapped by the current service function chain request, and each underlying path of P 1
Figure BDA0001340546180000062
is a subset of the physical link set ES of the underlying network. C E1 represents the link resource allocated to this service function chain request.
Figure BDA0001340546180000063
Indicates the underlying path
Figure BDA0001340546180000064
The available bandwidth resources of , b( es ) represents the available bandwidth resources of the physical link es ,
Figure BDA0001340546180000065
Indicates the underlying path
Figure BDA0001340546180000066
The path delay of d (es) represents the delay of the physical link es .

因此,每个服务功能链请求在5G移动网络中的部署问题,I)链路资源成本最小化;II)计算资源的成本最小化,可以根据下面的线性规划(1)描述:Therefore, the deployment problem of each service function chain request in 5G mobile network, I) minimize the cost of link resources; II) minimize the cost of computing resources, which can be described according to the following linear programming (1):

Figure BDA0001340546180000067
Figure BDA0001340546180000067

Figure BDA0001340546180000068
Figure BDA0001340546180000068

s.t.s.t.

Figure BDA0001340546180000069
Figure BDA0001340546180000069

Figure BDA00013405461800000610
Figure BDA00013405461800000610

Figure BDA00013405461800000611
Figure BDA00013405461800000611

Figure BDA00013405461800000612
Figure BDA00013405461800000612

Figure BDA00013405461800000613
Figure BDA00013405461800000613

Figure BDA00013405461800000614
Figure BDA00013405461800000614

Figure BDA00013405461800000615
Figure BDA00013405461800000615

Figure BDA00013405461800000616
Figure BDA00013405461800000616

Figure BDA00013405461800000617
Figure BDA00013405461800000617

第一个目标的目的是尽可能地降低计算资源的成本。这将增加服务功能链有一个更长的路径的概率。第二个目标的目的是最大限度地减少链路资源的成本,即,尽可能多的缩短整个服务功能链的路径。同时,在线性规划(1)中的约束条件被用于确保以下约束:The purpose of the first goal is to reduce the cost of computing resources as much as possible. This will increase the probability that the service function chain will have a longer path. The purpose of the second goal is to minimize the cost of link resources, that is, to shorten the path of the entire service function chain as much as possible. At the same time, the constraints in linear programming (1) are used to ensure the following constraints:

约束1用于确保托管在虚拟机上的VNF的数量不超过服务供应商所给定的数量δ。Constraint 1 is used to ensure that the number of VNFs hosted on a virtual machine does not exceed the number δ given by the service provider.

约束2给出了VNF需要付费的时间。Constraint 2 gives the time the VNF needs to pay.

约束3和4确保被使用的服务器满足VNF的计算资源需求。Constraints 3 and 4 ensure that the servers being used meet the computing resource requirements of the VNF.

约束5和6保证所使用的物理链路满足虚拟链路的约束。Constraints 5 and 6 ensure that the physical link used satisfies the constraints of the virtual link.

约束7、8和9确保被使用的服务器满足VNF的位置约束。Constraints 7, 8, and 9 ensure that the server being used satisfies the VNF's location constraints.

因线性规划(1)为多目标问题,无法直接求解,因此,在本发明提出了三个解决方案,来解决多目标问题(1)。提出的第一个解决方案是:最大限度地减少计算资源的成本;第二个解决方案是:缩短整个服务功能链的路径;第三解决方案是:通过利用性别大战博弈(BOS)模型为VNF分配资源和路由,以此为计算资源成本和链路资源成本找到一个公平的解决方案。上述三个解决方案具体描述如下:Because the linear programming (1) is a multi-objective problem and cannot be solved directly, three solutions are proposed in the present invention to solve the multi-objective problem (1). The first solution proposed is: minimize the cost of computing resources; the second solution is: shorten the path of the entire service function chain; the third solution is: by utilizing the Battle of Sex Game (BOS) model for VNF Allocate resources and routes to find a fair solution for computational resource costs and link resource costs. The above three solutions are described in detail as follows:

(1)最小化计算资源的成本(简称MC方案)。(1) Minimize the cost of computing resources (MC scheme for short).

在该解决方案中,定义

Figure BDA0001340546180000071
为服务功能链请求中每条虚拟链路能被服务提供商接受的最大映射成本,即
Figure BDA0001340546180000072
由服务提供商给定,其通常不超过每条虚拟链路的收费。这个优化模型以降低计算资源成本为目标,可描述为如下的线性规划(2):In this solution, define
Figure BDA0001340546180000071
is the maximum mapping cost that can be accepted by the service provider for each virtual link in the service function chain request, namely
Figure BDA0001340546180000072
Given by the service provider, it usually does not exceed the charge per virtual link. This optimization model aims to reduce the cost of computing resources and can be described as the following linear programming (2):

Figure BDA0001340546180000073
Figure BDA0001340546180000073

s.t.s.t.

Figure BDA0001340546180000074
Figure BDA0001340546180000074

Figure BDA0001340546180000075
Figure BDA0001340546180000075

Figure BDA0001340546180000076
Figure BDA0001340546180000076

Figure BDA0001340546180000077
Figure BDA0001340546180000077

Figure BDA0001340546180000078
Figure BDA0001340546180000078

Figure BDA0001340546180000079
Figure BDA0001340546180000079

Figure BDA00013405461800000710
Figure BDA00013405461800000710

Figure BDA00013405461800000711
Figure BDA00013405461800000711

Figure BDA00013405461800000712
Figure BDA00013405461800000712

Figure BDA00013405461800000713
Figure BDA00013405461800000713

即在将底层网络的服务器资源和宽带资源分配给动态到来的每个服务功能链请求时,通过下列步骤得到当前服务功能链请求的最优部署方案:That is, when allocating the server resources and broadband resources of the underlying network to each dynamically incoming service function chain request, the optimal deployment scheme of the current service function chain request is obtained through the following steps:

步骤1:从待映射的服务功能链请求的虚拟网络功能集合NV={VNF1,VNF2,...,VNFn}的第一个VNF开始,依次为当前服务功能链请求的每个VNFi(i=1,…,n)确定备选映射方案集:Step 1: Starting from the first VNF of the virtual network function set N V = {VNF 1 , VNF 2 ,..., VNF n } requested by the service function chain to be mapped, sequentially for each of the current service function chain requests VNF i (i=1,...,n) determines the set of alternative mapping schemes:

(1)确定当前待映射的VNFi的备选服务器集:(1) Determine the candidate server set of the current VNF i to be mapped:

从底层网络的可用服务器集US中,将满足位置约束、计算资源需求且未曾被集合

Figure BDA0001340546180000081
中的各VNF选择过的服务器作为VNFi的备选服务器集,即VNFi可选的备选服务器包括:其他VNF未曾选择过的服务器、VNFi-1所选择的服务器(VNF合并策略),因此
Figure BDA0001340546180000082
也可以表示为:
Figure BDA0001340546180000083
From the set of available servers in the underlying network, US, will satisfy location constraints, computing resource requirements and have not been aggregated
Figure BDA0001340546180000081
The servers selected by each VNF in the VNF i are used as the alternative server set of VNF i , that is, the optional alternative servers of VNF i include: servers that have not been selected by other VNFs, servers selected by VNF i-1 (VNF merging strategy), therefore
Figure BDA0001340546180000082
It can also be expressed as:
Figure BDA0001340546180000083

(2)确定VNFi的备选映射方案集:(2) Determine the set of alternative mapping schemes for VNF i :

用M(VNFi)表示放置VNFi的任意备选服务器,并确定服务器M(VNFi)上用于托管VNFi的虚拟机:判断是否存在可重用的虚拟机,若是,则将VNFi托管在可重用的虚拟机上;否则将VNFi托管在一个新的虚拟机上;Use M(VNF i ) to represent any candidate server where VNF i is placed, and determine the virtual machine used to host VNF i on server M(VNF i ): determine whether there is a reusable virtual machine, and if so, host VNF i on a reusable virtual machine; otherwise host the VNF i on a new virtual machine;

在满足ei(连接VNFi-1与VNFi的虚拟链路)的链路资源需求xi和时延需求的前提下,对ei进行底层路径映射,得到ei的映射路径

Figure BDA0001340546180000084
其中VNF0表示用户;Under the premise of satisfying the link resource requirements xi and delay requirements of e i (the virtual link connecting VNF i-1 and VNF i ), perform bottom-level path mapping on e i to obtain the mapped path of e i
Figure BDA0001340546180000084
Where VNF 0 represents the user;

生成一条连接VNFi与用户终端的临时链路tei,并将ei+1(连接VNFi与VNFi+1的虚拟链路)的链路资源需求xi+1作为tei的链路资源需求;在满足tei的链路资源需求的前提下,对tei进行底层路径映射,得到tei的映射路径

Figure BDA0001340546180000085
即通过临时链路映射策略来约束放置VNFi的服务器不偏离用户终端太远;Generate a temporary link te i connecting VNF i and the user terminal, and use the link resource requirement x i+1 of e i+1 (the virtual link connecting VNF i and VNF i+1 ) as the link of te i Resource requirements; on the premise of meeting the link resource requirements of te i , perform bottom path mapping on te i to obtain the mapping path of te i
Figure BDA0001340546180000085
That is, the temporary link mapping strategy is used to constrain the server placing the VNF i not to deviate too far from the user terminal;

其中映射路径

Figure BDA0001340546180000086
映射路径
Figure BDA0001340546180000087
可能存在多条。where the mapping path
Figure BDA0001340546180000086
map path
Figure BDA0001340546180000087
There may be more than one.

将满足条件

Figure BDA0001340546180000088
的最短映射路径
Figure BDA0001340546180000089
作为对应当前M(VNFi)的ei的最终映射路径,从而保证对ei的底层路径映射所对应的链路资源成本不会超过
Figure BDA00013405461800000810
will satisfy the condition
Figure BDA0001340546180000088
the shortest mapping path of
Figure BDA0001340546180000089
As the final mapping path of e i corresponding to the current M(VNF i ), so as to ensure that the link resource cost corresponding to the underlying path mapping to e i will not exceed
Figure BDA00013405461800000810

将对应当前M(VNFi)的备选映射方案保存到备选映射方案集中,其中备选映射方案包括:M(VNFi)、托管VNFi的虚拟机、ei的最终映射路径;Save the alternative mapping scheme corresponding to the current M(VNF i ) into the set of alternative mapping schemes, where the alternative mapping scheme includes: M(VNF i ), the virtual machine hosting the VNF i , and the final mapping path of e i ;

由当前服务功能链请求的所有VNF的不同备选映射方案的组合,可以得到不同的映射集合MNThe combination of different alternative mapping schemes of all VNFs requested by the current service function chain can obtain different mapping sets MN;

最后,根据公式

Figure BDA0001340546180000091
分别计算每个映射集合的总计算资源成本,由最小总计算资源成本对应的映射集合得到当前服务功能链请求的优化部署方案。Finally, according to the formula
Figure BDA0001340546180000091
The total computing resource cost of each mapping set is calculated separately, and the optimal deployment scheme for the current service function chain request is obtained from the mapping set corresponding to the minimum total computing resource cost.

(2)最短化服务功能链的路径长度(简称SL方案)。(2) The path length of the service function chain is minimized (the SL scheme for short).

在该解决方案中,定义

Figure BDA0001340546180000092
为服务功能链请求中每个VNF能被服务提供商接受的最大映射成本,即
Figure BDA0001340546180000093
由服务提供商给定,其通常不超过每个VNF的收费。这个优化模型旨在最短化服务功能链的路径长度,可描述为如下的线性规划(3):In this solution, define
Figure BDA0001340546180000092
is the maximum mapping cost that each VNF in the service function chain request can be accepted by the service provider, namely
Figure BDA0001340546180000093
Given by the service provider, it usually does not exceed the charge per VNF. This optimization model aims to minimize the path length of the service function chain and can be described as the following linear programming (3):

Figure BDA0001340546180000094
Figure BDA0001340546180000094

s.t.s.t.

Figure BDA0001340546180000095
Figure BDA0001340546180000095

Figure BDA0001340546180000096
Figure BDA0001340546180000096

Figure BDA0001340546180000097
Figure BDA0001340546180000097

Figure BDA0001340546180000098
Figure BDA0001340546180000098

Figure BDA0001340546180000099
Figure BDA0001340546180000099

Figure BDA00013405461800000910
Figure BDA00013405461800000910

Figure BDA00013405461800000911
Figure BDA00013405461800000911

Figure BDA00013405461800000912
Figure BDA00013405461800000912

Figure BDA00013405461800000913
Figure BDA00013405461800000913

Figure BDA00013405461800000914
Figure BDA00013405461800000914

即在将底层网络的服务器资源和宽带资源分配给动态到来的每个服务功能链请求时,通过下列步骤得到当前服务功能链请求的最优部署方案:That is, when allocating the server resources and broadband resources of the underlying network to each dynamically incoming service function chain request, the optimal deployment scheme of the current service function chain request is obtained through the following steps:

步骤1:从待映射的服务功能链请求的虚拟网络功能集合NV={VNF1,VNF2,...,VNFn}的第一个VNF开始,依次为当前服务功能链请求的每个VNFi(i=1,…,n)确定备选映射方案集:Step 1: Starting from the first VNF of the virtual network function set N V = {VNF 1 , VNF 2 ,..., VNF n } requested by the service function chain to be mapped, sequentially for each of the current service function chain requests VNF i (i=1,...,n) determines the set of alternative mapping schemes:

101:从底层网络的可用服务器集中,将满足位置约束、计算资源需求且未曾被集合

Figure BDA00013405461800000915
中的各VNF选择过的服务器作为VNFi的初始备选服务器集Ui′;101: From the pool of available servers in the underlying network, will satisfy location constraints, computing resource requirements and have not been pooled
Figure BDA00013405461800000915
The server selected by each VNF in the VNF i is used as the initial candidate server set U i ′ of VNF i;

分别确定每个初始备选服务器上用于托管VNFi的虚拟机:判断是否存在可重用的虚拟机,若是,则将VNFi托管在可重用的虚拟机上;否则将VNFi托管在一个新的虚拟机上;Determine the virtual machine used to host the VNF i on each initial candidate server: determine whether there is a reusable virtual machine, if so, host the VNF i on the reusable virtual machine; otherwise, host the VNF i on a new virtual machine. on the virtual machine;

对每个初始备选服务器nk∈Ui′,分别确定其上用于托管VNFi的虚拟机:判断是否存在可重用的虚拟机,若是,则将VNFi托管在可重用的虚拟机上;否则将VNFi托管在一个新的虚拟机上。并将其计算资源成本Cost(VNFi→nk)与

Figure BDA0001340546180000101
比较,将小于或等于
Figure BDA0001340546180000102
的初始备选服务器nk作为VNFi的备选服务器nm,并记录备选服务器nm上托管VNFi的虚拟机;由所有备选服务器nm得到VNFi的备选服务器集Ui。For each initial candidate server n k ∈ U i ′, determine the virtual machine used to host VNF i on it: determine whether there is a reusable virtual machine, and if so, host VNF i on the reusable virtual machine ; otherwise host the VNF i on a new virtual machine. and calculate its resource cost Cost(VNF i →n k ) with
Figure BDA0001340546180000101
Compare, will be less than or equal to
Figure BDA0001340546180000102
The initial candidate server n k is used as the candidate server n m of the VNF i, and the virtual machines hosting the VNF i on the candidate server n m are recorded; the candidate server set U i of the VNF i is obtained from all the candidate servers n m .

102:确定VNFi的备选映射方案集:102: Determine the set of alternative mapping schemes for VNF i :

对每个备选服务器nm∈Ui,在满足ei的链路资源需求xi和时延需求的前提下,从服务器nm到VNFi-1的备选服务器的底层路径中,查找一条最短路径作为ei的映射路径

Figure BDA0001340546180000103
其中VNF0表示用户,即对于同一个服务器nm来说,VNFi-1存在多少个备选服务器,则就存在多少条其关于ei的映射路径
Figure BDA0001340546180000104
For each candidate server n m ∈ U i , on the premise of satisfying the link resource requirement x i and the delay requirement of e i , find the underlying path from server n m to the candidate server of VNF i-1 . A shortest path as the mapping path of e i
Figure BDA0001340546180000103
Among them, VNF 0 represents the user, that is, for the same server n m , as many alternative servers exist in VNF i-1 , there are as many mapping paths for e i as there are.
Figure BDA0001340546180000104

生成一条连接VNFi与用户终端的临时链路tei,并将ei+1的链路资源需求xi+1作为tei的链路资源需求;在满足tei的链路资源需求的前提下,从服务器nm到用户终端的底层路径中,查找一条最短路径作为tei的映射路径

Figure BDA0001340546180000105
Generate a temporary link te i connecting the VNF i and the user terminal, and take the link resource requirement x i+1 of e i+1 as the link resource requirement of te i ; on the premise of satisfying the link resource requirement of te i In the bottom path from the server n m to the user terminal, find a shortest path as the mapping path of te i
Figure BDA0001340546180000105

将对应当前nm的备选映射方案保存到VNFi的备选映射方案集中,其中备选映射方案包括:nm、托管VNFi的虚拟机、映射路径

Figure BDA0001340546180000106
Save the alternative mapping scheme corresponding to the current n m to the set of alternative mapping schemes of the VNF i , where the alternative mapping scheme includes: n m , the virtual machine hosting the VNF i , the mapping path
Figure BDA0001340546180000106

步骤2:由当前服务功能链请求的所有VNF的不同备选映射方案的组合,得到不同的映射集合;Step 2: Obtain different mapping sets by combining different alternative mapping schemes of all VNFs requested by the current service function chain;

根据公式

Figure BDA0001340546180000107
分别计算每个映射集合所对应的总链路资源成本,由最小总链路资源成本对应的映射集合得到当前服务功能链请求的优化部署方案。According to the formula
Figure BDA0001340546180000107
Calculate the total link resource cost corresponding to each mapping set separately, and obtain the optimal deployment scheme of the current service function chain request from the mapping set corresponding to the minimum total link resource cost.

(3)使用性别大战博弈论模型公平优化计算资源成本和链路资源成本(简称FOCL方案)。(3) Fairly optimize computing resource cost and link resource cost using gender war game theory model (FOCL scheme for short).

性别大战博弈论模型描述了这样一个博弈场景:在博弈中,两个选手有一些共同利益,但共同利益有不同的结果,并有相互冲突的偏好。例如,这对夫妇宁愿看同一个电视节目,但不想单独看到他们各自的电视节目,而这对夫妇也更喜欢看他们最喜欢的节目。The Gender Wars game theory model describes a game scenario in which two players have some common interests, but the common interests have different outcomes and have conflicting preferences. For example, the couple would rather watch the same TV show than watch their respective TV shows alone, and the couple also prefer to watch their favorite shows.

因此在本发明中,将计算资源成本和链路资源成本作为性别大战博弈论模型中的两个选手,其基于两个策略:I)当映射VNF时重用存在的虚拟机,II)当映射VNF时使用一个新的虚拟机。一个存在的虚拟机被用来映射VNF,它可以减少计算资源的成本,但它可能导致服务功能链有一个更长的路径。一个新的虚拟机被用来映射VNF,它更容易找到服务功能链的一条接近最优的路径,但它可能会导致更高的计算资源的成本。所以每个VNF的映射过程是一个博弈的过程,计算资源成本和链路资源成本这两个选手进行博弈来决定是否使用一个已存在的虚拟机。在本发明中,将重用一个存在的虚拟机作为第一个策略(即1-S),将使用一个新的虚拟机作为第二个策略(即,2-S),即将计算资源成本作为第一个选手(即1-P),将链路资源成本作为第二个选手(即2-P)。这个博弈策略如表1所表示。Therefore, in the present invention, computing resource cost and link resource cost are considered as two players in the gender war game theory model, which is based on two strategies: I) reuse existing virtual machines when mapping VNFs, II) when mapping VNFs when using a new virtual machine. An existing virtual machine is used to map the VNF, which can reduce the cost of computing resources, but it can lead to a longer path in the service function chain. A new virtual machine is used to map the VNF, it is easier to find a near-optimal path of the service function chain, but it may lead to higher cost of computing resources. Therefore, the mapping process of each VNF is a game process. The two players, the computing resource cost and the link resource cost, play a game to decide whether to use an existing virtual machine. In the present invention, an existing virtual machine will be reused as the first strategy (ie, 1-S), and a new virtual machine will be used as the second strategy (ie, 2-S), that is, the computing resource cost will be used as the first strategy. One player (ie 1-P), takes the link resource cost as the second player (ie 2-P). This game strategy is shown in Table 1.

表1博弈策略Table 1 Game strategy

Figure BDA0001340546180000111
Figure BDA0001340546180000111

表1中所涉及的表达式及参数的注释如下:The expressions and parameters involved in Table 1 are annotated as follows:

Figure BDA0001340546180000112
当使用一个存在的虚拟机映射VNFi时的计算资源收益;
Figure BDA0001340546180000112
Computational resource gain when mapping VNF i with an existing virtual machine;

Figure BDA0001340546180000113
当使用一个存在的虚拟机映射VNFi时的链路资源收益;
Figure BDA0001340546180000113
Link resource benefits when using an existing virtual machine to map VNF i ;

Cost(ME(VNFi)):当使用一个存在的虚拟机映射VNFi时的计算资源成本;Cost(ME (VNF i ) ): the cost of computing resources when using an existing virtual machine to map VNF i ;

Cost(pE(ei)):当使用一个存在的虚拟机映射VNFi时的链路资源成本;Cost(p E (e i )): link resource cost when using an existing virtual machine to map VNF i ;

ME(VNFi):当使用一个存在的虚拟机映射VNFi时VNFi的映射方案;M E (VNF i ): the mapping scheme of VNF i when mapping VNF i with an existing virtual machine;

pE(ei):当使用一个存在的虚拟机映射VNFi时虚拟链路ei的映射路径;p E (e i ): the mapping path of virtual link e i when using an existing virtual machine to map VNF i ;

Figure BDA0001340546180000114
当使用一个新虚拟机映射VNFi时的计算资源收益;
Figure BDA0001340546180000114
Computational resource gain when mapping VNF i with a new virtual machine;

Figure BDA0001340546180000115
当使用一个新虚拟机映射VNFi时的链路资源收益;
Figure BDA0001340546180000115
Link resource gains when using a new virtual machine to map VNF i ;

Cost(MN(VNFi)):当使用一个新虚拟机映射VNFi时的计算资源成本;Cost(M N (VNF i )): the cost of computing resources when mapping VNF i with a new virtual machine;

Cost(pN(ei)):当使用一个新虚拟机映射VNFi时的链路资源成本;Cost(p N (e i )): link resource cost when using a new virtual machine to map VNF i ;

MN(VNFi):当使用一个新虚拟机映射VNFi时VNFi的映射方案;MN ( VNF i ): the mapping scheme of VNF i when mapping VNF i with a new virtual machine;

pN(ei):当使用一个新虚拟机映射VNFi时虚拟链路ei的映射路径;p N (ei ) : the mapping path of virtual link e i when a new virtual machine is used to map VNF i ;

其中Cost(ME(VNFi)),Cost(MN(VNFi)),Cost(pE(ei))和Cost(pN(ei))按照如下的公式计算:where Cost(M E (VNF i )), Cost(M N (VNF i )), Cost(p E (e i )) and Cost(p N (e i )) are calculated according to the following formulas:

Cost(Mλ(VNFi))=p(Mλ(VNFi))×ε(VNFi)×Ti pCost(M λ (VNF i ))=p(M λ (VNF i ))×ε(VNF i )×T i p ,

Figure BDA0001340546180000121
Figure BDA0001340546180000121

其中,上标λ∈{E,N},pE(tei)、pN(tei)分别表示当使用一个存在的虚拟机、新虚拟机映射VNFi时所对应临时链路tei的映射路径。Among them, the superscript λ∈{E,N}, p E (te i ), p N (te i ) represent the corresponding temporary link te i when an existing virtual machine and a new virtual machine are used to map VNF i , respectively. map path.

在该模型中,有两个纯策略纳什均衡点,即

Figure BDA0001340546180000122
Figure BDA0001340546180000123
为了获得VNFi的近似最优映射方案,在本发明中选择总收益最高的纯策略纳什均衡点为聚焦均衡点。聚焦均衡点是本发明中VNFi的映射方案。与每个VNF的映射过程是一个重复博弈的过程。上述关于公平优化计算资源成本和链路资源成本,可以通过以下线性规划(4)描述:In this model, there are two pure-strategy Nash equilibria, namely
Figure BDA0001340546180000122
and
Figure BDA0001340546180000123
In order to obtain the approximate optimal mapping scheme of VNF i , in the present invention, the pure-strategy Nash equilibrium point with the highest total return is selected as the focus equilibrium point. The focus equalization point is the mapping scheme of VNF i in the present invention. The mapping process with each VNF is an iterative game process. The above-mentioned fair optimization computing resource cost and link resource cost can be described by the following linear programming (4):

Figure BDA0001340546180000124
Figure BDA0001340546180000124

s.t.s.t.

Figure BDA0001340546180000125
Figure BDA0001340546180000125

Figure BDA0001340546180000126
Figure BDA0001340546180000126

Figure BDA0001340546180000127
Figure BDA0001340546180000127

Figure BDA0001340546180000128
Figure BDA0001340546180000128

Figure BDA0001340546180000129
Figure BDA0001340546180000129

Figure BDA0001340546180000131
Figure BDA0001340546180000131

Figure BDA0001340546180000132
Figure BDA0001340546180000132

Figure BDA0001340546180000133
Figure BDA0001340546180000133

Figure BDA0001340546180000134
Figure BDA0001340546180000134

λ={E,N} (4)λ={E,N} (4)

其中,

Figure BDA0001340546180000135
表示托管VNFi的虚拟机
Figure BDA0001340546180000136
的计算资源,上标λ用于区分虚拟机是已存在的,还是新的,其中E表示已存在,N表示新的,下同。
Figure BDA0001340546180000137
分别表示底层路径
Figure BDA0001340546180000138
的时延、可用带宽资源。in,
Figure BDA0001340546180000135
Represents the virtual machine hosting the VNF i
Figure BDA0001340546180000136
The superscript λ is used to distinguish whether the virtual machine is existing or new, where E means existing and N means new, the same below.
Figure BDA0001340546180000137
respectively represent the underlying path
Figure BDA0001340546180000138
delay and available bandwidth resources.

步骤1:从待映射的服务功能链请求的虚拟网络功能集合NV={VNF1,VNF2,...,VNFn}的第一个VNF开始,依次为当前服务功能链请求的每个VNFi(i=1,…,n)确定的最终映射方案:Step 1: Starting from the first VNF of the virtual network function set N V = {VNF 1 , VNF 2 ,..., VNF n } requested by the service function chain to be mapped, sequentially for each of the current service function chain requests The final mapping scheme determined by VNF i (i=1,...,n):

101:确定当前待映射的VNFi的备选服务器集

Figure BDA0001340546180000139
101: Determine the candidate server set of the VNF i currently to be mapped
Figure BDA0001340546180000139

从底层网络的可用服务器集中,将满足位置约束、计算资源需求且未曾被集合

Figure BDA00013405461800001310
中的各VNF选择过的服务器作为VNFi的备选服务器集
Figure BDA00013405461800001311
From the pool of available servers in the underlying network, will satisfy location constraints, computing resource requirements and have not been pooled
Figure BDA00013405461800001310
The servers selected by the VNFs in the
Figure BDA00013405461800001311

102:对备选服务器集

Figure BDA00013405461800001312
中的每个服务器nk,将服务器nk上的一个新的虚拟机作为托管VNFi的虚拟机;102: For alternate server sets
Figure BDA00013405461800001312
For each server n k in , use a new virtual machine on server n k as a virtual machine hosting VNF i ;

在满足ei的链路资源需求xi和时延需求的前提下,从放置VNFi-1的服务器(即M(VNFi-1))到服务器nk的底层路径中,查找一条最短路径作为ei的映射路径

Figure BDA00013405461800001313
其中M(VNF0)表示用户端,即用户所在的物理节点;On the premise of satisfying the link resource requirements xi and delay requirements of e i , find a shortest path from the server where VNF i-1 is placed (ie M(VNF i-1 )) to the underlying path of server n k map path as e i
Figure BDA00013405461800001313
Among them, M(VNF 0 ) represents the user terminal, that is, the physical node where the user is located;

生成一条连接VNFi与用户终端的临时链路tei,并将ei+1的链路资源需求xi+1作为tei的链路资源需求;在满足tei的链路资源需求的前提下,从服务器nk到用户终端的的底层路径中,查找一条最短路径作为tei的映射路径

Figure BDA00013405461800001314
Generate a temporary link te i connecting the VNF i and the user terminal, and take the link resource requirement x i+1 of e i+1 as the link resource requirement of te i ; on the premise of satisfying the link resource requirement of te i In the bottom path from the server n k to the user terminal, find a shortest path as the mapping path of te i
Figure BDA00013405461800001314

由对应服务器nk的计算资源成本CostVNFN(VNFi→nk)、链路资源成本

Figure BDA00013405461800001315
之和得到对应服务器nk的总映射成本,将总映射成本最小的服务器nk记为
Figure BDA00013405461800001316
By the computing resource cost of the corresponding server n k CostVNF N (VNF i →n k ), the link resource cost
Figure BDA00013405461800001315
The sum gets the total mapping cost of the corresponding server n k , and the server n k with the smallest total mapping cost is recorded as
Figure BDA00013405461800001316

103:对备选服务器集

Figure BDA00013405461800001317
中的每个服务器nj,计算服务器nj的总映射成本,查找总映射成本最小的nj并记为
Figure BDA0001340546180000141
103: For alternate server sets
Figure BDA00013405461800001317
For each server n j in , calculate the total mapping cost of server n j , find n j with the smallest total mapping cost and record it as
Figure BDA0001340546180000141

其中服务器nj的总映射成本计算方式为:where the total mapping cost of server n j is calculated as:

判断服务器nj上是否存在可重用的虚拟机,若否,则将服务器nj的总映射成本设置为无穷大;Determine whether there is a reusable virtual machine on server n j , if not, set the total mapping cost of server n j to infinity;

若是,则将VNFi托管在可重用的虚拟机上,并在满足连接VNFi-1与VNFi的虚拟链路ei的链路资源需求xi和时延需求的前提下,从放置VNFi-1的服务器到服务器nk的底层路径中,查找一条最短路径作为ei的映射路径

Figure BDA0001340546180000142
其中VNF0表示用户;以及生成一条连接VNFi与用户终端的临时链路tei,并将连接VNFi与VNFi+1的虚拟链路ei+1的链路资源需求xi+1作为tei的链路资源需求;在满足tei的链路资源需求的前提下,从服务器nj到用户终端的底层路径中,查找一条最短路径作为tei的映射路径
Figure BDA0001340546180000143
由服务器nj的计算资源成本CostVNFE(VNFi→nj)、链路资源成本
Figure BDA0001340546180000144
之和得到对应服务器nj的总映射成本;If yes, host VNF i on a reusable virtual machine, and under the premise of meeting the link resource requirements x i and delay requirements of the virtual link e i connecting VNF i-1 and VNF i , place the VNF from In the underlying path from the server of i-1 to the server n k , find a shortest path as the mapping path of e i
Figure BDA0001340546180000142
Wherein VNF 0 represents the user; and a temporary link te i connecting VNF i and the user terminal is generated, and the link resource requirement x i+ 1 of the virtual link e i+1 connecting VNF i and VNF i+1 is taken as The link resource requirements of te i ; on the premise that the link resource requirements of te i are met, find a shortest path in the underlying path from the server n j to the user terminal as the mapping path of te i
Figure BDA0001340546180000143
By the computing resource cost of server n j CostVNF E (VNF i →n j ), link resource cost
Figure BDA0001340546180000144
The sum gets the total mapping cost of the corresponding server n j ;

104:将

Figure BDA0001340546180000145
中总映射成本最小的服务器作为放置VNFi的服务器M(VNFi),基于服务器M(VNFi)确定VNFi的最终映射方案,包括服务器M(VNFi)、服务器M(VNFi)上的托管VNFi的虚拟机、对应服务器M(VNFi)的ei的映射路径;104: will
Figure BDA0001340546180000145
The server with the smallest total mapping cost is used as the server M (VNF i ) where the VNF i is placed, and the final mapping scheme of the VNF i is determined based on the server M (VNF i ), including the server M (VNF i ) and the server M (VNF i ) on the server M (VNF i ). The virtual machine hosting VNF i and the mapping path of e i corresponding to server M (VNF i );

Figure BDA0001340546180000146
为定值,所以对
Figure BDA0001340546180000147
求最大则可以直接取转换为取Cost(Mλ(VNFi))与
Figure BDA0001340546180000148
之和最小的映射方案,其中λ∈{N,E}。because
Figure BDA0001340546180000146
is a fixed value, so
Figure BDA0001340546180000147
To find the maximum, it can be directly converted to take Cost(M λ (VNF i )) and
Figure BDA0001340546180000148
Sum-minimum mapping scheme, where λ∈{N,E}.

步骤2:由当前服务功能链请求的所有VNF的最终映射方案得到当前服务功能链请求的优化部署方案。Step 2: Obtain the optimized deployment scheme requested by the current service function chain from the final mapping scheme of all VNFs requested by the current service function chain.

综上所述,由于采用了上述技术方案,本发明的有益效果是:To sum up, due to the adoption of the above-mentioned technical solutions, the beneficial effects of the present invention are:

(1)适用范围广。传统的虚拟网络功能或服务功能链映射算法大多是针对虚拟网络和数据中心网络提出的,或者没有考虑完整的5G网络中的完整服务功能链。本发明所提方法能适用于5G网络中的完整服务功能链请求,因此与传统的映射算法相比,本发明的适用范围更广。(1) Wide range of applications. Most of the traditional virtual network function or service function chain mapping algorithms are proposed for virtual networks and data center networks, or do not consider the complete service function chain in a complete 5G network. The method proposed in the present invention can be applied to the complete service function chain request in the 5G network, so compared with the traditional mapping algorithm, the present invention has a wider scope of application.

(2)映射成本低。由于本发明提出用于线性规划(1)的多目标问题的三种方案,在结合VNF合并策略、虚拟机重用策略和临时链路映射策略基础上来获取对服务功能链请求的低映射成本的部署方案,尤其是第三种方案,综合考虑计算资源与链路资源成本的方式,其映射方案的成本更低。(2) The mapping cost is low. Since the present invention proposes three schemes for the multi-objective problem of linear programming (1), the deployment of low mapping cost for service function chain requests is obtained on the basis of combining VNF merging strategy, virtual machine reuse strategy and temporary link mapping strategy Schemes, especially the third scheme, comprehensively consider the cost of computing resources and link resources, and the cost of the mapping scheme is lower.

(3)资源利用率高。由于本发明在进行映射处理时,所使用的虚拟机重用策略、VNF合并策略和临时链路映射策略能减少资源的消耗,所以,能提高资源的利用率。(3) The resource utilization rate is high. Since the virtual machine reuse strategy, the VNF merge strategy and the temporary link mapping strategy used in the present invention can reduce the consumption of resources, the utilization rate of the resources can be improved.

(4)映射阻塞率小。由于本发明在进行映射处理时,所使用的虚拟机重用策略,VNF合并策略和临时链路映射策略能减少资源的消耗,所以,映射成功的可能性也就越大,阻塞率也就越小。(4) The mapping blocking rate is small. Since the virtual machine reuse strategy, the VNF merging strategy and the temporary link mapping strategy used in the present invention can reduce resource consumption, the probability of successful mapping is greater and the blocking rate is smaller. .

附图说明Description of drawings

图1是一个服务功能链请求的示意图,其中,虚拟网络功能上方的矩形框中的数字表示服务器资源需求,虚拟链路上方的数字表示虚拟链路资源需求、延迟;Figure 1 is a schematic diagram of a service function chain request, wherein the numbers in the rectangular box above the virtual network function represent server resource requirements, and the numbers above the virtual link represent virtual link resource requirements and delays;

图2是一个临时链路映射策略的示意图及对比图,其中图2-a为不考虑临时链路映射策略的映射方案,图2-b、2-c为考虑临时链路映射策略的映射方案,图中的A~G表示不同的物理节点(即服务器),虚短线表示虚拟链路的映射路径,虚点线表示临时链路的映射路径。Figure 2 is a schematic diagram and a comparison diagram of a temporary link mapping strategy, wherein Figure 2-a is a mapping scheme that does not consider the temporary link mapping strategy, and Figures 2-b and 2-c are mapping schemes that consider the temporary link mapping strategy , A to G in the figure represent different physical nodes (ie servers), the dashed line represents the mapping path of the virtual link, and the dashed line represents the mapping path of the temporary link.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面结合实施方式和附图,对本发明作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings.

以基于SDN的5G网络作为实施对象,网络运营商可以将本发明所提出的优化部署方案(映射服务功能链的方法)部署在SDN的控制路由器中的控制层上,SDN控制路由器可以调度自身带有的控制管理功能收集全网信息,获取网络中所有节点资源情况,以及链路的资源,时延等信息。通过这种集中式的控制方式该路由器就可以获取全网的拓扑以及相应的资源信息。当有服务功能链请求到来时,SDN控制路由器可以根据自己所掌握的全网信息,调度部署在其控制层上的基于服务功能链的映射方法,计算出映射成本、拒绝率等关键参数,并反馈给运营商。Taking the SDN-based 5G network as the implementation object, the network operator can deploy the optimized deployment scheme (method of mapping service function chain) proposed by the present invention on the control layer in the SDN control router, and the SDN control router can schedule its own bandwidth. Some control and management functions collect network-wide information, obtain resource information of all nodes in the network, and information such as link resources and delays. Through this centralized control method, the router can obtain the topology of the entire network and corresponding resource information. When a service function chain request arrives, the SDN control router can schedule the service function chain-based mapping method deployed on its control layer according to the network-wide information it has, and calculate key parameters such as mapping cost and rejection rate. feedback to the operator.

部署了本发明的FOCL方案的SDN控制路由器对多个服务功能链请求的在线映射处理时,首先定义离去的服务功能链请求集合为ExpiredSFC,定义服务功能链请求的到达队列为ArrivedSFC。在队列ArrivedSFC中,每个服务功能链请求一个接着一个被映射。定义由于底层网络资源不足而被阻塞的服务功能链请求集合为SFCblo(简称被阻塞的映射请求集合SFCblo)。则对多个服务功能链请求的在线处理过程为:When the SDN control router deploying the FOCL scheme of the present invention performs online mapping processing of multiple service function chain requests, first, the set of outgoing service function chain requests is defined as ExpiredSFC, and the arrival queue of service function chain requests is defined as ArrivedSFC. In the queue ArrivedSFC, each service function chain request is mapped one after the other. Define the service function chain request set blocked due to insufficient underlying network resources as SFC blo (referred to as the blocked mapping request set SFC blo ). The online processing process for multiple service function chain requests is as follows:

输入:enter:

1、底层网络资源,包括底层网络GS=(NS,ES)、底层网络的资源约束SC=(CE,CN,LN)、所有端到端的底层路径集合P。其中NS表示底层网络的服务器集合、路由器集合,ES表示底层网络的物理链路集合,CE表示物理链路的属性,如带宽、时延、单位成本等,CN表示底层网络的服务器和路由器的属性,其中服务器的属性包括服务器资源的单位成本、服务器资源(如CPU、存储器和储存容量)等,路由器的属性主要指路由器的处理能力,LN表示底层网络服务器、路由器的位置;1. The bottom layer network resources, including the bottom layer network G S =(N S , E S ), the resource constraints of the bottom layer network SC=(CE , CN ,L N ), and the set P of all end-to-end bottom layers. Among them, N S represents the server set and router set of the underlying network, ES represents the physical link set of the underlying network, C E represents the attributes of the physical link, such as bandwidth, delay, unit cost, etc., and CN represents the server of the underlying network. and router attributes, where the server attributes include the unit cost of server resources, server resources (such as CPU, memory, and storage capacity), etc. The router attributes mainly refer to the processing capacity of the router, and L N represents the location of the underlying network server and router;

2、一个达到的服务功能链请求队列ArrivedSFC,其中每个服务功能链请求包括其虚拟网络(虚拟网络功能集合NV、虚拟链路集合EV)以及放置约束(各VNF的资源约束集合CN、虚拟链路资源约束集合CE、虚拟链路的最大时延约束集合CD、VNF的放置位置约束集合LN、用户的位置LU、服务终端的位置LT)。2. An arrived service function chain request queue ArrivedSFC, wherein each service function chain request includes its virtual network (virtual network function set N V , virtual link set E V ) and placement constraints (resource constraint set CN of each VNF) , the virtual link resource constraint set CE, the virtual link maximum delay constraint set CD , the VNF placement location constraint set LN , the user's location LU , and the serving terminal's location LT ).

输出:映射代价

Figure BDA0001340546180000161
和被阻塞的映射请求集合SFCblo。output: mapping cost
Figure BDA0001340546180000161
and the blocked map request collection SFC blo .

步骤1:初始

Figure BDA0001340546180000162
Step 1: Initial
Figure BDA0001340546180000162

步骤2:如果

Figure BDA0001340546180000163
就执行步骤3;否则,转到步骤10。Step 2: If
Figure BDA0001340546180000163
Go to step 3; otherwise, go to step 10.

步骤3:如果

Figure BDA0001340546180000164
就更新底层网络资源,使
Figure BDA0001340546180000165
否则,转步骤4。Step 3: If
Figure BDA0001340546180000164
update the underlying network resources so that
Figure BDA0001340546180000165
Otherwise, go to step 4.

步骤4:从ArrivedVDC中取出队首的服务功能链请求SFCk,其中下标k为服务功能链请求的标识符。Step 4: Take out the service function chain request SFC k of the head of the team from the ArrivedVDC, where the subscript k is the identifier of the service function chain request.

步骤5:调用SFCM算法映射SFCkStep 5: Invoke the SFCM algorithm to map SFC k .

步骤6:如果找到SFCk的一个映射方案

Figure BDA0001340546180000169
就执行步骤7;否则,转步骤8。Step 6: If a mapping scheme for SFC k is found
Figure BDA0001340546180000169
Go to step 7; otherwise, go to step 8.

步骤7:令

Figure BDA0001340546180000166
并更新底层网络资源,然后转步骤9,其中
Figure BDA0001340546180000167
表示映射方案
Figure BDA0001340546180000168
的映射代价,即SFCk的所有VNF的总映射成本(计算资源成本+链路资源成本)之和。Step 7: Order
Figure BDA0001340546180000166
and update the underlying network resources, then go to step 9, where
Figure BDA0001340546180000167
Representation mapping scheme
Figure BDA0001340546180000168
The mapping cost is the sum of the total mapping cost (computing resource cost + link resource cost) of all VNFs of SFC k .

步骤8:更新SFCblo=SFCblo∪{SFCk}。Step 8: Update SFC blo = SFC blo ∪ {SFC k }.

步骤9:更新ArrivedSFC=ArrivedSFC-SFCk,然后转步骤2。Step 9: Update ArrivedSFC=ArrivedSFC-SFC k , then go to step 2 .

步骤10:返回

Figure BDA0001340546180000171
SFCblo。Step 10: Go Back
Figure BDA0001340546180000171
SFC blo .

上述步骤5中所涉及的SFCM算法被用于为一个服务功能链请求中的每个VNF找到一个映射方案,同时找到服务功能链请求的映射路径,并分配资源给每个VNF和每条虚拟链路。SFCM算法找到每个VNF使用一个存在虚拟机和一个新虚拟机的映射方案,然后通过性别大战博弈模型决定最终的映射方案。SFCM算法找出映射成本最小的映射方案作为最终的映射方案

Figure BDA0001340546180000172
这个映射方案
Figure BDA0001340546180000173
包括映射成本、VNF的映射记录(放置的服务器、托管的虚拟机)、和服务功能链链路的映射记录(连接当前VNF和上一个VNF的虚拟链路的映射路径)。The SFCM algorithm involved in step 5 above is used to find a mapping scheme for each VNF in a service function chain request, find the mapping path of the service function chain request, and allocate resources to each VNF and each virtual chain road. The SFCM algorithm finds a mapping scheme for each VNF using an existing virtual machine and a new virtual machine, and then decides the final mapping scheme through a gender war game model. The SFCM algorithm finds the mapping scheme with the smallest mapping cost as the final mapping scheme
Figure BDA0001340546180000172
this mapping scheme
Figure BDA0001340546180000173
Including mapping cost, mapping record of VNF (placed server, hosted virtual machine), and mapping record of service function chain link (mapping path of virtual link connecting current VNF and previous VNF).

输入:enter:

1、底层网络GS=(NS,ES)、底层网络的资源约束SC=(CE,CN,LN)、所有端到端的底层路径集合P。1. The bottom layer network G S =(N S , E S ), the resource constraints of the bottom layer network SC =(CE , CN ,L N ), and the set P of all end-to-end bottom layers.

2、一个服务功能链请求GV=(NV,EV)和放置约束PC=(CN,CE,CD,LN,LU,LT),如图1所示。2. A service function chain requests G V = (N V , E V ) and placement constraints PC = (C N , CE , CD , L N , L U , L T ), as shown in FIG. 1 .

输出:映射方案

Figure BDA0001340546180000174
output: mapping scheme
Figure BDA0001340546180000174

步骤501:将所有可用的服务器储存在US中。Step 501: Store all available servers in the US.

步骤502:从第一个VNF开始,依次遍历NV中的每一个VNFi,执行下一步,如果NV中的每一个VNF已经遍历完,就转步骤512;Step 502: Starting from the first VNF, traverse each VNF i in the NV in turn, and execute the next step. If each VNF in the NV has been traversed, go to step 512;

步骤503:遍历底层网络中的每个服务器nk∈US,执行下一步,如果底层网络中的服务器已经遍历完,就转步骤507;Step 503: Traverse each server n k US in the underlying network, and execute the next step. If the servers in the underlying network have been traversed, go to Step 507 ;

步骤504:如果

Figure BDA0001340546180000175
且nk未被这个服务功能链请求中的其他VNF使用或满足VNF合并策略,执行步骤505至步骤506;Step 504: If
Figure BDA0001340546180000175
And n k is not used by other VNFs in the service function chain request or satisfies the VNF merging policy, execute steps 505 to 506;

步骤505:将当前VNFi映射到服务器nk上的一个新虚拟机上,并计算和记录CostVNFN(VNFi→nk)根据公式(5);Step 505: Map the current VNF i to a new virtual machine on the server n k , and calculate and record the CostVNF N (VNF i →n k ) according to formula (5);

步骤506:基于当前VNFi被放置的服务器nk,生成一条从nk到用户终端所在服务器(由服务终端的位置LT得知)的临时链路tei,该临时链路tei的虚拟链路资源约束为xi+1Step 506: Based on the server n k where the current VNF i is placed, generate a temporary link te i from n k to the server where the user terminal is located (known from the location LT of the service terminal), the virtual link te i of the temporary link te i . The link resource constraint is x i+1 ;

再采用Dijkstra算法(最短路径算法),基于底层路径集合P,在满足带宽和时延约束的条件下找到链路ei(连接VNFi与VNFi-1的虚拟链路)和临时链路tei的最短的底层路径

Figure BDA0001340546180000176
Figure BDA0001340546180000177
计算和记录
Figure BDA0001340546180000181
根据公式(6),计算和记录VNFi的总映射成本TCostVNFN(VNFi→nk)根据公式(9),再转至步骤50 3;Then use Dijkstra's algorithm (shortest path algorithm), based on the underlying path set P, find the link e i (the virtual link connecting VNF i and VNF i-1 ) and the temporary link te under the condition of satisfying the bandwidth and delay constraints the shortest underlying path of i
Figure BDA0001340546180000176
and
Figure BDA0001340546180000177
Calculate and record
Figure BDA0001340546180000181
According to formula (6), calculate and record the total mapping cost TCostVNF N of VNF i (VNF i →n k ) according to formula (9), then go to step 503;

步骤507:遍历底层网络中的每个服务器nj∈US,执行步骤508,如果底层网络中的服务器已经遍历完,就转步骤511;Step 507: Traverse each server n j US in the underlying network, and execute Step 508 , if the servers in the underlying network have been traversed, go to Step 511 ;

步骤508:如果

Figure BDA0001340546180000182
和nj未被这个服务功能链请求中的其他VNF使用或满足VNF合并策略,执行步骤509至步骤510;Step 508: If
Figure BDA0001340546180000182
and n j are not used by other VNFs in the service function chain request or satisfy the VNF merging policy, perform steps 509 to 510;

步骤509:判断服务器nj上是否存在可重用的虚拟机,若否,则将服务器nj的总映射成本设置为无穷大,并转至步骤507;若是,则执行步骤510;Step 509: Determine whether there is a reusable virtual machine on the server n j , if not, set the total mapping cost of the server n j to infinity, and go to step 507; if so, go to step 510;

步骤510:将VNFi托管在可重用的虚拟机上,并计算和记录CostVNFE(VNFi→nj)根据公式(7);Step 510: Host VNF i on a reusable virtual machine, and calculate and record CostVNF E (VNF i →n j ) according to formula (7);

同时,基于当前VNFi被放置的服务器nj,生成一条从nj到用户终端所在服务器(由服务终端的位置LT得知)的临时链路tei,该临时链路tei的虚拟链路资源约束为xi+1At the same time, based on the server n j where the current VNF i is placed, a temporary link te i from n j to the server where the user terminal is located (known from the location LT of the service terminal) is generated. The virtual link of the temporary link te i The road resource constraint is x i+1 ;

再使用Dijkstra算法找到链路ei和临时链路tei的最短底层路径

Figure BDA0001340546180000183
Figure BDA0001340546180000184
计算和记录
Figure BDA0001340546180000185
根据公式(8),计算和记录VNFi的总映射成本TCostVNFE(VNFi→nj)根据公式(10),转至步骤507;Then use Dijkstra's algorithm to find the shortest underlying path of link e i and temporary link te i
Figure BDA0001340546180000183
and
Figure BDA0001340546180000184
Calculate and record
Figure BDA0001340546180000185
According to formula (8), calculate and record the total mapping cost TCostVNF E of VNF i (VNF i →n j ) According to formula (10), go to step 507;

步骤511:在所有使用新虚拟机映射VNFi的映射方案中找到一个总映射成本TCostVNFN(VNFi→nk)最小的映射方案;在所有使用存在的虚拟机映射VNFi的映射方案中找到一个总映射成本TCostVNFE(VNFi→nj)最小的映射方案;根据公式(11)从这两个方案中找到映射成本最小的方案作为VNFi的最终映射方案M*(VNFi),并且更新当前服务功能链请求的映射方案

Figure BDA0001340546180000186
返回步骤502,其中
Figure BDA0001340546180000187
的初始值为空集;Step 511: Find a mapping scheme with the smallest total mapping cost TCostVNF N (VNF i →n k ) among all mapping schemes that use the new virtual machine to map VNF i ; find a mapping scheme that uses the existing virtual machine to map VNF i A mapping scheme with the minimum total mapping cost TCostVNF E (VNF i →n j ); find the scheme with the minimum mapping cost from these two schemes according to formula (11) as the final mapping scheme M * (VNF i ) of VNF i , and Update the mapping scheme for the current service function chain request
Figure BDA0001340546180000186
Returning to step 502, where
Figure BDA0001340546180000187
The initial value of is the empty set;

步骤512:返回

Figure BDA0001340546180000188
Step 512: Return
Figure BDA0001340546180000188

当使用服务器nk上的一个新虚拟机映射VNFi时,VNFi的映射成本能根据公式(5)计算,虚拟链路ei的映射成本可以根据公式(6)计算:When a new virtual machine on server n k is used to map VNF i , the mapping cost of VNF i can be calculated according to formula (5), and the mapping cost of virtual link e i can be calculated according to formula (6):

CostVNFN(VNFi→nk)=P(nk)ε(VNFi)Ti (5)CostVNF N (VNF i →n k )=P(n k )ε(VNF i )T i (5)

Figure BDA0001340546180000191
Figure BDA0001340546180000191

当使用服务器nj上的一个存在的虚拟机映射VNFi时,VNFi的映射成本能根据公式(7)计算,虚拟链路ei的映射成本可以根据公式(8)计算:When using an existing virtual machine on server n j to map VNF i , the mapping cost of VNF i can be calculated according to formula (7), and the mapping cost of virtual link e i can be calculated according to formula (8):

CostVNFE(VNFi→nj)=P(nj)ε(VNFi)max{Ti-To,0} (7)CostVNF E (VNF i →n j )=P(n j )ε(VNF i )max{T i -T o ,0} (7)

Figure BDA0001340546180000192
Figure BDA0001340546180000192

当使用服务器nk上的一个新虚拟机映射VNFi时,最小的总映射成本能根据公式(9)计算:When mapping VNF i with a new virtual machine on server n k , the minimum total mapping cost can be calculated according to equation (9):

Figure BDA0001340546180000193
Figure BDA0001340546180000193

当使用服务器nj上的一个存在的虚拟机映射VNFi时,最小的总映射成本能根据公式(10)计算:When mapping VNF i using an existing virtual machine on server n j , the minimum total mapping cost can be calculated according to formula (10):

Figure BDA0001340546180000194
Figure BDA0001340546180000194

VNFi的最小总映射成本能根据公式(11)计算:The minimum total mapping cost of VNF i can be calculated according to formula (11):

TCostVNF(VNFi→nm)=min{TCostVNFN(VNFi→nk),TCostVNFE(VNFi→nj)} (11)TCostVNF(VNF i →n m )=min{TCostVNF N (VNF i →n k ),TCostVNF E (VNF i →n j )} (11)

其中nm为nk或nj,若TCostVNFN(VNFi→nk)、TCostVNFE(VNFi→nj)计算结果相同,则任取其一。Among them, n m is n k or n j . If the calculation results of TCostVNF N (VNF i →n k ) and TCostVNF E (VNF i →n j ) are the same, either one is selected.

参考如图2,在包括2个VNF的服务功能链请求中,用户(User)被放置在物理节点A上,服务终端(Terminal)被放置在物理节点G上,当放置VNF1时,假设可选的物理节点有B、D,若只考虑局部最优映射,则两个备选皆满足,而当选择物理节点B时(图2-a),则会导致VNF1远离服务终端,因此本发明通过临时链路tei来约束VNF1不偏离服务终端太远,在计算VNF1与用户之间的链路资源成本时,将临时链路tei的映射路径也考虑进去,对e1的链路资源成本来说,其为:T1×((物理路径A→D的单位成本)×x1+(物理路径D→G的单位成本)×x2)。从而使得在相同单位成本的情况下,选择物理节点D(图2-b)的链路资源成本更小。然后再结合VNF合并策略、虚拟重用策略来考虑总映射成本最小的规则确定VNF2的物理节点,从而得到该服务功能链请求的映射方案,如图2-c所示,其对应的底层路径为:A→D→E→G。若不通过临时链路tei,则可能会得到如图2-a的底层路径,即A→B→C→F→I→H→G,将明显增加其链路资源成本。Referring to Figure 2, in the service function chain request including 2 VNFs, the user (User) is placed on the physical node A, and the service terminal (Terminal) is placed on the physical node G. When placing VNF 1 , it is assumed that the The selected physical nodes are B and D. If only the local optimal mapping is considered, the two alternatives are satisfied. When physical node B is selected (Figure 2-a), it will cause VNF 1 to be far away from the service terminal. Therefore, this The invention constrains the VNF 1 not to deviate too far from the service terminal through the temporary link te i . When calculating the link resource cost between the VNF 1 and the user, the mapping path of the temporary link te i is also taken into account. In terms of link resource cost, it is: T 1 ×((unit cost of physical path A→D)×x 1 +(unit cost of physical path D→G)×x 2 ). Therefore, under the condition of the same unit cost, the link resource cost of selecting physical node D (Fig. 2-b) is smaller. Then combined with the VNF merging strategy and the virtual reuse strategy, the physical node of VNF 2 is determined by considering the rule with the smallest total mapping cost, so as to obtain the mapping scheme of the service function chain request, as shown in Figure 2-c, the corresponding underlying path is : A→D→E→G. If the temporary link te i is not passed, the underlying path as shown in Figure 2-a may be obtained, that is, A→B→C→F→I→H→G, which will significantly increase the link resource cost.

因此,本发明在将底层网络的服务器资源和带宽资源分配给动态到来的每个服务功能链请求时,通过在部署时考虑VNF合并策略、虚拟重用策略以及临时链路策略的部署方式,达到在提高服务功能链请求的映射成功率、底层网络的资源利用率的同时,尽可能使得总的映射花销最小。Therefore, in the present invention, when allocating the server resources and bandwidth resources of the underlying network to each service function chain request that arrives dynamically, by considering the deployment methods of the VNF merge strategy, the virtual reuse strategy and the temporary link strategy during deployment, it achieves While improving the mapping success rate of service function chain requests and the resource utilization of the underlying network, the total mapping cost is minimized as much as possible.

以上所述,仅为本发明的具体实施方式,本说明书中所公开的任一特征,除非特别叙述,均可被其他等效或具有类似目的的替代特征加以替换;所公开的所有特征、或所有方法或过程中的步骤,除了互相排斥的特征和/或步骤以外,均可以任何方式组合。The above descriptions are only specific embodiments of the present invention, and any feature disclosed in this specification, unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes; all the disclosed features, or All steps in a method or process, except mutually exclusive features and/or steps, may be combined in any way.

Claims (3)

1.一种5G移动网络中服务功能链的优化部署方法,其特征在于,包括下列步骤:1. an optimized deployment method of service function chain in a 5G mobile network, is characterized in that, comprises the following steps: 步骤1:从待映射的服务功能链请求的虚拟网络功能集合NV={VNF1,VNF2,...,VNFn}的第一个VNF开始,依次为当前服务功能链请求的每个VNFi确定备选映射方案集,其中i=1,…,n,n表示当前服务功能链请求的VNF数量:Step 1: Starting from the first VNF of the virtual network function set N V = {VNF 1 , VNF 2 ,..., VNF n } requested by the service function chain to be mapped, sequentially for each of the current service function chain requests VNF i determines the set of alternative mapping schemes, where i=1,...,n, n represents the number of VNFs requested by the current service function chain: 101:确定当前待映射的VNFi的备选服务器集:101: Determine the candidate server set of the VNF i currently to be mapped: 从底层网络的可用服务器集中,将满足位置约束、计算资源需求且未曾被集合
Figure FDA0002270595840000011
中的各VNF选择过的服务器作为VNFi的备选服务器集,即VNFi可选的备选服务器包括:VNF0至VNFi-2未曾选择过的服务器、VNFi-1所选择的服务器,其中VNF0表示用户;
From the pool of available servers in the underlying network, will satisfy location constraints, computing resource requirements and have not been pooled
Figure FDA0002270595840000011
The servers selected by each VNF in the VNF are used as the alternative server set of VNF i , that is, the optional alternative servers of VNF i include: servers that have not been selected by VNF 0 to VNF i-2 , servers selected by VNF i-1 , Where VNF 0 represents the user;
102:确定VNFi的备选映射方案集:102: Determine the set of alternative mapping schemes for VNF i : 用M(VNFi)表示放置VNFi的任意备选服务器,M(VNF0)表示用户终端;Let M(VNF i ) represent any candidate server where VNF i is placed, and M(VNF 0 ) represent the user terminal; 确定服务器M(VNFi)上用于托管VNFi的虚拟机:判断是否存在可重用的虚拟机,若是,则将VNFi托管在可重用的虚拟机上;否则将VNFi托管在一个新的虚拟机上;所述可重用的虚拟机为:带有重用标识符的已托管了至少一个与VNFi相同类型的VNF的虚拟机,且已托管的VNF与VNFi不属于同一服务功能链请求;Determine the virtual machine used to host the VNF i on the server M (VNF i ): determine whether there is a reusable virtual machine, if so, host the VNF i on the reusable virtual machine; otherwise, host the VNF i on a new virtual machine On a virtual machine; the reusable virtual machine is: a virtual machine with a reuse identifier that has hosted at least one VNF of the same type as VNF i , and the hosted VNF and VNF i do not belong to the same service function chain request ; 在满足连接VNFi-1与VNFi的虚拟链路ei的链路资源需求xi和时延需求的前提下,对ei进行底层路径映射,得到ei的映射路径
Figure FDA0002270595840000012
Under the premise of meeting the link resource requirements xi and delay requirements of the virtual link e i connecting VNF i-1 and VNF i , perform the underlying path mapping on e i to obtain the mapping path of e i
Figure FDA0002270595840000012
生成一条连接VNFi与用户终端的临时链路tei,并将连接VNFi与VNFi+1的虚拟链路ei+1的链路资源需求xi+1作为tei的链路资源需求;在满足tei的链路资源需求的前提下,对tei进行底层路径映射,得到tei的映射路径
Figure FDA0002270595840000013
Generate a temporary link te i connecting VNF i and the user terminal, and use the link resource requirement x i+ 1 of the virtual link e i+1 connecting VNF i and VNF i+1 as the link resource requirement of te i ; Under the premise of meeting the link resource requirements of te i , perform bottom path mapping on te i to obtain the mapping path of te i
Figure FDA0002270595840000013
将满足条件
Figure FDA0002270595840000014
的最短映射路径
Figure FDA0002270595840000015
作为对应当前M(VNFi)的ei的最终映射路径,其中es表示底层网络的物理链路,符号p(·)表示括号中对象的单位成本,Ti表示VNFi的服务时间,
Figure FDA0002270595840000016
表示ei的预设最大映射成本;
will satisfy the condition
Figure FDA0002270595840000014
the shortest mapping path of
Figure FDA0002270595840000015
As the final mapping path of e i corresponding to the current M( VNF i ), where es represents the physical link of the underlying network, the symbol p( ) represents the unit cost of the object in brackets, T i represents the service time of VNF i ,
Figure FDA0002270595840000016
represents the preset maximum mapping cost of e i ;
将对应当前M(VNFi)的备选映射方案保存到备选映射方案集中,其中备选映射方案包括:M(VNFi)、托管VNFi的虚拟机、ei的最终映射路径;Save the alternative mapping scheme corresponding to the current M(VNF i ) into the set of alternative mapping schemes, where the alternative mapping scheme includes: M(VNF i ), the virtual machine hosting the VNF i , and the final mapping path of e i ; 步骤2:由当前服务功能链请求的所有VNF的不同备选映射方案的组合,得到不同的映射集合;Step 2: Obtain different mapping sets by combining different alternative mapping schemes of all VNFs requested by the current service function chain; 根据公式
Figure FDA0002270595840000021
分别计算每个映射集合的总计算资源成本,由最小总计算资源成本对应的映射集合得到当前服务功能链请求的优化部署方案,ε(VNFi)表示VNFi的计算资源需求;
According to the formula
Figure FDA0002270595840000021
Calculate the total computing resource cost of each mapping set separately, and obtain the optimal deployment scheme for the current service function chain request from the mapping set corresponding to the minimum total computing resource cost, where ε(VNF i ) represents the computing resource requirement of VNF i ;
其中VNFi的付费时间Ti p为:若VNFi所在的虚拟机上托管的VNF的数量等于1,则Ti p=Ti;若VNFi所在的虚拟机上托管的VNF的数量大于1,则Ti p=max{Ti-To,0},其中To表示托管VNFi的虚拟机的原始服务时间。The payment time T i p of VNF i is: if the number of VNFs hosted on the virtual machine where VNF i is located is equal to 1, then T i p =T i ; if the number of VNFs hosted on the virtual machine where VNF i is located is greater than 1 , then T i p =max{T i -T o ,0}, where T o represents the original service time of the virtual machine hosting the VNF i .
2.如权利要求1所述的方法,其特征在于,将步骤101~102、步骤2替换为:2. The method of claim 1, wherein steps 101-102 and step 2 are replaced by: 101:从底层网络的可用服务器集中,将满足位置约束、计算资源需求且未曾被集合
Figure FDA0002270595840000022
中的各VNF选择过的服务器作为VNFi的初始备选服务器集;
101: From the pool of available servers in the underlying network, will satisfy location constraints, computing resource requirements and have not been pooled
Figure FDA0002270595840000022
The server selected by each VNF in the VNF i is used as the initial candidate server set of VNF i;
分别确定每个初始备选服务器上用于托管VNFi的虚拟机:判断是否存在可重用的虚拟机,若是,则将VNFi托管在可重用的虚拟机上;否则将VNFi托管在一个新的虚拟机上;所述可重用的虚拟机为:带有重用标识符的已托管了至少一个与VNFi相同类型的VNF的虚拟机,且已托管的VNF与VNFi不属于同一服务功能链请求;Determine the virtual machine used to host the VNF i on each initial candidate server: determine whether there is a reusable virtual machine, if so, host the VNF i on the reusable virtual machine; otherwise, host the VNF i on a new virtual machine. The reusable virtual machine is: a virtual machine with a reuse identifier that has hosted at least one VNF of the same type as VNF i , and the hosted VNF and VNF i do not belong to the same service function chain ask; 并将每个初始备选服务器对应VNFi的计算资源成本与VNFi的预设最大映射成本
Figure FDA0002270595840000023
比较,将小于或等于
Figure FDA0002270595840000024
的初始备选服务器作为VNFi的备选服务器,并保存所述备选服务器上托管VNFi的虚拟机;
The computing resource cost of each initial candidate server corresponding to VNF i and the preset maximum mapping cost of VNF i
Figure FDA0002270595840000023
Compare, will be less than or equal to
Figure FDA0002270595840000024
The initial alternative server is used as the alternative server of VNF i , and saves the virtual machine hosting VNF i on the alternative server;
其中每个初始备选服务器对应VNFi的计算资源成本为:初始备选服务器的单位成本×VNFi的计算资源需求×VNFi在初始备选服务器上的付费时间Ti pThe computing resource cost of each initial candidate server corresponding to VNF i is: the unit cost of the initial candidate server×the computing resource requirement of the VNF i ×the payment time T i p of the VNF i on the initial candidate server; 付费时间Ti p为:若VNFi所在的虚拟机上托管的VNF的数量等于1,则Ti p=Ti;若VNFi所在的虚拟机上托管的VNF的数量大于1,则Ti p=max{Ti-To,0},其中Ti表示VNFi的服务时间,To表示托管VNFi的虚拟机的原始服务时间;The payment time T i p is: if the number of VNFs hosted on the virtual machine where VNF i is located is equal to 1, then T i p =T i ; if the number of VNFs hosted on the virtual machine where VNF i is located is greater than 1, then T i p =max{T i -T o ,0}, where T i represents the service time of VNF i , and T o represents the original service time of the virtual machine hosting VNF i ; 102:确定VNFi的备选映射方案集:102: Determine the set of alternative mapping schemes for VNF i : 用M(VNFi)表示放置VNFi的任意备选服务器,在满足连接VNFi-1与VNFi的虚拟链路ei的链路资源需求xi和时延需求的前提下,从服务器M(VNFi-1)到M(VNFi)的底层路径中,查找一条最短路径作为ei的映射路径
Figure FDA0002270595840000031
其中M(VNF0)表示用户终端;
Let M(VNF i ) represent any candidate server for placing VNF i . On the premise of meeting the link resource requirements xi and delay requirements of the virtual link e i connecting VNF i-1 and VNF i , the slave server M In the underlying path from (VNF i-1 ) to M(VNF i ), find a shortest path as the mapping path of e i
Figure FDA0002270595840000031
Wherein M(VNF 0 ) represents the user terminal;
生成一条连接VNFi与用户终端的临时链路tei,并将连接VNFi与VNFi+1的虚拟链路ei+1的链路资源需求xi+1作为tei的链路资源需求;在满足tei的链路资源需求的前提下,从服务器M(VNFi)到用户终端的底层路径中,查找一条最短路径作为tei的映射路径
Figure FDA0002270595840000032
Generate a temporary link te i connecting VNF i and the user terminal, and use the link resource requirement x i+ 1 of the virtual link e i+1 connecting VNF i and VNF i+1 as the link resource requirement of te i ; Under the premise of satisfying the link resource requirements of te i , from the bottom path from the server M (VNF i ) to the user terminal, find a shortest path as the mapping path of te i
Figure FDA0002270595840000032
将对应当前M(VNFi)的备选映射方案保存到备选映射方案集中,其中备选映射方案包括:M(VNFi)、托管VNFi的虚拟机、映射路径
Figure FDA0002270595840000033
Save the alternative mapping scheme corresponding to the current M(VNF i ) into the set of alternative mapping schemes, where the alternative mapping scheme includes: M(VNF i ), the virtual machine hosting the VNF i , the mapping path
Figure FDA0002270595840000033
步骤2:由当前服务功能链请求的所有VNF的不同备选映射方案的组合,得到不同的映射集合;Step 2: Obtain different mapping sets by combining different alternative mapping schemes of all VNFs requested by the current service function chain; 根据公式
Figure FDA0002270595840000034
分别计算每个映射集合所对应的总链路资源成本,由最小总链路资源成本对应的映射集合得到当前服务功能链请求的优化部署方案,其中EV表示当前服务功能链请求的虚拟链路集合,es表示底层网络的物理链路。
According to the formula
Figure FDA0002270595840000034
Calculate the total link resource cost corresponding to each mapping set separately, and obtain the optimal deployment plan of the current service function chain request from the mapping set corresponding to the minimum total link resource cost, where E V represents the virtual link requested by the current service function chain Set, es represents the physical link of the underlying network.
3.一种5G移动网络中服务功能链的优化部署方法,其特征在于,包括下列步骤:3. A method for optimizing deployment of service function chains in a 5G mobile network, comprising the following steps: 步骤1:从待映射的服务功能链请求的虚拟网络功能集合NV={VNF1,VNF2,...,VNFn}的第一个VNF开始,依次为当前服务功能链请求的每个VNFi确定的最终映射方案,其中i=1,…,n,n表示当前服务功能链请求的VNF数量:Step 1: Starting from the first VNF of the virtual network function set N V = {VNF 1 , VNF 2 ,..., VNF n } requested by the service function chain to be mapped, sequentially for each of the current service function chain requests The final mapping scheme determined by VNF i , where i=1,...,n, n represents the number of VNFs requested by the current service function chain: 101:确定当前待映射的VNFi的备选服务器集
Figure FDA0002270595840000035
101: Determine the candidate server set of the VNF i currently to be mapped
Figure FDA0002270595840000035
从底层网络的可用服务器集中,将满足位置约束、计算资源需求且未曾被集合
Figure FDA0002270595840000036
中的各VNF选择过的服务器作为VNFi的备选服务器集
Figure FDA0002270595840000037
From the pool of available servers in the underlying network, will satisfy location constraints, computing resource requirements and have not been pooled
Figure FDA0002270595840000036
The servers selected by the VNFs in the
Figure FDA0002270595840000037
102:对备选服务器集
Figure FDA0002270595840000041
中的每个服务器nk,将服务器nk上的一个新的虚拟机作为托管VNFi的虚拟机;
102: For alternate server sets
Figure FDA0002270595840000041
For each server n k in , use a new virtual machine on server n k as a virtual machine hosting VNF i ;
在满足连接VNFi-1与VNFi的虚拟链路ei的链路资源需求xi和时延需求的前提下,从放置VNFi-1的服务器到服务器nk的底层路径中,查找一条最短路径作为ei的映射路径
Figure FDA0002270595840000042
其中VNF0表示用户;
On the premise of meeting the link resource requirements xi and delay requirements of the virtual link e i connecting VNF i-1 and VNF i , find a path from the server where VNF i-1 is placed to the server n k The shortest path as the mapped path of e i
Figure FDA0002270595840000042
Where VNF 0 represents the user;
生成一条连接VNFi与用户终端的临时链路tei,并将连接VNFi与VNFi+1的虚拟链路ei+1的链路资源需求xi+1作为tei的链路资源需求;在满足tei的链路资源需求的前提下,从服务器nk到用户终端的底层路径中,查找一条最短路径作为tei的映射路径
Figure FDA0002270595840000043
Generate a temporary link te i connecting VNF i and the user terminal, and use the link resource requirement x i+ 1 of the virtual link e i+1 connecting VNF i and VNF i+1 as the link resource requirement of te i ; On the premise of meeting the link resource requirements of te i , find a shortest path in the bottom path from the server n k to the user terminal as the mapping path of te i
Figure FDA0002270595840000043
由对应服务器nk的计算资源成本CostVNFN(VNFi→nk)、链路资源成本
Figure FDA0002270595840000044
之和得到对应服务器nk的总映射成本,将总映射成本最小的服务器nk记为
Figure FDA0002270595840000045
By the computing resource cost of the corresponding server n k CostVNF N (VNF i →n k ), the link resource cost
Figure FDA0002270595840000044
The sum gets the total mapping cost of the corresponding server n k , and the server n k with the smallest total mapping cost is recorded as
Figure FDA0002270595840000045
其中CostVNFN(VNFi→nk)=P(nk)ε(VNFi)Ti
Figure FDA0002270595840000046
符号p(·)表示括号中对象的单位成本,ε(VNFi)表示VNFi的计算资源需求,Ti表示VNFi的服务时间,es表示底层网络的物理链路;
where CostVNF N (VNF i →n k )=P(n k )ε(VNF i )T i ,
Figure FDA0002270595840000046
The symbol p( ) represents the unit cost of the object in parentheses, ε(VNF i ) represents the computing resource requirement of VNF i , Ti represents the service time of VNF i , and es represents the physical link of the underlying network;
103:对备选服务器集
Figure FDA0002270595840000047
中的每个服务器nj,计算服务器nj的总映射成本,查找总映射成本最小的nj并记为
Figure FDA0002270595840000048
103: For alternate server sets
Figure FDA0002270595840000047
For each server n j in , calculate the total mapping cost of server n j , find n j with the smallest total mapping cost and record it as
Figure FDA0002270595840000048
其中服务器nj的总映射成本计算方式为:where the total mapping cost of server n j is calculated as: 判断服务器nj上是否存在可重用的虚拟机,若否,则将服务器nj的总映射成本设置为无穷大;所述可重用的虚拟机为:带有重用标识符的已托管了至少一个与VNFi相同类型的VNF的虚拟机,且已托管的VNF与VNFi不属于同一服务功能链请求;Determine whether there is a reusable virtual machine on server n j , if not, set the total mapping cost of server n j to infinity; the reusable virtual machine is: a virtual machine with a reuse identifier that has hosted at least one and VNF i is a virtual machine of the same type of VNF, and the managed VNF and VNF i do not belong to the same service function chain request; 若是,则将VNFi托管在可重用的虚拟机上,并在满足连接VNFi-1与VNFi的虚拟链路ei的链路资源需求xi和时延需求的前提下,从放置VNFi-1的服务器到服务器nk的底层路径中,查找一条最短路径作为ei的映射路径
Figure FDA0002270595840000049
其中VNF0表示用户;生成一条连接VNFi与用户终端的临时链路tei,并将连接VNFi与VNFi+1的虚拟链路ei+1的链路资源需求xi+1作为tei的链路资源需求;在满足tei的链路资源需求的前提下,从服务器nj到用户终端的底层路径中,查找一条最短路径作为tei的映射路径
Figure FDA0002270595840000051
由服务器nj的计算资源成本CostVNFE(VNFi→nj)、链路资源成本
Figure FDA0002270595840000052
之和得到对应服务器nj的总映射成本;
If so, host VNF i on a reusable virtual machine, and under the premise of meeting the link resource requirements x i and delay requirements of the virtual link e i connecting VNF i-1 and VNF i , place the VNF from In the underlying path from the server of i-1 to the server n k , find a shortest path as the mapping path of e i
Figure FDA0002270595840000049
where VNF 0 represents the user; a temporary link te i connecting VNF i and the user terminal is generated, and the link resource requirement x i+ 1 of the virtual link e i+1 connecting VNF i and VNF i+1 is taken as te The link resource requirements of i ; on the premise that the link resource requirements of te i are met, find a shortest path from the bottom path from the server n j to the user terminal as the mapping path of te i
Figure FDA0002270595840000051
By the computing resource cost of server n j CostVNF E (VNF i →n j ), link resource cost
Figure FDA0002270595840000052
The sum gets the total mapping cost of the corresponding server n j ;
其中CostVNFE(VNFi→nj)=P(nj)ε(VNFi)max{Ti-To,0},
Figure FDA0002270595840000053
es表示底层网络的物理链路,To表示托管VNFi的虚拟机的原始服务时间;
where CostVNF E (VNF i →n j )=P(n j )ε(VNF i )max{T i -T o ,0},
Figure FDA0002270595840000053
es represents the physical link of the underlying network, and To represents the raw service time of the virtual machine hosting the VNF i ;
104:将
Figure FDA0002270595840000054
中总映射成本最小的服务器作为放置VNFi的服务器M(VNFi),基于服务器M(VNFi)确定VNFi的最终映射方案,包括服务器M(VNFi)、服务器M(VNFi)上的托管VNFi的虚拟机、对应服务器M(VNFi)的ei的映射路径;
104: will
Figure FDA0002270595840000054
The server with the smallest total mapping cost is used as the server M (VNF i ) where the VNF i is placed, and the final mapping scheme of the VNF i is determined based on the server M (VNF i ), including the server M (VNF i ) and the server M (VNF i ) on the server M (VNF i ). The virtual machine hosting VNF i and the mapping path of e i corresponding to server M (VNF i );
步骤2:由当前服务功能链请求的所有VNF的最终映射方案得到当前服务功能链请求的优化部署方案。Step 2: Obtain the optimized deployment scheme requested by the current service function chain from the final mapping scheme of all VNFs requested by the current service function chain.
CN201710536013.4A 2017-07-04 2017-07-04 Optimized deployment method of service function chain in 5G mobile network Active CN107332913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710536013.4A CN107332913B (en) 2017-07-04 2017-07-04 Optimized deployment method of service function chain in 5G mobile network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710536013.4A CN107332913B (en) 2017-07-04 2017-07-04 Optimized deployment method of service function chain in 5G mobile network

Publications (2)

Publication Number Publication Date
CN107332913A CN107332913A (en) 2017-11-07
CN107332913B true CN107332913B (en) 2020-03-27

Family

ID=60197782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710536013.4A Active CN107332913B (en) 2017-07-04 2017-07-04 Optimized deployment method of service function chain in 5G mobile network

Country Status (1)

Country Link
CN (1) CN107332913B (en)

Families Citing this family (50)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322333B (en) * 2017-12-28 2021-03-02 广东电网有限责任公司电力调度控制中心 Virtual network function placement method based on genetic algorithm
CN108259238B (en) * 2018-01-10 2021-06-18 重庆邮电大学 Method for mapping network function service chain in data center
CN108134843B (en) * 2018-01-26 2020-07-31 重庆邮电大学 A service function chain deployment method in 5G-C-RAN scenario
CN108200202B (en) * 2018-02-06 2019-11-12 电子科技大学 A method for secure deployment of service function chains applied to cloud and fog computing networks
CN108400940B (en) * 2018-02-27 2019-11-05 西南交通大学 A kind of multicast virtual network function dispositions method based on Estimation of Distribution Algorithm
CN108471389B (en) * 2018-03-12 2020-06-12 电子科技大学 A Switch System Based on Service Function Chain
CN108494596B (en) * 2018-03-23 2020-02-21 西安电子科技大学 A Collaborative Construction and Mapping SFC Method for Dependencies Between Multiple VNFs
CN108684046B (en) * 2018-04-23 2021-07-06 重庆邮电大学 A Method for Deploying Access Network Service Function Chain Based on Random Learning
CN108429685B (en) * 2018-04-28 2020-08-04 电子科技大学 Service function chain routing method based on segmented routing technology
CN108616425B (en) * 2018-04-28 2021-06-01 电子科技大学 A Mitigation Method for Cascading Failure Risk of Service Function Chain
CN108696596B (en) * 2018-05-29 2021-03-02 南京财经大学 Resource provision method for service composition problem in cloud-integrated wireless-fiber hybrid access network
CN108923961B (en) * 2018-06-25 2020-02-21 电子科技大学 A multi-entry network service function chain optimization method
CN108965020A (en) * 2018-07-27 2018-12-07 北京邮电大学 Cross-domain virtual network mapping method and device thereof, computer-readable medium
US10819743B2 (en) * 2018-11-05 2020-10-27 Nanning Fugui Precision Industrial Co., Ltd. Anti-replay processing method and device utilizing the same
CN109547241B (en) * 2018-11-14 2021-07-30 南京大学 A NUMA-oriented virtual network function deployment method based on Markov algorithm
CN109831319B (en) * 2018-12-27 2021-10-26 南京大学 Network function deployment method considering multidimensional resource constraints
US10944647B2 (en) * 2019-01-24 2021-03-09 Vmware, Inc. Dynamic inter-cloud placement of virtual network functions for a slice
CN109617811B (en) * 2019-01-29 2020-06-30 电子科技大学 A fast migration method for mobile applications in cloud network
CN110018832B (en) * 2019-02-20 2022-07-12 中国人民解放军海军工程大学 A Radar Software Component Deployment Strategy Based on Improved Dynamic Programming
CN113748649A (en) 2019-03-12 2021-12-03 上海诺基亚贝尔股份有限公司 Method, apparatus and computer readable medium for service chaining
CN110022230B (en) * 2019-03-14 2021-03-16 北京邮电大学 Deep reinforcement learning-based service chain parallel deployment method and device
CN109842528B (en) * 2019-03-19 2020-10-27 西安交通大学 A deployment method of service function chain based on SDN and NFV
CN110446121B (en) * 2019-04-07 2021-05-18 西安电子科技大学 Virtual network function service chain mapping method based on betweenness centrality
CN110049130B (en) * 2019-04-22 2020-07-24 北京邮电大学 A method and device for service deployment and task scheduling based on edge computing
CN110190987B (en) * 2019-05-08 2022-02-01 南京邮电大学 Virtual network function reliability deployment method based on backup income and remapping
US10892994B2 (en) 2019-05-14 2021-01-12 Vmware, Inc. Quality of service in virtual service networks
US11588733B2 (en) 2019-05-14 2023-02-21 Vmware, Inc. Slice-based routing
US11012288B2 (en) 2019-05-14 2021-05-18 Vmware, Inc. Congestion avoidance in a slice-based network
CN110120978B (en) * 2019-05-17 2021-05-14 电子科技大学 A security protection method for elastic user cloud computing resources
CN110298381B (en) * 2019-05-24 2022-09-20 中山大学 Cloud security service function tree network intrusion detection system
CN110311862B (en) * 2019-06-14 2020-09-25 北京邮电大学 Service chain mapping method and device
WO2020255025A1 (en) * 2019-06-18 2020-12-24 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for deploying a new service function chain (sfc) based on similarities with previously deployed sfcs
CN110311816B (en) * 2019-06-28 2021-08-13 上海交通大学 A VNF placement method for VNF co-site interference perception in NFV environment
CN110380898B (en) * 2019-07-08 2022-11-15 紫光云技术有限公司 Hyperhedger Fabric-based multi-operator edge service chain arrangement strategy
CN110545228B (en) * 2019-07-26 2020-11-20 北京邮电大学 Service function chain request processing method and system
CN110535705B (en) * 2019-08-30 2022-04-26 西安邮电大学 A Service Function Chain Construction Method for Adaptive User Delay Requirements
CN110851235B (en) * 2019-11-04 2022-06-03 中国人民解放军战略支援部队信息工程大学 Virtual network function deployment method suitable for multidimensional resource optimization configuration
CN111385202B (en) * 2020-03-17 2022-03-11 重庆邮电大学 A Route Allocation Method Based on Virtual Network Function
CN111526070B (en) * 2020-04-29 2022-06-03 重庆邮电大学 A prediction-based service function chain fault detection method
CN111800291B (en) * 2020-05-27 2021-07-20 北京邮电大学 A service function chain deployment method and device
CN112083933B (en) * 2020-08-27 2023-07-04 重庆大学 Service function chain deployment method based on reinforcement learning
CN113032096B (en) * 2021-03-17 2023-03-31 西安电子科技大学 SFC mapping method based on node importance and user demand dual perception
CN113225211B (en) * 2021-04-27 2022-09-02 中国人民解放军空军工程大学 Fine-grained service function chain extension method
CN113535388B (en) * 2021-06-25 2023-09-29 广西综合交通大数据研究院 Task-oriented service function aggregation method
CN114205317B (en) * 2021-10-21 2023-07-21 北京邮电大学 Service function chain SFC resource allocation method and electronic equipment based on SDN and NFV
CN114124796A (en) * 2021-10-26 2022-03-01 清华大学 Service chain deployment processing method and device, computer storage medium and terminal
CN114650225B (en) * 2022-03-14 2023-04-18 西安电子科技大学 Service function chain SFC mapping method based on particle swarm optimization algorithm
CN115767325B (en) * 2022-10-31 2024-09-13 苏州大学 Service function chain profit maximization mapping method and system
GB202305487D0 (en) * 2023-04-14 2023-05-31 Samsung Electronics Co Ltd Method and apparatus for efficient service function chain placement in service based 5G/6G core architecture
CN117792874B (en) * 2023-11-20 2024-12-31 中国人民解放军61660部队 Service chain efficient backup method based on cloud environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141617A (en) * 2015-09-14 2015-12-09 上海华为技术有限公司 Deploying and adjusting method for service functions among data centers and deploying and adjusting device for service functions among data centers
CN105430051A (en) * 2015-10-30 2016-03-23 浙江工商大学 An SDN-oriented service function chain construction method
CN106411678A (en) * 2016-09-08 2017-02-15 清华大学 Bandwidth guarantee type virtual network function (VNF) deployment method
CN106487556A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 The dispositions method of business function SF and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9998563B2 (en) * 2015-10-12 2018-06-12 Fujitsu Limited Vertex-centric service function chaining in multi-domain networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487556A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 The dispositions method of business function SF and device
CN105141617A (en) * 2015-09-14 2015-12-09 上海华为技术有限公司 Deploying and adjusting method for service functions among data centers and deploying and adjusting device for service functions among data centers
CN105430051A (en) * 2015-10-30 2016-03-23 浙江工商大学 An SDN-oriented service function chain construction method
CN106411678A (en) * 2016-09-08 2017-02-15 清华大学 Bandwidth guarantee type virtual network function (VNF) deployment method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Scalable and coordinated allocation of service function chains;Michael Till Beck等;《ELSEVIER》;20170401;第102卷;全文 *
数据中心虚拟机的迁移方法研究;赵东成;《中国优秀硕士学位论文全文数据库 信息科技辑(月刊)》;20170215;全文 *
虚拟网络的映射技术研究;孙罡;《中国博士学位论文全文数据库 信息科技辑(月刊)》;20130515;全文 *

Also Published As

Publication number Publication date
CN107332913A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107332913B (en) Optimized deployment method of service function chain in 5G mobile network
CN113196723B (en) Layer four optimization in virtual networks defined on public clouds
US11516146B2 (en) Method and system to allocate bandwidth based on task deadline in cloud computing networks
US10484285B2 (en) System, method and article of manufacture for using control plane for critical data communications in software-defined networks
CN107094115B (en) An Ant Colony Optimization Load Balancing Routing Algorithm Based on SDN
CN105960783B (en) Inter-domain SDN traffic engineering
US9705815B2 (en) Graph database for services planning and configuration in network services domain
WO2021007963A1 (en) Route distribution method and controller, information routing method and network node device
WO2021047678A1 (en) Computing power routing method and apparatus
CN105721302B (en) A software-defined network routing method
CN101436995B (en) A Method of Fast IP Address Blocking Based on BGP Virtual Next Hop
CN109831548B (en) Virtual content delivery network vCDN node establishment method and server
US20130132542A1 (en) Method and System for Effective BGP AS-Path Pre-pending
CN103297347B (en) A kind of load balance process method and device
WO2015039617A1 (en) Method, system, and device for packet processing
Amadeo et al. SDN-managed provisioning of named computing services in edge infrastructures
WO2011144178A1 (en) Method, apparatus and system for joint optimizations
CN112398902A (en) High availability load balancing method, system and computer readable storage medium
US20160164690A1 (en) Communication system
CN112689163A (en) Video service transmission system and method based on SDN and in-network cache
CN109286563B (en) Data transmission control method and device
Wang et al. Low-latency service chaining with predefined NSH-based multipath across multiple datacenters
WO2022089169A1 (en) Method and apparatus for sending computing routing information, device, and storage medium
CN109039951A (en) A kind of realization method and system of heterogeneous network QoS strategy
CN114466016B (en) Method and system for realizing dynamic load balancing of data center gateway

Legal Events

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