Task processing method, controller, scheduler, equipment, system and medium
By matching the online computing capabilities of network devices with the controller, the problem of poor versatility of existing online computing technology is solved, the flexibility and efficiency of online computing are achieved, and it is suitable for diverse task scenarios.
Patent Information
- Application Number
- CN202310927110.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-26
- Publication Date
- 2024-10-18
AI Technical Summary
Existing online computing technology has poor versatility and cannot be applied to different scenarios and tasks. Moreover, network equipment and topology requirements are fixed and cannot be configured flexibly.
The controller selects and matches suitable network devices based on the online computing capabilities required for task execution to realize online computing of tasks and improve the versatility and flexibility of online computing.
It achieves the versatility and flexibility of online computing, can be applied to different task scenarios and configure network equipment, and improves task processing efficiency and the overall computing power of the system.
Smart Images

Figure CN118796367A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a task processing method, a controller, a scheduler, a device, a system and a medium. Background Art
[0002] In-Network Computation (INC, or COmputing In the Network, COIN) technology is to offload application-related functions on the host to network devices, achieve efficient data processing while completing data transmission, improve the overall computing efficiency of the system, reduce communication delays, and reduce overall energy consumption. With the development of large artificial intelligence AI (Artificial Intelligence) models, the model parameters are increasing and the network scale is getting larger and larger. In-Network Computation technology has become an important means to reduce network load and end-to-end delay.
[0003] Existing on-line computing is usually applied to on-line aggregation scenarios, or requires that the network topology of on-line computing is fixed and the on-line computing tasks of network devices are fixed. It is not applicable to other scenarios or other on-line computing tasks, that is, the existing on-line computing has poor versatility. Summary of the invention
[0004] The embodiments of the present invention provide a task processing method, a controller, a scheduler, a device, a system and a medium to solve the problem that the existing on-line computing has poor universality.
[0005] To solve the above technical problems, the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present invention provides a task processing method, which is applied to a controller, and the method includes:
[0007] Receiving first information sent by a first device, where the first information is used to request online computing of a first task;
[0008] Determine a first network device according to the first information, where the first network device is used to perform on-line computing of the first task;
[0009] The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability.
[0010] In a second aspect, an embodiment of the present invention provides a task processing method, which is applied to a first device, and the method includes:
[0011] Sending first information to the controller, where the first information is used to determine the first network device;
[0012] receiving first feedback information sent by the controller based on the first information;
[0013] In response to the first feedback information, sending a data packet of a first task to the first network device;
[0014] Wherein, the first information includes a first online computing capability required to perform the first task;
[0015] The first network device is used to perform on-line computing of the first task; and the on-line computing capability of the first network device matches the first on-line computing capability.
[0016] In a third aspect, an embodiment of the present invention provides a task processing method, which is applied to a second network device, and the method includes:
[0017] Sending second information to the controller, wherein the second information includes a second on-line computing capability of the second network device;
[0018] In the case where the second information matches the first on-line computing capability required for the first task, the second network device receives the data packet of the first task sent by the first device;
[0019] According to the data packet of the first task, the on-line computing of the first task is performed.
[0020] In a fourth aspect, an embodiment of the present invention provides a task processing method, which is applied to a scheduler, and the method includes:
[0021] Receiving third information sent by the first device, wherein the third information includes a first online computing capability required to perform the first task;
[0022] Sending fourth information to the controller, wherein the fourth information includes a first online computing capability required to perform the first task;
[0023] Receive confirmation information sent by the controller when there is a candidate network device that matches the first online computing capability.
[0024] In a fifth aspect, an embodiment of the present invention provides a controller, including:
[0025] A first receiving module, configured to receive first information sent by a first device, wherein the first information is used to request online computing of a first task;
[0026] A determination module, configured to determine a first network device according to the first information, wherein the first network device is configured to perform the on-line computing of the first task;
[0027] The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability.
[0028] In a sixth aspect, an embodiment of the present invention provides an electronic device, including a transceiver and a processor.
[0029] The transceiver is used to receive first information sent by a first device, where the first information is used to request online computing of a first task;
[0030] The processor is used to determine a first network device according to the first information, where the first network device is used to perform the on-line computing of the first task;
[0031] The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability.
[0032] In a seventh aspect, an embodiment of the present invention provides an electronic device, including:
[0033] A first sending module, configured to send first information to the controller, wherein the first information is used to determine the first network device;
[0034] A second receiving module, configured to receive first feedback information sent by the controller based on the first information;
[0035] A second sending module, configured to send a data packet of a first task to the first network device in response to the first feedback information;
[0036] Wherein, the first information includes a first online computing capability required to perform the first task;
[0037] The first network device is used to perform on-line computing of the first task; and the on-line computing capability of the first network device matches the first on-line computing capability.
[0038] In an eighth aspect, an embodiment of the present invention provides an electronic device, including a transceiver,
[0039] The transceiver is used to send first information to the controller, where the first information is used to determine the first network device;
[0040] receiving first feedback information sent by the controller based on the first information;
[0041] In response to the first feedback information, sending a data packet of a first task to the first network device;
[0042] Wherein, the first information includes a first online computing capability required to perform the first task;
[0043] The first network device is used to perform on-line computing of the first task; and the on-line computing capability of the first network device matches the first on-line computing capability.
[0044] In a ninth aspect, an embodiment of the present invention provides a second network device, including:
[0045] A third sending module, configured to send second information to the controller, wherein the second information includes a second on-line computing capability of the second network device;
[0046] A third receiving module, configured to receive, by the second network device, a data packet of the first task sent by the first device, when the second information matches the first on-line computing capability required by the first task;
[0047] A computing module is used to perform on-line computing of the first task according to the data packet of the first task.
[0048] In a tenth aspect, an embodiment of the present invention provides an electronic device, including a transceiver and a processor.
[0049] The transceiver is used to send second information to the controller, wherein the second information includes a second online computing capability of the electronic device;
[0050] In a case where the second information matches the first online computing capability required for the first task, the electronic device receives a data packet of the first task sent by the first device;
[0051] The processor is used to perform the on-line computing of the first task according to the data packet of the first task.
[0052] In an eleventh aspect, an embodiment of the present invention provides a scheduler, including:
[0053] a fourth receiving module, configured to receive third information sent by the first device, wherein the third information includes a first online computing capability required to perform the first task;
[0054] a fourth sending module, configured to send fourth information to the controller, wherein the fourth information includes a first online computing capability required to perform the first task;
[0055] A fifth receiving module is used to receive confirmation information sent by the controller when there is a candidate network device that matches the first online computing capability.
[0056] In a twelfth aspect, an embodiment of the present invention provides an electronic device, including a transceiver,
[0057] The transceiver is used to receive third information sent by the first device, wherein the third information includes a first online computing capability required to perform the first task;
[0058] Sending fourth information to the controller, wherein the fourth information includes a first online computing capability required to perform the first task;
[0059] Receive confirmation information sent by the controller when there is a candidate network device that matches the first online computing capability.
[0060] In a thirteenth aspect, an embodiment of the present invention provides a task processing system, including a first device, a controller, and a second network device;
[0061] The first device is used to send first information to the controller, where the first information is used to request online computing of a first task;
[0062] The controller is used to determine a first network device according to the first information, where the first network device is used to perform the on-line computing of the first task;
[0063] The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability; the first network device is at least one of the second network devices.
[0064] In a fourteenth aspect, an embodiment of the present invention provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the task processing method as described in the first aspect above; or, when executed by the processor, the program implements the steps of the task processing method as described in the second aspect above; or, when executed by the processor, the program implements the steps of the task processing method as described in the third aspect above; or, when executed by the processor, the program implements the steps of the task processing method as described in the fourth aspect above.
[0065] In the fifteenth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the task processing method as described in the first aspect above; or, when the computer program is executed by a processor, the computer program implements the steps of the task processing method as described in the second aspect above; or, when the computer program is executed by a processor, the computer program implements the steps of the task processing method as described in the third aspect above; or, when the computer program is executed by a processor, the computer program implements the steps of the task processing method as described in the fourth aspect above.
[0066] In an embodiment of the present invention, first information sent by a first device is received, and the first information is used to request an on-line computing of a first task; based on the first information, a first network device is determined, and the first network device is used to perform the on-line computing of the first task; wherein the first information includes a first on-line computing capability required to perform the first task, and the on-line computing capability of the first network device matches the first on-line computing capability. By filtering network devices that perform on-line computing tasks based on the on-line computing capability required for task execution by a controller, different task (scenario) types can be applied, and the network devices for on-line computing can be flexibly configured accordingly, thereby improving the versatility and flexibility of on-line computing. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0068] Figure 1 is a flowchart of a task processing method provided by an embodiment of the present invention;
[0069] Figure 2 is a flowchart of another task processing method provided by an embodiment of the present invention;
[0070] Figure 3 It is a logical framework diagram of online computing provided by an embodiment of the present invention;
[0071] Figure 4 It is a network computing framework diagram provided by an embodiment of the present invention;
[0072] Figure 5 is a flowchart of another task processing method provided by an embodiment of the present invention;
[0073] Figure 6 is a flowchart of another task processing method provided by an embodiment of the present invention;
[0074] Figure 7 is a flowchart of another task processing method provided by an embodiment of the present invention;
[0075] Figure 8 is a flowchart of another task processing method provided by an embodiment of the present invention;
[0076] Fig. 9 is a flowchart of another task processing method provided by an embodiment of the present invention;
[0077] Fig.10is a flowchart of another task processing method provided by an embodiment of the present invention;
[0078] Fig.11 is a flowchart of another task processing method provided by an embodiment of the present invention;
[0079] Fig.12 is a flowchart of another task processing method provided by an embodiment of the present invention;
[0080] Fig.13 is a schematic diagram of a controller provided by an embodiment of the present invention;
[0081] Fig.14 is a schematic diagram of an electronic device provided by an embodiment of the present invention;
[0082] Fig.15 is a schematic diagram of another electronic device provided by an embodiment of the present invention;
[0083] Fig.16 is a schematic diagram of another electronic device provided by an embodiment of the present invention;
[0084] Fig.17 is a schematic diagram of a second network device provided by an embodiment of the present invention;
[0085] Fig.18 is a schematic diagram of another electronic device provided by an embodiment of the present invention;
[0086] Fig.19 is a schematic diagram of a scheduler provided by an embodiment of the present invention;
[0087] Fig. 20 It is a schematic diagram of another electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0088] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0089] For ease of understanding, some contents involved in the embodiments of the present invention are described below:
[0090] In-network computing technology is to offload application-related functions on the host to network devices, achieving efficient data processing while completing data transmission. For example, local application offloading and acceleration are performed in specific application areas such as distributed computing, AI computing, and network security detection.
[0091] Among them, the above-mentioned network device performs on-line computing and realizes data transmission. It can be a programmable network device such as a programmable switch or a smart network card, or it can be other network devices with on-line computing functions, which is not limited in the embodiments of the present invention.
[0092] Existing on-line computing is usually applied to on-line aggregation scenarios, requiring fixed network devices and network topologies to undertake fixed on-line computing tasks. On-line computing for other application scenarios requires another set of fixed network topologies and network devices to undertake fixed on-line computing tasks. The on-line computing solution for one application scenario is not applicable to other scenarios or other on-line computing tasks in the same application scenario, and is not universal.
[0093] In the future, the computing tasks carried by intelligent computing centers, supercomputing centers, and even cloud computing may be diverse and multi-tenant. With the continuous development of network equipment, the scenarios that can be expanded and the computing tasks that can be undertaken by online computing will also be diversified. Therefore, there is an urgent need to have a set of online computing task processing methods that are independent of scenarios or tasks and have a certain degree of universality.
[0094] In the embodiment of the present invention, a task processing method, a controller, a scheduler, a device, a system and a medium are proposed to solve the problem that the existing on-line computing has poor universality.
[0095] See also Figure 1 , Figure 1 is a flowchart of a task processing method provided by an embodiment of the present invention, which is used in a controller, such as Figure 1 As shown, the method is executed by the controller and includes the following steps:
[0096] Step 101: Receive first information sent by a first device, where the first information is used to request online computing of a first task.
[0097] In the embodiment of the present invention, the first device sends the first information for requesting the on-line computing of the first task, wherein the first device can be understood as the demander of the on-line computing of the first task, and can be called the source host.
[0098] The first information is used to request the on-line computing of the first task, which can be understood as triggering the controller to determine the first network device for performing the on-line computing of the first task through the first information. The controller (which can be called INCController) is used to allocate network devices based on the on-line computing tasks.
[0099] Optionally, the first information further includes at least one of the following:
[0100] an identifier of the first task;
[0101] an identifier of a subtask of the first task;
[0102] an identifier of the first device;
[0103] An identifier of a second device, wherein the second device is a device for receiving target data, and the target data is data obtained by online calculation when executing the first task.
[0104] In the embodiment of the present invention, the first task itself may have a task identifier (ID), and the first task may be further divided into several subtasks, and different subtasks also have corresponding task identifiers (ID), and the first device has a corresponding identity identifier (ID).
[0105] After determining the first network device that performs the first task, the first device sends the first task data to the first network device, the first network device performs the on-line calculation of the first task, the first network device performs the on-line calculation of the first task to obtain the target data, and sends the target data to the second device. The first information may carry the identity (ID) of the second device.
[0106] It is understandable that the identifier of the first task, the identifier of the subtask of the first task, the identifier of a device and / or the identifier of the second device may also be sent through other information besides the first information.
[0107] In the embodiment of the present invention, by carrying the task information and device tag of the on-line computing in the first information used for the task request, the signaling overhead of the on-line computing can be saved and the task processing efficiency can be improved.
[0108] Step 102: Determine a first network device according to the first information, where the first network device is used to perform on-line computing of the first task;
[0109] The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability.
[0110] In an embodiment of the present invention, the above-mentioned first information carries the first on-line computing capability required to execute the first task, so that the controller can match the first task with a network device capable of executing the above-mentioned first task according to the first on-line computing capability required to execute the first task. The above-mentioned matching process can be to select at least one from the network devices that have been registered on the controller side, or it can be a network device that meets the requirements searched by the controller in the network. The first network device determined by the controller to execute the first task has at least the first on-line computing capability required to execute the first task. It can be understood that the above-mentioned first network device can also have other on-line computing capabilities in addition to the first on-line computing capability, and can also be applicable to other tasks (for example, a second task that requires other on-line computing capabilities different from the first on-line computing capability).
[0111] In the embodiment of the present invention, the first network device and the candidate network device (composed of the second network device) are devices for performing on-network computing, and may be programmable network devices such as a programmable switch (SW) and a smart network card.
[0112] In the embodiment of the present invention, the above steps 101-102 are executed by the controller. Figure 2 The description is as follows: a first device sends first information to the controller, wherein the first information includes a first on-line computing capability required to perform the first task, and is used to request on-line computing of the first task; after receiving the first information, the controller determines a first network device based on the first information, and the first network device is used to perform on-line computing of the first task, wherein the on-line computing capability of the first network device matches the first on-line computing capability.
[0113] Optionally, the on-line computing capability includes at least one of on-line computing primitives RIPs and data structures IEDs.
[0114] In the embodiment of the present invention, the on-line computing capability may include at least one of on-line computing primitives (RIPs) and data structures (IEDs). The first on-line computing capability required to perform the first task includes at least one of the RIPs and IEDs required to perform the first task.
[0115] In the embodiment of the present invention, the network device implements standard on-line computing primitives, so the task processing method does not limit the device type; the on-line computing controller dynamically plans the path according to the network and computing power, so there is no limit on the networking topology, thereby improving the versatility of on-line computing.
[0116] Optionally, determining the first network device according to the first information includes:
[0117] Determine a first network device according to the first information and second information of the candidate network device;
[0118] The second information includes the online computing capability of the candidate network devices, and the first network device is at least one of the candidate network devices.
[0119] In an embodiment of the present invention, candidate network devices can be pre-set, and screening of first network devices can be performed within the range of candidate network devices. Optionally, the above-mentioned candidate network devices are network devices that have completed registration in the controller, that is, the candidate network devices have reported their on-line computing capabilities to the controller, and the controller stores the candidate network devices and their corresponding on-line computing capabilities. When the controller receives the first information sent by the first device, it can select at least some of the candidate network devices as the first network devices for performing the first task based on the first on-line computing capabilities required to perform the first task and the on-line computing capabilities of the candidate network devices.
[0120] In the embodiment of the present invention, the controller pre-acquires the second information of the candidate network device, that is, the controller pre-acquires the online computing capability of the candidate network device, so that the first network device can be quickly matched based on the first information, thereby improving the efficiency of task processing.
[0121] Optionally, the second information also includes at least one of the following: a network status of the candidate network device, computing resources of the candidate network device, and memory resources of the candidate network device.
[0122] In the embodiment of the present invention, the candidate network device can report its online computing capability to the controller, and can also report at least one of its network status, computing resources and memory resources to the controller, so as to assist the controller in selecting specific network devices for specific tasks. That is, the network, computing capabilities and real-time load conditions are comprehensively considered during the route selection, so the online computing tasks can be reasonably allocated.
[0123] In an embodiment of the present invention, the first network device is determined based on the first information and the second information of the candidate network device. When the second information also includes the network status of the candidate network device, the computing resources of the candidate network device, and at least one of the memory resources of the candidate network device, it can be understood that the on-line computing capability of the first network device matches the first on-line computing capability, and at least one of the network status, computing resources, and memory resources of the first network device can meet the execution requirements of the on-line computing of the first task.
[0124] Optionally, the second information is reported by the candidate network device to the controller.
[0125] In the embodiment of the present invention, the online computing capability of the candidate network device is relatively fixed. In an optional manner, the online computing capability of the candidate network device may be reported to the controller during the process of the candidate network device registering with the controller. The network status, computing resources, and real-time changing information of the candidate network device, such as the computing resources, may be reported periodically by the candidate network device to the controller.
[0126] In the embodiment of the present invention, while considering the on-line computing capability of the network device, the network, computing resources and memory resources are further considered, so as to allocate the first task to a more appropriate on-line computing network device for computing.
[0127] Optionally, before receiving the first information sent by the first device, the method further includes:
[0128] Obtaining the online computing capability supported by the controller;
[0129] The online computing capability of the candidate network device matches the online computing capability supported by the controller.
[0130] In the embodiment of the present invention, the controller pre-sets the online computing capability it supports, and the online computing capability of the network device needs to match the online computing capability supported by the controller to become a candidate network device. The controller pre-sets the online computing capability it supports to screen the candidate network devices, which can improve the controllability of task execution, the rationality of resource occupation and the overall security of the system.
[0131] It is understandable that the controller may not limit the on-network computing capabilities it supports, further expanding the scope of application of candidate network devices and improving the versatility of on-network computing.
[0132] Optionally, the first network device includes at least one network device, and determining the first network device according to the first information includes:
[0133] Determine a first network device and a path of the first network device according to the first information;
[0134] The paths of the first network devices are used to determine the order in which each of the first network devices performs the first task.
[0135] In the embodiment of the present invention, the controller is used to determine the execution order (path) of the first network device while determining the first network device, for example, the network topology of the first network device, so as to improve the rationality of the execution of the first task.
[0136] Optionally, before receiving the first information sent by the first device, the method further includes:
[0137] receiving third information sent by the scheduler, wherein the third information includes a first on-line computing capability required to execute the first task;
[0138] If there is a candidate network device that matches the first online computing capability, sending confirmation information to the scheduler;
[0139] The first device is used to send the first information when the scheduler receives the confirmation information.
[0140] In an embodiment of the present invention, the task processing method execution system also includes a scheduler, wherein the scheduler is used to interact with the controller in advance to determine whether the controller can match a suitable network device for the first task. Only when a suitable network device can be matched, the first device will send a first information request to the controller for on-line calculation of the first task, so as to improve the success rate of the task request.
[0141] The embodiments of the present invention propose a universal online computing framework to solve the problems of various existing online computing network solutions being not unified, scenarios not being universal, having strict requirements on topology, and incomplete considerations for task allocation on the terminal side and the network side.
[0142] For example, Figure 3 As shown, an embodiment of the present invention provides a logical framework diagram of online computing, in which the scheduler can reuse the task scheduler (Scheduler) responsible for the end-side host task distribution and resource allocation in the existing multi-task parallel computing system, and further be used for the resources (for example, central processing unit CPU, graphics processing unit GPU, random access memory RAM, etc.) and task (job) allocation of network devices. The Scheduler is still responsible for allocating overall computing tasks, but the algorithm model for allocating tasks needs to be updated, and the resource conditions of the end-side host (Node) and the network-side device (SW) are comprehensively considered, and the computing tasks are decomposed into host tasks (executed by Node) and online computing tasks (executed by SW).
[0143] In the embodiment of the present invention, the controller (INC controller) is mainly used for the network device allocation of the online computing task. Specifically, the online computing controller is responsible for systematically undertaking the online computing task and comprehensively considering the computing capability, network and computing resources of the network device to allocate the online computing task. For example, at least part of the network devices switch 1 to switch M (SW_1 to SW_M) are determined as network devices that perform the online computing task.
[0144] The computing tasks are decomposed into end-side tasks and INC tasks through the scheduler, and a centralized general-purpose on-line computing controller INC Controller is proposed to undertake INC tasks, thereby improving the rationality of on-line computing task allocation.
[0145] Optionally, the INC Controller unifies the management of INC resources and undertakes INC tasks based on standard INC primitives and data operations, which can improve the versatility of on-line computing task processing.
[0146] Optionally, after determining the first network device according to the first information, the method further includes at least one of the following:
[0147] Sending first feedback information to the first device;
[0148] The second feedback information is sent to the first network device.
[0149] In the embodiment of the present invention, after determining the first network device, the controller sends feedback information to the first device and / or the first network device, so that the first device starts to trigger the execution of the first task and / or the first network device starts to execute the first task.
[0150] In the embodiment of the present invention, the controller sends feedback information to the first device and / or the network device to trigger the relevant device to respond to the execution of the first task, thereby ensuring the stability of the execution of the task processing flow.
[0151] Optionally, the first device sends a data packet of the first task to the first network device in response to the first feedback information.
[0152] In an embodiment of the present invention, the first feedback information may be to simply notify the first device controller that the network device screening has been completed, and the first device sends the first task-related information to the access switch, wherein the access switch obtains the first network device corresponding to the first task from the controller; upon receiving the first task-related information, the access switch distributes the task to the first network device. The first feedback information may also include the first network device-related information, the first device directly knows the network device executing the first task, and sends the first task data packet to the first network device.
[0153] Optionally, the header of the data packet carries at least one of the following information:
[0154] an identifier of the first task;
[0155] an identifier of a subtask of the first task;
[0156] The on-line computing primitive RIP of the first task;
[0157] The number of RIPs of the on-line computing primitives of the first task;
[0158] The data length of the on-line computing primitive RIP of the first task;
[0159] The first task is to calculate the data offset of the primitive RIP on the network.
[0160] In the embodiment of the present invention, the header of the data packet sent by the first device to the first network device includes the task identifier and RIPs related information.
[0161] Exemplarily, the format of the network computing protocol header is shown in Table 1.
[0162] Table 1
[0163]
[0164] Among them, TaskID is the task ID;
[0165] UniqueID is a specific task (job) or other classification method in a task, and is unique in the task;
[0166] INC_Task_Num is the number of INC RIPs to be performed for this packet;
[0167] RIP is INC RIP type;
[0168] Data_offset and Data_length are the data offset and length that the corresponding INC RIP needs to process.
[0169] Among them, Reserve is a reserved field, and data offset refers to the position of the data in the data packet.
[0170] The embodiment of the present invention redesigns the data packet header so that the network computing device can be flexibly applied to various network computing tasks, thereby improving the versatility of network computing.
[0171] As shown in Table 1, when the network computing protocol packet header includes multiple RIPs and is executed by multiple different network devices, multiple INC calculations may be performed on a flow on a path.
[0172] Optionally, the first device sending a data packet of the first task to the first network device includes:
[0173] Sending a data packet of the first task to the first network device through the access switch;
[0174] The data packet of the first task is generated by the access switch.
[0175] In an embodiment of the present invention, when the first device does not have the ability to generate the in-network computing protocol header format, the relevant information can be sent to the access switch, and the access switch generates the above-mentioned data packet header, so that the above-mentioned process is not limited by the data packet generation capability of the source host (first device), making it convenient for all types of source hosts to use the task processing method, thereby further improving the versatility of in-network computing.
[0176] For example, Figure 4 As shown, the embodiment of the present invention provides an in-network computing framework diagram, which exemplarily illustrates the internal modules of the controller, including a task assignment module (Task Assigment), an in-network computing primitive and an in-network computing data structure library (RIP / IED Library), a topology module (Topology) and a network device library (Device Library), which are used to perform different functions. It can be understood that the division of the above functional modules is only exemplary, and the embodiment of the present invention is not limited thereto. The details are as follows:
[0177] The task scheduler is responsible for the parallel computing cluster task decomposition, and implements tasks assignment, life cycle management, resource allocation and other functions;
[0178] INC Controller (In-Network Computing Controller), which undertakes in-network computing tasks;
[0179] The task assignment module (Task Assigment) in the on-line computing controller is responsible for connecting to the Scheduler and taking over the on-line computing part of the parallel computing task;
[0180] RIP / IED Library: The library of in-network computing primitives and in-network computing data structures in the in-network computing controller, used to define the in-network computing capabilities supported by network devices;
[0181] The topology module in the network computing controller is responsible for network topology management, path calculation, path selection, etc.
[0182] The network device library (Device Library) in the network computing controller is responsible for managing network devices and providing network switch related information query and configuration distribution channels to other modules;
[0183] Node: the host on the client side.
[0184] Network switch (Switch), the figure takes a programmable switch (Programmable Switch) as an example;
[0185] Driver, corresponding to different RIPs;
[0186] Application (APP);
[0187] agent;
[0188] array;
[0189] Mapping (map). Based on the above framework, such as Figure 5 and Figure 6 As shown in the figure, the processing flow of online computing tasks is as follows:
[0190] (1) The network administrator imports supported on-network computing primitives and data structures into the INC controller;
[0191] (2) After connecting to the INC controller, the network device reports its own on-line computing capabilities, that is, the supported on-line computing primitives and data structures, and then periodically reports its own network and computing load conditions;
[0192] Optionally, the network device may periodically report its own network and computing load status to the network device library (Device Library) of the controller;
[0193] (3) When the task scheduler decomposes parallel computing tasks, it confirms the computing capacity on the network to the INC controller;
[0194] Only after confirming that there is sufficient computing power on the network to process the task, the subsequent step (4) is executed;
[0195] (4) The source host (Src_Node agent) initiates an online computing request to the INC controller, carrying at least one of the following information:
[0196] Computing task ID (TaskID); ID (UniqueID) assigned according to business needs in a computing task; source host (Src); destination host (Dst); on-network computing primitives (RIP) and / or data structures to be performed;
[0197] Among them, UniqueID can be understood as a more fine-grained division of TaskID, for example, parallel subtasks, stage subtasks, etc.
[0198] The source host can be understood as the data sending end, and the destination host can be understood as the data receiving end. The network device (INCSwitch) performs tasks in the data transmission process to calculate the target data on the network and transmit the target data to the destination host;
[0199] (5) The task assignment module requests a path from the topology module. The topology module selects a path based on the network, computing power, and load conditions. The task assignment module installs the selected path to the switch through the network device library.
[0200] The topology module comprehensively considers network conditions, memory, network capacity, computing capacity, computing load and other aspects of network devices. The network conditions include the load conditions of different paths; the network capacity of network devices includes the forwarding queue conditions of the device itself, interface utilization, etc.; the network computing capacity includes the network computing primitives supported by the device; the computing load of network devices includes the computing task load currently undertaken by the device;
[0201] The path can be understood as the topology of the network devices that are assigned to perform on-net computing. The installation of the path to the switch can be understood as the control plane selecting the path for the data to take, and then sending the forwarding table entries and computing tasks to the nodes along the way. The switches passed by send forwarding table entries, and the switches that perform on-net computing send on-net computing tasks.
[0202] (6) The source host encapsulates the network computing protocol header in the data packet and sends the data packet to the network device; the switch completes the network computing task according to the TaskID and UniqueID carried in the protocol header;
[0203] If the source host does not have the ability to request online computing tasks or the ability to encapsulate online computing protocol packet headers, the access switch or other interface device will replace the source host to initiate an online computing request to the INC controller or send a data packet to the network device.
[0204] In an embodiment of the present invention, first information sent by a first device is received, and the first information is used to request an on-line computing of a first task; based on the first information, a first network device is determined, and the first network device is used to perform the on-line computing of the first task; wherein the first information includes a first on-line computing capability required to perform the first task, and the on-line computing capability of the first network device matches the first on-line computing capability. By filtering network devices that perform on-line computing tasks based on the on-line computing capability required for task execution by a controller, different task (scenario) types can be applied, and the network devices for on-line computing can be flexibly configured accordingly, thereby improving the versatility and flexibility of on-line computing.
[0205] See also Figure 7 , Figure 7 is a flowchart of another task processing method provided by an embodiment of the present invention, which is used for a first device, such as Figure 7 As shown, the method is performed by the first device, comprising the following steps:
[0206] Step 701: Send first information to a controller, where the first information is used to determine a first network device.
[0207] Step 702: Receive first feedback information sent by the controller based on the first information.
[0208] Step 703: In response to the first feedback information, send a data packet of the first task to the first network device;
[0209] Wherein, the first information includes a first online computing capability required to perform the first task;
[0210] The first network device is used to perform on-line computing of the first task; and the on-line computing capability of the first network device matches the first on-line computing capability.
[0211] In the embodiment of the present invention, the above steps 701-703 are performed by the first device. Figure 8 The description is as follows: the first device sends first information to the controller, wherein the first information includes a first on-line computing capability required to perform the first task, and is used to determine the first network device; after receiving the first information, the controller sends first feedback information to the first device based on the first information; the first device sends a data packet of the first task to the first network device in response to the first feedback information, wherein the first network device is used to perform on-line computing of the first task, and wherein the on-line computing capability of the first network device matches the first on-line computing capability.
[0212] Optionally, the first information further includes at least one of the following:
[0213] an identifier of the first task;
[0214] an identifier of a subtask of the first task;
[0215] an identifier of the first device;
[0216] An identifier of a second device, wherein the second device is a device for receiving target data, and the target data is data obtained by online calculation when executing the first task.
[0217] Optionally, the header of the data packet carries at least one of the following information:
[0218] an identifier of the first task;
[0219] an identifier of a subtask of the first task;
[0220] The on-line computing primitive RIP of the first task;
[0221] The number of RIPs of the on-line computing primitives of the first task;
[0222] The data length of the on-line computing primitive RIP of the first task;
[0223] The first task is to calculate the data offset of the primitive RIP on the network.
[0224] Optionally, sending the data packet of the first task to the first network device includes:
[0225] Sending a data packet of the first task to the first network device through the access switch;
[0226] The data packet of the first task is generated by the access switch.
[0227] It should be noted that the task processing method provided in the embodiment of the present invention is executed by a first device, wherein the first device is capable of executing the above Figure 1-6 The device of the method shown in the figure, all implementation methods of the task processing method embodiment provided in the embodiment of the present invention are applicable to the above Figure 1-6 To avoid repeated description, this embodiment will not be described in detail.
[0228] See also Fig. 9 , Fig. 9 is a flowchart of another task processing method provided by an embodiment of the present invention, which is used for a second network device, such as Fig. 9 As shown, the method is performed by the second network device and includes the following steps:
[0229] Step 901: Send second information to a controller, where the second information includes a second on-line computing capability of the second network device.
[0230] Step 902: When the second information matches the first on-line computing capability required for the first task, the second network device receives the data packet of the first task sent by the first device.
[0231] Step 903: Execute the on-line computing of the first task according to the data packet of the first task.
[0232] Optionally, the second information also includes at least one of the following: a network status of the second network device, computing resources of the second network device, and memory resources of the second network device.
[0233] In the embodiment of the present invention, the above steps 901-903 are performed by the second network device. Fig.10 It is described as the second network device sending second information to the controller, wherein the second information includes the second on-line computing capability of the second network device; the first device sending a data packet of the first task to the second network device when the second information matches the first on-line computing capability required for the first task; and the second network device performing the on-line computing of the first task according to the data packet of the first task.
[0234] It should be noted that the task processing method provided in the embodiment of the present invention is executed by the second network device, wherein the above Figure 1-6 The candidate network devices in the method shown can be understood to be composed of the second network devices, that is, the second network device in the embodiment of the present invention corresponds to the above Figure 1-6 The candidate network devices in the method embodiment shown in the figure are applicable to all implementations of the task processing method embodiment provided in the embodiment of the present invention. Figure 1-6 To avoid repeated description, this embodiment will not be described in detail.
[0235] See also Fig.11 , Fig.11 is a flowchart of another task processing method provided by an embodiment of the present invention, which is used in a scheduler, such as Fig.11 As shown, the method is executed by a scheduler and includes the following steps:
[0236] Step 1101: Receive third information sent by a first device, where the third information includes a first online computing capability required to execute a first task.
[0237] Step 1102: Send fourth information to the controller, where the fourth information includes a first on-line computing capability required to execute the first task.
[0238] Step 1103: Receive confirmation information sent by the controller when there is a candidate network device that matches the first online computing capability.
[0239] In the embodiment of the present invention, the above steps 1101-1103 are executed by the scheduler. Fig.12The description is as follows: the first device sends third information to the scheduler, wherein the third information includes the first on-line computing capability required to execute the first task; the scheduler sends fourth information to the controller, wherein the fourth information includes the first on-line computing capability required to execute the first task; and the controller sends confirmation information to the scheduler when there is a candidate network device that matches the first on-line computing capability.
[0240] It should be noted that the task processing method provided in the embodiment of the present invention is executed by a scheduler, wherein the scheduler is capable of executing the above Figure 1-6 The device of the method shown in the figure, all implementation methods of the task processing method embodiment provided in the embodiment of the present invention are applicable to the above Figure 1-6 To avoid repeated description, this embodiment will not be described in detail.
[0241] See also Fig.13 , Fig.13 is a schematic diagram of the structure of a controller provided by an embodiment of the present invention, such as Fig.13 As shown, the controller 1300 includes:
[0242] A first receiving module 1301 is used to receive first information sent by a first device, where the first information is used to request online computing of a first task;
[0243] A determination module 1302 is used to determine a first network device according to the first information, where the first network device is used to perform the on-line computing of the first task;
[0244] The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability.
[0245] Optionally, the determining module 1302 includes:
[0246] A first determination submodule, configured to determine a first network device according to the first information and second information of the candidate network device;
[0247] The second information includes the online computing capability of the candidate network devices, and the first network device is at least one of the candidate network devices.
[0248] Optionally, the second information also includes at least one of the following: a network status of the candidate network device, computing resources of the candidate network device, and memory resources of the candidate network device.
[0249] Optionally, the second information is reported by the candidate network device to the controller.
[0250] Optionally, the controller 1300 further includes:
[0251] An acquisition module, used to acquire the online computing capability supported by the controller;
[0252] The online computing capability of the candidate network device matches the online computing capability supported by the controller.
[0253] Optionally, the on-line computing capability includes at least one of on-line computing primitives RIPs and data structures IEDs.
[0254] Optionally, the first information further includes at least one of the following:
[0255] an identifier of the first task;
[0256] an identifier of a subtask of the first task;
[0257] an identifier of the first device;
[0258] An identifier of a second device, wherein the second device is a device for receiving target data, and the target data is data obtained by online calculation when executing the first task.
[0259] Optionally, the first network device includes at least one network device, and the determining module 1302 includes:
[0260] A second determining submodule, configured to determine a first network device and a path of the first network device according to the first information;
[0261] The paths of the first network devices are used to determine the order in which each of the first network devices performs the first task.
[0262] Optionally, the controller 1300 further includes:
[0263] a sixth receiving module, configured to receive third information sent by the scheduler, wherein the third information includes a first on-line computing capability required to execute the first task;
[0264] a fifth sending module, configured to send confirmation information to the scheduler if there is a candidate network device that matches the first online computing capability;
[0265] The first device is used to send the first information when the scheduler receives the confirmation information.
[0266] Optionally, the controller 1300 further includes:
[0267] A sixth sending module, configured to send first feedback information to the first device;
[0268] The seventh sending module is used to send the second feedback information to the first network device.
[0269] It should be noted that the controller provided in the embodiment of the present invention is capable of executing the above Figure 1-6 If the device of the method shown in the figure is used, all the implementation methods in the above method embodiment are applicable to the controller and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be described in detail.
[0270] For details, see Fig.14 As shown, an embodiment of the present invention further provides an electronic device, including a bus 1401 , a transceiver 1402 , an antenna 1403 , a bus interface 1404 , a processor 1405 and a memory 1406 .
[0271] The transceiver 1402 is used to receive first information sent by a first device, where the first information is used to request online computing of a first task.
[0272] Further, the processor 1405 is used to determine a first network device according to the first information, where the first network device is used to perform the on-line computing of the first task;
[0273] The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability.
[0274] Optionally, determining the first network device according to the first information includes:
[0275] Determine a first network device according to the first information and second information of the candidate network device;
[0276] The second information includes the online computing capability of the candidate network devices, and the first network device is at least one of the candidate network devices.
[0277] Optionally, the second information also includes at least one of the following: a network status of the candidate network device, computing resources of the candidate network device, and memory resources of the candidate network device.
[0278] Optionally, the second information is reported by the candidate network device to the controller.
[0279] Optionally, before receiving the first information sent by the first device, the transceiver 1402 or the processor 1405 is further configured to:
[0280] Obtaining the online computing capability supported by the controller;
[0281] The online computing capability of the candidate network device matches the online computing capability supported by the controller.
[0282] Optionally, the on-line computing capability includes at least one of on-line computing primitives RIPs and data structures IEDs.
[0283] Optionally, the first information further includes at least one of the following:
[0284] an identifier of the first task;
[0285] an identifier of a subtask of the first task;
[0286] an identifier of the first device;
[0287] An identifier of a second device, wherein the second device is a device for receiving target data, and the target data is data obtained by online calculation when executing the first task.
[0288] Optionally, the first network device includes at least one network device, and determining the first network device according to the first information includes:
[0289] Determine a first network device and a path of the first network device according to the first information;
[0290] The paths of the first network devices are used to determine the order in which each of the first network devices performs the first task.
[0291] Optionally, before receiving the first information sent by the first device, the transceiver is further used to:
[0292] receiving third information sent by the scheduler, wherein the third information includes a first on-line computing capability required to execute the first task;
[0293] If there is a candidate network device that matches the first online computing capability, sending confirmation information to the scheduler;
[0294] The first device is used to send the first information when the scheduler receives the confirmation information.
[0295] Optionally, after determining the first network device according to the first information, the transceiver 1402 is further configured to:
[0296] Sending first feedback information to the first device;
[0297] The second feedback information is sent to the first network device.
[0298] exist Fig.14In the embodiment, the bus architecture (represented by bus 1401) may include any number of interconnected buses and bridges, and bus 1401 links various circuits including one or more processors represented by processor 1405 and memory represented by memory 1406. Bus 1401 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 1404 provides an interface between bus 1401 and transceiver 1402. Transceiver 1402 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 1405 is transmitted on a wireless medium via antenna 1403, and further, antenna 1403 also receives data and transmits the data to processor 1405.
[0299] The processor 1405 is responsible for managing the bus 1401 and general processing, and may also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 1406 may be used to store data used by the processor 1405 when performing operations.
[0300] Optionally, the processor 1405 may be a CPU, an ASIC, an FPGA or a CPLD.
[0301] It should be noted that the electronic device provided in the embodiment of the present invention is capable of executing the above Figure 1-6 If the device of the task processing method is shown, all implementations of the above task processing method embodiment are applicable to the electronic device and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be described in detail.
[0302] See also Fig.15 , Fig.15 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Fig.15 As shown, the electronic device 1500 includes:
[0303] A first sending module 1501 is used to send first information to the controller, where the first information is used to determine the first network device;
[0304] A second receiving module 1502 is used to receive first feedback information sent by the controller based on the first information;
[0305] A second sending module 1503 is used to send a data packet of a first task to the first network device in response to the first feedback information;
[0306] Wherein, the first information includes a first online computing capability required to perform the first task;
[0307] The first network device is used to perform on-line computing of the first task; and the on-line computing capability of the first network device matches the first on-line computing capability.
[0308] Optionally, the first information further includes at least one of the following:
[0309] an identifier of the first task;
[0310] an identifier of a subtask of the first task;
[0311] an identifier of the first device;
[0312] An identifier of a second device, wherein the second device is a device for receiving target data, and the target data is data obtained by online calculation when executing the first task.
[0313] Optionally, the header of the data packet carries at least one of the following information:
[0314] an identifier of the first task;
[0315] an identifier of a subtask of the first task;
[0316] The on-line computing primitive RIP of the first task;
[0317] The number of RIPs of the on-line computing primitives of the first task;
[0318] The data length of the on-line computing primitive RIP of the first task;
[0319] The first task is to calculate the data offset of the primitive RIP on the network.
[0320] Optionally, the second sending module 1503 includes:
[0321] A first sending submodule, configured to send a data packet of a first task to the first network device through an access switch;
[0322] The data packet of the first task is generated by the access switch.
[0323] It should be noted that the electronic device provided in the embodiment of the present invention is capable of executing the above Figure 1-8 If the device of the task processing method is shown, all implementations of the above task processing method embodiment are applicable to the electronic device and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be described in detail.
[0324] For details, see Fig.16As shown, an embodiment of the present invention further provides an electronic device, including a bus 1601 , a transceiver 1602 , an antenna 1603 , a bus interface 1604 , a processor 1605 and a memory 1606 .
[0325] The transceiver 1602 is configured to send first information to the controller, where the first information is used to determine the first network device;
[0326] receiving first feedback information sent by the controller based on the first information;
[0327] In response to the first feedback information, sending a data packet of a first task to the first network device;
[0328] Wherein, the first information includes a first online computing capability required to perform the first task;
[0329] The first network device is used to perform on-line computing of the first task; and the on-line computing capability of the first network device matches the first on-line computing capability.
[0330] Optionally, the first information further includes at least one of the following:
[0331] an identifier of the first task;
[0332] an identifier of a subtask of the first task;
[0333] an identifier of the first device;
[0334] An identifier of a second device, wherein the second device is a device for receiving target data, and the target data is data obtained by online calculation when executing the first task.
[0335] Optionally, the header of the data packet carries at least one of the following information:
[0336] an identifier of the first task;
[0337] an identifier of a subtask of the first task;
[0338] The on-line computing primitive RIP of the first task;
[0339] The number of RIPs of the on-line computing primitives of the first task;
[0340] The data length of the on-line computing primitive RIP of the first task;
[0341] The first task is to calculate the data offset of the primitive RIP on the network.
[0342] Optionally, sending the data packet of the first task to the first network device includes:
[0343] Sending a data packet of the first task to the first network device through the access switch;
[0344] The data packet of the first task is generated by the access switch.
[0345] exist Fig.16 In the embodiment, the bus architecture (represented by bus 1601) may include any number of interconnected buses and bridges, and bus 1601 links various circuits including one or more processors represented by processor 1605 and memory represented by memory 1606. Bus 1601 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 1604 provides an interface between bus 1601 and transceiver 1602. Transceiver 1602 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 1605 is transmitted on a wireless medium via antenna 1603, and further, antenna 1603 also receives data and transmits the data to processor 1605.
[0346] The processor 1605 is responsible for managing the bus 1601 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 1606 can be used to store data used by the processor 1605 when performing operations.
[0347] Optionally, the processor 1605 may be a CPU, an ASIC, an FPGA or a CPLD.
[0348] It should be noted that the electronic device provided in the embodiment of the present invention is capable of executing the above Figure 1-8 If the device of the task processing method is shown, all implementations of the above task processing method embodiment are applicable to the electronic device and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be described in detail.
[0349] See also Fig.17 , Fig.17 is a schematic diagram of the structure of a second network device provided by an embodiment of the present invention, such as Fig.17 As shown, the second network device 1700 includes:
[0350] A third sending module 1701 is used to send second information to the controller, where the second information includes a second online computing capability of the second network device;
[0351] The third receiving module 1702 is configured to receive, by the second network device, a data packet of the first task sent by the first device, when the second information matches the first on-line computing capability required by the first task;
[0352] The computing module 1703 is used to perform the on-line computing of the first task according to the data packet of the first task.
[0353] Optionally, the second information also includes at least one of the following: a network status of the second network device, computing resources of the second network device, and memory resources of the second network device.
[0354] It should be noted that the above Figure 1-6 , 9-10 The candidate network devices in the method shown in FIG. 9-10 can be understood to be composed of the second network device, that is, the second network device in the embodiment of the present invention corresponds to the above Figure 1-7 The candidate network device in the method embodiment shown in the figure, all implementation methods in the second network device embodiment provided in the embodiment of the present invention are applicable to the above Figure 1-6 , 9-10, and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be repeated.
[0355] For details, see Fig.18 As shown, an embodiment of the present invention further provides an electronic device, including a bus 1801 , a transceiver 1802 , an antenna 1803 , a bus interface 1804 , a processor 1805 and a memory 1806 .
[0356] The transceiver 1802 is configured to send second information to the controller, wherein the second information includes a second online computing capability of the electronic device;
[0357] When the second information matches the first online computing capability required for the first task, the electronic device receives the data packet of the first task sent by the first device.
[0358] Furthermore, the processor 1805 is used to perform on-line computing of the first task according to the data packet of the first task.
[0359] Optionally, the second information also includes at least one of the following: a network status of the second network device, computing resources of the second network device, and memory resources of the second network device.
[0360] exist Fig.18In the embodiment, the bus architecture (represented by bus 1801) may include any number of interconnected buses and bridges, and bus 1801 links various circuits including one or more processors represented by processor 1805 and memory represented by memory 1806. Bus 1801 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 1804 provides an interface between bus 1801 and transceiver 1802. Transceiver 1802 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 1805 is transmitted on a wireless medium via antenna 1803, and further, antenna 1803 also receives data and transmits the data to processor 1805.
[0361] The processor 1805 is responsible for managing the bus 1801 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 1806 can be used to store data used by the processor 1805 when performing operations.
[0362] Optionally, the processor 1805 may be a CPU, an ASIC, an FPGA or a CPLD.
[0363] It should be noted that the electronic device provided in the embodiment of the present invention is capable of executing the above Figure 1-6 , 9-10, all implementations of the above-mentioned task processing method embodiments are applicable to the electronic device and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be described in detail.
[0364] See also Fig.19 , Fig.19 is a schematic diagram of the structure of a scheduler provided by an embodiment of the present invention, such as Fig.19 As shown, the scheduler 1900 includes:
[0365] The fourth receiving module 1901 is used to receive third information sent by the first device, where the third information includes a first online computing capability required to perform the first task;
[0366] A fourth sending module 1902, configured to send fourth information to the controller, where the fourth information includes a first online computing capability required to perform the first task;
[0367] The fifth receiving module 1903 is configured to receive confirmation information sent by the controller when there is a candidate network device that matches the first online computing capability.
[0368] It should be noted that the scheduler provided in the embodiment of the present invention is capable of executing the above Figure 1-6 , 11-12, all implementations of the above-mentioned task processing method embodiments are applicable to the scheduler, and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be described in detail.
[0369] For details, see Fig. 20 As shown, an embodiment of the present invention further provides an electronic device, including a bus 2001 , a transceiver 2002 , an antenna 2003 , a bus interface 2004 , a processor 2005 and a memory 2006 .
[0370] The transceiver 2002 is configured to receive third information sent by the first device, where the third information includes a first online computing capability required to perform the first task;
[0371] Sending fourth information to the controller, wherein the fourth information includes a first online computing capability required to perform the first task;
[0372] Receive confirmation information sent by the controller when there is a candidate network device that matches the first online computing capability.
[0373] exist Fig. 20 In the embodiment, the bus architecture (represented by bus 2001) is shown, and bus 2001 may include any number of interconnected buses and bridges, and bus 2001 links various circuits including one or more processors represented by processor 2005 and memory represented by memory 2006. Bus 2001 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 2004 provides an interface between bus 2001 and transceiver 2002. Transceiver 2002 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 2005 is transmitted on a wireless medium via antenna 2003, and further, antenna 2003 also receives data and transmits the data to processor 2005.
[0374] The processor 2005 is responsible for managing the bus 2001 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 2006 can be used to store data used by the processor 2005 when performing operations.
[0375] Optionally, the processor 2005 may be a CPU, an ASIC, an FPGA or a CPLD.
[0376] It should be noted that the electronic device provided in the embodiment of the present invention is capable of executing the above Figure 1-6 , 11-12, all implementations of the above-mentioned task processing method embodiments are applicable to the electronic device and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be described in detail.
[0377] The embodiment of the present invention further provides a task processing system, characterized by comprising a first device, a controller and a second network device;
[0378] The first device is used to send first information to the controller, where the first information is used to request online computing of a first task;
[0379] The controller is used to determine a first network device according to the first information, where the first network device is used to perform the on-line computing of the first task;
[0380] The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability; the first network device is at least one of the second network devices.
[0381] Optionally, the system further includes a scheduler, the scheduler being configured to:
[0382] Receiving third information sent by the first device, wherein the third information includes a first online computing capability required to perform the first task;
[0383] Sending fourth information to the controller, wherein the fourth information includes a first online computing capability required to perform the first task;
[0384] receiving confirmation information sent by the controller when there is a candidate network device matching the first online computing capability;
[0385] The first device is used to send the first information when the scheduler receives the confirmation information.
[0386] It should be noted that the task processing system provided in the embodiment of the present invention is capable of executing the above Figure 1-9 If the system of the task processing method is shown, all implementations of the above task processing method embodiment are applicable to the task processing system and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be described in detail.
[0387] The embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program is executed by the processor to implement the above Figure 1-6 The various processes of the method embodiment shown in the figure, or the program is executed by the processor to implement the above Figure 7-8 The various processes of the method embodiment shown in the figure, or the program is executed by the processor to implement the above Figure 9-10 The various processes of the method embodiment shown in the figure, or the program is executed by the processor to implement the above Figure 11-12 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0388] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which implements the above-mentioned Figure 1-6 The various processes of the method embodiment shown in the figure, or the computer program is executed by the processor to implement the above Figure 7-8 The various processes of the method embodiment shown in the figure, or the computer program is executed by the processor to implement the above Figure 9-10 The various processes of the method embodiment shown in the figure, or the computer program is executed by the processor to implement the above Figure 11-12 The various processes of the method embodiments shown in the figure can achieve the same technical effect, and are not described here in detail to avoid repetition. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0389] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0390] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0391] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A task processing method, applied to a controller, characterized in that: The method comprises: Receiving first information sent by a first device, where the first information is used to request online computing of a first task; Determine a first network device according to the first information, where the first network device is used to perform on-line computing of the first task; The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability.
2. The method according to claim 1, characterized in that The determining the first network device according to the first information includes: Determine a first network device according to the first information and second information of the candidate network device; The second information includes the online computing capability of the candidate network devices, and the first network device is at least one of the candidate network devices.
3. The method according to claim 2, characterized in that in, The second information further includes at least one of the following: a network status of the candidate network device, computing resources of the candidate network device, and memory resources of the candidate network device.
4. The method according to claim 2 or 3, characterized in that: Before receiving the first information sent by the first device, the method further includes: Obtaining the online computing capability supported by the controller; The online computing capability of the candidate network device matches the online computing capability supported by the controller.
5. The method according to any one of claims 1 to 3, characterized in that: in, The on-line computing capability includes at least one of on-line computing primitives RIPs and data structures IEDs.
6. The method according to claim 1, characterized in that The first information also includes at least one of the following: an identifier of the first task; an identifier of a subtask of the first task; an identifier of the first device; An identifier of a second device, wherein the second device is a device for receiving target data, and the target data is data obtained by online calculation when executing the first task.
7. The method according to claim 1, characterized in that The first network device includes at least one network device, and determining the first network device according to the first information includes: Determine a first network device and a path of the first network device according to the first information; The paths of the first network devices are used to determine the order in which each of the first network devices performs the first task.
8. The method according to claim 1, characterized in that Before receiving the first information sent by the first device, the method further includes: receiving third information sent by the scheduler, wherein the third information includes a first on-line computing capability required to execute the first task; If there is a candidate network device that matches the first online computing capability, sending confirmation information to the scheduler; The first device is used to send the first information when the scheduler receives the confirmation information.
9. The method according to claim 1, characterized in that: After determining the first network device according to the first information, the method further includes at least one of the following: Sending first feedback information to the first device; The second feedback information is sent to the first network device.
10. A task processing method, applied to a first device, characterized in that: The method comprises: Sending first information to the controller, where the first information is used to determine the first network device; receiving first feedback information sent by the controller based on the first information; In response to the first feedback information, sending a data packet of a first task to the first network device; Wherein, the first information includes a first online computing capability required to perform the first task; The first network device is used to perform on-line computing of the first task; and the on-line computing capability of the first network device matches the first on-line computing capability.
11. The method according to claim 10, characterized in that The first information also includes at least one of the following: an identifier of the first task; an identifier of a subtask of the first task; an identifier of the first device; An identifier of a second device, wherein the second device is a device for receiving target data, and the target data is data obtained by online calculation when executing the first task.
12. The method according to claim 10 or 11, characterized in that: The header of the data packet carries at least one of the following information: an identifier of the first task; an identifier of a subtask of the first task; The on-line computing primitive RIP of the first task; The number of RIPs of the on-line computing primitives of the first task; The data length of the on-line computing primitive RIP of the first task; The first task is to calculate the data offset of the primitive RIP on the network.
13. The method according to claim 10 or 11, characterized in that: The sending a data packet of the first task to the first network device includes: Sending a data packet of the first task to the first network device through the access switch; The data packet of the first task is generated by the access switch.
14. A task processing method, applied to a second network device, characterized in that: The method comprises: Sending second information to the controller, wherein the second information includes a second on-line computing capability of the second network device; When the second information matches the first online computing capability required by the first task, receiving a data packet of the first task sent by the first device; According to the data packet of the first task, the on-line computing of the first task is performed.
15. The method according to claim 14, characterized in that in, The second information also includes at least one of the following: a network status of the second network device, computing resources of the second network device, and memory resources of the second network device.
16. A task processing method, applied to a scheduler, characterized in that: The method comprises: Receiving third information sent by the first device, wherein the third information includes a first online computing capability required to perform the first task; Sending fourth information to the controller, wherein the fourth information includes a first online computing capability required to perform the first task; Receive confirmation information sent by the controller when there is a candidate network device that matches the first online computing capability.
17. A controller, characterized in that: include: A first receiving module, configured to receive first information sent by a first device, wherein the first information is used to request online computing of a first task; A determination module, configured to determine a first network device according to the first information, wherein the first network device is configured to perform the on-line computing of the first task; The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability.
18. An electronic device, characterized in that: Including transceiver and processor, The transceiver is used to receive first information sent by a first device, where the first information is used to request online computing of a first task; The processor is used to determine a first network device according to the first information, where the first network device is used to perform the on-line computing of the first task; The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability.
19. An electronic device, characterized in that: include: A first sending module, configured to send first information to the controller, wherein the first information is used to determine the first network device; A second receiving module, configured to receive first feedback information sent by the controller based on the first information; A second sending module, configured to send a data packet of a first task to the first network device in response to the first feedback information; Wherein, the first information includes a first online computing capability required to perform the first task; The first network device is used to perform on-line computing of the first task; and the on-line computing capability of the first network device matches the first on-line computing capability.
20. An electronic device, characterized in that: Including transceiver, The transceiver is used to send first information to the controller, where the first information is used to determine the first network device; receiving first feedback information sent by the controller based on the first information; In response to the first feedback information, sending a data packet of a first task to the first network device; Wherein, the first information includes a first online computing capability required to perform the first task; The first network device is used to perform on-line computing of the first task; and the on-line computing capability of the first network device matches the first on-line computing capability.
21. A second network device, characterized in that: include: A third sending module, configured to send second information to the controller, wherein the second information includes a second on-line computing capability of the second network device; A third receiving module, configured to receive, by the second network device, a data packet of the first task sent by the first device, when the second information matches the first on-line computing capability required by the first task; A computing module is used to perform on-line computing of the first task according to the data packet of the first task.
22. An electronic device, characterized in that: Including transceiver and processor, The transceiver is used to send second information to the controller, wherein the second information includes a second online computing capability of the electronic device; In a case where the second information matches the first online computing capability required for the first task, the electronic device receives a data packet of the first task sent by the first device; The processor is used to perform the on-line computing of the first task according to the data packet of the first task.
23. A scheduler, characterized in that: include: a fourth receiving module, configured to receive third information sent by the first device, wherein the third information includes a first online computing capability required to perform the first task; a fourth sending module, configured to send fourth information to the controller, wherein the fourth information includes a first online computing capability required to perform the first task; The fifth receiving module is used to receive confirmation information sent by the controller when there is a candidate network device that matches the first online computing capability.
24. An electronic device, characterized in that: Including transceiver, The transceiver is used to receive third information sent by the first device, wherein the third information includes a first online computing capability required to perform the first task; Sending fourth information to the controller, wherein the fourth information includes a first online computing capability required to perform the first task; Receive confirmation information sent by the controller when there is a candidate network device that matches the first online computing capability.
25. A task processing system, characterized in that: comprising a first device, a controller and a second network device; The first device is used to send first information to the controller, where the first information is used to request online computing of a first task; The controller is used to determine a first network device according to the first information, where the first network device is used to perform the on-line computing of the first task; The first information includes a first on-line computing capability required to execute the first task, and the on-line computing capability of the first network device matches the first on-line computing capability; the first network device is at least one of the second network devices.
26. The system according to claim 25, characterized in that The system further comprises a scheduler, configured to: Receiving third information sent by the first device, wherein the third information includes a first online computing capability required to perform the first task; Sending fourth information to the controller, wherein the fourth information includes a first online computing capability required to perform the first task; receiving confirmation information sent by the controller when there is a candidate network device matching the first online computing capability; The first device is used to send the first information when the scheduler receives the confirmation information.
27. An electronic device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the task processing method as described in any one of claims 1 to 9, or, when executed by the processor, implements the steps of the task processing method as described in any one of claims 10 to 13, or, when executed by the processor, implements the steps of the task processing method as described in any one of claims 14 to 15, or, when executed by the processor, implements the steps of the task processing method as described in claim 16.
28. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the computer program implements the steps of the task processing method as described in any one of claims 1 to 9, or, when the computer program is executed by the processor, the computer program implements the steps of the task processing method as described in any one of claims 10 to 13, or, when the computer program is executed by the processor, the computer program implements the steps of the task processing method as described in any one of claims 14 to 15, or, when the computer program is executed by the processor, the computer program implements the steps of the task processing method as described in claim 16.
