Communication system, method and device, related equipment and storage medium

Through the three-layer logical function architecture of online computing, the problems of low INC efficiency and high complexity in the existing technology are solved, and efficient INC task execution and diversified application support are achieved.

CN118626236APending Publication Date: 2024-09-10CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310231464.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing technology cannot efficiently perform in-network computing (INC), lacks a universal, flexible, ubiquitous, and cross-domain INC technology framework, and does not take into account the heterogeneous characteristics and resource limitations of programmable network devices.

Method used

Define a three-layer logical function architecture for INC. The first layer provides resource information of computing nodes. The second layer determines computing nodes and compiles programs based on resource and task information. The third layer sends data to be processed to execute INC tasks and realize INC tasks. the complete process.

Benefits of technology

It improves the efficiency of INC tasks, simplifies the complexity of INC program design, and adapts to diverse applications and heterogeneous resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626236A
    Figure CN118626236A
Patent Text Reader

Abstract

The invention discloses a communication system, method and device, first equipment, second equipment, a computing node and a storage medium. The system comprises a first layer used for providing first information containing related information of resources and / or capabilities which can be provided by at least one computing node for a second layer; a third layer to transmit, to the second layer, second information to request execution of an Internet Computing (INC) task; the second layer is used for determining at least one computing node and a first file executable by each computing node according to the first information and the second information, and the first file is used for executing the INC task corresponding to the second information; and sending a corresponding first file to each of the at least one determined computing node, and sending third information to a third layer, the third information at least indicating to send to-be-processed data corresponding to the second information to the at least one determined computing node, and enabling each computing node to execute the INC task corresponding to the second information by using the corresponding first file and the to-be-processed data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a communication system, method, apparatus, related equipment and storage medium. Background Art

[0002] In-Network Computing (INC) technology can be used to offload application-related functions to network devices, allowing network devices to achieve efficient data processing while completing data forwarding, thereby improving the overall computing efficiency of the communication system, reducing communication delays, and reducing the overall energy consumption of the communication system.

[0003] However, there is no effective solution in the related technology on how to perform INC efficiently. Summary of the invention

[0004] To solve related technical problems, the embodiments of the present application provide a communication system, method, apparatus, related equipment and storage medium.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The embodiment of the present application provides a communication system, including: a first layer, a second layer and a third layer; wherein:

[0007] The first layer includes at least one computing node, which is used to provide first information to the second layer, wherein the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node;

[0008] The third layer is used to provide application services and send second information to the second layer when there is an INC demand, wherein the second information is used to request the execution of an INC task;

[0009] The second layer is used to receive the second information sent by the third layer, determine at least one computing node and a first file executable by each computing node according to the first information and the second information, and the first file is used to execute the INC task corresponding to the second information; send the corresponding first file to each computing node in the determined at least one computing node, and send third information to the third layer, and the third information at least indicates to send the to-be-processed data corresponding to the second information to the determined at least one computing node;

[0010] The third layer is also used to receive the third information sent by the second layer, and send the data to be processed to each computing node of the at least one computing node determined, so that each computing node uses the corresponding first file and the data to be processed to perform the INC task corresponding to the second information.

[0011] In the above solution, the second layer is used for:

[0012] Determine, from the computing nodes included in the first layer, at least one computing node that supports executing the INC task corresponding to the second information, according to the first information and the second information;

[0013] When at least one computing node that supports executing the INC task corresponding to the second information is determined, for each of the at least one computing node determined, a first file corresponding to the computing node is determined based on the first information and the second information.

[0014] In the above solution, the second layer is used for:

[0015] Determine, based on the first information, whether there is an INC task being executed on each of the at least one computing node determined, and determine whether each computing node supports parallel execution of multiple INC tasks by means of business isolation;

[0016] For each of the at least one computing node determined, when there is no INC task being executed on the computing node, and / or when the computing node supports parallel execution of multiple INC tasks through business isolation, a corresponding first file is sent to the computing node.

[0017] In the above scheme, the first layer includes a first type of computing node and a second type of computing node, the first type of computing node at least has a network transmission association function, and the second type of computing node does not have a network transmission association function; the second information includes fourth information, and the fourth information indicates whether the INC task corresponding to the second information requires the participation of the second type of computing node in execution;

[0018] In a case where the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the determined at least one computing node includes at least one first type of computing node;

[0019] When the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the second layer is used to send the corresponding first file to each of at least two computing nodes, and the at least two computing nodes include at least one first type computing node and at least one second type computing node.

[0020] In the above scheme, when the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the first information includes information related to resources and / or capabilities that can be provided by at least one first type of computing node;

[0021] When the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the first information includes relevant information about resources and / or capabilities that can be provided by at least one first type of computing node, and includes relevant information about resources and / or capabilities that can be provided by at least one second type of computing node.

[0022] In the above solution, the second layer is also used for:

[0023] Receiving fifth information sent by each computing node of the determined at least one computing node, the fifth information comprising relevant information about resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information;

[0024] The first information is updated according to the received at least one fifth information.

[0025] In the above scheme, the third layer is also used to receive sixth information, and the sixth information includes the result of the at least one determined computing node executing the INC task corresponding to the second information.

[0026] In the above scheme, the second layer is also used to open an INC primitive library to the third layer, and the INC primitive library contains multiple INC primitives, each INC primitive represents an INC type; the second information contains at least one INC primitive in the INC primitive library.

[0027] In the above solution, the third layer is used to send the second information to the second layer through the first interface;

[0028] The second layer is used to receive the second information sent by the third layer through the first interface.

[0029] In the above solution, the first layer is used to provide the first information to the second layer through a second interface.

[0030] In the above solution, the second layer is used to send the corresponding first file to each computing node in the determined at least one computing node through the third interface.

[0031] In the above solution, the second layer is used to send the third information to the third layer through the fourth interface;

[0032] The third layer is used to receive the third information sent by the second layer through the fourth interface.

[0033] In the above solution, the third layer is used to send the data to be processed to each computing node of the determined at least one computing node through the fifth interface.

[0034] The embodiment of the present application also provides a communication method, which is applied to the second layer of the communication system, including:

[0035] receiving second information sent by the third layer of the communication system, wherein the second information is used to request execution of an INC task;

[0036] Determine at least one computing node and a first file executable by each computing node according to the first information and the second information, wherein the first information is provided by the first layer of the communication system, the first layer includes at least one computing node, the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node, and the first file is used to execute the INC task corresponding to the second information;

[0037] Send the corresponding first file to each of the at least one computing node determined, and send third information to the third layer, wherein the third information at least indicates that the data to be processed corresponding to the second information is sent to the at least one computing node determined, and each of the at least one computing node determined can use the corresponding first file and the data to be processed to execute the INC task corresponding to the second information.

[0038] In the above solution, determining at least one computing node and a first file executable by each computing node according to the first information and the second information includes:

[0039] Determine, from the computing nodes included in the first layer, at least one computing node that supports executing the INC task corresponding to the second information, according to the first information and the second information;

[0040] When at least one computing node that supports executing the INC task corresponding to the second information is determined, for each of the at least one computing node determined, a first file corresponding to the computing node is determined based on the first information and the second information.

[0041] In the above solution, the sending the corresponding first file to each computing node in the determined at least one computing node includes:

[0042] Determine, based on the first information, whether there is an INC task being executed on each of the at least one computing node determined, and determine whether each computing node supports parallel execution of multiple INC tasks by means of business isolation;

[0043] For each of the at least one computing node determined, when there is no INC task being executed on the computing node, and / or when the computing node supports parallel execution of multiple INC tasks through business isolation, a corresponding first file is sent to the computing node.

[0044] In the above scheme, the first layer includes a first type of computing node and a second type of computing node, the first type of computing node at least has a network transmission association function, and the second type of computing node does not have a network transmission association function; the second information includes fourth information, and the fourth information indicates whether the INC task corresponding to the second information requires the participation of the second type of computing node in execution;

[0045] In a case where the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the determined at least one computing node includes at least one first type of computing node;

[0046] When the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the corresponding first file is sent to each of the at least two computing nodes, and the at least two computing nodes include at least one first type computing node and at least one second type computing node.

[0047] In the above scheme, when the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the first information includes information related to resources and / or capabilities that can be provided by at least one first type of computing node;

[0048] When the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the first information includes relevant information about resources and / or capabilities that can be provided by at least one first type of computing node, and includes relevant information about resources and / or capabilities that can be provided by at least one second type of computing node.

[0049] In the above scheme, the method further comprises:

[0050] Receiving fifth information sent by each computing node of the determined at least one computing node, the fifth information comprising relevant information about resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information;

[0051] The first information is updated according to the received at least one fifth information.

[0052] In the above scheme, the method further comprises:

[0053] An INC primitive library is opened to the third layer, wherein the INC primitive library includes multiple INC primitives, and each INC primitive represents an INC type; the second information includes at least one INC primitive in the INC primitive library.

[0054] In the above solution, the receiving the second information sent by the third layer includes:

[0055] The second information sent by the third layer is received through the first interface.

[0056] In the above scheme, the method further includes:

[0057] The first information provided by the first layer is received through a second interface.

[0058] In the above solution, the sending the corresponding first file to each computing node in the determined at least one computing node includes:

[0059] The corresponding first file is sent to each computing node in the determined at least one computing node through the third interface.

[0060] In the above solution, sending the third information to the third layer includes:

[0061] The third information is sent to the third layer through a fourth interface.

[0062] The embodiment of the present application also provides a communication method, which is applied to the third layer of the communication system, including:

[0063] sending second information to the second layer of the communication system when there is an INC demand, wherein the second information is used to request to perform an INC task, and the third layer is used to provide application services;

[0064] receiving third information sent by the second layer, wherein the third information at least indicates sending to-be-processed data corresponding to the second information to at least one computing node in the first layer of the communication system determined by the second layer;

[0065] According to the third information, the data to be processed is sent to each computing node of at least one computing node determined by the second layer, so that each computing node uses the corresponding executable first file and the data to be processed to execute the INC task corresponding to the second information; wherein, the first file is determined by the second layer, and the first file is used to execute the INC task corresponding to the second information.

[0066] In the above scheme, the method further includes:

[0067] Receive sixth information, wherein the sixth information includes a result of at least one computing node determined by the second layer executing an INC task corresponding to the second information.

[0068] In the above scheme, the method further includes:

[0069] Based on the second-layer open INC primitive library, the second information is determined, the INC primitive library includes multiple INC primitives, each INC primitive represents an INC type, and the second information includes at least one INC primitive in the INC primitive library.

[0070] In the above solution, the sending the second information to the second layer of the communication system includes:

[0071] The second information is sent to the second layer through the first interface.

[0072] In the above solution, the receiving the third information sent by the second layer includes:

[0073] The third information sent by the second layer is received through the fourth interface.

[0074] In the above solution, the sending of the to-be-processed data to each computing node of the at least one computing node determined by the second layer includes:

[0075] The data to be processed is sent to each computing node of the at least one computing node determined by the second layer through a fifth interface.

[0076] In the above solution, the receiving the sixth information includes:

[0077] The result of executing the INC task corresponding to the second information sent by each computing node of at least one computing node determined by the second layer is received through the fifth interface to obtain the sixth information.

[0078] The embodiment of the present application further provides a communication method, which is applied to a computing node in the first layer of a communication system, including:

[0079] Sending information related to resources and / or capabilities that can be provided by the computing node to the second layer of the communication system, so that the second layer obtains first information, wherein the first information includes information related to resources and / or capabilities that can be provided by at least one computing node included in the first layer;

[0080] receiving an executable first file sent by the second layer, the first file being used to execute an INC task corresponding to second information, the second information being sent by the third layer of the communication system to the second layer, the second information being used to request execution of the INC task;

[0081] Receive the data to be processed sent by the third layer, and use the received first file and the data to be processed to execute the INC task corresponding to the second information.

[0082] In the above scheme, the method further includes:

[0083] Send the fifth information to the second layer, wherein the fifth information includes relevant information about the resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information.

[0084] In the above scheme, the method further includes:

[0085] The result of executing the INC task corresponding to the second information is sent to the third layer so that the third layer obtains sixth information, and the sixth information includes the result of at least one computing node determined by the second layer (i.e., at least one computing node used to execute the INC task corresponding to the second information) executing the INC task corresponding to the second information.

[0086] In the above solution, the receiving the executable first file sent by the second layer includes:

[0087] The first file sent by the second layer is received through a third interface.

[0088] In the above solution, the receiving the data to be processed sent by the third layer includes:

[0089] The data to be processed sent by the third layer is received through the fifth interface.

[0090] In the above solution, the step of sending the result of executing the INC task corresponding to the second information to the third layer includes:

[0091] The result of executing the INC task corresponding to the second information is sent to the third layer through the fifth interface.

[0092] The present application also provides a communication device, including:

[0093] A first receiving unit, configured to receive second information sent by a third layer of the communication system, wherein the second information is used to request execution of an INC task;

[0094] a first processing unit, configured to determine at least one computing node and a first file executable by each computing node according to first information and the second information, wherein the first information is provided by a first layer of the communication system, the first layer includes at least one computing node, the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node, and the first file is used to execute an INC task corresponding to the second information;

[0095] The first sending unit is used to send the corresponding first file to each of the at least one computing node determined, and to send third information to the third layer, wherein the third information at least indicates that the data to be processed corresponding to the second information is sent to the at least one computing node determined, and each of the at least one computing node determined can use the corresponding first file and the data to be processed to execute the INC task corresponding to the second information.

[0096] The present application also provides a communication device, including:

[0097] A second sending unit, configured to send second information to a second layer of the communication system when there is an INC demand, wherein the second information is used to request execution of an INC task;

[0098] A second receiving unit, configured to receive third information sent by the second layer, wherein the third information at least indicates that to-be-processed data corresponding to the second information is sent to at least one computing node in the first layer of the communication system determined by the second layer;

[0099] A third sending unit is used to send the data to be processed to each computing node of at least one computing node determined by the second layer according to the third information, so that each computing node uses the corresponding executable first file and the data to be processed to execute the INC task corresponding to the second information; wherein, the first file is determined by the second layer, and the first file is used to execute the INC task corresponding to the second information.

[0100] The present application also provides a communication device, including:

[0101] a fourth sending unit, configured to send information related to resources and / or capabilities that can be provided by a computing node to a second layer of the communication system, so that the second layer obtains first information, wherein the first information includes information related to resources and / or capabilities that can be provided by at least one computing node included in the first layer of the communication system;

[0102] a third receiving unit, configured to receive an executable first file sent by the second layer, the first file being used to execute an INC task corresponding to second information, the second information being sent by the third layer of the communication system to the second layer, the second information being used to request execution of the INC task;

[0103] a fourth receiving unit, configured to receive the data to be processed sent by the third layer;

[0104] The third processing unit is used to execute the INC task corresponding to the second information using the received first file and the data to be processed.

[0105] The embodiment of the present application further provides a first device, comprising: a first communication interface and a first processor; wherein:

[0106] The first processor is configured to:

[0107] receiving, through the first communication interface, second information sent by the third layer of the communication system, the second information being used to request execution of an INC task;

[0108] Determine at least one computing node and a first file executable by each computing node according to the first information and the second information, wherein the first information is provided by the first layer of the communication system, the first layer includes at least one computing node, the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node, and the first file is used to execute the INC task corresponding to the second information;

[0109] The corresponding first file is sent to each of the at least one computing node determined through the first communication interface, and the third information is sent to the third layer, the third information at least indicating that the data to be processed corresponding to the second information is sent to the at least one computing node determined, and each of the at least one computing node determined can use the corresponding first file and the data to be processed to execute the INC task corresponding to the second information.

[0110] The embodiment of the present application further provides a second device, comprising: a second communication interface and a second processor; wherein:

[0111] The second communication interface is used for:

[0112] Sending second information to a second layer of the communication system when there is an INC demand, wherein the second information is used to request execution of the INC task;

[0113] receiving third information sent by the second layer, wherein the third information at least indicates sending to-be-processed data corresponding to the second information to at least one computing node in the first layer of the communication system determined by the second layer;

[0114] According to the third information, the data to be processed is sent to each computing node of at least one computing node determined by the second layer, so that each computing node uses the corresponding executable first file and the data to be processed to execute the INC task corresponding to the second information; wherein, the first file is determined by the second layer, and the first file is used to execute the INC task corresponding to the second information.

[0115] The present application also provides a computing node, including:

[0116] A third communication interface is used to send information related to resources and / or capabilities that can be provided by the computing node to the second layer of the communication system, so that the second layer obtains first information, the first information includes information related to resources and / or capabilities that can be provided by at least one computing node included in the first layer of the communication system; receives an executable first file sent by the second layer, the first file is used to execute an INC task corresponding to the second information, the second information is sent by the third layer of the communication system to the second layer, the second information is used to request the execution of the INC task; receives data to be processed sent by the third layer;

[0117] The third processor is used to execute the INC task corresponding to the second information using the received first file and the data to be processed.

[0118] The embodiment of the present application further provides a first device, comprising: a first processor and a first memory for storing a computer program that can be run on the processor,

[0119] Wherein, when the first processor is used to run the computer program, it executes the steps of any of the above-mentioned methods on the second layer side.

[0120] The embodiment of the present application further provides a second device, comprising: a second processor and a second memory for storing a computer program that can be run on the processor,

[0121] Wherein, when the second processor is used to run the computer program, it executes the steps of any method on the third layer side.

[0122] The embodiment of the present application further provides a computing node, comprising: a third processor and a third memory for storing a computer program that can be run on the processor,

[0123] The third processor is used to execute the steps of any one of the above-mentioned methods on the computing node side when running the computer program.

[0124] An embodiment of the present application also provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of any of the methods on the second layer side, or implements the steps of any of the methods on the third layer side, or implements the steps of any of the methods on the computing node side.

[0125] The communication system, method, apparatus, related equipment and storage medium provided by the embodiments of the present application, the communication system includes: a first layer, a second layer and a third layer; wherein the first layer includes at least one computing node, which is used to provide first information to the second layer, and the first information includes relevant information about resources and / or capabilities that can be provided by the at least one computing node; the third layer is used to provide application services, and send second information to the second layer when there is an INC demand, and the second information is used to request the execution of an INC task; the second layer is used to receive the second information sent by the third layer, and determine at least one computing node and a first file executable by each computing node based on the first information and the second information, and the first file is used to execute the INC task corresponding to the second information; send the corresponding first file to each computing node in the determined at least one computing node, and send third information to the third layer, and the third information at least indicates that the data to be processed corresponding to the second information is sent to the determined at least one computing node; the third layer is also used to receive the third information sent by the second layer, and send the data to be processed to each computing node in the determined at least one computing node, so that each computing node uses the corresponding first file and the data to be processed to execute the INC task corresponding to the second information. The solution provided in the embodiment of the present application defines a general, flexible, ubiquitous, cross-domain framework for INC that includes a three-layer logical functional architecture. The first layer of the framework provides the second layer with relevant information about the resources and / or capabilities of at least one computing node (i.e., the first information). The third layer of the framework is used to provide application services and, when there is an INC demand, sends information for requesting the execution of an INC task (i.e., the second information) to the second layer. The second layer compiles a program based on the relevant information about the resources and / or capabilities of at least one computing node and the information for requesting the execution of an INC task, determines at least one computing node for executing the INC task and a first file executable by each computing node, sends the corresponding first file to each of the determined at least one computing node, and sends a notification (i.e., the third information) to the third layer, so that the third layer sends the data to be processed to each computing node, so that each computing node executes the INC task using the corresponding first file and the data to be processed. In this way, the complete process from initiation to execution of the INC task is realized through the cooperation between the first layer, the second layer, and the third layer, thereby improving the efficiency of executing INC tasks, that is, being able to efficiently perform INC, and simplifying the complexity of INC program design. BRIEF DESCRIPTION OF THE DRAWINGS

[0126] Figure 1 This is a schematic diagram of the mainstream distributed machine learning architecture in related technologies;

[0127] Figure 2A schematic diagram of the distributed machine learning INC architecture in the related technology;

[0128] Figure 3 This is a schematic diagram of a communication system structure according to an embodiment of the present application;

[0129] Figure 4 A flow chart of a communication method according to an embodiment of the present application;

[0130] Figure 5 A flow chart of another communication method according to an embodiment of the present application;

[0131] Figure 6 This is a flow chart of the third communication method according to an embodiment of the present application;

[0132] Figure 7 This is a schematic diagram of the overall INC architecture for this application example;

[0133] Figure 8 This is a schematic diagram of the INC logical functional architecture for the application example of this application;

[0134] Fig. 9 This is a general physical networking diagram of the application example INC of this application;

[0135] Fig.10 This is a schematic diagram of the INC architecture for the in-network consistency check of the distributed system in this application example;

[0136] Fig.11 This is a schematic diagram of the single-task process of distributed machine learning INC, an application example of this application;

[0137] Fig.12 A schematic diagram of the multi-task parallel INC process flow for the application example of this application;

[0138] Fig.13 This is a schematic diagram of the structure of a communication device according to an embodiment of the present application;

[0139] Fig.14 This is a schematic diagram of another communication device structure according to an embodiment of the present application;

[0140] Fig.15 This is a schematic diagram of the structure of a third communication device according to an embodiment of the present application;

[0141] Fig.16 This is a schematic diagram of the first device structure of the embodiment of the present application;

[0142] Fig.17 This is a schematic diagram of the second device structure of the embodiment of the present application;

[0143] Fig.18 This is a schematic diagram of the computing node structure of an embodiment of the present application;

[0144] Fig.19 This is another schematic diagram of the communication system structure of an embodiment of the present application. DETAILED DESCRIPTION

[0145] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0146] In the related technology, INC technology can be used to offload application-related functions to programmable network devices such as programmable switches and smart network cards. "Offloading" means that the INC device (i.e., programmable network devices such as programmable switches and smart network cards) completes the computing tasks that should be performed by the central processing unit (CPU) and / or graphics processing unit (GPU) inside the application server, thereby accelerating the data processing efficiency of the entire application.

[0147] The following describes in detail the basic idea of ​​INC offloading application using the distributed machine learning scenario as an example.

[0148] like Figure 1 As shown, the mainstream distributed machine learning network architecture in the related art is based on the parameter server (PS) architecture, in which the PS is used to realize the aggregation and distribution functions of intermediate parameters. Specifically, when training a distributed machine learning model, the controller first allocates the training tasks. In order to increase the speed of model training, a complete model is usually allocated to multiple GPU computing nodes (i.e., GPU servers) for parallel computing (i.e., parallel training). Each GPU computing node is initialized after receiving the task assigned by the controller, and then starts the first round of parameter calculations; after the GPU computing node completes this round of calculations, the output results are uniformly reported to the PS for aggregation, and the PS performs a reduction operation (which can be expressed as ALL_REDUCE in English) to generate the input data for the next round of calculations, and then distributes them to each GPU computing node, and iterates repeatedly until the training is completed.

[0149] In the above work process, PS may have performance bottlenecks. Specifically, the rate of a single-port Ethernet in a data center is usually 10 Gigabit Ethernet (GE) / 25GE / 100GE. Therefore, the upper limit of the aggregated traffic bandwidth of each round of PS is usually several hundred GE. When the scale of distributed machine learning networking is large, PS may face huge communication bottlenecks and be unable to process larger-scale aggregated traffic in a timely manner; at the same time, the aggregated traffic of multiple GPU computing nodes is sent to the PS CPU through the PS network card, which will be processed in the kernel state, further increasing the communication delay overhead.

[0150] In response to the above problems, Figure 2 As shown in the figure, a programmable switch (i.e., an in-network aggregation switch) can be used to replace the functions of the PS, that is, the functions of the PS can be offloaded to the programmable switch; since the line-speed forwarding bandwidth of the switch is usually at the terabit (Tbps) level, the communication bandwidth bottleneck problem faced by the PS can be solved; at the same time, since the programmable switch can perform protocol operations directly at the hardware level, the delay overhead at the PS kernel software level can be saved.

[0151] In the related art, another typical use case of INC is the offloading of consistency calculations in distributed systems. Specifically, an important component for implementing a distributed system is a consistency verification module, which is usually used to maintain the consistency of multiple computing nodes in different geographical locations. It plays an important role in the implementation of functions such as data backup, computing state migration, and fault repair. The traditional consistency maintenance component (i.e., consistency verification component) is implemented based on software, and the mainstream software solution is Zookeeper. However, the software-implemented solution faces the performance bottleneck of the CPU. Once the scale of the distributed system increases, the communication delay of the software solution is longer, the throughput is lower, and it is more prone to errors. INC technology can be used to offload the consistency operator to the programmable switch. While implementing consistency verification based on hardware, it can solve the problems of low throughput and high latency faced by the software solution, thereby greatly improving the robustness of the distributed system.

[0152] From the above description, it can be seen that INC is a relatively advanced technology. Related technologies only propose optimization and acceleration solutions based on INC for specific fields and specific applications. In other words, related technologies can only perform customized INC application unloading and optimization for specific application scenarios such as distributed computing, artificial intelligence (AI) computing, and network security detection. As for how to achieve universal, flexible, ubiquitous, and cross-domain INC, related technologies have not yet found an effective solution, and there are the following specific problems:

[0153] Problem 1: There is a lack of a universal, flexible, ubiquitous, and cross-domain INC technology framework, which makes it impossible for application developers to flexibly and on-demand optimize and uninstall diverse applications;

[0154] Question 2: INC is mainly implemented based on programmable network devices, but it does not take into account the heterogeneous characteristics of programmable network devices, such as different architectures such as application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), and multi-core processors. In other words, when uninstalling applications, it does not perform customized adaptation based on the characteristics of the underlying hardware.

[0155] Question 3: The resources of programmable network devices other than forwarding may be relatively limited. For example, programmable network devices whose storage resources include ternary content addressable memory (TCAM) / static random access memory (SRAM) support relatively simple and basic computing instructions and may not support more complex operations, such as high-precision floating-point operations, resulting in limitations when uninstalling applications.

[0156] In summary, the related art cannot perform INC efficiently.

[0157] Based on this, in various embodiments of the present application, a general, flexible, ubiquitous, cross-domain framework including a three-layer logical functional architecture for INC is defined, the first layer of the framework provides the second layer with relevant information about the resources and / or capabilities of at least one computing node, the third layer of the framework is used to provide application services, and when there is an INC demand, sends information for requesting the execution of INC tasks to the second layer, the second layer compiles the program according to the relevant information about the resources and / or capabilities of at least one computing node and the information for requesting the execution of INC tasks, determines at least one computing node for executing the INC task and the first file executable by each computing node, sends the corresponding first file to each computing node in the determined at least one computing node, and sends a notification to the third layer, so that the third layer sends the data to be processed to each computing node, so that each computing node executes the INC task using the corresponding first file and the data to be processed. In this way, the complete process of INC tasks from initiation to execution is realized through the cooperation between the first layer, the second layer and the third layer, thereby improving the efficiency of executing INC tasks, that is, being able to efficiently perform INC, and simplifying the complexity of INC program design.

[0158] The present application embodiment provides a communication system, such as Figure 3 As shown, the system includes: a first layer 301, a second layer 302 and a third layer 303; wherein,

[0159] The first layer 301 includes at least one computing node, which is used to provide first information to the second layer 302, wherein the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node;

[0160] The third layer 303 is used to provide application services and send second information to the second layer 302 when there is a demand for online computing INC, wherein the second information is used to request the execution of INC tasks;

[0161] The second layer 302 is used to receive the second information sent by the third layer 303, and determine at least one computing node and a first file executable by each computing node based on the first information and the second information, wherein the first file is used to execute the INC task corresponding to the second information (i.e., the INC task requested to be executed by the second information); send the corresponding first file to each computing node in the determined at least one computing node, and send third information to the third layer 303, wherein the third information at least indicates that the to-be-processed data corresponding to the second information is sent to the determined at least one computing node;

[0162] The third layer 303 is also used to receive the third information sent by the second layer 302, and send the data to be processed to each computing node of the at least one computing node determined, so that each computing node uses the corresponding first file and the data to be processed to perform the INC task corresponding to the second information.

[0163] Among them, in actual application, the first layer 301 can also be called resource layer, hardware layer, heterogeneous resource layer, etc.; the second layer 302 can also be called INC capability layer, etc.; the third layer 303 can also be called application service layer, etc.; the embodiment of the present application does not limit the names of the first layer 301, the second layer 302 and the third layer 303, as long as their functions are realized.

[0164] In one embodiment, the first layer 301 may include a first type of computing nodes and a second type of computing nodes, wherein the first type of computing nodes at least have a network transmission association function, and the second type of computing nodes do not have a network transmission association function.

[0165] In actual application, the first type of computing node has at least a network transmission-related function, which means that the first type of computing node has INC capability; specifically, the first type of computing node may include a network forwarding device / node (such as a programmable switch, etc.) with INC capability between the user and the server, and a unit / module (such as a smart network card, a data processing unit (DPU, Data Processing Unit)) with INC capability inside the end-side server (such as an application server); in other words, the first type of computing node may include programmable network devices such as programmable switches, smart network cards, and DPUs. The second type of computing node does not have a network transmission-related function, which means that the second type of computing node does not have INC capability; specifically, the second type of computing node may include a unit / module dedicated to computing inside the end-side server (such as an application server), such as a CPU, GPU, etc.

[0166] In actual application, the first type of computing node can also be called INC node, INC device, INC computing node, etc., and the second type of computing node can also be called server computing node, etc. The embodiment of the present application does not limit the names of the first type of computing node and the second type of computing node, as long as their functions are realized.

[0167] In actual application, at least two computing nodes in the first layer 301 (i.e., the first type of computing nodes and / or the second type of computing nodes) may be isomorphic or heterogeneous, that is, the chip architecture, performance, etc. of each computing node may be the same or different; the second layer 302 can uniformly configure and manage the computing nodes in the first layer 301, that is, obtain relevant information about the resources and / or capabilities that each computing node can provide, and then adapt INC tasks for the computing nodes based on the relevant information about the resources and / or capabilities that each computing node can provide.

[0168] In actual application, the specific form of the information related to resources and / or capabilities that can be provided by each computing node in the first layer 301 (i.e., the first type of computing node / the second type of computing node) can be set according to needs; exemplarily, the resource-related information that the computing node can provide may include resource status information (such as computing resource utilization rate, storage resource utilization rate, power consumption ratio, whether the GPU / CPU is idle, the size of the free storage space, free table entries, SRAM / TCAM occupancy, etc.); the capability-related information that the computing node can provide may include whether INC is supported, the type of INC supported (such as at least one of INCs such as in-network aggregation, in-network caching, in-network sorting, and in-network consistency checking), etc.

[0169] In actual application, an interface at least for transmitting the first information may be defined between the first layer 301 and the second layer 302 .

[0170] Based on this, in one embodiment, the first layer 301 is specifically configured to provide the first information to the second layer 302 via a second interface.

[0171] In actual application, each computing node in the first layer 301 (i.e., the first type of computing node / the second type of computing node) can send relevant information about the resources and / or capabilities that it can provide to the second layer 302 through the second interface, so that the second layer 302 obtains the first information; in other words, the second layer 302 can receive relevant information about the resources and / or capabilities that can be provided by each computing node in the first layer 301 (i.e., the first type of computing node / the second type of computing node) through the second interface, that is, receive the first information through the second interface.

[0172] In actual application, the specific type of INC task (also referred to as INC business or computing task / business, etc.) executed by the second information request can be set according to needs; exemplarily, when the types are divided according to the fields involved, the INC tasks executed by the second information request may include AI computing tasks, distributed computing tasks, computing tasks related to security applications, etc.; when the types are divided according to real-time performance, the INC tasks executed by the second information request may include real-time tasks, non-real-time tasks, event-triggered tasks, etc.

[0173] In one embodiment, the second layer 302 is also used to open an INC primitive library to the third layer 303, and the INC primitive library includes multiple INC primitives, each INC primitive represents an INC type; the second information includes at least one INC primitive in the INC primitive library, that is, the INC task requested to be executed by the second information may include at least one INC subtask, and each INC subtask corresponds to an INC primitive.

[0174] Among them, in actual application, the INC type can be understood as the basic operation type of INC, which can be set according to the needs, such as in-network aggregation, in-network caching, in-network sorting, in-network consistency check, etc. In addition, the embodiment of the present application does not limit which INC primitives are specifically included in the INC primitive library and the specific form of expression of the INC primitives, as long as its function is realized; for example, the in-network aggregation primitive can be expressed as INC_AGG(), the in-network caching primitive can be expressed as INC_Caching(), the in-network sorting primitive can be expressed as INC_Sequencing(), and the in-network consistency check primitive can be expressed as INC_Paxos().

[0175] In actual application, an interface at least for transmitting the second information may be defined between the second layer 302 and the third layer 303 .

[0176] Based on this, in one embodiment, the third layer 303 is specifically used to send the second information to the second layer 302 through the first interface; correspondingly, the second layer 302 is specifically used to receive the second information sent by the third layer 303 through the first interface.

[0177] Among them, the first interface can be understood as an INC function interface. From the perspective of application developers, the INC task can be initiated by calling the INC primitive through the INC function interface. That is, the application only needs to do a small amount of code adaptation work, and does not need to worry about which specific computing node (that is, the first type of computing node and / or the second type of computing node) the application is executed on, thereby simplifying the complexity of INC program design, that is, improving the friendliness of application development.

[0178] In actual application, the INC task requested by the second information can be executed by the first type of computing nodes and the second type of computing nodes in cooperation, or only by the first type of computing nodes; the second information may include information indicating whether the INC task requested to be executed requires the participation of the second type of computing nodes in execution (referred to as the fourth information in the subsequent description), which can be determined by the application developer according to requirements, or can be automatically generated by the third layer 303 according to pre-set rules.

[0179] Based on this, in one embodiment, the second information may include fourth information, and the fourth information indicates whether the INC task corresponding to the second information requires the participation of the second type of computing node in execution.

[0180] Among them, when the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the at least one computing node determined by the second layer 302 includes at least one first type of computing node.

[0181] In one embodiment, when the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the second layer 302 is specifically used to send the corresponding first file to each computing node of at least two computing nodes, and the at least two computing nodes include at least one first type computing node and at least one second type computing node.

[0182] In addition, in one embodiment, when the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the first information includes relevant information about resources and / or capabilities that can be provided by at least one first type of computing node; when the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the first information includes relevant information about resources and / or capabilities that can be provided by at least one first type of computing node, and includes relevant information about resources and / or capabilities that can be provided by at least one second type of computing node.

[0183] In actual application, the second layer 302 determines at least one computing node (that is, determines at least one first-category computing node, or determines at least one first-category computing node and at least one second-category computing node) and the first file executable by each computing node. This can be understood as a process of adapting the INC primitive requirements of the INC task corresponding to the second information (that is, at least one INC primitive contained in the second information) with the INC primitive capabilities and / or resources (that is, the first information) that can be provided by the underlying heterogeneous resources. The second layer 302 can first determine at least one computing node that supports the execution of the INC task corresponding to the second information from all the computing nodes contained in the first layer 301 based on the first information and the second information, and then compile the program for each determined computing node, that is, generate a program executable by the computing node, that is, generate the first file corresponding to the computing node.

[0184] Based on this, in one embodiment, the second layer 302 is specifically used for:

[0185] According to the first information and the second information, determining at least one computing node that supports executing the INC task corresponding to the second information from the computing nodes included in the first layer 301; that is, determining at least one computing node of the first category, or determining at least one computing node of the first category and at least one computing node of the second category;

[0186] When at least one computing node that supports executing the INC task corresponding to the second information is determined, for each of the at least one computing node determined, a first file corresponding to the computing node is determined based on the first information and the second information.

[0187] In actual application, when the number of computing nodes supporting the execution of the INC task corresponding to the second information determined by the second layer 302 exceeds the number of computing nodes required to complete the INC task corresponding to the second information, for example, when the INC task corresponding to the second information only requires one computing node to execute, but the second layer 302 determines that there are multiple computing nodes that can execute (i.e., support) the INC task corresponding to the second information, the second layer 302 can randomly select a computing node from all computing nodes supporting the execution of the INC task corresponding to the second information to execute the INC task corresponding to the second information.

[0188] In actual application, the first executable file of each computing node (i.e., the first type of computing node / the second type of computing node) determined by the second layer 302 is different, that is, each computing node is used to execute different INC subtasks in the INC task executed by the second information request (each INC subtask corresponds to an INC primitive). In addition, each computing node can execute at least one INC subtask, and this at least one INC subtask can belong to the same INC task or different INC tasks; in other words, the computing node can execute multiple INC tasks in parallel. At this time, after the second layer 302 determines at least one computing node, it is necessary to determine whether there is an INC task being executed on each computing node, and determine whether each computing node supports the parallel execution of multiple INC tasks by means of business isolation, and then determine whether to send the corresponding first file to the computing node based on the judgment result, that is, determine whether the computing node can be scheduled to execute a new INC task (i.e., the INC task executed by the second information request) without affecting the INC task being executed by the computing node.

[0189] Based on this, in one embodiment, the second layer 302 is also used for:

[0190] Determine, based on the first information, whether there is an INC task being executed on each of the at least one computing node determined, and determine whether each computing node supports parallel execution of multiple INC tasks by means of business isolation;

[0191] For each of the at least one computing node determined, when there is no INC task being executed on the computing node, and / or when the computing node supports parallel execution of multiple INC tasks through business isolation, a corresponding first file is sent to the computing node.

[0192] Among them, in actual application, when the computing node supports the parallel execution of multiple INC tasks by means of business isolation, and there are INC tasks being executed on the computing node, the second layer 302 can determine that the execution of the first file to be sent will not affect the INC task being executed by the computing node, and can send the corresponding first file to the computing node. In addition, the way in which each computing node (i.e., the first type of computing node / the second type of computing node) implements business isolation can be set according to demand, such as isolating the business of tenants according to quintuple information, etc., and the way in which each computing node implements business isolation can be the same or different, and the embodiments of the present application do not limit this.

[0193] In actual application, an interface at least for transmitting the first file may be defined between the first layer 301 and the second layer 302 .

[0194] Based on this, in one embodiment, the second layer 302 is specifically used to send the corresponding first file to each computing node in the determined at least one computing node through the third interface.

[0195] In actual application, an interface at least for transmitting the third information may be defined between the second layer 302 and the third layer 303 .

[0196] Based on this, in one embodiment, the second layer 302 is specifically used to send the third information to the third layer 303 through the fourth interface; correspondingly, the third layer 303 is specifically used to receive the third information sent by the second layer 302 through the fourth interface.

[0197] In actual application, an interface at least for transmitting the data to be processed may be defined between the third layer 303 and the first layer 301 .

[0198] Based on this, in one embodiment, the third layer 303 is specifically used to send the to-be-processed data to each computing node in the determined at least one computing node through the fifth interface.

[0199] In actual application, after at least one computing node determined by the second layer 302 (i.e., at least one first-class computing node, or at least one first-class computing node and at least one second-class computing node) completes the execution of the INC task corresponding to the second information, it can update the relevant information of the resources and / or capabilities that it can provide to the second layer 302.

[0200] Based on this, in one embodiment, the second layer 302 is also used for:

[0201] Receiving fifth information sent by each computing node of the determined at least one computing node, the fifth information comprising relevant information about resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information;

[0202] The first information is updated according to the received at least one fifth information.

[0203] The second layer 302 may receive the fifth information through the second interface.

[0204] In actual application, at least one computing node determined by the second layer 302 (i.e., at least one first-category computing node, or at least one first-category computing node and at least one second-category computing node) can feed back the result of executing the INC task corresponding to the second information (such as intermediate results and / or final results, etc.) to the third layer 303, so that the third layer 303 can determine whether to continue executing the INC task or terminate the calculation process.

[0205] Based on this, in one embodiment, the third layer 303 is also used to receive sixth information, and the sixth information includes the result of the at least one determined computing node executing the INC task corresponding to the second information.

[0206] Accordingly, the embodiment of the present application also provides a communication method, which is applied to the second layer of the communication system, such as Figure 4 As shown, the method includes:

[0207] Step 401: receiving second information sent by the third layer of the communication system, where the second information is used to request execution of an INC task;

[0208] Step 402: Determine at least one computing node and a first file executable by each computing node according to the first information and the second information, wherein the first information is provided by the first layer of the communication system, the first layer includes at least one computing node, the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node, and the first file is used to execute the INC task corresponding to the second information;

[0209] Step 403: Send the corresponding first file to each of the at least one computing node determined, and send third information to the third layer, wherein the third information at least indicates that the data to be processed corresponding to the second information is sent to the at least one computing node determined, and each of the at least one computing node determined can use the corresponding first file and the data to be processed to execute the INC task corresponding to the second information.

[0210] In one embodiment, determining at least one computing node and a first file executable by each computing node according to the first information and the second information may include:

[0211] Determine, from the computing nodes included in the first layer, at least one computing node that supports executing the INC task corresponding to the second information, according to the first information and the second information;

[0212] When at least one computing node that supports executing the INC task corresponding to the second information is determined, for each of the at least one computing node determined, a first file corresponding to the computing node is determined based on the first information and the second information.

[0213] In one embodiment, sending the corresponding first file to each computing node in the determined at least one computing node may include:

[0214] Determine, based on the first information, whether there is an INC task being executed on each of the at least one computing node determined, and determine whether each computing node supports parallel execution of multiple INC tasks by means of business isolation;

[0215] For each of the at least one computing node determined, when there is no INC task being executed on the computing node, and / or when the computing node supports parallel execution of multiple INC tasks through business isolation, a corresponding first file is sent to the computing node.

[0216] In one embodiment, when the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the determined at least one computing node includes at least one first type of computing node.

[0217] In one embodiment, when the fourth information indicates that the INC task corresponding to the second information requires the second type of computing node to participate in execution, sending the corresponding first file to each computing node in the determined at least one computing node may include:

[0218] A corresponding first file is sent to each computing node of at least two computing nodes, the at least two computing nodes including at least one computing node of the first type and at least one computing node of the second type.

[0219] In one embodiment, when the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the first information includes relevant information about resources and / or capabilities that can be provided by at least one first type of computing node.

[0220] In one embodiment, when the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the first information includes relevant information about resources and / or capabilities that can be provided by at least one first type of computing node, and includes relevant information about resources and / or capabilities that can be provided by at least one second type of computing node.

[0221] In one embodiment, the method may further include:

[0222] Receiving fifth information sent by each computing node of the determined at least one computing node, the fifth information comprising relevant information about resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information;

[0223] The first information is updated according to the received at least one fifth information.

[0224] In one embodiment, the method may further include:

[0225] An INC primitive library is opened to the third layer, wherein the INC primitive library includes multiple INC primitives, and each INC primitive represents an INC type; the second information includes at least one INC primitive in the INC primitive library.

[0226] In one embodiment, the receiving the second information sent by the third layer may include:

[0227] The second information sent by the third layer is received through the first interface.

[0228] In one embodiment, the method may further include:

[0229] The first information provided by the first layer is received through a second interface.

[0230] In one embodiment, sending the corresponding first file to each computing node in the determined at least one computing node may include:

[0231] The corresponding first file is sent to each computing node in the determined at least one computing node through the third interface.

[0232] In one embodiment, sending the third information to the third layer may include:

[0233] The third information is sent to the third layer through a fourth interface.

[0234] Accordingly, the embodiment of the present application also provides a communication method, which is applied to the third layer of the communication system, such as Figure 5 As shown, the method includes:

[0235] Step 501: Sending second information to the second layer of the communication system when there is an INC demand, wherein the second information is used to request execution of an INC task, and the third layer is used to provide application services;

[0236] Step 502: receiving third information sent by the second layer, wherein the third information at least indicates sending to-be-processed data corresponding to the second information to at least one computing node in the first layer of the communication system determined by the second layer;

[0237] Step 503: Based on the third information, send the data to be processed to each computing node of at least one computing node determined by the second layer, so that each computing node uses the corresponding executable first file and the data to be processed to execute the INC task corresponding to the second information; wherein, the first file is determined by the second layer, and the first file is used to execute the INC task corresponding to the second information.

[0238] In one embodiment, the method may further include:

[0239] Receive sixth information, wherein the sixth information includes a result of at least one computing node determined by the second layer executing an INC task corresponding to the second information.

[0240] In one embodiment, the method may further include:

[0241] Based on the second-layer open INC primitive library, the second information is determined, the INC primitive library includes multiple INC primitives, each INC primitive represents an INC type, and the second information includes at least one INC primitive in the INC primitive library.

[0242] In one embodiment, sending the second information to the second layer of the communication system may include:

[0243] The second information is sent to the second layer through the first interface.

[0244] In one embodiment, the receiving the third information sent by the second layer may include:

[0245] The third information sent by the second layer is received through the fourth interface.

[0246] In one embodiment, sending the to-be-processed data to each computing node of the at least one computing node determined by the second layer may include:

[0247] The data to be processed is sent to each computing node of the at least one computing node determined by the second layer through a fifth interface.

[0248] In one embodiment, the receiving sixth information may include:

[0249] The result of executing the INC task corresponding to the second information sent by each computing node of at least one computing node determined by the second layer is received through the fifth interface to obtain the sixth information.

[0250] Accordingly, the embodiment of the present application also provides a communication method, which is applied to a computing node in the first layer of a communication system, such as Figure 6 As shown, the method includes:

[0251] Step 601: Sending information related to resources and / or capabilities that can be provided by the computing node to the second layer of the communication system, so that the second layer obtains first information, where the first information includes information related to resources and / or capabilities that can be provided by at least one computing node included in the first layer;

[0252] Step 602: receiving an executable first file sent by the second layer, where the first file is used to execute an INC task corresponding to second information, where the second information is sent by the third layer of the communication system to the second layer, and the second information is used to request execution of the INC task;

[0253] Step 603: Receive the data to be processed sent by the third layer, and use the received first file and the data to be processed to execute the INC task corresponding to the second information.

[0254] In one embodiment, the method may further include:

[0255] Send the fifth information to the second layer, wherein the fifth information includes relevant information about the resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information.

[0256] In one embodiment, the method may further include:

[0257] The result of executing the INC task corresponding to the second information is sent to the third layer so that the third layer obtains sixth information, and the sixth information includes the result of at least one computing node determined by the second layer (i.e., at least one computing node used to execute the INC task corresponding to the second information) executing the INC task corresponding to the second information.

[0258] In one embodiment, the receiving the executable first file sent by the second layer may include:

[0259] The first file sent by the second layer is received through a third interface.

[0260] In one embodiment, the receiving the to-be-processed data sent by the third layer may include:

[0261] The data to be processed sent by the third layer is received through the fifth interface.

[0262] In one embodiment, sending the result of executing the INC task corresponding to the second information to the third layer may include:

[0263] The result of executing the INC task corresponding to the second information is sent to the third layer through the fifth interface.

[0264] The communication system and method provided by the embodiments of the present application include: a first layer, a second layer and a third layer; wherein the first layer includes at least one computing node, which is used to provide first information to the second layer, and the first information includes relevant information about resources and / or capabilities that can be provided by the at least one computing node; the third layer is used to provide application services, and send second information to the second layer when there is an INC demand, and the second information is used to request the execution of an INC task; the second layer is used to receive the second information sent by the third layer, and determine at least one computing node and a first file executable by each computing node based on the first information and the second information, and the first file is used to execute the INC task corresponding to the second information; send the corresponding first file to each computing node in the determined at least one computing node, and send third information to the third layer, and the third information at least indicates that the data to be processed corresponding to the second information is sent to the determined at least one computing node; the third layer is also used to receive the third information sent by the second layer, and send the data to be processed to each computing node in the determined at least one computing node, so that each computing node uses the corresponding first file and the data to be processed to execute the INC task corresponding to the second information. The solution provided in the embodiment of the present application defines a general, flexible, ubiquitous, cross-domain framework for INC that includes a three-layer logical functional architecture. The first layer of the framework provides the second layer with relevant information about the resources and / or capabilities of at least one computing node (i.e., the first information). The third layer of the framework is used to provide application services and, when there is an INC demand, sends information for requesting the execution of an INC task (i.e., the second information) to the second layer. The second layer compiles a program based on the relevant information about the resources and / or capabilities of at least one computing node and the information for requesting the execution of an INC task, determines at least one computing node for executing the INC task and a first file executable by each computing node, sends the corresponding first file to each of the determined at least one computing node, and sends a notification (i.e., the third information) to the third layer, so that the third layer sends the data to be processed to each computing node, so that each computing node executes the INC task using the corresponding first file and the data to be processed. In this way, the complete process from initiation to execution of the INC task is realized through the cooperation between the first layer, the second layer, and the third layer, thereby improving the efficiency of executing INC tasks, that is, being able to efficiently perform INC, and simplifying the complexity of INC program design.

[0265] The present application is described in further detail below in conjunction with application examples.

[0266] In this application example, the first layer is called the heterogeneous resource layer; the second layer is called the INC capability layer; the third layer is called the application service layer; the first type of computing nodes are called INC computing nodes; and the second type of computing nodes are called server computing nodes.

[0267] This application example defines the general framework, system, main communication interfaces within the system, and communication processes based on each communication interface for INC. Figure 7 As shown in Figure 1, the INC architecture includes a heterogeneous resource layer, an INC capability layer, and an application service layer. The heterogeneous resource layer includes heterogeneous programmable network devices (i.e., INC computing nodes), such as programmable switches, smart network cards, DPUs, etc., and also server computing nodes, such as CPUs / GPUs, etc. The heterogeneous resource layer can perform application-related function offloading and is the actual carrier for implementing INC functions. However, the architecture and performance of switch chips from different manufacturers may present heterogeneous diversity, so they need to be uniformly configured and managed by the INC capability layer. As an intermediate layer between the application service layer and the underlying heterogeneous resource layer, the INC capability layer is mainly used to realize flexible, on-demand, dynamic configuration of INC functions and unified management of resources, and is the design core of the INC system architecture. The application service layer includes different types of applications (i.e., applications) that need to be offloaded to network devices (i.e., INC computing nodes). From the perspective of fields, it can include AI intelligent computing-related services, general distributed computing tasks, security applications, etc.; from the perspective of real-time, it can include real-time services, non-real-time services, event-triggered services, etc.

[0268] In this application example, an INC offload request is initiated by an application in the application service layer (i.e., an INC task is initiated, i.e., the above-mentioned second information is sent); the INC controller (i.e., the INC capability layer) performs unified program compilation and configuration according to the INC offload request and the capabilities and / or resource status of the current heterogeneous resource layer (i.e., the above-mentioned first information), and sends the compiled program (i.e., the above-mentioned first file) to the computing node that performs the calculation (which may include only the INC computing node, or may include the INC computing node and the server computing node); and then the application passes the calculation data (i.e., the data to be processed, i.e., the above-mentioned data to be processed) to the corresponding computing node to complete the calculation. At the same time, this application example defines a method and process for simultaneously realizing application offloading for different INC computing functions in multiple applications (i.e., different INC offload requests initiated by multiple applications, i.e., multiple second information), and the INC controller also performs unified compilation and configuration of related INC computing functions, and different applications pass the calculation data to the corresponding computing node, and then the INC computing node completes the calculation or the INC computing node and the server computing node cooperate to complete the calculation. In addition, this application example defines the open characteristics of the resource capabilities of network devices (i.e., INC computing nodes), that is, heterogeneous programmable network devices can open the INC primitives they support to applications in the form of application programming interfaces (APIs), which can be flexibly selected and adapted by application developers.

[0269] Combine the following Figure 8 Describe in detail the functions of each layer / module in the INC architecture, the communication interface within the layer, and the communication interface between layers.

[0270] like Figure 8 As shown in the figure, in this application example, the INC capability layer is the core of the INC logical functional architecture. The INC capability layer contains four functional modules, namely, the INC capability abstraction module, the INC primitive classification module, the INC function compilation module, and the runtime dynamic configuration module. The INC capability layer is used to achieve effective connection between the application service layer and the heterogeneous resource layer.

[0271] Interface 1 (i.e., the second interface mentioned above) is a two-way communication interface between the heterogeneous resource layer and the INC capability layer. The functions of interface 1 include a registration function. The computing nodes of the heterogeneous resource layer can inform the INC capability abstraction module whether they support INC through interface 1. If supported, the computing node can complete the registration process on the INC capability abstraction module. The functions of interface 1 also include a capability acquisition function. Due to the hardware differences of the computing nodes of the heterogeneous resource layer, different types of hardware can perform different INC functions. The INC capability abstraction module can obtain the capabilities of each INC computing node / server computing node through interface 1 (i.e., obtain the above-mentioned first information). The functions of interface 1 also include a status monitoring function. In the process of executing INC tasks, the resources and status of each computing node in the heterogeneous resource layer may change. The INC capability abstraction module can monitor the status of the underlying resources through interface 1 (i.e., it can receive the above-mentioned fifth information through interface 1).

[0272] Interface 2 is an internal interface of the INC capability layer, specifically a one-way communication interface between the INC capability abstraction module and the INC function compilation module. The INC capability abstraction module can notify the INC function compilation module of the relevant resources that the current heterogeneous resource layer can provide (i.e., the above-mentioned first information) through interface 2, so that the INC function compilation module can perform unified function compilation according to the resources that the heterogeneous resource pool can provide (i.e., the above-mentioned first information) and in combination with the application that needs to be uninstalled (i.e., the above-mentioned second information).

[0273] Interface 3 (i.e., the first interface mentioned above) is a two-way communication interface between the INC capability layer and the application service layer. The INC primitive classification module can open the function interface of the INC function to different types of applications through interface 3; wherein, INC primitives refer to the basic operation types of INC, such as in-network aggregation, in-network caching, in-network sorting, in-network consistency verification, etc. When different types of applications have INC requirements, the application can initiate a request to the INC capability layer through interface 3 (i.e., send the second information mentioned above), and the INC primitive classification module opens the INC function interface to the application through interface 3 for the application to call. From the perspective of application developers, the application only needs to do a small amount of code adaptation work, and does not need to worry about which specific computing node the application is executed on. Therefore, the INC capability layer can improve the user-friendliness of application development by opening its capabilities upward through interface 3, that is, it can simplify the complexity of INC program design.

[0274] Interface 4 is the internal interface of the INC capability layer, specifically, a two-way communication interface between the INC primitive classification module and the INC function compilation module. The INC primitive classification module can pass the application request (i.e., the second information) to the INC function compilation module through interface 4, and the INC function compilation module compiles the program in combination with the underlying heterogeneous resource status (i.e., the first information) notified by the INC capability abstraction module; if the compilation is successful, it means that the corresponding application can be offloaded to the corresponding computing node for processing; if the compilation is unsuccessful, it means that the computing node in the current heterogeneous resource layer does not support the corresponding offloading function. Among them, program compilation refers to compiling a program written in a high-level programming language (such as an application designed by an application developer using C language or other programming languages) into a machine executable file (i.e., the first file mentioned above, that is, a program that can be run by the INC computing node / server computing node), which can define the format of input and output data (for example, the input data is required to be a picture in jpg format, and the output data is a classification result). In addition, the criterion for whether the compilation is successful is whether the compiler runs successfully and generates an executable file. If the compiler reports an error, the file cannot be generated, that is, the compilation fails; the compilation rules depend on the corresponding programming language and compiler, and this application example does not limit this.

[0275] Interface 5 is an internal interface of the INC capability layer, specifically a one-way communication interface between the INC function compilation module and the runtime dynamic configuration module. The INC function compilation module can pass the successfully compiled execution file (i.e., the first file mentioned above) to the runtime dynamic configuration module through interface 5. The execution file can also include the location information of the INC computing node / server computing node that executes the program (such as at least one of the node identification (such as ID), Internet Protocol (IP) address or Media Access Control (MAC) address, etc.).

[0276] Interface 6 (i.e., the third interface mentioned above) is a two-way communication interface between the runtime dynamic configuration module and the INC computing node / server computing node, that is, a two-way communication interface between the INC capability layer and the heterogeneous resource layer. The runtime dynamic configuration module can send the execution file to the corresponding INC computing node / server computing node through interface 6. Since multiple INC functions (i.e., primitive types) may run simultaneously in the same INC computing node / server computing node, the runtime dynamic configuration module needs to dynamically configure the execution file corresponding to the computing primitive (i.e., INC primitive) to the INC computing node / server computing node without affecting the currently executing computing task (i.e., the above-mentioned INC task). The runtime dynamic configuration module can determine the timing of configuring the execution file based on whether the INC computing node / server computing node has the ability to support dynamic configuration (it can determine whether the computing node has the ability to support dynamic configuration based on whether the INC computing node / server computing node can achieve business isolation); if it does not have the ability to support dynamic configuration, the runtime dynamic configuration module can wait for the end of the current task to interrupt the device (i.e., INC computing node / server computing node) for configuration; if it has the ability to support dynamic configuration, the runtime dynamic configuration module can perform dynamic non-interruption configuration. In addition, considering that some more complex computing tasks may require the INC computing nodes and server computing nodes to communicate and cooperate with each other, the runtime dynamic configuration module can either unload (i.e. send) the compiled function file (i.e., the first file mentioned above) to the corresponding INC computing node through interface 6 to complete the INC task alone, or configure it to the INC computing node and the server computing node to cooperate to complete the INC task. After the calculation is completed, the INC computing node / server computing node can feedback to the runtime configuration module through interface 6 that the current task has been completed, so that the runtime configuration module can clear the current task cache and wait for the next configuration step.

[0277] In this application example, the criterion for determining whether the INC computing node / server computing node has the ability to support dynamic configuration can be whether the service is interrupted. For example, in the process of network telemetry, some flows or packets need to be selected for measurement based on the quintuple of the fourth version of the Internet Protocol (IPv4). When the telemetry information is inaccurate, the traditional method needs to interrupt the current telemetry process, and the software-defined network (SDN) controller re-issues the policy to the network device. This process may be interrupted for several minutes, but in the high-speed network operation state, these several minutes of interruption will affect the execution of the service. The dynamic network configuration is configured in the state of process running (which can be expressed as runtime configuration in English), without interrupting the service, thereby ensuring the quality of network service.

[0278] Interface 7 (i.e. the fourth interface mentioned above) is a one-way communication interface between the INC capability layer and the application service layer. After the runtime dynamic configuration module receives the compiled program from the INC function compilation module, it can inform the application through interface 7 that the corresponding processed data needs to be passed to the corresponding computing node (i.e. INC computing node, or INC computing node and server computing node).

[0279] Interface 8 (i.e. the fifth interface mentioned above) is a two-way communication interface between the application service layer and the heterogeneous resource layer. The application can transmit computing data (i.e. the above-mentioned data to be processed) to the corresponding computing node (i.e. the INC computing node, or the INC computing node and the server computing node) through interface 8; after the INC computing node / server computing node completes the computing task (i.e. the above-mentioned INC task), it can pass the output data (i.e. the execution result, i.e. the above-mentioned sixth information) to the application through interface 8 for the next selection, that is, the application can determine to continue to execute the INC function, or terminate the calculation process.

[0280] In this application example, when physical networking is performed based on the INC architecture, Fig. 9 As shown, the functions of the INC capability layer can be implemented through the INC control node, on which the INC control node is provided with an INC capability abstraction module, an INC primitive classification module, an INC function compilation module and a runtime dynamic configuration module; the application service layer includes multiple applications (such as application 1, application 2...application K, K is an integer greater than 2); the INC computing node includes programmable switches (such as programmable switch 1, programmable switch 2, programmable switch 3, and programmable switch 4) and smart network cards in the server (such as smart network cards A1 and A2 in server A, and smart network cards N1 and N2 in server N, N is an integer greater than 1); the server computing node includes the CPU and GPU in the server (such as the CPU and GPU in server A, and the CPU and GPU in server N).

[0281] In this application example, when implementing the online consistency check of the distributed system based on the INC architecture, Fig.10 As shown, the functions of the INC capability layer can be implemented by the INC controller; in addition, the network consistency check function can be implemented by multiple INC computing nodes, or by multiple INC computing nodes and multiple server computing nodes. Fig.10 As shown in the architecture, the distributed machine learning INC single task process can be as follows Fig.11 As shown in Figure 2, multi-task parallel processes such as distributed machine learning INC and distributed system consistency verification can be performed as follows: Fig.12 shown.

[0282] Specifically, in this application example, Fig.11As shown, the process of executing distributed machine learning INC tasks based on the INC architecture may include the following steps:

[0283] Step 1101: the INC controller opens the INC primitive library to the application through interface 3, and the application initiates an INC request to the INC controller (i.e., sends the above second information), and then executes steps 1102 and 1103;

[0284] Step 1102: Through interface 1, the INC controller collects resources and / or capabilities of the INC computing nodes (i.e., obtains the above-mentioned first information), and then executes step 1104;

[0285] Step 1103: The INC controller collects resources and / or capabilities of the server computing nodes (ie, obtains the above-mentioned first information) (via interface 1 or other specified interfaces), and then executes step 1105;

[0286] Step 1104: The INC computing node sends a response to the INC controller through interface 1 (the response includes the executable INC operation type), and then executes step 1106;

[0287] Step 1105: The server computing node (may be through interface 1 or other specified interfaces) responds to the INC controller with resources and / or capabilities (such as whether the GPU is idle), and then executes step 1106;

[0288] Step 1106: The INC controller completes hardware abstraction through the internal interface 2, and then executes step 1107;

[0289] Step 1107: The INC controller completes program compilation through internal interface 4 and interface 5, and then executes steps 1108 and 1109;

[0290] Step 1108: Through interface 6, the INC controller configures the compiler (i.e., the first file) to the INC computing node, and then executes step 1110;

[0291] Step 1109: The INC controller (may be through interface 6 or other specified interfaces) configures the compiler program (i.e., the first file) to the server computing node, and then executes step 1110;

[0292] Step 1110: Through interface 7, the INC controller sends a response to the application (i.e., sends the third information above) (the response includes the ID of the node that can perform the calculation, and the response indicates that the INC controller agrees to perform the corresponding INC operation, and is used to notify the application to transfer the data to be processed to the node that can perform the calculation, that is, the third information above may include the identifier (such as ID) of at least one computing node determined by the second layer), and then execute steps 1111 and 1112;

[0293] Step 1111: Through interface 8, the application transfers computing task data (i.e., data to be processed, i.e., the above-mentioned data to be processed) to the corresponding INC computing node, and then executes step 1113;

[0294] Step 1112: The application transmits the computing task data (i.e., the data to be processed, i.e., the above-mentioned data to be processed) to the corresponding server computing node (via interface 8 or other specified interfaces), and then executes step 1113;

[0295] Step 1113: the INC computing node exchanges intermediate computing task data with the server computing node (i.e., exchanges intermediate data of the current INC task), and the INC computing node caches the final computing result. If the INC computing node cannot cache the final computing result, the server participating in the computing (i.e., the server computing node) caches the final computing result, and then executes step 1114;

[0296] Step 1114: After completing the calculation, the computing node participating in the calculation reports resources and / or capabilities to the INC controller (i.e., sends the fifth information above), and the INC controller updates the resource and / or capability status of the corresponding computing node (i.e., updates the first information above), and then executes step 1115;

[0297] Step 1115: Through interface 8, the computing node that caches the calculation results (ie, the INC computing node / server computing node) returns the calculation results (ie, the sixth information mentioned above) to the application, and the current INC task ends.

[0298] Among them, in step 1101, the INC request initiated by the application to the INC controller (i.e., the second information mentioned above) may include one or more INC primitive operation types that need to be executed, such as at least one of the INC primitives such as the in-network aggregation primitive INC_AGG(), the in-network caching primitive INC_Caching(), the in-network sorting primitive INC_Sequencing(), and the in-network consistency check primitive INC_Paxos(). In addition, the INC request may include information on whether the server computing nodes need to cooperate synchronously to participate in the INC calculation (i.e., the fourth information mentioned above).

[0299] In step 1103, when it is determined according to the INC request that the current INC task requires the synchronous cooperation of the server computing nodes to participate in the calculation, the INC controller collects the resources and / or capabilities of the server computing nodes.

[0300] In step 1104, the INC computing node responds to the inquiry of the INC controller through interface 1, and feeds back the executable INC operation types (that is, the above-mentioned first information may include the INC operation types executable by the INC computing node), such as in-network aggregation, in-network caching, in-network sorting, in-network consistency checking, etc.; and can feed back the current resource status (that is, the above-mentioned first information may include the current resource status of the INC computing node), such as the size of the free storage space, free table entries, SRAM / TCAM occupancy, etc.

[0301] Step 1106 is the internal process of the INC controller. The INC capability abstraction module reports the INC primitive capabilities that can be provided by the underlying layer in the current state (i.e., the collected resource and / or capability information of each computing node, i.e., the above-mentioned first information) to the INC function compilation module through interface 2.

[0302] Step 1107 is also the internal process of the INC controller. The INC primitive abstract module passes the application's INC request (i.e., the above-mentioned second information) to the INC functional compilation module through interface 2. The INC functional compilation module completes the program compilation according to the application INC requirements (i.e., the INC request, i.e., the above-mentioned second information) and the resources and / or status of each computing node (i.e., the above-mentioned second information). Afterwards, the INC functional compilation module passes the compiled program (i.e., the above-mentioned first file) to the runtime dynamic configuration module through interface 5.

[0303] In step 1108, the runtime dynamic configuration module in the INC controller configures the compiled program to the INC computing node through interface 6.

[0304] In step 1109, when the current INC task requires the server computing nodes to synchronously cooperate in the calculation, the runtime dynamic configuration module configures the compiled program to the server computing nodes.

[0305] In step 1112, when the current INC task requires the synchronous cooperation of the server computing nodes to participate in the calculation, the application transfers the data to be processed to the corresponding server computing nodes.

[0306] In step 1115, after the INC computing node or server computing node transmits the final calculation result back to the application, the application can end the current computing task (i.e., end the current INC task) and can initiate the next computing request as needed, i.e., initiate a new INC task.

[0307] In this application example, Fig.12 As shown, the process of executing multiple INC tasks such as distributed machine learning INC tasks and distributed system network consistency verification INC tasks in parallel based on the INC architecture may include the following steps:

[0308] Step 1201: the INC controller opens the INC primitive library to the application through interface 3, and multiple applications initiate INC requests to the INC controller (i.e., send multiple pieces of the above second information), and then execute steps 1202 and 1203;

[0309] Step 1202: Through interface 1, the INC controller collects resources and / or capabilities of the INC computing nodes (i.e., obtains the above-mentioned first information), and then executes step 1204;

[0310] Step 1203: The INC controller collects resources and / or capabilities of the server computing nodes (ie, obtains the above-mentioned first information) (via interface 1 or other specified interfaces), and then executes step 1205;

[0311] Step 1204: The INC computing node sends a response to the INC controller through interface 1 (the response includes executable INC operation types), and then executes step 1206;

[0312] Step 1205: The server computing node (may be through interface 1 or other specified interfaces) responds to the INC controller with resources and / or capabilities (e.g., whether the GPU is idle), and then executes step 1206;

[0313] Step 1206: The INC controller completes hardware abstraction through the internal interface 2, and then executes step 1207;

[0314] Step 1207: Through internal interface 4 and interface 5, the INC controller simultaneously completes program compilation for multiple tasks, and then executes steps 1208 and 1209;

[0315] Step 1208: Through interface 6, the INC controller configures the compiler (i.e., the first file) to the INC computing node, and then executes step 1210;

[0316] Step 1209: The INC controller (via interface 6 or other specified interfaces) configures the compiler (i.e., the first file) to the server computing node, and then executes step 1210;

[0317] Step 1210: The INC controller sends a response (i.e., sends the third information) to the application through interface 7 (the response includes the ID of the node that can perform the calculation, and the response indicates that the INC controller agrees to perform the corresponding INC operation, and is used to notify the application to transfer the data to be processed to the node that can perform the calculation, that is, the third information may include the identifier (such as ID) of at least one computing node determined by the second layer), and then execute steps 1211 and 1212;

[0318] Step 1211: Through interface 8, the application transfers computing task data (i.e., data to be processed, i.e., the above-mentioned data to be processed) to the corresponding INC computing node, and then executes step 1213;

[0319] Step 1212: The application transmits the computing task data (i.e., the data to be processed, i.e., the above-mentioned data to be processed) to the corresponding server computing node (via interface 8 or other specified interfaces), and then executes step 1213;

[0320] Step 1213: the INC computing node exchanges intermediate computing task data with the server computing node (i.e., exchanges intermediate data of the current INC task), and the INC computing node caches the final computing result. If the INC computing node cannot cache the final computing result, the server participating in the computing (i.e., the server computing node) caches the final computing result, and then executes step 1214;

[0321] Step 1214: After completing the calculation, the computing node participating in the calculation reports resources and / or capabilities to the INC controller (i.e., sends the fifth information above), and the INC controller updates the resource and / or capability status of the corresponding computing node (i.e., updates the first information above), and then executes step 1215;

[0322] Step 1215: Through interface 8, the computing node that caches the calculation results (ie, the INC computing node / server computing node) returns the calculation results (ie, the sixth information mentioned above) to the application, and the current INC task ends.

[0323] Among them, in step 1201, the INC request (i.e., the second information) initiated by each application in the multiple applications to the INC controller may include one or more INC primitive operation types that need to be executed, such as at least one of the INC primitives such as the in-network aggregation primitive INC_AGG(), the in-network caching primitive INC_Caching(), the in-network sorting primitive INC_Sequencing(), and the in-network consistency check primitive INC_Paxos(). In addition, each INC request may include information on whether the server computing nodes need to be synchronized and cooperated to participate in the INC calculation (i.e., the fourth information).

[0324] Step 1207 is the internal process of the INC controller. The INC primitive abstraction module passes the INC request (i.e., the second information) of each application in the multiple applications to the INC functional compilation module through interface 2. The INC functional compilation module compiles multiple INC tasks in parallel according to the INC requirements of the multiple applications (i.e., the INC request, i.e., the second information) and the resources and / or status of each computing node (i.e., the second information). Afterwards, the INC functional compilation module passes the compiled program (i.e., the first file) to the runtime dynamic configuration module through interface 5. The runtime dynamic configuration module can configure the compiled programs corresponding to multiple INC tasks to the same or different computing nodes (which can include only INC computing nodes, or can include INC computing nodes and server computing nodes). The same computing node can execute multiple INC primitive operations in parallel according to its own resource conditions, or can only execute one INC primitive operation.

[0325] The solution provided by this application example has the following advantages:

[0326] First, in this application example, the calculation of the INC computing node should be regarded as a reasonable supplement to the host computing (i.e., the computing of the server computing node). Since the network equipment (i.e., INC computing node) has limited resources other than forwarding, and it is very challenging to perform other logical processing during high-speed forwarding, the types of INC that the network equipment can perform are relatively limited. By summarizing some common logical functions (such as in-network aggregation, in-network caching, in-network sorting, in-network consistency checking, etc.) from different application scenarios, an INC primitive library containing INC primitives such as in-network aggregation primitive INC_AGG(), in-network caching primitive INC_Caching(), in-network sorting primitive INC_Sequencing(), and in-network consistency checking primitive INC_Paxos() is formed. The INC primitive library is then opened to the application by the INC controller, so that the application can select INC operations based on these INC primitives, thereby customizing the application program. Such capability exposure reduces to the greatest extent the workload that developers need to perform in adapting heterogeneous network devices (i.e., heterogeneous INC computing nodes), and also makes INC a universal capability that can be called in the form of a function. This simplifies the design complexity of INC. Developers only need to call the function interface of the relevant INC primitive library to design the corresponding INC program. There is no need for network devices (i.e., INC computing nodes) to determine how to implement INC application unloading on their own, which is very friendly to application development.

[0327] Secondly, in this application example, the INC controller connects the application requirements and the underlying resource capabilities, that is, the INC controller opens the INC primitive library upward and collects the support capabilities of the heterogeneous resource layer for the INC primitive library downward. When the application has an INC unloading request (that is, there is an INC requirement), the application initiates an INC request to the INC controller. The INC controller only needs to adapt the INC primitive requirements proposed by the application and the INC primitive capabilities that can be provided by the underlying heterogeneous resources during the compilation process. If the computing node of the heterogeneous resource layer supports the INC operation corresponding to the INC request (that is, the corresponding INC task), the program can be compiled. If the computing node of the heterogeneous resource layer does not support the INC operation corresponding to the INC request, the program will not be compiled, and the application will be directly fed back that the current heterogeneous resource layer does not support the INC operation corresponding to the INC request. Through such a process design, the INC controller can avoid making adjustments to the application itself, so that the design work of the application belongs to the developer.

[0328] Third, in this application example, the INC controller will combine the INC primitive request of the application (i.e., the second information) and the INC primitive offloading capability supported by the underlying device (i.e., the first information) to perform unified program compilation; at the same time, the INC controller also supports dynamic configuration of multiple INC primitive requests to multiple hardware instances that execute INC primitives (which may include only INC computing nodes, or may include INC computing nodes and server computing nodes). Figure 1 Compared with the distributed machine learning scenario shown in the figure, which performs customized INC application offloading and usually only executes a single INC primitive offloading function, this application example defines a method and process for implementing INC offloading in parallel with a single INC task and multiple INC tasks for general scenarios, and the INC controller has dynamic configuration capabilities, so that the resource utilization of network devices supporting INC (i.e., INC computing nodes) can be more efficient. That is, the INC controller can shield the underlying hardware differences, efficiently utilize heterogeneous network device resources, and offload diversified applications to the network devices in real time and dynamically.

[0329] Fourth, considering that INC technology has good application prospects in various scenarios, deploying the communication system based on the INC architecture of this application example can improve the computing efficiency of the communication system and reduce communication latency; at the same time, it can improve network resource utilization, reduce costs and increase efficiency; in addition, it is more conducive to promoting the implementation and deployment of computing power networks and improving the overall service quality of networks and computing power.

[0330] In order to implement the method on the second layer side of the communication system in the embodiment of the present application, the embodiment of the present application also provides a communication device, which is arranged on the second layer of the communication system, such as Fig.13As shown, the device comprises:

[0331] The first receiving unit 1301 is used to receive second information sent by the third layer of the communication system, where the second information is used to request to execute an INC task;

[0332] A first processing unit 1302 is configured to determine at least one computing node and a first file executable by each computing node according to first information and the second information, wherein the first information is provided by a first layer of the communication system, the first layer includes at least one computing node, the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node, and the first file is used to execute an INC task corresponding to the second information;

[0333] The first sending unit 1303 is used to send the corresponding first file to each of the at least one computing node determined, and to send third information to the third layer, wherein the third information at least indicates that the data to be processed corresponding to the second information is sent to the at least one computing node determined, and each of the at least one computing node determined can use the corresponding first file and the data to be processed to execute the INC task corresponding to the second information.

[0334] In one embodiment, the first processing unit 1302 is specifically configured to:

[0335] Determine, from the computing nodes included in the first layer, at least one computing node that supports executing the INC task corresponding to the second information, according to the first information and the second information;

[0336] When at least one computing node that supports executing the INC task corresponding to the second information is determined, for each of the at least one computing node determined, a first file corresponding to the computing node is determined based on the first information and the second information.

[0337] In one embodiment, the first processing unit 1302 is further used to determine, based on the first information, whether there is an INC task being executed on each of the at least one computing node determined, and determine whether each computing node supports parallel execution of multiple INC tasks by means of business isolation;

[0338] The first sending unit 1303 is also used to send the corresponding first file to each computing node among the at least one computing node determined, when there is no INC task being executed on the computing node and / or when the computing node supports parallel execution of multiple INC tasks through business isolation.

[0339] In one embodiment, the first receiving unit 1301 is further configured to receive fifth information sent by each computing node in the determined at least one computing node, wherein the fifth information includes information related to resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information;

[0340] The first processing unit 1302 is further configured to update the first information according to at least one fifth information received.

[0341] In one embodiment, if Fig.13 As shown, the device may also include an opening unit 1304, which is used to open an INC primitive library to the third layer, wherein the INC primitive library contains multiple INC primitives, and each INC primitive represents an INC type; the second information contains at least one INC primitive in the INC primitive library.

[0342] In one embodiment, the first receiving unit 1301 is further configured to receive the second information sent by the third layer through the first interface.

[0343] In one embodiment, the first receiving unit 1301 is further configured to receive the first information provided by the first layer through a second interface.

[0344] In one embodiment, the first sending unit 1303 is further configured to send the corresponding first file to each computing node of the determined at least one computing node through a third interface.

[0345] In one embodiment, the first sending unit 1303 is further configured to send the third information to the third layer through a fourth interface.

[0346] In actual application, the first receiving unit 1301 and the first sending unit 1303 can be implemented by a communication interface in a communication device; the first processing unit 1302 can be implemented by a processor in a communication device; and the open unit 1304 can be implemented by a processor in a communication device in combination with a communication interface.

[0347] In order to implement the method on the third layer side of the communication system in the embodiment of the present application, the embodiment of the present application also provides a communication device, which is arranged on the third layer of the communication system, such as Fig.14 As shown, the device comprises:

[0348] The second sending unit 1401 is used to send second information to the second layer of the communication system when there is an INC demand, wherein the second information is used to request to perform an INC task, and the third layer is used to provide application services;

[0349] A second receiving unit 1402 is configured to receive third information sent by the second layer, where the third information at least indicates that to-be-processed data corresponding to the second information is sent to at least one computing node in the first layer of the communication system determined by the second layer;

[0350] The third sending unit 1403 is used to send the data to be processed to each computing node of at least one computing node determined by the second layer according to the third information, so that each computing node uses the corresponding executable first file and the data to be processed to execute the INC task corresponding to the second information; wherein, the first file is determined by the second layer, and the first file is used to execute the INC task corresponding to the second information.

[0351] In one embodiment, the second receiving unit 1402 is further used to receive sixth information, and the sixth information includes the result of at least one computing node determined by the second layer executing the INC task corresponding to the second information.

[0352] In one embodiment, if Fig.14 As shown, the device may also include a second processing unit 1404, used to determine the second information based on the second-layer open INC primitive library, the INC primitive library containing multiple INC primitives, each INC primitive representing an INC type, and the second information containing at least one INC primitive in the INC primitive library.

[0353] In one embodiment, the second sending unit 1401 is further configured to send the second information to the second layer through the first interface.

[0354] In one embodiment, the second receiving unit 1402 is further configured to receive third information sent by the second layer through a fourth interface.

[0355] In one embodiment, the third sending unit 1403 is further configured to send the data to be processed to each computing node of the at least one computing node determined by the second layer through the fifth interface.

[0356] In one embodiment, the second receiving unit 1402 is also used to receive, through the fifth interface, the result of executing the INC task corresponding to the second information sent by each computing node of at least one computing node determined by the second layer, to obtain the sixth information.

[0357] In actual application, the second sending unit 1401, the second receiving unit 1402 and the third sending unit 1403 can be implemented by a communication interface in a communication device; and the second processing unit 1404 can be implemented by a processor in the communication device.

[0358] In order to implement the method on the computing node side in the first layer of the communication system of the embodiment of the present application, the embodiment of the present application also provides a communication device, which is arranged on the computing node in the first layer of the communication system, such as Fig.15 As shown, the device comprises:

[0359] The fourth sending unit 1501 is configured to send information related to resources and / or capabilities that can be provided by the computing node to the second layer of the communication system, so that the second layer obtains first information, where the first information includes information related to resources and / or capabilities that can be provided by at least one computing node included in the first layer;

[0360] The third receiving unit 1502 is configured to receive an executable first file sent by the second layer, where the first file is used to execute an INC task corresponding to second information, where the second information is sent by the third layer of the communication system to the second layer, and the second information is used to request execution of the INC task;

[0361] The fourth receiving unit 1503 is used to receive the to-be-processed data sent by the third layer;

[0362] The third processing unit 1504 is used to execute the INC task corresponding to the second information using the received first file and the data to be processed.

[0363] In one embodiment, the fourth sending unit 1501 is also used to send fifth information to the second layer, and the fifth information includes relevant information about resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information.

[0364] In one embodiment, the fourth sending unit 1501 is also used to send the result of executing the INC task corresponding to the second information to the third layer, so that the third layer obtains sixth information, and the sixth information includes the result of at least one computing node determined by the second layer (i.e., at least one computing node used to execute the INC task corresponding to the second information) executing the INC task corresponding to the second information.

[0365] In one embodiment, the third receiving unit 1502 is further configured to receive the first file sent by the second layer through a third interface.

[0366] In one embodiment, the fourth receiving unit 1503 is further configured to receive the to-be-processed data sent by the third layer through a fifth interface.

[0367] In one embodiment, the fourth sending unit 1501 is further used to send the result of executing the INC task corresponding to the second information to the third layer through the fifth interface.

[0368] In actual application, the fourth sending unit 1501, the third receiving unit 1502 and the fourth receiving unit 1503 can be implemented by a communication interface in a communication device; and the third processing unit 1504 can be implemented by a processor in the communication device.

[0369] It should be noted that: the communication device provided in the above embodiment only uses the division of the above program modules as an example to illustrate the communication. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules (for example, Fig.13 The internal structure of the communication device shown is divided into Figure 7 The INC primitive classification module, INC capability abstraction module, INC function compilation module and runtime dynamic configuration module shown in the figure can be used to complete all or part of the processing described above. In addition, the communication device and communication method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0370] Based on the hardware implementation of the above program module, and in order to implement the method of the second layer side of the communication system of the embodiment of the present application, the embodiment of the present application also provides a first device (the function of the first device is equivalent to Fig. 9 The functions of the INC control node are shown as well as Figures 10 to 12 The function of the INC controller shown, that is, the first device may include the INC control node and / or the INC controller), such as Fig.16 As shown, the first device 1600 includes:

[0371] A first communication interface 1601, capable of exchanging information with other layers of the communication system;

[0372] A first processor 1602 is connected to the first communication interface 1601 to implement information interaction with other layers of the communication system, and is used to execute the method provided by one or more technical solutions on the second layer side of the above-mentioned communication system when running a computer program;

[0373] A first memory 1603 , on which the computer program is stored.

[0374] Specifically, the first processor 1602 is configured to:

[0375] receiving, through the first communication interface 1601, second information sent by the third layer of the communication system, where the second information is used to request execution of an INC task;

[0376] Determine at least one computing node and a first file executable by each computing node according to the first information and the second information, wherein the first information is provided by the first layer of the communication system, the first layer includes at least one computing node, the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node, and the first file is used to execute the INC task corresponding to the second information;

[0377] The corresponding first file is sent to each of the at least one computing node determined through the first communication interface 1601, and the third information is sent to the third layer, the third information at least indicates that the data to be processed corresponding to the second information is sent to the at least one computing node determined, and each of the at least one computing node determined can use the corresponding first file and the data to be processed to execute the INC task corresponding to the second information.

[0378] In one embodiment, the first processor 1602 is further configured to:

[0379] Determine, from the computing nodes included in the first layer, at least one computing node that supports executing the INC task corresponding to the second information, according to the first information and the second information;

[0380] When at least one computing node that supports executing the INC task corresponding to the second information is determined, for each of the at least one computing node determined, a first file corresponding to the computing node is determined based on the first information and the second information.

[0381] In one embodiment, the first processor 1602 is further configured to:

[0382] Determine, based on the first information, whether there is an INC task being executed on each of the at least one computing node determined, and determine whether each computing node supports parallel execution of multiple INC tasks by means of business isolation;

[0383] For each computing node among the at least one computing node determined, when there is no INC task being executed on the computing node, and / or when the computing node supports parallel execution of multiple INC tasks through business isolation, the corresponding first file is sent to the computing node through the first communication interface 1601.

[0384] In one embodiment, the first processor 1602 is further configured to:

[0385] Receiving, through the first communication interface 1601, fifth information sent by each computing node in the at least one computing node determined, the fifth information comprising relevant information about resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information;

[0386] The first information is updated according to the received at least one fifth information.

[0387] In one embodiment, the first processor 1602 is further configured to:

[0388] An INC primitive library is opened to the third layer through the first communication interface 1601, the INC primitive library includes multiple INC primitives, each INC primitive represents an INC type; the second information includes at least one INC primitive in the INC primitive library.

[0389] In one embodiment, the first communication interface 1601 is further used to receive the second information sent by the third layer through the first interface.

[0390] In one embodiment, the first communication interface 1601 is further used to receive the first information provided by the first layer through a second interface.

[0391] In one embodiment, the first communication interface 1601 is further used to send the corresponding first file to each computing node of the determined at least one computing node through a third interface.

[0392] In one embodiment, the first communication interface 1601 is further used to send the third information to the third layer through a fourth interface.

[0393] It should be noted that the specific processing process of the first processor 1602 and the first communication interface 1601 can be understood by referring to the above method, which will not be repeated here.

[0394] Of course, in actual application, the various components in the first device 1600 are coupled together through the bus system 1604. It can be understood that the bus system 1604 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1604 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.16 Various buses are labeled as bus system 1604.

[0395] The first memory 1603 in the embodiment of the present application is used to store various types of data to support the operation of the first device 1600. Examples of such data include: any computer program used to operate on the first device 1600.

[0396] The method disclosed in the above embodiment of the present application can be applied to the first processor 1602, or implemented by the first processor 1602. The first processor 1602 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 1602. The above-mentioned first processor 1602 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 1602 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 1603, and the first processor 1602 reads the information in the first memory 1603 and completes the steps of the above method in combination with its hardware.

[0397] In an exemplary embodiment, the first device 1600 can be implemented by one or more ASICs, DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), FPGAs, general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute the aforementioned method.

[0398] Based on the hardware implementation of the above program modules, and in order to implement the method of the third layer side of the communication system of the embodiment of the present application, the embodiment of the present application also provides a second device for providing application services (the second device may include an application server, etc.), such as Fig.17 As shown, the second device 1700 includes:

[0399] The second communication interface 1701 is capable of exchanging information with other layers of the communication system;

[0400] A second processor 1702 is connected to the second communication interface 1701 to implement information interaction with other layers of the communication system, and is used to execute the method provided by one or more technical solutions on the third layer side of the above-mentioned communication system when running a computer program;

[0401] A second memory 1703 , on which the computer program is stored.

[0402] Specifically, the second communication interface 1701 is used to:

[0403] Sending second information to the second layer of the communication system when there is an INC demand, the second information being used to request execution of an INC task;

[0404] receiving third information sent by the second layer, wherein the third information at least indicates sending to-be-processed data corresponding to the second information to at least one computing node in the first layer of the communication system determined by the second layer;

[0405] According to the third information, the data to be processed is sent to each computing node of at least one computing node determined by the second layer, so that each computing node uses the corresponding executable first file and the data to be processed to execute the INC task corresponding to the second information; wherein, the first file is determined by the second layer, and the first file is used to execute the INC task corresponding to the second information.

[0406] In one embodiment, the second communication interface 1701 is also used to receive sixth information, and the sixth information includes the result of at least one computing node determined by the second layer executing the INC task corresponding to the second information.

[0407] In one embodiment, the second processor 1702 is used to determine the second information based on the second layer open INC primitive library, the INC primitive library includes multiple INC primitives, each INC primitive represents an INC type, and the second information includes at least one INC primitive in the INC primitive library.

[0408] In one embodiment, the second communication interface 1701 is further used to send the second information to the second layer through the first interface.

[0409] In one embodiment, the second communication interface 1701 is further used to receive third information sent by the second layer through a fourth interface.

[0410] In one embodiment, the second communication interface 1701 is further used to send the data to be processed to each computing node of the at least one computing node determined by the second layer through the fifth interface.

[0411] In one embodiment, the second communication interface 1701 is also used to receive, through the fifth interface, the result of executing the INC task corresponding to the second information sent by each computing node of at least one computing node determined by the second layer, to obtain the sixth information.

[0412] It should be noted that the specific processing process of the second communication interface 1701 and the second processor 1702 can be understood by referring to the above method, which will not be repeated here.

[0413] Of course, in actual application, the various components in the second device 1700 are coupled together through the bus system 1704. It can be understood that the bus system 1704 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1704 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.17 Various buses are labeled as bus system 1704.

[0414] The second memory 1703 in the embodiment of the present application is used to store various types of data to support the operation of the second device 1700. Examples of such data include: any computer program used to operate on the second device 1700.

[0415] The method disclosed in the above embodiment of the present application can be applied to the second processor 1702, or implemented by the second processor 1702. The second processor 1702 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 1702. The above second processor 1702 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 1702 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the second memory 1703, and the second processor 1702 reads the information in the second memory 1703 and completes the steps of the above method in combination with its hardware.

[0416] In an exemplary embodiment, the second device 1700 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.

[0417] Based on the hardware implementation of the above program modules, and in order to implement the method of the computing node side in the first layer of the communication system of the embodiment of the present application, the embodiment of the present application also provides a computing node, such as Fig.18As shown, the computing node 1800 includes:

[0418] The third communication interface 1801 is capable of exchanging information with other layers of the communication system;

[0419] a third processor 1802, connected to the third communication interface 1801, to implement information interaction with other layers of the communication system, and configured to execute the method provided by one or more technical solutions on the computing node side in the first layer of the communication system when running a computer program;

[0420] A third memory 1803 , on which the computer program is stored.

[0421] Specifically, the third communication interface 1801 is used to send information related to resources and / or capabilities that can be provided by the computing node 1800 to the second layer of the communication system, so that the second layer obtains first information, the first information includes information related to resources and / or capabilities that can be provided by at least one computing node 1800 included in the first layer; receives an executable first file sent by the second layer, the first file is used to execute an INC task corresponding to the second information, the second information is sent by the third layer of the communication system to the second layer, and the second information is used to request the execution of the INC task; receives data to be processed sent by the third layer;

[0422] The third processor 1802 is used to execute the INC task corresponding to the second information using the received first file and the data to be processed.

[0423] Among them, in one embodiment, the third communication interface 1801 is also used to send fifth information to the second layer, and the fifth information contains relevant information about the resources and / or capabilities that can be provided by the computing node 1800 after executing the INC task corresponding to the second information.

[0424] In one embodiment, the third communication interface 1801 is also used to send the result of executing the INC task corresponding to the second information to the third layer, so that the third layer obtains sixth information, and the sixth information includes the result of at least one computing node 1800 determined by the second layer (i.e., at least one computing node 1800 used to execute the INC task corresponding to the second information) executing the INC task corresponding to the second information.

[0425] In one embodiment, the third communication interface 1801 is further used to receive the first file sent by the second layer through the third interface.

[0426] In one embodiment, the third communication interface 1801 is further used to receive the data to be processed sent by the third layer through the fifth interface.

[0427] In one embodiment, the third communication interface 1801 is also used to send the result of executing the INC task corresponding to the second information to the third layer through the fifth interface.

[0428] It should be noted that the specific processing process of the third communication interface 1801 and the third processor 1802 can be understood by referring to the above method, which will not be repeated here.

[0429] Of course, in actual application, the various components in the computing node 1800 are coupled together through the bus system 1804. It can be understood that the bus system 1804 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1804 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.18 Various buses are labeled as bus system 1804.

[0430] The third memory 1803 in the embodiment of the present application is used to store various types of data to support the operation of the computing node 1800. Examples of such data include: any computer program used to operate on the computing node 1800.

[0431] The method disclosed in the above embodiment of the present application can be applied to the third processor 1802, or implemented by the third processor 1802. The third processor 1802 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the third processor 1802 or an instruction in the form of software. The above third processor 1802 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The third processor 1802 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the third memory 1803, and the third processor 1802 reads the information in the third memory 1803 and completes the steps of the above method in combination with its hardware.

[0432] In an exemplary embodiment, the computing node 1800 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.

[0433] It can be understood that the memory (first memory 1603, second memory 1703, third memory 1803) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as SRAM, Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0434] In order to implement the method provided in the embodiment of the present application, the embodiment of the present application also provides a communication system, such as Fig.19 As shown, the system includes: a first device 1901 , a second device 1902 , and at least one computing node 1903 .

[0435] Here, it should be noted that the specific processing procedures of the first device 1901, the second device 1902 and the computing node 1903 have been described in detail above and will not be repeated here.

[0436] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 1603 storing a computer program, and the computer program can be executed by the first processor 1602 of the first device 1600 to complete the steps of the second layer side method of the aforementioned communication system. For another example, a second memory 1703 storing a computer program is included, and the computer program can be executed by the second processor 1702 of the second device 1700 to complete the steps of the third layer side method of the aforementioned communication system. For another example, a third memory 1803 storing a computer program is included, and the computer program can be executed by the third processor 1802 of the computing node 1800 to complete the steps of the computing node side method in the first layer of the aforementioned communication system. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

[0437] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0438] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0439] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A communication system, characterized in that: include: The first, second and third floors; among them, The first layer includes at least one computing node, which is used to provide first information to the second layer, wherein the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node; The third layer is used to provide application services and send second information to the second layer when there is a demand for online computing INC, wherein the second information is used to request the execution of INC tasks; The second layer is used to receive the second information sent by the third layer, determine at least one computing node and a first file executable by each computing node according to the first information and the second information, and the first file is used to execute the INC task corresponding to the second information; send the corresponding first file to each computing node in the determined at least one computing node, and send third information to the third layer, and the third information at least indicates to send the to-be-processed data corresponding to the second information to the determined at least one computing node; The third layer is also used to receive the third information sent by the second layer, and send the data to be processed to each computing node of the at least one computing node determined, so that each computing node uses the corresponding first file and the data to be processed to perform the INC task corresponding to the second information.

2. The system according to claim 1, characterized in that The second layer is used for: Determine, from the computing nodes included in the first layer, at least one computing node that supports executing the INC task corresponding to the second information, according to the first information and the second information; When at least one computing node that supports executing the INC task corresponding to the second information is determined, for each of the at least one computing node determined, a first file corresponding to the computing node is determined based on the first information and the second information.

3. The system according to claim 1, characterized in that The second layer is used for: Determine, based on the first information, whether there is an INC task being executed on each of the at least one computing node determined, and determine whether each computing node supports parallel execution of multiple INC tasks by means of business isolation; For each of the at least one computing node determined, when there is no INC task being executed on the computing node, and / or when the computing node supports parallel execution of multiple INC tasks through business isolation, a corresponding first file is sent to the computing node.

4. The system according to claim 1, characterized in that The first layer includes a first type of computing nodes and a second type of computing nodes, the first type of computing nodes at least have a network transmission association function, and the second type of computing nodes do not have a network transmission association function; the second information includes fourth information, and the fourth information indicates whether the INC task corresponding to the second information requires the participation of the second type of computing nodes in execution; In a case where the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the determined at least one computing node includes at least one first type of computing node; When the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the second layer is used to send the corresponding first file to each of at least two computing nodes, and the at least two computing nodes include at least one first type computing node and at least one second type computing node.

5. The system according to claim 4, characterized in that In the case where the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second-category computing node in execution, the first information includes information related to resources and / or capabilities that can be provided by at least one first-category computing node; When the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the first information includes relevant information about resources and / or capabilities that can be provided by at least one first type of computing node, and includes relevant information about resources and / or capabilities that can be provided by at least one second type of computing node.

6. The system according to claim 1, characterized in that The second layer is also used for: Receiving fifth information sent by each computing node of the determined at least one computing node, the fifth information comprising relevant information about resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information; The first information is updated according to the received at least one fifth information.

7. The system according to claim 1, characterized in that The third layer is also used to receive sixth information, and the sixth information includes the result of the at least one determined computing node executing the INC task corresponding to the second information.

8. The system according to claim 1, characterized in that The second layer is also used to open an INC primitive library to the third layer, wherein the INC primitive library contains multiple INC primitives, and each INC primitive represents an INC type; the second information contains at least one INC primitive in the INC primitive library.

9. The system according to any one of claims 1 to 8, characterized in that: The third layer is used to send the second information to the second layer through the first interface; The second layer is used to receive the second information sent by the third layer through the first interface.

10. The system according to any one of claims 1 to 8, characterized in that: The first layer is used to provide the first information to the second layer through a second interface.

11. The system according to any one of claims 1 to 8, characterized in that: The second layer is used to send the corresponding first file to each computing node of the determined at least one computing node through a third interface.

12. The system according to any one of claims 1 to 8, characterized in that: The second layer is used to send the third information to the third layer through a fourth interface; The third layer is used to receive the third information sent by the second layer through the fourth interface.

13. The system according to any one of claims 1 to 8, characterized in that: The third layer is used to send the data to be processed to each computing node of the determined at least one computing node through a fifth interface.

14. A communication method, characterized in that: The second layer applied to the communication system includes: receiving second information sent by the third layer of the communication system, wherein the second information is used to request execution of an INC task; Determine at least one computing node and a first file executable by each computing node according to the first information and the second information, wherein the first information is provided by the first layer of the communication system, the first layer includes at least one computing node, the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node, and the first file is used to execute the INC task corresponding to the second information; Send the corresponding first file to each of the at least one computing node determined, and send third information to the third layer, wherein the third information at least indicates that the data to be processed corresponding to the second information is sent to the at least one computing node determined, and each of the at least one computing node determined can use the corresponding first file and the data to be processed to execute the INC task corresponding to the second information.

15. The method according to claim 14, characterized in that The step of determining at least one computing node and a first file executable by each computing node according to the first information and the second information includes: Determine, from the computing nodes included in the first layer, at least one computing node that supports executing the INC task corresponding to the second information, according to the first information and the second information; When at least one computing node that supports executing the INC task corresponding to the second information is determined, for each of the at least one computing node determined, a first file corresponding to the computing node is determined based on the first information and the second information.

16. The method according to claim 14, characterized in that The sending the corresponding first file to each computing node in the determined at least one computing node includes: Determine, based on the first information, whether there is an INC task being executed on each of the at least one computing node determined, and determine whether each computing node supports parallel execution of multiple INC tasks by means of business isolation; For each computing node among the at least one computing node determined, when there is no INC task being executed on the computing node, and / or when the computing node supports parallel execution of multiple INC tasks through business isolation, a corresponding first file is sent to the computing node.

17. The method according to claim 14, characterized in that The first layer includes a first type of computing nodes and a second type of computing nodes, the first type of computing nodes at least have a network transmission association function, and the second type of computing nodes do not have a network transmission association function; the second information includes fourth information, and the fourth information indicates whether the INC task corresponding to the second information requires the participation of the second type of computing nodes in execution; In a case where the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second type of computing node in execution, the determined at least one computing node includes at least one first type of computing node; When the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the corresponding first file is sent to each of the at least two computing nodes, and the at least two computing nodes include at least one first type computing node and at least one second type computing node.

18. The method according to claim 17, characterized in that In the case where the fourth information indicates that the INC task corresponding to the second information does not require the participation of the second-category computing node in execution, the first information includes information related to resources and / or capabilities that can be provided by at least one first-category computing node; When the fourth information indicates that the INC task corresponding to the second information requires the participation of the second type of computing node in execution, the first information includes relevant information about resources and / or capabilities that can be provided by at least one first type of computing node, and includes relevant information about resources and / or capabilities that can be provided by at least one second type of computing node.

19. The method according to claim 14, characterized in that The method further comprises: Receiving fifth information sent by each computing node of the determined at least one computing node, the fifth information comprising relevant information about resources and / or capabilities that can be provided by the computing node after executing the INC task corresponding to the second information; The first information is updated according to the received at least one fifth information.

20. The method according to claim 14, characterized in that The method further comprises: An INC primitive library is opened to the third layer, wherein the INC primitive library includes multiple INC primitives, and each INC primitive represents an INC type; the second information includes at least one INC primitive in the INC primitive library.

21. The method according to any one of claims 14 to 20, characterized in that The receiving the second information sent by the third layer includes: The second information sent by the third layer is received through the first interface.

22. The method according to any one of claims 14 to 20, characterized in that The method further comprises: The first information provided by the first layer is received through a second interface.

23. The method according to any one of claims 14 to 20, characterized in that The sending the corresponding first file to each computing node in the determined at least one computing node includes: The corresponding first file is sent to each computing node in the determined at least one computing node through the third interface.

24. The method according to any one of claims 14 to 20, characterized in that The sending the third information to the third layer includes: The third information is sent to the third layer through a fourth interface.

25. A communication device, characterized in that: include: A first receiving unit, configured to receive second information sent by a third layer of the communication system, wherein the second information is used to request execution of an INC task; a first processing unit, configured to determine at least one computing node and a first file executable by each computing node according to first information and the second information, wherein the first information is provided by a first layer of the communication system, the first layer includes at least one computing node, the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node, and the first file is used to execute an INC task corresponding to the second information; The first sending unit is used to send the corresponding first file to each of the at least one computing node determined, and to send third information to the third layer, wherein the third information at least indicates that the data to be processed corresponding to the second information is sent to the at least one computing node determined, and each of the at least one computing node determined can use the corresponding first file and the data to be processed to execute the INC task corresponding to the second information.

26. A first device, characterized in that: include: a first communication interface and a first processor; wherein, The first processor is configured to: receiving, through the first communication interface, second information sent by the third layer of the communication system, the second information being used to request execution of an INC task; Determine at least one computing node and a first file executable by each computing node according to the first information and the second information, wherein the first information is provided by the first layer of the communication system, the first layer includes at least one computing node, the first information includes information related to resources and / or capabilities that can be provided by the at least one computing node, and the first file is used to execute the INC task corresponding to the second information; The corresponding first file is sent to each of the at least one computing node determined through the first communication interface, and the third information is sent to the third layer, the third information at least indicating that the data to be processed corresponding to the second information is sent to the at least one computing node determined, and each of the at least one computing node determined can use the corresponding first file and the data to be processed to execute the INC task corresponding to the second information.

27. A first device, characterized in that: include: a first processor and a first memory for storing a computer program executable on the processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 14 to 24 are executed.

28. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 14 to 24 are implemented.