Advanced Distributed Systems
J¨ urgen Sch¨
- nw¨
alder
http://www.faculty.jacobs-university.de/jschoenwae/ads-2007/
November 26, 2007
J¨ urgen Sch¨
- nw¨
alder Advanced Distributed Systems
Advanced Distributed Systems J urgen Sch onw alder - - PowerPoint PPT Presentation
Advanced Distributed Systems J urgen Sch onw alder http://www.faculty.jacobs-university.de/jschoenwae/ads-2007/ November 26, 2007 J urgen Sch onw alder Advanced Distributed Systems Part: Introduction Definition and
http://www.faculty.jacobs-university.de/jschoenwae/ads-2007/
J¨ urgen Sch¨
alder Advanced Distributed Systems
1
2
3
4
J¨ urgen Sch¨
alder Advanced Distributed Systems
1
2
3
4
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
1
2
3
4
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
1
2
3
4
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
1
2
3
4
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
serial_tunnel daemon tun(4) interface ethernet interface serial interface TinyOS mote running BaseStationCC2420 serial interface 802.15.4 interface 802.15.4 interface TinyOS mote with a IPv6/6lowpan stack USB 802.15.4 Linux kernel / IP stack 6lowpan-encapsulated IPv6 packets 6lowpan-encapsulated IPv6 packets IPv6 packets Internet IPv6 packets
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
The Design Space of Wireless Sensor Networks. IEEE Wireless Communications, 11(6):54–61, December 2004.
Commercial Applications of Wireless Sensor Networks using ZigBee. IEEE Communications Magazine, 45(4):70–77, April 2007. L.D. Nardis and M.-G. Di Benedetto. Overview of the IEEE 802.15.4/4a standards for low data rate Wireless Personal Data Networks. In Proc. of the 4th IEEE Workshop on Positioning, Navigation and Communication 2007 (WPNC’07), Hannover, March 2007. IEEE.
IPv6 over Low-Power Wireless Personal Area Networks (6LoWPANs): Overview, Assumptions, Problem Statement, and Goals. RFC 4919, Intel Corp, Microsoft Corporation, Danfoss A/S, August 2007.
Transmission of IPv6 Packets over IEEE 802.15.4 Networks. RFC 4944, Microsoft Corporation, Intel Corp, Arch Rock Corp, September 2007.
Connecting Wireless Sensor Networks to the Internet — a 6lowpan Implementation for TinyOS 2.0. Master’s thesis, Jacobs University Bremen, June 2007. J¨ urgen Sch¨
alder Advanced Distributed Systems
5
6
7
8
J¨ urgen Sch¨
alder Advanced Distributed Systems
5
6
7
8
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
5
6
7
8
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
5
6
7
8
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
5
6
7
8
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
The nesC Language: A Holistic Approach to Networked Embedded Systems. In PLDI03. ACM, June 2003.
The Design Space of Wireless Sensor Networks. IEEE Wireless Communications, 11(6):54–61, December 2004.
Commercial Applications of Wireless Sensor Networks using ZigBee. IEEE Communications Magazine, 45(4):70–77, April 2007.
Overview of the IEEE 802.15.4/4a standards for low data rate Wireless Personal Data Networks. In Proc. of the 4th IEEE Workshop on Positioning, Navigation and Communication 2007 (WPNC’07), Hannover, March 2007. IEEE. J¨ urgen Sch¨
alder Advanced Distributed Systems
9
10 Local and Distributed Algorithms 11 Induced Transition Systems 12 Events and Causal Order 13 Computations and Executions 14 Logical Clocks
J¨ urgen Sch¨
alder Advanced Distributed Systems
9
10 Local and Distributed Algorithms 11 Induced Transition Systems 12 Events and Causal Order 13 Computations and Executions 14 Logical Clocks
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
9
10 Local and Distributed Algorithms 11 Induced Transition Systems 12 Events and Causal Order 13 Computations and Executions 14 Logical Clocks
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
9
10 Local and Distributed Algorithms 11 Induced Transition Systems 12 Events and Causal Order 13 Computations and Executions 14 Logical Clocks
J¨ urgen Sch¨
alder Advanced Distributed Systems
pi, ⊢s pi, ⊢r pi), is given by
J¨ urgen Sch¨
alder Advanced Distributed Systems
p∈P →p), where the →p are the transitions
pi, . . . , cpN, M2)
pi) ∈⊢i pi and M1 = M2
pi) ∈⊢s pi and M2 = M1 ∪ {m}
pi) ∈⊢r pi and M1 = M2 ∪ {m}
J¨ urgen Sch¨
alder Advanced Distributed Systems
pi, ⊢s pi, ⊢r pi), is given by
J¨ urgen Sch¨
alder Advanced Distributed Systems
p∈P →p) ∪ ( p,q∈P:p=q →pq), where
pi, . . . , cpN)
pi) ∈⊢i pi
pi, . . . , c′ pj, . . .)
pi) ∈⊢s pi and (cpj, m, c′ pj) ∈⊢r pj
J¨ urgen Sch¨
alder Advanced Distributed Systems
9
10 Local and Distributed Algorithms 11 Induced Transition Systems 12 Events and Causal Order 13 Computations and Executions 14 Logical Clocks
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
9
10 Local and Distributed Algorithms 11 Induced Transition Systems 12 Events and Causal Order 13 Computations and Executions 14 Logical Clocks
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
9
10 Local and Distributed Algorithms 11 Induced Transition Systems 12 Events and Causal Order 13 Computations and Executions 14 Logical Clocks
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
e1,1 e1,2 e1,4 e1,3 e1,5 e2,1 e2,3 e2,2 e3,1 e3,2 e3,3 e3,5 e3,6 e3,4 P1: P2: P3:
2 5 6 7 1 2 1 1 3 4 5 6 7 7
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
e1,1 e1,2 e1,4 e1,3 e1,5 e2,1 e2,3 e2,2 e3,1 e3,2 e3,3 e3,5 e3,6 e3,4 P1: P2: P3:
(2,0,0) (3,2,3) (4,2,3) (5,2,3) (0,1,0) (0,2,0) (1,0,0) (0,0,1) (0,2,4) (0,2,5) (0,2,6) (4,3,3) (0,2,3) (0,2,2)
J¨ urgen Sch¨
alder Advanced Distributed Systems
Time, Clocks, and the Ordering of Events in a Distributed System. Communications of the ACM, 21(7), July 1978.
About logical clocks in distributed systems. Operating Systems Review, 26(1):41–48, 1992.
Introduction to Distributed Algorithms. Cambridge University Press, 2 edition, 2000. J¨ urgen Sch¨
alder Advanced Distributed Systems
15 Motivation and Introduction 16 Time-Stamp Synchronization (TSS) 17 Reachback Firefly Algorithm (RFA) 18 Reference Broadcast Synchronization (RBS) 19 Flooding Time Synchronization Protocol (FTSP)
J¨ urgen Sch¨
alder Advanced Distributed Systems
15 Motivation and Introduction 16 Time-Stamp Synchronization (TSS) 17 Reachback Firefly Algorithm (RFA) 18 Reference Broadcast Synchronization (RBS) 19 Flooding Time Synchronization Protocol (FTSP)
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
1 Energy consumption 2 Synchronization precision 3 Scalability to support large networks with many nodes 4 Robustness against failures (self-organization) 5 Synchronization scope (local synchronization for some
6 Computational complexity 7 Memory requirements (both RAM and ROM) 8 Piggy backing of synchronization message J¨ urgen Sch¨
alder Advanced Distributed Systems
1 Master/slave vs. peer-to-peer synchronization 2 Clock correction vs. untethered clocks 3 Internal vs. external synchronization 4 Probabilistic vs. deterministic synchronization bounds 5 Sender to receiver vs. receiver to receiver synchronization 6 Single-hop vs. multi-hop networks 7 Stationary vs. dynamic network topologies J¨ urgen Sch¨
alder Advanced Distributed Systems
15 Motivation and Introduction 16 Time-Stamp Synchronization (TSS) 17 Reachback Firefly Algorithm (RFA) 18 Reference Broadcast Synchronization (RBS) 19 Flooding Time Synchronization Protocol (FTSP)
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
15 Motivation and Introduction 16 Time-Stamp Synchronization (TSS) 17 Reachback Firefly Algorithm (RFA) 18 Reference Broadcast Synchronization (RBS) 19 Flooding Time Synchronization Protocol (FTSP)
J¨ urgen Sch¨
alder Advanced Distributed Systems
15 Motivation and Introduction 16 Time-Stamp Synchronization (TSS) 17 Reachback Firefly Algorithm (RFA) 18 Reference Broadcast Synchronization (RBS) 19 Flooding Time Synchronization Protocol (FTSP)
J¨ urgen Sch¨
alder Advanced Distributed Systems
NIC Sender Receiver Critical Path NIC Sender Receiver 1 Receiver 2 Critical Path Time
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
m
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
15 Motivation and Introduction 16 Time-Stamp Synchronization (TSS) 17 Reachback Firefly Algorithm (RFA) 18 Reference Broadcast Synchronization (RBS) 19 Flooding Time Synchronization Protocol (FTSP)
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
event Radio.receive(TimeSync *msg) { if (msg->rootID < myRootID) myRootID = msg->rootID; else if (msg->rootID > myID || msg->seqNum <= highestSeqNum) return; highestSeqNum = msg->seqNum; if (myRootID < myID) heartBeats = 0; if (numEntries >= NUMENTRIES_LIMIT && getError(msg) > TIME_ERROR_LIMIT) clearRegressionTable(); else addEntryAndEstimateDrift(msg); }
J¨ urgen Sch¨
alder Advanced Distributed Systems
event Timer.fired() { ++heartBeats; if (myRootID != myID) && heartBeats >= ROOT_TIMEOUT) myRootID = myID; if (numEntries >= NUMENTRIES_LIMIT || myRootID == myID) { msg.rootID = myRootID; msg.seqNum = highestSeqNum; Radio.send(msg); if (myRootID == myID) ++highestSeqNum; } }
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
Time Synchronization in Ad Hoc Networks. In Proc. ACM Symposium on Mobile Ad Hoc Networking and Computing (MobiHoc 2001), pages 173–182, October 2001.
Time Synchronization and Localization in Sensor Networks. PhD thesis, ETH Zurich, 2005.
Fine-Grained Network Time Synchronization using Reference Broadcasts. In Proc. Fifth Symposium on Operating Systems Design and Implementation (OSDI 2002), pages 147–163, December 2002.
Time Synchronization in Wireless Sensor Networks. PhD thesis, University of California Los Angeles, 2003.
edeczi. The Flooding Time Synchronization Protocol. In Proc. of the ACM Conference on Embedded Networked Sensor Systems (SenSys’04), November 2004.
Firefly-Inspired Sensor Network Synchronicity with Realistic Radio Effects. In Proc. of the ACM Conference on Embedded Networked Sensor Systems (SenSys’05), November 2005. J¨ urgen Sch¨
alder Advanced Distributed Systems
20 Wave Algorithms and their Properties 21 Equivalence with Related Problems
22 Wave Algorithms
23 Traversal Algorithms
J¨ urgen Sch¨
alder Advanced Distributed Systems
20 Wave Algorithms and their Properties 21 Equivalence with Related Problems
22 Wave Algorithms
23 Traversal Algorithms
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
20 Wave Algorithms and their Properties 21 Equivalence with Related Problems
22 Wave Algorithms
23 Traversal Algorithms
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
20 Wave Algorithms and their Properties 21 Equivalence with Related Problems
22 Wave Algorithms
23 Traversal Algorithms
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
20 Wave Algorithms and their Properties 21 Equivalence with Related Problems
22 Wave Algorithms
23 Traversal Algorithms
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems
Introduction to Distributed Algorithms. Cambridge University Press, 2 edition, 2000. J¨ urgen Sch¨
alder Advanced Distributed Systems
J¨ urgen Sch¨
alder Advanced Distributed Systems