Scenario: A university campus needs to deploy environmental monitoring across 8 academic buildings spread over 500m × 400m area. Each building requires 30-50 sensors (temperature, humidity, CO2, occupancy).
Requirements:
- Total sensors: ~320 devices
- Data rate: 1 reading every 5 minutes per sensor
- Reliability: Buildings can operate independently during network outages
- Budget: $75,000 for networking infrastructure
- Future expansion: 4 additional buildings planned in 2 years
Step 1: Analyze Building-to-Building Connectivity
Distance matrix (approximate):
Building A → B: 120m
Building A → C: 180m
Building B → D: 95m
...
Max distance: 380m (Building A → Building H)
Option 1 - Single Campus-Wide Mesh:
- 320 sensors in one large Zigbee mesh
- Problem: Zigbee hop range ~30m, would require 380m / 30m = 13 hops
- Latency: 13 hops × ~50ms = 650ms (unacceptable for real-time occupancy)
- Routing overhead: Large routing tables, slow convergence
- Verdict: Rejected - doesn’t scale
Option 2 - Star with Centralized Gateway:
- All 320 sensors connect to single LoRaWAN gateway
- Problem: LoRaWAN duty cycle limit: 1% of 3,600 s/hour = only 36 seconds of airtime per hour per gateway
- 320 sensors × 12 messages/hour × 2 seconds/message = 7,680 seconds of airtime needed per hour
- 7,680 s needed >> 36 s allowed — exceeds limit by over 200×
- Verdict: Rejected — far exceeds duty cycle limits for a single gateway
Step 2: Select Hybrid Topology
Recommended Architecture: Tree topology with mesh access
Campus Network (Tree Backbone)
|
[Core Switch]
|
10 Gbps Fiber Ring
|
+---+---+---+---+---+---+---+---+
| | | | | | | | |
[A] [B] [C] [D] [E] [F] [G] [H] (Building Gateways)
| | | | | | | |
(mesh)(mesh)(mesh)... (Zigbee mesh per building)
Step 3: Cost Analysis
| Fiber backbone |
800m |
$45/m |
$36,000 |
| Building gateway |
8 |
$800 |
$6,400 |
| PoE switch (per building) |
8 |
$350 |
$2,800 |
| Zigbee router (mains) |
80 (10/building) |
$45 |
$3,600 |
| Zigbee end device (battery) |
240 (30/building) |
$25 |
$6,000 |
| Core switch |
1 |
$12,000 |
$12,000 |
| Installation labor |
- |
- |
$8,200 |
| Total |
|
|
$75,000 |
Step 4: Design Per-Building Mesh
Building A example (50 sensors): - 10 mains-powered Zigbee routers (placed in hallways) - 40 battery-powered sensors (in rooms) - Routers form mesh backbone (40% connectivity = 18 links) - Sensors connect to nearest router as end devices
Mesh metrics:
- Max hops: 3 (sensor → router → router → gateway)
- Latency: ~150ms worst-case
- Fault tolerance: 2 routers can fail, network remains connected
- Battery life: 2-3 years (sensors don’t route)
Step 5: Failure Analysis
| One sensor fails |
Only that sensor offline |
Replace sensor |
| One router fails |
4-5 sensors reroute to next router |
Automatic (30 seconds) |
| Building gateway fails |
That building’s 50 sensors offline, other 7 buildings OK |
Replace gateway (manual) |
| Fiber cut between buildings |
Buildings isolated but locally functional |
ISP repair (hours to days) |
| Core switch fails |
All buildings offline |
Redundant core switch recommended |
Step 6: Expansion Plan
For 4 additional buildings (2-year plan): - Cost per building: $1,200 (gateway + switch) + $900 (routers) + $750 (sensors) = $2,850 - Total expansion: 4 × $2,850 = $11,400 - Fiber extension: 200m × $45 = $9,000 - Total expansion: $20,400
Fiber backbone is already oversized (10 Gbps), no upgrade needed. Simply add buildings to existing tree structure.
Key Design Decisions:
- Why fiber backbone?
- 500m × 400m campus exceeds Wi-Fi/Zigbee single-hop range
- Fiber provides 10 Gbps future-proof bandwidth
- Isolated buildings survive partial network failures
- Why Zigbee mesh within buildings?
- 30-50m building dimensions suit Zigbee 30m hop range
- Battery sensors connect as end devices (2-3 year life)
- Self-healing handles router failures automatically
- Why tree (not flat mesh) backbone?
- Hierarchical structure isolates building failures
- Fiber provides reliable building-to-core connectivity
- Easy to expand (add new buildings without reconfiguring existing)
Result: Hybrid tree-mesh topology provides isolation, scalability, and cost-effectiveness within budget. Buildings operate independently via local mesh, and fiber tree backbone aggregates data to campus data center.