Standards
Certification
Education & Training
Publishing
Conferences & Exhibits
Time Synchronized MeshingK. PisterProf. EECS, UC BerkeleyFounder & CTO, Dust Networks
This document is provided strictly for the purpose of gathering information leading to the development of an ISA standard, recommended practice or technical report. Copies may be reproduced and distributed, in whole or in part, but only for the following purposes:Review of and comment on the ISA-SP100 draft proposalSubmission to ISA-SP100 CommitteeInforming and educating others about the ISA-SP100 draft standard development process.
2 Sept. 11th, 2006
Goals
• Non-fanaticism– TDMA & CSMA– Centralized & decentralized management– Efficient use of powered infrastructure when available
• Conceptually and practically simple• 802.15.4 MAC w/ extensions• Provide framework to approach limits of the radio
– 16x250kbps, ~1ms packets
•
3 Sept. 11th, 2006
Statement of Religious Alignment
• Time synchronization is required– Application– Low power– Multi-channel
• Multi-channel is required– Reliability– Bandwidth, scale
4 Sept. 11th, 2006
802.15.4 Slot and superframe timing
• Slot length– When SO = 0 60 symbols 0.96ms
• Active superframe duration– 16 slots 15.36ms when SO=0
• Superframe duration– 15.36ms * 2BO ; BO = 0..14– Up to 4 minutes (> 250,000 slots)
16|17|18|19|20|21|22|23|24|25|26|27|28|…
Semi-active
Channel-hopping
5 Sept. 11th, 2006
Timeslots and Frames
• Each mote-to-mote communication happens within a scheduled timeslot
• All timeslots are contained within a frame
• Frames repeat in time• Multiple frames can operate
simultaneously within a network
Frame
Unallocated Slot Allocated Slot
6 Sept. 11th, 2006
Slot Structure
DeviceCurrent
RX start, CCA, RX->TX
Tx->Rx TgACK
Transmit Packet: Preamble, SS, Headers, Payload,MIC, CRC
RX ACK
Transmit Time Slot
Transmit operations (not to scale)
7 Sept. 11th, 2006
Idle listen (no packet exchanged)
MoteCurrent
Empty RXRadio RX startupEnergy cost (2004): 70 uC
8 Sept. 11th, 2006
CA
DAB
C
Time Slot and Channel Mapping
A
Slot links for devices
Time
Chan. 2.405 GHz
2.470 GHz
…
2.480 GHz
BA
BA
One Slot
2.445 GHz
2.425 GHz
2.475 GHz
2.440 GHz
D
• The two links from B to A are dedicated• D and C share a link for transmitting to A• The shared link does not collide with the dedicated links
9 Sept. 11th, 2006
CA
DA
CA
DA
Frequency Hopping
Each link rotates through k available channels over k cycles.Blacklisting can be defined globally and locally.
BA
CA
DA
BA
Time
Cha
nnel
BA
BA
BA
BA
Cycle N Cycle N+1 Cycle N+2
10 Sept. 11th, 2006
Link Types
source
destinationone > one
> one
one
•Unicast•ACKed
•Broadcast•Duo-ACK?
•Contention free
•Collisions possible
Describes the assignments for a single cell = slot X channel_offset
11 Sept. 11th, 2006
Performance Limits
• Data collection– 100 pkt/s per gateway channel– 16*100 pkt/s with no spatial reuse of frequency
• Throughput– ~80kbps secure, reliable end-to-end payload bits per second per
gateway– 15 * 80k = 1.2Mbps combined payload throughput w/ no spatial
reuse of frequency• Latency
– 10ms / PDR per hop– Statistical, but well modeled
• Scale– > 1,000 nodes per gateway channel
12 Sept. 11th, 2006
Industrial Automation Use Cases
Monitoring
Diagnostics
Configuration
Handheld
Peer to PeerPhase II
Simulation of a 250 node network(courtesy Bob Karschnia)
13 Sept. 11th, 2006
Multiple graphs Multiple frames
BA
CA
BA
Time
Cha
nnel
BA
CA
BA
BA
BA
CA
BC
CB
CA
BA
BA
BC
CB
A
CB
Cycle M of red frame Cycle M+1
14 Sept. 11th, 2006
Frames overlayed
BA
CB CA
BA
Time
Cha
nnel
BC
BA
CA
BA
BA
BA
CA
CA
BA
CB
BA
A
CB
• Cell collisions can be avoided by time or channel partitioning• Intentional scheduling collisions are resolved by packet priority and graph priority
15 Sept. 11th, 2006
Subnetworks: single-hop, low latency
G
CB
E
AF
H
Black superframe• All motes• 1,000 slots (10 seconds)• Data, Health reports up• Control info downRed superframe• Mote F is light switch• Mote A is light• 1 slot, ~10ms latencyBlue superframe• Mote H is temp sensor• Mote B is HVAC control point• 100 slots, ~1second latency
Motes A and B are likely poweredAll frames on all the timeAll other motes run at <100uA
16 Sept. 11th, 2006
Subnetworks 2: reliable multi-hop control
G
CB
E
AFH
Black superframe• All motes• 10s period• Data, Health reports up• Control info downRed superframe• ~2s latency• Mote H is industrial process sensor• Mote A is industrial process controller
Both frames on all the timeAll motes run at <100uA
17 Sept. 11th, 2006
Subnetworks 3: query/response & log upload
Black superframe• All motes• Data, Health reports up• Control info downRed superframe• Query/response from A to G• 50 slots (0.5 second)• Mean round-trip latency < 1sBlue superframe• Mote H sends a log file• 2 slots, 1 payload delivered to A per cycle• ~80kbps
Red & Blue frames are only on occasionallyAll motes run at <100uA under “normal” conditionsZero collisions, zero lost packets
A
CB
E
GFH
Without black graph
18 Sept. 11th, 2006
Subnetworks 4, et ceteraG->E E->C
C->AA
CB
E
GH
H->B H->C
C->A B->A
Red frame:1 packet delivered from G to D every other slot
Blue frame:1 packet delivered from H to A every slot
P
RQ
S
D
F
Z
Y
X
W
W->X X->Y
Y->Z
H->B H->C
C->A B->A
Gold frame:1 packet delivered from W to Z every other slot
Green frame:1 packet delivered from S to P every slot
19 Sept. 11th, 2006
Many Knobs to Turn
• Trade performance and power– Sample & reporting rate– Latency– High bandwidth connections
• Tradeoffs can vary with– Time– Location– Events
• Use power intelligently if you’ve got it– Highest performance with powered infrastructure
20 Sept. 11th, 2006
Communication Abstraction
• Packets flow along independent digraphs• Digraphs/frames have independent periods• Energy of atomic operations is known, (and can be
predicted for future hardware)– Packet TX, packet RX, idle listen, sample, …
• Capacity, latency, noise sensitivity, power consumption models match measured data
• Build connectivity & applications via gateway or sensor interface– Create & delete graphs– Activate & deactivate graphs– Add & delete links
Gateway
Network
A
CB
E
GF
H
21 Sept. 11th, 2006
Network Management
• Secure, Rapid Joining– TJOIN = CT/PD
– C = number of joining channels– T = mean time between advertising packet– P = PDR– D = duty cycle
– Seconds per mote for reasonable parameter values• Continuous optimization
– Global knowledge of CIJ(t) useful, not required– Optimization, not failure recovery - always have alternate paths
• Dynamic requirements– Bandwidth on demand
– Shared links– Pre-provisioned graphs turned on & off
– Wireless worker
Standards
Certification
Education & Training
Publishing
Conferences & Exhibits
50 motes, 7 hops3 floors, 150,000sf
>100,000 packets/day
23 Sept. 11th, 2006
Oil Refinery – Double Coker Unit
• Scope limited to Coker facility and support units spanning over 1200ft
• No repeaters were needed to ensure connectivity
• Gateway connected via Ethernet port in control room to process control network
• Electrical/Mechanical contractor installed per wired practices
GW
400m
Unamplified cc2420
85 dB SW-limited link margin
24 Sept. 11th, 2006
1 Protocol, Alternate Approaches
• All motes battery operated– Intelligent Management: SmartMesh– Minimal network management: Slotted aloha
• Some motes powered– Hybrid: Sleepy Slotted Aloha
• Routers powered, leaf nodes minimum power• Point-to-point• Star networks
• Compare to CSMA approach for– Latency– Scalability– Power consumption
25 Sept. 11th, 2006
Moving forward
• Radio RX current going down– QIDLE < 10uC
– listening every slot < 1mA– 100ms latency/hop 100uA current
• Embedded microprocessor capabilities scaling at least 10x– 32 bit cores, > 1MB flash, >128kB RAM, 100MHz– Lower current!
• Our standard should embrace these changes
26 Sept. 11th, 2006
27 Sept. 11th, 2006
Scalability: Outdoor Test Network
Interferer(PosA)
10
SmartMeshManager
2
Smart Mes hManager
1
SmartMeshManager 9.5
4.5
8
4.5
OPEN SPACE DEPLOYMENT
Netw ork deployed at 1 Thayer Road, Santa Cruz , CA, on roughpasture. Modif ications to Implementation plan due to deploymen t f itinto " thin and hou rglass" shape of s ite (no minimum plan distancescompromised) . All measurements given in meters, and accurate to
w ithin +/-25 cent imeter s (gopher hole off se ts ).
025
Mote
16
619
Mote
053
Mote
8
6
038
Mot e
037
Mote
6
4.5
060
Mote
059
Mote
8
3
8
10
13 13
002
Mote8 8
3
050
Mote
004
Mote
13
005
Mote
13
054
Mote
061
Mote
001
Mote
6
003
Mote10
006
Mote
1313
10
049
Mot e
8
84.
5
013
Mot e
052
Mote
056
Mot e6
6
235
Mote
233
Mote
232
Mote
88
234
Mote
8
231
Mote
8
8
12.5
9
11.5
4.5
4.5
4.5
11 .5
10.5
3
8
014
Mote8
9
4
SmartMeshManager
148
Mote
4.5
147
Mote
8
015
Mote
16
190
Mot e
8
4.5
8
187
Mot e
188
Mot e
189
Mote
016
Mote
018
Mote6 6
3.5
017
Mote
019
Mote
021
Mote
020
Mote
023
Mote
6
3.5
6
3.5
3.5
022
Mote
3.5
6
024
Mote6
3.5
151
Mote
154
Mote
3.5
159
Mote
3.5
150
Mote
155
Mote
3.5
158
Mote
3.5
156
Mote
153
Mote
66
6
6
6
66 6
149
Mote 6
157
Mote6
152
Mote6
160
Mote6
3.5
3.5
3.5
3.5
165
Mote
163
Mote6 6
3.5
164
Mote
172
Mote
170
Mote
171
Mote
178
Mote
6
3.5
6
3.5
3.5
179
Mote
3.5
6
177
Mote6
3.5
162
Mote
173
Mote
3.5
176
Mote
3.5
166
Mote
169
Mote
3.5
180
Mote
3.5
168
Mote
174
Mote
66
6
6
6
66 6
167
Mote 6
183
Mote6
161
Mote6
186
Mote6
3.5
3.5
3.5
3.5
3.5
3.5
3.5
3.5
3.5
3.5
3.5
182
Mote6
3.5
181
Mote 6
175
Mote6
3.5
185
Mote6
184
Mote
3.5
3.5
3.5
16
4.5
026
Mote
242
Mote
8
4.5
9.5
031
Mote
241
Mote
243
Mote
4.5
236
Mot e
237
Mot e
238
Mote
8
8
239
Mot e
8
240
Mote
8
8
19
19
4.5
4.5
255
Mote
Interferer(PosD)
Inter ferer(PosC)
4.5
4.5
027
Mote
285
Mote 4.5
3
304
Mote
286
Mote
303
Mote
302
Mote
3.5
3
4.5
3
287
Mote
3
4.54
279
Mote
278
Mote
3
277
Mote
3
262
Mote
4.5
4.5
4.54.5
261
Mote 4.5
263
Mote 4.5
267
Mote 4.5
4.5
3
3
288
Mote 4.54.5
4.5
301
Mote
289
Mote
300
Mote
299
Mote
5
4.5
4.5
4.54.5
290
Mote
4.5
4.55.5
4.5
276
Mote
275
Mote
4.5
274
Mote
4.5
265
Mote
4.5
4.5
4.54.5
264
Mote 4.5
291
Mote 4.56
4.5
4.5
34.5
3
33
273
Mote 4.5
4.5
266
Mote 4.5
4.5
6
298
Mote
4.5
250
Mote
029
Mote
4
4
3
249
Mote
030
Mote
251
Mote
028
Mote
252
Mote
4
4
307
Mote
282
Mote
253
Mote
254
Mote
3
8
8
269
Mote 4.5
4.5
293
Mote 4.5
4.5
271
Mote 4.5296
Mot e
4.5
4.5
268
Mote 4.5
4.5
292
Mote 4.5
4.5
272
Mote 4.5297
Mote
4.5
4.5
3
33
3
260
Mote 4.5284
Mote 4.5
280
Mote 4.5305
Mote
3
33
3
259
Mote 4.5283
Mote 4.5
281
Mot e 4.5306
Mote
294
Mote 4.5
4.5
270
Mote 4.5295
Mote
4.5
4.5
258
Mote
8
248
Mote
247
Mote
256
Mote
8
8
245
Mote
246
Mote
257
Mote244
Mote
8
8
88
13
10.5
6
3
4.5
3
4.5
309
Mote
310
Mote
311
Mote
312
Mote
313
Mot e
314
Mote
315
Mot e
4.5
9
4.5
8
9.59.5
Interferer(PosE)
Interferer(PosB)
7
SmartM eshManager
6
Smart MeshManager
5
SmartMeshManager
4.5
4.5
322
Mote
321
Mote
4.5
320
Mote
4.5
325
Mote
3
4
3.5 3.5
326
Mote4
4.5
319
Mote
318
Mote
4.5
317
Mote
4.5
328
Mote
4.5
5.5
5 5
327
Mote4.5
316
Mote
4.5
4.5
4.5 4.5
329
Mote5.5
4.5
4.5
453
Mote
518
Mote
512
Mote
511
Mote
331
Mot e
337
Mote
335
Mote
338
Mote
339
Mote
336
Mot e
334
Mote
333
Mote
340
Mote
341
Mote
342
Mote
343
Mote
344
Mote
345
Mote
346
Mot e
355
Mote
354
Mote
353
Mote
352
Mote
351
Mote
350
Mot e
349
Mot e
356
Mote
357
Mote
358
Mote
359
Mote
360
Mote
361
Mote
362
Mot e
371
Mote
370
Mot e
369
Mot e
368
Mote
367
Mote
366
Mote
365
Mot e
372
Mot e
373
Mote
374
Mote
375
Mote
376
Mote
4.5
4.5
4.5
4.5
4.5
4.5
3-6m 3- 6m 3-6m 4.5
4.5
4.5 4.54.5 4.5
4.54.54.5
4.54.5
4.5 4.5 4.5 4.5 4.5
4.5
4.5
4.5
4.5
4.5
4.5
4.5
4.5
4.5
4.5
4.5 4.5 4.5 4.5
4.5 4.5 4.54.5
4.54.54.54.54.5
4.5 4.5 4.5 4.5 4.5
3-6m 3-6m 3-6m 3- 6m 3-6m
4.5 4.54.5
4.5 4.5
4.54.54.54.5
383
Mote8
392
Mote16
391
Mote
393
Mote
403
Mote
404
Mote
405
Mote
406
Mote
415
Mote
416
Mot e
417
Mot e
418
Mote
429
Mote
430
Mot e
431
Mot e
4.5 4.5 4.5
4.54.5
4.5
4.5 4.5 4.5
4.5
4.5
4.5
4.5
4.5
4.54.5
4.54.5 4.5
4.5
438
Mote
448
Mote
452
Mot e
465
Mot e
1414 14 14
464
Mote
478
Mote
477
Mot e
476
Mote
490
Mote
489
Mot e
488
Mot e
487
Mote
502
Mote
501
Mote
500
Mote
4 4 4
4 44
4 4 4
4.54.5
4.5
4.5 4.5
4.5 4.5 4.5 4.5
466
Mote
467
Mote
475
Mote
499
Mote
463
Mote
479
Mote
486
Mote
503
Mote
462
Mote
480
Mote
485
Mote
4.5 4.54.5
4.5 4.5 4.5 4.5
4.54.54.5
4 4 4
44
4 44
390
Mote432
Mote
419
Mote
4.5
4.5
4.5
4.54.5
510
Mote
513
Mote
517
Mote
522
Mote
14 14 14 14
523
Mote
382
Mote
380
Mote
384
Mote
4.5
4.5
521
Mote
520
Mote
386
Mote
4.5
455
Mote
389
Mote
388
Mote
407
Mote
408
Mote
409
Mote
412
Mote
413
Mote
414
Mote
433
Mote
434
Mote
4.5 4.5 4.5
4.5 4.54.5
4.5
4.5
4.5
4.5
4.5
4.5 4.5
4.5 4.5 4.5 4.5
387
Mote435
Mote
4.5
4.5
4.54.5
397
Mote
396
Mote
399
Mote
400
Mote
401
Mote
420
Mote
421
Mote
422
Mote
425
Mot e
426
Mote
4.5 4.5 4.5
4.5 4.5 4.5
3- 6m
4.5
4.5
4.5
4.5
4.5
395
Mote427
Mote
4.5
4.5
3-6m3-6m
394
Mote
402
Mot e 4.54.5
4.5 4.5
428
Mote
4.5
4.5
4.54.5
4.5 4.5
410
Mote
411
Mot e4.5
4.5 4.5
436
Mote
4.5
4.5
504
Mote4
4.5
460
Mote
461
Mote
482
Mote
481
Mote
484
Mote
483
Mote
506
Mote
505
Mote
44 3- 6m
44 4
4.5
4.5
4.5
4.5
4.5 4.5
4.5
4.5
468
Mote
469
Mote
474
Mote
473
Mote
472
Mote
493
Mote
492
Mote
491
Mot e
498
Mote
497
Mote
4.5 4 4
4 4 4
4
4.5
4.5
4.5
4.5
4.5 4.5
4.5 4.5 4.5 4.5
470
Mote496
Mot e
4.5
4.5
44
471
Mote
494
Mote4
4.5 4.5
495
Mote
4.5
4
519
Mote
323
Mote
347
Mote
377
Mote
348
Mote
4.5
364
Mote
308
Mote332
Mot e
524
Mote
4.5
398
Mote
525
Mote
4.5
424
Mote
527
Mote
526
Mote
446
Mote
440
Mote
4.5
4.5
449
Mote
437
Mote
450
Mote
1414 14
14
14 14 1414
451
Mote
363
Mote
379
Mote457
Mote
445
Mote
507
Mote
508
Mote
515
Mot e4.5
4.5
456
Mote
442
Mote
9.5
459
Mote
458
Mot e
441
Mote
4.5
443
Mote
444
Mote
4.5
423
Mote
378
Mote
385
Mot e
381
Mot e
8 16
16447
Mote
439
Mote
454
Mote
1414 14 14 509
Mote14
514
Mote
516
Mote14 14 14
330
Mote
324
Mote
8
8
10.5
8
8
7
8
4.5
8
4.5
4.5
4.5
4.5
4.5
4.5
4.5 4.54.5
4.5
4.5
4.5
6.5
4.5
8
16.5
9.5
4.5
9.5
16
9.5
6
033
Mote 10
055
Mote
032
Mot e 6
3
571
Mote
6.5
034
Mote
035
Mote 8
4.5
8
036
Mote16
528
Mote
16
Tree
N
16
058
Mote
620
Mote
13
039
Mote
621
Mot e10
13
11.5
Forest Edge
19
16
TreeTrunk
9
Smart MeshManager
661
Mote
057
Mote
646
Mote
665
Mote
663
Mote6 6
664
Mot e
658
Mote
657
Mote
044
Mot e
651
Mot e
6
3
5
33
652
Mote
3
5
650
Mote6
3
662
Mot e
659
Mot e
3
649
Mot e
3
666
Mote
656
Mote
3.5
653
Mote
3
655
Mote
660
Mote
55
5
5
6
66 6
625
Mote 6
654
Mote 6
622
Mote6
648
Mote6
333
3
641
Mote
643
Mote6 5
3
642
Mote
634
Mote
636
Mote
635
Mote
043
Mote
5
3
6
33
628
Mote
3
6
629
Mote5
3
644
Mot e
633
Mot e
3
630
Mot e
3
640
Mote
637
Mote
3
627
Mote
3
638
Mote
632
Mote
56
5
5
6
66 6
639
Mote6
040
Mote 6
645
Mote6
623
Mot e5
33
3
3
3 3 33 33
624
Mote 6
3
626
Mote6
631
Mote6
3
042
Mote5
041
Mote
3 33
669
Mote
671
Mot e
8
667
Mote
668
Mote
670
Mote
672
Mote
673
Mote
679
Mote
678
Mote
045
Mote
677
Mote
676
Mot e
675
Mote
674
Mote
680
Mote
046
Mote
047
Mote
048
Mote
681
Mot e
682
Mote
683
Mote
690
Mote
689
Mote
688
Mote
687
Mote
686
Mot e
685
Mote
684
Mote
691
Mote
692
Mote
693
Mote
694
Mote
695
Mot e
696
Mote
697
Mote
703
Mote
702
Mote
701
Mote
700
Mot e
699
Mote
6 5 6 6
6656
56
6 5
6 5 6 5 6 6
665656
6 5
3- 6m
6 5
3-6m 3-6m
6 6
3-6m
3 3 3 3 3 3 33333333
3 3 3 3 3 3 3
3 3 3 3 3 3 3
3-6m
3-6m
3-6m
3-6m
3-6m
698
Mote
647
Mote4.5
16
TreeStump
TreeStump
3 Trees
Stump"Well"
3
SmartMeshManager
107
Mote
051
Mote
064
Mote
065
Mote6 6
3
008
Mote
069
Mote
071
Mote
070
Mote
077
Mote
6
3
6
33
076
Mote
3
6
078
Mote6
3
007
Mote
068
Mote
3
079
Mote
3
063
Mote
072
Mote
3
075
Mote
3
073
Mote
067
Mote
66
6
6
6
66 6
062
Mote6
074
Mote6
066
Mote6
080
Mote6
333
3
087
Mote
085
Mote6 6
3
086
Mote
093
Mote
092
Mote
009
Mote
098
Mote
6
3
6
33
099
Mote
3
6
097
Mote6
3
084
Mote
010
Mote
3
096
Mote3
088
Mote
091
Mote
3
100
Mote
3
090
Mot e
094
Mote
66
6
6
6
64.5 6
089
Mote6
103
Mote6
083
Mote6
106
Mote6
33
3
3
3 33 33 33
102
Mote6
101
Mote3
095
Mote6
3
105
Mote6
104
Mote
3 33
011
Mote
012
Mote
66
112
Mote
111
Mote
110
Mote
109
Mote
108
Mote
113
Mote
114
Mote
115
Mote
116
Mote
117
Mote
118
Mote
119
Mote
126
Mote
125
Mote
124
Mote
123
Mote
122
Mote
121
Mote
120
Mote
127
Mote
128
Mote
129
Mote
130
Mote
131
Mote
132
Mote
133
Mote
141
Mote
140
Mote
139
Mote
138
Mote
137
Mote
136
Mote
135
Mote
142
Mote
143
Mote
144
Mote
145
Mote
146
Mote
3 3 333
33
33
3333
3 3 3 3 333 33 3
3
33
3
33
33
33
6 6 6 6
66 6 6 6 6
66 6 6 6 6
66 6 6 6 6
6 6 6 6 6 6
666666
081
Mote
082
Mote
134
Mote
4.5
9.5
19
16
15
BrushPile
StumpTree
4.5
4.5
4.5
1,100 m
600 m
-1400 Motes -20 Managers - 32 Acres
Approaching 8 mote-centuries
28 Sept. 11th, 2006
Additional link types
• “Primary”, “secondary” parent
29 Sept. 11th, 2006
Slotted Aloha performance
• Peak payload bandwidth– 100 slots/sec * 80B/packet = 8kB/s = 64kbps
• Peak payload goodput with collisions– 64kbps * e-1 = 23.5kbps
• Average power consumption, non-congested– IRX * (2ms/10ms) = 0.2 IRX
• Average latency, non-congested– 10ms/hop
• Relative to Aloha w/ 80B ACKed payloads– Payload goodput = ~150kbps * e-2 = – Average Current = IRX – Non-congested Latency 5ms/hop
• Relative to Aloha w/ 10B ACKed payloads
30 Sept. 11th, 2006
Duty Cycling
• Slotted aloha– Any fractional slot duty cycle possible with varying frame length
– Use x links in a y slot frame to get = x/y duty cycle– Current decreases proportional to – Latency increases as 1/– 10% slot duty cycle 100ms latency per hop.– Radio duty cycle is still lower, i.e. 2% (=10% slot duty cycle * 20% radio duty
cycle in slot)
• Aloha– “chunky-ness” of the duty cycle will set latency– Typical approaches (e.g. Millennial) use long sleep intervals, e.g. 6 seconds
on, 54 seconds off to get 10% duty cycle– Latency is tens of seconds, radio duty cycle is same as overall duty cycle,
=10%
31 Sept. 11th, 2006
Powered routers
32 Sept. 11th, 2006
Point to point links
• Use scheduled communication, e.g. one Tx and one RX link in a two slot frame– Available guaranteed bandwidth
– 50 slots/sec in each direction– =50 payloads/sec = 4kB/s = 32kbps full duplex
– Idle current– 50 listens/sec * 2ms/listen = 100ms/s = 10% radio duty cycle
– Average latency = 1 slot = 10msOr…• Use bandwidth on demand (slotted aloha), e.g. one
aloha slot in a one slot frame– Available one-way bandwidth is 100 packets/sec = 64kbps– Average One-way latency is 5ms
33 Sept. 11th, 2006
Star connected networks
• 1 hub, N end-points• Scheduled communication
– 1 downstream broadcast, N upstream links in a 1+N slot frame– Downstream bandwidth = 100 packets/sec / (1+N)– Average Latency = 10ms * (1+N)/2
• Bandwidth on demand– 1 downstream broadcast, 1 aloha in a 2 slot frame– Downstream bandwidth = 50 packets/sec– Peak upstream bandwidth, 1 mote = 50 packets/sec– Average Query/response latency = 3 slots = 30ms– End-point radio duty cycle = 50% slot * 20% rx/slot = 10%– Reducing endpoint duty cycle
– E.g. 5 downstream slots/sec– Average query/response latency = 120ms– End-point radio duty cycle = 5% * 20% = 1%
34 Sept. 11th, 2006
Variable slot length• Slot length will be a variable number of 1/1024ths of a
second, hereafter referred to as milliseconds for convenience.
• Expected values for slot length are 8-20ms.• Single slot length networks
– All slots, frames, and motes in a network will use the same slot size, chosen by the first mote in the network (e.g. the gateway)
– There will be no provision for changing the slot length of an existing network without restarting the network. Hence, a “slow” mote (e.g. without hardware crypto) would not be able to join a fast network.
– Problem: Rob won’t go for it for “bad customer experience”• Multi- slot length networks
– Different frames could have different slot lengths– Different paths could have different slot lengths. Manager
blocks out the appropriate amount of time for each link.• Dual slot length
– 8-10ms slot length– M2135 motes can only handle even-numbered slots
35 Sept. 11th, 2006
Timing – perfect synchronization
A transmits to BTX, RX ACK timing
A
B RX startup
Transmit Packet: Preamble, SS, Headers, Payload,MIC, CRC
RX packet Verify CRC
Verify MAC MIC
Calculate ACK MIC+CRC
TransmitACK
RX startup or TX->RX
RX ACK
RX/TX turnaround
CCA: RX startup, listen, RX->TX
36 Sept. 11th, 2006
Timing – imperfect synchronization (latest possible transmitter)
A
B RX startup
Expected first bit of preamble
CCA: RX startup, listen, RX->TX
Transmit Packet: Preamble, SS, Headers, Payload,MIC, CRC
RX packet Verify CRC
Verify MAC MIC
Calculate ACK MIC+CRC
TransmitACK
RX startup or Tx->Rx
RX ACK
TgTg
TgACK
RX->TX
• TCCA = 0.512ms to be standards compliant– Worst case is a receive slot followed by a transmit slot to a different partner, as radio will be finishing up the ACK TX
just as it needs to look for a clear channel, so– TCCA = TTX->RX + Tchannel assessment + TRX->TX = 0.192ms + 0.128ms + 0.192ms– With gold24, we believe we can do a faster turnaround, so we’d get 0.228 instead of 0.512
• Tpacket = 4.256ms for a maximum length packet– Preamble+SS+packet = 4+1+128B = 133B = 1064 bits 4.256ms @ 250kbps
• Tcrypto needs to be chosen. For gold24 it will be about 0.25 or 0.5 ms. For the cc2420 it appears to be a bit slower – maybe 0.5 to 1 ms.
• TgACK needs to be chosen. It is the tolerance to variation in Tcrypto and/or mote B’s turnaround time from RX to TX
• TACK is a function of the ACK length. It is likely to be just under 1ms.• Tslot = TCCA+2*Tg+Tpacket+Tcrypto+TgACK+TACK = 0.512+2+4.256+1+0.1+1 = 9ms
Tcrypto
37 Sept. 11th, 2006
Late TX, early neighbor TX next slot
X
First bit of late transmitter shows up at +X relative to network-wide clock. That late transmitter performed a CCA starting 178us earlier.The early transmitter in the next slot wakes up early enough to perform a CCA and get the first bit of its preamble out at –X relative to network-wide clock.The last bit of the late transmitter is done before the first sniff of the early CCA has taken place.
Expected first bit of preamble
X
TX, RX ACK (late)
TX, RX ACK (early)
Expected first bit of preambleCCA = 178us
Preamble+SS, 160us
38 Sept. 11th, 2006
Tcrypto includes TgACK and all CRC, crypto, and radio turnaround times. It’s the time from the last bit of the packet to the first bit of the preamble of the ACK.
TgTg
Transmit Packet: Preamble, SS, Headers, Payload,MIC, CRC
TACKTC
CA
TcryptoEarly
Late
PerfectTransmit Packet: Preamble, SS,
Headers, Payload,MIC, CRCTACKTC
CA
Tcrypto
Transmit Packet: Preamble, SS, Headers, Payload,MIC, CRC
TACKTC
CA
Tcrypto
Transmit Packet: Preamble, SS, Headers, Payload,MIC, CRC
TC
CA
Transmit Packet: Preamble, SS, Headers, Payload,MIC, CRC
TC
CA
Transmit Packet: Preamble, SS, Headers, Payload,MIC, CRC
TC
CA
TgTg
Tslot = 2Tg+Tcomm+TCCA
Tcomm = Tpacket+Tcrypto+TACK
39 Sept. 11th, 2006
Star-mesh or Star-LAN
Q: Star-connectivity is known to be death for reliability, so why do it?
A: Don’t trust the motes, don’t think that they have the power to be routers.
40 Sept. 11th, 2006
Star-mesh or Star-LAN
What if WiFi gets jammed (easier to do than freq-hopping 802.15.4)?What if you lose ethernet? (power failure, cable, …)
41 Sept. 11th, 2006
Mesh, with backbone
Use powered infrastructure when you have it.Lower latencyLower power
But, if it goes away…
42 Sept. 11th, 2006
Mesh, with backbone
Assume that the motes are smart, and that their radios are good.Use protocols that leverage those capabilities:
Time-synchronized, TDMA, Channel Hopping MACMesh routing
43 Sept. 11th, 2006
TSMP Dedicated Services
• Periodic traffic• Time Division Multiplexing assigned to slots in frames• Dedicated access and Quality of Service
– Deterministic latency– Bandwidth assignment– Configurable latency – Transport and resource priority
• Connectivity– One-to-one– One-to-many
44 Sept. 11th, 2006
TSMP Shared Services
• Used for burst traffic– Provides pool of available slots as needed
– Low latency alarms– High-speed on-demand file transfer
• Slotted Aloha assigned to slots in frames– Time slots can be configured to be shared– MAC level ACK detects collisions– Exponential back off algorithm– Transport and resource priority
• Connectivity– Many-to-one– Many-to-many
45 Sept. 11th, 2006
TSMP Network Management
• Unified resource allocation• Dynamic:
– Adapts to changing RF environment – global response to local changes
– Robust against network device failures– Responds to application resource requests and provides QOS
• Optimized: allocation of resources across the network • Flexible: Network management and device
interoperability do not require the standardization of how resources are allocated– Innovations can be added after the standard is released– Specialized network managers can target vertical markets
• Secure: Critical functions are removed from physically unsecured locations