Abstract
The body health plays an important metric in people’s everyday life, and it directly determines whether people have the ability to preferably contribute to the society. In fact, the physical training is a universal sport to enhance the body health. Therefore, the evaluation and analysis of physical training become particularly significant. With the rapid development and emerging of new techniques and networking paradigms, the traditional offline physical training evaluation and analysis cannot be performed well. Instead, this paper uses Mobile Edge Computing (MEC) and Software-Defined Networking (SDN) to implement the evaluation and analysis of physical training, shortened for MSPT, where MEC is the new computing technique and SDN is the new networking paradigm. The proposed MSPT includes two parts. At first, the physical training data from different mobile devices are migrated into the edge server for computing according to the current condition, in which the game theory is used to complete the task scheduling. Then, SDN is responsible for the global scheduling in the centralized control manner, in which the multigranularity scheduling strategy is used to handle the traffic between the SDN controller and edge computing server. The experiments are driven by OMNet, including three aspects of evaluation, i.e., task offloading of MEC, traffic scheduling of SDN, and performance analysis of physical training, and the results show that the proposed MSPT has better performance than the corresponding baselines.
1. Introduction
The physical training has a huge following around the world and has been referred to as the national pastime since it can improve the body health greatly. According to a reliable survey, the number of persons which participate in the physical training program can reach 83.6% of the world’s population [1], which further highlights that the physical training is an absolutely universal sport and plays an important role in people’s everyday life. In spite of this, the improper physical training perhaps causes the accidental injury because the nonprofessional operations are usually adopted, especially for adolescents and elder population [2]. According to a rough report from the American Center for the Study of the Elderly, the proportion of which the old people are not obtained the proper guidance of physical training exceeds 28.9% [3]. Therefore, the correct and efficient conduction of physical training is very necessary. In other words, the evaluation and analysis of physical training become particularly significant.
However, it is far from enough to make the effective evaluation and analysis of physical training if only the traditional offline physical training way is used. Instead, it needs some new techniques or/and networking paradigms as the auxiliary tools to help complete the effective evaluation and analysis of physical training. As everyone knows, Mobile Edge Computing (MEC) [4, 5] is a new technique, and its purpose is to effectively solve problems such as latency and network load. In addition, MEC can put some complex tasks at the edge computing servers for computing, in order to save response time and thus guarantee the real-time evaluation and analysis. Analogically, in this paper, there is a lot of traffic related to evaluation and analysis of physical training, and this traffic can be regarded as those complex tasks. In particular, the current physical training usually uses the mobile devices to collect the training data. Thus, MEC can offload the collected data from these mobile devices into the edge computing servers for data computing.
In spite of this, the task offloading process of MEC can be covered, which has an important influence on the global evaluation and analysis of physical training. For this purpose, it needs to seek a networking paradigm to cover the whole network view. According to such demand, Software-Defined Networking (SDN) [6–8] is a very satisfactory candidate, which is a new future Internet networking paradigm with some special abilities. For example, SDN can grasp the global network view. According to such ability, the task offloading process of MEC can be taken in a glance. Besides, under SDN environment, all operations are performed in the centralized control manner; in other words, the evaluation and analysis of physical training are integrated.
Furthermore, as the introduction of SDN, it involves a necessary communication between the SDN controller and edge computing server, including traffic scheduling and message transmission (e.g., control signal). In order to improve the bandwidth utilization and save communication delay, the traditional object-level traffic scheduling [9, 10] between the SDN controller and edge computing server is discarded. Instead, this paper uses the multigranularity scheduling strategy to address different scenarios.
With the above consideration, this paper makes the evaluation and analysis of physical training by using MEC and SDN, called MSPT. The corresponding contributions are threefold. (1) In MEC, the game theory-based task offloading is performed. (2) In SDN, the multigranularity scheduling strategy between the SDN controller and edge computing server is devised. (3) The simulation experiments are implemented, including some main metrics’ evaluation and analysis.
The rest paper is organized as follows. Section 2 reviews the related work, including task offloading in MEC and traffic scheduling in SDN. Section 3 presents the game theory-based task offloading. Section 4 devises the multigranularity scheduling strategy. Section 5 reports some major results. Section 6 concludes this paper.
2. Related Work
2.1. Task Offloading in MEC
There have lots of proposals on task offloading in MEC. In [11], there were three offloading options, i.e., nearest edge server, adjacent edge server, and remote cloud. It proposed a Reinforcement Learning (RL)-based algorithm to make the optimal offloading decision for minimizing system cost, including energy consumption and computing time delay. In [12], a distributed many-to-many matching model was constructed to capture the interaction between mobile tasks and edge nodes, with the consideration of their diverse resource requirements and availabilities. It designed both distributed and centralized stable matching-based algorithms to jointly offload the tasks to edge nodes and determine their payments. In [13], a multiuser offloading scenario with intensive deployment of edge servers was considered. It divided the offloading process into two stages, i.e., data transmission and computation execution, in which the existence of Nash equilibrium was proven by using the noncooperative game method. In [14], the offloading decision problem was formulated as a 0-1 nonlinear integer programming problem under the constraints of channel interference threshold and the time deadline. Through the classification and priority determination for the mobile devices, a reverse auction-based offloading method was proposed to solve this optimization problem for energy efficiency improvement. In [15], the offloading problem was formulated as the joint optimization of computation task assignment and CPU frequency scaling, in order to minimize a tradeoff between task execution time and mobile energy consumption. It proposed a light-weight algorithm by using the Markov approximation technique to converge to a bounded near-optimal solution. In [16], a new task offloading scheme by considering the challenges of future edge, fog, and cloud computing paradigms was devised. To provide an effective solution toward an appropriate task offloading problem, it focused on two cooperative bargaining game solutions. The first method was used for time-sensitive offloading services, and the second method was applied to ensure computation-oriented offloading services. In [17], the computation offloading framework was proposed by considering the quality of service, server resources, and channel interference, where the offloading decision was made based on the beneficial degree of computation offloading measured by the total cost of the local mobile devices. In [18], an intelligent computation offloading in combination with artificial intelligence technology was proposed. It devised a task migration algorithm based on task prediction according to the data size of computation task from mobile users and the performance features of edge computing nodes. In [19], the deep RL was proposed to solve the offloading problem of multiple service nodes for the cluster and multiple dependencies for mobile tasks in large-scale heterogeneous MEC. The proposed strategy had good performance in terms of energy consumption, load balancing, latency, and average execution time by using iFogSim and Google cluster trace. In [20], an optimal auction method for delay and energy constrained task offloading was proposed by a pair of deep neural networks. It maximized the profit of the edge servers while satisfied the task processing delay and energy consumption constraints of the mobile devices. In [21], a distributed task unloading strategy to the low load base station group under MEC environment was proposed, including two parts. At first, the communication resource, computing resource, and task queue of the low load base station group were modeled to quantify the energy cost in the process of task unloading. Then, the potential game model was used to solve the problem of distributed task unloading. In [22], the collaborative task offloading and data caching models were proposed to reduce the overall latency of all mobile devices. It used the Lyapunov online algorithm to perform the joint task offloading and dynamic data caching strategies for computation tasks or data contents. In [23], the data quality-aware offloading sequential decision making problem by adopting the principles of Optimal Stopping Theory (OST) was proposed to minimize the expected processing time. Besides, a variety of OST stochastic models and their applications to the offloading decision making problem were investigated.
2.2. Traffic Scheduling in SDN
There have also some proposals on traffic scheduling in SDN. For example, in [24], a nonsupervised deep learning-based routing strategy running in the SDN controller was proposed to address the impact on explosive growth in network traffic. In [25], a softwarized 5G architecture was first introduced for end-to-end reliability of mission-critical traffic. Then, a mathematical framework was constructed to model the process of critical session transfers. Finally, a hardware implementation was conducted to study the practical effects of supporting mission-critical data at the core network level. In [26], an energy flow scheduling and routing mechanism in SDN was proposed to optimize the energy consumption both in link and switches, which could minimize traffic energy in time dimension and improve utilization of switches. In [27], a traffic engineering scheme based on reinforcement learning was proposed, which constructed and solved a simple linear programming problem to reroute the flows selected by reinforcement learning to balance utilization of link in the network. In [28], a multimedia traffic control mechanism based on deep reinforcement learning was proposed to achieve the multimedia traffic control and avoid the additional mathematical computation. In [29], an energy-saving traffic scheduling algorithm was proposed to minimize the energy in hybrid software-defined wireless rechargeable sensor networks, which adequately used the features in SDN, such as direct control on SDN nodes and indirect control on normal nodes. In [30], a novel SDN-based architecture was devised to manage large-scale networks, which could guarantee quality of service and manage routing. The experiments showed that the proposed method could efficiently manage the hybrid architectures and reach good quality of service. In [31], the authors first formulated minimization time problem as an optimization problem and then proposed two polynomial-time algorithms to solve the optimization problem, which could test feasibility and obtain a solution, respectively. In [32], to minimize traffic load in software-defined wireless sensor networks, the authors first formulated the traffic load minimization problem as an optimization problem related to the optimization of relay sensor node and splitting flow transmission and then designed a Levenberg–Marquardt algorithm to solve the problem. In [33], a path determination and traffic scheduling strategy for SDN was proposed to ensure the bandwidth of quality of service to support businesses in network, which was able to obtain the optimal path with the port queues on switches.
Different from the abovementioned research studies, this paper uses the game theory to address the task offloading in MEC. In addition, this paper also designs the multigranularity scheduling strategy in SDN.
3. Task Offloading between Mobile Device and Edge Computing Server
3.1. Mathematical Modeling
The task offloading in MEC needs to offload some complex tasks from the mobile devices into the edge computing server for computing through the wireless base station. Different from the traditional task offloading model, this paper uses SDN to manage all traffic. As depicted in Figure 1, the network model of MSPT consists of four roles, i.e., mobile device, wireless base station, edge computing server, and SDN controller. Among them, the path between mobile device and wireless base station supports the 5G communication, and that between wireless base station and edge computing server supports the optical fiber communication. Therefore, the proposed network model can achieve the quickly interactive response and guarantee the low delay.

The process of task offloading inevitably involves the physical training data transmission. Suppose that there are wireless channels between mobile device and wireless base station and there are mobile devices, and for the arbitrary mobile device , it has a given offloading strategy, denoted by . If , it means that these tasks will be computed at the local mobile device; otherwise, these tasks in the corresponding mobile device will be migrated into the edge computing server for computing. Let denote the global offloading strategy with respect to all mobile devices, denoted by , and the upstream link’s transmission rate regarding the physical training data is defined as follows:
Among them, is the transmission ability, is the transmission gain, and is the white noise.
In addition to the network model and communication model, the computing model also plays an important role. For each mobile device, it has the single computing task, denoted by , where is the data size of and is the required number of CPU cycles to complete . For all computing scenarios in MEC, two cases are considered, i.e., local computing and offloading computing.
At first, let and denote the consumed time and consumed energy, respectively, and they are defined as follows:where is the CPU clock frequency of and is the power dissipation of each CPU clock frequency. Let denote the total cost under the local computing case, and it is defined as follows:where and are the weights regarding time consumption and energy consumption, respectively.
Then, let denote the upstream link’s transmission time, denote the upstream link’s energy consumption, denote the required computing time, and denote the required computing energy, respectively, and they are defined as follows:
Among them, is the CPU clock frequency of edge computing server and is the power dissipation of each CPU clock frequency. Here, this paper neglects two kinds of time/energy consumption, i.e., the path from edge computing server to mobile device, used to return the computing results, and the path from wireless base station to edge computing server. The first neglecting is because such path supports the optical fiber communication which has the ultra-low delay. The second neglecting is because the returned data size with respect to the physical training is very small, which takes nearly no delay. Let denote the total cost under the offloading computing case, and it is defined as follows:
3.2. Game Theory-Based Optimization
For , if most mobile devices select the offloading computing, these transmissions with respect to the physical training data perhaps cause the serious interference among them and thus generate some negative effects, such as increasing the system overhead including time consumption and energy consumption. Especially, when the total cost is larger than that under the local computing case, the offloading computing makes no sense. Therefore, in order to improve the overall revenue, the offloading computing has to be effective. Furthermore, for , if the total cost under the offloading computing case is smaller than that under the local computing case, the corresponding edge computing server is effective. Mathematically,
For mobile devices, the optimization of edge computing belongs to NP-hard problem [34, 35]. Thus, this paper plans to use the game theory [36] to optimize the task offloading regarding mobile devices. Let denote the decision strategy set regarding all mobile devices excluding , and it is defined as follows:
Let denote the current total cost, and the purpose of game theory is to minimize . Mathematically,
Given , the task offloading optimization based on game theory is expressed as . Furthermore, let denote the global offloading strategy set when the Nash equilibrium is satisfied [13], and the corresponding mathematical express is shown as follows:
According to the above statements, the game theory-based task offloading strategy in MEC is shown as the following five steps: Step 1: mobile devices are initialized by considering that all tasks are completed at the corresponding mobile device. Step 2: all wireless channels’ transmission ability and transmission gain are computed. Step 3: these wireless channels are arranged according to transmission ability and transmission gain in the descending order, and the wireless channel with the high power is assigned the high priority to make the offloading decision in advance. Step 4: all offloading decision strategies and their corresponding total costs are computed. If equation (6) is satisfied, the current offloading decision strategy is unchanged. Otherwise, the current offloading decision strategy should be changed. Step 5: the edge computing server sends the change request to the corresponding mobile device. If the corresponding mobile device receives the request, the offloading decision strategy is changed until all mobile devices are notified. Otherwise, the current offloading decision strategy is regarded as the optimal solution.
As the proposed network model supports 5G communication and optical fiber communication, the task offloading process usually has no the phenomenon of packet loss.
4. Traffic Scheduling between Edge Computing Server and SDN Controller
Section 3 addresses the task offloading between mobile device and edge computing server. As the task offloading process of MEC has an important influence on the global evaluation and analysis of physical training, it needs SDN to cover the whole network view. In other words, by using SDN, the task offloading process of MEC can be taken in a glance. Therefore, this section pays attention to the traffic scheduling between the edge computing server and SDN controller. Furthermore, in order to improve the bandwidth utilization and save communication delay, this paper devises the multigranularity traffic scheduling strategy.
This paper considers two granularity change conditions, i.e., traffic aggregation and traffic splitting, which depends on the remaining bandwidth and the current network state. To be specific, if the current network state is smooth and there is enough network bandwidth, the traffic aggregation is approved. Otherwise, the traffic splitting is approved.
At first, for the coarse-grained traffic scheduling, the SDN controller periodically checks whether the network bandwidth satisfies to transmit the physical training data. When the traffic splitting condition is satisfied, the optimization purpose is to maximize the bandwidth utilization while minimize the number of core links. Mathematically,where is the number of core links between the SDN controller and edge computing server.
The corresponding constraints are shown as follows:
Among them, is the used bandwidth link ; is the aggregation traffic via link ; is the bandwidth load of link ; is the result of aggregation; is the total bandwidth of link ; denotes the possibility of aggregation; denotes whether the link is included; and is a given parameter to determine whether the congestion of link exits.
Then, for the fine-grained traffic scheduling, the SDN controller periodically checks the network bandwidth to schedule the physical training traffic from these congestion links to those light links as many as possible. Under this condition, the optimization purpose is defined as follows:
It is obvious that the above two optimization objects belong to the 0–1 Integer Linear Programming (ILP) [37], and they can be solved easily. Thus, this paper gives the corresponding solution discussion no longer.
5. Result Report
The involved simulation parameters are set as follows: , , = 26.5 GB, = 1200M Cycle, = 100 MW, and the network bandwidth of 5G communication is 1 Gbps. The hardware environment is shown as follows: CPU, Intel (R) Core (TM) i5-7400 CPU 4.68 GHz; RAM, 64 GB; Hard Disk, 1024 GB; OS, Windows 10 (64 bit). This section evaluates three aspects, including task offloading of MEC, traffic scheduling of SDN, and performance analysis of physical training. For the first part, the average time consumption and the average energy consumption are used as two evaluation metrics, where reference [19] is used as the baseline, called BMEC. For the second part, the average scheduling time and the average bandwidth utilization are used as two evaluation metrics, where reference [27] is used as the baseline, called BSDN. For the last part, the average response time and the average correct guidance rate are used as two evaluation metrics, where reference [38] is used as the baseline, called BPT.
5.1. Task Offloading Evaluation
For different mobile devices, the corresponding average time consumption with respect to MSPT and BMEC is shown in Figure 2. It is obvious that the average time consumption of MSPT is smaller than that of BMEC. In addition, with the increasing of mobile devices, the average time consumption becomes larger and larger, because more physical training data need to be handled. In particular, the average time consumption of MSPT shows the linear growth while that of BMEC shows the exponential growth, because BMEC uses the RL to solve the task offloading problem, which involves some iterations and generates more and more time consumption with the increasing of mobile devices.

For different mobile devices, the corresponding average energy consumption with respect to MSPT and BMEC is shown in Figure 3. At first, the average energy consumption of MSPT is smaller than that of BMEC, because MSPT uses the game theory to present a relatively optimal task offloading strategy and the corresponding energy consumption is limited. On the contrary, BMEC introduces the RL to repeatedly use the physical training data, which consumes too many energy inevitably. Then, similar to Figure 2, with the increasing of mobile devices, the corresponding average energy consumption increases. Besides, the increasing speed of MSPT is larger than that of BMEC.

5.2. Traffic Scheduling Evaluation
For MSPT and BSDN, the experimental results on the average scheduling time with respect to different mobile devices are shown in Figure 4. It is observed that MSPT has the significant advantage in terms of the average scheduling time, because it uses the multigranularity scheduling strategy to handle the physical training data. In addition, the devised multigranularity scheduling strategy in MSPT belongs to a heuristic algorithm, while the traffic scheduling strategy in BSDN is the RL, which belongs to the intelligent algorithm. As a result, it needs too much time to handle the physical training data in terms of BSDN. Furthermore, with the increasing of mobile devices, the average scheduling time rises steadily, because the SDN controller needs to handle more physical training data.

For MSPT and BSDN, the experimental results on the average bandwidth utilization with respect to different mobile devices are shown in Figure 5. It can be found that MSPT has higher average bandwidth utilization than BSDN, because MSPT makes full use of the remaining network bandwidth according to the multigranularity scheduling, including two operations, i.e., traffic aggregation and traffic splitting. If the current network bandwidth is sufficient, the traffic aggregation operation is adopted; otherwise, the traffic splitting operation is adopted. Unlike MSPT, BSDN only schedules the physical training data in the same granularity, which causes the congestion in terms of some links. Thus, the network bandwidth in BSDN cannot be leveraged timely.

5.3. Physical Training Evaluation
In this section, 1000 mobile devices and two edge computing servers are considered. For different simulation experiments, the corresponding average response time with respect to MSPT and BPT is shown in Table 1. It can see that the whole average response time of MSPT is smaller than that of BPT. It indicates that the game theory-based task offloading strategy and the multigranularity based traffic scheduling strategy have good optimization effect on the physical training. In particular, it only needs about 42 ms to obtain all physical training results in terms of these 1000 users, which is very satisfactory.
Furthermore, for different simulation experiments, the corresponding average correct guidance rate with respect to MSPT and BPT is shown in Table 2. It is obvious that the proposed MSPT has the absolutely higher average correct guidance rate than BPT. Especially, the correct guidance rate of MSPT always reaches 100%, with a strong stability. As a result, SDN- and MEC-based physical training evaluation and analysis are very valuable.
6. Conclusions
The correct and efficient conduction of physical training plays an important role. In this paper, SDN and MEC are used to do the evaluation and analysis of physical training. At first, the task offloading in MEC is addressed, including the mathematical modeling (i.e., network model, communication model, and computing model) and the game theory-based offloading optimization strategy. Then, the traffic scheduling in SDN is addressed, where the multigranularity scheduling strategy is used to handle the traffic between the SDN controller and edge computing server, including traffic aggregation and traffic splitting.
For the proposed MSPT, three parts of experiments are performed: (1) the task offloading evaluation with time consumption and energy consumption consideration; (2) the traffic scheduling evaluation with scheduling time and bandwidth utilization consideration; (3) the physical training evaluation with response time and correct guidance rate consideration. In particular, the correct guidance rate of MSPT regarding the physical training can always reach 100%.
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
This work was supported by Philosophy and Social Science Research Planning Project in Heilongjiang Province (19TYC157), Research Project of Basic Scientific Research Operating Expenses of Provincial Institutions of Higher Learning in Heilongjiang Province (135409235), Heilongjiang Higher Education Teaching Reform Project (SYGY20200801), and University Nuring Program for Young Scholars with Creative Talents in Heilongjiang Porovince (UNPYSCT-2020077).