CN112565082B - Service chain mapping method based on hybrid network, intelligent terminal and storage medium - Google Patents
Service chain mapping method based on hybrid network, intelligent terminal and storage medium Download PDFInfo
- Publication number
- CN112565082B CN112565082B CN202011567506.2A CN202011567506A CN112565082B CN 112565082 B CN112565082 B CN 112565082B CN 202011567506 A CN202011567506 A CN 202011567506A CN 112565082 B CN112565082 B CN 112565082B
- Authority
- CN
- China
- Prior art keywords
- network
- edge
- node
- path
- target candidate
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000013507 mapping Methods 0.000 title claims abstract description 53
- 238000011156 evaluation Methods 0.000 claims abstract description 40
- 230000005540 biological transmission Effects 0.000 claims abstract description 20
- 230000003068 static effect Effects 0.000 claims abstract description 12
- 238000010276 construction Methods 0.000 claims abstract description 10
- 230000006870 function Effects 0.000 claims description 58
- 238000004422 calculation algorithm Methods 0.000 claims description 27
- 238000012216 screening Methods 0.000 claims description 16
- 230000008569 process Effects 0.000 claims description 13
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000009434 installation Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 3
- 238000013519 translation Methods 0.000 description 3
- 235000008694 Humulus lupulus Nutrition 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000000844 transformation Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/123—Evaluation of link metrics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/125—Shortest path evaluation based on throughput or bandwidth
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种基于混合网络的服务链映射方法、智能终端及存储介质。The present invention relates to the field of computer technology, in particular to a hybrid network-based service chain mapping method, an intelligent terminal and a storage medium.
背景技术Background technique
传统网络中常需要大量部署在特定设备上的网络功能(Network Fuction,NF),包括负载均衡器、防火墙、网络地址转换等,来提供特殊的服务,这些设备被称为网络中间件。在网络功能虚拟化(Network Function Virtualization)技术中,可以将网络功能虚拟化为虚拟化网络功能(Virtual Network Function,VNF),并以软件形式将各VNF部署在各物理节点上。流量遵照需求顺序被一系列不同的VNF处理,组成服务链。其中,两个VNF之间的链路称为虚拟链路,两个物理节点之间的链路称为物理链路。在将各个VNF部署在各个物理节点上之后,为保证服务链正常工作,还需要将服务链中的各个VNF之间的虚拟链路映射到物理节点之间的物理路径上,即从一个物理节点到另外一个物理节点之间的链路形成的路径。Traditional networks often require a large number of network functions (Network Fuction, NF) deployed on specific devices, including load balancers, firewalls, network address translation, etc., to provide special services. These devices are called network middleware. In the network function virtualization (Network Function Virtualization) technology, a network function can be virtualized into a virtual network function (Virtual Network Function, VNF), and each VNF is deployed on each physical node in the form of software. Traffic is processed by a series of different VNFs in the order of demand, forming a service chain. The link between two VNFs is called a virtual link, and the link between two physical nodes is called a physical link. After each VNF is deployed on each physical node, in order to ensure the normal operation of the service chain, it is also necessary to map the virtual links between the various VNFs in the service chain to the physical paths between the physical nodes, that is, from a physical node A path formed by a link to another physical node.
传统网络中,部署VNF的物理节点通常为通用服务器。网络功能节点包含服务器和可编程数据平面,其中服务器上以软件VNF的方式实现网络功能,而可编程数据平面是基于匹配-动作表实现的硬件网络功能。而近年来,许多研究提出利用P4可编程数据平面卸载网络功能。P4可编程数据平面相较通用服务器具有更高的处理能力,能够为流量提供更高的性能,而通过配置可编程数据平面流水线中的匹配-动作表,则可以提供可编程性,用来卸载网络功能。例如,网络地址转换器可以通过数据平面匹配-动作表匹配流量IP地址并修改为给定的IP地址实现IP地址映射功能。一个P4可编程数据平面上通常可安装多个网络功能,通过下发流表的方式为对应的流提供网络功能服务。而P4可编程数据平面有自身局限性,无法支持部分涉及到复杂操作(包括读取负载数据等的操作)的网络功能,硬件资源同时也需要保证流量转发的性能,因此可以采用可编程交换机和通用服务器相结合的环境提供网络功能服务。In traditional networks, physical nodes where VNFs are deployed are usually general-purpose servers. The network function node includes a server and a programmable data plane. The server implements network functions in the form of software VNFs, while the programmable data plane is a hardware network function based on a match-action table. In recent years, many studies have proposed to offload network functions using the P4 programmable data plane. The P4 programmable data plane has higher processing power than general-purpose servers and can provide higher performance for traffic, and by configuring the match-action table in the programmable data plane pipeline, it can provide programmability for offloading Network features. For example, the network address translator can match the traffic IP address through the data plane match-action table and modify it to implement the IP address mapping function for the given IP address. Multiple network functions can usually be installed on a P4 programmable data plane to provide network function services for corresponding flows by issuing flow tables. The P4 programmable data plane has its own limitations and cannot support some network functions involving complex operations (including operations such as reading load data). The hardware resources also need to ensure the performance of traffic forwarding, so programmable switches and The environment in which the general server is combined provides network function services.
传统服务链映射算法通常只考虑纯服务器VNF的场景。而由于P4可编程数据平面NF具有以下特点,传统模型难以直接运用于混合系统:Traditional service chain mapping algorithms usually only consider pure server VNF scenarios. However, because the P4 programmable data plane NF has the following characteristics, the traditional model is difficult to directly apply to the hybrid system:
(1)与服务器VNF不同,流量顺序地通过可编程数据平面流水线,因此也必然以一定顺序经过可编程数据平面上的NF。如果以相反的顺序通过同一个交换机上的两个NF,则会额外占用端口,对其他流量性能造成较大影响;(1) Unlike the server VNF, the traffic passes through the programmable data plane pipeline sequentially, so it must also pass through the NFs on the programmable data plane in a certain order. If the two NFs on the same switch are passed in the reverse order, additional ports will be occupied and the performance of other traffic will be greatly affected;
(2)不同于服务器VNF,流量通过可编程交换机NF时主要影响内存资源使用,因此算法进行决策时需要考虑可编程交换机资源限制。(2) Different from the server VNF, when the traffic passes through the programmable switch NF, it mainly affects the use of memory resources, so the algorithm needs to consider the programmable switch resource limit when making decisions.
同时,由于需要为网络中的动态流量提供实时的决策,方案应该进行及时的决策、提供快速的响应,从而减少对流量时延的影响。对于服务链映射方案,简单地采用两个节点之间的最短路径值来进行VNF映射,则会缺少对网络实时状态的考虑,容易造成拥塞;有方案通过构造服务转发图并实时运行最短路径值算法来适应网络的动态性,但是最短路径值算法时间复杂度较高,造成网络流量时延增加。因此服务映射算法需要应对变化的流量需求,快速地为流量选择合适的网络功能实例并且构造服务转发路径,减小流完成时间,同时避免网络拥塞的产生。At the same time, due to the need to provide real-time decision-making for dynamic traffic in the network, the solution should make timely decisions and provide quick responses, thereby reducing the impact on traffic delays. For the service chain mapping scheme, simply using the shortest path value between two nodes for VNF mapping will lack consideration of the real-time status of the network and easily cause congestion; there are schemes by constructing a service forwarding graph and running the shortest path value in real time. The algorithm adapts to the dynamic nature of the network, but the time complexity of the shortest path value algorithm is high, which increases the network traffic delay. Therefore, the service mapping algorithm needs to cope with the changing traffic demand, quickly select the appropriate network function instance for the traffic and construct the service forwarding path, so as to reduce the flow completion time and avoid the generation of network congestion.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提供一种基于混合网络的服务链映射方法、智能终端及存储介质,旨在解决现有技术中基于混合网络的服务链映射响应速度慢的问题。The main purpose of the present invention is to provide a hybrid network-based service chain mapping method, an intelligent terminal and a storage medium, aiming to solve the problem of slow response speed of hybrid network-based service chain mapping in the prior art.
为实现上述目的,本发明提供一种基于混合网络的服务链映射方法,所述基于混合网络的服务链映射方法包括如下步骤:In order to achieve the above object, the present invention provides a hybrid network-based service chain mapping method, the hybrid network-based service chain mapping method includes the following steps:
获取服务链路请求;Get service link request;
根据预设的静态路径表构造规则和预设的网络链路信息,确定服务链路请求对应的目标候选路径集;Determine the target candidate path set corresponding to the service link request according to the preset static path table construction rule and preset network link information;
根据预设的网络实时指标,计算各个所述目标候选路径对应的路径评价值;Calculate the path evaluation value corresponding to each of the target candidate paths according to preset network real-time indicators;
根据所述路径评价值,确定所述目标候选路径集中的目标传输路径。According to the path evaluation value, a target transmission path in the target candidate path set is determined.
可选地,所述的基于混合网络的服务链映射方法,其中,所述根据预设的静态路径表构造规则和预设的网络链路信息,确定所述服务链路请求对应的目标候选路径集,具体包括:Optionally, the hybrid network-based service chain mapping method, wherein the target candidate path corresponding to the service link request is determined according to a preset static path table construction rule and preset network link information. set, including:
根据预设的转发图规则和所述网络链路信息,构建与所述服务链路请求对应的网络转发图;constructing a network forwarding graph corresponding to the service link request according to a preset forwarding graph rule and the network link information;
根据所述网络转发图,确定所述服务链路请求对应目标候选路径集;determining a target candidate path set corresponding to the service link request according to the network forwarding graph;
其中,所述服务链路请求为R=(Nr,vs,vd),Nr为所述服务链路请求对应的网络功能组成的序列,vs为发出所述服务链路请求的源节点,vd为所述服务链路请求对应的目标节点;Wherein, the service link request is R=(N r ,v s ,v d ), N r is a sequence composed of network functions corresponding to the service link request, and v s is the service link request that issued the source node, where v d is the target node corresponding to the service link request;
所述网络转发图G=(N,V,E),其中,V为网络节点的集合、N为各个所述网络节点对应的网络功能,E为根据网络链路,对所述网络节点连接得到的边,网络转发图包括|Nr|+2个网络阶段,|Nr|为Nr的长度,其中第一阶段为源节点,第|Nr|+2阶段为目标节点;The network forwarding graph G=(N, V, E), where V is the set of network nodes, N is the network function corresponding to each of the network nodes, and E is obtained by connecting the network nodes according to the network link. The network forwarding graph includes |N r |+2 network stages, |N r | is the length of N r , where the first stage is the source node, and the |N r |+2 stage is the target node;
所述网络节点Vi为网络功能转发在第i网络阶段的网络节点的集合,为第i网络阶段的各个网络节点具备的网络功能,为具备网络功能的网络节点的集合。the network node V i is the set of network nodes forwarded by the network function in the i-th network stage, is the network function possessed by each network node in the i-th network stage, for network function A collection of network nodes.
可选地,所述的基于混合网络的服务链映射方法,其中,所述边包括边权重,所述边权重包括所述网络节点之间的最短路径值。Optionally, in the hybrid network-based service chain mapping method, the edge includes an edge weight, and the edge weight includes a shortest path value between the network nodes.
可选地,所述的基于混合网络的服务链映射方法,其中,所述边为有向边,由该边的起始节点指向终止节点,所述起始节点为所述终止节点对应的网络阶段的前一阶段;所述边权重的计算过程具体包括:Optionally, in the hybrid network-based service chain mapping method, the edge is a directed edge, and the start node of the edge points to a termination node, and the start node is a network corresponding to the termination node The previous stage of the stage; the calculation process of the edge weight specifically includes:
针对每一个所述边,当该边的起始节点和终止节点位于不同交换机时,将所述起始节点和所述终止节点对应的最短路径值赋值至该边对应的边权重;For each of the edges, when the start node and the end node of the edge are located on different switches, assign the shortest path value corresponding to the start node and the end node to the edge weight corresponding to the edge;
当该边对应的起始节点和终止节点位于同一物理节点时,判断所述物理节点中网络功能安装顺序是否为从所述起始节点到所述终止节点;When the start node and the end node corresponding to the edge are located in the same physical node, determine whether the network function installation sequence in the physical node is from the start node to the end node;
若是,则将零赋值至该边对应的边权重;If so, assign zero to the edge weight corresponding to the edge;
若否,则将预设的无效权重值赋值至该边对应的边权重。If not, assign the preset invalid weight value to the edge weight corresponding to the edge.
可选地,所述的基于混合网络的服务链映射方法,其中,所述根据所述网络转发图,确定所述服务链路请求对应目标候选路径集,具体包括:Optionally, in the hybrid network-based service chain mapping method, the determining a target candidate path set corresponding to the service link request according to the network forwarding graph specifically includes:
根据预设的最短路径值算法和所述网络转发图,确定所述服务链路请求对应的初始候选路径集;determining an initial candidate path set corresponding to the service link request according to a preset shortest path value algorithm and the network forwarding graph;
根据预设的筛选规则,对所述初始候选路径集进行筛选,得到目标候选路径集。According to a preset screening rule, the initial candidate path set is screened to obtain a target candidate path set.
可选地,所述的基于混合网络的服务链映射方法,其中,所述根据预设的筛选规则,对所述初始候选路径集进行筛选,得到目标候选路径集,具体包括:Optionally, in the hybrid network-based service chain mapping method, wherein the initial candidate path set is screened according to a preset screening rule to obtain a target candidate path set, which specifically includes:
根据从小到大的顺序和预设的目标候选路径数量,依次选取所述初始候选路径集中不包括环路的初始候选路径作为目标候选路径;According to the order from small to large and the preset number of target candidate paths, the initial candidate paths that do not include loops in the initial candidate path set are sequentially selected as target candidate paths;
根据所述目标候选路径,生成对应的目标候选路径集。According to the target candidate path, a corresponding target candidate path set is generated.
可选地,所述的基于混合网络的服务链映射方法,其中,其特征在于,所述服务链路请求还包括流量速率和需求资源,所述网络实时指标包括剩余宽带和剩余资源,所述路径评价值为所述目标候选路径中各个边对应的链路评价值之和。Optionally, in the hybrid network-based service chain mapping method, wherein, the service link request further includes traffic rate and required resources, the network real-time indicator includes remaining bandwidth and remaining resources, and the The path evaluation value is the sum of the link evaluation values corresponding to each edge in the target candidate path.
可选地,所述的基于混合网络的服务链映射方法,其中,所述根据预设的网络实时指标,计算各个所述目标候选路径对应的路径评价值,具体包括:Optionally, in the hybrid network-based service chain mapping method, the calculating a path evaluation value corresponding to each target candidate path according to a preset network real-time index specifically includes:
针对所述目标候选路径中的每一个边,判断该边是否满足预设的资源约束条件;For each edge in the target candidate path, determine whether the edge satisfies a preset resource constraint;
若是,则计算该边对应的剩余宽带与所述流量速率的比值,并将所述比值作为该边对应的链路评价值;If so, calculate the ratio of the remaining bandwidth corresponding to the edge to the traffic rate, and use the ratio as the link evaluation value corresponding to the edge;
若否,则将预设的无效链路值作为该边对应的链路评价值。If not, the preset invalid link value is used as the link evaluation value corresponding to the edge.
可选地,所述的基于混合网络的服务链映射方法,其中,所述资源约束条件为该边对应的网络链路的剩余宽带是否小于所述流量速率,且该边对应的起始节点的剩余资源是否大于所述需求资源。Optionally, in the hybrid network-based service chain mapping method, the resource constraint condition is whether the remaining bandwidth of the network link corresponding to the edge is less than the traffic rate, and the starting node corresponding to the edge has a Whether the remaining resources are greater than the required resources.
此外,为实现上述目的,本发明还提供一种智能终端,其中,所述智能终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于混合网络的服务链映射程序,所述基于混合网络的服务链映射程序被所述处理器执行时实现如上所述的基于混合网络的服务链映射方法的步骤。In addition, in order to achieve the above object, the present invention also provides an intelligent terminal, wherein the intelligent terminal includes: a memory, a processor, and a hybrid network-based service stored in the memory and running on the processor A chain mapping program, when the hybrid network-based service chain mapping program is executed by the processor, implements the steps of the hybrid network-based service chain mapping method as described above.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,其中,所述计算机可读存储介质存储有基于混合网络的服务链映射程序,所述基于混合网络的服务链映射程序被处理器执行时实现如上所述的基于混合网络的服务链映射方法的步骤。In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a hybrid network-based service chain mapping program, and the hybrid network-based service chain mapping program is The processor implements the steps of the hybrid network-based service chain mapping method described above when executed.
本发明提出了一种基于混合网络的服务链映射方法,先根据服务链路请求,确定对应的目标候选路径集,然后根据网络实时指标作为评估标准筛选,选择目标候选路径集中的最优路径作为目标传输路径,从而优化网络性能,尽可能避免拥塞发生。本发明面向包含P4可编程数据平面网络功能和软件网络功能的混合网络功能,为网络流量提供快速灵活的自动化服务路径构造,同时缩短响应时间,减小流完成时延且提升网络性能。The invention proposes a service chain mapping method based on a hybrid network. First, according to the service link request, the corresponding target candidate path set is determined, and then the network real-time index is used as the evaluation standard to screen, and the optimal path in the target candidate path set is selected as the target candidate path set. target transmission path, thereby optimizing network performance and avoiding congestion as much as possible. The present invention is oriented towards a hybrid network function including a P4 programmable data plane network function and a software network function, provides fast and flexible automatic service path construction for network traffic, while shortening response time, reducing flow completion delay and improving network performance.
附图说明Description of drawings
图1是本发明基于混合网络的服务链映射方法提供的较佳实施例的流程图;1 is a flowchart of a preferred embodiment provided by the hybrid network-based service chain mapping method of the present invention;
图2是本发明基于混合网络的服务链映射方法提供的较佳实施例中服务链映射系统中硬件之间的流程图;2 is a flow chart between hardware in a service chain mapping system in a preferred embodiment provided by the hybrid network-based service chain mapping method of the present invention;
图3是本发明基于混合网络的服务链映射方法提供的较佳实施例中服务链映射系统架构示意图;3 is a schematic diagram of a service chain mapping system architecture in a preferred embodiment provided by the hybrid network-based service chain mapping method of the present invention;
图4是本发明基于混合网络的服务链映射方法提供的较佳实施例中网络转发图的示意图;4 is a schematic diagram of a network forwarding diagram in a preferred embodiment provided by the hybrid network-based service chain mapping method of the present invention;
图5是本发明基于混合网络的服务链映射方法提供的较佳实施例中判断第一节点和第二节点的示意图;5 is a schematic diagram of judging the first node and the second node in the preferred embodiment provided by the hybrid network-based service chain mapping method of the present invention;
图6是本发明基于混合网络的服务链映射方法提供的较佳实施例中静态路径构造算法;6 is a static path construction algorithm in a preferred embodiment provided by the hybrid network-based service chain mapping method of the present invention;
图7是本发明基于混合网络的服务链映射方法提供的较佳实施例中动态路径选择算法;7 is a dynamic path selection algorithm in a preferred embodiment provided by the hybrid network-based service chain mapping method of the present invention;
图8为本发明智能终端的较佳实施例的运行环境示意图。FIG. 8 is a schematic diagram of an operating environment of a preferred embodiment of an intelligent terminal of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
本发明较佳实施例所述的基于混合网络的服务链映射方法,如图1所示,所述基于混合网络的服务链映射方法包括以下步骤:The hybrid network-based service chain mapping method according to the preferred embodiment of the present invention, as shown in FIG. 1 , the hybrid network-based service chain mapping method includes the following steps:
步骤S100,获取服务链路请求。Step S100, acquiring a service link request.
具体地,本实施例中基于混合网络的服务链映射方法应用于服务链映射系统。如图2和图3所示,服务链映射系统包括数据平面和控制平面,数据平面包含安装在服务器上的软件虚拟化网络功能实例和安装在可编程交换机上的硬件网络功能实例,控制平面由包含服务链映射算法的决策层、命令翻译模块和信息收集模块组成。其中数据平面的硬件网络功能实例基于匹配-动作表(Match-Action Table)元素实现,在运行时通过控制平面下发的对应规则激活。根据流表规则指示,流量在通过一个交换机时可选择性的通过一个或多个网络功能。软件虚拟化网络功能实例实现在服务器上,用于承载由于功能过于复杂因而不被可编程数据平面所提供的原语支持的网络功能。Specifically, the hybrid network-based service chain mapping method in this embodiment is applied to the service chain mapping system. As shown in Figures 2 and 3, the service chain mapping system includes a data plane and a control plane. The data plane includes software virtualized network function instances installed on servers and hardware network function instances installed on programmable switches. The control plane consists of It consists of decision-making layer, command translation module and information collection module including service chain mapping algorithm. The hardware network function instance of the data plane is implemented based on a match-action table (Match-Action Table) element, and is activated by corresponding rules issued by the control plane at runtime. Traffic can selectively pass through one or more network functions as it passes through a switch, as indicated by the flow table rules. Software virtualized network function instances are implemented on servers to carry network functions that are too complex to be supported by the primitives provided by the programmable data plane.
当数据平面识别到输入的新的数据流时,其第一个数据包作为服务链路请求将会被传送到控制平面进行服务路径构造,即图2中的服务链请求合集中的服务链请求。控制平台的信息收集模块为数据平面通信提供接口,通过信息收集模块,控制平台获取服务链路请求。此外,信息收集模块还会预先决策层所需的链路信息以及网络试实时指标,链路信息包括网络中的各个网络节点、网络节点之间的链路关系、各个网络节点提供的网络服务等,网络试实时指标包括网络宽带占用率、各个网络节点的处理速度等用于评价网络节点处理能力的节点。When the data plane recognizes the incoming new data flow, its first data packet will be transmitted to the control plane as a service link request for service path construction, that is, the service chain request in the service chain request collection in Figure 2 . The information collection module of the control platform provides an interface for data plane communication, and through the information collection module, the control platform obtains the service link request. In addition, the information collection module will also pre-determine the link information required by the decision-making layer and the network test real-time indicators. The link information includes each network node in the network, the link relationship between the network nodes, and the network services provided by each network node, etc. , the network test real-time indicators include the network bandwidth occupancy rate, the processing speed of each network node, and other nodes used to evaluate the processing capability of the network nodes.
步骤S200,根据预设的静态路径表构造规则和预设的网络链路信息,确定所述服务链路请求对应的目标候选路径集;Step S200, according to a preset static path table construction rule and preset network link information, determine a target candidate path set corresponding to the service link request;
具体地,由于信息收集模块还会预先决策层所需的链路信息,因此可根据网络链路信息,以及服务链路请求中的源节点、目标节点以及所需要的网络服务,确定其可能的目标候选路径,并将所有的目标候选路径作为目标候选路径集。预先设定以静态路径表构造规则,用于根据当前的静态网络环境,也就是网络链路信息,确定链路请求对应的目标候选路径集。在确定其可能的目标候选路径过程中,为减少计算量,可采用一定的筛选,例如采用前k条最短路径值算法,选择路径最短的几个路径作为目标候选路径。Specifically, since the information collection module also determines the link information required by the layer in advance, it can determine the possible link information according to the network link information, the source node, the target node and the required network service in the service link request. target candidate paths, and use all target candidate paths as the target candidate path set. A rule for constructing a static path table is preset in order to determine the target candidate path set corresponding to the link request according to the current static network environment, that is, network link information. In the process of determining its possible target candidate paths, in order to reduce the amount of calculation, certain screening can be used, for example, the top k shortest path value algorithm is used to select several paths with the shortest paths as target candidate paths.
进一步地,参阅图4,本实施例在确定服务链路请求对应的目标候选路径集过程中,采用静态路径构造算法,具体过程如下:Further, referring to FIG. 4 , in the process of determining the target candidate path set corresponding to the service link request in this embodiment, a static path construction algorithm is adopted, and the specific process is as follows:
A10,根据预设的转发图规则和所述网络链路信息,构建与所述服务链路请求对应的网络转发图。A10. Construct a network forwarding map corresponding to the service link request according to a preset forwarding map rule and the network link information.
具体地,控制平台的决策层获取服务链路请求后,根据预设的转发图规则,构建与所述服务链路请求对应的网络转发图,其中,转发图规则为构建网络转发图的规则,网络转发图根据信息收集模块之前收集得到的链路信息以及网络请求所构建。Specifically, after obtaining the service link request, the decision layer of the control platform constructs a network forwarding graph corresponding to the service link request according to a preset forwarding graph rule, wherein the forwarding graph rule is a rule for constructing a network forwarding graph, The network forwarding graph is constructed according to the link information and network requests collected before by the information collection module.
该转发图规则用于将当前网络中能够满足所述服务链路请求基本网络功能的路径筛选出来。该网络转发图的起点,也就是源节点,为该发出所述服务链路请求的节点,终点,也就是目标节点,为所述服务链路请求对应的目标节点,而网络转发图中间节点为根据服务链路请求中所列有的网络服务需求确定的节点。因此,通过网络转发图中的任意一条路径,都能满足所述服务链路请求最基本的服务需求。The forwarding graph rule is used to filter out the paths in the current network that can satisfy the basic network function requested by the service link. The starting point of the network forwarding graph, that is, the source node, is the node that sends the service link request, the end point, that is, the target node, is the target node corresponding to the service link request, and the middle node of the network forwarding graph is A node based on the network service requirements listed in the service link request. Therefore, any path in the network forwarding graph can satisfy the most basic service requirement of the service link request.
其中,所述服务链路请求被定义为由源节点、目标节点和网络功能序列组成,即R=(Nr,vs,vd),Nr为所述服务链路请求对应的网络功能组成的序列,网络功能也就是服务链路请求所对应的服务需求,vs为发出所述服务链路请求的源节点,vd为所述服务链路请求对应的目标节点。The service link request is defined as consisting of a source node, a target node and a network function sequence, that is, R=(N r ,v s ,v d ), and N r is the network function corresponding to the service link request The network function is the service requirement corresponding to the service link request, v s is the source node that sends the service link request, and v d is the target node corresponding to the service link request.
所述网络转发图G=(N,V,E),其中,V为网络节点的集合(包括服务器和交换机)、N为各个所述网络节点对应的网络功能,E为根据网络链路,对所述网络节点连接得到的边,网络转发图包括|Nr|+2段,|Nr|为Nr的长度,其中第一个阶段和最后一个阶段是流的源节点和目标节点,剩余每个阶段i中的节点v由安装了相应网络功能的交换机或服务器节点组成,表示为即: Vi为网络功能转发在第i阶段的网络节点的集合,为第i阶段的各个网络节点具备的网络功能,为具备网络功能的网络节点的集合。The network forwarding graph G=(N, V, E), where V is the set of network nodes (including servers and switches), N is the network function corresponding to each of the network nodes, and E is the network link according to the network link. The edges obtained by connecting the network nodes, the network forwarding graph includes |N r |+2 segments, |N r | is the length of N r , where the first stage and the last stage are the source node and target node of the flow, and the remaining The node v in each phase i is installed by the corresponding network function composed of switches or server nodes, expressed as which is: V i is the set of network nodes forwarded by the network function in the i-th stage, is the network function possessed by each network node in the i-th stage, for network function A collection of network nodes.
进一步地,所述边包括边权重,所述边权重包括所述网络节点之间的最短路径值。Further, the edge includes an edge weight, and the edge weight includes a shortest path value between the network nodes.
具体地,如图4所示,转发图中边的权值g[vi-1][vi]设置为网络功能转发图中网络节点v及网络节点u之间的最短路径值d[vi-1][vi],最短路径值d[vi-1][vi]可基于网络链路信息计算得到,通常由控制平面提供应用程序编程接口(Application ProgrammingInterface,API)获取。一般最短路径值是指拓扑意义上网络节点之间的跳数,直接相连,最短路径值则为1;通过一个节点相连,最短路径值则为2。Specifically, as shown in FIG. 4 , the weight g[v i -1 ][vi ] of the edge in the forwarding graph is set as the shortest path value d[v between the network node v and the network node u in the network function forwarding graph i-1 ][v i ], the shortest path value d[v i-1 ][v i ] can be calculated based on network link information, and is usually obtained from an application programming interface (Application Programming Interface, API) provided by the control plane. Generally, the shortest path value refers to the number of hops between network nodes in the topological sense. If they are directly connected, the shortest path value is 1; if they are connected through a node, the shortest path value is 2.
进一步地,为了降低流的端到端时延,本实施例中,最短路径值在网络节点之间的跳数上进行一定调整,具体过程为:Further, in order to reduce the end-to-end delay of the flow, in this embodiment, the shortest path value is adjusted on the number of hops between network nodes, and the specific process is as follows:
针对每一个所述边,当该边的起始节点和终止节点位于不同交换机时,将所述起始节点和所述终止节点对应的最短路径值赋值至该边对应的边权重;For each of the edges, when the start node and the end node of the edge are located on different switches, assign the shortest path value corresponding to the start node and the end node to the edge weight corresponding to the edge;
当该边对应的起始节点和终止节点位于同一物理节点时,判断所述物理节点中网络功能安装顺序是否为从所述起始节点到所述终止节点;When the start node and the end node corresponding to the edge are located in the same physical node, determine whether the network function installation sequence in the physical node is from the start node to the end node;
若是,则将零赋值至该边对应的边权重;If so, assign zero to the edge weight corresponding to the edge;
若否,则将预设的无效权重值赋值至该边对应的边权重。If not, assign the preset invalid weight value to the edge weight corresponding to the edge.
具体地,所述边为有向边,由该边的起始节点指向终止节点,vi-1为起始节点,vi为终止节点,所述起始节点为所述终止节点对应的网络阶段的前一阶段。针对每一个所述边,当该边对应的起始节点和终止节点位于不同交换机时,该边对应的边权重仍然是两个网络节点之间的最短路径值。Specifically, the edge is a directed edge, and the start node of the edge points to the end node, vi -1 is the start node, vi is the end node, and the start node is the network corresponding to the end node the previous stage of the stage. For each of the edges, when the start node and the end node corresponding to the edge are located in different switches, the edge weight corresponding to the edge is still the shortest path value between the two network nodes.
参阅图5,如果vi-1和vi在网络中为同一个物理节点,例如交换机节点,则应该区分以下两种情况设置权值:(1)若vi-1和vi对应的交换机上以顺序的方式安装了vi-1和vi对应阶段的网络功能,则数据包能够以流水线的方式通过两个网络功能,不存在路径代价,因此,边权值赋值为0;(2)若vi-1和vi对应的交换机上以逆序的方式安装了vi-1和vi对应阶段的网络功能(即交换机上控制逻辑为先经过u对应阶段的网络功能再经过v对应阶段的网络功能),即则该边的权重值设置为一个特别大的数值,也就是无效权重值,以防该条路径被选中。这样设置的原因是,虽然可以通过在同一个交换机上将数据包再次提交到流水线起始点的方式实现逆序地通过网络功能,不存在路径代价,但是由于重提交流量额外占据了入端口,将会对交换机上其他流量的性能造成较大的影响,不利于整体网络性能。该过程的公式可表示为:Referring to Figure 5, if v i-1 and v i are the same physical node in the network, such as a switch node, the weights should be set according to the following two cases: (1) If the switches corresponding to v i-1 and v i The network functions of the corresponding stages of v i-1 and v i are installed in a sequential manner, the data packets can pass through the two network functions in a pipelined manner, and there is no path cost. Therefore, the edge weight is assigned to 0; (2 ) If the switches corresponding to v i-1 and v i are installed with the network functions of the corresponding stages of v i-1 and v i in reverse order (that is, the control logic on the switch is to first pass the network functions of the corresponding stage of u and then pass through the corresponding stages of v ) stage network function), that is, the weight value of the edge is set to a particularly large value, that is, an invalid weight value, to prevent this path from being selected. The reason for this setting is that although it is possible to pass the network function in reverse order by resubmitting the data packets to the starting point of the pipeline on the same switch, there is no path cost, but because the resubmitted traffic additionally occupies the ingress port, it will be It has a great impact on the performance of other traffic on the switch and is not conducive to the overall network performance. The formula for this process can be expressed as:
其中,p(n)表示网络节点u对应的物理节点,则表示vi对应物理节点上,是否以从到的顺序安装网络功能(对于安装有对应网络功能的服务器节点,此变量值恒为1),MAXIMUM即无效权重值。Among them, p(n) represents the physical node corresponding to the network node u, It means that on the physical node corresponding to v i , whether the arrive The network functions are installed in the order of (for the server node installed with the corresponding network function, the value of this variable is always 1), and MAXIMUM is the invalid weight value.
A20,根据所述网络转发图,确定所述服务链路请求对应目标候选路径集。A20. Determine a target candidate path set corresponding to the service link request according to the network forwarding map.
具体地,由于所述网络转发图包含当前网络中能够满足所述服务链路请求最基本的服务需求,因此将网络转发图中的各个路径作为目标候选路径,从而确定所述服务链路请求对应目标候选路径集。Specifically, since the network forwarding graph includes the most basic service requirements in the current network that can meet the service link request, each path in the network forwarding graph is used as a target candidate path, so as to determine the corresponding service link request. The set of target candidate paths.
进一步地,基于上述的网络转发图,本实施例采集基于K条最短路径值(k-shortest pathes,KSP)算法的方式确定目标候选路径集。Further, based on the above-mentioned network forwarding graph, this embodiment collects and determines the target candidate path set in a manner based on K shortest paths (k-shortest paths, KSP) algorithm.
B10,根据预设的最短路径值算法和所述网络转发图,确定所述服务链路请求对应的初始候选路径集。B10: Determine an initial candidate path set corresponding to the service link request according to a preset shortest path value algorithm and the network forwarding graph.
具体地,先采用KSP算法,基于该网络转发图,确定所述服务链路请求对应的初始候选路径集。KSP算法采用了递推法中的偏离路径算法思想,适用于非负权边的有向无环图结构。其具体过程为:Specifically, the KSP algorithm is first used to determine the initial candidate path set corresponding to the service link request based on the network forwarding graph. The KSP algorithm adopts the idea of the deviation path algorithm in the recursion method, and is suitable for the directed acyclic graph structure with non-negative weight edges. The specific process is:
根据所述最短路径值算法和各个所述边对应的边权重,生成与所述网络转发图对应的初始候选路径及各个初始路径对应的路径权重值;According to the shortest path value algorithm and the edge weights corresponding to each of the edges, an initial candidate path corresponding to the network forwarding graph and a path weight value corresponding to each initial path are generated;
根据所述路径权重值,对所述初始候选路径从小到大排序,生成候选路径序列;According to the path weight value, sort the initial candidate paths from small to large to generate a sequence of candidate paths;
选取所述候选路径序列中排序前m条初始候选路径作为初始候选路径集,其中,m为预设的初始候选路径数量。Selecting the top m initial candidate paths in the sequence of candidate paths as the initial candidate path set, where m is a preset number of initial candidate paths.
具体地,先算出第1条最短路径值P(1),然后在此基础上依次算出其他的K-1条最短路径值。在求P(i+1)时,将P(i)上除了目标节点外的所有节点都视为偏离节点,并计算每个偏离节点到终止节点的最短路径值,即上述的边权重,再与之前的P(i)上起始节点到偏离节点的路径拼接,构成初始候选路并计算其对应的路径权重值,生成候选路径序列。再根据路径权重值,对各个初始候选路从小到大排序,最后根据预设的初始候选路径数量m,选取所述候选路径序列中排序前m条初始候选路径作为初始候选路径集。参阅图6,其中,m=2k,k为预设的目标候选路径数量。除2k外,m可为大于k的正整数,只要满足后续筛选时,存在满足筛选的数据量。Specifically, the first shortest path value P(1) is calculated first, and then the other K-1 shortest path values are calculated sequentially on this basis. When calculating P(i+1), all nodes on P(i) except the target node are regarded as deviating nodes, and the shortest path value from each deviating node to the terminal node is calculated, that is, the above-mentioned edge weight, and then It is spliced with the path from the starting node to the deviating node on the previous P(i) to form an initial candidate path and calculate its corresponding path weight value to generate a candidate path sequence. Then, according to the path weight value, each initial candidate path is sorted from small to large, and finally according to the preset number m of initial candidate paths, the first m initial candidate paths in the sequence of candidate paths are selected as the initial candidate path set. Referring to FIG. 6 , where m=2k, k is the preset number of target candidate paths. Except for 2k, m can be a positive integer greater than k, as long as the subsequent screening is satisfied, there is an amount of data that satisfies the screening.
B20,根据预设的筛选规则,对所述初始候选路径集进行筛选,得到目标候选路径集。B20: Screen the initial candidate path set according to a preset screening rule to obtain a target candidate path set.
具体地,预设一个筛选规则,所述筛选规则用于对初始候选路径集进行筛选,该筛选规则可针对初始候选路径是否包含环路,以及环路的多少,例如预设一个环路数量阈值,若该初始候选路径的环路数量超过该环路数量阈值,则将该初始候选路径删除。Specifically, a screening rule is preset, and the screening rule is used to screen the initial candidate path set. The screening rule can be based on whether the initial candidate path contains loops and the number of loops, for example, a loop quantity threshold is preset. , if the loop quantity of the initial candidate path exceeds the loop quantity threshold, delete the initial candidate path.
进一步地,参阅图6,该筛选规则针对初始候选路径是否包含环路,具体过程如下:Further, referring to Fig. 6, the screening rule is for whether the initial candidate path contains a loop, and the specific process is as follows:
根据从小到大的顺序和预设的目标候选路径数量,依次选取所述初始候选路径集中不包括环路的初始候选路径作为目标候选路径;According to the order from small to large and the preset number of target candidate paths, the initial candidate paths that do not include loops in the initial candidate path set are sequentially selected as target candidate paths;
根据所述目标候选路径,生成对应的目标候选路径集。According to the target candidate path, a corresponding target candidate path set is generated.
具体地,由于环路的存在将会导致路径交汇节点上的路由冲突问题,并且当前系统中难以为冲突的流量区分下一跳位置,因此需要进行路径筛选,避免环路的存在。Specifically, because the existence of loops will lead to the problem of route conflict on the path intersection node, and it is difficult to distinguish the next hop position for the conflicting traffic in the current system, it is necessary to perform path screening to avoid the existence of loops.
然后按照从小到大的顺序进行筛选,将不包含环路的初始候选路作为目标候选路径,并加入目标候选路径集,当目标候选路径数量达到k时,算法停止,得到目标候选路径集。Then, according to the order from small to large, the initial candidate paths that do not contain loops are taken as target candidate paths and added to the target candidate path set. When the number of target candidate paths reaches k, the algorithm stops and the target candidate path set is obtained.
步骤S300,根据预设的网络实时指标,计算各个所述目标候选路径对应的路径评价值。Step S300: Calculate path evaluation values corresponding to each of the target candidate paths according to preset network real-time indicators.
具体地,本实施例采用动态路径选择算法选择目标候选路径中的目标传输路径。路径评价值是指根据各条目标候选路径的网络状况、资源利用情况等网络实时指标计算得到用于评价各个目标候选路径的传输能力的数值。由于控制平台通过信息会收集模块获取网络实时指标,因此可根据网络实时指标,对所述目标候选路径集中各个目标候选路径进行传输能力的计算及评估,得到对应的路径评价值。Specifically, in this embodiment, a dynamic path selection algorithm is used to select the target transmission path among the target candidate paths. The path evaluation value refers to a value calculated according to the network real-time indicators such as the network status and resource utilization of each target candidate path, which is used to evaluate the transmission capability of each target candidate path. Since the control platform obtains the network real-time indicators through the information gathering module, it can calculate and evaluate the transmission capacity of each target candidate path in the target candidate path set according to the network real-time indicators, and obtain the corresponding path evaluation value.
进一步地,本实施例中采用链路带宽利用率作为路径评价值,所述服务链路请求还包括流量速率和需求资源,所述网络实时指标包括剩余宽带和剩余资源,所述路径评价值为所述目标候选路径中各个边对应的链路评价值之和。Further, in this embodiment, the link bandwidth utilization rate is used as the path evaluation value, the service link request further includes the traffic rate and the required resources, the network real-time indicator includes the remaining bandwidth and remaining resources, and the path evaluation value is The sum of the link evaluation values corresponding to each edge in the target candidate path.
路径评价值的公式为其中,mp为目标候选路径p对应的路径评价值,br表示请求R的发送速率,be表示路径p包含的一段物理链路e的剩余带宽,e为目标候选路径p对应的链路评价值。求和结果即为累计链路带宽利用率。The formula for the path evaluation value is Among them, mp is the path evaluation value corresponding to the target candidate path p , br represents the sending rate of the request R , bee represents the remaining bandwidth of a physical link e included in the path p, and e is the link corresponding to the target candidate path p Evaluation value. The summation result is the cumulative link bandwidth utilization.
参阅图7,动态算法模块通过信息收集模块从数据平面实时获取链路负载信息和节点资源使用情况,对于每条候选路径,首先检查是否满足路径的节点容量和链路容量的限制,以保证其可行性,本实施例用于评价是否满足节点容量和链路容量的方式为计算该链路对应的链路评价值。本实施例优选的链路评价值的计算过程为:Referring to Figure 7, the dynamic algorithm module obtains the link load information and node resource usage from the data plane in real time through the information collection module. Feasibility, the method for evaluating whether the node capacity and the link capacity are satisfied in this embodiment is to calculate the link evaluation value corresponding to the link. The preferred calculation process of the link evaluation value in this embodiment is:
步骤C10,针对所述目标候选路径中的每一个边,判断是否满足预设的资源约束条件。Step C10, for each edge in the target candidate path, determine whether a preset resource constraint condition is satisfied.
具体地,遍历各个目标候选路径的边,判断该边是否满足资源约束条件,即该边对应的网络链路的剩余宽带是否小于所述流量速率,且该边对应的起始节点的剩余资源是否大于所述需求资源。本实施例采用的资源约束条件为:要求目标传输路径满足且其中,cr表示服务链路请求R所需求的资源,ce表示链路e起点所包含的剩余资源,也就是链路e对应的边的起始节点的剩余资源。Specifically, traverse the edges of each target candidate path to determine whether the edge satisfies the resource constraints, that is, whether the remaining bandwidth of the network link corresponding to the edge is less than the traffic rate, and whether the remaining resources of the starting node corresponding to the edge are greater than the required resources. The resource constraints adopted in this embodiment are: the target transmission path is required to satisfy and Among them, cr represents the resources required by the service link request R , and ce represents the remaining resources included in the starting point of link e , that is, the remaining resources of the starting node of the edge corresponding to link e.
除上述的资源约束条件外,还可采用设置资源占比阈值、计算需求资源与剩余资源的比值与资源占比阈值的大小关系等与宽带及资源的利用情况作为资源约束条件。根据节点类型,网络节点对应的物理节点分为交换机或服务器,若为交换机,则剩余资源指交换机剩余资源;若为服务器,则剩余资源为服务器剩余,例如CPU资源。可将这两个条件作为资源约束,根据该资源约束,遍历各个目标候选路径。In addition to the above resource constraints, the resource ratio threshold, the ratio of computing demand resources to remaining resources, and the relationship between the resource ratio threshold, etc., and the utilization of bandwidth and resources can also be used as resource constraints. According to the node type, the physical nodes corresponding to the network nodes are classified as switches or servers. If it is a switch, the remaining resources refer to the remaining resources of the switch; if it is a server, the remaining resources are the remaining resources of the server, such as CPU resources. These two conditions can be regarded as resource constraints, and each target candidate path can be traversed according to the resource constraints.
步骤C20,若是,则计算该边对应的剩余宽带与所述流量速率的比值,并将所述比值作为该边对应的链路评价值。Step C20, if yes, calculate the ratio of the remaining bandwidth corresponding to the edge to the traffic rate, and use the ratio as the link evaluation value corresponding to the edge.
具体地,若是,则计算该边对应的剩余宽带与所述流量速率的比值,即并将其作为该边对应的链路评价值。Specifically, if yes, calculate the ratio of the remaining bandwidth corresponding to the edge to the traffic rate, that is, And take it as the link evaluation value corresponding to the edge.
步骤C30,若否,则将预设的无效链路值作为该边对应的链路评价值。Step C30, if not, take the preset invalid link value as the link evaluation value corresponding to the edge.
具体地,预设一个无效链路值,该无效链路值可为一个极大值或者无穷。若否,则将预设的无效链路值作为该边对应的链路评价值,以防止该链路所在的目标候选路径被选中。Specifically, an invalid link value is preset, and the invalid link value may be a maximum value or infinite. If not, the preset invalid link value is used as the link evaluation value corresponding to the edge to prevent the target candidate path where the link is located from being selected.
因此,本实施例考虑交换机、服务器的资源限制和链路带宽限制,在能满足流量需求的前提下,挑选累积链路带宽利用率最小的路径,从而保障网络负载均衡,减轻网络负载,使服务链合理、有效的调度和分配有限的网络资源,减少运营商的部署开销,提高请求的接收率,取得较高的部署收益。Therefore, in this embodiment, considering the resource limitations and link bandwidth limitations of switches and servers, on the premise that the traffic demand can be met, the path with the smallest cumulative link bandwidth utilization rate is selected, so as to ensure network load balance, reduce network load, and enable service Reasonable and effective scheduling and allocation of limited network resources, reducing the deployment overhead of operators, improving the reception rate of requests, and achieving higher deployment benefits.
步骤S400,根据所述路径评价值,确定所述目标候选路径集中的目标传输路径。Step S400: Determine a target transmission path in the target candidate path set according to the path evaluation value.
具体地,得到各个目标候选路径对应的路径评价值后,若传输能力越强,路径评价值越高,则选择数值最大的路径评价值对应的目标候选路径作为目标传输路径;若传输能力越强,路径评价值越小,则选择数值最小的路径评价值对应的目标候选路径作为目标传输路径。本实施例中,传输能力越强,路径评价值越小,因此选择数值最小的路径评价值对应的目标候选路径作为目标传输路径。Specifically, after obtaining the path evaluation value corresponding to each target candidate path, if the transmission capability is stronger and the path evaluation value is higher, the target candidate path corresponding to the path evaluation value with the largest value is selected as the target transmission path; if the transmission capability is stronger , the smaller the path evaluation value is, the target candidate path corresponding to the path evaluation value with the smallest value is selected as the target transmission path. In this embodiment, the stronger the transmission capability, the smaller the path evaluation value. Therefore, the target candidate path corresponding to the path evaluation value with the smallest value is selected as the target transmission path.
决策层将目标传输路径作为部署命令发送给命令翻译模块生成对应的网络功能规则和流量路由规则,安装到沿路的交换机上。同时将数据包传回数据平面,数据包从而匹配流表规则进行正常转发。该流后续的数据包将在数据平面中按照安装好网络功能路径进行转发。当流结束后,网络功能流表和转发流表规则将按照超时规则被交换机自动移除。因此,每一个服务链路请求所对应的目标传输路径都是根据最新的网络状况筛选得到的,使服务链能够合理、有效的调度和分配有限的网络资源。The decision-making layer sends the target transmission path as a deployment command to the command translation module to generate corresponding network function rules and traffic routing rules, and install them on the switches along the route. At the same time, the data packet is sent back to the data plane, and the data packet matches the flow table rules for normal forwarding. The subsequent data packets of the flow will be forwarded in the data plane according to the installed network function path. When the flow ends, the network function flow table and forwarding flow table rules will be automatically removed by the switch according to the timeout rule. Therefore, the target transmission path corresponding to each service link request is obtained by screening according to the latest network conditions, so that the service chain can reasonably and effectively schedule and allocate limited network resources.
本实施例中,通过两阶段的算法快速地确定目标传输网络,两阶段算法由静态路径生成算法和动态路径选择算法组成,静态算法在网络初始化时被调用,以最短路径值为指标筛选出所有请求的备选路径集;当控制平面接收到流的第一个数据包时调用动态算法,结合从信息收集模块得到的网络实时指标,从该请求的目标候选路径集中筛选出目标传输路径。In this embodiment, the target transmission network is quickly determined through a two-stage algorithm. The two-stage algorithm consists of a static path generation algorithm and a dynamic path selection algorithm. The static algorithm is called when the network is initialized, and the shortest path value is used as the index to filter out all the The set of candidate paths for the request; when the control plane receives the first data packet of the flow, the dynamic algorithm is invoked, and the target transmission path is selected from the set of target candidate paths for the request in combination with the network real-time indicators obtained from the information collection module.
本实施例的方案可以以多种方式部署。例如部署在数据中心网络,为超大规模的流量提供服务链映射服务,分配资源,构造服务路径,提升网络性能和流量转发效率,减少流量端到端时延,并且通过卸载到可编程数据平面节省一部分服务器资源使用从而更好的提供云服务。还可以部署在网络提供商的接入网络,充分利用可编程交换机的资源和性能简化网络部署,为不同租户和业务构建不同的虚拟网络,同时提升服务质量。The solution of this embodiment can be deployed in various ways. For example, it is deployed in the data center network to provide service chain mapping services for ultra-large-scale traffic, allocate resources, construct service paths, improve network performance and traffic forwarding efficiency, reduce traffic end-to-end latency, and save energy by offloading to the programmable data plane. Part of the server resources are used to better provide cloud services. It can also be deployed in the access network of the network provider, making full use of the resources and performance of programmable switches to simplify network deployment, build different virtual networks for different tenants and services, and improve service quality at the same time.
进一步地,如图8所示,基于上述基于混合网络的服务链映射方法,本发明还相应提供了一种智能终端,所述智能终端包括处理器10、存储器20及显示器30。图8仅示出了智能终端的部分组件,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Further, as shown in FIG. 8 , based on the above hybrid network-based service chain mapping method, the present invention also provides an intelligent terminal correspondingly, and the intelligent terminal includes a
所述存储器20在一些实施例中可以是所述智能终端的内部存储单元,例如智能终端的硬盘或内存。所述存储器20在另一些实施例中也可以是所述智能终端的外部存储设备,例如所述智能终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器20还可以既包括所述智能终端的内部存储单元也包括外部存储设备。所述存储器20用于存储安装于所述智能终端的应用软件及各类数据,例如所述安装智能终端的程序代码等。所述存储器20还可以用于暂时地存储已经输出或者将要输出的数据。在一实施例中,存储器20上存储有基于混合网络的服务链映射程序40,该基于混合网络的服务链映射程序40可被处理器10所执行,从而实现本申请中基于混合网络的服务链映射方法。In some embodiments, the
所述处理器10在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行所述存储器20中存储的程序代码或处理数据,例如执行所述基于混合网络的服务链映射方法等。In some embodiments, the
所述显示器30在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。所述显示器30用于显示在所述智能终端的信息以及用于显示可视化的用户界面。所述智能终端的部件10-30通过系统总线相互通信。In some embodiments, the
在一实施例中,当处理器10执行所述存储器20中基于混合网络的服务链映射程序40时实现上述基于混合网络的服务链映射方法。In one embodiment, when the
本发明还提供一种计算机可读存储介质,其中,所述计算机可读存储介质存储有基于混合网络的服务链映射程序,所述基于混合网络的服务链映射程序被处理器执行时实现如上所述的基于混合网络的服务链映射方法的步骤。The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a hybrid network-based service chain mapping program, and the hybrid network-based service chain mapping program is executed by a processor to achieve the above The steps of the hybrid network-based service chain mapping method described above.
当然,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关硬件(如处理器,控制器等)来完成,所述的程序可存储于一计算机可读存储介质中,所述程序在执行时可包括如上述各方法实施例的流程。其中所述的计算机可读存储介质可为存储器、磁碟、光盘等。Of course, those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware (such as processors, controllers, etc.) through a computer program, and the programs can be stored in a In the computer-readable storage medium, when the program is executed, the process of each method embodiment described above may be included. The computer-readable storage medium may be a memory, a magnetic disk, an optical disk, or the like.
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples. For those of ordinary skill in the art, improvements or transformations can be made according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011567506.2A CN112565082B (en) | 2020-12-25 | 2020-12-25 | Service chain mapping method based on hybrid network, intelligent terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011567506.2A CN112565082B (en) | 2020-12-25 | 2020-12-25 | Service chain mapping method based on hybrid network, intelligent terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112565082A CN112565082A (en) | 2021-03-26 |
CN112565082B true CN112565082B (en) | 2022-06-17 |
Family
ID=75034284
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011567506.2A Active CN112565082B (en) | 2020-12-25 | 2020-12-25 | Service chain mapping method based on hybrid network, intelligent terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112565082B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113379161A (en) * | 2021-07-07 | 2021-09-10 | 中国电信股份有限公司 | Path allocation method and device, storage medium and electronic equipment |
CN113556573A (en) * | 2021-07-23 | 2021-10-26 | 上海哔哩哔哩科技有限公司 | Method and system for selecting push flow link |
CN114003627B (en) * | 2021-10-18 | 2025-02-28 | 杭州网易云音乐科技有限公司 | Method, device, equipment and storage medium for deduplication of massive requests |
CN113742089B (en) * | 2021-11-04 | 2022-02-18 | 苏州浪潮智能科技有限公司 | Method, device and device for allocating neural network computing tasks in heterogeneous resources |
CN116132355A (en) * | 2021-11-15 | 2023-05-16 | 中国移动通信有限公司研究院 | End-to-end service deployment method and electronic device |
CN114500364A (en) * | 2021-12-27 | 2022-05-13 | 天翼云科技有限公司 | Service stream transmission method, device, electronic device and storage medium |
CN114529088A (en) * | 2022-02-21 | 2022-05-24 | 山东大学 | Driving path planning method and system based on accident risk cost |
CN114580061B (en) * | 2022-03-06 | 2022-12-13 | 江苏天利电梯有限公司 | Elevator installation guidance design optimization method based on computer aided design |
CN114612049B (en) * | 2022-05-11 | 2022-08-05 | 弥费实业(上海)有限公司 | Path generation method, apparatus, computer device and storage medium |
CN116192753B (en) * | 2023-04-17 | 2023-07-21 | 新华三技术有限公司 | Flow distribution method and device |
CN118694703B (en) * | 2024-08-26 | 2024-12-10 | 嘉兴嘉赛信息技术有限公司 | A local area network point-to-point transmission method based on unicast |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015118875A1 (en) * | 2014-02-06 | 2015-08-13 | 日本電気株式会社 | Optimal arrangement method for virtual network function, network control device, network management device, and network system |
CN108173761A (en) * | 2017-12-22 | 2018-06-15 | 南京邮电大学 | A resource optimization method for the integration of SDN and NFV |
CN108600019A (en) * | 2018-04-28 | 2018-09-28 | 电子科技大学 | a kind of network service function chain mapping method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ES2743547T3 (en) * | 2014-02-06 | 2020-02-19 | Nec Corp | Network system, network control method and control device |
JP6470426B2 (en) * | 2015-11-13 | 2019-02-13 | 日本電信電話株式会社 | Resource allocation device and resource allocation method |
CN110505082B (en) * | 2019-07-26 | 2023-04-21 | 国家电网有限公司 | A Cost- and QoS-Oriented NFV Service Chain Mapping Method |
-
2020
- 2020-12-25 CN CN202011567506.2A patent/CN112565082B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015118875A1 (en) * | 2014-02-06 | 2015-08-13 | 日本電気株式会社 | Optimal arrangement method for virtual network function, network control device, network management device, and network system |
CN108173761A (en) * | 2017-12-22 | 2018-06-15 | 南京邮电大学 | A resource optimization method for the integration of SDN and NFV |
CN108600019A (en) * | 2018-04-28 | 2018-09-28 | 电子科技大学 | a kind of network service function chain mapping method |
Also Published As
Publication number | Publication date |
---|---|
CN112565082A (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112565082B (en) | Service chain mapping method based on hybrid network, intelligent terminal and storage medium | |
US10657106B2 (en) | Method, computing device, and distributed file system for placement of file blocks within a distributed file system | |
US10341208B2 (en) | File block placement in a distributed network | |
CN112738820A (en) | A method, device and computer equipment for dynamic deployment of service function chain | |
CN108260169A (en) | A kind of service function chain dynamic deployment method ensured based on QoS | |
Torkzadeh et al. | Energy-aware routing considering load balancing for SDN: a minimum graph-based Ant Colony Optimization | |
CN110535705B (en) | A Service Function Chain Construction Method for Adaptive User Delay Requirements | |
CN106201356B (en) | A Dynamic Data Scheduling Method Based on Link Available Bandwidth Status | |
WO2019072162A1 (en) | Virtual network mapping method, device and storage medium | |
CN108965014A (en) | The service chaining backup method and system of QoS perception | |
CN105075200A (en) | Supporting arbitrary routing criteria in software defined networks | |
CN104917659B (en) | A kind of mapping method of virtual network based on virtual network connection performance | |
CN107124303B (en) | Service chain optimization method with low transmission delay | |
CN114071582A (en) | Service chain deployment method and device for cloud-edge collaborative Internet of things | |
CN115809148B (en) | Load balancing task scheduling method and device for edge computing | |
Siasi et al. | Priority-aware SFC provisioning in fog computing | |
CN110851235A (en) | A virtual network function deployment method suitable for optimal configuration of multi-dimensional resources | |
CN113395183B (en) | Virtual node scheduling method and system for network simulation platform VLAN interconnection | |
CN113014302B (en) | Network function service chain deployment method facing satellite network | |
WO2024152938A1 (en) | Method for forwarding in-network computing message, forwarding node and computer storage medium | |
CN114430398B (en) | Bandwidth efficiency optimization method and device for aggregation compression of identifier resolution request | |
CN117336231A (en) | Storage auxiliary big data multipath transmission scheduling method | |
CN108965025A (en) | The management method and device of flow in cloud computing system | |
CN118900253B (en) | Congestion control method, system, device, computer equipment and storage medium | |
CN115361284B (en) | Deployment adjustment method of virtual network function based on SDN |
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 |