{'fraction_non_alphanumeric': 0.020486555697823303, 'fraction_numerical': 0.0012804097311139564, 'mean_word_length': 5.539748953974895, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Fragmented Task Scheduling for Load-Balanced Fog Computing Based on Q-Learning

5G and beyond (B5G) applications generate tremendous computing-intensive, latency-sensitive, and privacy-sensitive tasks, which differ from the legacy cloud computing tasks, requiring more sophisticated scheduling strategies. We must satisfy the stringent service requirements, particularly privacy preservation that has not been sufficiently considered in the past. Meanwhile, we need to balance the tasks offloaded to different edge nodes to avoid overwhelming some fog nodes, which may degrade the overall performance. To appropriately schedule the privacy-sensitive tasks while balancing the traffic load, we define IoT tasks according to their security need, processing time, and real-time requirement and segment IoT tasks into smaller pieces based on their privacy levels. The sliced tasks are scheduled to multiple fog nodes with satisfactory security reputations to avoid a compromised fog node handling a whole task. Meanwhile, we consider the constraint of the response time of all available fog nodes before scheduling IoT tasks to avoid chaos task scheduling that may overwhelm some fog nodes. Regarding this, we propose a reinforcement learning (RL) model in which the agent tends to satisfy the required latency and security requirements while avoiding overloading some fog nodes to minimize the average delay. The numerical results demonstrate that the proposed approach performs well in a better-balanced load and less performance violation in latency and security.