CN114285858B - Calculation force sensing method, device and storage medium - Google Patents

Calculation force sensing method, device and storage medium Download PDF

Info

Publication number
CN114285858B
CN114285858B CN202111527002.2A CN202111527002A CN114285858B CN 114285858 B CN114285858 B CN 114285858B CN 202111527002 A CN202111527002 A CN 202111527002A CN 114285858 B CN114285858 B CN 114285858B
Authority
CN
China
Prior art keywords
resource
computing
state information
node
computing power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111527002.2A
Other languages
Chinese (zh)
Other versions
CN114285858A (en
Inventor
庞冉
王光全
徐博华
朱琳
张学茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111527002.2A priority Critical patent/CN114285858B/en
Publication of CN114285858A publication Critical patent/CN114285858A/en
Application granted granted Critical
Publication of CN114285858B publication Critical patent/CN114285858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method, a device and a storage medium for sensing computational power, relates to the technical field of communication, and is used for solving the problem of low computational power sensing speed in the prior art. The method comprises the following steps: the computing power node obtains computing power state information of computing power resources of each resource type in the computing power resources of the plurality of resource types. When the first computational power state information of the computational power resources of the target resource type is updated to second computational power state information and the second computational power state information meets the preset condition, the computational power node can send the second computational power state information to the routing node through the target communication link corresponding to the target resource type. Wherein the communication link is a BFD-based communication link. The speed of the power calculation sensing method is effectively improved.

Description

Calculation force sensing method, device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and apparatus for sensing computing power, and a storage medium.
Background
Under the general trend of the fusion development of the network and the computing depth, the core requirement of the network evolution needs the mutual perception of the network and the computing and is highly cooperated. Thus, a computing power aware network (computing aware networking, CAN) may be constructed that includes a plurality of computing power nodes and a plurality of network edge routing nodes.
The process of computing force perception comprises the following steps: when the computing power state of the computing power node changes, the computing power node can send the changed computing power state to the network edge routing node through a communication link between the computing power node and the network edge routing node, so that efficient coordination of the computing power node is realized, and the utilization efficiency of network resources and computing resources is improved.
However, when the computational power states of the computational power nodes change frequently, the load of the communication links between the computational power nodes and the network edge routing nodes may be high, reducing the speed of computational power perception.
Disclosure of Invention
The application provides a method, a device and a storage medium for sensing calculation force, which are used for solving the problem of lower speed of calculation force sensing in the prior art.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, a method of computing power perception is provided, comprising: first, the computing power node obtains computing power state information of computing power resources of each of a plurality of resource types. When the first computational power state information of the computational power resources of the target resource type is updated to the second computational power state information and the second computational power state information meets the preset condition, the computational power node can send the second computational power state information to the routing node through the target communication link corresponding to the target resource type. Wherein the communication links corresponding to at least two of the plurality of resource types are different. The communication link is a bi-directional forwarding detection protocol (bidirectional forwarding detection, BFD) based communication link.
Optionally, the first computing power state information includes a first amount of available resources; the second computing power state information includes a second amount of available resources; the preset conditions comprise: the initial preset resource quantity is in a numerical range determined by the first available resource quantity and the second available resource quantity; the computing power perception method further comprises the following steps: adjusting the initial preset resource quantity; the initial preset resource quantity is the lowest value or the highest value of the second available resource quantity which triggers the power calculation node to send the second power calculation state information to the routing node.
Optionally, the method for adjusting the initial preset resource quantity specifically includes: when the first available resource quantity is smaller than the initial preset resource quantity and the second available resource quantity is larger than or equal to the initial preset resource quantity, reducing the initial preset resource quantity by a preset value; when the first available resource quantity is larger than the initial preset resource quantity and the second available resource quantity is smaller than or equal to the initial preset resource quantity, the initial preset resource quantity is increased by a preset value.
Optionally, the second computing power state information further includes a node identifier of the computing power node and a resource type identifier of the target resource type; the method for sending the second computing power state information to the routing node through the target communication link corresponding to the target resource type specifically comprises the following steps: adding the node identifier, the resource type identifier and the second available resource quantity to the message; and sending the added message to the routing node through the target communication link.
Optionally, the method for adding the node identifier, the resource type identifier and the second available resource amount to the message specifically includes: the node identification, the resource type identification and the second amount of available resources are added to an optional field of the message.
In a second aspect, there is provided a computing force sensing device comprising: an acquisition unit and a transmission unit; the computing power node comprises a computing power node and an acquiring unit, wherein the computing power node is used for acquiring computing power state information of computing power resources of each resource type in computing power resources of a plurality of resource types when the computing power node comprises the computing power resources of the plurality of resource types; the communication links corresponding to at least two resource types in the plurality of resource types are different; the communication link is a communication link between the computing node and the routing node; the sending unit is used for sending the second computing power state information acquired by the acquisition unit to the routing node through the target communication link corresponding to the target resource type when the first computing power state information of the computing power resource of the target resource type acquired by the acquisition unit is updated to the second computing power state information and the first computing power state information and the second computing power state information meet the preset condition; the target resource type is any one of a plurality of resource types. The communication link is a BFD-based communication link.
Optionally, the first computing power state information includes a first amount of available resources; the second computing power state information includes a second amount of available resources; the preset conditions comprise: the initial preset resource quantity is in a numerical range determined by the first available resource quantity and the second available resource quantity; the computing force sensing device further includes: a processing unit; the processing unit is used for adjusting the initial preset resource quantity; the initial preset resource quantity is the lowest value or the highest value of the second available resource quantity which triggers the power calculation node to send the second power calculation state information to the routing node.
Optionally, the processing unit is specifically configured to: when the first available resource quantity acquired by the acquisition unit is smaller than the initial preset resource quantity and the second available resource quantity acquired by the acquisition unit is larger than or equal to the initial preset resource quantity, reducing the initial preset resource quantity by a preset value; when the first available resource quantity acquired by the acquisition unit is larger than the initial preset resource quantity and the second available resource quantity acquired by the acquisition unit is smaller than or equal to the initial preset resource quantity, the initial preset resource quantity is increased by a preset value.
Optionally, the sending unit is specifically configured to: adding the node identifier, the resource type identifier and the second available resource quantity acquired by the acquisition unit to the message; and sending the added message to the routing node through the target communication link.
Optionally, the sending unit is specifically configured to: and adding the node identifier, the resource type identifier and the second available resource quantity acquired by the acquisition unit into an optional field of the message.
In a third aspect, a computing force sensing device is provided, comprising a memory and a processor; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus; when the computing force sensing device is running, the processor executes the computer-executable instructions stored in the memory to cause the computing force sensing device to perform the computing force sensing method of the first aspect.
The computing power sensing device may be a network device or may be a part of a device in a network device, such as a system-on-chip in a network device. The system-on-a-chip is configured to support the network device to implement the functions involved in the first aspect and any one of its possible implementations, for example, to obtain, determine, and send data and/or information involved in the above-mentioned computational power aware method. The chip system includes a chip, and may also include other discrete devices or circuit structures.
In a fourth aspect, a computer readable storage medium is provided, the computer readable storage medium comprising computer executable instructions which, when run on a computer, cause the computer to perform the method of the first aspect.
In a fifth aspect, there is also provided a computer program product comprising computer instructions which, when run on a computing force sensing device, cause the computing force sensing device to perform the computing force sensing method as described in the first aspect above.
It should be noted that the above-mentioned computer instructions may be stored in whole or in part on the first computer readable storage medium. The first computer readable storage medium may be packaged together with the processor of the computing power sensing device, or may be packaged separately from the processor of the computing power sensing device, which is not limited in this embodiment.
The description of the second, third, fourth and fifth aspects of the present application may refer to the detailed description of the first aspect; the advantages of the second aspect, the third aspect, the fourth aspect and the fifth aspect may be referred to as analysis of the advantages of the first aspect, and will not be described here.
In the embodiment of the present application, the names of the above-mentioned computing power sensing devices do not limit the devices or functional modules, and in actual implementation, these devices or functional modules may appear under other names. Insofar as the function of each device or function module is similar to the present application, it is within the scope of the claims of the present application and the equivalents thereof.
These and other aspects of the present application will be more readily apparent from the following description.
The technical scheme provided by the application at least brings the following beneficial effects:
based on any one of the above aspects, the present application proposes a power-computing sensing method, where a power-computing node may obtain power-computing state information of power-computing resources of each of a plurality of resource types. When the first computational power state information of the computational power resources of the target resource type is updated to second computational power state information and the second computational power state information meets the preset condition, the computational power node can send the second computational power state information to the routing node through the target communication link corresponding to the target resource type. Because the communication links corresponding to at least two resource types in the plurality of resource types are different, the load of the communication links can be reduced, and the speed of computing power perception is further improved.
Drawings
FIG. 1 is a schematic diagram of a computing force sensing system according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a hardware structure of a computing power sensing device according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another hardware structure of the computing force sensing device according to the embodiment of the present application;
FIG. 4 is a flow chart of a method for sensing computing power according to an embodiment of the present disclosure;
FIG. 5 is a flow chart of another method for computing power perception according to an embodiment of the present disclosure;
FIG. 6 is a flow chart of another method for computing power perception according to an embodiment of the present disclosure;
FIG. 7 is a flow chart of another method for computing power perception according to an embodiment of the present disclosure;
FIG. 8 is a flow chart of another method for computing power perception according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a computing force sensing device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the terms "first", "second", and the like are used to distinguish the same item or similar items having substantially the same function and effect, and those skilled in the art will understand that the terms "first", "second", and the like are not limited in number and execution order.
As described in the background art, in the existing power-computing sensing method, when the power-computing state of the power-computing node is frequently changed, the load of the communication link between the power-computing node and the network edge routing node may be high, so that the power-computing sensing speed is reduced.
In view of the above problems, an embodiment of the present application provides a computing power sensing method, where a computing power node may obtain computing power state information of computing power resources of each resource type in computing power resources of a plurality of resource types. When the first computational power state information of the computational power resources of the target resource type is updated to second computational power state information and the second computational power state information meets the preset condition, the computational power node can send the second computational power state information to the routing node through the target communication link corresponding to the target resource type. Wherein the communication link is a BFD-based communication link. Because the communication links corresponding to at least two resource types in the plurality of resource types are different, the load of the communication links can be reduced, and the speed of computing power perception is further improved.
The calculation force sensing method is suitable for a calculation force sensing system. Fig. 1 shows one configuration of the computing power perception system. As shown in fig. 1, the computing force sensing system includes: a computation node 101 and a routing node 102.
Where the computing power node 101 is a node device in a computing power aware network (comprising a plurality of computing power nodes), comprising computing power resources of a plurality of resource types. There are a plurality of communication links corresponding to the resource types between the computing node 101 and the routing node 102.
Alternatively, the computing node 101 in fig. 1 may be a data terminal device (data terminal equipment, DTE), such as a digital cellular phone, a printer, or a host (e.g., router, workstation, or server).
Routing node 102 in fig. 1 may be a domain controller gateway (domain controller gateway, DC-GW) device, operator edge router (provider edge router, PE). But also data circuit termination devices (data communication equipment, DCE) such as modems, hubs, bridges or switches.
The basic hardware architecture of the computing node 101 and the routing node 102 in the computing force aware system is similar and includes elements included in the communications device shown in fig. 2 or 3. The hardware configuration of the computing node 101 and the routing node 102 will be described below taking the communication devices shown in fig. 2 and 3 as an example.
Fig. 2 is a schematic hardware structure of a communication device according to an embodiment of the present application. The communication device comprises a processor 21, a memory 22, a communication interface 23, a bus 24. The processor 21, the memory 22 and the communication interface 23 may be connected by a bus 24.
The processor 21 is a control center of the communication device, and may be one processor or a collective term of a plurality of processing elements. For example, the processor 21 may be a general-purpose central processing unit (central processing unit, CPU), or may be another general-purpose processor. Wherein the general purpose processor may be a microprocessor or any conventional processor or the like.
As one example, processor 21 may include one or more CPUs, such as CPU 0 and CPU 1 shown in fig. 2.
Memory 22 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), magnetic disk storage or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
In a possible implementation, the memory 22 may exist separately from the processor 21, and the memory 22 may be connected to the processor 21 by a bus 24 for storing instructions or program code. The processor 21, when calling and executing instructions or program code stored in the memory 22, is capable of implementing the computational power aware method provided by the embodiments of the present invention described below.
In the present embodiment, the software programs stored in the memory 22 are different for the computing node 101 and the routing node 102, so the functions implemented by the computing node 101 and the routing node 102 are different. The functions performed with respect to the respective devices will be described in connection with the following flowcharts.
In another possible implementation, the memory 22 may also be integrated with the processor 21.
A communication interface 23 for connecting the communication device with other devices via a communication network, which may be an ethernet, a radio access network, a wireless local area network (wireless local area networks, WLAN) or the like. The communication interface 23 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.
Bus 24 may be an industry standard architecture (industry standard architecture, ISA) bus, an external device interconnect (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 2, but not only one bus or one type of bus.
Fig. 3 shows another hardware configuration of the communication apparatus in the embodiment of the present invention. As shown in fig. 3, the communication device may include a processor 31 and a communication interface 32. The processor 31 is coupled to a communication interface 32.
The function of the processor 31 may be as described above with reference to the processor 21. The processor 31 also has a memory function and can function as the memory 22.
The communication interface 32 is used to provide data to the processor 31. The communication interface 32 may be an internal interface of the communication device or an external interface of the communication device (corresponding to the communication interface 23).
It should be noted that the structure shown in fig. 2 (or fig. 3) does not constitute a limitation of the communication apparatus, and the communication apparatus may include more or less components than those shown in fig. 2 (or fig. 3), or may combine some components, or may be arranged in different components.
The following describes the method for sensing the computing power provided in the embodiment of the present application in detail with reference to the accompanying drawings.
As shown in fig. 4, the computing power sensing method provided in the embodiment of the present application is applied to a computing power node, and includes: S401-S402.
S401, when the computing power node comprises computing power resources of a plurality of resource types, the computing power node acquires computing power state information of the computing power resources of each resource type in the computing power resources of the plurality of resource types.
Wherein the communication links corresponding to at least two of the plurality of resource types are different. The communication link is a communication link between the computing node and the routing node.
Alternatively, the computational resources of the plurality of resource types may be graphics processing units (graphics processing unit, GPUs), CPUs, application specific integrated circuits (application specific integrated circuit, ASICs), field programmable gate arrays (field programmable gate array, FPGAs), internal memories (memories), or the like.
Optionally, the computing power state information may include a node identification of the computing power node, a resource type identification of the computing power resource, and an amount of available resources in the computing power resource.
Alternatively, the communication link may be a BFD-based communication link.
Optionally, the method for the computing power node to obtain computing power state information of computing power resources of each resource type in the computing power resources of the plurality of resource types may be: the computing power node reads computing power state information of computing power resources of each resource type in computing power resources of a plurality of resource types stored in a database.
S402, when first computing power state information of computing power resources of a target resource type is updated to second computing power state information, and the first computing power state information and the second computing power state information meet preset conditions, the computing power node sends the second computing power state information to the routing node through a target communication link corresponding to the target resource type.
The target resource type is any one of a plurality of resource types.
Specifically, when the computing node acquires updated second computing state information of the computing resource of the target resource type and needs to advertise the routing node, the computing node can send the second computing state information to the routing node through the target communication link corresponding to the target resource type, so that the routing node sends the second computing state information to the adjacent routing node to realize the whole-network advertisement.
Optionally, the first computing power state information may include a node identification of the computing power node, a resource type identification of the computing power resource, and a first available number of resources in the computing power resource. The second computing power state information may include a node identification of the computing power node, a resource type identification of the computing power resource, and a second amount of available resources in the computing power resource.
Optionally, the preset condition may include: the initial preset number of resources is within a range of the first number of available resources and the second number of available resources, the second power state information includes a resource type identification of the power resources that the first power state information does not have (i.e., the power node deploys new power resources), or the second power state information does not include a resource type identification of the power resources in the first power state information (i.e., the power node deletes power resources).
The initial preset resource quantity is located in a range of the first available resource quantity and the second available resource quantity, and specifically includes: the first number of available resources is less than the initial preset number of resources and the second number of available resources is greater than or equal to the initial preset number of resources, or the first number of available resources is greater than the initial preset number of resources and the second number of available resources is less than or equal to the initial preset number of resources.
Illustratively, the computing power node obtains a first available resource quantity 158 of the computing power resources of the target resource type, and a second available resource quantity 160 after the computing power resources provide the computing power service.
In one embodiment, as shown in fig. 5 in combination with fig. 4, when the first computing power state information includes a first available resource amount, the second computing power state information includes a second available resource amount, and the preset condition includes: when the initial preset resource quantity is within a numerical range determined by the first available resource quantity and the second available resource quantity, the power perception method further comprises the following steps: s501.
S501, the power calculation node adjusts the initial preset resource quantity.
The initial preset resource quantity is the lowest value or the highest value of the second available resource quantity which triggers the power calculation node to send the second power calculation state information to the routing node.
Specifically, when the computing node acquires updated second computing state information of the computing resource of the target resource type and needs to advertise the routing node, the computing node can adjust the initial preset resource quantity, so that when the available resource quantity is updated frequently near the initial preset resource quantity, the number of times of sending the updated second computing state information to the routing node is reduced.
Optionally, when the preset condition is that the first available resource number is smaller than the initial preset resource number and the second available resource number is greater than or equal to the initial preset resource number, the method for adjusting the initial preset resource number by the power node includes: the power calculation node reduces the initial preset resource quantity by a preset value.
Still alternatively, when the preset condition is that the first available resource number is greater than the initial preset resource number and the second available resource number is less than or equal to the initial preset resource number, the method for adjusting the initial preset resource number by the power node includes: the computing node increases the initial preset resource number by a preset value.
Illustratively, the initial preset resource number is preset to 160, and the available resource number of the computing resource of the target resource type acquired by the computing node is updated to 159, 160, 158, 162, 160 in sequence. The power node may adjust the initial preset number of resources to 156, thereby reducing the number of times updated second power state information is sent to the routing node.
In one embodiment, referring to fig. 5, as shown in fig. 6, a method for adjusting an initial preset resource amount by a computing node in S501 specifically includes: S601-S602.
S601, when the first available resource quantity is smaller than the initial preset resource quantity and the second available resource quantity is larger than or equal to the initial preset resource quantity, the power calculation node reduces the initial preset resource quantity by a preset value.
Alternatively, the initial preset number of resources may be an initial preset mapping value.
Further, when the mapping value of the first available resource number is smaller than the initial preset mapping value and the mapping value of the second available resource number is larger than or equal to the initial preset mapping value, the force calculation node reduces the initial preset mapping value by a preset value.
Exemplary, the initial preset map values for the preset force nodes include [0,1,2,3,4,5,6,7,8,9, 10], with a preset value of 0.2. The computing node obtains a first available resource quantity of 158 (the mapping value is 7.9) of computing resources of the target resource type, and a second available resource quantity of 160 (the mapping value is 8). Since the mapping value 7.9 of the first available resource quantity is smaller than the initial preset mapping value 8, and the mapping value 8 of the second available resource quantity is equal to the initial preset mapping value 8, the computing node reduces the initial preset mapping value 8 by 0.2, and the adjusted initial preset mapping value comprises [0,1,2,3,4,5,6,7,7.8,9, 10].
S602, when the first available resource quantity is larger than the initial preset resource quantity and the second available resource quantity is smaller than or equal to the initial preset resource quantity, the computing node increases the initial preset resource quantity by a preset value.
Further, when the mapping value of the first available resource number is greater than the initial preset mapping value and the mapping value of the second available resource number is less than or equal to the initial preset mapping value, the force calculation node increases the initial preset mapping value by a preset value.
Exemplary, the initial preset map values for the preset force nodes include [0,1,2,3,4,5,6,7,8,9, 10], with a preset value of 0.2. The computing node obtains a first available resource number 162 (mapping value of 8.1) of computing resources of the target resource type, and a second available resource number 158 (mapping value of 7.9). Since the mapping value 8.1 of the first available resource number is greater than the initial preset mapping value 8 and the mapping value 7.9 of the second available resource number is less than the initial preset mapping value 8, the computing node increases the initial preset mapping value 8 by 0.2, and the adjusted initial preset mapping value comprises [0,1,2,3,4,5,6,7,8.2,9, 10].
In one embodiment, in conjunction with fig. 5, as shown in fig. 7, the second computing power state information further includes a node identifier of the computing power node and a resource type identifier of the target resource type; the method for sending the second computing power state information to the routing node by the computing power node through the target communication link corresponding to the target resource type in S402 specifically includes: S701-S702.
S701, the computing node adds the node identifier, the resource type identifier and the second available resource quantity to the message.
Alternatively, the node identification may be a segment identifier (segment identifier, SID) of the computing node, an internet protocol (internet protocol, IP) address of the computing node, or a medium access control (media access control, MAC) address of the computing node, etc.
Optionally, the resource type identifier may be a mapping field of a name of the computing resource, a mapping field of a model of the computing resource.
S702, the power calculation node sends the added message to the routing node through the target communication link.
In one embodiment, referring to fig. 7, as shown in fig. 8, a method for adding a node identifier, a resource type identifier, and a second available resource amount to a message in S701 specifically includes: s801.
S801, the computing node adds the node identifier, the resource type identifier and the second available resource quantity to the optional field of the message.
Optionally, the resources occupied by the node identifier are 8 bits, the resources occupied by the resource type identifier are 8 bits, and the resources occupied by the second available resource quantity are 16 bits.
Optionally, the resources occupied by the resource type identifier are 8 bits, which may include 4 bits occupied by the name of the computing resource and 4 bits occupied by the model of the computing resource.
Illustratively, as shown in table 1, the resource type identification may include: the CPU has a mapping field of 0001, the GPU has a mapping field of 0010, the CPU has an X86 type mapping field of 0001, the CPU has a reduced instruction set computer (reduced instruction set computer, RISC) microprocessor (advanced RISC machine, ARM) has a mapping field of 0010, the GPU has an ultrafine semiconductor company (advanced micro devices, AMD) model mapping field of 0001, and the GPU has an Inboard company (NVDIA) model mapping field of 0011.
TABLE 1 resource type identification
Name of computing resource Mapping fields Model of computing power resource Mapping fields
CPU 0001 X86 0001
CPU 0001 ARM 0010
GPU 0010 AMD 0001
GPU 0010 NVDIA 0011
Further, as shown in table 2, optional fields in the BFD-based message include: an authentication Type (authtype) field, an authentication content (authlen) field, and an authentication field payload (Authentication Data) field. The computing node may add the node identification to the authtype field, the resource Type identification to the authlen field, and the second amount of available resources to the Authentication Data field.
Table 2 format of BFD-based message messages
Figure BDA0003410742880000101
In summary, the computing power node in the embodiment of the present application may obtain computing power status information of computing power resources of each resource type in the computing power resources of multiple resource types. When the first computational power state information of the computational power resources of the target resource type is updated to second computational power state information and the second computational power state information meets the preset condition, the computational power node can send the second computational power state information to the routing node through the target communication link corresponding to the target resource type. Wherein the communication link is a BFD-based communication link. Because the communication links corresponding to at least two resource types in the plurality of resource types are different, the load of the communication links can be reduced, and the speed of computing power perception is further improved.
The foregoing description of the solution provided in the embodiments of the present application has been mainly presented in terms of a method. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application may divide the function modules of the support server according to the above method example, for example, each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. Optionally, the division of the modules in the embodiments of the present application is schematic, which is merely a logic function division, and other division manners may be actually implemented.
Fig. 9 is a schematic structural diagram of a computing force sensing device according to an embodiment of the present application. The computational force sensing device may be used to perform the method of computational force sensing shown in fig. 4,5,6,7 or 8. The computing force sensing device shown in fig. 9 includes: an acquisition unit 901 and a transmission unit 902.
An obtaining unit 901, configured to obtain, when the computing power node includes computing power resources of a plurality of resource types, computing power state information of computing power resources of each resource type in the computing power resources of the plurality of resource types. For example, in connection with fig. 4, the acquisition unit 901 is for executing S401.
A sending unit 902, configured to send, when the first power state information of the power resource of the target resource type acquired by the acquiring unit 901 is updated to the second power state information, and the first power state information and the second power state information meet a preset condition, the second power state information acquired by the acquiring unit 901 to the routing node through the target communication link corresponding to the target resource type. For example, in connection with fig. 4, the transmitting unit 902 is configured to perform S402.
Optionally, the computing force sensing device further includes: a processing unit 903.
The processing unit 903 is configured to adjust an initial preset number of resources. For example, in connection with fig. 5, the processing unit 903 is configured to execute S501.
Optionally, the processing unit 903 is specifically configured to reduce the initial preset resource amount by a preset value when the first available resource amount acquired by the acquiring unit 901 is smaller than the initial preset resource amount and the second available resource amount acquired by the acquiring unit 901 is greater than or equal to the initial preset resource amount. For example, in connection with fig. 6, the processing unit 903 is configured to execute S601.
The processing unit 903 is specifically configured to increase the initial preset number of resources by a preset value when the first number of available resources acquired by the acquiring unit 901 is greater than the initial preset number of resources and the second number of available resources acquired by the acquiring unit 901 is less than or equal to the initial preset number of resources. For example, in connection with fig. 6, the processing unit 903 is configured to execute S602.
Optionally, the sending unit 902 is specifically configured to add the node identifier, the resource type identifier, and the second available resource number acquired by the acquiring unit 901 to the message. For example, in connection with fig. 7, the transmitting unit 902 is configured to perform S701.
The sending unit 902 is specifically configured to send the added message to the routing node through the target communication link. For example, in connection with fig. 7, the transmitting unit 902 is configured to execute S702.
Optionally, the sending unit 902 is specifically configured to add the node identifier, the resource type identifier, and the second available resource number acquired by the acquiring unit 901 to an optional field of the message. For example, in connection with fig. 8, the transmitting unit 902 is configured to execute S801.
The present application also provides a computer-readable storage medium including computer-executable instructions that, when executed on a computer, cause the computer to perform the method of computing power perception provided by the above embodiments.
The present application also provides a computer program directly loadable into a memory and containing software code, which, when loaded and executed via a computer, enables the implementation of the computational power perception method provided by the above embodiments.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer-readable storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and the division of modules or units, for example, is merely a logical function division, and other manners of division are possible when actually implemented. For example, multiple units or components may be combined or may be integrated into another device, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A method of computing power perception, comprising:
when the computing power node comprises computing power resources of a plurality of resource types, acquiring computing power state information of the computing power resources of each resource type in the computing power resources of the plurality of resource types; the communication links corresponding to at least two resource types in the plurality of resource types are different; the communication link is a communication link between the computing node and a routing node; the communication link is a communication link based on a bidirectional forwarding detection protocol BFD;
when first power state information of power calculation resources of a target resource type is updated to second power state information and the first power state information and the second power state information meet preset conditions, the second power state information is sent to the routing node through a target communication link corresponding to the target resource type; the target resource type is any one of the plurality of resource types; the first computing power state information includes a first amount of available resources; the second computing power state information includes a second amount of available resources; the preset conditions include: the initial preset resource quantity is in a numerical range determined by the first available resource quantity and the second available resource quantity;
adjusting the initial preset resource quantity; the initial preset resource quantity is the lowest value or the highest value of the second available resource quantity triggering the power computing node to send the second power computing state information to the routing node.
2. The method according to claim 1, wherein said adjusting said initial preset number of resources comprises:
when the first available resource quantity is smaller than the initial preset resource quantity and the second available resource quantity is larger than or equal to the initial preset resource quantity, reducing the initial preset resource quantity by a preset value;
and when the first available resource quantity is larger than the initial preset resource quantity and the second available resource quantity is smaller than or equal to the initial preset resource quantity, increasing the initial preset resource quantity by a preset value.
3. The method of claim 1, wherein the second computing power state information further comprises a node identification of the computing power node and a resource type identification of the target resource type; the sending, by the target communication link corresponding to the target resource type, the second computing power state information to the routing node specifically includes:
adding the node identifier, the resource type identifier and the second available resource amount to a message;
and sending the added message to the routing node through the target communication link.
4. The method according to claim 3, wherein adding the node identifier, the resource type identifier, and the second available resource amount to the message specifically comprises:
and adding the node identifier, the resource type identifier and the second available resource quantity into optional fields of the message.
5. A computing force sensing device, comprising: the device comprises an acquisition unit, a sending unit and a processing unit;
the acquiring unit is configured to acquire, when the computing power node includes computing power resources of a plurality of resource types, computing power state information of computing power resources of each resource type in the computing power resources of the plurality of resource types; the communication links corresponding to at least two resource types in the plurality of resource types are different; the communication link is a communication link between the computing node and a routing node; the communication link is a BFD-based communication link;
the sending unit is configured to send, when the first power state information of the power resource of the target resource type acquired by the acquiring unit is updated to second power state information, and the first power state information and the second power state information meet a preset condition, the second power state information acquired by the acquiring unit to the routing node through a target communication link corresponding to the target resource type; the target resource type is any one of the plurality of resource types; the first computing power state information includes a first amount of available resources; the second computing power state information includes a second amount of available resources; the preset conditions include: the initial preset resource quantity is in a numerical range determined by the first available resource quantity and the second available resource quantity;
the processing unit is used for adjusting the initial preset resource quantity; the initial preset resource quantity is the lowest value or the highest value of the second available resource quantity triggering the power computing node to send the second power computing state information to the routing node.
6. The computing power perception device of claim 5, wherein the processing unit is specifically configured to:
when the first available resource quantity acquired by the acquisition unit is smaller than the initial preset resource quantity and the second available resource quantity acquired by the acquisition unit is larger than or equal to the initial preset resource quantity, reducing the initial preset resource quantity by a preset value;
when the first available resource number acquired by the acquisition unit is greater than the initial preset resource number and the second available resource number acquired by the acquisition unit is less than or equal to the initial preset resource number, the initial preset resource number is increased by a preset value.
7. The computing power perception device according to claim 5, wherein the sending unit is specifically configured to:
adding the node identifier, the resource type identifier and the second available resource amount acquired by the acquisition unit to a message;
and sending the added message to the routing node through the target communication link.
8. The computing power perception device according to claim 7, wherein the sending unit is specifically configured to:
and adding the node identifier, the resource type identifier and the second available resource quantity acquired by the acquisition unit into optional fields of the message.
9. A computing force sensing device, which is characterized by comprising a memory and a processor; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus; when the computing power aware device is running, the processor executes the computer-executable instructions stored in the memory to cause the computing power aware device to perform the computing power aware method of any one of claims 1-4.
10. A computer-readable storage medium comprising computer-executable instructions that, when run on a computer, cause the computer to perform the method of computational power perception as recited in any one of claims 1-4.
CN202111527002.2A 2021-12-14 2021-12-14 Calculation force sensing method, device and storage medium Active CN114285858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111527002.2A CN114285858B (en) 2021-12-14 2021-12-14 Calculation force sensing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111527002.2A CN114285858B (en) 2021-12-14 2021-12-14 Calculation force sensing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114285858A CN114285858A (en) 2022-04-05
CN114285858B true CN114285858B (en) 2023-07-07

Family

ID=80872048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111527002.2A Active CN114285858B (en) 2021-12-14 2021-12-14 Calculation force sensing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114285858B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118647B (en) * 2022-05-20 2024-02-09 北京邮电大学 System and method for sensing and advertising calculation force information in calculation force network
CN114978978A (en) * 2022-06-07 2022-08-30 中国电信股份有限公司 Computing resource scheduling method and device, electronic equipment and medium
CN115065637B (en) * 2022-06-10 2024-03-26 亚信科技(中国)有限公司 Method and device for transmitting computing power resource information and electronic equipment
CN116467071A (en) * 2023-03-22 2023-07-21 北京神州泰岳软件股份有限公司 Method and device for sensing computing power in computing power network, storage medium and electronic equipment
CN116743878B (en) * 2023-08-14 2023-10-27 新华三技术有限公司 Computing power registration method, computing power registration device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111869303A (en) * 2020-06-03 2020-10-30 北京小米移动软件有限公司 Resource scheduling method, device, communication equipment and storage medium
CN113157444A (en) * 2021-03-29 2021-07-23 中国联合网络通信集团有限公司 Computing power service authentication method, device and readable storage medium
WO2021233391A1 (en) * 2020-05-21 2021-11-25 中国移动通信有限公司研究院 Routing information sending method, routing information receiving method, network element and node device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021233391A1 (en) * 2020-05-21 2021-11-25 中国移动通信有限公司研究院 Routing information sending method, routing information receiving method, network element and node device
CN111869303A (en) * 2020-06-03 2020-10-30 北京小米移动软件有限公司 Resource scheduling method, device, communication equipment and storage medium
CN113157444A (en) * 2021-03-29 2021-07-23 中国联合网络通信集团有限公司 Computing power service authentication method, device and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于计算、存储、传送资源融合化的新型网络虚拟化架构;雷波;王江龙;赵倩颖;余勇志;杨明川;;电信科学(第07期);全文 *

Also Published As

Publication number Publication date
CN114285858A (en) 2022-04-05

Similar Documents

Publication Publication Date Title
CN114285858B (en) Calculation force sensing method, device and storage medium
JP4488077B2 (en) Virtualization system, virtualization method, and virtualization program
EP3550799A1 (en) Heterogeneous multi-protocol stack method, device and system
US20140126360A1 (en) System and Method for WiFi Offload
CN109040243A (en) A kind of message processing method and device
CN103618667A (en) Information transfer method, access gateway and system
JP2024001296A (en) Management device, vehicle communication system, vehicle communication management method, and vehicle communication management program
CN113825251A (en) Session establishing method, device, system and computer storage medium
CN104009937B (en) A kind of enhanced transmission selection standard configuration information transmission method and device
CN113994720B (en) Relay device, vehicle communication system, vehicle, communication method, and communication program
US20230067943A1 (en) Wireless user equipment (ue) capability data transfer between wireless communication networks
CN107370494B (en) A kind of double-frequency wireless router and its data transmission method
CN112203354B (en) Service processing method and device
CN112929277B (en) Message processing method and device
CN103501276B (en) The method and device that a kind of server communicates with sensor node
CN111131473B (en) Network parameter transmission method and device
CN109639555B (en) Link layer message generation method, link layer message generation device and terminal equipment
JP5923128B2 (en) Wireless communication apparatus and wireless communication method using the same
CN105591922A (en) Message transmission method and device
US11729699B2 (en) User equipment (UE) control by a non-third generation partnership project (non-3GPP) access node using 3GPP signaling
EP4129001B1 (en) Filtering of incoming data
US20220417843A1 (en) Data communication system to serve a user equipment (ue) over a third generation partnership project (3gpp) network core
EP4135288A1 (en) Multiple state control interfaces between a control plane and a user plane in a disaggregated broadband network gateway architecture
CN113225257B (en) UPF data processing method, system and storage medium
CN117354394A (en) Data forwarding method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant