CN113507413B - Route optimization method and device and computing equipment - Google Patents
Route optimization method and device and computing equipment Download PDFInfo
- Publication number
- CN113507413B CN113507413B CN202110831817.3A CN202110831817A CN113507413B CN 113507413 B CN113507413 B CN 113507413B CN 202110831817 A CN202110831817 A CN 202110831817A CN 113507413 B CN113507413 B CN 113507413B
- Authority
- CN
- China
- Prior art keywords
- link
- transmission duration
- candidate
- overhead
- links
- 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
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/14—Routing performance; Theoretical aspects
-
- 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/02—Topology update or discovery
- H04L45/08—Learning-based routing, e.g. using neural networks or artificial intelligence
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请公开了一种路由优化方法、装置及计算设备,涉及通信技术领域。该方法具体包括计算设备获取M个链路的N种候选链路开销对应的传输时长后,基于启发式算法,获取N种候选链路开销对应的传输时长中最短传输时长。进而,计算设备将最短传输时长对应的候选链路开销作为M个链路的链路开销。其中,N种候选链路开销中任意两种候选链路开销包含的至少一个链路的链路开销不同,N和M均为大于或等于2的整数。
The present application discloses a route optimization method, device and computing device, and relates to the technical field of communications. The method specifically includes, after the computing device obtains the transmission durations corresponding to the N candidate link costs of the M links, and, based on a heuristic algorithm, obtains the shortest transmission duration among the transmission durations corresponding to the N candidate link costs. Further, the computing device takes the candidate link overhead corresponding to the shortest transmission duration as the link overhead of the M links. The link overhead of at least one link included in any two candidate link overheads among the N kinds of candidate link overheads is different, and both N and M are integers greater than or equal to 2.
Description
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种路由优化方法、装置及计算设备。The present application relates to the field of communication technologies, and in particular, to a route optimization method, apparatus, and computing device.
背景技术Background technique
目前,在运营商的网络架构中,网际互连协议(internet protocol,IP)承载网承载了运营商大量的业务(如:专线业务、内容分发网络业务等)。随着网络架构和业务需求不断升级,网络间通信线路越来越多,通信传输的流量越来越大,网络架构也越来越复杂,IP承载网需要承载的业务越来越多,对IP承载网提出了更高的要求和挑战。为了保证网络的高效性,针对IP层的路由优化至关重要。在IP层,数据报进行转发的路由参数主要是链路开销(metric),链路开销用于指示路由器转发数据报到达目的地的最佳路径。由于路由器根据链路开销的设计进行选路,选择路径开销最小的路径,路径开销包括多个链路开销。因此链路开销的设计要贴合现网需求,能够在保证业务需求的前提下,充分利用现网资源。Currently, in an operator's network architecture, an Internet Protocol (Internet Protocol, IP) bearer network carries a large number of operators' services (eg, private line services, content distribution network services, etc.). With the continuous upgrading of network architecture and service requirements, there are more and more communication lines between networks, the traffic of communication transmission is increasing, the network architecture is becoming more and more complex, and the IP bearer network needs to carry more and more services. The bearer network presents higher requirements and challenges. In order to ensure the high efficiency of the network, routing optimization for the IP layer is very important. In the IP layer, the routing parameter for datagram forwarding is mainly link cost (metric), and the link cost is used to indicate the best path for the router to forward the datagram to the destination. Since the router selects the route according to the design of the link cost, and selects the path with the smallest path cost, the path cost includes multiple link costs. Therefore, the design of the link overhead should be in line with the requirements of the existing network, so that the resources of the existing network can be fully utilized on the premise of ensuring the service requirements.
目前链路开销通常是由运维人员根据经验设计的,路由器根据人工设计的链路开销传输数据报的场景下,网络资源的利用率较低,数据报的传输时长较长。因此,如何设计链路开销,提高网络资源的利用率,以及降低数据报的传输时长是亟待解决的问题。Currently, the link overhead is usually designed by the operation and maintenance personnel based on experience. In the scenario where the router transmits datagrams according to the manually designed link overhead, the utilization rate of network resources is low, and the transmission time of the datagrams is long. Therefore, how to design the link overhead, improve the utilization rate of network resources, and reduce the transmission duration of the datagram is an urgent problem to be solved.
发明内容SUMMARY OF THE INVENTION
本申请提供的一种路由优化方法、装置及计算设备,由此设计的链路开销可以提高网络资源的利用率,以及降低数据报的传输时长。In the route optimization method, device and computing device provided by the present application, the designed link overhead can improve the utilization rate of network resources and reduce the transmission time of datagrams.
为了达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:
第一方面,本申请提供了一种路由优化方法,该方法由计算设备执行。该方法包括:计算设备获取M个链路的N种候选链路开销对应的传输时长,进而,基于启发式算法获取N种候选链路开销对应的传输时长中最短的传输时长,将最短传输时长对应的候选链路开销作为M个链路的链路开销。其中,N种候选链路开销中任意两种候选两种链路开销包含的至少一个链路的候选链路开销不同,N和M均为大于或等于2的整数。In a first aspect, the present application provides a route optimization method, which is performed by a computing device. The method includes: a computing device obtains transmission durations corresponding to N kinds of candidate link overheads of M links, and further obtains the shortest transmission duration among the transmission durations corresponding to N kinds of candidate link overheads based on a heuristic algorithm, and assigns the shortest transmission duration to The corresponding candidate link costs are taken as link costs of the M links. Wherein, the candidate link costs of at least one link included in any two kinds of candidate link costs in the N kinds of candidate link costs are different, and both N and M are integers greater than or equal to 2.
如此一来,计算设备基于启发式算法,从对M个链路预先配置的N种候选链路开销中选择最短传输时长对应的候选链路开销,将该候选链路开销作为M个链路的链路开销。无需运维人员根据经验人工设计链路开销,实现了链路开销设计过程的智能化,同时保证了设计的链路开销是全网平均传输时长最短的链路开销,有效地提高了网络资源的利用率,以及降低了数据报的传输时长。In this way, based on the heuristic algorithm, the computing device selects the candidate link cost corresponding to the shortest transmission duration from the N kinds of candidate link costs preconfigured for the M links, and uses the candidate link cost as the cost of the M links. link cost. There is no need for operation and maintenance personnel to manually design the link overhead based on experience, which realizes the intelligentization of the link overhead design process, and ensures that the designed link overhead is the link overhead with the shortest average transmission time in the entire network, which effectively improves the utilization of network resources. utilization, and reduces the transmission time of datagrams.
第二方面,本申请提供了一种路由优化装置,该装置包括:通信单元和处理单元。In a second aspect, the present application provides a route optimization device, which includes: a communication unit and a processing unit.
上述通信单元,用于获取M个链路的N种候选链路开销对应的传输时长,所述N种候选链路开销中任意两种候选链路开销包含的至少一个链路的候选链路开销不同,N和M均为大于或等于2的整数。上述处理单元,用于基于启发式算法,获取所述N种候选链路开销对应的传输时长中最短传输时长。上述处理单元,还用于将所述最短传输时长对应的候选链路开销作为所述M个链路的链路开销。The above communication unit is configured to obtain the transmission duration corresponding to N kinds of candidate link overheads of the M links, and the candidate link overhead of at least one link included in any two kinds of candidate link overheads in the N kinds of candidate link overheads Differently, both N and M are integers greater than or equal to 2. The above processing unit is configured to obtain, based on a heuristic algorithm, the shortest transmission duration among the transmission durations corresponding to the N kinds of candidate link overheads. The above processing unit is further configured to use the candidate link overhead corresponding to the shortest transmission duration as the link overhead of the M links.
一种可能的设计中,N种候选链路开销包括初始链路开销和更新链路开销,N种候选链路开销对应的传输时长包括初始传输时长和更新传输时长。In a possible design, the N kinds of candidate link overheads include the initial link overhead and the update link overhead, and the transmission duration corresponding to the N kinds of candidate link overheads includes the initial transmission duration and the update transmission duration.
一种可能的设计中,启发式算法包括粒子群算法。In one possible design, the heuristic algorithm includes particle swarm optimization.
一种可能的设计中,处理单元,具体用于比较第一传输时长与第二传输时长;若第一传输时长小于第二传输时长,将第一传输时长确定为第一链路组的传输时长和链路组集合的传输时长;比较第三传输时长与第四传输时长;若第三传输时长小于第四传输时长,将第三传输时长确定为第二链路组的传输时长;比较第三传输时长与第一传输时长;若第三传输时长小于第一传输时长,将第三传输时长确定为链路组集合的传输时长。其中,N种候选链路开销包括第一种候选链路开销、第二种候选链路开销、第三种候选链路开销和第四种候选链路开销,第一种候选链路开销与第一链路组的第一传输时长关联,第二种候选链路开销与第一链路组的第二传输时长关联,第三种候选链路开销与第二链路组的第三传输时长关联,第四种候选链路开销与第二链路组的第四传输时长关联;链路组集合包括第一链路组和第二链路组,第一链路组包含M个链路,第二链路组包含M个链路。In a possible design, the processing unit is specifically configured to compare the first transmission duration with the second transmission duration; if the first transmission duration is less than the second transmission duration, determine the first transmission duration as the transmission duration of the first link group and the transmission duration of the link group set; compare the third transmission duration with the fourth transmission duration; if the third transmission duration is less than the fourth transmission duration, determine the third transmission duration as the transmission duration of the second link group; compare the third transmission duration The transmission duration and the first transmission duration; if the third transmission duration is smaller than the first transmission duration, the third transmission duration is determined as the transmission duration of the link group set. Among them, the N types of candidate link overheads include the first type of candidate link overhead, the second type of candidate link overhead, the third type of candidate link overhead, and the fourth type of candidate link overhead. The first transmission duration of a link group is associated, the second candidate link overhead is associated with the second transmission duration of the first link group, and the third candidate link overhead is associated with the third transmission duration of the second link group , the fourth candidate link overhead is associated with the fourth transmission duration of the second link group; the link group set includes the first link group and the second link group, the first link group includes M links, and the first link group includes M links. A two-link group contains M links.
一种可能的设计中,通信单元,还用于在获取M个链路的多种候选链路开销对应的传输时长之前,获取M个链路的链路信息,每个链路的链路信息包括初始链路开销,以及发送端的经度和纬度、发送端的路由类型、接收端的经度和纬度、接收端的路由类型、链路传输时长和链路带宽中至少一种;处理单元,还用于根据M个链路的链路信息确定链路开销取值范围,M个链路的多种候选链路开销属于链路开销取值范围。In a possible design, the communication unit is further configured to obtain the link information of the M links, the link information of each link, before obtaining the transmission durations corresponding to the multiple candidate link costs of the M links. Including the initial link overhead, and at least one of the longitude and latitude of the sender, the route type of the sender, the longitude and latitude of the receiver, the route type of the receiver, the link transmission duration and the link bandwidth; The link information of the links determines the link overhead value range, and the various candidate link costs of the M links belong to the link overhead value range.
一种可能的设计中,处理单元,具体用于基于聚类算法和M个链路的链路信息对M个链路进行分类,得到S类链路,S类链路中每类链路包含至少一个链路,S为大于或等于2的整数;根据每类链路的最大链路开销和最小链路开销确定每类链路的链路开销取值范围,M个链路中任一个链路的候选链路开销属于S类链路开销取值范围中的一类链路开销取值范围。In a possible design, the processing unit is specifically configured to classify the M links based on the clustering algorithm and the link information of the M links, to obtain S-type links, and each type of link in the S-type links includes: At least one link, S is an integer greater than or equal to 2; the range of link overhead of each type of link is determined according to the maximum link overhead and minimum link overhead of each type of link, and any link among M links The candidate link cost of the road belongs to a type of link cost value range in the S-type link cost value range.
第三方面,本申请提供了一种计算设备,该计算设备包括存储器和处理器。存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,该计算设备执行如第一方面及其任一种可能的设计方式所述的路由优化方法。In a third aspect, the present application provides a computing device including a memory and a processor. The memory and the processor are coupled. The memory is used to store computer program code comprising computer instructions. When the processor executes the computer instructions, the computing device executes the routing optimization method described in the first aspect and any possible design manners thereof.
第四方面,本申请提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当所述计算机可读存储介质在计算机上运行时,使得该装置执行如第一方面及其任一种可能的设计方式所述的路由优化方法。In a fourth aspect, the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, when the computer-readable storage medium is run on a computer, the device is made to perform the first aspect and its The route optimization method described in any possible design manner.
第五方面,本申请提供一种计算机程序产品,该计算机程序产品包括计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行如第一方面及其任一种可能的设计方式所述的路由优化方法。In a fifth aspect, the present application provides a computer program product, the computer program product comprising computer instructions, when the computer instructions are run on a computer, the computer is made to execute the first aspect and any possible design methods thereof The described route optimization method.
本申请中第二方面到第五方面及其各种实现方式的具体描述,可以参考第一方面及其各种实现方式中的详细描述;并且,第二方面到第五方面及其各种实现方式的有益效果,可以参考第一方面及其各种实现方式中的有益效果分析,此处不再赘述。For specific descriptions of the second to fifth aspects and their various implementations in this application, reference may be made to the detailed descriptions of the first aspect and their various implementations; and, for the second to fifth aspects and their various implementations For the beneficial effect of the method, reference may be made to the analysis of the beneficial effect in the first aspect and its various implementation manners, which will not be repeated here.
本申请的这些方面或其他方面在以下的描述中会更加简明易懂。These and other aspects of the present application will be more clearly understood from the following description.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some of the drawings in the present application. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本申请实施例提供的一种IP承载网的结构示意图;1 is a schematic structural diagram of an IP bearer network according to an embodiment of the present application;
图2为本申请实施例提供的一种路由优化方法的流程示意图;2 is a schematic flowchart of a route optimization method provided by an embodiment of the present application;
图3为本申请实施例提供的一种粒子群算法应用至本申请实施例中的流程示意图;FIG. 3 is a schematic flowchart of applying a particle swarm algorithm provided by an embodiment of the present application to an embodiment of the present application;
图4为本申请实施例提供的一种计算设备的结构示意图;FIG. 4 is a schematic structural diagram of a computing device according to an embodiment of the present application;
图5为本申请实施例提供的一种路由优化装置的结构示意图。FIG. 5 is a schematic structural diagram of a route optimization apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
在本申请实施例中,为了便于清楚描述本申请实施例的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。该“第一”、第二”描述的技术特征间无先后顺序或者大小顺序。In the embodiments of the present application, in order to clearly describe the technical solutions of the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same functions and functions. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like are not necessarily different. The technical features described in the "first" and second" have no sequence or order of magnitude.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner to facilitate understanding.
在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the description of this application, unless otherwise stated, "/" indicates that the object associated with it is an "or" relationship, for example, A/B can indicate A or B; "and/or" in this application is only It is an association relationship that describes an associated object, which means that there can be three kinds of relationships, for example, A and/or B, which can be expressed as: A alone exists, A and B exist at the same time, and B exists alone, among which A, B Can be singular or plural. Also, in the description of the present application, unless stated otherwise, "plurality" means two or more than two. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple .
在本申请实施例中,至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本申请不做限制。In the embodiments of the present application, at least one may also be described as one or more, and the multiple may be two, three, four or more, which is not limited in this application.
网际互连协议(internet protocol,IP)承载网的拓扑可以是一个三层网络拓扑或者二层网络拓扑,三层网络拓扑可以分为核心层、汇聚层和接入层,二层网络拓扑可以分为核心层(又称为骨干spine层)和接入层(又称为叶子leaf层)。The topology of the Internet Protocol (IP) bearer network can be a three-layer network topology or a two-layer network topology. The three-layer network topology can be divided into the core layer, the aggregation layer and the access layer. It is the core layer (also known as the backbone spine layer) and the access layer (also known as the leaf layer).
核心层是IP承载网的高速交换主干层,用于将IP承载网与IP承载网之外的设备(如:外部运营商设备)连接。核心层可以包括路由器。核心层具有如下至少一个特性:可靠性、高效性、冗余性、容错性、可管理性、适应性、低延时性等。核心层的路由连接在IP承载网中起到十分关键的作用,一般可以通过多台设备的冗余连接来实现IP承载网的可靠性。The core layer is the high-speed switching backbone layer of the IP bearer network, and is used to connect the IP bearer network with devices outside the IP bearer network (eg, external operator equipment). The core layer may include routers. The core layer has at least one of the following characteristics: reliability, high efficiency, redundancy, fault tolerance, manageability, adaptability, and low latency. The routing connection at the core layer plays a very critical role in the IP bearer network. Generally, the reliability of the IP bearer network can be achieved through redundant connections of multiple devices.
汇聚层是接入层和核心层的“中介”,用于在工作站(如:终端设备或服务器)发出的数据进入核心层前汇聚数据,以减轻核心层的负荷。汇聚层可以包括路由器。The convergence layer is an "intermediary" between the access layer and the core layer, and is used to aggregate data before data sent by a workstation (such as a terminal device or server) enters the core layer, so as to reduce the load of the core layer. The aggregation layer may include routers.
接入层与工作站相连,用于向本地网段提供工作站接入。接入层可以包括路由器。The access layer is connected to workstations and is used to provide workstation access to the local network segment. The access layer may include routers.
示例地,图1是本申请的实施例应用的IP承载网的结构示意图,该IP承载网由接入层的接入设备、汇聚层的汇聚设备和核心层的核心设备所组成。接入设备连接工作站,工作站包括服务器和终端设备。如图1所示,该IP承载网100包括核心层110、汇聚层120和接入层130。核心层110包括路由器111和路由器112。汇聚层120包括路由器121、路由器122、路由器123和路由器124。接入层130包括路由器131、路由器132、路由器133和路由器134。Exemplarily, FIG. 1 is a schematic structural diagram of an IP bearer network to which an embodiment of the present application is applied. The IP bearer network is composed of access devices at the access layer, aggregation devices at the aggregation layer, and core devices at the core layer. The access device connects the workstation, and the workstation includes the server and the terminal device. As shown in FIG. 1 , the IP bearer network 100 includes a core layer 110 , a convergence layer 120 and an access layer 130 . The core layer 110 includes a router 111 and a router 112 . The aggregation layer 120 includes a router 121 , a router 122 , a router 123 and a router 124 . The access layer 130 includes a router 131 , a router 132 , a router 133 and a router 134 .
其中,路由器111和路由器112均连接互联网(Internet)。路由器121、路由器122、路由器123和路由器124均与路由器111相连接。路由器121、路由器122、路由器123和路由器124均与路由器112相连接。路由器131分别与路由器121和路由器122相连。路由器132分别与路由器121和路由器122相连。路由器133分别与路由器123和路由器124相连。路由器134分别与路由器123和路由器124相连。工作站141和工作站142分别与路由器131连接。工作站143和工作站144分别与路由器132连接。工作站145和工作站146分别与路由器133连接。工作站147和工作站148分别与路由器134连接。工作站可以是服务器或终端设备,不予限定。The router 111 and the router 112 are both connected to the Internet (Internet). Router 121 , router 122 , router 123 , and router 124 are all connected to router 111 . Router 121 , router 122 , router 123 , and router 124 are all connected to router 112 . The router 131 is connected to the router 121 and the router 122, respectively. The router 132 is connected to the router 121 and the router 122, respectively. The router 133 is connected to the router 123 and the router 124, respectively. The router 134 is connected to the router 123 and the router 124, respectively. The workstation 141 and the workstation 142 are connected to the router 131, respectively. Workstation 143 and workstation 144 are connected to router 132, respectively. Workstation 145 and workstation 146 are connected to router 133, respectively. Workstation 147 and workstation 148 are connected to router 134, respectively. The workstation can be a server or a terminal device, which is not limited.
图1只是示意图,该IP承载网中还可以包括其它设备,如还可以包括设备管理服务器。这些服务器用于管理所有路由器,确保它们正常工作,在图1中未画出。本申请的实施例对IP承载网中包括的路由器和工作站的数量不做限定。另外,图1中所示的路由器和工作站间的连接方式只是一种示意性说明,在实际应用中,路由器和工作站还可以采用其他方式连接,本申请不予限定。FIG. 1 is just a schematic diagram, and the IP bearer network may also include other devices, such as a device management server. These servers are used to manage all routers to ensure they are working properly and are not shown in Figure 1. The embodiments of the present application do not limit the number of routers and workstations included in the IP bearer network. In addition, the connection mode between the router and the workstation shown in FIG. 1 is only a schematic illustration. In practical applications, the router and the workstation may also be connected in other ways, which are not limited in this application.
IP承载网中的每个设备既可以作为发送端发送数据,也可以作为接收端接收数据。发送端设备向接收端设备发送数据报的物理路径包括了多个链路。链路是从一个设备到另一个设备的物理线路,而中间没有任何其他的设备。通常,IP承载网中的设备依据链路的链路开销进行选路传输数据报的。链路开销是运维人员根据经验设计的,人工设计的链路开销无法保证路由优化效果的精准度,造成了网络资源浪费的问题。Each device in the IP bearer network can either send data as a sender or receive data as a receiver. The physical path through which the sender device sends the datagram to the receiver device includes multiple links. A link is a physical line from one device to another without any other devices in between. Generally, devices in the IP bearer network select a route to transmit datagrams according to the link overhead of the link. The link cost is designed by the operation and maintenance personnel based on experience. The manually designed link cost cannot guarantee the accuracy of the route optimization effect, resulting in a waste of network resources.
针对上述问题,本申请实施例提供了一种路由优化方法,计算设备根据获取到的M个链路的链路信息,结合启发式算法,获取全网平均传输时长最短的链路开销设计方案,确保了IP层路由优化效果的精准度,相对于人工设计的链路开销方案,可以智能化地获取全网平均传输时长最短的链路开销设计方案,降低整体业务传输时长,有效地提高整网业务的速度。In order to solve the above problems, an embodiment of the present application provides a route optimization method. The computing device obtains the link overhead design scheme with the shortest average transmission duration of the entire network according to the obtained link information of M links and combined with a heuristic algorithm. It ensures the accuracy of the IP layer routing optimization effect. Compared with the manually designed link overhead scheme, it can intelligently obtain the link overhead design scheme with the shortest average transmission time of the entire network, reduce the overall service transmission time, and effectively improve the entire network. speed of business.
下面结合附图对本申请提供的路由优化方法进行详细说明。The route optimization method provided by the present application will be described in detail below with reference to the accompanying drawings.
如图2所示,本申请实施例提供的一种路由优化方法,该方法包括以下步骤。As shown in FIG. 2 , a route optimization method provided by an embodiment of the present application includes the following steps.
S201、计算设备获取M个链路的链路信息。S201. The computing device acquires link information of M links.
链路的链路信息包括初始链路开销,以及发送端的经度和纬度、发送端的路由类型、接收端的经度和纬度、接收端的路由类型、链路传输时长和链路带宽中至少一种。The link information of the link includes the initial link cost, and at least one of the longitude and latitude of the sender, the route type of the sender, the longitude and latitude of the receiver, the route type of the receiver, the link transmission duration and the link bandwidth.
链路的初始链路开销可以是由运维人员人工配置的。The initial link cost of the link can be manually configured by the operation and maintenance personnel.
可选的,M个链路信息可以是一个基站覆盖范围内的区域的网络数据,也可以是多个基站覆盖范围内的区域的网络数据。区域可以是一个住宅小区,也可以是一个城市或者一个国家,本申请实施例对链路信息的获取范围不与限定。Optionally, the M pieces of link information may be network data of an area covered by one base station, or may be network data of an area covered by multiple base stations. The area may be a residential area, or may be a city or a country, and the scope of obtaining link information is not limited in this embodiment of the present application.
路由类型包括接入路由器(access router,AR)、汇聚路由器(border router,BR)和核心路由器(core router,CR)等。在本申请实施例中,发送端设备可以是接入路由器AR、汇聚路由器BR和核心路由器CR中任一个。接收端设备也可以是接入路由器AR、汇聚路由器BR和核心路由器CR中任一个。结合图1,发送端设备可以是核心层110中路由器111和路由器112中任一个,也可以是汇聚层120中路由器121、路由器122、路由器123和路由器124中任一个,还可以是接入层130中路由器131、路由器132、路由器133和路由器134中任一个。接收端设备可以是核心层110中路由器111和路由器112,也可以是汇聚层中路由器121、路由器122、路由器123和路由器124中任一个,还可以是接入层130中路由器131、路由器132、路由器133和路由器134中任一个。Routing types include access routers (AR), aggregation routers (border routers, BR), and core routers (core routers, CR). In this embodiment of the present application, the sending end device may be any one of the access router AR, the aggregation router BR, and the core router CR. The receiving end device may also be any one of the access router AR, the aggregation router BR and the core router CR. With reference to FIG. 1 , the sending end device can be any one of router 111 and router 112 in core layer 110 , or any one of router 121 , router 122 , router 123 and router 124 in aggregation layer 120 , or an access layer. Any one of router 131 , router 132 , router 133 and router 134 in 130 . The receiving end device can be router 111 and router 112 in the core layer 110, or any one of router 121, router 122, router 123, and router 124 in the aggregation layer, or router 131, router 132, and router 132 in the access layer 130. Either router 133 or router 134.
链路的传输时长指一个数据报从链路发送端到链路接收端所需要的时间。The transmission duration of a link refers to the time required for a datagram to travel from the link sender to the link receiver.
链路带宽指此链路在单位时间内可传输的数据量。单位时间例如是1秒。链路带宽可以是指每秒内传输的数据量。Link bandwidth refers to the amount of data that the link can transmit in unit time. The unit time is, for example, 1 second. Link bandwidth can refer to the amount of data transferred per second.
S202、计算设备根据M个链路的链路信息确定链路开销取值范围。S202. The computing device determines a link overhead value range according to the link information of the M links.
在一种可能的示例中,计算设备基于聚类算法和M个链路的链路信息对M个链路进行分类,得到S类链路。S类链路中每类链路包含至少一个链路,S为大于或等于2的整数。以每类链路中最大链路开销和最小链路开销确定每类链路的链路开销取值范围。In a possible example, the computing device classifies the M links based on a clustering algorithm and link information of the M links, to obtain S-type links. Each of the S-type links includes at least one link, and S is an integer greater than or equal to 2. The link cost range of each type of link is determined by the maximum link cost and the minimum link cost in each type of link.
示例地,假设将M个链路分为了2类,第1类链路中第1个链路的链路开销是第1类链路中链路的链路开销最大的,将第1个链路的链路开销作为第1类链路的最大链路开销。第1类链路中第3个链路的链路开销是第1类链路中链路的链路开销最小的。将第3个链路的链路开销作为第1类链路的最小链路开销,根据第1类链路的最大链路开销和最小链路开销确定第1类链路的链路开销取值范围。As an example, it is assumed that M links are divided into two types, the link cost of the first link in the first type of link is the largest among the links in the first type of link, and the link cost of the first link is the largest. The link cost of the path is taken as the maximum link cost of the
又如,第2类链路中第2个链路的链路开销是第2类链路中链路的链路开销最大的,将第2个链路的链路开销作为第2类链路的最大链路开销。第2类链路中第5个链路的链路开销是第2类链路中链路的链路开销最小的,将第5个链路的链路开销作为第2类链路的最小链路开销,根据第2类链路的最大链路开销和最小链路开销确定第2类链路的链路开销取值范围。For another example, the link cost of the second link in the type 2 link is the largest among the links in the type 2 link, and the link cost of the second link is regarded as the type 2 link. maximum link cost. The link cost of the fifth link in the type 2 link is the link cost of the link in the type 2 link with the smallest link cost, and the link cost of the fifth link is regarded as the minimum link cost of the type 2 link. The link overhead of the type 2 link is determined according to the maximum link overhead and the minimum link overhead of the type 2 link.
确保M个链路中任意一个链路的候选链路开销都属于S类链路开销取值范围中一类的链路开销取值范围。M个链路的多种候选链路开销属于链路开销取值范围。It is ensured that the candidate link cost of any one of the M links belongs to the link cost range of a class in the S-type link cost range. The various candidate link costs of the M links belong to the range of link costs.
具体地,计算设备获取到M个链路的链路信息后,首先根据聚类算法对M个链路进行分类。Specifically, after acquiring the link information of the M links, the computing device first classifies the M links according to a clustering algorithm.
可选的,聚类算法包括k-means聚类算法,均值偏移聚类算法和层次聚类算法等中任一个,本申请实施例中以k-means聚类算法为例进行说明。Optionally, the clustering algorithm includes any one of a k-means clustering algorithm, a mean-shift clustering algorithm, and a hierarchical clustering algorithm, and the k-means clustering algorithm is used as an example for description in this embodiment of the present application.
k-means聚类算法是一种基于样本间相似性度量的间接聚类方法,属于非监督学习方法。此算法以k为参数,把n个对象分为k个簇,以使簇内具有较高的相似度,而且簇间的相似度较低。相似度的计算根据一个簇中对象的平均值(被看作簇的中心)来进行。假设要把样本数据分为k个类别,算法流程如下:The k-means clustering algorithm is an indirect clustering method based on the similarity measure between samples, which belongs to the unsupervised learning method. This algorithm takes k as a parameter and divides n objects into k clusters, so that the similarity within the cluster is high and the similarity between clusters is low. Similarity is calculated based on the average of objects in a cluster (considered as the center of the cluster). Assuming that the sample data is to be divided into k categories, the algorithm flow is as follows:
(1)适当从样本数据中选择出k个类的初始中心值,一般为随机选取。(1) Appropriately select the initial center values of k classes from the sample data, generally randomly.
(2)在每次迭代中,对任意一个样本数据,分别求出样本数据到k个中心的欧式距离,将样本数据归到距离最短的中心值所在的类。(2) In each iteration, for any sample data, the Euclidean distances from the sample data to k centers are obtained respectively, and the sample data are classified into the class of the center value with the shortest distance.
(3)利用均值方法更新k个类的中心值。(3) Use the mean method to update the center value of k classes.
(4)对于k个类的中心值,重复步骤(2)(3),当k个类的中心值的移动距离满足一定条件时,则迭代结束,完成分类。(4) Repeat steps (2) and (3) for the center values of the k classes. When the moving distance of the center values of the k classes satisfies a certain condition, the iteration ends and the classification is completed.
在k-means算法中,k是预先设置的。在本申请实施例中,k可以为10,也就是需要将M个链路划分为10类。随机选取10个类的初始中心值,在迭代过程中,分别以M个链路的链路信息中发送端的经度和纬度、发送端路由类型,接收端的经度和纬度、接收端的路由类型,链路传输时长和链路带宽等数据计算M个链路的链路信息中链路初始链路开销到10个初始中心值的欧式距离,将M个链路的链路信息的初始链路开销归到距离最短的中心所在的类。利用均值方法更新10个类的中心值,直至每一个类中的初始链路开销具有较高的相似度,且类与类间的相似度较低,迭代结束。In the k-means algorithm, k is preset. In this embodiment of the present application, k may be 10, that is, the M links need to be divided into 10 categories. The initial center values of 10 classes are randomly selected. In the iterative process, the longitude and latitude of the sender, the route type of the sender, the longitude and latitude of the receiver, the route type of the receiver, and the link information of the M links are respectively used. Calculate the Euclidean distance from the initial link cost of the link in the link information of the M links to 10 initial center values, and classify the initial link cost of the link information of the M links to The class where the center with the shortest distance is located. Use the mean method to update the center value of 10 classes, until the initial link cost in each class has a high similarity, and the similarity between classes is low, and the iteration ends.
具体地,在本申请实施例中,首先根据k-means算法将M个链路划分为10类,每一类里包含着相似度接近的链路的初始链路开销。为每类设定链路开销取值范围。假设第i类链路中最小链路开销为min,最大链路开销为max,则第i类链路的链路开销取值范围为[min_i,max_i]。其中,最小链路开销min与链路开销取值范围min_i满足下述公式(1)。Specifically, in the embodiment of the present application, the M links are firstly divided into 10 categories according to the k-means algorithm, and each category includes the initial link costs of the links with similar degrees of similarity. Set the link cost value range for each type. Assuming that the minimum link cost of the i-th link is min and the maximum link cost is max, the range of the link cost of the i-th link is [min_i, max_i]. Wherein, the minimum link overhead min and the link overhead value range min_i satisfy the following formula (1).
min_i=min*0.7 公式(1)min_i=min*0.7 Formula (1)
最大链路开销max与链路开销max_i满足下述公式(2)。The maximum link overhead max and the link overhead max_i satisfy the following formula (2).
max_i=max*1.3 公式(2)max_i=max*1.3 Formula (2)
示例地,若第一类链路的初始链路开销集合为(100,200,300,400),则该类链路的链路开销取值范围为[70,520],更新后的链路开销取值为正整数,且可以被100整除,也即候选链路开销中链路开销取值为正整数且可以被100整除。For example, if the initial link cost set of the first type of link is (100, 200, 300, 400), then the link cost of this type of link ranges from [70, 520], the updated link cost is a positive integer, and It is divisible by 100, that is, the link cost in the candidate link cost is a positive integer and can be divisible by 100.
重复此步骤,划定10类链路的链路开销取值范围。Repeat this step to define the link cost range of 10 types of links.
计算设备基于k-means算法将M个链路根据相似度划分为10类,而每一类都设定有链路开销取值范围,确保M个链路中任意一个链路的候选链路开销在链路开销取值范围内,有利于缩小M个链路的候选链路开销的更新范围。The computing device divides the M links into 10 categories based on the similarity based on the k-means algorithm, and each category is set with a link cost value range to ensure the candidate link cost of any one of the M links. Within the range of the link cost, it is beneficial to narrow the update range of the candidate link cost of the M links.
S203、计算设备获取M个链路的N种候选链路开销对应的传输时长。S203. The computing device acquires the transmission durations corresponding to the N candidate link costs of the M links.
通常,一个链路可以配置一个链路开销。N种候选链路开销表示M个链路的N种不同配置的候选链路开销。每种候选链路开销包括M个链路中每个链路的候选链路开销。其中,N种候选链路开销中任意两种候选链路开销包含的至少一个链路的候选链路开销不同,N和M均为大于或等于2的整数。Typically, a link can be configured with a link cost. The N kinds of candidate link costs represent the candidate link costs of N different configurations of M links. Each candidate link overhead includes the candidate link overhead for each of the M links. Wherein, the candidate link costs of at least one link included in any two candidate link costs of the N kinds of candidate link costs are different, and both N and M are integers greater than or equal to 2.
示例地,假设N=3,M=3,三种候选链路开销中每种候选链路开销包含了3个链路的链路开销。第一种候选链路开销包含的3个链路的链路开销与第二种候选链路开销包含的3个链路的链路开销中有至少一个链路的链路开销不同。例如,第一种候选链路开销包含的第1个链路的链路开销与第二种候选链路开销包含的第1个链路的链路开销不同。又如,第一种候选链路开销包含的第1个链路的链路开销与第二种候选链路开销包含的第1个链路的链路开销不同;以及,第一种候选链路开销包含的第2个链路的链路开销与第二种候选链路开销包含的第2个链路的链路开销不同。又如,第二种候选链路开销包含的第2个链路的链路开销与第三种候选链路开销包含的第2个链路的链路开销不同;以及,第一种候选链路开销包含的第3个链路的链路开销与第三种候选链路开销包含的第3个链路的链路开销不同。For example, assuming that N=3 and M=3, each of the three candidate link overheads includes link overheads of three links. The link cost of the three links included in the first candidate link cost is different from the link cost of at least one link in the link cost of the three links included in the second candidate link cost. For example, the link cost of the first link included in the first type of candidate link cost is different from the link cost of the first link included in the second type of candidate link cost. For another example, the link overhead of the first link included in the overhead of the first candidate link is different from the link overhead of the first link included in the overhead of the second candidate link; and, the first candidate link The link cost of the second link included in the overhead is different from the link cost of the second link included in the second candidate link cost. For another example, the link overhead of the second link included in the second candidate link overhead is different from the link overhead of the second link included in the third candidate link overhead; and, the first candidate link The link cost of the third link included in the overhead is different from the link cost of the third link included in the third candidate link cost.
在一些实施例中,N种候选链路开销可以包括初始链路开销和更新链路开销。M个链路配置了M个初始链路开销,更新M个初始链路开销中至少一个初始链路开销,可以得到更新链路开销。In some embodiments, the N candidate link costs may include initial link costs and update link costs. The M links are configured with M initial link overheads, and at least one initial link overhead in the M initial link overheads is updated to obtain the updated link overhead.
示例地,假设M=3,第一种候选链路开销包括3个链路的初始链路开销。Exemplarily, assuming M=3, the first type of candidate link overhead includes the initial link overheads of 3 links.
若更新3个链路中部分链路的初始链路开销,得到第二种候选链路开销,第二种候选链路开销包括初始链路开销和更新链路开销。例如,更新3个链路中第1个链路的初始链路开销和第2个链路的初始链路开销,第3个链路的初始链路开销不作更新,则第二种候选链路开销包括第1个链路的更新链路开销、第2个链路的更新链路开销和第3个链路的初始链路开销。If the initial link costs of some links in the three links are updated, the second candidate link costs are obtained, and the second candidate link costs include the initial link costs and the update link costs. For example, update the initial link cost of the first link and the initial link cost of the second link among the three links, and the initial link cost of the third link is not updated, then the second candidate link The overhead includes the updated link overhead of the first link, the updated link overhead of the second link, and the initial link overhead of the third link.
若更新3个链路的初始链路开销,得到第三种候选链路开销,第三种候选链路开销包括更新链路开销。例如,更新3个链路的初始链路开销,则第三种候选链路开销包括第1个链路的更新链路开销、第2个链路的更新链路开销和第3个链路的更新链路开销。If the initial link costs of the three links are updated, the third candidate link costs are obtained, and the third candidate link costs include the update link costs. For example, if the initial link cost of three links is updated, the third candidate link cost includes the updated link cost of the first link, the updated link cost of the second link, and the updated link cost of the third link. Update link cost.
由于链路可以配置不同的链路开销,发送端设备可以采用不同链路开销进行选路传输数据报,则数据报的传输时长不同。N种候选链路开销对应的传输时长包括初始传输时长和更新传输时长。Since the link can be configured with different link costs, the sending end device can use different link costs to select a route to transmit datagrams, so that the transmission durations of the datagrams are different. The transmission duration corresponding to the N kinds of candidate link overheads includes the initial transmission duration and the updated transmission duration.
当一种候选链路开销中所有链路都配置为初始链路开销,则此种候选链路开销对应的传输时长可以是初始传输时长。若此种候选链路开销中至少一个链路的初始链路开销更新后,则此种候选链路开销对应的传输时长可以是更新传输时长。可理解的,候选链路开销对应的传输时长可以是指发送端设备向接收端设备基于候选链路开销发送数据报所用的时长。在本申请实施例中,传输时长可以是一种链路开销方案下数据报传输的全网平均传输时长。可以理解的,全网平均传输时长可以是指至少一个数据报通过M个链路传输后的传输时长的平均值。When all links in a candidate link overhead are configured as initial link overheads, the transmission duration corresponding to the candidate link overhead may be the initial transmission duration. If the initial link overhead of at least one link in the candidate link overhead is updated, the transmission duration corresponding to the candidate link overhead may be the updated transmission duration. Understandably, the transmission duration corresponding to the candidate link overhead may refer to the duration used by the transmitting end device to send the datagram to the receiving end device based on the candidate link overhead. In this embodiment of the present application, the transmission duration may be an average transmission duration of the entire network for datagram transmission under a link overhead scheme. It can be understood that the average transmission duration of the entire network may refer to the average value of transmission durations after at least one datagram is transmitted through M links.
S204、计算设备基于启发式算法,获取N种候选链路开销对应的传输时长中最短的传输时长。S204. The computing device obtains, based on a heuristic algorithm, the shortest transmission duration among the transmission durations corresponding to the N kinds of candidate link costs.
可选的,启发式算法包括粒子群算法、模拟退火算法、遗传算法、人工神经网络算法等中任一个。本申请实施例中以粒子群算法为例进行说明。Optionally, the heuristic algorithm includes any one of particle swarm algorithm, simulated annealing algorithm, genetic algorithm, artificial neural network algorithm, and the like. In the embodiments of the present application, the particle swarm algorithm is used as an example for description.
粒子群算法又称为粒子群优化(Particle Swarm Optimization,PSO)算法,是一种通过模拟鸟群觅食过程中的迁徙和群聚行为而提出的一种基于群体智能的全局随机搜索算法,它与其他进化算法一样,也是基于“种群”和“进化”概念,通过个体间的协作与竞争,实现复杂空间最优解的搜索。粒子群算法通过设计一种无质量的粒子来模拟鸟群中的鸟,粒子具有两个属性:位置和速度,位置代表粒子移动的方向,速度代表粒子移动的快慢。Particle swarm optimization (PSO) algorithm, also known as particle swarm optimization (PSO) algorithm, is a global random search algorithm based on swarm intelligence, which is proposed by simulating the migration and flocking behavior of birds in the foraging process. Like other evolutionary algorithms, it is also based on the concepts of "population" and "evolution", and realizes the search for the optimal solution in complex space through cooperation and competition among individuals. The particle swarm algorithm simulates birds in a flock by designing a massless particle. The particle has two properties: position and speed. The position represents the direction of the particle's movement, and the speed represents the speed of the particle's movement.
PSO算法初始化为一群随机粒子(随机解),然后通过迭代找到最优解。在每一次迭代中,粒子通过跟踪两个极值来更新自己;第一个极值是粒子本身所找到的最优解,这个解称为个体极值(pbesti);另一个极值是整个种群目前找到的最优解,这个极值是全局极值(gbesti)。The PSO algorithm is initialized as a group of random particles (random solutions), and then iteratively finds the optimal solution. In each iteration, the particle updates itself by tracking two extremums; the first extremum is the optimal solution found by the particle itself, which is called the individual extremum (pbest i ); the other extremum is the entire The optimal solution that the population has found so far, this extremum is the global extremum (gbest i ).
粒子群中的所有粒子根据找到的当前个体极值和整个粒子群中全局极值来调整自己的位置和速度,将位置代入目标函数便可以求出该粒子的适应度值(FitNumi),根据适应度值的大小来确定该位置的好坏。All particles in the particle swarm adjust their position and speed according to the current individual extremum found and the global extremum in the entire particle swarm, and the fitness value (FitNum i ) of the particle can be obtained by substituting the position into the objective function. The size of the fitness value determines the quality of the position.
假设在一个D维的目标搜索空间中,有N个粒子组成一个群落,其中第i个粒子表示为一个D维的向量,记为:Suppose that in a D-dimensional target search space, there are N particles forming a community, and the i-th particle is represented as a D-dimensional vector, denoted as:
xi=(x1,x2,x3,...,xN),i=1,2,3,...,N。x i =(x 1 , x 2 , x 3 ,...,x N ), i=1,2,3,...,N.
第i个粒子的速度也是一个D维的向量,记为:The velocity of the ith particle is also a D-dimensional vector, denoted as:
vi=(v1,v2,v3,...,vN),i=1,2,3,...,N。v i =(v 1 , v 2 , v 3 ,...,v N ), i=1,2,3,...,N.
第i个粒子迄今为止搜索到的最优位置称为个体极值,记为:The optimal position searched by the ith particle so far is called the individual extremum, which is recorded as:
pbesti=(p1,p2,p3,...,pN),i=1,2,3,...,N。pbest i =(p 1 ,p 2 ,p 3 ,...,p N ),i=1,2,3,...,N.
整个粒子群迄今为止搜索到的最优位置称为全局极值,记为:The optimal position searched by the entire particle swarm so far is called the global extremum, which is recorded as:
gbesti=(g1,g2,g3,...,gN),i=1,2,3,...,N。gbest i =(g 1 ,g 2 ,g 3 ,...,g N ),i=1,2,3,...,N.
在找到这个最优值时,粒子通过如下的公式(3)和公式(4)来更新自己的速度和位置。When finding this optimal value, the particle updates its velocity and position through the following formulas (3) and (4).
vi=ω(t)×vi-1+c1×rand( )×(pbesti-1-xi-1)+c2×rand( )×(gbesti-1-xi-1)公式(3)v i =ω (t) ×v i-1 +c 1 ×rand( )×(pbest i-1 -x i-1 )+c 2 ×rand( )×(gbest i-1 -x i-1 ) Formula (3)
xi=xi-1+vi 公式(4)x i =x i-1 +v i Formula (4)
其中,c1和c2为学习因子,也称为加速常数,一般情况下c1=c2=2。rand( )是介于[0,1]范围内的均匀随机数,xi是粒子的本次迭代的位置,也即粒子的当前位置,xi-1是粒子上一次迭代的位置。vi是粒子本次迭代的速度,也即粒子的当前速度,vi-1是粒子上一次迭代的速度。pbesti-1是粒子上一次迭代的个体极值,gbesti-1是粒子群上一次迭代的全局极值。Among them, c 1 and c 2 are learning factors, which are also called acceleration constants. In general, c 1 =c 2 =2. rand( ) is a uniform random number in the range of [0,1], xi is the position of the particle in this iteration, that is, the current position of the particle, and xi-1 is the position of the previous iteration of the particle. v i is the velocity of the particle in this iteration, that is, the current velocity of the particle, and v i-1 is the velocity of the particle in the previous iteration. pbest i-1 is the individual extreme value of the particle in the last iteration, and gbest i-1 is the global extreme value of the particle swarm in the previous iteration.
ω(t)为惯性因子,对于粒子群算法的收敛性有较大的影响。ω(t)可以取[0,1]区间的随机数,也可以为定值。ω (t) is the inertia factor, which has a great influence on the convergence of particle swarm optimization. ω (t) can be a random number in the [0,1] interval, or it can be a fixed value.
粒子群算法的流程如下:The process of particle swarm optimization is as follows:
1)、初始化粒子群,包括群体规模N、每个粒子的位置xi和速度vi;1), initialize the particle swarm, including the swarm size N, the position x i and velocity v i of each particle;
2)、计算每个粒子的适应度值FitNumi;2), calculate the fitness value FitNum i of each particle;
3)、对于每个粒子,用每个粒子的适应度值FitNumi和每个粒子的个体极值pbesti比较,如果FitNumi小于pbesti,用FitNumi替换掉pbesti,否则pbesti不更新,对每个粒子做此操作,更新每个粒子的pbesti。3) For each particle, compare the fitness value FitNum i of each particle with the individual extreme value pbest i of each particle, if FitNum i is less than pbest i , replace pbest i with FitNum i , otherwise pbest i is not updated , do this for each particle, updating each particle's pbest i .
4)、对于每个粒子,用此粒子适应度值FitNumi和此粒子的全局极值gbesti比较,如果FitNumi小于gbesti,用FitNumi替换掉gbesti,否则gbesti不更新。对每个粒子做此操作,更新全局gbesti。4) For each particle, compare the particle fitness value FitNum i with the global extreme value gbest i of this particle. If FitNum i is less than gbest i , replace gbest i with FitNum i , otherwise gbest i is not updated. Do this for each particle, updating the global gbest i .
5)、根据公式(3)(4)更新粒子的位置xi和速度vi;5), according to formula (3) (4) update the position x i and velocity v i of particle;
6)、如果满足结束条件(适应度值足够小或达到最大循环次数)退出,否则返回2)。6), if the end condition is met (the fitness value is small enough or the maximum number of cycles is reached), exit, otherwise return to 2).
迭代终止条件根据具体问题一般选为达到最大迭代次数和粒子群迄今为止搜索到的最优位置满足预设最小适应阈值。参见图3,为粒子群算法应用至本申请实施例中的流程示意图。The iteration termination condition is generally selected according to the specific problem as reaching the maximum number of iterations and the optimal position searched by the particle swarm so far satisfies the preset minimum adaptation threshold. Referring to FIG. 3 , it is a schematic flowchart of applying the particle swarm algorithm to the embodiment of the present application.
具体地,初始化粒子群,包括粒子数量、维数、每维取值范围及每个粒子的位置和速度。Specifically, the particle swarm is initialized, including the number of particles, the number of dimensions, the value range of each dimension, and the position and speed of each particle.
在本申请实施例中,每个粒子代表一种优化链路开销设计方案,包含M个链路,也即一种链路组。粒子群则代表若干种链路组的集合,也即链路组集合。In this embodiment of the present application, each particle represents an optimized link overhead design solution, including M links, that is, a link group. The particle swarm represents a set of several link groups, that is, a link group set.
粒子的数量可以用N代表,N可以设置为40,代表40种不同的链路开销设计方案,也即40种链路组。迭代次数可以用t代表,t可以设置为500。维数与链路个数的是一一对应的,链路个数和维数是相等的。每个链路对应的链路开销取值范围即为每维取值范围。The number of particles can be represented by N, and N can be set to 40, representing 40 different link cost design schemes, that is, 40 link groups. The number of iterations can be represented by t, and t can be set to 500. There is a one-to-one correspondence between the dimension and the number of links, and the number of links and the dimension are equal. The value range of the link cost corresponding to each link is the value range of each dimension.
示例地,M个链路中第一个链路可以是第一维,第二个链路可以是第二维。经过k-means算法的分类,M个链路中第一个链路被分到第一类中,第二个链路被分到第三类中,则第一维的取值范围采用第一类的链路开销取值范围,第二维的取值范围采用第三类的链路开销取值范围。For example, the first link of the M links may be the first dimension, and the second link may be the second dimension. After the classification of the k-means algorithm, the first link of the M links is classified into the first category, and the second link is classified into the third category, then the value range of the first dimension adopts the first The value range of the link cost of the class, and the value range of the second dimension adopts the value range of the link cost of the third class.
在本申请实施例中,粒子的位置代表链路组集合第g次迭代时链路组的链路开销设计方案,粒子的速度代表链路组更新过程中至少一个链路的链路开销的变化量。设置速度系数c1=c2=0.5,速度系数主要用来控制粒子的更新速度。在本申请实施例中,惯性因子ω满足下述公式(5)。In the embodiment of the present application, the position of the particle represents the link cost design scheme of the link group at the gth iteration of the link group set, and the speed of the particle represents the change of the link cost of at least one link in the link group update process quantity. Set the speed coefficient c 1 =c 2 =0.5, the speed coefficient is mainly used to control the update speed of the particles. In the embodiment of the present application, the inertia factor ω satisfies the following formula (5).
ω(t)=(ωini-ωend)(Gk-g)/Gk+ωend 公式(5)ω (t) = (ω ini -ω end )(G k -g)/G k +ω end Formula (5)
Gk为最大迭代次数,设置为500,g为当前迭代次数,ωini为初始的惯性权值,设置为0.9。ωend为迭代至最大进化代数时的惯性权值,设置为0.4。G k is the maximum number of iterations, which is set to 500, g is the current number of iterations, and ω ini is the initial inertia weight, which is set to 0.9. ω end is the inertia weight when iterating to the maximum evolution algebra, which is set to 0.4.
在一些实施例中,计算设备可以计算每种链路组的全网平均传输时长,以计算出的全网平均传输时长作为该链路组的适应度值。In some embodiments, the computing device may calculate the network-wide average transmission duration of each link group, and use the calculated network-wide average transmission duration as the fitness value of the link group.
在另一些实施例中,可以通过其他设备来计算出每种链路组方案下的全网平均传输时长,再由其他设备将计算结果传输给计算设备。In other embodiments, the average transmission duration of the entire network under each link group scheme may be calculated by other devices, and then the calculation results may be transmitted by other devices to the computing device.
可以理解的,初始化后链路组集合还未经过更新,当前每种链路组的全网平均传输时长即为每种链路组的链路组极值。比较链路组集合中多个链路组的全网平均传输时长,确定多个链路组的全网平均传输时长中最短全网平均传输时长,将最短全网平均传输时长作为链路组集合极值。应理解,链路组集合极值为全局极值,链路组极值为个体极值。It can be understood that the link group set has not been updated after initialization, and the current average transmission duration of each link group in the entire network is the link group extremum of each link group. Compare the network-wide average transmission durations of multiple link groups in the link group set, determine the shortest network-wide average transmission duration among the network-wide average transmission durations of multiple link groups, and use the shortest network-wide average transmission duration as the link group set extremum. It should be understood that the extremum of the link group set is the global extremum, and the extremum of the link group is the individual extremum.
进一步地,对每一种链路组进行更新,链路组中的每一个链路的链路开销在每一维所对应的取值范围内进行更新。Further, each link group is updated, and the link cost of each link in the link group is updated within the value range corresponding to each dimension.
可选的,若计算设备或其他设备的算力足够,40种链路组可以同时进行更新,计算设备或其他设备可以实时对40种链路组进行计算,获得每种链路组更新后的全网平均传输时长。Optionally, if the computing power of the computing device or other devices is sufficient, the 40 link groups can be updated at the same time. The average transmission time of the entire network.
可选的,若计算设备或其他设备的算力不足,40种链路组可以依次进行更新,计算设备或其他设备依次对更新完成的链路组进行计算,依次获得每种链路组更新后的全网平均传输时长。Optionally, if the computing power of the computing device or other devices is insufficient, the 40 types of link groups can be updated in sequence. The average transmission time of the entire network.
当所有链路组更新后的全网平均传输时长计算完成后,将每种链路组更新后的全网平均传输时长与每种链路组的链路组极值进行比对,若更新后的全网平均传输时长小于链路组极值,则将更新后的全网平均传输时长作为该链路组极值。若更新后全网平均传输时长大于或等于链路组极值,则该链路组极值未改变。When the calculation of the network-wide average transmission duration after updating all link groups is completed, compare the updated network-wide average transmission duration of each link group with the link group extreme value of each link group. If the average transmission duration of the entire network is less than the extreme value of the link group, the updated average transmission duration of the entire network will be taken as the extreme value of the link group. If the average transmission duration of the entire network after the update is greater than or equal to the extreme value of the link group, the extreme value of the link group has not changed.
进一步地,将每种链路组更新后全网平均传输时长与链路组集合极值进行比对,若有任何一种链路组更新后的全网平均时长小于链路组集合极值,则将该链路组更新后的全网平均传输时长作为链路组集合极值。若任意一种链路组更新后的全网平均传输时长仍大于或等于链路组集合极值,则链路组集合极值未改变。链路组集合极值指链路组集合迭代过程中第g次迭代时链路组集合中最短全网平均传输时长。Further, the average transmission duration of the entire network after each link group update is compared with the link group set extremum. Then the average transmission duration of the entire network after the update of the link group is taken as the extreme value of the link group set. If the average transmission duration of the entire network after any link group is updated is still greater than or equal to the extremum of the link group set, the extremum of the link group set has not changed. The extreme value of the link group set refers to the shortest average transmission time of the entire network in the link group set at the gth iteration in the link group set iteration process.
示例地,若链路组集合包括第一链路组,计算设备计算第一种链路组的初始传输时长为第一传输时长,第一链路组的初始链路开销为第一候选链路开销。第一候选链路开销更新后的更新链路开销为第二候选链路开销,第一传输时长更新后的更新传输时长为第二传输时长。若第一传输时长小于第二传输时长,则代表第一候选链路开销优于第二候选链路开销。将第一传输时长作为第一链路组的传输时长以及链路组集合传输时长,也即第一传输时长为第一链路组极值和链路组集合极值。For example, if the link group set includes the first link group, the computing device calculates the initial transmission duration of the first link group as the first transmission duration, and the initial link cost of the first link group is the first candidate link. overhead. The updated link overhead after the updated first candidate link overhead is the second candidate link overhead, and the updated transmission duration after the updated first transmission duration is the second transmission duration. If the first transmission duration is shorter than the second transmission duration, it means that the overhead of the first candidate link is better than the overhead of the second candidate link. The first transmission duration is taken as the transmission duration of the first link group and the link group set transmission duration, that is, the first transmission duration is the first link group extremum and the link group set extremum.
若链路组集合包括第一链路组和第二链路组,计算设备计算第二链路组的初始传输时长为第三传输时长,第二链路组的初始链路开销为第三候选链路开销。第三候选链路开销更新后的更新链路开销为第四候选链路开销,第三传输时长更新后的更新传输时长为第四传输时长。若第三传输时长小于第四传输时长,则代表第三候选链路开销优于第四候选链路开销。则把第三传输时长作为第二链路组的传输时长,也即第三传输时长为第二链路组极值。If the link group set includes the first link group and the second link group, the computing device calculates the initial transmission duration of the second link group as the third transmission duration, and the initial link cost of the second link group as the third candidate link cost. The updated link overhead after the third candidate link overhead is updated is the fourth candidate link overhead, and the updated transmission duration after the third transmission duration is updated is the fourth transmission duration. If the third transmission duration is less than the fourth transmission duration, it means that the overhead of the third candidate link is better than the overhead of the fourth candidate link. Then, the third transmission duration is taken as the transmission duration of the second link group, that is, the third transmission duration is the extreme value of the second link group.
比较第一传输时长与第三传输时长,若第三传输时长小于第一传输时长,则代表第三候选链路开销优于第一候选链路开销,第三候选链路开销对应的第三传输时长为链路组集合的最短传输时长,也即链路组集合极值。Compare the first transmission duration with the third transmission duration, if the third transmission duration is less than the first transmission duration, it means that the third candidate link overhead is better than the first candidate link overhead, and the third candidate link overhead corresponds to the third transmission The duration is the shortest transmission duration of the link group set, that is, the extreme value of the link group set.
S205、计算设备将最短传输时长对应的候选链路开销作为M个链路的链路开销。S205. The computing device uses the candidate link overhead corresponding to the shortest transmission duration as the link overhead of the M links.
可以理解的,链路组集合极值对应的候选链路开销的传输时长为最短传输时长。在本申请实施例中,粒子群算法终止条件可以为40种链路组更新次数达到最大迭代次数500次后,以第500次迭代时链路组集合中最短传输时长对应的链路组的候选链路开销作为M个链路的链路开销。It can be understood that the transmission duration of the candidate link overhead corresponding to the extreme value of the link group set is the shortest transmission duration. In the embodiment of the present application, the termination condition of the particle swarm optimization algorithm may be that after the update times of 40 link groups reaches the maximum number of iterations of 500, the candidate of the link group corresponding to the shortest transmission duration in the link group set at the 500th iteration The link overhead is taken as the link overhead of M links.
可选的,在本申请实施例中,粒子群算法终止条件还可以为,40种链路组更新过程中,某一次更新中确定的链路组集合极值,在继续更新10次后,该链路组集合极值未改变。则以该链路组集合极值对应的链路组的候选链路开销作为M个链路的链路开销。Optionally, in this embodiment of the present application, the termination condition of the particle swarm algorithm may also be that, in the 40 kinds of link group update processes, the extreme value of the link group set determined in a certain update, after continuing to update 10 times, the The link group set extremum is unchanged. Then, the candidate link cost of the link group corresponding to the extreme value of the link group set is used as the link cost of the M links.
在本申请实施例中,计算设备通过聚类算法对M个链路的链路信息进行分类,根据分类结果设置链路开销取值范围,保证了M个链路的链路开销都有对应的取值范围并在取值范围内更新,加快粒子群算法的收敛速度。通过粒子群算法,确定出多种链路开销设计方案,并计算出每一种方案下的全网平均传输时长,通过不断更新每种设计方案中链路的链路开销,直至找到全网平均传输时长最短的链路开销设计方案。相对于现有技术中运维人员根据相关经验手工设计链路开销,实现了智能化的获取全网平均传输时长最短的链路开销设计方案,提高了链路开销设计方案的准确性,减少了运维人员因判断失误导致设计的链路开销方案不是全网平均传输时长最短的方案所造成的资源浪费,能够降低整体业务传输时长,有效的提高整网业务的速度。In the embodiment of the present application, the computing device classifies the link information of the M links through a clustering algorithm, and sets the link cost value range according to the classification result, ensuring that the link costs of the M links have corresponding link costs Value range and update within the value range to speed up the convergence speed of particle swarm optimization. Through the particle swarm algorithm, a variety of link overhead design schemes are determined, and the average transmission time of the entire network under each scheme is calculated, and the link overhead of the links in each design scheme is continuously updated until the overall network average The link overhead design scheme with the shortest transmission duration. Compared with the prior art, the operation and maintenance personnel manually design the link overhead according to the relevant experience, which realizes the intelligent acquisition of the link overhead design scheme with the shortest average transmission time of the whole network, improves the accuracy of the link overhead design scheme, and reduces the cost of the link overhead design scheme. The link overhead scheme designed by the operation and maintenance personnel due to misjudgment is not a waste of resources caused by the scheme with the shortest average transmission time of the whole network. It can reduce the overall service transmission time and effectively improve the speed of the whole network service.
上述主要从方法的角度对本申请实施例提供的方案进行了介绍。为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The solutions provided by the embodiments of the present application are described above mainly from the perspective of methods. In order to realize the above-mentioned functions, it includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or a combination of hardware and computer software with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
如图4所示,本申请实施例提供一种计算设备400。该计算设备可以包括至少一个处理器401、通信线路402、存储器403和通信接口404。As shown in FIG. 4 , an embodiment of the present application provides a computing device 400 . The computing device may include at least one
具体的,处理器401,用于执行存储器403中存储的计算机执行指令,从而实现计算设备的步骤或动作。在本申请实施例中,处理器401可以用于确定多种链路开销设计方案并计算每种链路开销方案下的传输时长。Specifically, the
处理器401可以是一个芯片。例如,可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integr atedcircuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(centralprocessor unit,CPU),还可以是网络处理器(network proce ssor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controllerunit,MCU),还可以是可编程控制器(progra mmable logic device,PLD)或其他集成芯片。The
通信线路402,用于在上述处理器401与存储器403之间传输信息。在本申请实施例中,通信线路402可以用于将处理器401确定的多种链路开销设计方案及多种链路开销设计方案对应的传输时长传输至存储器403。The
存储器403,用于存储执行计算机执行指令,并由处理器401来控制执行。在本申请实施例中,存储器403可以用于存储多种链路开销设计方案及对应的传输时长。The
存储器403可以是独立存在,通过通信线路402与处理器相连接。存储器403可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmableROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPRO M,EEPROM)或闪存。易失性存储器可以是随机存取存储器(randomaccess memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamicRAM,DRAM)、同步动态随机存取存储器(synchron ous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SD RAM,ESDRAM)。应注意,本文描述的系统和设备的存储器旨在包括但不限于这些和任意其它适合类型的存储器。The
通信接口404,用于与其他设备或通信网络通信。其中,通信网络可以是以太网,无线接入网(radio access network,RAN),或无线局域网(wireless loc al areanetworks,WLAN)等。在本申请实施例中,通信接口404可以用于计算设备400与其他设备进行通信。A
需要指出的是,图4中示出的结构并不构成对该计算设备的限定,除图4所示部件之外,该计算设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be pointed out that the structure shown in FIG. 4 does not constitute a limitation on the computing device. In addition to the components shown in FIG. 4 , the computing device may include more or less components than those shown in the figure, or a combination of certain components may be included. some components, or a different arrangement of components.
如图5所示,本申请实施例提供一种路由优化装置50。该装置可以包括通信单元51和处理单元52。As shown in FIG. 5 , an embodiment of the present application provides a route optimization apparatus 50 . The apparatus may include a
通信单元51,用于获取M个链路的N种候选链路开销对应的传输时长,N种候选链路开销中任意两种候选链路开销包含的至少一个链路的候选链路开销不同,N和M均为大于或等于2的整数。The
处理单元52,用于基于启发式算法,获取N种候选链路开销对应的传输时长中最短传输时长。还用于将最短传输时长对应的候选链路开销作为M个链路的链路开销。The
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.
在实际实现时,通信单元51、处理单元52可以由图4所示的处理器401调用存储器403中的程序代码来实现,这里不再赘述。In actual implementation, the
本申请另一实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当计算机指令在计算机上运行时,使得计算机执行上述方法实施例所示的方法流程中的各个步骤。Another embodiment of the present application further provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on the computer, the computer is made to execute the method processes shown in the above method embodiments. of the various steps.
在本申请另一实施例中,还提供一种计算机程序产品,该计算机程序产品包括指令,当指令在计算机上运行时,使得计算机执行上述方法实施例所示的方法流程中的各个步骤。In another embodiment of the present application, a computer program product is also provided, the computer program product includes instructions, when the instructions are run on a computer, the computer is made to execute each step in the method flow shown in the above method embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、设备和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. . Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110831817.3A CN113507413B (en) | 2021-07-22 | 2021-07-22 | Route optimization method and device and computing equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110831817.3A CN113507413B (en) | 2021-07-22 | 2021-07-22 | Route optimization method and device and computing equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113507413A CN113507413A (en) | 2021-10-15 |
CN113507413B true CN113507413B (en) | 2022-07-29 |
Family
ID=78013528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110831817.3A Active CN113507413B (en) | 2021-07-22 | 2021-07-22 | Route optimization method and device and computing equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113507413B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116156592B (en) * | 2022-12-27 | 2023-08-22 | 深圳市宇通联发科技有限公司 | Low-delay wireless transmission method, device, communication management equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007103837A1 (en) * | 2006-03-09 | 2007-09-13 | Firetide, Inc. | Effective bandwidth path metric and path computation method for wireless mesh networks with wired links |
CN102036130A (en) * | 2009-09-24 | 2011-04-27 | 中国电信股份有限公司 | Quantification method for searching optimal path for circuit in ASON (automatic switched optical network) network |
CN105763467A (en) * | 2016-03-25 | 2016-07-13 | 杭州华三通信技术有限公司 | Flow switching method and device |
CN108200623A (en) * | 2017-12-29 | 2018-06-22 | 华南理工大学 | A kind of centralized path computation and power-economizing method based on genetic algorithm |
CN111884927A (en) * | 2020-07-16 | 2020-11-03 | 中盈优创资讯科技有限公司 | Link overhead obtaining method and device based on ospf link database |
CN112242950A (en) * | 2019-07-18 | 2021-01-19 | 华为技术有限公司 | Method for determining path and related equipment |
CN112923940A (en) * | 2021-01-11 | 2021-06-08 | 珠海格力电器股份有限公司 | Path planning method, device, processing equipment, mobile equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9967166B2 (en) * | 2015-06-30 | 2018-05-08 | Cisco Technology, Inc. | Soft constrained shortest-path first tunneling |
US11438243B2 (en) * | 2019-04-12 | 2022-09-06 | EMC IP Holding Company LLC | Adaptive adjustment of links per channel based on network metrics |
-
2021
- 2021-07-22 CN CN202110831817.3A patent/CN113507413B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007103837A1 (en) * | 2006-03-09 | 2007-09-13 | Firetide, Inc. | Effective bandwidth path metric and path computation method for wireless mesh networks with wired links |
CN102036130A (en) * | 2009-09-24 | 2011-04-27 | 中国电信股份有限公司 | Quantification method for searching optimal path for circuit in ASON (automatic switched optical network) network |
CN105763467A (en) * | 2016-03-25 | 2016-07-13 | 杭州华三通信技术有限公司 | Flow switching method and device |
CN108200623A (en) * | 2017-12-29 | 2018-06-22 | 华南理工大学 | A kind of centralized path computation and power-economizing method based on genetic algorithm |
CN112242950A (en) * | 2019-07-18 | 2021-01-19 | 华为技术有限公司 | Method for determining path and related equipment |
CN111884927A (en) * | 2020-07-16 | 2020-11-03 | 中盈优创资讯科技有限公司 | Link overhead obtaining method and device based on ospf link database |
CN112923940A (en) * | 2021-01-11 | 2021-06-08 | 珠海格力电器股份有限公司 | Path planning method, device, processing equipment, mobile equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
Harkirat Kaur.Analysis of Metrics:Improved Hybrid ACO-PSO Based Routing Algorithm for Mobile Ad-hoc Network .《PDGC》.2017, * |
移动IP中基于遗传算法的优化路由算法;杨建军;《浙江大学学报(工学版)》;20041130;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113507413A (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112181971B (en) | Edge-based federated learning model cleaning and equipment clustering method and system | |
CN109682380B (en) | Communication unmanned aerial vehicle path optimization method and device | |
CN108566659A (en) | A kind of online mapping method of 5G networks slice based on reliability | |
CN110365568A (en) | A Virtual Network Mapping Method Based on Deep Reinforcement Learning | |
CN114040272B (en) | Path determination method, device and storage medium | |
CN111953547B (en) | Heterogeneous base station overlapping grouping and resource allocation method and device based on service | |
Al-Janabi et al. | Efficient whale optimisation algorithm-based SDN clustering for IoT focused on node density | |
CN107196806B (en) | Subgraph Radiation-Based Topological Proximity Matching Virtual Network Mapping Method | |
CN113328953B (en) | Method, device and storage medium for network congestion adjustment | |
CN108684046A (en) | A Random Learning-Based Deployment Method for Access Network Service Function Chains | |
WO2024188157A1 (en) | Transmission optimization method and system in wifi mesh network, and storage medium | |
CN112770256B (en) | A Node Trajectory Prediction Method in UAV Self-Organizing Network | |
CN117875454B (en) | Multistage intelligent linkage-based data heterogeneous federation learning method and storage medium | |
CN117639244A (en) | Centralized control system of multi-domain heterogeneous power distribution communication network | |
CN113507413B (en) | Route optimization method and device and computing equipment | |
CN113472420A (en) | Satellite network cache placement method based on regional user interest perception | |
CN116800766A (en) | A blockchain-based multi-level divide-and-conquer network topology construction method | |
WO2021047665A1 (en) | Method and device for predicting connection state between terminals, and analysis device | |
CN113676357B (en) | Decision-making method for edge data processing in power Internet of things and its application | |
CN115359298A (en) | A Federated Meta-Learning Image Classification Method Based on Sparse Neural Networks | |
CN117808127B (en) | Image processing method, federated learning method and device under data heterogeneity conditions | |
CN114866545A (en) | A semi-asynchronous hierarchical federated learning method and system based on over-the-air computing | |
CN113965937A (en) | A content popularity prediction method based on cluster federated learning in fog radio access network | |
CN109194504A (en) | Timing link prediction technique and computer readable storage medium towards dynamic network | |
CN107579866B (en) | A kind of business and Virtual Service intelligent Matching method of wireless dummyization access autonomous management network |
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 |