343  Fog/Edge Computing: Requirements and When to Use

343.1 Learning Objectives

By the end of this section, you will be able to:

  • Identify Requirements: Determine IoT system requirements that benefit from fog computing
  • Make Deployment Decisions: Evaluate when to use edge, fog, or cloud processing
  • Analyze Tradeoffs: Compare containers vs VMs, edge vs fog placement, and replication strategies
  • Apply Decision Frameworks: Use structured approaches to fog architecture selection

⏱️ ~12 min | ⭐⭐ Intermediate | 📋 P05.C07.U03

The motivations for fog computing stem from fundamental limitations of purely cloud-based IoT architectures and the unique requirements of modern distributed applications.

Three-panel slide showing data growth trends from 2013-2018 reaching 110 exabytes per month, followed by 'Why not Cloud?' listing problems (expensive, far away causing latency, requires connection), and 'The New Edge' showing benefits (storage, computational power, cheap, always at hand)

Data growth chart showing mobile traffic increasing from 2013-2018 with 22% CAGR, followed by analysis of why cloud computing alone is insufficient for IoT: expensive to build/maintain/run, far away from the edge causing latency issues, and requires constant connection. The slide then presents “The New Edge” as the solution: lots of storage, increasing computational power, cheap, and always at hand.

Source: Princeton University, Coursera Fog Networks for IoT (Prof. Mung Chiang)

343.1.1 Latency Reduction

The Latency Problem: Round-trip communication to distant cloud data centers introduces latency (50-200+ ms), unacceptable for time-critical applications.

Examples: - Autonomous Vehicles: Collision avoidance requires <10ms response times - Industrial Control: Manufacturing automation demands real-time feedback - Augmented Reality: Immersive experiences need <20ms latency - Healthcare Monitoring: Critical alerts must trigger immediately

Fog Solution: Processing at edge nodes reduces latency to single-digit milliseconds by eliminating long-distance network traversal.

Fog and Edge computing response time comparison with cloud
Figure 343.1: Total IoT response time breakdown showing device sensing, network transmission, cloud processing, and response delivery. Fog computing reduces latency by processing data at the edge, eliminating long-distance cloud round trips for time-critical applications

343.1.2 Bandwidth Conservation

The Bandwidth Challenge: Billions of IoT devices generating continuous data streams create enormous bandwidth requirements.

Statistics: - A single connected vehicle generates 4TB of data per day - A smart factory with thousands of sensors produces petabytes monthly - Video surveillance cameras generate terabytes per camera per week

Fog Solution: Local processing, filtering, and aggregation reduce data transmitted to cloud by 90-99%, sending only meaningful insights or anomalies.

343.1.3 Network Reliability

Cloud Dependency Risk: Purely cloud-based systems fail when internet connectivity is lost or degraded.

Fog Solution: Local fog nodes continue operating independently during network outages, maintaining critical functions and storing data for later synchronization.

343.1.4 Privacy and Security

Data Sensitivity Concerns: Transmitting raw sensitive data (video, health information, industrial processes) to cloud raises privacy and security risks.

Fog Solution: Processing sensitive data locally enables anonymization, aggregation, or filtering before cloud transmission, minimizing exposure.

343.1.5 Cost Optimization

Cloud Cost Factors: - Data transmission costs (especially cellular) - Cloud storage and processing fees - Bandwidth charges

Fog Solution: Reducing data transmitted to cloud and leveraging local resources lowers operational costs significantly.

343.1.6 Compliance and Data Sovereignty

Regulatory Requirements: Laws like GDPR, HIPAA, and data localization requirements constrain where data can be stored and processed.

Fog Solution: Processing data locally within jurisdictional boundaries enables compliance while still leveraging cloud for permissible operations.

343.2 Requirements of IoT Supporting Fog Computing

Effective fog computing implementations must address specific IoT requirements that traditional architectures struggle to satisfy.

343.2.1 Real-Time Processing

Requirement: Immediate response to events without cloud round-trip delays.

Applications: - Industrial automation and control - Autonomous vehicles and drones - Smart grid management - Healthcare monitoring and emergency response

Fog Capability: Local computation enables sub-10ms response times.

Time sensitivity requirements for different IoT application types
Figure 343.2: Data time sensitivity classification showing critical real-time applications requiring millisecond responses, interactive applications needing sub-second latency, and analytical applications tolerating minutes to hours of processing delay

343.2.2 Massive Scale

Requirement: Supporting billions of devices generating exabytes of data.

Challenges: - Cloud bandwidth limitations - Processing bottlenecks - Storage costs

Fog Capability: Distributed processing across fog nodes scales horizontally, with each node handling local device populations.

343.2.3 Mobility Support

Requirement: Seamless service for mobile devices and vehicles.

Challenges: - Maintaining connectivity during movement - Handoff between access points - Location-aware services

Fog Capability: Distributed fog nodes provide consistent local services as devices move, with nearby nodes handling processing.

343.2.4 Heterogeneity

Requirement: Supporting diverse devices, protocols, and data formats.

Challenges: - Multiple communication protocols - Various data formats and semantics - Different capabilities and constraints

Fog Capability: Fog nodes act as protocol gateways and data translators, providing unified interfaces to cloud.

343.2.5 Energy Efficiency

Requirement: Minimizing energy consumption of battery-powered IoT devices.

Challenges: - Radio communication energy costs - Limited battery capacity - Recharging/replacement difficulties

Fog Capability: Short-range communication to nearby fog nodes consumes far less energy than long-range cloud transmission.

343.3 When Should We Use Edge/Fog Computing

Not all IoT applications benefit equally from fog computing. Understanding appropriate use cases ensures effective architectural decisions.

343.3.1 Ideal Fog Computing Scenarios

Latency-Sensitive Applications: - Autonomous vehicles requiring instant collision avoidance - Industrial robots with real-time coordination - Augmented/virtual reality experiences - Tactile internet and remote surgery - High-frequency trading and financial systems

Bandwidth-Constrained Environments: - Remote locations with limited connectivity - Cellular IoT with data plan limitations - Video surveillance with hundreds of cameras - Industrial sites generating massive sensor data

Privacy-Critical Systems: - Healthcare patient monitoring - Security and surveillance systems - Personal home automation - Enterprise confidential data processing

Intermittent Connectivity: - Mobile applications with unreliable networks

Smart home fog computing example with local processing and cloud synchronization
Figure 343.3: Smart home fog computing architecture showing local fog gateway processing data from sensors (temperature, motion, door locks) and controlling actuators (lights, thermostat, security) with low-latency local decisions while synchronizing with cloud for analytics and remote access
  • Maritime and aviation systems
  • Remote industrial facilities
  • Disaster response and emergency services

Geographically Distributed Deployments: - Smart city infrastructure across metropolitan areas - Agricultural monitoring over large farms - Pipeline and utility monitoring - Retail chains with distributed locations

343.3.2 When Cloud-Only May Suffice

Non-Time-Critical Applications: - Historical data analytics - Long-term trend analysis - Batch processing tasks - Monthly reporting and summaries

Small-Scale Deployments: - Home automation with few devices - Personal fitness tracking - Small business monitoring

High-Complexity Analytics: - Advanced machine learning model training - Big data correlation across global datasets - Complex simulations requiring massive compute

Question 5: A healthcare IoT system monitors 100 patients with wearable sensors sending heart rate, blood pressure, and temperature every 10 seconds. Each reading is 50 bytes. The system must alert doctors within 5 seconds if vital signs are critical. Should this use cloud-only or fog computing architecture?

💡 Explanation: Data volume: 100 patients × 50 bytes × 6 readings/min = 30 KB/min = 500 bytes/sec—trivial bandwidth. However, this isn’t about bandwidth! Hospital Wi-Fi outages, cellular dead zones, and network congestion are common. Cloud-only architecture fails during outages, potentially missing critical alerts. Fog computing solution: Local fog node (hospital gateway) continuously monitors vitals and generates alerts within milliseconds, even if cloud connection fails. Alerts trigger local nurse station displays and mobile devices via local network. Cloud receives data for long-term analysis when available but isn’t in the critical alert path. This demonstrates fog computing’s reliability benefit—not just latency/bandwidth, but ensuring critical functions during network failures. Healthcare, industrial safety, and autonomous vehicles all require this local autonomy.

343.4 What’s Next

Now that you understand fog computing requirements: