Computing power route generation method and device, electronic equipment and storage medium

By generating and aggregating computing power resource vectors, the problem of routing deceleration caused by the increase in computing power node scale is solved, and the routing addressing efficiency in the computing power network is improved.

CN118784546APending Publication Date: 2024-10-15CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410986478.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, the increase in the scale of computing power nodes leads to the problem of slowdown in routing addressing.

Method used

By obtaining the routing information and resource information of the computing power node, the computing power resource vector is generated, and when the preset conditions are met, the routing information and resource vector are aggregated to generate an aggregate routing table, and the routing table entries are optimized to improve addressing efficiency.

Benefits of technology

It improves the efficiency of routing and addressing when the scale of computing power nodes in the computing power network increases, reduces the size of the routing table, and increases the speed of computing power routing and addressing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784546A_ABST
    Figure CN118784546A_ABST
Patent Text Reader

Abstract

The invention provides a computing power route generation method and device, electronic equipment and a storage medium, and relates to the technical field of communication networks, and the method comprises the steps: obtaining the route information and computing power resource information of at least one computing power node; generating a computing power resource vector of the computing power resource information; and generating a routing table comprising the routing information of the at least one computing power node and the computing power resource vector. According to the method, the routing addressing efficiency under the condition that the scale of the computing power nodes in the computing power network is increased can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication network technology, and in particular to a computing power routing generation method, device, electronic device and storage medium. Background Art

[0002] With the development of science and technology, especially with the rapid development of technologies such as the Internet of Things, cloud computing and edge computing, computing power has become one of the resources in the network that is equally important as bandwidth, throughput and other resources. Among them, the computing force network (Computing Force Network-dynamic anycast, CFN-dyncast) is a distributed technology used for the computing power load and network status of multiple edge computing technology (Mobile Edge Computing, MEC) sites to schedule user needs to the optimal MEC site.

[0003] In the prior art, routing protocols are based on sharing routing information between routers to support routable protocols, wherein routing information is transmitted between adjacent routers to ensure that all routers know the path to other routers. Routing aggregation is usually used to reduce the size of the routing table in the router to save memory and shorten the time required for the Internet Protocol (IP) to analyze the routing table to find the path to the remote network. In the computing power network, the computing power routing corresponding to the individual computing devices is required to ensure the coordinated scheduling of computing power resources within the network.

[0004] It can be seen that the existing technology has the problem of slowing down routing addressing due to the increase in the scale of computing power nodes in computing power routing. Summary of the invention

[0005] Embodiments of the present invention provide a computing power routing generation method, device, electronic device and storage medium to solve the problem in the prior art that routing addressing is slowed down due to the increase in the scale of computing power nodes.

[0006] In a first aspect, an embodiment of the present invention provides a computing power routing generation method, including:

[0007] Obtain routing information and computing resource information of at least one computing power node;

[0008] Generate a computing power resource vector of the computing power resource information;

[0009] Generate a routing table including the routing information of the at least one computing power node and the computing power resource vector.

[0010] Optionally, the at least one computing power node includes a first computing power node and a second computing power node, and the generating a routing table including the routing information and the computing power resource vector includes:

[0011] When the first computing power node and the second computing power node meet the preset conditions, aggregating the routing information and the computing power resource vector of the first computing power node and the second computing power node to obtain the aggregated routing information and the aggregated computing power resource vector of the first computing power node and the second computing power node;

[0012] A routing table including the aggregated routing information and the aggregated computing power resource vector is generated.

[0013] Optionally, the computing power resource information includes at least one of the following: central processing unit CPU computing power, memory, network bandwidth, solid state drive storage space, and mechanical hard drive storage space.

[0014] Optionally, when the first computing power node and the second computing power node meet preset conditions, aggregating the routing information and the computing power resource vector of the first computing power node and the second computing power node to obtain the aggregated routing information and the aggregated computing power resource vector of the first computing power node and the second computing power node includes:

[0015] When the next hop addresses of the first computing power node and the second computing power node are the same, selecting computing power resource vectors corresponding to the first computing power node and the second computing power node respectively, and comparing the vector lengths;

[0016] When the vector lengths are the same, the size of each sub-item in the computing power resource vectors corresponding to the first computing power node and the second computing power node is compared in sequence;

[0017] When each sub-item in the computing power resource vector corresponding to the first computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the second computing power node, the routing information and the computing power resource vector of the first computing power node and the second computing power node are aggregated to obtain the aggregated routing information and the above-mentioned aggregated computing power resource vector.

[0018] Optionally, the routing information and the computing resource vector of the first computing node and the second computing node are aggregated according to the following rule:

[0019] The routing information of the second computing power node is combined with the routing information of the first computing power node to obtain the aggregated routing information, wherein the Internet Protocol IP address in the aggregated routing information is obtained by modifying the Internet Protocol IP address of the first computing power node;

[0020] The computing power resource vector of the first computing power node is retained, and the computing power resource vector of the second computing power node is deleted to obtain the aggregated computing power resource vector.

[0021] Optionally, the computing power node further includes a third computing power node and a fourth computing power node, wherein the next hop addresses of the first computing power node and the second computing power node are the same, and the next hop addresses of the third computing power node and the fourth computing power node are the same;

[0022] Before generating the routing table including the aggregate routing information and the aggregate computing power resource vector, the method further includes:

[0023] When the next hop addresses of the third computing power node and the fourth computing power node are the same, selecting computing power resource vectors corresponding to the third computing power node and the fourth computing power node respectively, and comparing the vector lengths;

[0024] When the vector lengths are the same, the size of each sub-item in the computing power resource vectors corresponding to the third computing power node and the fourth computing power node is compared in sequence;

[0025] When each corresponding part of each sub-item in the computing power resource vector corresponding to the third computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the fourth computing power node, maintain the routing information and the computing power resource vector of the third computing power node and the fourth computing power node;

[0026] Among them, the routing information and the computing power resource vector of the third computing power node are synchronized to the routing table, and the routing information and the computing power resource vector of the fourth computing power node are synchronized to the routing table.

[0027] In a second aspect, an embodiment of the present invention further provides a computing power routing generation device, including:

[0028] An acquisition module, used to acquire routing information and computing resource information of at least one computing power node;

[0029] A first generating module, configured to generate a computing power resource vector of the computing power resource information;

[0030] The second generation module is used to generate a routing table including the routing information of the at least one computing power node and the computing power resource vector.

[0031] Optionally, the at least one computing power node includes a first computing power node and a second computing power node, and the second generating module includes:

[0032] an aggregation unit, configured to aggregate the routing information and the computing resource vector of the first computing node and the second computing node to obtain the aggregated routing information and the aggregated computing resource vector of the first computing node and the second computing node when the first computing node and the second computing node meet a preset condition;

[0033] The first generating unit is used to generate a routing table including the aggregate routing information and the aggregate computing power resource vector.

[0034] Optionally, the computing power resource information includes at least one of the following: central processing unit CPU computing power, memory, network bandwidth, solid state drive storage space, and mechanical hard drive storage space.

[0035] Optionally, the polymerization unit comprises:

[0036] A first processing subunit is configured to select computing resource vectors corresponding to the first computing node and the second computing node respectively, and compare the vector lengths when the next hop addresses of the first computing node and the second computing node are the same;

[0037] A second processing subunit is used to compare the size of each sub-item in the computing power resource vector corresponding to the first computing power node and the second computing power node respectively when the lengths of the vectors are the same;

[0038] The third processing sub-unit is used to aggregate the routing information and the computing resource vector of the first computing power node and the second computing power node when each sub-item in the computing power resource vector corresponding to the first computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the second computing power node, so as to obtain the aggregated routing information and the above-mentioned aggregated computing power resource vector.

[0039] Optionally, the routing information and the computing resource vector of the first computing node and the second computing node are aggregated according to the following rule:

[0040] The routing information of the second computing power node is combined with the routing information of the first computing power node to obtain the aggregated routing information, wherein the Internet Protocol IP address in the aggregated routing information is obtained by modifying the Internet Protocol IP address of the first computing power node;

[0041] The computing power resource vector of the first computing power node is retained, and the computing power resource vector of the second computing power node is deleted to obtain the aggregated computing power resource vector.

[0042] Optionally, the computing power node further includes a third computing power node and a fourth computing power node, wherein the next hop addresses of the first computing power node and the second computing power node are the same, and the next hop addresses of the third computing power node and the fourth computing power node are the same;

[0043] The device also includes:

[0044] A first processing module, configured to select computing resource vectors corresponding to the third computing node and the fourth computing node respectively, and compare vector lengths when the next hop addresses of the third computing node and the fourth computing node are the same;

[0045] A second processing module, configured to, when the vector lengths are the same, sequentially compare the size of each sub-item in the computing power resource vectors corresponding to the third computing power node and the fourth computing power node respectively;

[0046] A third processing module, configured to maintain the routing information and the computing power resource vector of the third computing power node and the fourth computing power node when each corresponding part of each sub-item in the computing power resource vector corresponding to the third computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the fourth computing power node;

[0047] Among them, the routing information and the computing power resource vector of the third computing power node are synchronized to the routing table, and the routing information and the computing power resource vector of the fourth computing power node are synchronized to the routing table.

[0048] In a third aspect, an embodiment of the present invention provides an electronic device, including a transceiver and a processor.

[0049] The transceiver is used to obtain routing information and computing resource information of at least one computing node;

[0050] The processor is used to generate a computing power resource vector of the computing power resource information;

[0051] The processor is further used to generate a routing table including the routing information of the at least one computing power node and the computing power resource vector.

[0052] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the computing power routing generation method described in the first aspect are implemented.

[0053] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the computing power routing generation method described in the first aspect are implemented.

[0054] In a sixth aspect, an embodiment of the present invention provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the computing power routing generation method as described in the first aspect.

[0055] In an embodiment of the present invention, the routing information and computing power resource information of at least one computing power node are first obtained, and then a computing power resource vector of each computing power node is generated according to the computing power resource information. Finally, a routing table including the routing information and computing power resource vector of the at least one computing power node is generated. Through this method, the computing power resource vector representing the computing power can be added to the routing table, which provides a basis for realizing computing power routing addressing and computing power routing aggregation, and further improves the efficiency of routing addressing when the scale of computing power nodes in the computing power network increases. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0057] Figure 1 It is a flowchart of a computing power routing generation method provided by an embodiment of the present invention;

[0058] Figure 2 It is a structural schematic diagram of a computing power routing generation device provided by an embodiment of the present invention;

[0059] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] The terms "first", "second", etc. in the embodiments of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. 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.

[0062] In the related art, the cloud computing model (Serverless) is a serverless computing technology. When using Serverless computing nodes, users need to pay attention to the overall computing power information of Serverless computing nodes, such as how much available memory or how much mechanical disk storage space is available. In order to transmit computing power information in computing power routing, an embodiment of the present invention provides a computing power routing generation method.

[0063] See also Figure 1 , Figure 1 is a flow chart of a computing power routing generation method provided by an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0064] Step 101: Obtain routing information and computing resource information of at least one computing node.

[0065] Step 102: Generate a computing power resource vector for the computing power resource information.

[0066] Step 103: Generate a routing table including the routing information of the at least one computing power node and the computing power resource vector.

[0067] In step 101, the computing power node can be understood as a router device in the target area, or as a device node, and the routing information can be understood as a routing table. In the construction of the router, the routing table does not directly participate in the transmission of the data packet, but is used to generate a small pointing table. The pointing table only contains the priority path for data packet transmission selected by the routing algorithm. The table is usually compressed or compiled in advance to optimize hardware storage and search. In the embodiment of the present invention, the Border Gateway Protocol (BGP) is used as an example, and the resulting routing table can be shown in Table 1 below:

[0068] Table 1

[0069] Network NextHop Metric LocPrf Weight Path 4.4.4.4 / 32 1.2.3.4 0 - 20 e

[0070] In addition, the above computing power resource information represents the overall computing power information of the computing power node, for example: the computing power node A has a central processing unit (CPU) computing power of 100vCPU, a memory of 200GB, a network bandwidth of 10000Mb, a solid state drive (SSD) storage space of 300GB, and a mechanical hard disk storage space of 400GB.

[0071] In step 102, the computing power resource vector is generated based on the computing power resource information. Taking the overall computing power information of the computing power node A as an example, the computing power resource vector corresponding to the computing power node can be expressed as: A =(100v,2000G,10000M,300G,400G), which means that the computing power node A has a central processing unit (CPU) computing power of 100vCPU, a memory of 200GB, a network bandwidth of 10000Mb, a solid state disk (SSD) storage space of 300GB, and a mechanical hard disk storage space of 400GB.

[0072] It should be noted that the above-mentioned computing power resource vector can be further expanded into a computing power resource matrix or a computing power resource vector in a multi-dimensional state. Users can select and expand according to actual needs or actual conditions, and this embodiment of the present invention is not limited to this.

[0073] In step 103, the routing table is generated according to the computing power resource information. The routing table includes the routing information of at least one computing power node and the computing power resource vector. In order to reflect the computing power information in the routing table, BGP is continued to be taken as an example. The BGP routing table can be extended to a CF-BGP routing table. It can be understood that the computing power resource vector is added to the above Table 1. The added position can be any column in Table 1. Preferably, the computing power resource vector can be added to the last column of Table 1. For details, see Table 2:

[0074] Table 2

[0075]

[0076] This means that the computing power carried by the computing node with the Internet Protocol (IP) address of 4.4.4.4 is (100v, 2000G, 10000M, 300G, 400G).

[0077] In this implementation, the routing information and computing power resource information of at least one computing power node are first obtained, and then the computing power resource vector of each computing power node is generated according to the computing power resource information. Finally, a routing table including the routing information and computing power resource vector of the at least one computing power node is generated. Through this method, the computing power resource vector representing the computing power can be added to the routing table, which provides a basis for realizing computing power routing addressing and computing power routing aggregation, and further improves the efficiency of routing addressing when the scale of computing power nodes in the computing power network increases.

[0078] Optionally, the at least one computing power node includes a first computing power node and a second computing power node, and the generating a routing table including the routing information and the computing power resource vector includes:

[0079] When the first computing power node and the second computing power node meet the preset conditions, aggregating the routing information and the computing power resource vector of the first computing power node and the second computing power node to obtain the aggregated routing information and the aggregated computing power resource vector of the first computing power node and the second computing power node;

[0080] A routing table including the aggregated routing information and the aggregated computing power resource vector is generated.

[0081] In this implementation scheme, when the first computing power node and the second computing power node meet preset conditions, the routing information and the computing power resource vector of the first computing power node and the second computing power node are aggregated, wherein the first computing power node and the second computing power node need to meet the basic conditions for aggregation, that is, the next hop addresses of the first computing power node and the second computing power node are the same. Under this condition, the aggregated routing information and the aggregated computing power resource vector are obtained, and finally the routing table is generated. The routing table contains the aggregated routing information and the aggregated computing power resource vector. Through this method, the aggregation of computing power routing is realized, that is, the reduction of table items in the computing power routing table is realized, and the speed and efficiency of computing power routing addressing are further improved.

[0082] For ease of understanding, a specific example of route aggregation in a traditional protocol (such as BGP) is shown below. In BGP, routes are generally aggregated through Classless Inter-Domain Routing (CIDR). The BGP routing table containing multiple node information can be seen in Table 3:

[0083] Table 3

[0084] Network NextHop Metric LocPrf Weight Path 4.4.4.0 / 32 1.2.3.4 0 - 20 e 4.4.4.1 / 32 1.2.3.4 0 - 20 e 4.4.4.2 / 32 1.2.3.4 0 - 20 e 4.4.4.3 / 32 1.2.3.4 0 - 20 e

[0085] Table 3 includes information of four nodes, and the next hop addresses of the four nodes are the same, so the routes can be aggregated by the CIDR method. The aggregated BGP routing table can be represented by Table 4:

[0086] Table 4

[0087] Network NextHop Metric LocPrf Weight Path 4.4.4.0 / 30 1.2.3.4 0 - 20 e

[0088] As shown in Table 4, after the four nodes are aggregated, the four table entries are reduced to one table entry. It should be understood that an IP address is usually 32 bits, and 30 in Table 4 means that the first 30 bits of the IP addresses of the four nodes before aggregation are the same.

[0089] In the embodiment of the present invention, the above computing power resource vector is added to the routing table, and the computing power routing table before aggregation is in the form of Table 5. For details, please refer to Table 5:

[0090] Table 5

[0091]

[0092] Among them, the computing power resource vector (computing power information) of each computing power node is added to the last column of the routing table. It should be understood that because the routing table carries the computing power resource vector, it cannot be simply aggregated through the CIDR method. As the number of entries in the computing power routing table increases, the size of the routing table will increase linearly with the addition of computing power nodes, and finally cause the routing addressing speed to slow down.

[0093] Finally, the above-mentioned routing table is generated. The above-mentioned routing table contains the above-mentioned aggregated routing information and the above-mentioned aggregated computing power resource vector. The specific aggregation method can compare the size of the sub-items in each computing power resource vector to confirm that a certain computing power resource vector is the object to be aggregated. For example, if the next hop address of node A and node B is the same, and each sub-item in the computing power resource vector corresponding to node A is larger than each sub-item in the computing power resource vector corresponding to node B, then the aggregated computing power resource vector can be represented by the computing power resource vector corresponding to node A.

[0094] It should be noted that the comparison of each sub-item in the computing power resource vector needs to be compared accordingly, for example, comparing the memory in computing power resource vector A with the memory in computing power resource vector B.

[0095] Optionally, the computing power resource information includes at least one of the following: central processing unit CPU computing power, memory, network bandwidth, solid state drive storage space, and mechanical hard drive storage space.

[0096] In this embodiment, the computing power resource information may include CPU computing power, memory, network bandwidth, solid-state hard disk storage space, and mechanical hard disk storage space. Displaying the computing power resource information can more completely show the computing power of the computing power node. Preferably, the CPU computing power, memory, network bandwidth, solid-state hard disk storage space, and mechanical hard disk storage space can be fully displayed in the computing power resource vector. For example, the computing power resource vector of computing power node A can be expressed as F A =(100v,2000G,10000M,300G,400G).

[0097] It should be noted that if a sub-item in the computing power resource information of a computing power node is 0 or cannot be queried, the sub-item in the computing power resource vector corresponding to the computing power node can be set to 0. Continuing with the above computing power node A as an example, if the mechanical hard disk storage space of computing power node A is 0, then the computing power resource vector of computing power node A can be expressed as F A =(100v,2000G,10000M,300G,0G). Of course, you can also directly omit the mechanical hard disk storage space, which is expressed as F A =(100v,2000G,10000M,300G).

[0098] It should be understood that the computing power resource information may be added with other sub-items according to actual working conditions, and this embodiment of the present invention is not limited to this.

[0099] Optionally, when the first computing power node and the second computing power node meet preset conditions, aggregating the routing information and the computing power resource vector of the first computing power node and the second computing power node to obtain the aggregated routing information and the aggregated computing power resource vector of the first computing power node and the second computing power node includes:

[0100] When the next hop addresses of the first computing power node and the second computing power node are the same, selecting computing power resource vectors corresponding to the first computing power node and the second computing power node respectively, and comparing the vector lengths;

[0101] When the vector lengths are the same, the size of each sub-item in the computing power resource vectors corresponding to the first computing power node and the second computing power node is compared in sequence;

[0102] When each sub-item in the computing power resource vector corresponding to the first computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the second computing power node, the routing information and the computing power resource vector of the first computing power node and the second computing power node are aggregated to obtain the aggregated routing information and the above-mentioned aggregated computing power resource vector.

[0103] In this implementation scheme, the first computing power node and the second computing power node need to meet the condition that the next hop address is the same, and then the aggregation operation can continue. Specifically, the vector lengths of the first computing power node and the second computing power node are first compared. If the vector lengths are inconsistent, the first computing power node and the second computing power node do not meet the aggregation conditions. If the vector lengths are consistent, the sizes of each sub-item in the computing power resource vector are compared one by one. If each sub-item in the computing power resource vector corresponding to the first computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the second computing power node, the routing information and the computing power resource vector of the first computing power node and the second computing power node are aggregated, and finally the aggregated routing information and the aggregated computing power resource vector are obtained. Through this method, the routing information and the computing power resource vector are aggregated respectively, and the aggregation of computing power routing is realized, that is, the reduction of table items in the computing power routing table is realized, and the speed and efficiency of computing power routing addressing are further improved.

[0104] The above-mentioned aggregated routing information may be aggregated according to the CIDR method, and the above-mentioned aggregated computing power resource vector may retain the computing power resource vector of the above-mentioned first computing power node.

[0105] For ease of understanding, the embodiment of the present invention provides a computing power routing aggregation method (Compute First Routing Aggregation, CFRA), taking computing power node A and computing power node B as an example, where R a , R b Represents computing power node A and computing power node B, F a and F b Represent the computing resource vectors of computing node A and computing node B respectively, and are aggregated according to the following rules:

[0106] If CFRA(F a ,F b )>0, then the aggregation is R CIDR(ab) ,F a ,

[0107] If CFRA(F a ,F b )<0 then the aggregation is R CIDR(ab) ,F b ,

[0108] If CFRA(F a ,F b )=0, no aggregation.

[0109] Furthermore, CFRA can be implemented by the following pseudo code:

[0110]

[0111]

[0112] Among them, if the lengths of the two computing power resource vectors are not equal, the non-aggregated result is directly obtained. Otherwise, the sizes of the sub-items in the two vectors are compared one by one. If each item in the computing power resource vector of computing power node A is greater than each item in the computing power resource vector of computing power node B, the computing power resource vector of computing power node B is aggregated to the computing power resource vector of computing power node A. Otherwise, the computing power resource vector of computing power node A is aggregated to the computing power resource vector of computing power node B.

[0113] Optionally, the routing information and the computing resource vector of the first computing node and the second computing node are aggregated according to the following rule:

[0114] The routing information of the second computing power node is combined with the routing information of the first computing power node to obtain the aggregated routing information, wherein the Internet Protocol IP address in the aggregated routing information is obtained by modifying the Internet Protocol IP address of the first computing power node;

[0115] The computing power resource vector of the first computing power node is retained, and the computing power resource vector of the second computing power node is deleted to obtain the aggregated computing power resource vector.

[0116] In this implementation scheme, the first computing power node and routing information and the routing information of the second computing power node are aggregated, which can be understood as aggregating the routing information of the two computing power nodes in accordance with the CIDR method to obtain the above-mentioned aggregated routing information. Each item in the computing power resource vector of the first computing power node is greater than each item in the computing power resource vector of the second computing power node one by one. Then, the computing power resource vector of the first computing power node is retained, and the computing power resource vector of the second computing power node is deleted to obtain the above-mentioned aggregated computing power resource vector. Through this method, the aggregation of computing power routing is realized, that is, the reduction of table items in the computing power routing table is realized, and the speed and efficiency of computing power routing addressing are further improved. On the other hand, the above-mentioned routing information and the above-mentioned computing power resource vector are aggregated respectively, and the aggregation of computing power routing is realized, that is, the reduction of table items in the computing power routing table is realized, and the speed and efficiency of computing power routing addressing are further improved.

[0117] For ease of understanding, taking the above Table 5 as an example, Table 5 shows the routing information and computing resource vectors of four computing nodes. By aggregating Table 5 in the CFRA method provided in an embodiment of the present invention, the following routing table can be obtained, as shown in Table 6:

[0118] Table 6

[0119]

[0120] Among them, through CFRA, the first computing power node and the second computing power node in Table 5 can be aggregated, and the third computing power node and the fourth computing power node in Table 5 can be aggregated.

[0121] Optionally, the computing power node further includes a third computing power node and a fourth computing power node, wherein the next hop addresses of the first computing power node and the second computing power node are the same, and the next hop addresses of the third computing power node and the fourth computing power node are the same;

[0122] Before generating the routing table including the aggregate routing information and the aggregate computing power resource vector, the method further includes:

[0123] When the next hop addresses of the third computing power node and the fourth computing power node are the same, selecting computing power resource vectors corresponding to the third computing power node and the fourth computing power node respectively, and comparing the vector lengths;

[0124] When the vector lengths are the same, the size of each sub-item in the computing power resource vectors corresponding to the third computing power node and the fourth computing power node is compared in sequence;

[0125] When each corresponding part of each sub-item in the computing power resource vector corresponding to the third computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the fourth computing power node, maintain the routing information and the computing power resource vector of the third computing power node and the fourth computing power node;

[0126] Among them, the routing information and the computing power resource vector of the third computing power node are synchronized to the routing table, and the routing information and the computing power resource vector of the fourth computing power node are synchronized to the routing table.

[0127] In this implementation scheme, when the third computing power node and the fourth computing power node have the same next-hop address and the lengths of the computing power resource vectors corresponding to the third computing power node and the fourth computing power node are equal, a size comparison of each sub-item in the computing power resource vector corresponding to the third computing power node is performed, and the corresponding parts of each sub-item in the computing power resource vector corresponding to the third computing power node are less than or equal to each sub-item in the computing power resource vector corresponding to the fourth computing power node, that is, there is a sub-item in the computing power resource vector of the fourth computing power node that is larger than the corresponding sub-item in the computing power resource vector of the third computing power node, then the third computing power node and the fourth computing power node are not aggregated. Through this method, the aggregation standard of the computing power resource vector is shown, the occurrence of over-aggregation is avoided, the aggregation of computing power routing is guaranteed, and the items in the computing power routing table are reduced according to the CFRA method, which further improves the speed and efficiency of computing power routing addressing.

[0128] For ease of understanding, taking the above Table 6 as an example, the first computing power node in Table 6 is set to the above third computing power node, and the second computing power node in Table 6 is set to the above fourth computing power node. The CPU computing power of the above third computing power node is 200v, which is greater than the CPU computing power of the above fourth computing power node 300v, but the memory of the above third computing power node is 3000G, which is less than the memory of the above fourth computing power node 1500G. Therefore, the above third computing power node and the above fourth computing power node cannot be aggregated.

[0129] See also Figure 2 , Figure 2 is a schematic diagram of the structure of a computing power routing generation device provided by an embodiment of the present invention, such as Figure 2 As shown, the computing power routing generation device 200 includes:

[0130] The acquisition module 201 is used to acquire routing information and computing resource information of at least one computing node;

[0131] A first generating module 202, configured to generate a computing power resource vector of the computing power resource information;

[0132] The second generating module 203 is used to generate a routing table including the routing information of the at least one computing power node and the computing power resource vector.

[0133] Optionally, the at least one computing power node includes a first computing power node and a second computing power node, and the second generating module 203 includes:

[0134] an aggregation unit, configured to aggregate the routing information and the computing resource vector of the first computing node and the second computing node to obtain the aggregated routing information and the aggregated computing resource vector of the first computing node and the second computing node when the first computing node and the second computing node meet a preset condition;

[0135] The first generating unit is used to generate a routing table including the aggregate routing information and the aggregate computing power resource vector.

[0136] Optionally, the computing power resource information includes at least one of the following: central processing unit CPU computing power, memory, network bandwidth, solid state drive storage space, and mechanical hard drive storage space.

[0137] Optionally, the polymerization unit comprises:

[0138] A first processing subunit is configured to select computing resource vectors corresponding to the first computing node and the second computing node respectively, and compare the vector lengths when the next hop addresses of the first computing node and the second computing node are the same;

[0139] A second processing subunit is used to compare the size of each sub-item in the computing power resource vector corresponding to the first computing power node and the second computing power node respectively when the lengths of the vectors are the same;

[0140] The third processing sub-unit is used to aggregate the routing information and the computing resource vector of the first computing power node and the second computing power node when each sub-item in the computing power resource vector corresponding to the first computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the second computing power node, so as to obtain the aggregated routing information and the above-mentioned aggregated computing power resource vector.

[0141] Optionally, the routing information and the computing resource vector of the first computing node and the second computing node are aggregated according to the following rule:

[0142] The routing information of the second computing power node is combined with the routing information of the first computing power node to obtain the aggregated routing information, wherein the Internet Protocol IP address in the aggregated routing information is obtained by modifying the Internet Protocol IP address of the first computing power node;

[0143] The computing power resource vector of the first computing power node is retained, and the computing power resource vector of the second computing power node is deleted to obtain the aggregated computing power resource vector.

[0144] Optionally, the computing power node further includes a third computing power node and a fourth computing power node, wherein the next hop addresses of the first computing power node and the second computing power node are the same, and the next hop addresses of the third computing power node and the fourth computing power node are the same;

[0145] The device 200 further includes:

[0146] A first processing module, configured to select computing resource vectors corresponding to the third computing node and the fourth computing node respectively, and compare vector lengths when the next hop addresses of the third computing node and the fourth computing node are the same;

[0147] A second processing module, configured to, when the vector lengths are the same, sequentially compare the size of each sub-item in the computing power resource vectors corresponding to the third computing power node and the fourth computing power node respectively;

[0148] A third processing module, configured to maintain the routing information and the computing power resource vector of the third computing power node and the fourth computing power node when each corresponding part of each sub-item in the computing power resource vector corresponding to the third computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the fourth computing power node;

[0149] Among them, the routing information and the computing power resource vector of the third computing power node are synchronized to the routing table, and the routing information and the computing power resource vector of the fourth computing power node are synchronized to the routing table.

[0150] Specifically, see Figure 3 An embodiment of the present invention further provides an electronic device, including a bus 301, a transceiver 302, an antenna 303, a bus interface 304, a processor 305 and a memory 306.

[0151] The transceiver 302 is used to obtain routing information and computing resource information of at least one computing node;

[0152] Processor 305, configured to generate a computing power resource vector of the computing power resource information;

[0153] The processor 305 is further configured to generate a routing table including the routing information of the at least one computing power node and the computing power resource vector.

[0154] exist Figure 3 In the embodiment, the bus architecture (represented by bus 301) is shown, and bus 301 may include any number of interconnected buses and bridges, and bus 301 links various circuits including one or more processors represented by processor 305 and memory represented by memory 306. Bus 301 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 304 provides an interface between bus 301 and transceiver 302. Transceiver 302 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 305 is transmitted on a wireless medium via antenna 303, and further, antenna 303 also receives data and transmits the data to processor 805.

[0155] The processor 305 is responsible for managing the bus 301 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 306 can be used to store data used by the processor 305 when performing operations.

[0156] Optionally, the processor 305 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD).

[0157] An embodiment of the present invention also provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the various processes of the above-mentioned indication method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0158] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned policy management method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0159] An embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the method embodiment shown in Figure A or Figure B above are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0160] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0162] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A computing power routing generation method, characterized in that: include: Obtain routing information and computing resource information of at least one computing power node; Generate a computing power resource vector of the computing power resource information; Generate a routing table including the routing information of the at least one computing power node and the computing power resource vector.

2. The computing power routing generation method according to claim 1, characterized in that: The at least one computing power node includes a first computing power node and a second computing power node, and the generating a routing table including the routing information and the computing power resource vector includes: When the first computing power node and the second computing power node meet the preset conditions, aggregating the routing information and the computing power resource vector of the first computing power node and the second computing power node to obtain the aggregated routing information and the aggregated computing power resource vector of the first computing power node and the second computing power node; A routing table including the aggregated routing information and the aggregated computing power resource vector is generated.

3. The computing power routing generation method according to claim 2, characterized in that: The computing power resource information includes at least one of the following: central processing unit CPU computing power, memory, network bandwidth, solid state drive storage space, and mechanical hard drive storage space.

4. The computing power routing generation method according to claim 2, characterized in that: When the first computing power node and the second computing power node meet the preset conditions, aggregating the routing information and the computing power resource vector of the first computing power node and the second computing power node to obtain the aggregated routing information and the aggregated computing power resource vector of the first computing power node and the second computing power node, including: When the next hop addresses of the first computing power node and the second computing power node are the same, selecting computing power resource vectors corresponding to the first computing power node and the second computing power node respectively, and comparing the vector lengths; When the vector lengths are the same, the size of each sub-item in the computing power resource vectors corresponding to the first computing power node and the second computing power node is compared in sequence; When each sub-item in the computing power resource vector corresponding to the first computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the second computing power node, the routing information and the computing power resource vector of the first computing power node and the second computing power node are aggregated to obtain the aggregated routing information and the above-mentioned aggregated computing power resource vector.

5. The computing power routing generation method according to claim 4, characterized in that: The routing information and the computing resource vector of the first computing node and the second computing node are aggregated according to the following rules: The routing information of the second computing power node is combined with the routing information of the first computing power node to obtain the aggregated routing information, wherein the Internet Protocol IP address in the aggregated routing information is obtained by modifying the Internet Protocol IP address of the first computing power node; The computing power resource vector of the first computing power node is retained, and the computing power resource vector of the second computing power node is deleted to obtain the aggregated computing power resource vector.

6. The computing power routing generation method according to claim 2, characterized in that: The computing power node further includes a third computing power node and a fourth computing power node, wherein the next hop address of the first computing power node is the same as that of the second computing power node, and the next hop address of the third computing power node is the same as that of the fourth computing power node; Before generating the routing table including the aggregate routing information and the aggregate computing power resource vector, the method further includes: When the next hop addresses of the third computing power node and the fourth computing power node are the same, selecting computing power resource vectors corresponding to the third computing power node and the fourth computing power node respectively, and comparing the vector lengths; When the vector lengths are the same, the size of each sub-item in the computing power resource vectors corresponding to the third computing power node and the fourth computing power node is compared in sequence; When each corresponding part of each sub-item in the computing power resource vector corresponding to the third computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the fourth computing power node, maintain the routing information and the computing power resource vector of the third computing power node and the fourth computing power node; Among them, the routing information and the computing power resource vector of the third computing power node are synchronized to the routing table, and the routing information and the computing power resource vector of the fourth computing power node are synchronized to the routing table.

7. A computing power routing generation device, characterized in that: include: An acquisition module, used to acquire routing information and computing resource information of at least one computing power node; A first generating module, configured to generate a computing power resource vector of the computing power resource information; The second generation module is used to generate a routing table including the routing information of the at least one computing power node and the computing power resource vector.

8. The computing power routing generation device according to claim 7, characterized in that: The at least one computing power node includes a first computing power node and a second computing power node, and the second generating module includes: an aggregation unit, configured to aggregate the routing information and the computing resource vector of the first computing node and the second computing node when the first computing node and the second computing node meet a preset condition, so as to obtain the aggregated routing information and the aggregated computing resource vector of the first computing node and the second computing node; The first generating unit is used to generate a routing table including the aggregate routing information and the aggregate computing power resource vector.

9. The computing power routing generation device according to claim 8, characterized in that: The computing power resource information includes at least one of the following: central processing unit CPU computing power, memory, network bandwidth, solid state drive storage space, and mechanical hard drive storage space.

10. The computing power routing generation device according to claim 8, characterized in that: The polymeric unit comprises: A first processing subunit is configured to select computing resource vectors corresponding to the first computing node and the second computing node respectively, and compare the vector lengths when the next hop addresses of the first computing node and the second computing node are the same; A second processing subunit is used to compare the size of each sub-item in the computing power resource vector corresponding to the first computing power node and the second computing power node respectively when the lengths of the vectors are the same; The third processing sub-unit is used to aggregate the routing information and the computing resource vector of the first computing power node and the second computing power node when each sub-item in the computing power resource vector corresponding to the first computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the second computing power node, so as to obtain the aggregated routing information and the above-mentioned aggregated computing power resource vector.

11. The computing power routing generation device according to claim 10, characterized in that: The routing information and the computing resource vector of the first computing node and the second computing node are aggregated according to the following rules: The routing information of the second computing power node is combined with the routing information of the first computing power node to obtain the aggregated routing information, wherein the Internet Protocol IP address in the aggregated routing information is obtained by modifying the Internet Protocol IP address of the first computing power node; The computing power resource vector of the first computing power node is retained, and the computing power resource vector of the second computing power node is deleted to obtain the aggregated computing power resource vector.

12. The computing power routing generation device according to claim 8, characterized in that: The computing power node further includes a third computing power node and a fourth computing power node, wherein the next hop address of the first computing power node is the same as that of the second computing power node, and the next hop address of the third computing power node is the same as that of the fourth computing power node; The device also includes: A first processing module, configured to select computing resource vectors corresponding to the third computing node and the fourth computing node respectively, and compare vector lengths when the next hop addresses of the third computing node and the fourth computing node are the same; A second processing module, configured to, when the vector lengths are the same, sequentially compare the size of each sub-item in the computing power resource vectors corresponding to the third computing power node and the fourth computing power node respectively; A third processing module, configured to maintain the routing information and the computing power resource vector of the third computing power node and the fourth computing power node when each corresponding part of each sub-item in the computing power resource vector corresponding to the third computing power node is less than or equal to each sub-item in the computing power resource vector corresponding to the fourth computing power node; Among them, the routing information and the computing power resource vector of the third computing power node are synchronized to the routing table, and the routing information and the computing power resource vector of the fourth computing power node are synchronized to the routing table.

13. An electronic device, characterized in that: Including transceiver and processor, The transceiver is used to obtain routing information and computing resource information of at least one computing node; The processor is used to generate a computing power resource vector of the computing power resource information; The processor is further used to generate a routing table including the routing information of the at least one computing power node and the computing power resource vector.

14. An electronic device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the computing power routing generation method according to any one of claims 1 to 6 are implemented.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the computing power routing generation method according to any one of claims 1 to 6 are implemented.

16. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the computing power routing generation method as described in any one of claims 1 to 6.