💧
Avg Soil Moisture -- %
🌡️
Temperature -- °C
⚡
Fog Latency -- ms
🚿
Water Saved -- L
☁️
Cloud Latency -- ms

🗺️ Smart Field Map

4 Zones Active
Irrigating Normal Low Moisture Critical

📡 Sensor Readings

Live

🖥️ Fog Nodes

3 Online

📊 Moisture Timeline

Zone A Zone B Zone C Zone D

🔧 Actuator Control

Middleware Controlled

🔔 Fog Alerts

0 Active

No alerts. System nominal.

Fog Computing Architecture – Smart Irrigation

Three-tier hierarchical architecture enabling real-time, low-latency decision-making at the edge.

☁️ Cloud Layer
🖥️
Cloud Server
CPU: --
🗄️
Time-Series DB
Records: --
🤖
ML Engine
Acc: 94.2%
Avg Latency: 250ms
4G/5G · Secure TLS
🌫️ Fog Layer (Edge)
📦
Fog Node A
Load: --
📦
Fog Node B
Load: --
📦
Fog Node C
Load: --
Avg Latency: 12ms
🔌 Middleware: Data Filtering · Protocol Bridge · Event Bus
LoRaWAN · Zigbee · WiFi
🌱 IoT / Sensor Layer
💧
Moisture S1
--
🌡️
Temp S2
--
🌧️
Rain Gauge
--
⚗️
pH Sensor
--
🚿
Water Pump
--
🔧
Valve Array
--
Sampling Rate: 500ms

⚡ Why Fog?

  • Reduces cloud round-trip from 250ms → 12ms
  • Local decision making without internet dependency
  • 96% bandwidth reduction to cloud
  • Offline-resilient irrigation control

🔌 Middleware Stack

  • Protocol Adapter – MQTT ↔ HTTP ↔ CoAP
  • Data Filter – Noise reduction & aggregation
  • Event Bus – Publish/subscribe messaging
  • Security Layer – TLS + token auth

🍕 Network Slices

  • Slice 1 – Critical Control (<5ms)
  • Slice 2 – Sensor Data (QoS high reliability)
  • Slice 3 – Analytics (best-effort)

Network Slicing Demonstration

One physical infrastructure · Three virtual network slices with isolated QoS guarantees.

SLICE 1 Critical Control ● Active
Latency<5ms
PriorityHighest
Bandwidth--
Reliability99.99%
--
Services: Emergency shutoff · Pump ON/OFF · Valve control
SLICE 2 Sensor Data ● Active
Latency<100ms
PriorityMedium
Bandwidth--
Reliability99.9%
--
Services: Soil moisture · Temperature · Weather · pH data
SLICE 3 Analytics & ML ● Active
LatencyBest effort
PriorityLow
Bandwidth--
Reliability99%
--
Services: Cloud sync · ML model updates · Historical analysis

🔌 Shared Physical Infrastructure

Total Bandwidth100 Mbps
Physical Nodes3 Fog + 1 Cloud
Slice IsolationVirtual (VNF)
Slice ManagerSDN Controller
Slice 1 Slice 2 Slice 3 Free

Middleware Components

Middleware bridges IoT devices and fog/cloud services — handling protocols, filtering, routing, and security.

📡
Raw Sensor Input
0 msg/s
→
🔌
Protocol Adapter
MQTT·CoAP·HTTP
0 msg/s
→
🔍
Data Filter
Noise & Dedup
0 msg/s
→
📬
Event Bus
Pub/Sub Broker
0 msg/s
→
🧠
Decision Engine
Rules + ML
0 dec/s
→
🔧
Actuator Commands
0 cmd/s

🔌 Protocol Adapter

Translates between heterogeneous IoT protocols. Normalizes all sensor data into a unified JSON schema before processing.

MQTT Topics0
CoAP Resources12
HTTP Endpoints8
Protocol Errors0

🔍 Data Filtering

Applies Kalman filtering and threshold-based deduplication to reduce noise and bandwidth usage by up to 60%.

Messages In0
Filtered Out0
Filter Ratio--
BW Saved--

📬 Event Bus (Pub/Sub)

Decouples producers (sensors) from consumers (actuators, cloud, analytics) using a publish-subscribe messaging pattern.

Active Topics6
Subscribers9
Queue Depth0
Delivered0

🧠 Decision Engine

Rule-based + ML hybrid engine makes irrigation decisions locally at the fog node without requiring cloud connectivity.

Rules Loaded24
Decisions Made0
ML Predictions0
Accuracy94.2%

📨 Live Message Stream

Real-time

System Event Logs

0 events
TimeSourceTypeMessageLatency