[go: up one dir, main page]

CN115834466B - Method, device, equipment, system and storage medium for analyzing path of computing power network - Google Patents

Method, device, equipment, system and storage medium for analyzing path of computing power network Download PDF

Info

Publication number
CN115834466B
CN115834466B CN202211526944.3A CN202211526944A CN115834466B CN 115834466 B CN115834466 B CN 115834466B CN 202211526944 A CN202211526944 A CN 202211526944A CN 115834466 B CN115834466 B CN 115834466B
Authority
CN
China
Prior art keywords
node
target routing
link
server node
routing node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211526944.3A
Other languages
Chinese (zh)
Other versions
CN115834466A (en
Inventor
张力方
胡泽妍
王玉婷
刘桂志
李一喆
李宏平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202211526944.3A priority Critical patent/CN115834466B/en
Publication of CN115834466A publication Critical patent/CN115834466A/en
Application granted granted Critical
Publication of CN115834466B publication Critical patent/CN115834466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请提供一种算力网络路径分析方法、装置、设备、系统及存储介质,该方法包括:针对当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率,均执行下述步骤:根据当前时刻服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻服务器节点与相应的目标路由节点之间链路对应资源负载场景类型,并根据当前时刻各个服务器与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重。本申请提供的方法能够解决超低时延需求问题的同时,保证算力资源得到充分的利用。

The present application provides a computing power network path analysis method, device, equipment, system and storage medium, the method comprising: for the resource occupancy rate of the link between each server node and each target routing node at the current moment, the following steps are performed: according to the resource occupancy rate and threshold value of the link between the server node and the corresponding target routing node at the current moment, the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is determined, and according to the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate, weight and threshold value of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the current moment is determined. The method provided by the present application can solve the problem of ultra-low latency requirements while ensuring that computing power resources are fully utilized.

Description

算力网络路径分析方法、装置、设备、系统及存储介质Computing power network path analysis method, device, equipment, system and storage medium

技术领域Technical Field

本申请实施例涉及数据处理技术领域,尤其涉及一种算力网络路径分析方法、装置、设备、系统及存储介质。The embodiments of the present application relate to the field of data processing technology, and in particular to a computing power network path analysis method, device, equipment, system and storage medium.

背景技术Background technique

随着人工智能与移动互联网技术的不断发展,多种新型业务应用大量涌现,往往这些新型业务应用通常需要消耗巨大的计算资源、存储资源以及能耗,目前智能终端设备的计算能力尚且比较有限,电池容量也比较低,无法满足这些新型业务应用的处理需求。因此,提出了云计算,云计算利用虚拟化技术建立超大容量的算力资源池,使得各种应用可以获得所需的计算资源、存储资源以及软件和平台服务。云计算的出现虽然满足了计算密集型的业务处理需求,但是,某些应用同时具有时延敏感的特性,终端到云端的传输时延在很多情况下无法满足这一类应用对于超低时延的需求,为此可以利用边缘计算技术。With the continuous development of artificial intelligence and mobile Internet technologies, a large number of new business applications have emerged. These new business applications usually consume huge computing resources, storage resources and energy. The computing power of current smart terminal devices is still relatively limited, and the battery capacity is also relatively low, which cannot meet the processing requirements of these new business applications. Therefore, cloud computing is proposed. Cloud computing uses virtualization technology to establish a large-capacity computing resource pool so that various applications can obtain the required computing resources, storage resources, and software and platform services. Although the emergence of cloud computing meets the needs of computing-intensive business processing, some applications are also sensitive to latency. In many cases, the transmission latency from the terminal to the cloud cannot meet the ultra-low latency requirements of this type of application. For this reason, edge computing technology can be used.

然而,边缘计算设备和智能终端设备的大量部署,虽然解决了网络中海量数据上传至云计算中心导致的时延过长的问题,但也使得算力资源呈现泛在部署的趋势。一方面,边缘计算节点没有进行有效的协同处理任务,单一节点的算力资源无法满足如图像渲染等超大型的计算密集型任务的算力资源需求,仍然无法解决同时具有计算密集和时延敏感特性的新型业务的超低时延需求问题;另一方面,虽然一些边缘计算节点出现超负载无法有效处理计算任务的情况,但是由于网络负载的不均衡,势必会有一些计算节点仍然处于空闲的状态,导致边缘网络的算力资源无法得到充分的利用。However, the large-scale deployment of edge computing devices and smart terminal devices, although solving the problem of long latency caused by uploading massive data in the network to the cloud computing center, also makes computing resources show a trend of ubiquitous deployment. On the one hand, the edge computing nodes do not perform effective collaborative processing tasks, and the computing resources of a single node cannot meet the computing resource requirements of ultra-large computing-intensive tasks such as image rendering, and still cannot solve the ultra-low latency requirements of new businesses that are both computing-intensive and latency-sensitive. On the other hand, although some edge computing nodes are overloaded and cannot effectively process computing tasks, due to the imbalance of network load, some computing nodes are bound to remain idle, resulting in the inability to fully utilize the computing resources of the edge network.

因此,现有技术无法有效地分析算力网络的路径,进而无法解决超低时延需求问题的同时,保证算力资源得到充分的利用。Therefore, existing technologies cannot effectively analyze the paths of computing power networks, and thus cannot solve the problem of ultra-low latency requirements while ensuring that computing power resources are fully utilized.

发明内容Summary of the invention

本申请提供一种算力网络路径分析方法、装置、设备、系统及存储介质,能够解决超低时延需求问题的同时,保证算力资源得到充分的利用。The present application provides a computing power network path analysis method, device, equipment, system and storage medium, which can solve the problem of ultra-low latency demand while ensuring that computing power resources are fully utilized.

第一方面,本申请提供一种算力网络路径分析方法,应用于算力网络系统,包括:In a first aspect, the present application provides a computing power network path analysis method, which is applied to a computing power network system, including:

获取当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,所述目标路由节点为所述多个路由节点中与各个服务器节点直连的路由节点;其中,一个服务器节点对应一个目标路由节点;Obtaining resource occupancy rates of links between each server node and each target routing node at the current moment, resource occupancy rates of links between each server node and each target routing node at the previous moment, and weights of links between each server node and each target routing node at the previous moment, wherein the target routing node is a routing node directly connected to each server node among the multiple routing nodes; wherein one server node corresponds to one target routing node;

针对当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率,均执行下述步骤:根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应资源负载场景类型;For the resource occupancy rate of the link between each server node and each target routing node at the current moment, the following steps are performed: according to the resource occupancy rate and threshold value of the link between the server node and the corresponding target routing node at the current moment, the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is determined;

根据所述资源负载场景类型、当前时刻各个服务器与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重;Determine the weight of the link between each server node and each target routing node at the current moment according to the resource load scenario type, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value;

其中,所述当前时刻各个服务器节点与各个目标路由节点之间链路的权重用于确定算力网络最短路径。Among them, the weight of the link between each server node and each target routing node at the current moment is used to determine the shortest path in the computing power network.

在一种可能的设计中,所述门限值包括第一门限值和第二门限值,所述第一门限值小于所述第二门限值;所述根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型,包括:In a possible design, the threshold value includes a first threshold value and a second threshold value, and the first threshold value is less than the second threshold value; determining the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment according to the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment and the threshold value, includes:

若所述服务器与相应的目标路由之间链路的资源占用率小于第一门限值,则确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源轻载;If the resource occupancy rate of the link between the server and the corresponding target routing node is less than the first threshold value, determining that the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is resource light load;

若所述服务器节点与相应的目标路由之间链路的资源占用率大于或等于第一门限值且小于第二门限值,则确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源中载;If the resource occupancy rate of the link between the server node and the corresponding target routing node is greater than or equal to the first threshold value and less than the second threshold value, it is determined that the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is resource medium load;

若所述服务器节点与相应的目标路由之间链路的资源占用率大于或等于第二门限值且小于1,则确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源重载。If the resource occupancy rate of the link between the server node and the corresponding target routing node is greater than or equal to the second threshold value and less than 1, it is determined that the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is resource overload.

在一种可能的设计中,所述根据所述资源负载场景类型、当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重,包括:In a possible design, the weight of the link between each server node and each target routing node at the current moment is determined according to the resource load scenario type, the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value, including:

针对各个所述服务器,根据所述资源负载场景类型、当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率、上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定权重计算模型;For each of the servers, determine a weight calculation model according to the resource load scenario type, the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and a threshold value;

根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率、上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,通过所述权重计算模型,得到当前时刻各个服务器节点与各个目标路由节点之间链路的权重。According to the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and the weight of the link between each server node and each target routing node at the previous moment, the weight calculation model is used to obtain the weight of the link between each server node and each target routing node at the current moment.

在一种可能的设计中,所述根据所述资源负载场景类型、当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率、上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定权重计算模型,包括:In a possible design, determining a weight calculation model according to the resource load scenario type, the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and a threshold value includes:

根据所述资源负载场景类型,通过比对当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率和上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率,以及比对上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率与门限值,确定权重计算模型以及权重计算模型中用于计算当前时刻所述服务器节点与相应的目标路由节点之间链路的权重系数的倍数。According to the resource load scenario type, by comparing the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment with the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and comparing the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment with a threshold value, a weight calculation model and a multiple of the weight coefficient used in the weight calculation model to calculate the link between the server node and the corresponding target routing node at the current moment are determined.

在一种可能的设计中,所述方法还包括:In one possible design, the method further includes:

将所述当前时刻所述服务器节点与相应的目标路由节点之间链路的权重更新至所述算力网络系统的网络拓扑结构中。The weight of the link between the server node and the corresponding target routing node at the current moment is updated to the network topology structure of the computing power network system.

在一种可能的设计中,所述方法还包括:In one possible design, the method further includes:

获取所述多个路由节点中处于同一链路上的两个路由节点之间链路的权重;Obtaining a weight of a link between two routing nodes on the same link among the multiple routing nodes;

根据各个所述同一链路上的两个路由节点之间链路的权重以及各个所述服务器节点与相应的目标路由器之间链路的权重,确定算力网络最短路径。The shortest path of the computing power network is determined according to the weight of the link between the two routing nodes on the same link and the weight of the link between each server node and the corresponding target router.

第二方面,本申请提供一种算力网络路径分析装置,应用于算力网络系统,所述算力网络系统包括多个服务器节点和多个路由节点,所述装置包括:In a second aspect, the present application provides a computing power network path analysis device, which is applied to a computing power network system, wherein the computing power network system includes multiple server nodes and multiple routing nodes, and the device includes:

获取模块,用于获取当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,所述目标路由节点为所述多个路由节点中与各个服务器节点直连的路由节点;其中,一个服务器节点对应一个目标路由节点;An acquisition module, used to acquire resource occupancy rates of links between each server node and each target routing node at the current moment, resource occupancy rates of links between each server node and each target routing node at the previous moment, and weights of links between each server node and each target routing node at the previous moment, wherein the target routing node is a routing node directly connected to each server node among the multiple routing nodes; wherein one server node corresponds to one target routing node;

确定模块,用于针对当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率,均执行下述步骤:根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应资源负载场景类型;The determination module is used to perform the following steps for the resource occupancy rate of the link between each server node and each target routing node at the current moment: determine the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment according to the resource occupancy rate and threshold value of the link between the server node and the corresponding target routing node at the current moment;

路径分析模块,用于根据所述资源负载场景类型、当前时刻各个服务器与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重;A path analysis module, used to determine the weight of the link between each server node and each target routing node at the current moment according to the resource load scenario type, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value;

其中,所述当前时刻各个服务器节点与各个目标路由节点之间链路的权重用于确定算力网络最短路径。Among them, the weight of the link between each server node and each target routing node at the current moment is used to determine the shortest path in the computing power network.

第三方面,本申请提供一种电子设备,包括:至少一个处理器和存储器;In a third aspect, the present application provides an electronic device, comprising: at least one processor and a memory;

所述存储器存储计算机执行指令;The memory stores computer-executable instructions;

所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面及第一方面可能的设计所述的算力网络路径分析方法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the computing power network path analysis method described in the first aspect and the possible design of the first aspect.

第四方面,本申请提供一种算力网络系统,包括:如第三方面所述的电子设备、多个服务器节点和多个路由节点。In a fourth aspect, the present application provides a computing power network system, comprising: the electronic device as described in the third aspect, multiple server nodes and multiple routing nodes.

第五方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面及第一方面可能的设计所述的算力网络路径分析方法。In a fifth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the computing power network path analysis method described in the first aspect and the possible design of the first aspect is implemented.

本实施例提供的算力网络路径分析方法、装置、设备、系统及存储介质,应用于算力网络系统,所述算力网络系统包括多个服务器节点和多个路由节点;首先获取当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,所述目标路由节点为所述多个路由节点中与各个服务器节点直连的路由节点;其中,一个服务器节点对应一个目标路由节点;然后针对当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率,均执行下述步骤:根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应资源负载场景类型;根据所述资源负载场景类型、当前时刻各个服务器与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重;其中,所述当前时刻各个服务器节点与各个目标路由节点之间链路的权重用于确定算力网络最短路径。因此,本申请通过获取上一时刻以及当前时刻分别对应的资源占用率,然后结合上一时刻服务器节点与目标路由节点的权重以及门下值来确定当前时刻服务器节点与目标路由节点的权重,综合分析当前时刻服务器节点与目标路由节点的权重,实现基于资源占用情况,权重的动态更新,进而基于更新的权重来确定为业务选定的一个最短的路径资源,实现了资源的合理利用,同时基于最短路径解决了超低时延需求问题。The computing power network path analysis method, device, equipment, system and storage medium provided in this embodiment are applied to a computing power network system, wherein the computing power network system includes multiple server nodes and multiple routing nodes; firstly, the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment and the weight of the link between each server node and each target routing node at the previous moment are obtained, wherein the target routing node is a routing node directly connected to each server node among the multiple routing nodes; wherein one server node corresponds to one target routing node; then, the following steps are performed for the resource occupancy rate of the link between each server node and each target routing node at the current moment. : According to the resource occupancy rate and threshold value of the link between the server node and the corresponding target routing node at the current moment, determine the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment; according to the resource load scenario type, the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value, determine the weight of the link between each server node and each target routing node at the current moment; wherein, the weight of the link between each server node and each target routing node at the current moment is used to determine the shortest path of the computing power network. Therefore, the present application obtains the resource occupancy rates corresponding to the previous moment and the current moment respectively, and then determines the weights of the server node and the target routing node at the current moment in combination with the weights of the server node and the target routing node at the previous moment and the gate value, comprehensively analyzes the weights of the server node and the target routing node at the current moment, and realizes dynamic update of weights based on resource occupancy, and then determines a shortest path resource selected for the business based on the updated weight, thereby realizing rational use of resources and solving the problem of ultra-low latency requirements based on the shortest path.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

图1为本申请实施例提供的算力网络路径分析方法的场景示意图;FIG1 is a schematic diagram of a scenario of a computing power network path analysis method provided in an embodiment of the present application;

图2为本申请实施例提供的算力网络路径分析方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a computing power network path analysis method provided in an embodiment of the present application;

图3为本申请再一实施例提供的算力网络路径分析方法的流程示意图;FIG3 is a flow chart of a computing power network path analysis method provided in yet another embodiment of the present application;

图4为本申请实施例提供的算力网络路径分析装置的结构示意图;FIG4 is a schematic diagram of the structure of a computing power network path analysis device provided in an embodiment of the present application;

图5为本申请实施例提供的电子设备的结构示意图。FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例,例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

目前,边缘计算设备和智能终端设备的大量部署,虽然解决了网络中海量数据上传至云计算中心导致的时延过长的问题,但也使得算力资源呈现泛在部署的趋势。一方面,边缘计算节点没有进行有效的协同处理任务,单一节点的算力资源无法满足如图像渲染等超大型的计算密集型任务的算力资源需求,仍然无法解决同时具有计算密集和时延敏感特性的新型业务的超低时延需求问题;另一方面,虽然一些边缘计算节点出现超负载无法有效处理计算任务的情况,但是由于网络负载的不均衡,势必会有一些计算节点仍然处于空闲的状态,导致边缘网络的算力资源无法得到充分的利用。因此,现有技术无法有效地分析算力网络的路径,进而无法解决超低时延需求问题的同时,保证算力资源得到充分的利用。At present, the large-scale deployment of edge computing devices and smart terminal devices has solved the problem of long latency caused by uploading massive data in the network to the cloud computing center, but it has also led to a trend of ubiquitous deployment of computing resources. On the one hand, the edge computing nodes do not perform effective collaborative processing tasks, and the computing resources of a single node cannot meet the computing resource requirements of ultra-large computing-intensive tasks such as image rendering, and still cannot solve the ultra-low latency requirements of new services that are both computing-intensive and latency-sensitive. On the other hand, although some edge computing nodes are overloaded and cannot effectively process computing tasks, due to the imbalance of network load, some computing nodes are bound to remain idle, resulting in the inability to fully utilize the computing resources of the edge network. Therefore, the existing technology cannot effectively analyze the path of the computing network, and thus cannot solve the problem of ultra-low latency requirements while ensuring that computing resources are fully utilized.

为了解决上述问题,本申请的技术构思为:通过获取上一时刻以及当前时刻分别对应的资源占用率,然后结合上一时刻服务器节点与目标路由节点的权重以及门下值来确定当前时刻服务器节点与目标路由节点的权重,综合分析当前时刻服务器节点与目标路由节点的权重,实现基于资源占用情况,权重的动态更新,进而基于更新的权重来确定为业务选定的一个最短的路径资源,实现了资源的合理利用,同时基于最短路径解决了超低时延需求问题。In order to solve the above problems, the technical concept of the present application is: by obtaining the resource occupancy rates corresponding to the previous moment and the current moment respectively, and then combining the weights of the server node and the target routing node at the previous moment and the gate value, the weights of the server node and the target routing node at the current moment are determined, and the weights of the server node and the target routing node at the current moment are comprehensively analyzed to realize dynamic update of the weights based on the resource occupancy, and then determine a shortest path resource selected for the business based on the updated weight, thereby realizing the rational use of resources and solving the ultra-low latency requirement problem based on the shortest path.

术语解释:Explanation of terms:

WRR_ij:路由节点i与路由节点j之间的权重值;W RR_ij : the weight value between routing node i and routing node j;

WRN_ij_t:t时刻(可以作为当前时刻),路由节点i与计算服务器节点(即服务器节点)j之间的权重值;W RN_ij_t : the weight value between routing node i and computing server node (i.e. server node) j at time t (which can be used as the current time);

WRN_ij_t-1:t-1时刻(可以作为上一时刻),路由节点i与计算服务器节点j之间的权重值;W RN_ij_t-1 : the weight value between routing node i and computing server node j at time t-1 (can be used as the previous time);

RRN_ij_t:t时刻,路由节点i与计算服务器节点j之间的资源占用率;R RN_ij_t : resource occupancy rate between routing node i and computing server node j at time t;

RRN_ij_t-1:t-1时刻,路由节点i与计算服务器节点j之间的资源占用率;R RN_ij_t-1 : resource occupancy rate between routing node i and computing server node j at time t-1;

Th1:第一门限值;Th1: first threshold value;

Th2:第二门限值;Th2: second threshold value;

α:权重系数。α: weight coefficient.

参考图1,图1为本申请实施例提供的算力网络路径分析方法的场景示意图。图1示出了算力网络系统,包括多个服务器节点(如服务器节点1即N1、服务器节点2即N2)和多个路由节点(如路由节点1即R1、路由节点2即R2、路由节点3即R3、路由节点4即R4、路由节点5即R5、路由节点6即R6)。其中,路由节点用于网络信号传输,即将终端设备发起的业务信息通过路由节点之间的链路进行传输;服务器节点用于根据接收到的终端设备发起的业务信息提供相应的业务服务。Refer to Figure 1, which is a scenario diagram of the computing power network path analysis method provided in an embodiment of the present application. Figure 1 shows a computing power network system, including multiple server nodes (such as server node 1, namely N1, server node 2, namely N2) and multiple routing nodes (such as routing node 1, namely R1, routing node 2, namely R2, routing node 3, namely R3, routing node 4, namely R4, routing node 5, namely R5, routing node 6, namely R6). Among them, the routing node is used for network signal transmission, that is, the business information initiated by the terminal device is transmitted through the link between the routing nodes; the server node is used to provide corresponding business services according to the business information initiated by the received terminal device.

通过考虑服务器资源使用情况,动态感知服务器(这里指服务器节点,如N1、N2)与路由器(这里指路由节点,如R3、R5)之间的路由权重(以t时刻为例,这里的路由权重为WRN_31_t、WRN_52_t)配置,进行网络算路,进而实现网络资源利用率大幅提升。其中,路由节点之间链路的权重(如WRR_12、WRR_13、WRR_23、WRR_24、WRR_25、WRR_35、WRR_45、WRR_46、WRR_56)是基于光纤等网络信号线的长度等特性确定的。因此,通过获取上一时刻以及当前时刻分别对应的资源占用率,然后结合上一时刻服务器节点与目标路由节点的权重以及门下值来确定当前时刻服务器节点与目标路由节点的权重,综合分析当前时刻服务器节点与目标路由节点的权重,实现基于资源占用情况,权重的动态更新,进而基于更新的权重来确定为业务选定的一个最短的路径资源,实现了资源的合理利用,同时基于最短路径解决了超低时延需求问题By considering the usage of server resources, the routing weights (taking time t as an example, the routing weights here are W RN_31_t , W RN_52_t ) between the server (here refers to the server nodes, such as N1, N2) and the router (here refers to the routing nodes, such as R3, R5) are dynamically perceived, and network path calculation is performed, thereby greatly improving the utilization of network resources. Among them, the weights of the links between routing nodes (such as W RR_12 , W RR_13 , W RR_23 , W RR_24 , W RR_25 , W RR_35 , W RR_45 , W RR_46 , W RR_56 ) are determined based on the characteristics of the length of network signal lines such as optical fibers. Therefore, by obtaining the resource occupancy rates corresponding to the previous moment and the current moment, and then combining the weights of the server node and the target routing node at the previous moment and the gate value to determine the weights of the server node and the target routing node at the current moment, the weights of the server node and the target routing node at the current moment are comprehensively analyzed to achieve dynamic update of weights based on resource occupancy, and then determine the shortest path resource selected for the business based on the updated weight, thereby achieving reasonable utilization of resources and solving the problem of ultra-low latency requirements based on the shortest path.

下面以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

参见图2所示,图2为本申请实施例提供的算力网络路径分析方法的流程示意图。See Figure 2, which is a flow chart of the computing power network path analysis method provided in an embodiment of the present application.

参见图2,所述算力网络路径分析方法,应用于算力网络系统,所述算力网络系统包括多个服务器节点和多个路由节点;该方法包括:Referring to FIG. 2 , the computing power network path analysis method is applied to a computing power network system, wherein the computing power network system includes a plurality of server nodes and a plurality of routing nodes; the method includes:

S201、获取当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,所述目标路由节点为所述多个路由节点中与各个服务器节点直连的路由节点。S201. Obtain the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, and the weight of the link between each server node and each target routing node at the previous moment, wherein the target routing node is a routing node directly connected to each server node among the multiple routing nodes.

其中,一个服务器节点对应一个目标路由节点。即一个服务器节点与一个目标路由节点直连。Among them, one server node corresponds to one target routing node, that is, one server node is directly connected to one target routing node.

本实施例中,为了实现服务器与路由器之间链路的权重动态更新,可以获取上一时刻的权重、资源占用情况以及当前时刻对应的资源占用情况,重新计算当前时刻的权重。In this embodiment, in order to dynamically update the weight of the link between the server and the router, the weight and resource occupancy at the previous moment and the resource occupancy corresponding to the current moment may be obtained, and the weight at the current moment may be recalculated.

S202、针对当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率,均执行下述步骤:根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应资源负载场景类型。S202. For the resource occupancy rate of the link between each server node and each target routing node at the current moment, the following steps are performed: based on the resource occupancy rate and threshold value of the link between the server node and the corresponding target routing node at the current moment, the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is determined.

本实施例中,针对每个服务器,由于该服务器节点与相应的目标路由节点之间链路上的资源占用率的不同,当前时刻服务器节点与相应的目标路由节点之间链路对应资源负载场景类型不同。具体地,将当前时刻服务器节点与相应的目标路由节点之间链路的资源占用率与门限值进行比对,根据比对结果,来确定当前时刻该链路上资源负载场景类型。In this embodiment, for each server, due to the different resource occupancy rates on the link between the server node and the corresponding target routing node, the resource load scenario types corresponding to the link between the server node and the corresponding target routing node at the current moment are different. Specifically, the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment is compared with the threshold value, and the resource load scenario type on the link at the current moment is determined according to the comparison result.

S203、根据所述资源负载场景类型、当前时刻各个服务器与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重。S203. Determine the weight of the link between each server node and each target routing node at the current moment according to the resource load scenario type, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value.

其中,所述当前时刻各个服务器节点与各个目标路由节点之间链路的权重用于确定算力网络最短路径。Among them, the weight of the link between each server node and each target routing node at the current moment is used to determine the shortest path in the computing power network.

这里的当前时刻各个服务器节点与各个目标路由节点之间链路的权重即为当前时刻各个服务器与各个目标路由节点之间链路的资源占用率对应的权重。其中,资源越紧张,权重越大,尽量绕过这条路径,因此基于权重可以计算出能够使得资源得到合理利用的最短路径。The weight of the link between each server node and each target routing node at the current moment is the weight corresponding to the resource occupancy rate of the link between each server node and each target routing node at the current moment. The tighter the resources, the greater the weight, and the path is bypassed as much as possible. Therefore, based on the weight, the shortest path that can make reasonable use of resources can be calculated.

本实施例中,根据确定的资源负载场景类型,然后确定权重计算方式所属的场景;在该计算方式所属的场景下,基于当前时刻各个服务器与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值等这些条件,确定权重计算方式,得到当前时刻各个服务器节点与各个目标路由节点之间链路的权重。然后根据当前时刻各个服务器节点与各个目标路由节点之间链路的权重,结合路由节点之间链路的权重,选出一条最短路径作为给终端设备发起的业务提供的资源路径,该条路径上的服务器节点即为给业务分配的资源。In this embodiment, according to the determined resource load scenario type, the scenario to which the weight calculation method belongs is then determined; in the scenario to which the calculation method belongs, based on the resource occupancy rate of the link between each server and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value, the weight calculation method is determined to obtain the weight of the link between each server node and each target routing node at the current moment. Then, according to the weight of the link between each server node and each target routing node at the current moment, combined with the weight of the link between the routing nodes, a shortest path is selected as the resource path provided for the service initiated by the terminal device, and the server node on the path is the resource allocated to the service.

本实施例提供的算力网络路径分析方法,应用于算力网络系统,所述算力网络系统包括多个服务器节点和多个路由节点;首先获取当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,所述目标路由节点为所述多个路由节点中与各个服务器节点直连的路由节点;其中,一个服务器节点对应一个目标路由节点;然后针对当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率,均执行下述步骤:根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应资源负载场景类型;根据所述资源负载场景类型、当前时刻各个服务器与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重;其中,所述当前时刻各个服务器节点与各个目标路由节点之间链路的权重用于确定算力网络最短路径。因此,本申请通过获取上一时刻以及当前时刻分别对应的资源占用率,然后结合上一时刻服务器节点与目标路由节点的权重以及门下值来确定当前时刻服务器节点与目标路由节点的权重,综合分析当前时刻服务器节点与目标路由节点的权重,实现基于资源占用情况,权重的动态更新,进而基于更新的权重来确定为业务选定的一个最短的路径资源,实现了资源的合理利用,同时基于最短路径解决了超低时延需求问题。The computing network path analysis method provided in this embodiment is applied to a computing network system, wherein the computing network system includes multiple server nodes and multiple routing nodes; firstly, the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, and the weight of the link between each server node and each target routing node at the previous moment are obtained, wherein the target routing node is a routing node directly connected to each server node among the multiple routing nodes; wherein one server node corresponds to one target routing node; then, for the resource occupancy rate of the link between each server node and each target routing node at the current moment, the following steps are performed: according to the resource occupancy rate of the link at the current moment The resource occupancy rate and threshold value of the link between the server node and the corresponding target routing node determine the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment; according to the resource load scenario type, the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value, determine the weight of the link between each server node and each target routing node at the current moment; wherein, the weight of the link between each server node and each target routing node at the current moment is used to determine the shortest path of the computing power network. Therefore, the present application obtains the resource occupancy rate corresponding to the previous moment and the current moment respectively, and then determines the weight of the server node and the target routing node at the current moment in combination with the weight of the server node and the target routing node at the previous moment and the value under the gate, comprehensively analyzes the weight of the server node and the target routing node at the current moment, realizes the dynamic update of the weight based on the resource occupancy situation, and then determines the shortest path resource selected for the business based on the updated weight, realizes the rational use of resources, and solves the problem of ultra-low latency demand based on the shortest path.

在一种可能的设计中,本实施例在上述实施例的基础上,对如何确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型进行了详细说明。其中,所述门限值包括第一门限值和第二门限值,所述第一门限值小于所述第二门限值;所述根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型,可以通过以下步骤实现:In a possible design, this embodiment, based on the above embodiment, provides a detailed description of how to determine the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment. The threshold value includes a first threshold value and a second threshold value, and the first threshold value is less than the second threshold value; the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is determined based on the resource occupancy rate and threshold value of the link between the server node and the corresponding target routing node at the current moment, which can be achieved by the following steps:

步骤a1、若所述服务器与相应的目标路由之间链路的资源占用率小于第一门限值,则确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源轻载;Step a1: if the resource occupancy rate of the link between the server and the corresponding target routing node is less than a first threshold value, determining that the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is resource light load;

步骤a2、若所述服务器节点与相应的目标路由之间链路的资源占用率大于或等于第一门限值且小于第二门限值,则确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源中载;Step a2: if the resource occupancy rate of the link between the server node and the corresponding target routing node is greater than or equal to the first threshold value and less than the second threshold value, then determine that the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is resource medium load;

步骤a3、若所述服务器节点与相应的目标路由之间链路的资源占用率大于或等于第二门限值且小于1,则确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源重载。Step a3: If the resource occupancy rate of the link between the server node and the corresponding target routing node is greater than or equal to the second threshold value and less than 1, determine that the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is resource overload.

本实施例中,当0≤RRN_ij_t<Th1时,说明资源轻载,应该优先选择该服务器Nj,即t时刻服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源轻载。In this embodiment, when 0≤R RN_ij_t <Th1, it indicates that the resource is lightly loaded and the server Nj should be selected preferentially, that is, the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at time t is lightly loaded.

当Th1≤RRN_ij_t<Th2时,说明资源轻载,选择该服务器Nj没有倾向性,即t时刻(这里可以看作是当前时刻)服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源中载。When Th1≤R RN_ij_t <Th2, it indicates that the resource is lightly loaded and there is no preference for selecting the server Nj, that is, the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at time t (which can be regarded as the current time here) is medium resource load.

当Th2≤RRN_ij_t<1时,说明资源重载,应该避免选择该服务器Nj,即t时刻(这里可以看作是当前时刻)服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源重载。When Th2≤R RN_ij_t <1, it indicates resource overload and the server Nj should be avoided. That is, the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at time t (which can be regarded as the current time) is resource overload.

在一种可能的设计中,本实施例在上述实施例的基础上,对S203进行了详细说明。根据所述资源负载场景类型、当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重,可以通过以下步骤实现:In a possible design, this embodiment provides a detailed description of S203 based on the above embodiment. According to the resource load scenario type, the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value, the weight of the link between each server node and each target routing node at the current moment is determined, which can be achieved by the following steps:

步骤b1、针对各个所述服务器,根据所述资源负载场景类型、当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率、上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定权重计算模型。Step b1: for each server, determine the weight calculation model according to the resource load scenario type, the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and the threshold value.

在一种可能的设计中,根据所述资源负载场景类型、当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率、上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定权重计算模型,可以通过以下步骤实现:In a possible design, a weight calculation model is determined according to the resource load scenario type, the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and a threshold value, which can be implemented by the following steps:

根据所述资源负载场景类型,通过比对当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率和上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率,以及比对上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率与门限值,确定权重计算模型以及权重计算模型中用于计算当前时刻所述服务器节点与相应的目标路由节点之间链路的权重系数的倍数。According to the resource load scenario type, by comparing the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment with the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and comparing the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment with a threshold value, a weight calculation model and a multiple of the weight coefficient used in the weight calculation model to calculate the link between the server node and the corresponding target routing node at the current moment are determined.

本实施例中:如果资源负载场景类型为资源轻载,即0≤RRN_ij_t<Th1,可以通过以下两种情况进行分析,选取当前时刻所属的情况,进而确定权重计算模型。In this embodiment: if the resource load scenario type is resource light load, that is, 0≤R RN_ij_t <Th1, the following two situations can be analyzed, the situation at the current moment is selected, and then the weight calculation model is determined.

情况11:如果RRN_ij_t-RRN_ij_t-1≤0Case 11: If R RN_ij_t -R RN_ij_t-1 ≤ 0

1)当Th1≤RRN_ij_t-1<Th2时,设定k为奇数,权重计算模型为:1) When Th1≤R RN_ij_t-1 <Th2, k is set to an odd number, and the weight calculation model is:

WRN_ij_t=WRN_ij_t-1*[1+2α*(-1)k(|RRN_ij_t-RRN_ij_t-1|/RRN_ij_t)];W RN — ij — t = W RN — ij — t-1 *[1+2α*(-1) k (|R RN — ij — t -R RN — ij — t-1 |/R RN — ij — t )];

这里权重系数的倍数为2,由于当前时刻对应的资源占用率不大于上一时刻对应的资源占用率,且上一时刻对应的资源占用率介于两个门限值之间,说明当前时刻服务器节点与相应的目标路由节点之间链路的权重要低于上一时刻服务器节点与相应的目标路由节点之间链路的权重,此时赋予k为奇数,α的倍数大于1,比如2。Here, the multiple of the weight coefficient is 2. Since the resource occupancy rate corresponding to the current moment is not greater than the resource occupancy rate corresponding to the previous moment, and the resource occupancy rate corresponding to the previous moment is between two threshold values, it means that the weight of the link between the server node and the corresponding target routing node at the current moment is lower than the weight of the link between the server node and the corresponding target routing node at the previous moment. At this time, k is assigned an odd number, and the multiple of α is greater than 1, such as 2.

2)当Th2≤RRN_ij_t-1<1时,设定k为奇数,权重计算模型为:2) When Th2≤R RN_ij_t-1 <1, k is set to an odd number, and the weight calculation model is:

WRN_ij_t=WRN_ij_t-1*[1+3α(-1)k(|RRN_ij_t-RRN_ij_t-1|/RRN_ij_t)];这W RN_ij_t = W RN_ij_t-1 *[1+3α(-1) k (|R RN_ij_t -R RN_ij_t-1 |/R RN_ij_t )];

里权重系数的倍数为3,由于当前时刻对应的资源占用率不大于上一时刻对应的资源占用率,且上一时刻对应的资源占用率大于第二门限值(大的门限值),说明当前时刻服务器节点与相应的目标路由节点之间链路的权重要低于上一时刻服务器节点与相应的目标路由节点之间链路的权重,此时赋予k为奇数,且相对于情况21中(1)所述的α的倍数大,比如2。The multiple of the weight coefficient is 3. Since the resource occupancy rate corresponding to the current moment is not greater than the resource occupancy rate corresponding to the previous moment, and the resource occupancy rate corresponding to the previous moment is greater than the second threshold value (the large threshold value), it means that the weight of the link between the server node and the corresponding target routing node at the current moment is lower than the weight of the link between the server node and the corresponding target routing node at the previous moment. At this time, k is assigned an odd number, and it is larger than the multiple of α described in (1) in Case 21, such as 2.

情况12:如果RRN_ij_t-RRN_ij_t-1>0设定k为偶数,权重计算模型为:Case 12: If R RN_ij_t -R RN_ij_t-1 > 0, set k to an even number, and the weight calculation model is:

WRN_ij_t=WRN_ij_t-1*[1+α*(-1)k(|RRN_ij_t-RRN_ij_t-1|/RRN_ij_t)];这W RN_ij_t = W RN_ij_t-1 *[1+α*(-1) k (|R RN_ij_t -R RN_ij_t-1 |/R RN_ij_t )];

里权重系数的倍数为1,由于当前时刻对应的资源占用率大于上一时刻对应的资源占用率,且当前时刻对应的资源占用率不大于第一门限值,说明当前时刻服务器节点与相应的目标路由节点之间链路的权重要高于上一时刻服务器节点与相应的目标路由节点之间链路的权重,此时赋予k为偶数,α的倍数可以为1。The multiple of the weight coefficient is 1. Since the resource occupancy rate corresponding to the current moment is greater than the resource occupancy rate corresponding to the previous moment, and the resource occupancy rate corresponding to the current moment is not greater than the first threshold value, it means that the weight of the link between the server node and the corresponding target routing node at the current moment is higher than the weight of the link between the server node and the corresponding target routing node at the previous moment. At this time, k is assigned an even number, and the multiple of α can be 1.

如果资源负载场景类型为资源中载,即Th1≤RRN_ij_t<Th2,可以通过以下两种情况进行分析,选取当前时刻所属的情况,进而确定权重计算模型。If the resource load scenario type is medium resource load, that is, Th1≤R RN_ij_t <Th2, the following two situations can be analyzed, and the situation at the current moment can be selected to determine the weight calculation model.

情况21:如果RRN_ij_t-RRN_ij_t-1≤0Case 21: If R RN_ij_t -R RN_ij_t-1 ≤ 0

1)当Th1≤RRN_ij_t-1<Th2时,设定k为奇数,权重计算模型为:1) When Th1≤R RN_ij_t-1 <Th2, k is set to an odd number, and the weight calculation model is:

WRN_ij_t=WRN_ij_t-1*[1+α*(-1)k(|RRN_ij_t-RRN_ij_t-1|/RRN_ij_t)];这W RN_ij_t = W RN_ij_t-1 *[1+α*(-1) k (|R RN_ij_t -R RN_ij_t-1 |/R RN_ij_t )];

里权重系数的倍数为1,由于当前时刻对应的资源占用率不大于上一时刻对应的资源占用率,且上一时刻对应的资源占用率介于两个门限值之间,说明当前时刻服务器节点与相应的目标路由节点之间链路的权重要低于上一时刻服务器节点与相应的目标路由节点之间链路的权重,此时赋予k为奇数,α的倍数可以为1。The multiple of the weight coefficient is 1. Since the resource occupancy rate corresponding to the current moment is not greater than the resource occupancy rate corresponding to the previous moment, and the resource occupancy rate corresponding to the previous moment is between two threshold values, it means that the weight of the link between the server node and the corresponding target routing node at the current moment is lower than the weight of the link between the server node and the corresponding target routing node at the previous moment. At this time, k is assigned an odd number, and the multiple of α can be 1.

2)当Th2≤RRN_ij_t-1<1时,设定k为奇数,权重计算模型为:2) When Th2≤R RN_ij_t-1 <1, k is set to an odd number, and the weight calculation model is:

WRN_ij_t=WRN_ij_t-1*[1+2α(-1)k(|RRN_ij_t-RRN_ij_t-1|/RRN_ij_t)];这W RN_ij_t = W RN_ij_t-1 *[1+2α(-1) k (|R RN_ij_t -R RN_ij_t-1 |/R RN_ij_t )];

里权重系数的倍数为2,由于当前时刻对应的资源占用率不大于上一时刻对应的资源占用率,且上一时刻对应的资源占用率大于第二门限值(大的门限值),说明当前时刻服务器节点与相应的目标路由节点之间链路的权重要低于上一时刻服务器节点与相应的目标路由节点之间链路的权重,此时赋予k为奇数,且相对于情况21中(1)所述的α的倍数大,比如2。The multiple of the weight coefficient is 2. Since the resource occupancy rate corresponding to the current moment is not greater than the resource occupancy rate corresponding to the previous moment, and the resource occupancy rate corresponding to the previous moment is greater than the second threshold value (the large threshold value), it means that the weight of the link between the server node and the corresponding target routing node at the current moment is lower than the weight of the link between the server node and the corresponding target routing node at the previous moment. At this time, k is assigned an odd number, and it is larger than the multiple of α described in (1) in Case 21, such as 2.

情况22:如果RRN_ij_t-RRN_ij_t-1>0Case 22: If R RN_ij_t -R RN_ij_t-1 >0

1)当0≤RRN_ij_t-1<Th1时,设定k为偶数,权重计算模型为:1) When 0≤R RN_ij_t-1 <Th1, k is set to an even number, and the weight calculation model is:

WRN_ij_t=WRN_ij_t-1*[1+2α*(-1)k(|RRN_ij_t-RRN_ij_t-1|/RRN_ij_t)];W RN — ij — t = W RN — ij — t-1 *[1+2α*(-1) k (|R RN — ij — t -R RN — ij — t-1 |/R RN — ij — t )];

这里权重系数的倍数为2,由于当前时刻对应的资源占用率大于上一时刻对应的资源占用率,且当前时刻对应的资源占用率小于第一门限值,说明当前时刻服务器节点与相应的目标路由节点之间链路的权重要高于上一时刻服务器节点与相应的目标路由节点之间链路的权重,此时赋予k为偶数,α的倍数可以为2。Here, the multiple of the weight coefficient is 2. Since the resource occupancy rate corresponding to the current moment is greater than the resource occupancy rate corresponding to the previous moment, and the resource occupancy rate corresponding to the current moment is less than the first threshold value, it means that the weight of the link between the server node and the corresponding target routing node at the current moment is higher than the weight of the link between the server node and the corresponding target routing node at the previous moment. At this time, k is assigned an even number, and the multiple of α can be 2.

2)当Th1≤RRN_ij_t-1<Th2时,WRN_ij_t=WRN_ij_t-1。2) When Th1≤R RN — ij — t-1 <Th2, W RN — ij — t =W RN — ij — t -1.

如果资源负载场景类型为资源重载,即Th2≤RRN_ij_t<1,可以通过以下两种情况进行分析,选取当前时刻所属的情况,进而确定权重计算模型。If the resource load scenario type is resource overload, that is, Th2≤R RN_ij_t <1, the following two situations can be analyzed, and the situation at the current moment can be selected to determine the weight calculation model.

情况31:如果RRN_ij_t-RRN_ij_t-1≤0,则WRN_ij_t=WRN_ij_t-1Case 31: If R RN — ij — t −R RN — ij — t −1≤0, then W RN — ij — t =W RN — ij — t−1 .

情况32:如果RRN_ij_t-RRN_ij_t-1>0Case 32: If R RN_ij_t -R RN_ij_t-1 >0

1)当0≤RRN_ij_t-1<Th1时,设定k为偶数,权重计算模型为:1) When 0≤R RN_ij_t-1 <Th1, k is set to an even number, and the weight calculation model is:

WRN_ij_t=WRN_ij_t-1*[1+2α*(-1)k(|RRN_ij_t-RRN_ij_t-1|/RRN_ij_t)];W RN — ij — t = W RN — ij — t-1 *[1+2α*(-1) k (|R RN — ij — t -R RN — ij — t-1 |/R RN — ij — t )];

这里权重系数的倍数为2,由于当前时刻对应的资源占用率大于上一时刻对应的资源占用率,且当前时刻对应的资源占用率小于第一门限值,说明当前时刻服务器节点与相应的目标路由节点之间链路的权重要高于上一时刻服务器节点与相应的目标路由节点之间链路的权重,此时赋予k为偶数,α的倍数可以为2。Here, the multiple of the weight coefficient is 2. Since the resource occupancy rate corresponding to the current moment is greater than the resource occupancy rate corresponding to the previous moment, and the resource occupancy rate corresponding to the current moment is less than the first threshold value, it means that the weight of the link between the server node and the corresponding target routing node at the current moment is higher than the weight of the link between the server node and the corresponding target routing node at the previous moment. At this time, k is assigned to an even number, and the multiple of α can be 2.

2)当Th1≤RRN_ij_t-1<Th2时,设定k为偶数,权重计算模型为:2) When Th1≤R RN_ij_t-1 <Th2, k is set to an even number, and the weight calculation model is:

WRN_ij_t=WRN_ij_t-1*[1+3α*(-1)k(|RRN_ij_t-RRN_ij_t-1|/RRN_ij_t)];W RN — ij — t = W RN — ij — t-1 *[1+3α*(-1) k (|R RN — ij — t -R RN — ij — t-1 |/R RN — ij — t )];

这里权重系数的倍数为3,由于当前时刻对应的资源占用率大于上一时刻对应的资源占用率,且上一时刻对应的资源占用率介于两个门限值之间,说明当前时刻服务器节点与相应的目标路由节点之间链路的权重要高于上一时刻服务器节点与相应的目标路由节点之间链路的权重,此时赋予k为偶数,且相对于情况32中(1)所述的α的倍数大,比如3。Here, the multiple of the weight coefficient is 3. Since the resource occupancy rate corresponding to the current moment is greater than the resource occupancy rate corresponding to the previous moment, and the resource occupancy rate corresponding to the previous moment is between two threshold values, it means that the weight of the link between the server node and the corresponding target routing node at the current moment is higher than the weight of the link between the server node and the corresponding target routing node at the previous moment. At this time, k is assigned an even number, and it is a large multiple of α described in (1) in case 32, such as 3.

步骤b2、根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率、上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,通过所述权重计算模型,得到当前时刻各个服务器节点与各个目标路由节点之间链路的权重。Step b2: according to the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and the weight of the link between each server node and each target routing node at the previous moment, the weight calculation model is used to obtain the weight of the link between each server node and each target routing node at the current moment.

本实施例中,将当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率、上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,输入到所述权重计算模型,得到当前时刻各个服务器节点与各个目标路由节点之间链路的权重。In this embodiment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and the weight of the link between each server node and each target routing node at the previous moment are input into the weight calculation model to obtain the weight of the link between each server node and each target routing node at the current moment.

在一种可能的设计中,本实施例在上述实施例的基础上,该方法还可以通过以下步骤实现:In a possible design, based on the above embodiment, the method of this embodiment can also be implemented by the following steps:

将所述当前时刻所述服务器节点与相应的目标路由节点之间链路的权重更新至所述算力网络系统的网络拓扑结构中。The weight of the link between the server node and the corresponding target routing node at the current moment is updated to the network topology structure of the computing power network system.

本实施例中,网络拓扑权重设置完成后,权重进行动态更新。然后基于更新的权重,进行资源分配,选出最短路径。其中,资源越紧张,权重越大,尽量绕过这条路径,因此基于权重可以计算出能够使得资源得到合理利用的最短路径。In this embodiment, after the network topology weight is set, the weight is dynamically updated. Then, based on the updated weight, resources are allocated and the shortest path is selected. The tighter the resources, the greater the weight, and the path is bypassed as much as possible. Therefore, based on the weight, the shortest path that can make reasonable use of resources can be calculated.

在一种可能的设计中,所述方法还可以通过以下步骤实现:In a possible design, the method can also be implemented by the following steps:

获取所述多个路由节点中处于同一链路上的两个路由节点之间链路的权重;Obtaining a weight of a link between two routing nodes on the same link among the multiple routing nodes;

根据各个所述同一链路上的两个路由节点之间链路的权重以及各个所述服务器节点与相应的目标路由器之间链路的权重,确定算力网络最短路径。The shortest path of the computing power network is determined according to the weight of the link between the two routing nodes on the same link and the weight of the link between each server node and the corresponding target router.

本实施例中,结合多个路由节点中处于同一链路上的两个路由节点之间链路的权重以及各个所述服务器节点与相应的目标路由器之间链路的权重,确定待分配的服务器资源,然后从终端设备到选中的服务器节点的所有链路中确定最短路径。其中,通过Dijkstra算法进行最短路径计算,在此不做具体限定。In this embodiment, the server resources to be allocated are determined by combining the weights of the links between two routing nodes on the same link among the multiple routing nodes and the weights of the links between each of the server nodes and the corresponding target routers, and then the shortest path is determined from all the links from the terminal device to the selected server node. The shortest path calculation is performed using the Dijkstra algorithm, which is not specifically limited here.

具体地,结合图3所示,图3为本申请再一实施例提供的算力网络路径分析方法的流程示意图。通过获取上一时刻以及当前时刻分别对应的资源占用率,然后结合上一时刻服务器节点与目标路由节点的权重以及门下值来确定当前时刻服务器节点与目标路由节点的权重,综合分析当前时刻服务器节点与目标路由节点的权重,基于各个同一链路上的两个路由节点之间链路的权重以及各个服务器节点与相应的目标路由器之间链路的权重,确定算力网络最短路径。实现基于资源占用情况,权重的动态更新,进而基于更新的权重来确定为业务选定的一个最短的路径资源,实现了资源的合理利用,同时基于最短路径解决了超低时延需求问题。Specifically, as shown in FIG3, FIG3 is a flow chart of a computing power network path analysis method provided by another embodiment of the present application. By obtaining the resource occupancy rates corresponding to the previous moment and the current moment, and then combining the weights of the server node and the target routing node at the previous moment and the gate value, the weights of the server node and the target routing node at the current moment are determined, and the weights of the server node and the target routing node at the current moment are comprehensively analyzed. Based on the weights of the links between the two routing nodes on the same link and the weights of the links between each server node and the corresponding target router, the shortest path of the computing power network is determined. The dynamic update of weights based on resource occupancy is realized, and then the shortest path resource selected for the business is determined based on the updated weights, which realizes the rational use of resources and solves the problem of ultra-low latency requirements based on the shortest path.

为了实现所述算力网络路径分析方法,本实施例提供了一种算力网络路径分析装置。参见图4,图4为本申请实施例提供的算力网络路径分析装置的结构示意图;所述算力网络路径分析装置40应用于算力网络系统,所述算力网络系统包括多个服务器节点和多个路由节点,该装置包括:In order to implement the computing power network path analysis method, this embodiment provides a computing power network path analysis device. Referring to FIG. 4 , FIG. 4 is a schematic diagram of the structure of the computing power network path analysis device provided in the embodiment of the present application; the computing power network path analysis device 40 is applied to a computing power network system, and the computing power network system includes multiple server nodes and multiple routing nodes, and the device includes:

获取模块401,用于获取当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,所述目标路由节点为所述多个路由节点中与各个服务器节点直连的路由节点;其中,一个服务器节点对应一个目标路由节点;The acquisition module 401 is used to acquire the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, and the weight of the link between each server node and each target routing node at the previous moment, wherein the target routing node is a routing node directly connected to each server node among the multiple routing nodes; wherein one server node corresponds to one target routing node;

确定模块402,用于针对当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率,均执行下述步骤:根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应资源负载场景类型;The determination module 402 is used to perform the following steps for the resource occupancy rate of the link between each server node and each target routing node at the current moment: determine the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment according to the resource occupancy rate and threshold value of the link between the server node and the corresponding target routing node at the current moment;

路径分析模块403,用于根据所述资源负载场景类型、当前时刻各个服务器与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重;The path analysis module 403 is used to determine the weight of the link between each server node and each target routing node at the current moment according to the resource load scenario type, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value;

其中,所述当前时刻各个服务器节点与各个目标路由节点之间链路的权重用于确定算力网络最短路径。Among them, the weight of the link between each server node and each target routing node at the current moment is used to determine the shortest path in the computing power network.

本实施例通过设置获取模块401、确定模块402、路径分析模块403,用于获取当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,所述目标路由节点为所述多个路由节点中与各个服务器节点直连的路由节点;其中,一个服务器节点对应一个目标路由节点;然后针对当前时刻各个服务器节点与各个目标路由节点之间链路的资源占用率,均执行下述步骤:根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应资源负载场景类型;根据所述资源负载场景类型、当前时刻各个服务器与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的资源占用率、上一时刻各个服务器节点与各个目标路由节点之间链路的权重以及门限值,确定当前时刻各个服务器节点与各个目标路由节点之间链路的权重;其中,所述当前时刻各个服务器节点与各个目标路由节点之间链路的权重用于确定算力网络最短路径。因此,本申请通过获取上一时刻以及当前时刻分别对应的资源占用率,然后结合上一时刻服务器节点与目标路由节点的权重以及门下值来确定当前时刻服务器节点与目标路由节点的权重,综合分析当前时刻服务器节点与目标路由节点的权重,实现基于资源占用情况,权重的动态更新,进而基于更新的权重来确定为业务选定的一个最短的路径资源,实现了资源的合理利用,同时基于最短路径解决了超低时延需求问题。In this embodiment, an acquisition module 401, a determination module 402, and a path analysis module 403 are set to acquire the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, and the weight of the link between each server node and each target routing node at the previous moment, wherein the target routing node is a routing node directly connected to each server node among the multiple routing nodes; wherein one server node corresponds to one target routing node; and then the following steps are performed for the resource occupancy rate of the link between each server node and each target routing node at the current moment: according to the resource occupancy rate of the link between the server node and the corresponding routing node at the current moment, The resource occupancy rate and threshold value of the link between the corresponding target routing nodes determine the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment; according to the resource load scenario type, the resource occupancy rate of the link between each server node and each target routing node at the current moment, the resource occupancy rate of the link between each server node and each target routing node at the previous moment, the weight of the link between each server node and each target routing node at the previous moment, and the threshold value, determine the weight of the link between each server node and each target routing node at the current moment; wherein, the weight of the link between each server node and each target routing node at the current moment is used to determine the shortest path of the computing power network. Therefore, the present application obtains the resource occupancy rate corresponding to the previous moment and the current moment respectively, and then determines the weight of the server node and the target routing node at the current moment in combination with the weight of the server node and the target routing node at the previous moment and the value under the gate, comprehensively analyzes the weight of the server node and the target routing node at the current moment, realizes the dynamic update of the weight based on the resource occupancy situation, and then determines a shortest path resource selected for the business based on the updated weight, realizes the rational use of resources, and solves the problem of ultra-low latency demand based on the shortest path.

本实施例提供的装置,可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,本实施例此处不再赘述。The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

在一种可能的设计中,所述门限值包括第一门限值和第二门限值,所述第一门限值小于所述第二门限值;所述确定模块,具体用于:In a possible design, the threshold value includes a first threshold value and a second threshold value, and the first threshold value is less than the second threshold value; and the determining module is specifically configured to:

在所述服务器与相应的目标路由之间链路的资源占用率小于第一门限值时,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源轻载;When the resource occupancy rate of the link between the server and the corresponding target routing node is less than the first threshold value, determining that the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is resource light load;

在所述服务器节点与相应的目标路由之间链路的资源占用率大于或等于第一门限值且小于第二门限值时,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源中载;When the resource occupancy rate of the link between the server node and the corresponding target routing node is greater than or equal to the first threshold value and less than the second threshold value, determining that the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is resource medium load;

在所述服务器节点与相应的目标路由之间链路的资源占用率大于或等于第二门限值且小于1时,确定当前时刻所述服务器节点与相应的目标路由节点之间链路对应的资源负载场景类型为资源重载。When the resource occupancy rate of the link between the server node and the corresponding target routing node is greater than or equal to the second threshold value and less than 1, it is determined that the resource load scenario type corresponding to the link between the server node and the corresponding target routing node at the current moment is resource overload.

在一种可能的设计中,所述路径分析模块,包括:权重计算模型确定单元和权重确定单元;In a possible design, the path analysis module includes: a weight calculation model determination unit and a weight determination unit;

权重计算模型确定单元,用于针对各个所述服务器,根据所述资源负载场景类型、当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率、上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及门限值,确定权重计算模型;A weight calculation model determination unit, configured to determine a weight calculation model for each of the servers according to the resource load scenario type, the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and a threshold value;

权重确定单元,用于根据当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率、上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率以及上一时刻各个服务器节点与各个目标路由节点之间链路的权重,通过所述权重计算模型,得到当前时刻各个服务器节点与各个目标路由节点之间链路的权重。The weight determination unit is used to obtain the weight of the link between each server node and each target routing node at the current moment through the weight calculation model according to the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and the weight of the link between each server node and each target routing node at the previous moment.

在一种可能的设计中,所述权重计算模型确定单元,具体用于:In a possible design, the weight calculation model determination unit is specifically used to:

根据所述资源负载场景类型,通过比对当前时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率和上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率,以及比对上一时刻所述服务器节点与相应的目标路由节点之间链路的资源占用率与门限值,确定权重计算模型以及权重计算模型中用于计算当前时刻所述服务器节点与相应的目标路由节点之间链路的权重系数的倍数。According to the resource load scenario type, by comparing the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment with the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment, and comparing the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment with a threshold value, a weight calculation model and a multiple of the weight coefficient used in the weight calculation model to calculate the link between the server node and the corresponding target routing node at the current moment are determined.

在一种可能的设计中,所述装置还包括:权重更新模块;权重更新模块,用于:In one possible design, the apparatus further includes: a weight updating module; and a weight updating module configured to:

将所述当前时刻所述服务器节点与相应的目标路由节点之间链路的权重更新至所述算力网络系统的网络拓扑结构中。The weight of the link between the server node and the corresponding target routing node at the current moment is updated to the network topology structure of the computing power network system.

在一种可能的设计中,所述路径分析模块,还用于:In a possible design, the path analysis module is further used to:

获取所述多个路由节点中处于同一链路上的两个路由节点之间链路的权重;Obtaining a weight of a link between two routing nodes on the same link among the multiple routing nodes;

根据各个所述同一链路上的两个路由节点之间链路的权重以及各个所述服务器节点与相应的目标路由器之间链路的权重,确定算力网络最短路径。The shortest path of the computing power network is determined according to the weight of the link between the two routing nodes on the same link and the weight of the link between each server node and the corresponding target router.

为了实现所述算力网络路径分析方法,本实施例提供了一种电子设备。图5为本申请实施例提供的电子设备的结构示意图。如图5所示,本实施例的电子设备50包括:至少一个处理器501以及存储器502;其中,存储器502,用于存储计算机执行指令;至少一个处理器501,用于执行存储器存储的计算机执行指令,以实现上述实施例中所执行的各个步骤。具体可以参见前述方法实施例中的相关描述。In order to implement the computing power network path analysis method, the present embodiment provides an electronic device. Figure 5 is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. As shown in Figure 5, the electronic device 50 of the present embodiment includes: at least one processor 501 and a memory 502; wherein the memory 502 is used to store computer-executable instructions; at least one processor 501 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed in the above embodiments. For details, please refer to the relevant description in the aforementioned method embodiment.

本申请实施例还提供一种算力网络系统,包括:如上所述的电子设备、多个服务器节点和多个路由节点。An embodiment of the present application also provides a computing power network system, including: the electronic device as described above, multiple server nodes and multiple routing nodes.

本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上述的算力网络路径分析方法。An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the computing power network path analysis method as described above is implemented.

在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述模块成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms. In addition, each functional module in each embodiment of the present application can be integrated into a processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in the form of hardware or in the form of hardware plus software functional units.

上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例所述方法的部分步骤。应理解,上述处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application SpecificIntegrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. It should be understood that the above-mentioned processor can be a central processing unit (English: Central Processing Unit, referred to as: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the invention can be directly embodied as a hardware processor to be executed, or the hardware and software modules in the processor can be combined and executed.

存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,还可以为U盘、移动硬盘、只读存储器、磁盘或光盘等。总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(PeripheralComponent,PCI)总线或扩展工业标准体系结构(Extended Industry StandardArchitecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。上述存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。存储介质可以是通用或专用计算机能够存取的任何可用介质。The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus. The above-mentioned storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a disk or an optical disk. The storage medium may be any available medium that can be accessed by a general or special-purpose computer.

一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(Application Specific Integrated Circuits,简称:ASIC)中。当然,处理器和存储介质也可以作为分立组件存在于电子设备或主控设备中。An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk, etc., various media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. The power calculation network path analysis method is characterized by being applied to a power calculation network system, wherein the power calculation network system comprises a plurality of server nodes and a plurality of routing nodes; the method comprises the following steps:
acquiring the resource occupancy rate of links between each server node and each target routing node at the current moment, the resource occupancy rate of links between each server node and each target routing node at the previous moment and the weight of links between each server node and each target routing node at the previous moment, wherein the target routing node is a routing node which is directly connected with each server node in the plurality of routing nodes; wherein one server node corresponds to one target routing node;
the method comprises the following steps of: determining the corresponding resource load scene type of the link between the server node and the corresponding target routing node at the current moment according to the resource occupancy rate and the threshold value of the link between the server node and the corresponding target routing node at the current moment;
determining the weight of the links between each server node and each target routing node at the current moment according to the resource load scene type, the resource occupancy rate of the links between each server node and each target routing node at the current moment, the resource occupancy rate of the links between each server node and each target routing node at the previous moment, the weight of the links between each server node and each target routing node at the previous moment and the threshold value;
And the weight of the links between each server node and each target routing node at the current moment is used for determining the shortest path of the computing power network.
2. The method of claim 1, wherein the threshold value comprises a first threshold value and a second threshold value, the first threshold value being less than the second threshold value; the determining the resource load scene type corresponding to the link between the server node and the corresponding target routing node at the current moment according to the resource occupancy rate and the threshold value of the link between the server node and the corresponding target routing node at the current moment comprises the following steps:
if the resource occupancy rate of the link between the server and the corresponding target route is smaller than a first threshold value, determining that the resource load scene type corresponding to the link between the server node and the corresponding target route node at the current moment is a resource light load;
if the resource occupancy rate of the link between the server node and the corresponding target route is larger than or equal to a first threshold value and smaller than a second threshold value, determining that the resource load scene type corresponding to the link between the server node and the corresponding target route node at the current moment is the resource medium load;
And if the resource occupancy rate of the link between the server node and the corresponding target route is greater than or equal to a second threshold value and less than 1, determining that the resource load scene type corresponding to the link between the server node and the corresponding target route node at the current moment is resource reload.
3. The method according to claim 2, wherein determining the weight of the links between each server node and each target routing node at the current time according to the resource load scenario type, the resource occupancy of the links between each server node and each target routing node at the current time, the resource occupancy of the links between each server node and each target routing node at the previous time, the weight of the links between each server node and each target routing node at the previous time, and the threshold value comprises:
determining a weight calculation model according to the resource load scene type, the resource occupancy rate of a link between the server node and a corresponding target routing node at the current moment, the resource occupancy rate of a link between the server node and a corresponding target routing node at the previous moment and a threshold value for each server;
And obtaining the weight of the links between each server node and each target routing node at the current moment through the weight calculation model according to the resource occupancy rate of the links between the server node and the corresponding target routing nodes at the current moment, the resource occupancy rate of the links between the server node and the corresponding target routing nodes at the previous moment and the weight of the links between each server node and each target routing node at the previous moment.
4. A method according to claim 3, wherein said determining a weight calculation model according to the resource load scenario type, the resource occupancy of the link between the server node and the corresponding target routing node at the current time, the resource occupancy of the link between the server node and the corresponding target routing node at the previous time, and the threshold value comprises:
according to the resource load scene type, the weight calculation model and the multiple of the weight coefficient used for calculating the link between the server node and the corresponding target routing node at the current moment are determined by comparing the resource occupancy rate of the link between the server node and the corresponding target routing node at the current moment with the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment and comparing the resource occupancy rate of the link between the server node and the corresponding target routing node at the previous moment with a threshold value.
5. The method according to any one of claims 1-4, further comprising:
and updating the weight of the link between the server node and the corresponding target routing node at the current moment into the network topology structure of the computing power network system.
6. The method according to any one of claims 1-4, further comprising:
acquiring the weight of a link between two routing nodes on the same link in the plurality of routing nodes;
and determining the shortest path of the computing power network according to the weight of the links between the two routing nodes on the same link and the weight of the links between the server nodes and the corresponding target routers.
7. A computing power network path analysis apparatus for use in a computing power network system comprising a plurality of server nodes and a plurality of routing nodes, the apparatus comprising:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring the resource occupancy rate of links between each server node and each target routing node at the current moment, the resource occupancy rate of links between each server node and each target routing node at the last moment and the weight of links between each server node and each target routing node at the last moment, and the target routing node is a routing node which is directly connected with each server node in the plurality of routing nodes; wherein one server node corresponds to one target routing node;
The determining module is used for executing the following steps aiming at the resource occupancy rate of links between each server node and each target routing node at the current moment: determining the corresponding resource load scene type of the link between the server node and the corresponding target routing node at the current moment according to the resource occupancy rate and the threshold value of the link between the server node and the corresponding target routing node at the current moment;
the path analysis module is used for determining the weight of the links between each server node and each target routing node at the current moment according to the resource load scene type, the resource occupancy rate of the links between each server node and each target routing node at the current moment, the resource occupancy rate of the links between each server node and each target routing node at the previous moment, the weight and the threshold value of the links between each server node and each target routing node at the previous moment;
and the weight of the links between each server node and each target routing node at the current moment is used for determining the shortest path of the computing power network.
8. An electronic device, comprising: at least one processor and memory;
The memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the method of computational power network path analysis of any one of claims 1-6.
9. A computing power network system, comprising: the electronic device, as set forth in claim 8, a plurality of server nodes, and a plurality of routing nodes.
10. A computer readable storage medium having stored therein computer executable instructions which, when executed by a processor, implement the method of computational power network path analysis of any one of claims 1-6.
CN202211526944.3A 2022-12-01 2022-12-01 Method, device, equipment, system and storage medium for analyzing path of computing power network Active CN115834466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211526944.3A CN115834466B (en) 2022-12-01 2022-12-01 Method, device, equipment, system and storage medium for analyzing path of computing power network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211526944.3A CN115834466B (en) 2022-12-01 2022-12-01 Method, device, equipment, system and storage medium for analyzing path of computing power network

Publications (2)

Publication Number Publication Date
CN115834466A CN115834466A (en) 2023-03-21
CN115834466B true CN115834466B (en) 2024-04-16

Family

ID=85533396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211526944.3A Active CN115834466B (en) 2022-12-01 2022-12-01 Method, device, equipment, system and storage medium for analyzing path of computing power network

Country Status (1)

Country Link
CN (1) CN115834466B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8040808B1 (en) * 2008-10-20 2011-10-18 Juniper Networks, Inc. Service aware path selection with a network acceleration device
WO2013042349A1 (en) * 2011-09-22 2013-03-28 日本電気株式会社 Device and method for determining allocation resources and resource provision system
WO2014185768A1 (en) * 2013-05-13 2014-11-20 Mimos Berhad A method of spectrum aware routing in a mesh network and a system derived thereof
CN113766544A (en) * 2021-09-18 2021-12-07 国网河南省电力公司信息通信公司 An optimization method for power Internet of things slice based on multi-edge collaboration
CN114040479A (en) * 2021-10-29 2022-02-11 中国联合网络通信集团有限公司 Calculation force node selection method and device and computer readable storage medium
WO2022116957A1 (en) * 2020-12-02 2022-06-09 中兴通讯股份有限公司 Algorithm model determining method, path determining method, electronic device, sdn controller, and medium
CN114745317A (en) * 2022-02-09 2022-07-12 北京邮电大学 Computing task scheduling method and related equipment for computing power network
CN114867065A (en) * 2022-05-18 2022-08-05 中国联合网络通信集团有限公司 Base station computing force load balancing method, equipment and storage medium
CN115396358A (en) * 2022-08-23 2022-11-25 中国联合网络通信集团有限公司 Route setting method, device and storage medium for computing power perception network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11395308B2 (en) * 2019-04-30 2022-07-19 Fujitsu Limited Monitoring-based edge computing service with delay assurance

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8040808B1 (en) * 2008-10-20 2011-10-18 Juniper Networks, Inc. Service aware path selection with a network acceleration device
WO2013042349A1 (en) * 2011-09-22 2013-03-28 日本電気株式会社 Device and method for determining allocation resources and resource provision system
WO2014185768A1 (en) * 2013-05-13 2014-11-20 Mimos Berhad A method of spectrum aware routing in a mesh network and a system derived thereof
WO2022116957A1 (en) * 2020-12-02 2022-06-09 中兴通讯股份有限公司 Algorithm model determining method, path determining method, electronic device, sdn controller, and medium
CN113766544A (en) * 2021-09-18 2021-12-07 国网河南省电力公司信息通信公司 An optimization method for power Internet of things slice based on multi-edge collaboration
CN114040479A (en) * 2021-10-29 2022-02-11 中国联合网络通信集团有限公司 Calculation force node selection method and device and computer readable storage medium
CN114745317A (en) * 2022-02-09 2022-07-12 北京邮电大学 Computing task scheduling method and related equipment for computing power network
CN114867065A (en) * 2022-05-18 2022-08-05 中国联合网络通信集团有限公司 Base station computing force load balancing method, equipment and storage medium
CN115396358A (en) * 2022-08-23 2022-11-25 中国联合网络通信集团有限公司 Route setting method, device and storage medium for computing power perception network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Joint server and route selection in SDN networks;Hasan anil akyildiz;《2017 IEEE International Black Sea Conference on Communications and Networking》;20180201;全文 *
面向算力网络的微服务调度策略研究与实现;戴鑫;《中国优秀硕士学位论文全文数据库》;20220615;全文 *

Also Published As

Publication number Publication date
CN115834466A (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN111176792B (en) A resource scheduling method, device and related equipment
CN103763346B (en) A kind of distributed resource scheduling method and device
CN111651253A (en) Method and device for scheduling computing resources
CN112395247A (en) Data processing method and storage and calculation integrated chip
CN107645407B (en) A method and device for adapting QoS
CN108768873A (en) A kind of flow control methods and relevant device
CN113453285B (en) Resource adjusting method, device and storage medium
CN113760528B (en) Resource processing method and device based on multi-cloud platform
CN108347377B (en) Data forwarding method and device
CN115834466B (en) Method, device, equipment, system and storage medium for analyzing path of computing power network
CN113014302B (en) Network function service chain deployment method facing satellite network
CN111158907A (en) Data processing method and device, electronic equipment and storage medium
CN115361332A (en) Processing method and device for fault-tolerant routing, processor and electronic equipment
CN116737088B (en) Object migration method and device, electronic equipment and storage medium
CN119376962A (en) Data transmission method, device, electronic device and storage medium of network on chip
CN115835306B (en) Task processing method, device, equipment and storage medium
CN114423038B (en) Edge computing blocking recovery method, device, electronic device and storage medium
CN118916130A (en) Service request scheduling method and device, electronic equipment and storage medium
CN112437010B (en) Embedding method, device, electronic device and storage medium of service function aggregation tree
US20230022435A1 (en) Method for managing network connections
CN112957734B (en) Map route searching method and device based on secondary search
CN112306371A (en) Method, apparatus and computer program product for storage management
CN109039907A (en) Determine network traffic data optimal path method, apparatus, equipment and storage medium
CN116225685A (en) Method and device for scheduling physical cores
CN108520025A (en) A kind of service node determines method, apparatus, equipment and medium

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