The present disclosure relates to a dispatching method and an edge computing system, and more particularly, to a dispatching method and an edge computing system capable of obtaining information of a resource type of an edge computing device and dispatching a task accordingly.
Edge computing attracts signification attention recently. Compared to cloud computing, edge computing devices are deployed by base stations, and in some situation, latency between the user and the edge computing device is much lower than latency between the user and the cloud computing device. Thus, the edge computing devices are suitable to perform tasks of real-time applications.
In some circumstance, some edge computing devices may be equipped with an additional processor, for example, a graphic processing units (GPU) or a tensor processing units (TPU). However, the mobile device may not have knowledge or information of what kind of processor is equipped with the edge computing device. For example, the mobile device may not know the edge computing device is equipped with the GPU. Thus, the mobile device may not hand the real-time task suitable to be executed by the GPU to the edge computing device, such that efficiency of the edge computing device is degraded.
It is therefore an objective of the present disclosure to provide a dispatching method and an edge computing system capable of obtaining information of a resource type of an edge computing device and dispatching a computing task accordingly.
An embodiment of the present disclosure discloses a method of dispatching task. The method of dispatching task is applied in an edge computing system. The edge computing system comprises an edge computing device and a mobile device. The edge computing devices comprises a first computing device and/or a second computing device. The mobile device has a first type of computing task and a second type of computing task to be dispatched. The first computing device is equipped with a first type of processor but not equipped with a second type of processor, and the second computing device is equipped with both the first type of processor and the second type of processor. The method comprises sending, by the mobile device, a resource inquiry message to the edge computing device through a connection, wherein the connection comprises a wireless connection, a one-way transmission latency of the connection is less than 10 milliseconds, and the resource inquiry message comprises an inquiry of which resource type the edge computing device is equipped with; sending, by the edge computing device, a resource response message corresponding to the resource inquiry message, wherein the resource response message indicates whether the edge computing device comprises the second computing device equipped with the second type of processor; and determining, by the mobile device, to dispatch the second type of computing task to the second computing device when the resource response message indicates that the edge computing device comprises the second computing device equipped with the second type of resource; wherein the first type of processor is suitable to execute the first type of the computing task compared to the second type of processor, and the second type of processor is suitable to execute the second type of the computing task compared to the first type of processor .
An embodiment of the present disclosure further discloses an edge computing system. The edge computing system comprises a mobile device, having a first type of computing task and a second type of computing task to be dispatched, configured to send a resource inquiry message to the edge computing device through a connection, wherein the connection comprises a wireless connection, a one-way transmission latency of the connection is less than 10 milliseconds, and the resource inquiry message comprises an inquiry of which resource type the edge computing device is equipped with; and an edge computing device, comprising a first computing device and/or a second computing device, configured to send a resource response message corresponding to the resource inquiry message, wherein the resource response message indicates whether the edge computing device comprises the second computing device equipped with the second type of processor, the first computing device is equipped with a first type of processor but not equipped with a second type of processor, and the second computing device is equipped with both the first type of processor and the second type of processor; wherein the mobile device determines to dispatch the second type of task to the second computing device when the resource response message indicates that the edge computing device comprises the second computing device equipped with both the first type of processor and the second type of processor; wherein the first type of processor is suitable to execute the first type of the computing task compared to the second type of processor, and the second type of processor is suitable to execute the second type of the computing task compared to the first type of processor.
An embodiment of the present disclosure further discloses a mobile device, applied in an edge computing system. The edge computing system comprises an edge computing device. The edge computing devices comprises a first computing device and/or a second computing device. The first computing device is equipped with a first type of processor but not equipped with a second type of processor. The second computing device is equipped with both the first type of processor and the second type of processor. The mobile device sends a resource inquiry message to the edge computing device through a connection. The connection comprises a wireless connection. A one-way transmission latency of the connection is less than 10 milliseconds. The resource inquiry message comprises an inquiry of which resource type the edge computing device is equipped with. The edge computing device sends a resource response message corresponding to the resource inquiry message. The resource response message indicates whether the edge computing device comprises the second computing device equipped with the second type of processor. The mobile device determines to dispatch the second type of computing task to the second computing device when the resource response message indicates that the edge computing device comprises the second computing device equipped with the second type of processor. The first type of processor is suitable to execute the first type of the computing task compared to the second type of processor, and the second type of processor is suitable to execute the second type of the computing task compared to the first type of processor.
These and other objectives of the present disclosure will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
In an embodiment, the first computing device 120 may be equipped with a first type of processor but not equipped with a second type of processor, the second computing device 122 may be equipped with both the first type of processor and the second type of processor. The first type of processor may be a central processing unit (CPU) and the second type of processor may be a graphics processing unit (GPU) or a tensor processing unit (TPU).
In this regard, the mobile device 14 always can dispatch a first type of computing task, which is a real-time application, to the edge computing device 12 and have the edge computing device 12 execute the first type of computing task using the CPU of the edge computing device 12, where the first type of computing task is suitable to be executed by a general purpose CPU. For example, for an autonomous vehicle application/scenario, the mobile device 14 may be disposed within an autonomous vehicle, and the first type of computing task may be a collision detection operation, based on images captured by camera disposed on the autonomous vehicle, since the collision detection operation is suitable to be executed by the general purpose CPU.
On the other hand, if the mobile device 14 has knowledge/information about the edge computing device 12 which comprises the second computing device 122 equipped with the GPU, the mobile device 14 may hand a second type of computing task, which is also a real-time application, to the edge computing device 12 (especially to the second computing device 122) and have the edge computing device 12 (or the second computing device 122) execute the second type of computing task using the GPU within the edge computing device 12, where the second type of computing task is suitable to be executed by the GPU. For example, for a VR application/scenario, the mobile device 14 may be a reality presenting device (e.g., a VR device), and the second type of computing task is a VR rendering operation, which is suitable to be executed by the GPU. Thus, a computation burden of the mobile device 14, especially the burden corresponding to the second type of computing task, can be shared by the edge computing device 12, and power consumption of the mobile device 14 can be reduced, if the mobile device 14 knows that the edge computing device 12 is equipped with the GPU.
Step 202: The mobile device sends a resource inquiry message to the edge computing device through a connection.
Step 204: The edge computing device sends a resource response message corresponding to the resource inquiry message, wherein the resource response message indicates whether the edge computing device comprises the second computing device equipped with a second type of processor.
Step 206: The mobile device determines to dispatch the second type of computing task to the second computing device when the resource response message indicates that the edge computing device comprises the second computing device equipped with the second type of processor.
Step 208: The mobile device sends a resource request message comprising a request of utilizing the second type of processor to the edge computing device when the mobile device determines to dispatch the second type of computing task to the second computing device.
In Step 202, the mobile device 14 may send a resource inquiry message RI to the edge computing device 12 through the connection 15. The resource inquiry message RI comprises an inquiry message of resource type with information of what kind of hardware resource the edge computing device 12 is equipped with. The resource inquiry message RI comprises an inquiry message of whether the edge computing device 12 comprises the second computing device 122 equipped with the second type of processor. The format of the resource inquiry message RI and/or the inquiry message are not limited.
After the resource inquiry message RI is received by the edge computing device 12, in Step 204, the edge computing device 12 responses and sends a resource response message RR corresponding to the resource inquiry message RI. The resource response message RR may indicate that the edge computing device 12 comprises the first computing device 120 only equipped with a first type of processor (e.g., the CPU), or the resource response message RR may indicate that the edge computing device 12 comprises the second computing device 122 equipped with a first type of processor equipped with both the first type of processor and the second type of processor (e.g., the GPU). In other words, the resource response message RR indicates whether the edge computing device 12 comprises the second computing device 122 which is equipped with the second type of processor.
After the resource response message RR is received by the mobile device 14, the mobile device 14 determines to dispatch the second type of computing task to the second computing device 122 according to the resource response message, where the first type of computing task is suitable to be executed by the first type of processor and the second type of computing task is suitable to be executed by the second type of processor. The second type of computing task being suitable to be executed by the second type of processor means that the edge computing device 12 would gain better performance (e.g., more efficiency or consuming less power) when the second type of computing task is executed by the second type of processor, rather than the first type of processor. It means that the second type of processor may be specifically designed for performing the second type of computing task. For example, GPU is specifically designed for performing graphic-related operation, and the VR rendering operation is one kind of the graphic-related operation. Thus, the VR rendering operation is suitable to be executed by the GPU. In other words, the first type of processor is much suitable to execute the first type of the computing task compared to the second type of processor, and the second type of processor is much suitable to execute the second type of the computing task compared to the first type of processor.
When the resource response message RR indicates that the edge computing device 12 comprises the second computing device 122 which is equipped with the second type of processor (e.g., GPU), in Step 206, the mobile device 14 determines to dispatch the second type of computing task (e.g., VR rendering operation for the VR devices) to the edge computing device 12, or specifically, the second computing device 122.
Once the mobile device 14 determines to dispatch the second type of computing task (e.g., VR rendering operation) to the edge computing device 12, in Step 208, the mobile device 14 sends a resource request message RSR to the edge computing device 12, where the resource request message RSR comprises a request of utilizing the second type of processor (e.g., GPU). When the edge computing device 12 receives the mobile device 14, the edge computing device 12 may review its second type of processor to see if the second type of processor thereof are still available (for executing the second type of computing task), and sends an acknowledgement message ACK_R corresponding to the resource request message RSR back to the mobile device 14.
After the mobile device 14 receives the acknowledgement message ACK_R, the mobile device 14 may send a second parameter corresponding to the second type of computing task to the edge computing device 12. For example, suppose that the second type of computing task is the VR rendering operation, the second parameter may be a screen size or a resolution of a screen of the mobile device 14.
After the second parameter is received by the edge computing device 12, the edge computing device 12 are ready to execute the second type of computing task.
In an embodiment, the mobile device 14 may also dispatch the first type of computing task to the first computing device 120 within the edge computing device 12. Details of sending request of utilizing the first type of processor and sending a first parameter corresponding to the first type of computing task is similar to which of the second type of processor and the first type of computing task, which is not narrated herein for brevity.
In the prior art, the mobile device does not have knowledge of what kind of processor is equipped within the edge computing device. In comparison, the mobile device of the present disclosure is able to obtain the resource type of the edge computing device. Thereby, the mobile device of the present disclosure may hand a specific type of computing task which is suitable to be executed by a specific resource, such that a computation burden of the mobile device corresponding to the specific type of computing task can be shared by the edge computing device, and the power consumption of the mobile device can be reduce.
In summary, the mobile device of the present disclosure is able to obtain the resource type of the edge computing device and hand the specific type of computing task, being a real-time application, which is suitable to be executed by the specific resource, such that the computation burden of the mobile device corresponding to the specific type of computing task can be shared by the edge computing device, and the power consumption of the mobile device can be reduce.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.