Edge gateway computing method based on terminal collaborationTechnical Field
The invention relates to mobile edge computing, in particular to an edge gateway computing method based on terminal collaboration.
Background
In the technical field of mobile edge computing, most of domestic and foreign documents mainly study research hotspots such as edge cloud deployment mode, transmission delay, computing overhead and the like. Conventional edge computing typically handles computationally intensive or delay sensitive tasks, requiring both computing power and network transmission power from the edge server.
With the popularity of the internet of things, home life will introduce more and more intelligent applications, such as intelligent lighting control, intelligent televisions, intelligent air conditioners, etc., which require a large number of sensors and controllers to be deployed in the home and a large number of computing tasks to be performed. However, the concept of edge computation has not been migrated to the home gateway in the prior art, and cooperation of the home terminal has not been considered, so that problems such as delay may be caused when the computation load of the gateway is large.
The chinese patent application "an intelligent internet of things edge gateway" (201911413147.2) proposes an intelligent internet of things edge gateway device, which has the advantage of good heat dissipation effect, but does not consider computing cooperation with a home terminal.
The Chinese patent application (201811588847.0) proposes a rule engine-based edge gateway, which matches sensor data of different types from an edge network environment with related rules to finally obtain accurate judgment on the current environment condition, and generates a control instruction to complete control on terminal equipment or generate push information to remind a user, thereby improving the intelligent degree of an intelligent system. However, the invention does not contemplate utilizing the computing power of the home terminal to share a portion of the computing task.
Therefore, in order to solve the problem that the home gateway in the prior art does not consider the computation cooperation with the home terminal to cause a large computation load of the gateway, it is desirable to provide an improved edge gateway computation method.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
The invention discloses an edge computing method suitable for a home gateway, which is mainly used for processing small computing tasks under a home network environment, such as user behavior analysis, user health data analysis and the like. The invention is characterized in that the cooperation mode is considered, and the computing capacity of the intelligent terminal in the home network is fully utilized. When the home gateway receives a plurality of computing tasks, a part of the computing tasks can be distributed to the intelligent terminal equipment hung under the home gateway, so that the intelligent terminal can finish the computing tasks in cooperation with the home gateway, and the home gateway is called an edge gateway. For example, in a home network environment, the intelligent terminal may collect physical sign data of the user, upload such data to the edge gateway for user health data analysis, and the obtained analysis data may be fed back to the user. Meanwhile, if a plurality of calculation tasks exist at the gateway, a part of tasks are distributed to the hung intelligent terminal for processing, the calculation result is returned to the edge gateway, and finally, the edge gateway returns the health data analysis result to the user.
According to one aspect of the present invention, there is provided an edge gateway computing method, the method comprising:
Obtaining user data and real-time computing capabilities from one or more intelligent terminal devices communicatively coupled with an edge gateway;
Assigning computing tasks related to processing the user data to one or more of the one or more intelligent terminal devices and the edge gateway based on a data size of the user data and computing capabilities of the edge gateway and the one or more intelligent terminal devices;
one or more of the one or more intelligent terminal devices and the edge gateway respectively execute the assigned computing tasks to obtain user data analysis results, and
And feeding back the user data analysis result to a user.
According to one embodiment of the invention, the user data comprises user health data or user behavior data collected by the one or more intelligent terminal devices.
According to a further embodiment of the present invention, the assigning computing tasks to one or more of the one or more intelligent terminal devices and the edge gateway further comprises:
Ordering in descending order according to the data size of the user data and the computing power of the edge gateway and the one or more intelligent terminal devices, and
Computing task polls for processing the user data are assigned to one or more of the one or more intelligent terminal devices and the edge gateway.
According to a further embodiment of the invention, the computing power comprises one or more of CPU utilization, running memory, or device available resources of the device.
According to a further embodiment of the present invention, the edge gateway and the one or more intelligent terminal devices themselves integrate a data analysis algorithm, and one or more of the one or more intelligent terminal devices and the edge gateway respectively perform the assigned computing tasks to obtain a user data analysis result further comprises:
And one or more of the one or more intelligent terminal devices and the edge gateway respectively utilize an integrated data analysis algorithm to execute the distributed calculation tasks so as to obtain a user data analysis result.
According to another aspect of the present invention, there is provided an edge gateway computing system, the system comprising:
Edge gateway, and
One or more intelligent terminal devices communicatively coupled with the edge gateway,
Wherein the edge gateway is configured to:
acquiring user data and real-time computing power from the one or more intelligent terminal devices;
Assigning computing tasks related to processing the user data to one or more of the one or more intelligent terminal devices and the edge gateway based on a data size of the user data and computing capabilities of the edge gateway and the one or more intelligent terminal devices;
Executing the assigned computing tasks and combining the returned computing results obtained from the one or more intelligent terminal devices to obtain user data analysis results, wherein the computing results are calculated by the one or more intelligent terminal devices by executing the assigned computing tasks, and
And feeding back the user data analysis result to a user.
According to one embodiment of the invention, the user data comprises user health data or user behavior data collected by the one or more intelligent terminal devices.
According to a further embodiment of the present invention, the assigning computing tasks to one or more of the one or more intelligent terminal devices and the edge gateway further comprises:
Ordering in descending order according to the data size of the user data and the computing power of the edge gateway and the one or more intelligent terminal devices, and
Computing task polls for processing the user data are assigned to the edge gateway or the one or more intelligent terminal devices.
According to a further embodiment of the invention, the edge gateway and the one or more intelligent terminal devices themselves integrate data analysis algorithms, and the edge gateway and the one or more intelligent terminal devices are configured to perform the assigned computational tasks with the themselves integrated data analysis algorithms to obtain the user data analysis results.
According to a further embodiment of the invention, the edge gateway is a home gateway and the intelligent terminal device is a home intelligent terminal device.
Compared with the scheme in the prior art, the edge gateway computing method provided by the invention has at least the following advantages:
(1) Data analysis and advice useful to the user that may upload the user's behavioral data or health data to the edge gateway for computational analysis and feedback to the user, and
(2) The computing cooperation among the terminals is fully considered, so that the computing load of the edge gateway can be effectively reduced.
These and other features and advantages will become apparent upon reading the following detailed description and upon reference to the associated drawings. It is to be understood that both the foregoing general description and the following detailed description are explanatory only and are not restrictive of aspects as claimed.
Drawings
So that the manner in which the above recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only certain typical aspects of this invention and are therefore not to be considered limiting of its scope, for the description may admit to other equally effective aspects.
Fig. 1 is an exemplary architecture diagram of a terminal collaboration-based edge gateway computing system in accordance with one embodiment of the invention.
Fig. 2 is a flowchart of a terminal collaboration-based edge gateway computing method according to one embodiment of the invention.
Detailed Description
The features of the present invention will become more apparent from the detailed description set forth below when taken in conjunction with the drawings.
Fig. 1 is an exemplary architecture diagram of a terminal collaboration-based edge gateway computing system 100 in accordance with one embodiment of the invention. As shown in fig. 1, edge gateway computing system 100 of the present invention includes an edge gateway 101 and one or more intelligent terminal devices 102 communicatively coupled to edge gateway 101. Edge gateway 101 may be a home gateway and one or more smart terminal devices 102 may include, but are not limited to, a smart watch, a smart phone, a smart camera, a smart speaker, a smart door lock, a smart television, a smart air conditioner, or smart lighting. The one or more intelligent terminal devices 102 may collect user data, which may include, for example, user health data and user behavior data, and communicate the collected data to edge gateway 101 for processing. For example, in a home network environment, a smart terminal device (e.g., a smart watch) may collect body temperature, heart rate, blood pressure, etc. data of a user and upload such data to an edge gateway for user health data analysis.
Edge gateway 101 may obtain the collected user data and real-time computing power from the one or more intelligent terminal devices 102, and assign computing tasks regarding processing the user data to one or more of edge gateway 101 and the one or more intelligent terminal devices 102 based on the data size of the user data and the real-time computing power of edge gateway 101 itself and the one or more intelligent terminal devices 102. As one example, edge gateway 101 may sort in descending order of the size of the data amount of the acquired user data and the computing capabilities of edge gateway 101 and one or more intelligent terminal devices 102, including but not limited to CPU utilization of the device, running memory or device available resources, etc., and then allocate computing task polls for processing these user data to the corresponding edge gateway 101 or one or more of the one or more intelligent terminal devices 102. Once the computing tasks are assigned, edge gateway 101 and one or more of the one or more intelligent terminal devices 102 may each utilize their own integrated data analysis algorithms to perform the assigned computing tasks to obtain corresponding computing results. Edge gateway 101 may then combine its own calculation with the calculation returned by the one or more intelligent terminal devices 102 to obtain a user data analysis result, and feed back to the user.
Fig. 2 is a flow chart of a terminal collaboration based edge gateway computing method 200 in accordance with one embodiment of the invention. Method 200 begins at step 201 with an edge gateway obtaining user data and real-time computing capabilities from one or more intelligent terminal devices communicatively coupled to the edge gateway. For example, an edge gateway may obtain collected user behavior data or health data from one or more home intelligent terminal devices that the edge gateway hangs down, assuming that there are n total collected data, i.e., n data needed to be calculated by the gateway, and the edge gateway may simultaneously obtain real-time computing power from the one or more intelligent terminal devices, including but not limited to CPU utilization, running memory or device available resources, etc. of the device.
Step 202, an edge gateway allocates computing tasks related to processing the acquired user data to one or more of the edge gateway and the one or more intelligent terminal devices based on the data size of the acquired user data and the computing capabilities of the edge gateway and the one or more intelligent terminal devices. In one example, the edge gateway may sort in descending order of the data size of the user data and the computing capabilities of the edge gateway itself and the one or more intelligent terminal devices, and then poll the computing tasks accordingly, enabling a reasonable allocation of computing resources and an effective reduction in computing load at the gateway.
In step 203, the edge gateway and one or more of the one or more intelligent terminal devices respectively execute the assigned computing tasks to obtain a computing result. As one example, the edge gateway and one or more of the one or more intelligent terminal devices may themselves integrate the behavioral data analysis algorithm and the health data analysis algorithm, and the edge gateway and one or more of the one or more intelligent terminal devices may each utilize the self-integrated data analysis algorithm to perform the assigned computational tasks to obtain the computational results.
And 204, combining the calculation result of the edge gateway with the calculation result returned by the one or more intelligent terminal devices to obtain a user data analysis result, and feeding back the user data analysis result to the user. As one example, the edge gateway may feed back the resulting user data analysis results to the user via a smart terminal device, such as a smart phone.
What has been described above includes examples of aspects of the claimed subject matter. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the claimed subject matter, but one of ordinary skill in the art may recognize that many further combinations and permutations of the claimed subject matter are possible. Accordingly, the disclosed subject matter is intended to embrace all such alterations, modifications and variations that fall within the spirit and scope of the appended claims.