Introduction
Recently, new information technologies, such as artificial intelligence [1]–[3], cloud computing [4]–[6] and Internet of Things (IoT) [7]–[9], have emerged one after another, which have enlightened upgrades to the manufacturing industry. Nowadays, customer-needs show a trend of diversity and individualization, and the personalized customization production mode has gradually become mainstream. With the development of personalized and customized production, the demand for high-quality production is increasing, and the requirements for business delay, privacy, and security indicators have been further upgraded [10], [11]. The overall operation presents the trend of refinement, flexibility, and intelligence, which requires not only the overall operation of cloud computing but also the local real-time decision-making function of edge computing [12]–[14]. Edge computing is an open platform with a network, computing, storage, application, and other functions. It is located at the edge of the network near the device or data source and provides intelligent services to meet the key requirements of intelligent manufacturing, agile connection, real-time processing, data cleansing, and privacy protection [15]. Edge computing provides a mechanism for interconnection and intercommunication between devices, operational technology (OT) systems, and information technology (IT) systems as well as real-time data collection, aggregation, storage, and analysis mechanisms deployed in the manufacturing site, which can quickly and easily achieve integration of OT and IT [16]–[20]. However, in personalized customization production, higher requirements are put forward to shorten the average execution time of all the tasks related to production and make full use of the equipment computing resources. The collaborative computing of the edge, cloud, and manufacturing equipment can effectively solve these problems.
In recent years, many scholars have analyzed and studied the problem of edge computing and edge computing task offloading decision-making in industrial IoT (IIoT), and some achievements have been made. Ma et al. [21] proposed a production system scheduling framework under the edge-cloud collaborative paradigm based on the dynamic fluctuation of orders under personalized customization requirements, and built an edge-cloud collaborative scheduling model, which guaranteed real-time distributed scheduling at the edge. Wang et al. [22], aimed at the problem that the large amount of sensor data collected in the industrial sensor cloud system (SCS) was untrustworthy, proposed a data collection and cleaning method based on mobile edge nodes, which can maintained the reliability and integrity of the data. At the same time, it improved the efficiency of data cleaning and greatly reduced the bandwidth and energy consumption of industrial SCS. To address the problem that typical energy-saving and battery life technologies in industrial devices cannot supported dynamic wireless channels in edge computing, Sodhro et al. [23] proposed a data reliability model of IoT devices based on edge AI to improve the range and computing speed of IoT devices in industry. Fu et al. [24] designed a framework that integrated fog computing and cloud computing to improve the efficiency and security of data storage and retrieval in IIoT in response to data processing, secure data storage, efficient data retrieval, and dynamic data collection in IIoT. Wang et al. [25] proposed a cloud-edge computing environment and a CNN-based element segmentation method to solve the problem of visual sorting in customization driven manufacturing systems. The prototype system showed that the proposed method can provided high classification accuracy within an acceptable time. Previous research has been conducted on edge computing in IIoT. The above results provided a good reference point for our research, but personalized and customized production products show multi-variety and small-volume characteristics; besides, the production materials in the production system, including personnel, equipment, materials and product design, scheduling management, routes, and other production processes show the characteristic of continuous dynamic flexibility. Prior research has not considered the new features of personalized customized production, and thus their results do not apply to personalized customized production systems.
Chen et al. [26] proposed a decision method based on game theory to realize distributed and efficient computing unloading among device users aimed at the multi-user computing offloading in a multi-channel wireless environment scenario. This method can achieved higher computational offload performance and scale under the condition of increasing user size. Deng et al. [27] proposed a dynamic adaptive sequential offloading decision method aimed at the problem that the limited computing resources of the edge computing server of the community and the serious interference between communities limit the scalability of offloading. This method can achieved efficient performance in terms of time delay and energy consumption. Liang et al. [28] designed a multi-user collaborative offloading scheduling algorithm based on a decomposition method to solve the coordination problem of wireless resources and computing resources allocation in a multi-user mobile edge computing system under I/O interference, which can made the offloading controllable and has better results. Tran et al. [29] proposed a new heuristic algorithm for collaborative task offloading and resource allocation in edge computing, which significantly improved the user’s utility for traditional methods. Ruan et al. [30] used Lyapunov theory and the proposed deviation update decision algorithm to solve the computing offloading decision and the formulation of the offloading update sequence for the resource allocation problem in the application of the fog computing technology to the sharing mode. This strategy can saved system consumption and improved the resource demand satisfaction rate. In summary, none of these works considered how to choose an edge collaborative model in a customized production environment, and the above-presented decision methods are not suitable for a customized production environment.
Faced with the challenges of stricter task execution time and full utilization of edge device computing resources in personalized customized production, the traditional centralized cloud computing models cannot meet the demand. To build and implement a flexible and reliable edge collaborative computing system, we propose an edge collaborative computing system architecture for personalized customized production and a thing-edge-cloud collaborative computing decision (TCCD) method to achieve efficient computing of customized production tasks and optimal utilization of equipment computing resources. The main contributions of our work can be summarized in three aspects.
From the perspective of personalized customized production order task operation, an edge collaborative computing system architecture for personalized customized production is designed for the industrial environment, which helps implement the TCCD method.
The TCCD method is analyzed to dynamically divide the customized orders, and a task priority sorting algorithm is proposed to optimize the waiting time of all tasks. Moreover, a decision-making method based on a discrete particle swarm algorithm is proposed to optimize the average execution time of all the tasks and equipment utilization.
The proposed TCCD method and traditional methods are compared. To verify its feasibility and effectiveness, the method proposed in this article is implemented on a customized production prototype platform.
The remainder of this article is organized as follows: Section II presents the personalized customized production system architecture used to implement the TCCD method. Section III describes the TCCD method in personalized customization production, explains dynamically dividing personalized customization orders, and proposes a task priority sorting algorithm and a decision-making method based on a discrete particle swarm algorithm. Section IV experimentally verifies the effectiveness of the proposed TCCD method in personalized customized production and analyzes the experimental results. Section V concludes this article.
System Architecture
To realize the collaborative computing environment of production equipment, edge computing node, and private cloud in the customized production system, a KubeEdge-based edge collaborative computing system architecture is constructed as shown in Fig. 1. KubeEdge builds a homogeneous execution environment for cloud computing and edge computing and connects each edge node, cloud virtual machine, and network container as a VPN. The core of the KubeEdge architecture includes EdgeMetadata service and KubeBus. Edge collaborative computing based on KubeEdge can realize network communication and collaborative computing between production equipment, edge nodes, and the private cloud platform. The EdgeMetadata service is responsible for data storage and synchronization computing when the connection between the edge node and the private cloud platform is unstable. KubeBus provides a software interface for the data communication link between the edge node and the private cloud platform.
The KubeEdge-based edge collaborative computing architecture in a customized production environment.
The KubeEdge provides a multi-tenant edge infrastructure. On the private cloud data center side, it includes a multi-tenant management/data plane and has a cluster of multiple tenants. The multi-tenant management/data plane includes KubeBus in the cloud center and tenant management functions. A tenant cluster includes one or more edge nodes running in the edge area and a Kubernetes cluster running in the cloud. KubeEdge is deployed in the edge intelligent gateway and realizes the edge collaborative computing function through proxy services. In the private cloud, for each tenant’s Kubernetes cluster, a KubeBus virtual router runs on a VM node to route traffic between the edge node subnet and the VM subnet/container network subnet.
Besides, in a private cloud, the server is mainly responsible for controlling edge nodes; receiving information uploaded by edge nodes; assigning tasks; providing IoT applications, such as device management; intelligent production applications, such as virtual factories; and intelligent service applications based on big data analysis. Operators are provided with a visual interface, and the supervision and scheduling of on-site resources are realized through collaborative computing with edge nodes. In the edge decision-making layer, industrial field resources are connected to the edge intelligent gateway device through the field network. The algorithm model, event management, message routing, and other services deployed in the edge intelligent gateway device perform real-time processing and analysis of the accessed data, on-site reasoning decision-making, conversion, transmission, and so on. Furthermore, the physical device layer, which includes the autonomous guided vehicle (AGV), sensor, and robot, is not only the executing part of the system but also the information acquisition part, and it is mainly responsible for completing the sensing and control work.
Under the framework of an edge collaborative computing system based on KubeEdge technology, this article focuses on the research of the TCCD method for personalized customized production. For the proposed edge collaborative computing system, all the computing tasks are created on on-site devices, including production machines, wireless network nodes, and mobile devices. Tasks are random events and should usually be processed in real-time. For customized production tasks, there are three factors to consider: the amount of computation, the amount of transmission, and the amount of data returned that results from the computation. According to these three factors, the queued waiting time of tasks in a certain time window can be optimized. Then, in the edge collaborative computing system, intelligent tasks can choose different edge collaborative computing methods according to the decision algorithm.
Thing-Edge-Cloud Collaborative Computing Decision-Making Method
Based on the proposed edge collaborative computing architecture, this section analyzes the TCCD method from the perspective of order task division and different edge collaborative computing methods. Moreover, it focuses on optimizing the task queue waiting time, average task execution time, and equipment utilization.
A. Representative Order Task Division for Personalized Customized Production
In the customized production environment, the edge intelligent gateway dynamically divides the customer’s customized orders according to the number and types of products in the customer’s order received from the private cloud platform. The customized order can be expressed as [
When the order is submitted, it is divided into the following three categories according to the quantity of the products required by the customer. When
/3, it is set to Class A; when1 < =M < N /3, it is set to Class B; and whenN/3 < =M < 2N , it is set to Class C.2N/3 < M < =N When the order is submitted, it is divided into the following three categories according to the types of products required by the customer. When
/3, it is set to Category a; when0 < F < =G /3, it is set to Category b; and whenG/3 < F < = 2G , it is set to Category c.2G/3 < F < =G Based on the above two classification characteristics, (A, a), (A, b), and (B, a) are classified as Class I, which can be selected for thing-edge collaborative computing, edge-edge collaborative computing, and edge-cloud collaborative computing; (A, c), (B, b), and (C, a) are classified as Class II, which can be selected for edge-edge collaborative computing or edge-cloud collaborative computing; and (B, c), (C, b), and (C, c) are classified as Class III, which can be selected for edge-cloud collaborative computing.
The diagram of the representative order task division for customized production is shown in Fig. 2. The “thing” in thing-edge collaborative computing refers to end-of-things devices, which can also be described as IoT devices, mainly including sensor devices, cameras, and factory machinery equipment. The “edge” in edge-edge collaborative computing and edge-cloud collaborative computing refers to edge computing nodes, which mainly include Raspberry Pi, gateways, routers, and servers. “Cloud” refers to a private cloud platform, mainly a computer cluster with powerful computing, storage, and analysis capabilities.
B. Thing-Edge-Cloud Collaborative Computing Mode
The thing-edge collaboration is mainly located at the bottom of the production site, which can integrate the computing resources on the link between production equipment and edge computing nodes to make it fully utilized, capitalize on the advantages of different equipment, and better enhance the capability of edge nodes. The thing-edge collaboration computing mode is shown in Fig. 3. It is widely used in the IoT, especially in smart homes and smart manufacturing. Under the thing-edge collaborative computing mode, the thing is responsible for collecting data and sending it to the edge. Meanwhile, the calculation and control instructions of the edge are received for specific production operations. The edge is responsible for the centralized calculation of multi-channel data, issues instructions, and provides network, computing, and storage services. The thing can perform some simple calculations, and the edge, as the main body of the computing task and the core hub of the system, needs to undertake more computing tasks.
Collaborative computing between the edge-edge infrastructures is a current research hotspot, which can solve the contradiction between the resource requirements of intelligent algorithms and the limited resources and intelligent task requirements of edge devices and the single capability of edge devices. The edge-edge collaboration computing mode is shown in Fig. 4. Specifically, the computing power of a single edge computing node is limited, and, to improve the overall computing power of the system, time-sharing coordination between multiple edge computing nodes is required.
For example, when completing the training task of the deep neural network model, it is not feasible to train in a single edge computing node, which not only consumes a lot of time and computing power but is also easy to overfit the model due to the limitation of data volume to fail to obtain the optimal solution predicted by the model. Therefore, multiple edge compute nodes are required to train the model together. The second is to solve the “data island” problem “data island” in production and manufacturing. The data source of a certain edge computing node has a strong locality and needs to cooperate with other edge computing nodes to complete a larger range of tasks. For example, in the operation monitoring of the customized production line of the whole factory, generally, one edge computing node can only obtain the operating status information of one workshop, and the cooperation among multiple edge computing nodes can be combined into an overview diagram of the workshop operating status of the whole intelligent factory.
In edge-cloud collaborative computing, the edge is responsible for data computing and storage in the local area, and the cloud is responsible for big data analysis, mining, and algorithm training optimization. The edge-cloud collaboration computing mode is shown in Fig. 5. The collaboration of the edge-cloud can be divided into two parts. The first is functional collaboration. This kind of collaboration assumes different functions based on different geographic spaces and roles of different computing devices. For example, the edge is responsible for preprocessing, and the cloud is responsible for multi-channel data processing and service provision. The second is performance collaboration. This is due to the limitation of computing power, and computing devices of different levels undertake tasks with different computing power requirements, including longitudinal cutting and assignment of tasks.
C. Thing-Edge-Cloud Collaborative Computing Decision-Making Algorithm
In the thing-edge-cloud collaborative computing system,
Task execution time is not only a factor of great concern in the personalized customization production process but also an important indicator of personalized customization production efficiency. Task execution time can be divided into four parts in the process of selecting edge collaborative computing mode.
The selection of decision stage
mainly includes information collection and making decisions based on the collected information and the necessary waiting time.t_{d} In the data transmission stage
, after making a decision, data needs to be transmitted from the source (thing) node to the edge computing node or cloud node. The transmission time can be expressed as:t_{t} where\begin{equation*} t_{t} =U/B\tag{1}\end{equation*} View Source\begin{equation*} t_{t} =U/B\tag{1}\end{equation*}
is the upload data size of the task, andU (B orB^{c} ) is the network bandwidth.B^{e} The task execution stage
refers to the time to execute tasks on smart devices, edge nodes, or cloud nodes. The time cost is as follows:t_{e} where\begin{equation*} t{}_{e}=D/J\tag{2}\end{equation*} View Source\begin{equation*} t{}_{e}=D/J\tag{2}\end{equation*}
is the amount of task data that needs to be processed on smart devices, edge nodes, or cloud nodes; andD (J ,J^{s} orJ^{e} ) is the computing capacity of smart devices, edge nodes, or cloud nodes.J^{c} The result return stage
refers to the time required to return the result data from the edge node or cloud node to the smart device. Here, we assume that the bandwidth of the two-way communication is stable and consistent. The time can be expressed as:t_{r} where\begin{equation*} t_{r} =R/B\tag{3}\end{equation*} View Source\begin{equation*} t_{r} =R/B\tag{3}\end{equation*}
is the data size of the task result, andR (B orB^{c} ) is the network bandwidth.B^{e}
Then, the execution time of task decision for collaborative computing is:\begin{equation*} T_{t} =t_{d} +(U+R)/B+D/J\tag{4}\end{equation*}
In general, the purpose of selecting the task computing method is to reduce the task execution time, that is, the execution time meets the following conditions:\begin{equation*} T_{s} >t_{d} +(U+R)/B+D/J\tag{5}\end{equation*}
Furthermore, a task priority sorting algorithm is proposed to optimize the waiting time of tasks in the queue. The task priority sorting algorithm is shown in Algorithm 1. Tasks are being prioritized based on the previous results. First, according to the task characteristic model established above, the computing amount, transmission amount, and amount of data returned by the computing result of each task are obtained. Then, the priority of the computing amount, transmission amount, and the amount of data returned from the computing result is set to 0 or 1 because the amount of data returned from the computing result is usually relatively small, which is ignored. Finally, if the priority of the computing and transmission of the task are both 1, then the task is a high priority task; if the priority of the computing and transmission of the task are both 0, then the task is a low priority task; otherwise, the task is a medium priority task.
Equipment utilization is another important indicator that must be considered when making thing-edge-cloud collaborative computing decisions. In customized production, the improvement of equipment utilization can make full use of the computing resources of the equipment and improve the flexibility and intelligence of the production line. Equipment utilization refers to the ratio of the time taken to perform tasks on edge nodes to the time taken to complete tasks, which can be expressed as:\begin{equation*} Z_{t} ={D_{e}} \mathord {\left /{ {\vphantom {{D_{e}} {\left ({{J\ast T_{t}} }\right)}}} }\right. } {\left ({{J\ast T_{t}} }\right)}\tag{6}\end{equation*}
Based on the above model, the task execution time and equipment utilization are often related to the edge collaborative computing method of task selection, and thus this article defines a decision variable \begin{align*} I_{j} =\begin{cases} -1,&\textrm {if task}~j~\textrm {is TEC}~\textrm {computing} \\[-1pt] 0,&\textrm {if task}~j~\textrm {is EEC}~\textrm {computing} \\[-1pt] 1,&\textrm {if task}~j~\textrm {is ECC}~\textrm {computing} \\[-1pt] \end{cases}\tag{7}\end{align*}
Next, we discuss the TCCD algorithms for optimizing execution time and device utilization. Choosing the TCCD method for tasks with a large amount of computing in personalized customization production should simultaneously reduce task execution time and improve equipment utilization. The optimization objectives are as follows:\begin{equation*} \min \left [{ {\left ({{\alpha \ast \overline {T_{t}} +\beta \ast 1 \mathord {\left /{ {\vphantom {1 {\overline {Z_{t}} +\gamma \ast N^{t}\ast Q}}} }\right. } {\overline {Z_{t}} +\gamma \ast N^{t}\ast Q}} }\right)\ast I} }\right]\tag{8}\end{equation*}
Since there are three options for edge collaborative computing for each task, there are
Based on this, the standard particle swarm optimization (PSO) is only suitable for searching for optimal solutions in a continuous space, and it cannot be used directly for discrete spaces.
In the traditional PSO algorithm [31], all particles have their own positions and speeds. The meaning of particle position is a feasible solution in the solution space, while the particle speed represents the distance between the next position of a particle and the current position.
In the solution space of the \begin{align*} V_{ij}^{k+1} =wV_{ij}^{k} +c_{1} r_{1} (PBest_{ij}^{k} -X_{ij}^{k})+c_{2} r_{2} (GBest_{j}^{k} -X_{ij}^{k}) \\\tag{9}\end{align*}
\begin{equation*} X_{ij}^{k+1} =X_{ij}^{k} +V_{ij}^{k+1}\tag{10}\end{equation*}
In DPSO, each dimension \begin{equation*} S(V_{ij}^{k+1})\!=\!{\left [{ {\left ({{V_{ij}^{k+1}} }\right)^{2}-1} }\right]} \mathord {\left /{ {\vphantom {{\left [{ {\left ({{V_{ij}^{k+1}} }\right)^{2}-1} }\right]} {\left [{ {\left ({{V_{ij}^{k+1}} }\right)^{2}+V_{ij}^{k+1} +1} }\right]}}} }\right. } {\left [{ {\left ({{V_{ij}^{k+1} } }\right)^{2}+V_{ij}^{k+1} \!+\!1} }\right]}\tag{11}\end{equation*}
As shown, this function is a monotonically increasing function with a value range of (−1, 1). The function value of the particle’s velocity can be regarded as the probability that the particle’s position is −1, 0, or 1, which is consistent with the decision variables of the edge computing of personalized customized production. When the velocity value is large, the probability of particle position going to 1 is greater; when the velocity value is small, the probability of particle position going to −1 is greater; when the velocity value is small, the probability of particle position going to 0 is greater. Then, the \begin{align*} X_{ij}^{k+1} =\begin{cases} 1,&\textrm {if}~R_{ij} < S(V_{ij}^{k+1}) \\ -1,&\textrm {if}~R_{ij} >S(V_{ij}^{k+1}) \\ 0,&\textrm {otherwise} \\ \end{cases}\tag{12}\end{align*}
In this article, the position of the particle is the decision variable of the execution position of each task for the optimization of the execution time and equipment utilization of the TCCD method for personalized production. Using the function of Equation (12), the speed can be used as a parameter to choose whether the position of the particle is −1, 0, or 1. According to DPSO, the first step is initialization, that is, to randomly assign decision variables to the particle swarm and then calculate the corresponding execution time of each particle and the equipment utilization value at this time through Equations (4) and (6), and the historical optimal position of each particle and the historical optimal position of the population are obtained. The next step is a cyclic process in which the global optimal value of the problem is approached continuously. For each particle, the following operations are performed: update the particle velocity and position, calculate the equipment utilization rate and order task execution time corresponding to the new decision variable, and update the historical optimal position of each particle and the historical optimal position of the population according to the least principle of (8). When the set number of cycles is reached, a relatively optimal decision variable can be obtained to minimize the average execution time of all the order tasks and maximize equipment utilization. Therefore, the specific description of the TCCD method algorithm based on discrete PSO is shown in Algorithm 2. For this nonlinear constrained programming problem, the time complexity of DPSO is polynomial, while the time complexity of the exhaustive method is exponential. As shown, the edge cooperative decision algorithm based on discrete PSO has the advantages of low time complexity and reduced computational complexity.
Experiments and Analysis
In this section, we describe an actual customized production prototype platform as a case study to verify the effectiveness of the proposed TCCD method.
A. Prototyping Platform and Experimental Setup
This case study is based on an actual production environment of a multi-variety and small-batch candy packaging intelligent production prototype platform. The layout of the prototype platform production line is shown in Fig. 6, which consisted of three parts: the physical device layer, the edge computing layer, and the industrial private cloud server layer. The physical device layer included multiple types of devices, such as manipulators, AGVs, photoelectric sensors, and RFID. In the edge computing layer, Raspberry Pi and edge intelligent gateway had typical application features of edge computing nodes that provided data processing, computation, status monitoring, and control functions for field devices in the prototype platform. Moreover, all the device data was connected to the platform’s private cloud computing center via industrial networks. Through the private cloud computing center, instructions for allocating various real-time tasks and monitoring equipment status were generated, and personalized customized production was managed in real-time through edge computing. At the same time, wired Ethernet and wireless communication systems were used for information interaction between different layers of the prototype platform. All the edge computing nodes were connected to the private cloud center through KubeEdge. Real-time tasks and events were executed by the edge computing node unit and perform related computations. Besides, long-term data was sent to the private cloud center for storage in accordance with the instruction cycle for subsequent offline analysis.
Prototype platform used for the TCCD method in the customized production of candy packaging.
Then, based on the prototype platform, performance verification experiments were conducted. The prototype platform was a candy packaging production line. The basic process was as follows: First, customers selected their favorite candy on the app or web page to buy it online, and then the order information was sent to the manufacturing prototype platform. After that, intelligent agents with edge collaborative computing capabilities completed production tasks in a self-organizing manner. Finally, the completed customized orders were automatically transported to the warehouse by the logistics system of the customized production factory. In this experiment, a neural network model with a size of 65 KB-4 MB was executed on the edge computing node, and the number and type of candies in a customized candy packaging order were used as the input of the neural network model, which can be used to predict the completion time of the personalized order. The network bandwidth supported by each edge node and smart device is 100Mbps. The computing capacity of smart devices and edge nodes are 500 MHz, 1.4 GHz respectively. The CPU processing frequency of the cloud server is 8GHz, and the transmission rate is 5Mbps. To ensure the reliability of the experimental results, for each neural network model of different sizes, we carried out repeated experiments.
At the same time, the average execution time and the equipment utilization were used as evaluation indicators to evaluate the performance of the TCCD method for customized production. First, we compared the average execution time of task packages based on the KubeEdge framework’s TEC, EEC, and ECC computing modes. We compared the performance of the proposed TCCD method with the three traditional methods. Traditional comparison methods included a random decision-making method (RAND) (assuming that each collaborative computing method had the same probability of being selected, the task randomly selected the collaborative computing method), the minimum execution time decision method (METD) (dynamic calculation of the capabilities of each computing node, and edge collaborative computing with smaller execution time was selected), and a deviation update decision-making method based on Lyapunov theory (LDUD) [30]. In the decision-making process of edge collaborative computing, we set
B. Result and Analysis
The relationship between the KubeEdge based framework and the average execution time under the change of task package size is presented in Fig. 7, which can verify the advantages of the KubeEdge framework-based proposed in this article. As shown, the average execution time of the collaborative computing modes increased exponentially with the increase of the task package size. Furthermore, the EEC computing mode was faster than the TEC and ECC computing modes, especially for larger task packages (i.e., greater than 200 KB). The average execution time was less than 1 second for the task packet that was less than 200 KB, while the peer-to-peer communication between edge computing nodes still had a low delay. Moreover, due to the low computing capability of the physical device, when the task package was larger than 2 MB, it was sent step by step, and the average execution time increased rapidly. We observed that it was not feasible to exchange task packages larger than 32 MB in the TEC and EEC calculation methods. This is probably due to the hardware and memory limitations of the embedded development board. Therefore, to reduce the number of messages transmitted to the private cloud, this article used KubeEdge as an edge orchestration device cluster structure to achieve the effect of reducing costs and increasing the number of devices that can support the specific available bandwidth.
The effect of the number of tasks on the average execution time is presented in Fig. 8. As shown, with the increased number of tasks, the average execution time of each decision mechanism increased, and the proposed TCCD method showed obvious advantages. When the number of tasks was 10, the average execution time of the TCCD method was 30%, 20%, and 25% lower than that of the RAND, METD, and LDUD methods, respectively. This is because the RAND method randomly selected the edge collaborative computing method for tasks, which was a relatively blind method. Sometimes it took a long time to wait, and thus the effect was not good. The METD method was more scientific in choosing edge collaborative computing, but the process was complicated and time-consuming, and thus the result was not the best. The LDUD method focused more on the stability of the system, and its effect was even worse than METD method when the number of tasks was large. The proposed TCCD method considered a variety of factors and placed particular emphasis on the cost of various times, which resulted in relatively ideal results.
The equipment utilization of different methods with a certain number of tasks is presented in Fig. 9. The results showed that, for the four decision strategies, the TCCD method had the highest equipment utilization rate, followed by the LDUD and METD methods, while the RAND method was the worst. The RAND method had relatively large randomness and unstable performance, and thus the equipment utilization rate of the RAND method was the lowest. The METD method adopted the strategy of the least time principle, and better results can be obtained. However, this method did not consider the equipment utilization factor in the decision strategy, and thus its performance was not optimal. The LDUD method calculated the deviation value according to the optimal decision results of all tasks obtained in the previous time to select the collaborative calculation method of tasks, and its performance was better. However, this method has the disadvantage of high computational complexity and time complexity. The TCCD method proposed in this article comprehensively considered the two factors of time and equipment utilization, which has small time complexity and can reduce the computational complexity, and its performance was relatively best.
To analyze the influence of the parameters
C. Discussion
In the previous part, we presented the results of the average execution time of the task package based on the KubeEdge framework, the performance of the TCCD method, and the weight parameter analysis. Compared with TEC and ECC, EEC had a lower average execution time, which is due to the efficient message encapsulation ability of the KubeEdge framework, which can greatly reduce the communication pressure. When the four decision-making methods are compared, the TCCD method proposed in this article can usually produce the best results in some situations. However, within the permissible range, the system may have some decision errors, which may reduce the quality of service. In terms of decision costs, considering more factors may be more costly than considering fewer factors. Moreover, regarding the decision-making strategy, the RAND method is a simple method, but the cost is a high average task execution time and low equipment utilization.
Although the METD method has advantages in the average execution time, in the actual customized production process, not only the production efficiency was considered but also the quality and cost of the production were also guaranteed. Although the LDUD method has advantages in equipment utilization, it is inferior in average execution time. Besides, in the experiment, we only selected a lighter weight model as the experimental load, and the number was small, which may only meet the needs of small-scale customized production. Determining the combined values of the parameters
Conclusion
In the production of personalized customization, edge computing, as the middle layer of the IoT architecture, provides real-time computing, storage, and communication mechanism at the field level. Edge devices with limited memory resources cannot compute tasks that require high computing capability, especially when multiple tasks are running on the edge device at the same time. In this article, the TCCD method for customized production was studied. First, a personalized customized production system architecture for implementing the TCCD method was proposed. Then, a task priority sorting algorithm was proposed to optimize the waiting time of all tasks in the order. A TCCD method based on discrete particle swarm algorithm was proposed to optimize the average execution time of all the order tasks and equipment utilization. Finally, the feasibility of the proposed TCCD method was verified by using a candy packaging personalized customization prototype platform. The experimental results showed that the proposed TCCD method was significantly better than the RAND, METD, and LDUD methods in terms of average task execution time and equipment utilization. In general, the proposed TCCD method for personalized customized production can provide a strong impetus for the unified management, scheduling, operation, and maintenance of infrastructure resources on the production edge.