CN115396514B - Resource allocation method, device and storage medium - Google Patents
Resource allocation method, device and storage medium Download PDFInfo
- Publication number
- CN115396514B CN115396514B CN202210993804.0A CN202210993804A CN115396514B CN 115396514 B CN115396514 B CN 115396514B CN 202210993804 A CN202210993804 A CN 202210993804A CN 115396514 B CN115396514 B CN 115396514B
- Authority
- CN
- China
- Prior art keywords
- computing power
- target
- node
- resources
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000013468 resource allocation Methods 0.000 title claims abstract description 156
- 238000000034 method Methods 0.000 title claims abstract description 77
- 230000005540 biological transmission Effects 0.000 claims abstract description 140
- 238000012545 processing Methods 0.000 claims description 41
- 238000004891 communication Methods 0.000 abstract description 16
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 15
- 235000008694 Humulus lupulus Nutrition 0.000 description 11
- 238000013461 design Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000001174 ascending effect Effects 0.000 description 4
- 230000001934 delay Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012546 transfer Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- ODCKICSDIPVTRM-UHFFFAOYSA-N [4-[2-hydroxy-3-(propan-2-ylazaniumyl)propoxy]naphthalen-1-yl] sulfate Chemical compound C1=CC=C2C(OCC(O)CNC(C)C)=CC=C(OS(O)(=O)=O)C2=C1 ODCKICSDIPVTRM-UHFFFAOYSA-N 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本公开提供了一种资源分配方法、装置及存储介质,涉及通信技术领域,能够合理的为算力业务分配算力资源。该方法包括:确定目标业务的业务类型;在目标业务为低时延、低算力需求业务的情况下,确实目标业务的源节点与至少一个算力节点之间的n条传输路径,n为正整数;从n条传输路径中选择满足预设时延条件的目标传输路径,并将目标传输路径对应的算力节点分配给目标业务;在目标业务为高时延、高算力需求业务的情况下,确定目标业务所需的资源;从至少一个算力节点中选择目标算力节点,将目标算力节点分配给目标业务;目标算力节点的可用资源满足目标业务所需的资源。本公开用于业务传输中的算力节点分配过程。
The present disclosure provides a resource allocation method, device, and storage medium, which relate to the field of communication technology and can reasonably allocate computing power resources for computing power services. The method includes: determining the service type of the target service; when the target service is a low-latency, low-computing-demand service, determining n transmission paths between the source node of the target service and at least one computing power node, where n is Positive integer; select the target transmission path that satisfies the preset delay condition from n transmission paths, and allocate the computing nodes corresponding to the target transmission path to the target business; In this case, determine the resources required by the target business; select the target computing power node from at least one computing power node, and allocate the target computing power node to the target business; the available resources of the target computing power node meet the resources required by the target business. This disclosure is used in the computing power node allocation process in business transmission.
Description
技术领域technical field
本公开涉及通信技术领域,尤其涉及一种资源分配方法、装置及存储介质。The present disclosure relates to the field of communication technologies, and in particular, to a resource allocation method, device and storage medium.
背景技术Background technique
相关技术中,在为算力业务分配算力资源时,通常将算力业务分配到距离最近、且算力资源能够满足算力业务需求的算力节点中。但是该分配方法仅考虑了算力业务的传输距离和算力节点的算力资源,而未考虑不同算力业务需求的差异。导致当前为算力业务分配算力资源时容易出现资源分配不合理的情况。In related technologies, when computing power resources are allocated to computing power services, computing power services are usually allocated to computing power nodes with the closest distance and computing power resources that can meet computing power business needs. However, this allocation method only considers the transmission distance of the computing power business and the computing power resources of the computing power nodes, and does not consider the differences in the needs of different computing power services. As a result, it is prone to unreasonable resource allocation when allocating computing power resources for computing power business.
发明内容Contents of the invention
本申请提供一种资源分配方法、装置及存储介质,用于解决现有技术中算力资源分配不合理的问题。The present application provides a resource allocation method, device and storage medium, which are used to solve the problem of unreasonable allocation of computing power resources in the prior art.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:
第一方面,提供一种资源分配方法,该方法包括:确定目标业务的业务类型;在目标业务为低时延、低算力需求业务的情况下,确定目标业务的源节点与至少一个算力节点之间的n条传输路径,n为正整数;从n条传输路径中选择满足预设时延条件的目标传输路径,并将所述目标传输路径对应的算力节点分配给所述目标业务;在目标业务为高时延、高算力需求业务的情况下,确定目标业务所需的资源;从至少一个算力节点中选择目标算力节点;目标算力节点的可用资源满足目标业务所需的资源;将目标算力节点分配给目标业务。In the first aspect, a resource allocation method is provided, the method includes: determining the service type of the target service; in the case that the target service is a service with low delay and low computing power demand, determining the source node of the target service and at least one computing power n transmission paths between nodes, where n is a positive integer; select a target transmission path that satisfies the preset delay condition from the n transmission paths, and assign the computing power node corresponding to the target transmission path to the target business ; When the target business is a business with high latency and high computing power requirements, determine the resources required by the target business; select the target computing power node from at least one computing power node; the available resources of the target computing power node meet the requirements of the target business required resources; allocate target computing power nodes to target businesses.
结合上述第一方面,在一种可能的实现方式中,所述从所述n条传输路径中选择满足预设条件的目标传输路径,包括:确定n条传输路径,以及每条路径的带宽利用率;确定n条路径中带宽利用率小于或等于第一阈值、且链路数小于第二阈值的路径为,目标传输路径。With reference to the first aspect above, in a possible implementation manner, the selecting a target transmission path satisfying a preset condition from the n transmission paths includes: determining n transmission paths, and bandwidth utilization of each path rate; determining that among the n paths, the path whose bandwidth utilization rate is less than or equal to the first threshold and the number of links is less than the second threshold is the target transmission path.
结合上述第一方面,在一种可能的实现方式中,目标业务所需的资源包括:算力资源;从至少一个算力节点中选择目标算力节点,包括:确定目标业务所需的第一类型算力资源的算力资源需求;第一类型算力资源为以下之一:通用算力资源,图像算力资源,专用算力;确定至少一个算力节点中,每个算力节点的第一类型算力资源的可用算力资源;根据至少一个算力节点中的第一算力节点,确定目标算力节点;第一算力节点的第一类型算力资源的可用算力资源大于算力资源需求。In combination with the first aspect above, in a possible implementation, the resources required by the target business include: computing power resources; selecting the target computing power node from at least one computing power node, including: determining the first resource required by the target business Computing power resource requirements of different types of computing power resources; the first type of computing power resources is one of the following: general computing power resources, image computing power resources, and dedicated computing power; among at least one computing power node, the first Available computing power resources of a type of computing power resources; determine the target computing power node according to the first computing power node in at least one computing power node; the available computing power resources of the first type of computing power resources of the first computing power node are greater than human resource needs.
结合上述第一方面,在一种可能的实现方式中,目标业务所需的资源还包括:存储资源;方式还包括:确定目标业务的存储资源需求,以及第一算力节点的可用存储资源;确定第一算力节点中可用存储资源大于存储资源需求的第一算力节点,为目标算力节点。In combination with the first aspect above, in a possible implementation manner, the resources required by the target business further include: storage resources; the method further includes: determining the storage resource requirements of the target business and the available storage resources of the first computing power node; Determine the first computing power node whose available storage resources are greater than the storage resource requirement among the first computing power nodes is the target computing power node.
结合上述第一方面,在一种可能的实现方式中,目标算力节点的数量为多个;将目标算力节点分配给目标业务,包括:In combination with the first aspect above, in a possible implementation, there are multiple target computing power nodes; assigning the target computing power nodes to the target business includes:
确定源节点到每个目标算力节点的传输路径的链路数;Determine the number of links in the transmission path from the source node to each target computing power node;
将源节点到每个目标算力节点的传输路径中,链路数最小的传输路径对应的目标算力节点,分配给目标业务。In the transmission path from the source node to each target computing power node, the target computing power node corresponding to the transmission path with the smallest number of links is assigned to the target business.
结合上述第一方面,在一种可能的实现方式中,方法还包括:在目标业务为低时延、低算力需求业务的情况下,为目标业务配置第一优先级;在目标业务为高时延、高算力需求业务的情况下,为目标业务配置第二优先级;其中,第一优先级高于第二优先级。In combination with the first aspect above, in a possible implementation, the method further includes: when the target business is a low-latency, low-computing-demand business, configuring the first priority for the target business; In the case of delay and high computing power demand business, configure the second priority for the target business; where the first priority is higher than the second priority.
第二方面,提供一种资源分配装置,包括:处理单元;处理单元用于确定目标业务的类型;处理单元,还用于在目标业务为低时延、低算力需求业务的情况下,确定目标业务的源节点与至少一个算力节点之间的n条传输路径,n为正整数;处理单元,还用于从n条传输路径中选择满足预设时延条件的目标传输路径,并将目标传输路径对应的算力节点分配给目标业务;处理单元,还用于在目标业务为高时延、高算力需求业务的情况下,确定目标业务所需的资源;处理单元,还用于从至少一个算力节点中选择目标算力节点;目标算力节点的可用资源满足目标业务所需的资源;处理单元,还用于将目标算力节点分配给目标业务。In the second aspect, a resource allocation device is provided, including: a processing unit; the processing unit is used to determine the type of the target service; the processing unit is also used to determine the n transmission paths between the source node of the target service and at least one computing power node, where n is a positive integer; the processing unit is also used to select a target transmission path that satisfies the preset delay condition from the n transmission paths, and The computing power node corresponding to the target transmission path is allocated to the target business; the processing unit is also used to determine the resources required by the target business when the target business is a business with high latency and high computing power requirements; the processing unit is also used to Select the target computing power node from at least one computing power node; the available resources of the target computing power node meet the resources required by the target business; the processing unit is also used to allocate the target computing power node to the target business.
结合上述第二方面,在一种可能的实现方式中,处理单元,具体用于:确定n条传输路径,以及每条路径的带宽利用率;确定n条路径中带宽利用率大于或等于第一阈值、且链路数小于第二阈值的路径为目标传输路径。In combination with the second aspect above, in a possible implementation manner, the processing unit is specifically configured to: determine n transmission paths and the bandwidth utilization rate of each path; determine that the bandwidth utilization rate of the n paths is greater than or equal to the first The path with the threshold and the number of links smaller than the second threshold is the target transmission path.
结合上述第二方面,在一种可能的实现方式中,处理单元,具体用于:确定目标业务所需的第一类型算力资源的算力资源需求;第一类型算力资源为以下之一:通用算力资源,图像算力资源,专用算力;确定至少一个算力节点中,每个算力节点的第一类型算力资源的可用算力资源;根据至少一个算力节点中的第一算力节点,确定目标算力节点;第一算力节点的第一类型算力资源的可用算力资源大于算力资源需求。In combination with the second aspect above, in a possible implementation manner, the processing unit is specifically configured to: determine the computing power resource requirements of the first type of computing power resources required by the target business; the first type of computing power resources are one of the following : General computing power resources, image computing power resources, dedicated computing power; determine the available computing power resources of the first type of computing power resources of each computing power node in at least one computing power node; according to the first type of computing power resources in at least one computing power node A computing power node, determining the target computing power node; the available computing power resource of the first type of computing power resource of the first computing power node is greater than the computing power resource requirement.
结合上述第二方面,在一种可能的实现方式中,处理单元,具体用于:确定目标业务的存储资源需求,以及第一算力节点的可用存储资源;确定第一算力节点中可用存储资源大于存储资源需求的第一算力节点,为目标算力节点。In combination with the second aspect above, in a possible implementation manner, the processing unit is specifically configured to: determine the storage resource requirements of the target business and the available storage resources of the first computing power node; determine the available storage resources in the first computing power node The first computing power node whose resource is greater than the storage resource requirement is the target computing power node.
结合上述第二方面,在一种可能的实现方式中,处理单元,具体用于:将目标算力节点分配给目标业务,包括:确定源节点到每个目标算力节点的传输路径的链路数;将源节点到每个目标算力节点的传输路径中,链路数最小的传输路径对应的目标算力节点,分配给目标业务。In combination with the second aspect above, in a possible implementation manner, the processing unit is specifically configured to: allocate the target computing power node to the target business, including: determining the link of the transmission path from the source node to each target computing power node Number; in the transmission path from the source node to each target computing power node, the target computing power node corresponding to the transmission path with the smallest number of links is assigned to the target business.
结合上述第二方面,在一种可能的实现方式中,处理单元,具体用于:在目标业务为低时延、低算力需求业务的情况下,为目标业务配置第一优先级;在目标业务为高时延、高算力需求业务的情况下,为目标业务配置第二优先级;其中,第一优先级高于第二优先级。In combination with the second aspect above, in a possible implementation manner, the processing unit is specifically configured to: configure the first priority for the target service when the target service is a low-latency, low-computing-demand service; When the business is a high-latency, high-computing demand business, configure the second priority for the target business; wherein, the first priority is higher than the second priority.
第三方面,本公开提供了一种资源分配装置,该资源分配装置包括:处理器以及存储器;其中,所述存储器用于存储计算机执行指令,当所述资源分配装置运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述资源分配装置执行如第一方面和第一方面的任一种可能的实现方式中描述的资源分配方法。In a third aspect, the present disclosure provides a resource allocation device, which includes: a processor and a memory; wherein the memory is used to store computer-executable instructions, and when the resource allocation device is running, the processor Executing the computer-executable instructions stored in the memory, so that the resource allocation apparatus executes the resource allocation method as described in the first aspect and any possible implementation manner of the first aspect.
第四方面,本公开提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当计算机可读存储介质中的指令由资源分配装置的处理器执行时,使得资源分配装置能够执行如第一方面和第一方面的任一种可能的实现方式中描述的资源分配方法。In a fourth aspect, the present disclosure provides a computer-readable storage medium, in which instructions are stored, and when the instructions in the computer-readable storage medium are executed by a processor of a resource allocation device, the resource allocation device can Execute the resource allocation method as described in the first aspect and any possible implementation manner of the first aspect.
在本公开中,上述资源分配装置的名字对设备或功能模块本身不构成限定,在实际实现中,这些设备或功能模块可以以其他名称出现。只要各个设备或功能模块的功能和本公开类似,属于本公开权利要求及其等同技术的范围之内。In the present disclosure, the names of the above-mentioned resource allocation apparatuses do not limit the devices or functional modules themselves, and in actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they fall within the scope of the claims of the present disclosure and their equivalent technologies.
本公开的这些方面或其他方面在以下的描述中会更加简明易懂。These or other aspects of the present disclosure will be more clearly understood in the following description.
本公开提供的技术方案至少带来以下有益效果:The technical solution provided by the present disclosure brings at least the following beneficial effects:
在该方案中,资源分配装置针对不同时延和算力需求的业务,采用不同的方式分配算力资源。其中,针对低时延、低算力需求的目标业务,为目标业务选择低时延的传输路径,并将该传输路径对应的算力节点分配给目标业务,针对高时延、高算力的目标业务,选择算力资源能够满足需求的算力节点分配给目标业务。这样,本申请在为算力业务分配资源时,能够结合算力业务的时延和算力需求,为业务选择满足传输需求和算力需求的算力节点,从而实现了为算力业务合理分配算力资源。In this solution, the resource allocation device allocates computing power resources in different ways for services with different delays and computing power requirements. Among them, for the target business with low latency and low computing power requirements, a low-latency transmission path is selected for the target business, and the computing power nodes corresponding to the transmission path are allocated to the target business. For the target business, select a computing power node whose computing resources can meet the demand and assign it to the target business. In this way, when the application allocates resources for the computing power business, it can combine the time delay and computing power requirements of the computing power business, and select computing power nodes that meet the transmission requirements and computing power requirements for the business, thereby realizing a reasonable allocation for the computing power business Computing resources.
附图说明Description of drawings
图1为本申请实施例提供的一种资源分配装置的硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of a resource allocation device provided in an embodiment of the present application;
图2为本申请实施例提供的一种资源分配方法的流程图;FIG. 2 is a flowchart of a resource allocation method provided by an embodiment of the present application;
图3为本申请实施例提供的一种资源分配方法的流程图;FIG. 3 is a flowchart of a resource allocation method provided by an embodiment of the present application;
图4为本申请实施例提供的一种资源分配方法的流程图;FIG. 4 is a flowchart of a resource allocation method provided by an embodiment of the present application;
图5为本申请实施例提供的一种资源分配方法的流程图;FIG. 5 is a flowchart of a resource allocation method provided by an embodiment of the present application;
图6为本申请实施例提供的一种资源分配装置的结构示。FIG. 6 is a structural diagram of a resource allocation device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图对本公开实施例提供的资源分配方法、装置及存储介质进行详细地描述。The resource allocation method, device and storage medium provided by the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.
本公开的说明书以及附图中的术语“第一”和“第二”等是用于区别不同的对象,或者用于区别对同一对象的不同处理,而不是用于描述对象的特定顺序。The terms “first” and “second” in the specification and drawings of the present disclosure are used to distinguish different objects, or to distinguish different processes for the same object, rather than to describe a specific order of objects.
此外,本公开的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括其他没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present disclosure are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes other unlisted steps or units, or optionally also includes Other steps or elements inherent to the process, method, product or apparatus are included.
需要说明的是,本公开实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本公开实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present disclosure, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present disclosure shall not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
图1为本公开实施例提供的一种资源分配装置的结构示意图。如图1所示,该资源分配装置100包括至少一个处理器101,通信线路102,以及至少一个通信接口104,还可以包括存储器103。其中,处理器101,存储器103以及通信接口104三者之间可以通过通信线路102连接。FIG. 1 is a schematic structural diagram of a resource allocation device provided by an embodiment of the present disclosure. As shown in FIG. 1 , the
处理器101可以是一个中央处理器(central processing unit,CPU),也可以是特定集成电路(application specific integrated circuit,ASIC),或者是被配置成实施本公开实施例的一个或多个集成电路,例如:一个或多个数字信号处理器(digital signalprocessor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)。The
通信线路102可以包括一通路,用于在上述组件之间传送信息。Communication line 102 may include a path for communicating information between the above-described components.
通信接口104,用于与其他设备或通信网络通信,可以使用任何收发器一类的装置,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless localarea networks,WLAN)等。The
存储器103可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electricallyerasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于包括或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The
一种可能的设计中,存储器103可以独立于处理器101存在,即存储器103可以为处理器101外部的存储器,此时,存储器103可以通过通信线路102与处理器101相连接,用于存储执行指令或者应用程序代码,并由处理器101来控制执行,实现本公开下述实施例提供的资源分配确定方法。又一种可能的设计中,存储器103也可以和处理器101集成在一起,即存储器103可以为处理器101的内部存储器,例如,该存储器103为高速缓存,可以用于暂存一些数据和指令信息等。In a possible design, the
作为一种可实现方式,处理器101可以包括一个或多个CPU,例如图1中的CPU0和CPU1。作为另一种可实现方式,资源分配装置100可以包括多个处理器,例如图1中的处理器101和处理器107。作为再一种可实现方式,资源分配装置100还可以包括输出设备105和输入设备106。As an implementable manner, the
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将网络节点的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,模块和网络节点的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the network node is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the system, modules, and network nodes described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here.
当前的算力网络场景中,执行算力业务的算力需求方与提供算力资源的算力提供方通常不在同一位置。例如,当前提出的“东数西算”场景中,主要在西部地区建立数据中心、云计算、大数据一体化的新型算力网络体系,将东部地区密集的算力业务通过通信链路传输到西部地区的算力网络中,由西部地区的算力网络对算力业务进行处理并将处理结果返回给东部地区。从而实现了数据要素的跨域流动,优化了数据中心的建设布局。In the current computing power network scenario, the computing power demander that executes computing power business and the computing power provider that provides computing power resources are usually not in the same location. For example, in the currently proposed "East Data, West Computing" scenario, a new type of computing power network system integrating data centers, cloud computing, and big data is mainly established in the western region, and the intensive computing power services in the eastern region are transmitted through communication links to the In the computing power network in the western region, the computing power network in the western region processes the computing power business and returns the processing results to the eastern region. In this way, the cross-domain flow of data elements is realized, and the construction layout of the data center is optimized.
由于东部地区的算力业务传输到西部地区需要经过较长的路径传输,因此,如何合理有效的为算力业务分配算力资源称为当前亟待解决的技术问题。Since the transmission of computing power services from the eastern region to the western region needs to be transmitted through a long path, how to reasonably and effectively allocate computing power resources for computing power services is a technical problem that needs to be solved urgently.
相关技术中,在为算力业务分配算力资源时,通常仅考虑算力业务的传输距离和算力资源,将算力业务分配到距离最近、且算力资源能够满足算力业务需求的算力节点中。但是当前的算力业务的传输的时延需求和计算性能等需求不同,采用现有技术中的资源分配方法仅考虑了算力业务的传输距离和算力节点的算力资源,而无法兼顾算力业务的时延需求和算力需求。这就导致在为算力业务分配算力资源时容易出现资源分配不合理的情况。In related technologies, when allocating computing power resources for computing power services, usually only the transmission distance and computing power resources of the computing power business are considered, and the computing power business is allocated to the computing power with the closest distance and the computing power resources can meet the computing power business needs. in the force node. However, the transmission delay requirements and computing performance requirements of the current computing power business are different. The resource allocation method in the prior art only considers the transmission distance of the computing power business and the computing power resources of the computing power nodes, and cannot take into account both computing power and computing power. Latency requirements and computing power requirements of power services. This leads to unreasonable resource allocation when allocating computing power resources for computing power business.
此外,还可能会出现业务分配不科学、或者算力节点的资源无法得到充分利用等问题,进而导致用户体验下降,设置业务出现中断。而且当前为算力业务分配算力节点时也没有考虑到算力业务的资源需求。In addition, there may be problems such as unscientific business allocation, or insufficient utilization of computing power node resources, which will lead to a decline in user experience and interruption of setting services. Moreover, the resource requirements of the computing power business are not considered when the computing power nodes are currently assigned to the computing power business.
为了合理为算力业务分配资源,提高算力业务的业务性能和用户体验,本申请实施例提供了一种资源分配方法,资源分配装置针对不同时延和算力需求的业务,采用不同的方式分配算力资源。其中,针对低时延、低算力需求的目标业务,为目标业务选择低时延的传输路径,并将该传输路径对应的算力节点分配给目标业务,针对高时延、高算力的目标业务,选择算力资源能够满足需求的算力节点分配给目标业务。这样,本申请在为算力业务分配资源时,能够结合算力业务的时延和算力需求,为业务选择满足传输需求和算力需求的算力节点,从而达到了为算力业务合理分配算力资源的效果。In order to reasonably allocate resources for computing power services and improve the business performance and user experience of computing power services, the embodiment of this application provides a resource allocation method. The resource allocation device adopts different methods for services with different delays and computing power requirements. Allocate computing resources. Among them, for the target business with low latency and low computing power requirements, a low-latency transmission path is selected for the target business, and the computing power nodes corresponding to the transmission path are allocated to the target business. For the target business, select a computing power node whose computing resources can meet the demand and assign it to the target business. In this way, when the application allocates resources for the computing power business, it can combine the time delay and computing power requirements of the computing power business, and select computing power nodes that meet the transmission requirements and computing power requirements for the business, so as to achieve a reasonable allocation for the computing power business The effect of computing resources.
本公开实施例提供的资源分配方法可以应用于如图1所示的资源分配装置中,如图2所示,本公开实施例提供的资源分配方法可以通过以下步骤201至步骤206实现。The resource allocation method provided by the embodiment of the present disclosure can be applied to the resource allocation device shown in FIG. 1 , and as shown in FIG. 2 , the resource allocation method provided by the embodiment of the present disclosure can be implemented through the following steps 201 to 206.
步骤201、资源分配装置确定目标业务的业务类型。Step 201, the resource allocation device determines the service type of the target service.
其中,所述目标业务的业务类型包括:低时延、低算力需求类型和高时延、高算力需求类型。Wherein, the service type of the target service includes: a low-latency, low-computing-power-demanding type, and a high-latency, high-computing-power-demanding type.
一种可能的实现方式中,资源分配装置根据业务的时延需求、算力需求对业务进行分类,将业务分为低时延、低算力业务,以及高时延、高算力业务。其中,低时延、低算力业务为所需传输时延小于等于第一阈值,所需算力资源小于等于第二阈值的业务。高时延、高算力业务为所需传输时延大于第一阈值,所需算力资源大于第二阈值的业务。In a possible implementation manner, the resource allocation device classifies the services according to the delay requirements and computing power requirements of the services, and divides the services into low-latency, low-computing-power services, and high-delay, high-computing-power services. Among them, the low-latency, low-computing-power business is a business whose required transmission delay is less than or equal to a first threshold, and required computing power resources are less than or equal to a second threshold. High-latency, high-computing-power services are services that require transmission delays greater than a first threshold and require computing resources greater than a second threshold.
可选的,低时延、低算力类型的业务对于传输时延要求严格,在分配时优先要求业务的传输时延小于第一阈值。Optionally, low-latency, low-computing-power services have strict requirements on transmission delay, and during allocation, the transmission delay of the service is preferentially required to be less than the first threshold.
一种示例,针对人脸识别业务,需要将人脸图像发送到算力节点由算力节点对人脸图像与数据库中的图像进行匹配。由于图像识别业务通常需要较高的实时性,但所需的算力资源较少,仅为将采集到的人脸图像与数据看中的图像进行匹配的算力资源。因此,资源分配装置可以将人脸识别业务定义为低时延、低算力业务。An example, for the face recognition business, it is necessary to send the face image to the computing power node, and the computing power node will match the face image with the image in the database. Since the image recognition business usually requires high real-time performance, but requires less computing power resources, it is only the computing power resources for matching the collected face images with the images in the data. Therefore, the resource allocation device can define the face recognition service as a service with low delay and low computing power.
可选的,高时延、高算力类型的业务对于算力资源要求严格,在分配时优先要求业务的算力资源大于第二阈值。Optionally, high-latency, high-computing-power services have strict requirements on computing power resources, and the computing power resources of the business are preferentially required to be greater than the second threshold during allocation.
一种示例,针对人脸模型数据库建立业务,首先要对人脸模型进行数据训练,此时需要将大量人脸照片发送到算力节点中(需要占用较多存储空间)由算力节点对该大量人脸照片进行训练,得到人脸模型,最终生成人脸模型数据库。在进行模型训练的过程中需要算力节点提供大量算力资源进行模型训练,并且模型训练花费的时间较长,因此人脸模型数据库建立业务对传输时延不会有太高要求。因此,资源分配装置可以将人脸模型数据库建立业务定义为高时延、高算力业务。As an example, to establish a business for the face model database, the face model must first be trained for data. At this time, a large number of face photos need to be sent to the computing power node (requires a lot of storage space), and the computing power node will A large number of face photos are trained to obtain a face model, and finally a face model database is generated. In the process of model training, computing power nodes need to provide a large amount of computing power resources for model training, and model training takes a long time, so the business of establishing face model database will not have too high requirements on transmission delay. Therefore, the resource allocation device may define the face model database establishment service as a high-latency, high-computing-power service.
可以理解的是,目标业务的类型还可以是高时延、低算力业务和低时延、高算力业务。其中,高时延、低算力业务,由于对算力和时延没有要求,属于最低优先级的业务,根据就近分配原则分配到距离最近的算力节点上就能保证业务的正常运行。低时延、高算力业务,对于时延和算力都有很高的要求,属于最高优先级业务,为了保证业务的正常运行可以为此类业务设置传输专线以保证业务的正常传输。It can be understood that the type of the target service may also be a high-latency, low-computing-power service, or a low-latency, high-computing-power service. Among them, high-latency and low-computing-power services, since there are no requirements for computing power and time-delay, belong to the lowest priority business. According to the principle of nearest distribution, they can be allocated to the nearest computing power node to ensure the normal operation of the business. Low-latency, high-computing power services have high requirements for both delay and computing power, and are the highest priority business. In order to ensure the normal operation of the business, dedicated transmission lines can be set up for such services to ensure the normal transmission of the business.
需要指出的是,针对低时延、低算力需求的目标业务,和高时延、高算力需求的目标业务,资源分配装置采用不同的方法为目标业务分配算力资源。It should be pointed out that for target services with low latency and low computing power requirements, and target services with high latency and high computing power requirements, the resource allocation device uses different methods to allocate computing power resources for the target services.
具体来说,在目标业务为低时延、低算力需求业务的情况下,资源分配装置采用以下步骤202和步骤203记载的方式为目标业务分配算力资源。Specifically, when the target business is a low-latency, low-computing-demand business, the resource allocation device allocates computing power resources for the target business in the manner described in steps 202 and 203 below.
在目标业务为高时延、高算力需求业务的情况下,资源分配装置采用以下步骤204至步骤206记载的方式为目标业务分配算力资源。以下进行详细说明。In the case that the target service is a service with high latency and high demand for computing power, the resource allocation device allocates computing power resources for the target service in the manner described in steps 204 to 206 below. The details will be described below.
步骤202、在目标业务为低时延、低算力需求业务的情况下,资源分配装置确定所述目标业务的源节点与至少一个算力节点之间的n条传输路径。Step 202, in the case that the target service is a low-latency, low-computing-power-demanding service, the resource allocation device determines n transmission paths between the source node of the target service and at least one computing power node.
其中,n为正整数。Wherein, n is a positive integer.
一种可能的实现方式,资源分配装置确定当前可用的至少一个算力节点,并确定出目标业务源节点与至少一个算力节点中的每个算力节点之间的传输路径,得到上述n条传输路径。每个传输路径包括至少一个传输链路。In a possible implementation manner, the resource allocation device determines at least one currently available computing power node, and determines the transmission path between the target service source node and each computing power node in the at least one computing power node, and obtains the above n transfer path. Each transmission path includes at least one transmission link.
步骤203、资源分配装置从所述n条传输路径中选择满足预设时延条件的目标传输路径,并将所述目标传输路径对应的算力节点分配给所述目标业务。In step 203, the resource allocation device selects a target transmission path satisfying a preset delay condition from the n transmission paths, and allocates computing power nodes corresponding to the target transmission path to the target service.
一种示例,预设时延条件包括:业务的传输时延小于预设时延阈值。An example, the preset delay condition includes: the transmission delay of the service is less than a preset delay threshold.
一种可能的实现方式中,业务的传输距离越近(或者传输所经过的链路数越少),业务的传输时延越小。因此,资源分配装置可以将n条传输路径按照包括的链路数由大到小进行排序,选择链路数最少的路径为目标传输路径。其中,路径的链路数等于源节点和目的节点之间的路由器跳数+1。In a possible implementation manner, the shorter the transmission distance of the service (or the fewer links the transmission passes through), the smaller the transmission delay of the service. Therefore, the resource allocation device may sort the n transmission paths according to the number of included links in descending order, and select the path with the least number of links as the target transmission path. Wherein, the link number of the path is equal to the router hop number+1 between the source node and the destination node.
又一种可能的实现方式中,路径的带宽利用率大于一定值(例如70%)时,链路的传输时延将受到较大影响,因此资源分配装置在对n条传输路径按照包括的链路数由大到小进行排序之后,删除包括链路的带宽利用率大于70%的传输路径。然后从删除后的路径中选择链路数最少的路径为目标传输路径。In yet another possible implementation, when the bandwidth utilization rate of the path is greater than a certain value (for example, 70%), the transmission delay of the link will be greatly affected, so the resource allocation device performs the calculation of the n transmission paths according to the included chain After sorting the number of paths in descending order, delete transmission paths including links whose bandwidth utilization rate is greater than 70%. Then select the path with the least number of links from the deleted paths as the target transmission path.
在资源分配装置选择出目标传输路径之后,将目标传输路径对应的算力节点分配给目标业务,以使得该算力节点对目标业务进行处理。After the resource allocation device selects the target transmission path, it allocates the computing power node corresponding to the target transmission path to the target service, so that the computing power node processes the target service.
可选的,资源分配装置在各个传输链路的带宽利用率均不满足预设时延条件时,资源分配装置根据对n条传输路径的带宽利用率进行升序排序,并确定排名最靠前的传输路径作为目标传输路径,并将目标传输路径对应的算力节点分配给目标传输业务。Optionally, when the bandwidth utilization of each transmission link does not meet the preset delay condition, the resource allocation device sorts the n transmission paths in ascending order according to the bandwidth utilization of the transmission links, and determines the top-ranked The transmission path is used as the target transmission path, and the computing nodes corresponding to the target transmission path are assigned to the target transmission business.
可选的,当资源分配装置确定出的带宽利用率均不满足预设时延条件,并且传输路径的带宽利用率之间相差不超过3%时,业务传输路径也可以根据步骤202记载的方式确定目标传输路径。Optionally, when none of the bandwidth utilization rates determined by the resource allocation device meets the preset delay condition, and the difference between the bandwidth utilization rates of the transmission paths does not exceed 3%, the service transmission path can also be configured according to the method described in step 202. Determine the destination transfer path.
步骤204、在目标业务为高时延、高算力需求业务的情况下,资源分配装置确定所述目标业务所需的资源。Step 204: In the case that the target service is a service with high latency and high computing power demand, the resource allocation device determines resources required by the target service.
其中,所述目标业务所需的资源包括:算力资源和存储资源中的至少一个。Wherein, the resources required by the target business include: at least one of computing resources and storage resources.
步骤205、资源分配装置从所述至少一个算力节点中选择目标算力节点。Step 205, the resource allocation device selects a target computing power node from the at least one computing power node.
其中,目标算力节点的可用资源满足目标业务所需的资源。Among them, the available resources of the target computing power node meet the resources required by the target business.
一种可能的实现方式中,资源分配装置确定至少一个算力节点中,每一个算力节点的可用资源。资源分配装置选择可用资源大于目标业务所需的资源的算力节点为目标算力节点。In a possible implementation manner, the resource allocation device determines available resources of each computing power node in at least one computing power node. The resource allocation device selects a computing power node whose available resources are greater than the resources required by the target business as the target computing power node.
可选的,在目标业务所需的资源包括算力资源的情况下,资源分配装置确定每个算力节点的可用算力资源,并选择可用算力资源大于目标业务所需的算力资源的节点为目标算力节点。Optionally, when the resources required by the target business include computing power resources, the resource allocation device determines the available computing power resources of each computing power node, and selects the available computing power resources greater than the computing power resources required by the target business. The node is the target computing power node.
在目标业务所需的资源还包括存储资源的情况下,资源算力节点确定出可用算力资源大于目标业务所需的算力资源的节点(记为第一节点)之后,确定每个第一节点的可用存储资源,并从第一节点中选择可用存储资源大于目标业务所需的存储资源的节点为目标算力节点。In the case that the resources required by the target business also include storage resources, after the resource computing power node determines that the available computing power resources are greater than the computing power resources required by the target business (referred to as the first node), determine each first The available storage resources of the nodes, and select the nodes whose available storage resources are greater than the storage resources required by the target business from the first node as the target computing power node.
步骤206、资源分配装置将目标算力节点分配给目标业务。Step 206, the resource allocation device allocates the target computing power node to the target business.
一种可能的实现方式,在资源分配装置确定出最佳目标算力节点后,资源分配装置确定目标算力节点与目标业务的源节点之间的传输路径,并通过该路径向目标算力节点传输目标业务。In a possible implementation, after the resource allocation device determines the optimal target computing power node, the resource allocation device determines the transmission path between the target computing power node and the source node of the target service, and transmits the transmission path to the target computing power node through this path. Transfer target business.
上述方案至少带来以下有益效果。资源分配装置针对不同时延和算力需求的业务,采用不同的方式分配算力资源。其中,针对低时延、低算力需求的目标业务,为目标业务选择低时延的传输路径,并将该传输路径对应的算力节点分配给目标业务,针对高时延、高算力的目标业务,选择算力资源能够满足需求的算力节点分配给目标业务。这样,本申请在为算力业务分配资源时,能够结合算力业务的时延和算力需求,为业务选择满足传输需求和算力需求的算力节点,从而实现了为算力业务合理分配算力资源。The above solution brings at least the following beneficial effects. The resource allocation device allocates computing power resources in different ways for services with different delays and computing power requirements. Among them, for the target business with low latency and low computing power requirements, a low-latency transmission path is selected for the target business, and the computing power nodes corresponding to the transmission path are allocated to the target business. For the target business, select a computing power node whose computing resources can meet the demand and assign it to the target business. In this way, when the application allocates resources for the computing power business, it can combine the time delay and computing power requirements of the computing power business, and select computing power nodes that meet the transmission requirements and computing power requirements for the business, thereby realizing a reasonable allocation for the computing power business Computing resources.
需要指出的是,目标业务的类型还可以是高时延、低算力业务和低时延、高算力业务。其中,高时延、低算力业务,由于对算力和时延没有要求,属于最低优先级的业务,根据就近分配原则分配到距离最近的算力节点上就能保证业务的正常运行;低时延、高算力业务,对于时延和算力都有很高的要求,属于最高优先级业务,为了保证业务的正常运行可以为此类业务设置传输专线以保证业务的正常传输。It should be pointed out that the type of the target service may also be a high-latency, low-computing-power service, or a low-latency, high-computing-power service. Among them, the high-latency and low-computing-power business, since there is no requirement for computing power and time-delay, is the lowest priority business. According to the nearest distribution principle, it can be allocated to the nearest computing power node to ensure the normal operation of the business; low Latency and high computing power services have high requirements on both time delay and computing power, and belong to the highest priority business. In order to ensure the normal operation of the business, a dedicated transmission line can be set up for this type of business to ensure the normal transmission of the business.
结合图2,如图3所示,上述步骤203具体还可以通过以下步骤301-步骤302中的一个或多个步骤实现。Referring to FIG. 2 , as shown in FIG. 3 , the above step 203 may also be specifically implemented by one or more steps in the following steps 301 - 302 .
步骤301、资源分配装置确定n条传输路径,以及每条路径的带宽利用率。Step 301, the resource allocation device determines n transmission paths and the bandwidth utilization rate of each path.
具体来说,资源分配装置在确定了目标业务的源节点到目标算力节点的n条路径后,进一步确定n条路径中每条路径的链路数。其中每条路径的链路数是指,目标业务的源节点到目标算力节点之间的链路数。Specifically, after determining n paths from the source node of the target service to the target computing power node, the resource allocation device further determines the number of links in each of the n paths. The number of links for each path refers to the number of links between the source node of the target business and the target computing power node.
步骤302、资源分配装置确定n条路径中带宽利用率小于或等于第一阈值、且链路数小于第二阈值的路径为目标传输路径。In step 302, the resource allocation device determines that among the n paths, a path whose bandwidth utilization rate is less than or equal to a first threshold and whose number of links is less than a second threshold is a target transmission path.
一种可能的实现方式中,资源分配装置在确定了n条路径的链路数后,根据每条路径的链路数对n条路径进行升序排序。同时,资源分配装置获取每条路径的带宽利用率。这样,资源分配装置通过确定每条路径的链路数以及每条路径的带宽利用率,进而从n条路径中带宽利用率小于或等于第一阈值、且链路数小于第二阈值的路径为目标传输路径。In a possible implementation manner, after determining the number of links of the n paths, the resource allocation device sorts the n paths in ascending order according to the number of links of each path. At the same time, the resource allocation device acquires the bandwidth utilization rate of each path. In this way, the resource allocation device determines the number of links of each path and the bandwidth utilization rate of each path, and then from the n paths, the path whose bandwidth utilization rate is less than or equal to the first threshold and the number of links is less than the second threshold is destination transfer path.
一种示例,该第一阈值的大小为70%。第二阈值的大小可以根据目标业务到目标算力节点之间的链路数排序结果确定,本公开对此不作限定。An example, the first threshold is 70%. The size of the second threshold may be determined according to the ranking result of the number of links between the target service and the target computing power node, which is not limited in the present disclosure.
一种具体的示例,针对人脸识别匹配业务。资源分配装置判断出当前有4个可用算力节点,分别为:算力节点A、算力节点B、算力节点C、算力节点D。首先,资源分配装置确定目标业务的源节点到这4个算力节点的链路数。例如,到4个算力节点的链路数分别为:算力节点A:4跳、算力节点B:2跳、算力节点C:3跳、算力节点D:5跳。接着,资源分配装置对这4条目标路径进行升序排序,其排序结果为算力节点B、算力节点C、算力节点A、算力节点D。A specific example is for face recognition and matching business. The resource allocation device determines that there are currently four available computing power nodes, namely: computing power node A, computing power node B, computing power node C, and computing power node D. First, the resource allocation device determines the number of links from the source node of the target service to the four computing power nodes. For example, the number of links to four computing power nodes are: computing power node A: 4 hops, computing power node B: 2 hops, computing power node C: 3 hops, computing power node D: 5 hops. Next, the resource allocation device sorts the four target paths in ascending order, and the sorting results are computing power node B, computing power node C, computing power node A, and computing power node D.
进一步地,资源分配装置判断这4条路径中是否有带宽利用率超过70%的。例如,到算力节点A有5条链路,带宽均为100G,峰值流量均为50G,则带宽利用率均为50%;到算力节点B有3条链路,带宽均为50G,峰值流量分别为10G、30G、40G,则带宽利用率分别为20%、60%、80%;到算力节点C有4条链路,带宽分别为20G、50G、100G、200G,峰值流量分别为10G、20G、80G、100G,则带宽利用率分别为50%、40%、80%、50%;到算力节点D有6条链路,带宽均为200G,峰值流量均为50G,则带宽利用率均为25%。那么由于到算力节点B和到算力节点C的路径中有带宽利用率超过70%的情况,传输时延会比较大,无法满足业务需求,因此,资源分配装置从上述排序结果中删除算力节点B和算力节点C,得到新的排序结果:算力节点A算力节点D。由于算力节点A的链路数少,算力节点A的排序靠前,因此,资源分配装置将业务分配到算力节点A。Further, the resource allocation device judges whether any of the four paths has a bandwidth utilization rate exceeding 70%. For example, if there are 5 links to computing power node A, the bandwidth is 100G, and the peak traffic is 50G, the bandwidth utilization rate is 50%; there are 3 links to computing power node B, the bandwidth is 50G, and the peak traffic is 50G. The traffic is 10G, 30G, and 40G respectively, and the bandwidth utilization rates are 20%, 60%, and 80% respectively; there are 4 links to computing power node C, with bandwidths of 20G, 50G, 100G, and 200G, and the peak traffic is respectively 10G, 20G, 80G, 100G, the bandwidth utilization rate is 50%, 40%, 80%, 50% respectively; there are 6 links to computing power node D, the bandwidth is 200G, and the peak traffic is 50G, then the bandwidth The utilization rate is 25%. Then, because the bandwidth utilization rate of the path to computing power node B and computing power node C exceeds 70%, the transmission delay will be relatively large and cannot meet the business needs. Therefore, the resource allocation device deletes the computing power from the above sorting results Force node B and computing power node C, get a new ranking result: computing power node A computing power node D. Since the number of links of the computing power node A is small, the ranking of the computing power node A is higher, therefore, the resource allocation device allocates the business to the computing power node A.
可选的,资源分配装置确定出的目标传输路径中带宽利用率超过70%、且链路数小于第二阈值的路径,此时,将带宽利用率作为确定目标传输路径的首要考虑条件。例如,资源分配装置判断出当前有3个可用算力节点(算力节点E、算力节点F、算力节点G),且目标业务源节点到3个算力节点的链路数分别为算力节点E:2跳、算力节点F:3跳、算力节点G:2跳。其中,到算力节点E的3条链路,带宽利用率分别为20%、50%、90%;到算力节点F的4条链路,带宽利用率分别为85%、40%、30%、20%;到算力节点G的3条链路带宽利用率分别是95%、30%、50%。Optionally, among the target transmission paths determined by the resource allocation device, the bandwidth utilization rate exceeds 70% and the number of links is less than the second threshold. At this time, the bandwidth utilization rate is taken as the primary consideration condition for determining the target transmission path. For example, the resource allocation device judges that there are currently three available computing power nodes (computing power node E, computing power node F, and computing power node G), and the number of links from the target service source node to the three computing power nodes is Power node E: 2 hops, computing power node F: 3 hops, computing power node G: 2 hops. Among them, the bandwidth utilization rates of the three links to computing power node E are 20%, 50%, and 90% respectively; the bandwidth utilization rates of the four links to computing power node F are 85%, 40%, and 30% respectively. %, 20%; the bandwidth utilization rates of the three links to computing node G are 95%, 30%, and 50%, respectively.
进一步的,资源分配装置判断出当前目标路径的带宽利用率均大于70%。此时,将带宽利用率作为首要判断条件选择带宽利用率最小的路径。那么由于带宽利用率最小的是到算力节点F的路径,所以将业务分配到算力节点F。Further, the resource allocation device determines that the bandwidth utilization ratios of the current target paths are all greater than 70%. At this time, the bandwidth utilization rate is taken as the primary judgment condition to select the path with the smallest bandwidth utilization rate. Then, since the path to computing power node F has the smallest bandwidth utilization rate, the business is allocated to computing power node F.
需要说明的是,在业务传输过程中目标业务的传输时延主要受到传输链路中带宽利用率最大的链路影响,所以在选择目标链路时仅考虑带宽利用率最大的链路。It should be noted that during service transmission, the transmission delay of the target service is mainly affected by the link with the highest bandwidth utilization among the transmission links, so only the link with the highest bandwidth utilization is considered when selecting the target link.
值得注意的是,在带宽利用率均超过70%的情况下,若目标传输路径之间的带宽利用率差值小于等于3%,则选择目标传输路径仍以链路数作为首要考虑条件。It is worth noting that when the bandwidth utilization exceeds 70%, if the bandwidth utilization difference between the target transmission paths is less than or equal to 3%, the number of links is still the primary consideration for selecting the target transmission path.
结合图2,如图4所示,上述步骤204-步骤205具体还可以通过以下步骤401-步骤408中的一个或多个步骤实现。Referring to FIG. 2 , as shown in FIG. 4 , the above steps 204 - 205 may be specifically implemented by one or more of the following steps 401 - 408 .
步骤401、资源分配装置确定目标业务的第一类型算力资源需求。Step 401, the resource allocation device determines the first type of computing power resource requirements of the target business.
其中,第一类型算力资源包括:通用算力资源、图像算力资源、专用算力资源。Among them, the first type of computing power resources include: general computing power resources, image computing power resources, and dedicated computing power resources.
一种示例,例如,一般浮点计算类业务属于通用算力类业务,主要靠中央处理器(central processing unit,CPU)来运算;图像处理类业务属于图像算力类业务,主要靠图像处理器(graphics processing unit,GPU)来运算;现场可编程门阵列(fieldprogrammable gate array,FPGA)业务属于专用算力类业务,需要用到专门的处理器来运算。An example, for example, general floating-point computing services belong to general-purpose computing services, which mainly rely on the central processing unit (CPU) for calculation; image processing services belong to image computing services, mainly relying on image processors (graphics processing unit, GPU) to calculate; Field Programmable Gate Array (field programmable gate array, FPGA) business belongs to the special computing power business, which requires a special processor to operate.
步骤402、资源分配装置确定至少一个算力节点中,每个算力节点的第一类型算力资源的可用算力资源和剩余存储空间。Step 402, the resource allocation device determines the available computing power resources and remaining storage space of the first type of computing power resources of each computing power node in at least one computing power node.
一种可能的实现方式,资源分配装置判断每个算力节点中对应目标业务的芯片资源的剩余算力是否能够满足第一类型算力资源的可用算力资源。In a possible implementation manner, the resource allocation device judges whether the remaining computing power of chip resources corresponding to the target service in each computing power node can meet the available computing power resources of the first type of computing power resources.
一种示例,如下述表1所示,为每个算力节点的剩余可用算力资源。An example, as shown in Table 1 below, is the remaining available computing power resources of each computing power node.
表1、每个算力节点的剩余可用算力资源Table 1. The remaining available computing power resources of each computing power node
步骤403、资源分配装置根据至少一个算力节点中的第一算力资源,确定目标算力节点。Step 403, the resource allocation device determines a target computing power node according to the first computing power resource in at least one computing power node.
一种可能的实现方式,资源分配装置根据每个算力节点中可用的第一算力资源,来确定满足目标业务的目标算力节点。In a possible implementation manner, the resource allocation device determines a target computing power node that satisfies the target service according to the first computing power resources available in each computing power node.
值得注意的是,一种目标业务通常仅需要用到一种算力资源。因此,目标算力节点中仅需对应的第一类型算力资源能够满足目标业务的算力需求即可。若目标业务同时用到了多个类型的算力资源,则目标算力节点需要该多种算力类型的算力资源均满足目标业务的算力需求。在本公开实施例中,以目标业务仅需要用到一种算力资源为例进行说明。It is worth noting that a target business usually only requires one type of computing resource. Therefore, in the target computing power node, it is only necessary that the corresponding first type of computing power resource can meet the computing power demand of the target business. If the target business uses multiple types of computing power resources at the same time, the target computing power node needs the computing power resources of the multiple types of computing power to meet the computing power requirements of the target business. In the embodiment of the present disclosure, the target service only needs to use one kind of computing resources as an example for illustration.
一种示例,如下述表2所示,为本申请示例性的不同类型业务的算力需求。An example, as shown in Table 2 below, is the computing power requirements of different types of services in this application.
表2、不同类型业务的算力需求Table 2. Computing power requirements for different types of businesses
示例性的,结合表1。对于目标业务一,首先资源分配装置判断出每个算力节点的第一类型算力资源均满足业务一的算力要求。因此,资源分配装置确定表1中的全部算力节点为目标算力节点。Exemplary, combined with Table 1. For target business one, first, the resource allocation device judges that the computing power resource of the first type of each computing power node meets the computing power requirement of business one. Therefore, the resource allocation device determines all computing power nodes in Table 1 as target computing power nodes.
可选的,结合表1。对于目标业务二,首先资源分配装置判断出算力节点的第一类型算力资源只有算力节点A、算力节点C两个算力节点能够满足业务二的算力要求。因此,资源分配装置确定出表1中的目标算力节点为算力节点A、算力节点C。Optional, combined with Table 1. For the target service 2, firstly, the resource allocation device judges that only two computing power nodes, computing power node A and computing power node C, can meet the computing power requirements of the second business. Therefore, the resource allocation device determines that the target computing power nodes in Table 1 are computing power node A and computing power node C.
可选的,结合表1。对于目标业务三,首先资源分配装置判断出算力节点的第一类型算力资源有算力节点A、算力节点B、算力节点C三个算力节点能够满足业务三的算力要求。因此,资源分配装置确定出表1中的目标算力节点为算力节点A、算力节点B、算力节点C。Optional, combined with Table 1. For the target service three, firstly, the resource allocation device judges that the first type of computing power resources of the computing power nodes include computing power node A, computing power node B, and computing power node C, which can meet the computing power requirements of business three. Therefore, the resource allocation device determines that the target computing power nodes in Table 1 are computing power node A, computing power node B, and computing power node C.
步骤404、资源分配装置确定第一算力节点中可用存储资源大于存储资源需求的第一算力节点为目标算力节点。In step 404, the resource allocation device determines that among the first computing power nodes, the first computing power node whose available storage resource is greater than the storage resource requirement is the target computing power node.
一种可能的实现方式,资源分配装置在确定出满足目标业务的第一类型算力资源后,进一步的确定目标业务的存储需求以及步骤403中确定的目标算力节点的存储资源。In a possible implementation manner, the resource allocation device further determines the storage requirements of the target business and the storage resources of the target computing power node determined in step 403 after determining the first type of computing power resources that meet the target business.
示例性的,结合表1、表2。对于目标业务一,资源分配装置从步骤403确定出的目标算力节点中,进一步确定出满足目标业务一的存储需求的算力节点为算力节点A、算力节点C两个目标算力节点。Exemplarily, Table 1 and Table 2 are combined. For the target business 1, the resource allocation device further determines the computing power nodes meeting the storage requirements of the target business 1 from the target computing power nodes determined in step 403 as two target computing power nodes, computing power node A and computing power node C .
可选的,结合表1、表2。对于目标业务二,资源分配装置从步骤403确定出的目标算力节点中,进一步确定出满足目标业务二的存储需求的算力节点为算力节点C一个目标算力节点。Optionally, combine Table 1 and Table 2. For the target business 2, the resource allocation device further determines that the computing power node meeting the storage requirement of the target business 2 is a target computing power node C from the target computing power nodes determined in step 403 .
可选的,结合表1、表2。对于目标业务三,资源分配装置从步骤403确定出的目标算力节点中,进一步确定出满足目标业务三的存储需求的算力节点为算力节点A一个目标算力节点。Optionally, combine Table 1 and Table 2. For the target business three, the resource allocation device further determines the computing power node meeting the storage requirement of the target business three from the target computing power nodes determined in step 403 as a target computing power node of computing power node A.
步骤405、资源分配装置确定源节点到每个目标算力节点的传输路径的链路数。Step 405, the resource allocation device determines the number of links in the transmission path from the source node to each target computing power node.
一种可能的实现方式,资源分配装置确定源节点到每个目标算力的传输路径的路由器跳数,并根据路由器跳数确定链路数。其中,传输路径的链路数等于源节点和目的节点之间的路由器跳数+1。In a possible implementation manner, the resource allocation device determines the number of router hops of the transmission path from the source node to each target computing power, and determines the number of links according to the number of router hops. Wherein, the link number of the transmission path is equal to the router hop number+1 between the source node and the destination node.
示例性的,例如,步骤302中的源节点到算力节点A的路由器跳数为4跳,则源节点到算力节点A的链路数为5。Exemplarily, for example, the number of router hops from the source node to computing power node A in step 302 is 4 hops, and the number of links from the source node to computing power node A is 5.
步骤406、资源分配装置将源节点到每个目标算力节点的传输路径中,链路数最小的传输路径对应的目标算力节点,分配给目标业务。Step 406, the resource allocation device assigns the target computing power node corresponding to the transmission path with the smallest number of links among the transmission paths from the source node to each target computing power node to the target service.
一种可能的实现方式,资源分配装置确定出至少一个满足目标业务的算力资源需求和存储需求的目标算力节点后,根据目标业务源节点到目标算力节点之间的传输距离,选择传输距离最小的路径作为目标传输路径。In a possible implementation, after the resource allocation device determines at least one target computing power node that meets the computing power resource requirements and storage requirements of the target business, it selects the transmission distance according to the transmission distance between the target business source node and the target computing power node. The path with the smallest distance is used as the target transmission path.
示例性的,例如,步骤404中的业务一的可用算力节点有算力节点A、算力节点C两个。假设,业务一到算力节点A、算力节点C两个可用算力节点的链路数分别为3跳、5跳。资源分配装置根据就近传输原则,确定出目标传输路径为目标业务源节点到目标算力节点A之间的路径。Exemplarily, for example, there are two computing power nodes available for service one in step 404, computing power node A and computing power node C. Assume that the number of links from service 1 to computing power node A and computing power node C, two available computing power nodes, is 3 hops and 5 hops respectively. The resource allocation device determines the target transmission path as the path between the target service source node and the target computing power node A according to the principle of the nearest transmission.
需要指出的是,在本公开实施例中,资源分配装置对采集到的数据进行加密处理,并在数据传输过程中对数据进行加密传输,避免因数据被窃取导致的用户信息泄露。It should be pointed out that, in the embodiment of the present disclosure, the resource allocation device encrypts the collected data, and encrypts the data during data transmission, so as to avoid leakage of user information caused by data theft.
一种可能的实现方式中,资源分配装置还可以为目标业务配置优先级,以使得路由器根据目标业务的优先级优先传输高优先级的业务。具体如图4中的步骤407和步骤408所示。In a possible implementation manner, the resource allocating device may also configure priority for the target service, so that the router preferentially transmits high-priority services according to the priority of the target service. Specifically, as shown in step 407 and step 408 in FIG. 4 .
步骤407、资源分配装置在目标业务为低时延、低算力需求业务的情况下,为目标业务配置第一优先级。In step 407, the resource allocation device configures the first priority for the target service when the target service is a service with low latency and low computing power demand.
一种可能的实现方式,低时延、低算力业务对时延要求很高。资源分配装置在传输时将目标业务标明为第一优先级业务,然后分配到链路数最小且带宽利用率最小的算力节点上。One possible implementation method, low-latency, low-computing-power services have high requirements on latency. The resource allocation device marks the target service as the first priority service during transmission, and then allocates it to the computing power node with the smallest number of links and the smallest bandwidth utilization rate.
步骤408、资源分配装置在目标业务为高时延、高算力需求业务的情况下,为目标业务配置第二优先级。In step 408, the resource allocation device configures the second priority for the target service when the target service is a service with high latency and high computing power demand.
其中,第一优先级高于所述第二优先级。Wherein, the first priority is higher than the second priority.
一种可能的实现方式,高时延、高算力业务对于时延要求不高,资源分配装置在传输时将目标业务标明为第二优先级业务,在传输中遇到第一优先级业务,则暂停传输,直到第一优先级业务传输完成后再传输。In a possible implementation mode, high-delay and high-computing-power services do not have high requirements for time delay. The resource allocation device marks the target service as the second-priority service during transmission, and when encountering the first-priority service during transmission, Then, the transmission is suspended until the transmission of the first priority service is completed.
需要指出的是,本申请不对步骤407-408,与步骤401-步骤406之间的先后顺序进行限定。资源分配装置可以先执行步骤401-步骤406,然后执行步骤407-408。或者,资源分配装置也可以先执行步骤407-408,然后执行步骤401-步骤406。又或者,资源分配装置还可以同时执行步骤407-408,与步骤401-步骤406,本申请对此不做限定。It should be noted that this application does not limit the order of steps 407-408 and steps 401-406. The resource allocation device may first perform steps 401-406, and then perform steps 407-408. Alternatively, the resource allocation apparatus may also perform steps 407-408 first, and then perform steps 401-406. Alternatively, the resource allocation apparatus may also execute steps 407-408, and steps 401-406 at the same time, which is not limited in this application.
以上,对本申请实施例提供的资源分配方法进行了详细说明。Above, the resource allocation method provided by the embodiment of the present application has been described in detail.
以下,结合图5,对资源分配装置接收到目标业务之后,为目标业务分配算力资源的整体过程进行说明:In the following, with reference to Figure 5, the overall process of allocating computing power resources for the target business after the resource allocation device receives the target business will be described:
步骤501、资源分配装置获取目标业务。Step 501, the resource allocation device acquires a target service.
步骤502、资源分配装置确定目标业务的业务类型。Step 502, the resource allocation device determines the service type of the target service.
其中,步骤502的具体实现方式与上述步骤201类似,其具体实现过程可以参照上述步骤201,此处不再赘述。Wherein, the specific implementation manner of step 502 is similar to the above-mentioned step 201, and the specific implementation process may refer to the above-mentioned step 201, which will not be repeated here.
具体来说,在目标业务为低时延、低算力需求业务的情况下,资源分配装置采用以下步骤503和步骤506记载的方式为目标业务分配算力资源。Specifically, when the target business is a low-latency, low-computing-demand business, the resource allocation device allocates computing power resources for the target business in the manner described in steps 503 and 506 below.
在目标业务为高时延、高算力需求业务的情况下,资源分配装置采用以下步骤507至步骤513记载的方式为目标业务分配算力资源。In the case that the target service is a service with high latency and high demand for computing power, the resource allocation device allocates computing power resources for the target service in the manner described in steps 507 to 513 below.
在目标业务为低时延、高算力需求业务的情况下,资源分配装置采用以下步骤514记载的方式为目标业务分配算力资源。以下进行详细说明。In the case that the target service is a service with low latency and high demand for computing power, the resource allocation device allocates computing power resources for the target service in the manner described in step 514 below. The details will be described below.
需要指出的是,在目标业务为高时延、低算力需求业务的情况下,现有资源分配方法即可满足目标业务的需求,本公开对此不作限定。It should be pointed out that, when the target service is a service with high latency and low computing power demand, the existing resource allocation method can meet the demand of the target service, which is not limited in this disclosure.
步骤503、在目标业务为低时延低算力业务的情况下,资源分配装置根据源节点到至少一个算力节点的传输路径的链路数进行升序排序。Step 503, in the case that the target service is a service with low latency and low computing power, the resource allocation device sorts in ascending order according to the number of links in the transmission path from the source node to at least one computing power node.
其中,步骤503的具体实现方式与上述步骤301类似,其具体实现过程可以参照上述步骤301,此处不再赘述。Wherein, the specific implementation manner of step 503 is similar to the above-mentioned step 301, and the specific implementation process may refer to the above-mentioned step 301, which will not be repeated here.
步骤504、资源分配装置删除源节点到至少一个算力节点传输路径中带宽利用率大于第一阈值的传输路径。Step 504, the resource allocation device deletes the transmission path from the source node to at least one computing power node with a bandwidth utilization rate greater than a first threshold.
一种可能的实现方式,资源分配装置确定出源节点到至少一个算力节点传输路径的带宽利用率后,将带宽利用率大于第一阈值的传输路径删除。In a possible implementation manner, after determining the bandwidth utilization rate of the transmission path from the source node to at least one computing power node, the resource allocation device deletes the transmission path whose bandwidth utilization rate is greater than the first threshold.
步骤505、资源分配装置分配目标业务到链路数最小的传输路径上。Step 505, the resource allocation device allocates the target service to the transmission path with the smallest number of links.
其中,上述步骤504和步骤505的具体实现方式与上述步骤302类似,其具体实现过程可以参照上述步骤302,此处不再赘述。Wherein, the specific implementation manners of the above-mentioned step 504 and step 505 are similar to the above-mentioned step 302, and the specific implementation process may refer to the above-mentioned step 302, which will not be repeated here.
步骤506、资源分配装置为目标业务配置第一优先级。Step 506, the resource allocation device configures the first priority for the target service.
一种可能的实现方式,资源分配装置在传输目标业务时,将目标业务的数据包标明第一优先级,在传输过程中优先传输。In a possible implementation manner, when the resource allocation device transmits the target service, it marks the data packet of the target service with the first priority, and transmits it preferentially during the transmission process.
其中,步骤506的具体实现方式与上述步骤406类似,其具体实现过程可以参照上述步骤406,此处不再赘述。Wherein, the specific implementation manner of step 506 is similar to the above-mentioned step 406, and the specific implementation process may refer to the above-mentioned step 406, which will not be repeated here.
步骤507、在目标业务为高时延高算力业务的情况下,资源分配装置确定当前算力枢纽节点中的各种资源情况。Step 507, in the case that the target service is a service with high latency and high computing power, the resource allocation device determines various resource conditions in the current computing power hub node.
其中,步骤507的具体实现方式与上述步骤402类似,其具体实现过程可以参照上述步骤402,此处不再赘述。Wherein, the specific implementation manner of step 507 is similar to the above-mentioned step 402, and the specific implementation process may refer to the above-mentioned step 402, which will not be repeated here.
步骤508、资源分配装置确定业务所需的算力类别。Step 508, the resource allocation device determines the type of computing power required by the business.
其中,步骤508的具体实现方式与上述步骤401类似,其具体实现过程可以参照上述步骤401,此处不再赘述。Wherein, the specific implementation manner of step 508 is similar to the above-mentioned step 401, and the specific implementation process may refer to the above-mentioned step 401, which will not be repeated here.
步骤509、资源分配装置确定算力节点剩余算力资源是否满足业务需求。Step 509, the resource allocation device determines whether the remaining computing power resources of the computing power nodes meet the business requirements.
其中,步骤509的具体实现方式与上述步骤403类似,其具体实现过程可以参照上述步骤403,此处不再赘述。Wherein, the specific implementation manner of step 509 is similar to the above-mentioned step 403, and the specific implementation process may refer to the above-mentioned step 403, which will not be repeated here.
步骤510、资源分配装置确定剩余存储空间是否满足目标业务需求。Step 510, the resource allocation device determines whether the remaining storage space satisfies the target service requirement.
其中,步骤510的具体实现方式与上述步骤404类似,其具体实现过程可以参照上述步骤404,此处不再赘述。Wherein, the specific implementation manner of step 510 is similar to the above-mentioned step 404, and the specific implementation process may refer to the above-mentioned step 404, which will not be repeated here.
步骤511、资源分配装置分配目标业务到链路数最小的传输路径上。Step 511, the resource allocation device allocates the target service to the transmission path with the smallest number of links.
其中,步骤511的具体实现方式与上述步骤405类似,其具体实现过程可以参照上述步骤405,此处不再赘述。Wherein, the specific implementation manner of step 511 is similar to the above-mentioned step 405, and the specific implementation process may refer to the above-mentioned step 405, which will not be repeated here.
需要指出的是,资源分配装置将目标业务分配到可用算力资源和可用存储资源均满足目标业务的需求的至少一个算力节点中,与目标业务的源节点之间的链路数最小的传输路径上。It should be pointed out that the resource allocation device allocates the target service to at least one computing power node whose available computing power resources and available storage resources meet the needs of the target service, and the transmission node with the smallest number of links between the source node and the target service on the path.
步骤512、资源分配装置标明目标业务为第二优先级业务。Step 512, the resource allocation device marks the target service as the second priority service.
一种可能的实现方式,资源分配装置在传输目标业务时,将目标业务的数据包标明第二优先级。In a possible implementation manner, when the resource allocation device transmits the target service, it marks the data packet of the target service with the second priority.
其中,步骤512的具体实现方式与上述步骤407类似,其具体实现过程可以参照上述步骤407,此处不再赘述。Wherein, the specific implementation manner of step 512 is similar to the above-mentioned step 407, and the specific implementation process may refer to the above-mentioned step 407, which will not be repeated here.
步骤513、资源分配装置更新当前算力节点中的各种资源情况。Step 513, the resource allocation device updates various resource conditions in the current computing power node.
一种可能的实现方式,资源分配装置在传输高时延、高算力业务的同时,也实时更新可用的至少一个算力节点的各种资源情况。以保证下一个高时延、高算力业务能分配到最佳的算力节点上。In a possible implementation manner, the resource allocation device also updates various resource conditions of at least one available computing power node in real time while transmitting services with high latency and high computing power. To ensure that the next high-latency, high-computing power business can be allocated to the best computing power node.
步骤514、在目标业务为低时延、高算力业务的情况下,资源分配装置分配目标业务到传输专线。Step 514, when the target service is a low-latency, high-computing service, the resource allocation device allocates the target service to the dedicated transmission line.
一种可能的实现方式,低时延、高算力业务对于时延和算力都有很高的要求,可为这类业务部署传输专线来保证这类业务的正常运行。One possible implementation method, low-latency, high-computing-power services have high requirements for both delay and computing power, and dedicated transmission lines can be deployed for such services to ensure the normal operation of such services.
以上,对本公开实施例涉及到的业务传输的装置,以及资源分配装置的各个设备的功能,设备之间的交互进行了详细说明。Above, the device for service transmission involved in the embodiment of the present disclosure, and the functions of each device of the resource allocation device, and the interaction between the devices are described in detail.
可以看出,上述主要从方法的角度对本公开实施例提供的技术方案进行了介绍。为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,本公开实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。It can be seen that the foregoing mainly introduces the technical solutions provided by the embodiments of the present disclosure from the perspective of methods. In order to realize the above functions, it includes corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementation should not be considered beyond the scope of the present disclosure.
本公开实施例可以根据上述方法示例对资源分配装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可选的,本公开实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present disclosure may divide the resource allocation device into functional modules according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. Optionally, the division of modules in the embodiments of the present disclosure is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
本公开实施例可以根据上述方法示例对资源分配装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可选的,本公开实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present disclosure may divide the resource allocation device into functional modules according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. Optionally, the division of modules in the embodiments of the present disclosure is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
本公开实施例提供了一种资源分配装置,用于执行上述数据完整性确定系统中任一设备所需执行的方法。该资源分配装置可以为本公开中涉及的资源分配装置,或者资源分配装置中的模块;或者是资源分配装置中的芯片,也可以是其他用于执行资源分配确定方法的装置,本公开对此不做限定。An embodiment of the present disclosure provides a resource allocation device, which is used to execute the method required by any device in the above-mentioned data integrity determination system. The resource allocation device may be the resource allocation device involved in the present disclosure, or a module in the resource allocation device; or a chip in the resource allocation device, or other devices for executing the method for determining resource allocation. No limit.
如图6所示,为本公开实施例提供的一种资源分配装置的结构示意图。该资源分配装置包括:通信单元601和处理单元602。As shown in FIG. 6 , it is a schematic structural diagram of a resource allocation device provided by an embodiment of the present disclosure. The resource allocation apparatus includes: a
处理单元602,用于确定目标业务的类型;还用于在目标业务为低时延、低算力需求业务的情况下,确定目标业务的源节点与至少一个算力节点之间的n条传输路径,n为正整数;还用于从n条传输路径中选择满足预设条件的目标传输路径,传输目标业务;还用于在目标业务为高时延、高算力需求业务的情况下,确定目标业务所需的资源;还用于从至少一个算力节点中选择目标算力节点;目标算力节点的可用资源满足目标业务所需的资源;还用于根据源节点与目标算力节点之间的传输路径,传输目标业务。The
可选的,处理单元602,具体用于:确定n条路径中每条路径的链路数,以及每条路径的带宽利用率;Optionally, the
确定n条路径中带宽利用率大于或等于第一阈值、且链路数小于第二阈值的路径为目标传输路径。Determining a path among the n paths whose bandwidth utilization rate is greater than or equal to the first threshold and whose number of links is less than the second threshold is the target transmission path.
可选的,处理单元602,具体用于:确定目标业务所需的第一类型算力资源的算力资源需求;第一类型算力资源为以下之一:通用算力资源,图像算力资源,专用算力;Optionally, the
确定至少一个算力节点中,每个算力节点的第一类型算力资源的可用算力资源;Determining available computing power resources of the first type of computing power resources of each computing power node in at least one computing power node;
根据至少一个算力节点中的第一算力节点,确定目标算力节点;第一算力节点的第一类型算力资源的可用算力资源大于算力资源需求。A target computing power node is determined according to a first computing power node in the at least one computing power node; the available computing power resource of the first type of computing power resource of the first computing power node is greater than the computing power resource requirement.
可选的,处理单元602,具体用于:确定目标业务的存储资源需求,以及第一算力节点的可用存储资源;Optionally, the
确定第一算力节点中可用存储资源大于存储资源需求的第一算力节点,为目标算力节点。Determine the first computing power node whose available storage resources are greater than the storage resource requirement among the first computing power nodes is the target computing power node.
可选的,处理单元602,具体用于:根据所述源节点与目标算力节点之间的传输路径,传输目标业务,包括:Optionally, the
确定源节点到每个目标算力节点的传输路径的链路数;Determine the number of links in the transmission path from the source node to each target computing power node;
从源节点到每个目标算力节点的传输路径中,选择链路数最小的传输路径传输所述目标业务。In the transmission path from the source node to each target computing power node, select the transmission path with the smallest number of links to transmit the target service.
可选的,处理单元602,具体用于:在目标业务为低时延、低算力需求业务的情况下,为目标业务配置第一优先级;Optionally, the
在目标业务为高时延、高算力需求业务的情况下,为目标业务配置第二优先级;其中,第一优先级高于第二优先级。When the target service is a service with high latency and high computing power demand, configure the second priority for the target service; wherein, the first priority is higher than the second priority.
可选的,装置还包括通信单元601;通信单元601,用于获取第一高铁用户终端的网络参数;网络参数包括:测量报告和用户话单;处理单元602,还用于根据第一高铁用户终端的网络参数确定高铁用户行为模型;其中,高铁用户行为模型用于确定高铁用户终端的业务中业务占比大于预设占比的业务;处理单元602,还用于根据高铁用户行为模型,确定目标业务。Optionally, the device further includes a
本公开实施例提供了一种资源分配装置,用于执行上述数据完整性确定系统中任一设备所需执行的方法。该资源分配装置可以为本公开中涉及的资源分配装置,或者资源分配装置中的模块;或者是资源分配装置中的芯片,也可以是其他用于执行资源分配确定方法的装置,本公开对此不做限定。An embodiment of the present disclosure provides a resource allocation device, which is used to execute the method required by any device in the above-mentioned data integrity determination system. The resource allocation device may be the resource allocation device involved in the present disclosure, or a module in the resource allocation device; or a chip in the resource allocation device, or other devices for executing the method for determining resource allocation. No limit.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当计算机执行该指令时,该计算机执行上述方法实施例所示的方法流程中的各个步骤。Embodiments of the present disclosure also provide a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above-mentioned method embodiments.
本公开的实施例提供一种包含指令的计算机程序产品,当指令在计算机上运行时,使得计算机执行上述方法实施例中的资源分配方法。Embodiments of the present disclosure provide a computer program product containing instructions, and when the instructions are run on a computer, the computer is made to execute the resource allocation method in the above method embodiments.
本公开的实施例提供一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行计算机程序或指令,以实现如上述方法实施例中的资源分配方法。Embodiments of the present disclosure provide a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run computer programs or instructions to implement the resource allocation method in the above method embodiments.
其中,计算机可读存储介质,例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘。随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、寄存器、硬盘、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的人以合适的组合、或者本领域数值的任何其他形式的计算机可读存储介质。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于特定用途集成电路(Application Specific Integrated Circuit,ASIC)中。在本公开实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Wherein, the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connection having one or more wires, portable computer disk, hard disk. Random Access Memory (Random Access Memory, RAM), Read-Only Memory (Read-Only Memory, ROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), registers, hard disk, optical fiber, portable compact Disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium in a suitable combination of the above, or values in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may be located in an application specific integrated circuit (Application Specific Integrated Circuit, ASIC). In the embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
由于本公开的实施例中的装置、设备、计算机可读存储介质、计算机程序产品可以应用于上述方法,因此,其所能获得的技术效果也可参考上述方法实施例,本公开实施例在此不再赘述。Since the devices, equipment, computer-readable storage media, and computer program products in the embodiments of the present disclosure can be applied to the above-mentioned methods, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present disclosure are hereby No longer.
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何在本公开揭露的技术范围内的变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应该以权利要求的保护范围为准。The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present disclosure shall be covered within the protection scope of the present disclosure . Therefore, the protection scope of the present disclosure should be determined by the protection scope of the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210993804.0A CN115396514B (en) | 2022-08-18 | 2022-08-18 | Resource allocation method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210993804.0A CN115396514B (en) | 2022-08-18 | 2022-08-18 | Resource allocation method, device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115396514A CN115396514A (en) | 2022-11-25 |
| CN115396514B true CN115396514B (en) | 2023-05-26 |
Family
ID=84119815
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210993804.0A Active CN115396514B (en) | 2022-08-18 | 2022-08-18 | Resource allocation method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115396514B (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118175118A (en) * | 2022-12-08 | 2024-06-11 | 中国科学院声学研究所 | A distributed resource scheduling method for data centers based on ICN network |
| CN115955383B (en) * | 2023-03-14 | 2023-05-16 | 中国电子科技集团公司第五十四研究所 | A wideband, low-latency, high-precision mixed computing power signal collaborative processing system |
| CN116886525A (en) * | 2023-07-14 | 2023-10-13 | 中国电信股份有限公司技术创新中心 | Computing network resource allocation method and device, computing network resource allocation equipment and system |
| CN117170870B (en) * | 2023-09-05 | 2024-04-26 | 国网智能电网研究院有限公司 | New energy consumption-oriented data center calculation force migration method and device |
| CN118798668A (en) * | 2024-04-02 | 2024-10-18 | 中国移动通信集团设计院有限公司 | Data center planning method, device, equipment, medium and program product |
| CN119520534A (en) * | 2024-12-05 | 2025-02-25 | 南方电网数字平台科技(广东)有限公司 | Task processing method, device, computer equipment, readable storage medium and program product |
| CN120602998A (en) * | 2025-08-05 | 2025-09-05 | 浪潮通信信息系统有限公司 | Method and device for collaborative scheduling of computing network |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8824274B1 (en) * | 2011-12-29 | 2014-09-02 | Juniper Networks, Inc. | Scheduled network layer programming within a multi-topology computer network |
| CN113315700A (en) * | 2020-02-26 | 2021-08-27 | 中国电信股份有限公司 | Computing resource scheduling method, device and storage medium |
| CN113448721A (en) * | 2020-03-27 | 2021-09-28 | 中国移动通信有限公司研究院 | Network system for computing power processing and computing power processing method |
| CN114884862A (en) * | 2022-06-06 | 2022-08-09 | 中国联合网络通信集团有限公司 | Terminal service processing method and device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115699050A (en) * | 2019-11-05 | 2023-02-03 | 强力价值链网络投资组合2019有限公司 | Value chain network control tower and enterprise management platform |
-
2022
- 2022-08-18 CN CN202210993804.0A patent/CN115396514B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8824274B1 (en) * | 2011-12-29 | 2014-09-02 | Juniper Networks, Inc. | Scheduled network layer programming within a multi-topology computer network |
| CN113315700A (en) * | 2020-02-26 | 2021-08-27 | 中国电信股份有限公司 | Computing resource scheduling method, device and storage medium |
| CN113448721A (en) * | 2020-03-27 | 2021-09-28 | 中国移动通信有限公司研究院 | Network system for computing power processing and computing power processing method |
| CN114884862A (en) * | 2022-06-06 | 2022-08-09 | 中国联合网络通信集团有限公司 | Terminal service processing method and device |
Non-Patent Citations (1)
| Title |
|---|
| 基于拓扑感知的可重构服务承载网动态重构算法;梁宁宁;兰巨龙;张震;;通信学报(第02期);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115396514A (en) | 2022-11-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN115396514B (en) | Resource allocation method, device and storage medium | |
| CN111246586B (en) | A method and system for allocating smart grid resources based on genetic algorithm | |
| CN108260169A (en) | A kind of service function chain dynamic deployment method ensured based on QoS | |
| CN104301933B (en) | A method for calculating bandwidth and allocating bandwidth in wireless ad hoc network | |
| CN106506043B (en) | Data transmission method, control device and equipment in a kind of PLC system | |
| CN105827528B (en) | A kind of route selection method suitable for the flexible optical-fiber network of frequency spectrum | |
| CN109947574B (en) | Fog network-based vehicle big data calculation unloading method | |
| CN108566659A (en) | A kind of online mapping method of 5G networks slice based on reliability | |
| CN114363984B (en) | Cloud edge collaborative optical carrier network spectrum resource allocation method and system | |
| CN110365526A (en) | A VNF deployment method and system for energy saving and QoS guarantee | |
| CN112867088B (en) | Dynamic adjustment method and system for cloud-edge-end communication architecture | |
| CN110958133B (en) | Network slice mapping method, device, server and storage medium | |
| CN114071582A (en) | Service chain deployment method and device for cloud-edge collaborative Internet of things | |
| CN112291791B (en) | Power communication mesh bandwidth resource allocation method based on 5G slice | |
| CN105681153A (en) | Virtual network mapping method and device | |
| CN107277832A (en) | A kind of mapping method of wireless dummy network | |
| CN109743751B (en) | Resource allocation method and device for wireless access network | |
| CN110535705A (en) | A kind of service function chain building method of adaptive user delay requirement | |
| CN105391651A (en) | Virtual optical network multilayer resource convergence method and system | |
| CN108076531A (en) | A kind of wireless network section resource dynamic distributing method of multi-service oriented business | |
| CN106549782A (en) | The bandwidth scheduling method and device of association stream in a kind of data center | |
| CN104994508A (en) | Cognitive radio mesh network resource distribution and routing method | |
| CN106028453A (en) | Cross-layer Scheduling and Mapping Method of Wireless Virtual Network Resources Based on Queuing Theory | |
| Happ et al. | On the impact of clustering for IoT analytics and message broker placement across cloud and edge | |
| CN110190988B (en) | A service deployment method and device |
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 |