Election Algorithms. has elected i. will eventually set elected i
|
|
- Jesse Job Morgan
- 5 years ago
- Views:
Transcription
1 Election Algorithms Election 8 algorithm designed to designate one unique rocess out of a set of rocesses with similar caabilities to take over certain functions in a distributes system central server for mutual exclusion ring master in token ring networks bus master 8 necessary when system is booted server fails server retires 8 roerties, to be valid during any articular run of the system E1: a rocess i has elected i = (undefined) or elected i = P for some non-crashed rocess P that will be chosen at the end of the run with the largest identifier (safety) E2: all rocesses i will eventually set elected i (liveness) 8 erformance network bandwidth utilization (roortional to total number of messages sent) turnaround time: number of serialized message transmission times between initiation and termination of a single run Distributed Systems - Fall 2001 IV - 27 Stefan Leue 2001
2 Election Algorithms Ring-based Algorithm 8 assumtions all nodes communicate on uni-directional ring structure all rocesses have unique integer id asynchronous, reliable system 8 initially, all rocesss marked non-articiant 8 to begin election, rocess lace election message with own identifier on ring and marks itself articiant 8 uon receit of election message, comare received identifier with own if received id greater than own id, forward message to neighbour if received id smaller than own id, iif own status is non-articiant, then substitute own id in election message and foward on ring iotherwise, do not forward message (already articiant ) if received id is identical to own id ithis rocess s id must be greatest and it becomes elected imarks own status as non-articiant isends out elected message 8 uon any forwarding, mark own state as articiant 8 when receiving elected message mark own status as non-articiant set elected i aroriately and forward elected message Distributed Systems - Fall 2001 IV - 28 Stefan Leue 2001
3 Election Algorithms Ring-based Algorithm 8 roerties E1 satisfied, since all identifiers are comared E2 follows from reliable communication roerty 8 erformance at worst 2N-1 messages for electing the left-hand neighbour another N elected messages 8 failures tolerates no failures Distributed Systems - Fall 2001 IV - 29 Stefan Leue 2001
4 Election Algorithms The Bully-Algorithm 8 works for synchronous networks nodes can crash, and crashes will be detected reliably 8 assumtions each node knows identifiers of all other nodes every node can communicate with every other node 8 message tyes election: announce an election answer: rely to an election message coordinator: announce identity of elected rocess Distributed Systems - Fall 2001 IV - 30 Stefan Leue 2001
5 Election Algorithms The Bully-Algorithm 8 initiation of algorithm: reliable failure detection a eer rocess failed if no answer to request within it = 2T trans + T rocess 8 rocess can decide whether to become coordinator by comaring own id with all other ids (highest wins) announce by sending coordinator message to all other nodes with lower id 8 rocess with lower id can bid to become coordinator by sending election message to all rocesses with higher ID if no resonse within T, considers itself elected coordinator, sends coordinator message to all rocesses with lower id otherwise, wait for another T time units for a coordinator message to arrive from new coordinator iif no resonse, then begin another election rocess 8 rocess receiving election message sets variable election i to the id of the coordinator received in the election message 8 if rocess receives election message, sends back an answer message and begins another election - unless one was already initiated 8 new rocess relacing crashed rocess if highest id, will immediately send coordinator message and bully current coordinator to resign Distributed Systems - Fall 2001 IV - 31 Stefan Leue 2001
6 The Bully Algorithm 8 examle Election Algorithms The election of coordinator 2, after the failure of 4 and then 3 Stage Stage Stage Stage Addison-Wesley Publishers 2000 Distributed Systems - Fall 2001 IV - 32 Stefan Leue 2001
7 The Bully Algorithm 8 examle Election Algorithms election The election of coordinator 2, after the failure of 4 and then 3 Stage 1 1 election answer 2 answer 3 election C 4 Stage 2 election answer election C timeout Stage Eventually... Stage 4 coordinator C Addison-Wesley Publishers 2000 Distributed Systems - Fall 2001 IV - 33 Stefan Leue 2001
8 Election Algorithms The Bully Algorithm 8 roerties E1 satisfied (if no rocess relaced and timeout T estimate accurate) E2 satisfied (synchronous network, reliable transmission) E1 not satisfied if crashed rocess relaced at the same time while another rocess has announced that it is the new coordinator 8 erformance best case: rocess with the second highest identifier detects coordinators failure ielects itself coordinator and sends N-2 coordinator messages requires O(N 2 ) messages in worst case when lowest id detects failure in-1 rocesses with higher IDs start election Distributed Systems - Fall 2001 IV - 34 Stefan Leue 2001
9 Multicast 8 grou communication sending and delivery of messages to more than one receiient ireceiving of message: queueing of arriving message in network interface buffer idelivery of message: assing message from network interface buffer to to target alication membershi in receiient grou transarent to sender ione send oeration to one address without having to send individual messages to all receiients 8 issues addressing coordination iguarantees that messages are received by a grou of receiients idelivery ordering amongst grou members 8 uses of multicast Comuter Suorted Collaborative Work (CSCW) communication with relicated servers (to achieve fault-tolerance) event notification in networks discovery services in sontaneous networking Distributed Systems - Fall 2001 IV - 35 Stefan Leue 2001
10 IP-based Multicast 8 only imlemented by some IP routers 8 available for UDP transort service 8 addressing: multicast address and ort number 8 IP multicast grou class D IP address for which first 4 bits are 1110 in IPv4 membershi is dynamic comuter belongs to multicast grou if one or more rocesses have sockets that belong to a multicast grou 8 imlementation of multicast IP routers on local area networks, use LAN's multicast caabilities (e.g., Ethernet) iuse locally valid multicast address, set Time To Live (TTL) counter in IP header to 1 so that acket will never get routed outside LAN in the Internet, router forwards messages to all other routers that have members in the multicast grou, which in turn forward the datagrams to grou members isession directory (sd) * grahical user interface tool allowing users to advertise multicast sessions as well as their valid multicast addresses 8 no guarantees whatsoever message loss, reordering, dulication, etc. Distributed Systems - Fall 2001 IV - 36 Stefan Leue 2001
11 Proerties of multicast 8 achieves not only transarency, but also enables stronger guarantees than "delivery by hand" efficient use of network hardware irouter sends individual messages iuses tree-like distribution structure if avialabe * two UDP-datagrams to same subnet: two IP ackets, the first delays the second * with IP multicast caabilities, only one IP datagram transmitted iuse of LAN-based multicast caabilities, if available delivery guarantees System model 8 messge m: contains ID of sender and of destination grou multicast(g, m): multicast message m to grou g deliver(m): delivery of a message at receiient 8 multicast grou is closed, if multicast only within oen, if rocesses not member of the grou may send to it Distributed Systems - Fall 2001 IV - 37 Stefan Leue 2001
12 Basic multicast 8 guaranteed delivery, unless multicaster crashes 8 rimitives and imlementation B-multicast(g, m): for each rocess g, send(, m) B-deliver(m) at : when receive(m) at, for all 8 roblem in using concurrent send(, m) oerations ack-imlosion: iall receiients acknowledge receit at about same time ibuffer overflow leads to droing of ack messages iretransmits, even more ack messages Distributed Systems - Fall 2001 IV - 38 Stefan Leue 2001
13 Reliable multicast 8 rimitives R-multicast(m, g) R-deliver(m) 8 desired roerties integrity: a correct rocess delivers a message at most once, and the delivered message is identical to the message sent in the multicast send oeration (safety) validity: if a correct rocess multicasts message m, then it will eventually deliver m (liveness) agreement: if a correct rocess delivers a message m, then all other correct rocesses in the target grou of message m will also deliver message m (additionally) uniform agreement: if a rocess, no matter whether it is correct or fails, delivers a message m, then all correct rocesse in the grou will deliver m as well 8 notes: validity is exressed in terms of self-delivery, for simlicity reasons ivalidity and agreement amount to overall liveness requirement: if one rocess (the sender) delivers a message m, then m will eventually be delivered to all the grou s correct members agreement is similar to atomicity : all-or-nothing semantics Distributed Systems - Fall 2001 IV - 39 Stefan Leue 2001
14 Reliable multicast 8 Imlementation B-multicast to rocesses in grou R-deliver 8 roerties validity: a correct rocess will eventually B-deliver to itself integrity: based on underlying communication medium agreement: B-multicast to all other rocesses after B-deliver 8 inefficient, since each message is sent g times to each rocess Addison-Wesley Publishers 2000 Distributed Systems - Fall 2001 IV - 40 Stefan Leue 2001
15 Reliable Multicast over IP Multicast 8 R-IP-multicast based on observation, that multicast successful in most cases use negative acknowledgement to indicate non-delivery 8 Basic idea closed multicast grous S g : sequence number for grou g that rocess belongs to R g : sequence number of latest message that a rocess has delivered from rocess and that was sent to grou g R-multicasts message to grou g iiggy back onto message * S g * acknowledgements <q, R gq > for all q iip-multicast message and iggy back information iincrement S g by one Distributed Systems - Fall 2001 IV - 41 Stefan Leue 2001
16 Reliable Multicast over IP Multicast 8 Basic idea R-deliver message from ionly if received sequence number S = R g +1 ithen increment R g by 1 iretain any message that cannot yet be delivered in hold-back-queue Message rocessing deliver Hold-back queue Delivery queue Incoming messages When delivery guarantees are met Addison-Wesley Publishers 2000 Distributed Systems - Fall 2001 IV - 42 Stefan Leue 2001
17 Reliable Multicast over IP Multicast 8 Basic idea R-deliver message from iif S R g, then message is already delivered, discard iif S > R g or R > R gq for any enclosed acknowledgement <q, R>, then receiver has missed one or more messages, requests retransmit through negative acknowledgement 8 roerties integrity ifollows from detection of dulicates and roerties of IP multicast (e.g., checksum to detect message corrution) validity imessage loss can only be detected when a successor message is eventually transmitted irequires rocesses to multicast messages indefinitely agreement irequires unbounded history for broadcast messages so that retransmit is always ossible 8 there exist ractical variants that ensure validity and agreement Distributed Systems - Fall 2001 IV - 43 Stefan Leue 2001
18 Ordered Multicast 8 assume: every rocess belongs to at most one grou 8 roerties FIFO ordering: if a correct rocess issues a multicast(g, m) and then multicast(g, m ), then every correct rocess that delivers m will deliver m before m causal ordering: if multicast(g, m) multicast(g, m ), where is induced by message assing only, then every correct rocess that delivers m will deliver m before m total ordering: if a correct rocess delivers m before it delivers m, then any other correct rocess that delivers m will deliver m before m 8 notes causal ordering imlies FIFO ordering FIFO ordering and causal ordering are artial (re-)orders total order allows arbitrary ordering of deliver events relative to multicast events, as long as this order is identical in all correct rocesses atomic multicast: reliable, totally ordered multicast Distributed Systems - Fall 2001 IV - 44 Stefan Leue 2001
19 Ordered Multicast 8 imlementing FIFO ordering S g : sequence number for grou g that rocess belongs to R g : sequence number of latest message that a rocess has delivered from rocess and that was sent to grou g assumtion: non-overlaing grous FO-multicast(m, g) ib-multicast(m, g, < S g >) iincrement S g by 1 uon receit of a message from q with sequence number S iif S = R g +1, then this is the next message, * therefore FO-deliver(m) * R g := S iif S > R g +1, then * lace message on hold-back queue until intervening messages have been delivered and S = R g +1 Distributed Systems - Fall 2001 IV - 45 Stefan Leue 2001
20 Ordered Multicast 8 imlementing total ordering idea: assign totally ordered identifiers to multicast messages so that every rocess makes the same delivery decision based on these identifiers delivery similar to FIFO delivery, only that grou-secific sequence numbers rather than rocess-secific sequence numbers are used assumtion: non-overlaing grous two main methods for the assignment of identifiers isequencer icollective agreement on the assignment of message identifiers Distributed Systems - Fall 2001 IV - 46 Stefan Leue 2001
21 Ordered Multicast 8 imlementing total ordering sequencer irocess wishing to TO-broadcast attaches a unique identifier id(m) to the message imessage is sent to sequencer as well as all members of g isequencer maintains grou-secific sequence number s g which it uses to assign increasing and consecutive sequence numbers to the messages it B-delivers iannounces the order in which members of g have to deliver these messages using a B-multicasted order message Distributed Systems - Fall 2001 IV - 47 Stefan Leue 2001
22 Ordered Multicast 8 imlementing total ordering sequencer Multicast S +1; Addison-Wesley Publishers 2000 Distributed Systems - Fall 2001 IV - 48 Stefan Leue 2001
23 Ordered Multicast 8 imlementing total ordering sequencer is bottleneck (erformance and/or reliability) collective agreement on the assignment of message identifiers iimlemented in the ISIS toolkit igrous may be oen or closed ireceiving rocesses bounce roosed sequence numbers to sender isender returns agreed sequence numbers ieach rocess q in grou g maintains * A gq : the largest agreed sequence number it has observed so far for grou g * P gq : own largest roosed sequence number Distributed Systems - Fall 2001 IV - 49 Stefan Leue 2001
24 Ordered Multicast 8 imlementing total ordering algorithm for collective agreement on the assignment of message identifiers i B-multicasts <m, i> to g, where i is unique identifier for m ieach receiient q relies to g with roosal for agreed sequence number * P gq := max(a gq, P gq ) + 1 * each rocess q rovisionally assigns own roosed sequence number to message and queues message in hold back queue, ordered according to roosed sequence number i chooses largest roosed number as sequence number a i B-multicasts <i, a> to g ieach rocess q in grou * sets A gq := max(a gq, a) * reorders received message in hold-back queue if received sequence number differs from roosed number * only when message at head of hold-back queue is assigned an agreed sequence number, it will be queued in delivery queue Distributed Systems - Fall 2001 IV - 50 Stefan Leue 2001
25 Ordered Multicast 8 imlementing total ordering algorithm for collective agreement on the assignment of message identifiers iobvious, that correct rocesses eventually agree on sequence number ito be shown, that * sequence numbers are monotonically increasing * no rocess delivers message before there is agreement iassume m1 to have agreed sequence number, and to be at head of hold-back queue * a message received after this state should be delivered after m1, it will have larger sequence number than m1 * let m2 another message, not yet with an agreed sequence number, but member of the same queue as m1 * ageedseq(m2) agreedseq(m1) (by construction of algorithm) * roosedseq(m2) > roosedseq(m1) (since m1 at head of queue) * agreedseq(m2) > agreedseq(m1) Distributed Systems - Fall 2001 IV - 51 Stefan Leue 2001
Distributed Systems (5DV147)
Distributed Systems (5DV147) Mutual Exclusion and Elections Fall 2013 1 Processes often need to coordinate their actions Which rocess gets to access a shared resource? Has the master crashed? Elect a new
More informationCoordination and Agreement
Coordination and Agreement 1 Introduction 2 Distributed Mutual Exclusion 3 Multicast Communication 4 Elections 5 Consensus and Related Problems AIM: Coordination and/or Agreement Collection of algorithms
More informationCoordination and Agreement
Coordination and Agreement 12.1 Introduction 12.2 Distributed Mutual Exclusion 12.4 Multicast Communication 12.3 Elections 12.5 Consensus and Related Problems AIM: Coordination and/or Agreement Collection
More informationSlides for Chapter 15: Coordination and Agreement
Slides for Chater 15: Coordination and Agreement From Coulouris, Dollimore, Kindberg and Blair Distributed Systems: Concets and Design Edition 5, Addison-Wesley 2012 Overview of Chater Introduction Distributed
More informationSlides for Chapter 12: Coordination and Agreement
Slides for hater : oordination and greement rom oulouris, ollimore and Kindberg istributed Systems: oncets and esign dition, ailure ssumtions and ailure etectors reliable communication channels rocess
More informationDistributed Systems. 7. Coordination and Agreement
Distributed Systems 7. Coordination and Agreement Werner Nutt 1 Co-ordination Algorithms are fundamental in distributed systems: to dynamically re-assign the role of master choose rimary server after crash
More informationCoordination 2. Today. How can processes agree on an action or a value? l Group communication l Basic, reliable and l ordered multicast
Coordination 2 Today l Group communication l Basic, reliable and l ordered multicast How can processes agree on an action or a value? Modes of communication Unicast 1ç è 1 Point to point Anycast 1è
More informationTime and Coordination in Distributed Systems. Operating Systems
Time and Coordination in Distributed Systems Oerating Systems Clock Synchronization Physical clocks drift, therefore need for clock synchronization algorithms Many algorithms deend uon clock synchronization
More informationMulticast Communication. Brian Nielsen
Multicast Communication Brian Nielsen bnielsen@cs.aau.dk Communication modes in DS Uni-cast Messages are sent from exactly one process to one process Broad-cast Messages are sent from exactly one process
More informationThe UNIVERSITY of EDINBURGH. SCHOOL of INFORMATICS. CS4/MSc. Distributed Systems. Björn Franke. Room 2414
The UNIVERSITY of EDINBURGH SCHOOL of INFORMATICS CS4/MSc Distributed Systems Björn Franke bfranke@inf.ed.ac.uk Room 2414 (Lecture 13: Multicast and Group Communication, 16th November 2006) 1 Group Communication
More informationDistributed Algorithms
Course Outline With grateful acknowledgement to Christos Karamanolis for much of the material Jeff Magee & Jeff Kramer Models of distributed comuting Synchronous message-assing distributed systems Algorithms
More informationRecap: Consensus. CSE 486/586 Distributed Systems Mutual Exclusion. Why Mutual Exclusion? Why Mutual Exclusion? Mutexes. Mutual Exclusion C 1
Reca: Consensus Distributed Systems Mutual Exclusion Steve Ko Comuter Sciences and Engineering University at Buffalo On a synchronous system There s an algorithm that works. On an asynchronous system It
More informationDistributed Systems. coordination Johan Montelius ID2201. Distributed Systems ID2201
Distributed Systems ID2201 coordination Johan Montelius 1 Coordination Coordinating several threads in one node is a problem, coordination in a network is of course worse: failure of nodes and networks
More informationProcess groups and message ordering
Process groups and message ordering If processes belong to groups, certain algorithms can be used that depend on group properties membership create ( name ), kill ( name ) join ( name, process ), leave
More informationDistributed Systems Coordination and Agreement
Distributed Systems Coordination and Agreement Allan Clark School of Informatics University of Edinburgh http://www.inf.ed.ac.uk/teaching/courses/ds Autumn Term 2012 Coordination and Agreement Overview
More informationDistributed Systems Exam 1 Review. Paul Krzyzanowski. Rutgers University. Fall 2016
Distributed Systems 2016 Exam 1 Review Paul Krzyzanowski Rutgers University Fall 2016 Question 1 Why does it not make sense to use TCP (Transmission Control Protocol) for the Network Time Protocol (NTP)?
More informationCoordination 1. To do. Mutual exclusion Election algorithms Next time: Global state. q q q
Coordination 1 To do q q q Mutual exclusion Election algorithms Next time: Global state Coordination and agreement in US Congress 1798-2015 Process coordination How can processes coordinate their action?
More informationCSE 486/586 Distributed Systems
CSE 486/586 Distributed Systems Reliable Multicast (part 1) Slides by Steve Ko Computer Sciences and Engineering University at Buffalo CSE 486/586 Last Time Global state A union of all process states Consistent
More informationDistributed systems. Lecture 6: distributed transactions, elections, consensus and replication. Malte Schwarzkopf
Distributed systems Lecture 6: distributed transactions, elections, consensus and replication Malte Schwarzkopf Last time Saw how we can build ordered multicast Messages between processes in a group Need
More informationPROCESS SYNCHRONIZATION
DISTRIBUTED COMPUTER SYSTEMS PROCESS SYNCHRONIZATION Dr. Jack Lange Computer Science Department University of Pittsburgh Fall 2015 Process Synchronization Mutual Exclusion Algorithms Permission Based Centralized
More informationDistributed Synchronization. EECS 591 Farnam Jahanian University of Michigan
Distributed Synchronization EECS 591 Farnam Jahanian University of Michigan Reading List Tanenbaum Chapter 5.1, 5.4 and 5.5 Clock Synchronization Distributed Election Mutual Exclusion Clock Synchronization
More informationShuigeng Zhou. May 18, 2016 School of Computer Science Fudan University
Query Processing Shuigeng Zhou May 18, 2016 School of Comuter Science Fudan University Overview Outline Measures of Query Cost Selection Oeration Sorting Join Oeration Other Oerations Evaluation of Exressions
More informationCS649 Sensor Networks IP Track Lecture 6: Graphical Models
CS649 Sensor Networks IP Track Lecture 6: Grahical Models I-Jeng Wang htt://hinrg.cs.jhu.edu/wsn06/ Sring 2006 CS 649 1 Sring 2006 CS 649 2 Grahical Models Grahical Model: grahical reresentation of joint
More informationFailure Tolerance. Distributed Systems Santa Clara University
Failure Tolerance Distributed Systems Santa Clara University Distributed Checkpointing Distributed Checkpointing Capture the global state of a distributed system Chandy and Lamport: Distributed snapshot
More informationCSE 486/586 Distributed Systems Reliable Multicast --- 1
Distributed Systems Reliable Multicast --- 1 Steve Ko Computer Sciences and Engineering University at Buffalo Last Time Global states A union of all process states Consistent global state vs. inconsistent
More informationChapter 5: Distributed Systems: Fault Tolerance. Fall 2013 Jussi Kangasharju
Chapter 5: Distributed Systems: Fault Tolerance Fall 2013 Jussi Kangasharju Chapter Outline n Fault tolerance n Process resilience n Reliable group communication n Distributed commit n Recovery 2 Basic
More informationDistributed Systems (5DV020) Group communication. Fall Group communication. Fall Indirect communication
Distributed Systems (5DV020) Group communication Fall 2012 1 Group communication 2 Indirect communication Communication through an intermediary with no direct coupling between the sender and the receiver(s)
More informationCoordination and Agreement
Coordination and Agreement Nicola Dragoni Embedded Systems Engineering DTU Informatics 1. Introduction 2. Distributed Mutual Exclusion 3. Elections 4. Multicast Communication 5. Consensus and related problems
More informationDifferent Layers Lecture 20
Different Layers Lecture 20 10/15/2003 Jian Ren 1 The Network Layer 10/15/2003 Jian Ren 2 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every host,
More informationThe Anubis Service. Paul Murray Internet Systems and Storage Laboratory HP Laboratories Bristol HPL June 8, 2005*
The Anubis Service Paul Murray Internet Systems and Storage Laboratory HP Laboratories Bristol HPL-2005-72 June 8, 2005* timed model, state monitoring, failure detection, network artition Anubis is a fully
More informationNetwork Protocols. Sarah Diesburg Operating Systems CS 3430
Network Protocols Sarah Diesburg Operating Systems CS 3430 Protocol An agreement between two parties as to how information is to be transmitted A network protocol abstracts packets into messages Physical
More informationAn Indexing Framework for Structured P2P Systems
An Indexing Framework for Structured P2P Systems Adina Crainiceanu Prakash Linga Ashwin Machanavajjhala Johannes Gehrke Carl Lagoze Jayavel Shanmugasundaram Deartment of Comuter Science, Cornell University
More informationCS455: Introduction to Distributed Systems [Spring 2018] Dept. Of Computer Science, Colorado State University
CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [ELECTION ALGORITHMS] Shrideep Pallickara Computer Science Colorado State University Frequently asked questions from the previous class survey Does a process
More informationLocal Area Networks and the Network Protocol Stack
Local Area Networks and the CSC362, Information Security Introduction problems inherent in transmitting packets network topologies network protocol stack Packet Switching Problems packet switching can
More informationProcess Synchroniztion Mutual Exclusion & Election Algorithms
Process Synchroniztion Mutual Exclusion & Election Algorithms Paul Krzyzanowski Rutgers University November 2, 2017 1 Introduction Process synchronization is the set of techniques that are used to coordinate
More informationUser Datagram Protocol
Topics Transport Layer TCP s three-way handshake TCP s connection termination sequence TCP s TIME_WAIT state TCP and UDP buffering by the socket layer 2 Introduction UDP is a simple, unreliable datagram
More informationLast Class: Clock Synchronization. Today: More Canonical Problems
Last Class: Clock Synchronization Logical clocks Vector clocks Global state Lecture 12, page 1 Today: More Canonical Problems Distributed snapshot and termination detection Election algorithms Bully algorithm
More informationAdvanced Topics in Distributed Systems. Dr. Ayman A. Abdel-Hamid. Computer Science Department Virginia Tech
Advanced Topics in Distributed Systems Dr. Ayman A. Abdel-Hamid Computer Science Department Virginia Tech Synchronization (Based on Ch6 in Distributed Systems: Principles and Paradigms, 2/E) Synchronization
More informationLast time. Distributed systems Lecture 6: Elections, distributed transactions, and replication. DrRobert N. M. Watson
Distributed systems Lecture 6: Elections, distributed transactions, and replication DrRobert N. M. Watson 1 Last time Saw how we can build ordered multicast Messages between processes in a group Need to
More informationFundamental Interaction Model
Fundamental Interaction Model Synchronous distributed system 8 time to execute each step of computation within a process has known lower and upper bounds 8 message delivery times are bounded to a known
More informationControl plane and data plane. Computing systems now. Glacial process of innovation made worse by standards process. Computing systems once upon a time
Classical work Architecture A A A Intro to SDN A A Oerating A Secialized Packet A A Oerating Secialized Packet A A A Oerating A Secialized Packet A A Oerating A Secialized Packet Oerating Secialized Packet
More informationBasic vs. Reliable Multicast
Basic vs. Reliable Multicast Basic multicast does not consider process crashes. Reliable multicast does. So far, we considered the basic versions of ordered multicasts. What about the reliable versions?
More informationClock Synchronization. Synchronization. Clock Synchronization Algorithms. Physical Clock Synchronization. Tanenbaum Chapter 6 plus additional papers
Clock Synchronization Synchronization Tanenbaum Chapter 6 plus additional papers Fig 6-1. In a distributed system, each machine has its own clock. When this is the case, an event that occurred after another
More information10 File System Mass Storage Structure Mass Storage Systems Mass Storage Structure Mass Storage Structure FILE SYSTEM 1
10 File System 1 We will examine this chater in three subtitles: Mass Storage Systems OERATING SYSTEMS FILE SYSTEM 1 File System Interface File System Imlementation 10.1.1 Mass Storage Structure 3 2 10.1
More informationFrequently asked questions from the previous class survey
CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [DISTRIBUTED COORDINATION/MUTUAL EXCLUSION] Shrideep Pallickara Computer Science Colorado State University L22.1 Frequently asked questions from the previous
More informationCS455: Introduction to Distributed Systems [Spring 2018] Dept. Of Computer Science, Colorado State University
Frequently asked questions from the previous class survey CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [DISTRIBUTED COORDINATION/MUTUAL EXCLUSION] Shrideep Pallickara Computer Science Colorado State University
More informationChapter 4 Network Layer
Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley, July 2004. Network Layer 4-1 Chapter 4: Network Layer Chapter
More information殷亚凤. Synchronization. Distributed Systems [6]
Synchronization Distributed Systems [6] 殷亚凤 Email: yafeng@nju.edu.cn Homepage: http://cs.nju.edu.cn/yafeng/ Room 301, Building of Computer Science and Technology Review Protocols Remote Procedure Call
More informationContinuous Real Time Data Transfer with UDP/IP
Continuous Real Time Data Transfer with UDP/IP 1 Emil Farkas and 2 Iuliu Szekely 1 Wiener Strasse 27 Leopoldsdorf I. M., A-2285, Austria, farkas_emil@yahoo.com 2 Transilvania University of Brasov, Eroilor
More informationRouter Architecture Overview
Chapter 4: r Introduction (forwarding and routing) r Review of queueing theory r Router design and operation r IP: Internet Protocol m IPv4 (datagram format, addressing, ICMP, NAT) m Ipv6 r Generalized
More informationDistributed Systems Exam 1 Review Paul Krzyzanowski. Rutgers University. Fall 2016
Distributed Systems 2015 Exam 1 Review Paul Krzyzanowski Rutgers University Fall 2016 1 Question 1 Why did the use of reference counting for remote objects prove to be impractical? Explain. It s not fault
More informationDistributed Systems. Pre-Exam 1 Review. Paul Krzyzanowski. Rutgers University. Fall 2015
Distributed Systems Pre-Exam 1 Review Paul Krzyzanowski Rutgers University Fall 2015 October 2, 2015 CS 417 - Paul Krzyzanowski 1 Selected Questions From Past Exams October 2, 2015 CS 417 - Paul Krzyzanowski
More informationUDP, TCP, IP multicast
UDP, TCP, IP multicast Dan Williams In this lecture UDP (user datagram protocol) Unreliable, packet-based TCP (transmission control protocol) Reliable, connection oriented, stream-based IP multicast Process-to-Process
More informationImpossibility of Agreement in Asynchronous Systems
Consensus protocol P 8 schedule from C finite or infinite sequence σ of events that can be applied, in turn, from C a run is the sequence of steps associated with a schedule let σ finite, then C' = σ(c)
More informationDISTRIBUTED SYSTEMS [COMP9243] Lecture 5: Synchronisation and Coordination (Part 2) TRANSACTION EXAMPLES TRANSACTIONS.
TRANSACTIONS Transaction: DISTRIBUTED SYSTEMS [COMP94] Comes from database world Defines a sequence of operations Atomic in presence of multiple clients and failures Slide Lecture 5: Synchronisation and
More informationDISTRIBUTED SYSTEMS [COMP9243] Lecture 5: Synchronisation and Coordination (Part 2) TRANSACTION EXAMPLES TRANSACTIONS.
TRANSACTIONS Transaction: DISTRIBUTED SYSTEMS [COMP94] Comes from database world Defines a sequence of operations Atomic in presence of multiple clients and failures Slide Lecture 5: Synchronisation and
More informationParallel and Distributed Systems. Programming Models. Why Parallel or Distributed Computing? What is a parallel computer?
Parallel and Distributed Systems Instructor: Sandhya Dwarkadas Department of Computer Science University of Rochester What is a parallel computer? A collection of processing elements that communicate and
More informationModeling Reliable Broadcast of Data Buffer over Wireless Networks
JOURNAL OF INFORMATION SCIENCE AND ENGINEERING 3, 799-810 (016) Short Paer Modeling Reliable Broadcast of Data Buffer over Wireless Networs Deartment of Comuter Engineering Yeditee University Kayışdağı,
More informationLecture 16: Network Layer Overview, Internet Protocol
Lecture 16: Network Layer Overview, Internet Protocol COMP 332, Spring 2018 Victoria Manfredi Acknowledgements: materials adapted from Computer Networking: A Top Down Approach 7 th edition: 1996-2016,
More informationNew Techniques for Making Transport Protocols Robust to Corruption-Based Loss
New Techniques for Making Transort Protocols Robust to Corrution-Based Loss Wesley M. Eddy NASA GRC / Verizon weddy@grc.nasa.gov Shawn Ostermann Ohio University ostermann@eecs.ohiou.edu Mark Allman ICSI
More informationinternet technologies and standards
Institute of Telecommunications Warsaw University of Technology 2017 internet technologies and standards Piotr Gajowniczek Andrzej Bąk Michał Jarociński Network Layer The majority of slides presented in
More informationCS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [DISTRIBUTED MUTUAL EXCLUSION] Frequently asked questions from the previous class survey
CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [DISTRIBUTED MUTUAL EXCLUSION] Shrideep Pallickara Computer Science Colorado State University L23.1 Frequently asked questions from the previous class survey
More informationCS455: Introduction to Distributed Systems [Spring 2018] Dept. Of Computer Science, Colorado State University
CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [DISTRIBUTED MUTUAL EXCLUSION] Frequently asked questions from the previous class survey Yes. But what really is a second? 1 second ==time for a cesium 133 atom
More informationModule 7 Internet And Internet Protocol Suite
Module 7 Internet And Internet Protocol Suite Lesson 22 IP addressing. ICMP LESSON OBJECTIVE General The lesson will continue the discussion on IPv4 along with the idea of ICMP. Specific The focus areas
More informationMultiple unconnected networks
TCP/IP Life in the Early 1970s Multiple unconnected networks ARPAnet Data-over-cable Packet satellite (Aloha) Packet radio ARPAnet satellite net Differences Across Packet-Switched Networks Addressing Maximum
More informationInternet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.
Internet Layers Application Application Transport Transport Network Network Network Network Link Link Link Link Ethernet Fiber Optics Physical Layer Wi-Fi ARP requests and responses IP: 192.168.1.1 MAC:
More informationET4254 Communications and Networking 1
Topic 9 Internet Protocols Aims:- basic protocol functions internetworking principles connectionless internetworking IP IPv6 IPSec 1 Protocol Functions have a small set of functions that form basis of
More informationDistributed Algorithms Reliable Broadcast
Distributed Algorithms Reliable Broadcast Alberto Montresor University of Trento, Italy 2016/04/26 This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Contents
More informationLecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen
Lecture 4 - Network Layer Networks and Security Jacob Aae Mikkelsen IMADA September 23, 2013 September 23, 2013 1 / 67 Transport Layer Goals understand principles behind network layer services: network
More informationSynchronization. Chapter 5
Synchronization Chapter 5 Clock Synchronization In a centralized system time is unambiguous. (each computer has its own clock) In a distributed system achieving agreement on time is not trivial. (it is
More informationContents. Configuring GRE 1
Contents Configuring GRE 1 Overview 1 GRE encapsulation format 1 GRE tunnel operating principle 1 GRE security mechanisms 2 GRE application scenarios 2 Protocols and standards 4 Configuring a GRE/IPv4
More informationNetworks. Distributed Systems. Philipp Kupferschmied. Universität Karlsruhe, System Architecture Group. May 6th, 2009
Networks Distributed Systems Philipp Kupferschmied Universität Karlsruhe, System Architecture Group May 6th, 2009 Philipp Kupferschmied Networks 1/ 41 1 Communication Basics Introduction Layered Communication
More information1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24
EE 586 Communication and Switching Networks (Fall 2010) Lecture 24 October 25, 2010 1-1 Announcements Midterm 1: Mean = 92.2 Stdev = 8 Still grading your programs (sorry about the delay) Network Layer
More informationCommunication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner
Communication Networks (0368-3030) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University Allon Wagner Kurose & Ross, Chapter 4 (5 th ed.) Many slides adapted from: J. Kurose & K. Ross
More informationCS164 Final Exam Winter 2013
CS164 Final Exam Winter 2013 Name: Last 4 digits of Student ID: Problem 1. State whether each of the following statements is true or false. (Two points for each correct answer, 1 point for each incorrect
More informationIP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia
IP - The Internet Protocol Based on the slides of Dr. Jorg Liebeherr, University of Virginia Orientation IP (Internet Protocol) is a Network Layer Protocol. IP: The waist of the hourglass IP is the waist
More informationFault Tolerance Part II. CS403/534 Distributed Systems Erkay Savas Sabanci University
Fault Tolerance Part II CS403/534 Distributed Systems Erkay Savas Sabanci University 1 Reliable Group Communication Reliable multicasting: A message that is sent to a process group should be delivered
More informationCSE 5306 Distributed Systems. Synchronization
CSE 5306 Distributed Systems Synchronization 1 Synchronization An important issue in distributed system is how processes cooperate and synchronize with one another Cooperation is partially supported by
More informationEP2200 Performance analysis of Communication networks. Topic 3 Congestion and rate control
EP00 Performance analysis of Communication networks Toic 3 Congestion and rate control Congestion, rate and error control Lecture material: Bertsekas, Gallager, Data networks, 6.- I. Kay, Stochastic modeling,
More informationDistributed Systems Question Bank UNIT 1 Chapter 1 1. Define distributed systems. What are the significant issues of the distributed systems?
UNIT 1 Chapter 1 1. Define distributed systems. What are the significant issues of the distributed systems? 2. What are different application domains of distributed systems? Explain. 3. Discuss the different
More informationCS 5520/ECE 5590NA: Network Architecture I Spring Lecture 13: UDP and TCP
CS 5520/ECE 5590NA: Network Architecture I Spring 2008 Lecture 13: UDP and TCP Most recent lectures discussed mechanisms to make better use of the IP address space, Internet control messages, and layering
More informationCSCE 463/612 Networks and Distributed Processing Spring 2018
CSCE 463/612 Networks and Distributed Processing Spring 2018 Network Layer II Dmitri Loguinov Texas A&M University April 3, 2018 Original slides copyright 1996-2004 J.F Kurose and K.W. Ross 1 Chapter 4:
More informationDistributed Operating Systems. Distributed Synchronization
2 Distributed Operating Systems Distributed Synchronization Steve Goddard goddard@cse.unl.edu http://www.cse.unl.edu/~goddard/courses/csce855 1 Synchronization Coordinating processes to achieve common
More informationDistributed Systems 8L for Part IB
Distributed Systems 8L for Part IB Handout 3 Dr. Steven Hand 1 Distributed Mutual Exclusion In first part of course, saw need to coordinate concurrent processes / threads In particular considered how to
More informationInstitute of Computer Technology - Vienna University of Technology. L73 - IP QoS Integrated Services Model. Integrated Services Model
Integrated Services Model IP QoS IntServ Integrated Services Model Resource Reservation Protocol (RSVP) Agenda Integrated Services Principles Resource Reservation Protocol RSVP Message Formats RSVP in
More informationKing Fahd University of Petroleum and Minerals College of Computer Sciences and Engineering Department of Computer Engineering
Student Name: Section #: King Fahd University of Petroleum and Minerals College of Computer Sciences and Engineering Department of Computer Engineering COE 344 Computer Networks (T072) Final Exam Date
More informationIntroduction to Internetworking
Introduction to Internetworking Introductory terms Communications Network Facility that provides data transfer services An internet Collection of communications networks interconnected by bridges and/or
More informationhas been retired This version of the software Sage Timberline Office Get Started Document Management 9.8 NOTICE
This version of the software has been retired Sage Timberline Office Get Started Document Management 9.8 NOTICE This document and the Sage Timberline Office software may be used only in accordance with
More informationDesign Intentions. IP QoS IntServ. Agenda. Design Intentions. L73 - IP QoS Integrated Services Model. L73 - IP QoS Integrated Services Model
Design Intentions Integrated Services Model IP QoS IntServ Integrated Services Model Resource Reservation Protocol (RSVP) The Internet was based on a best effort packet delivery service, but nowadays the
More informationLecture 8. Network Layer (cont d) Network Layer 1-1
Lecture 8 Network Layer (cont d) Network Layer 1-1 Agenda The Network Layer (cont d) What is inside a router Internet Protocol (IP) IPv4 fragmentation and addressing IP Address Classes and Subnets Network
More informationConsensus and related problems
Consensus and related problems Today l Consensus l Google s Chubby l Paxos for Chubby Consensus and failures How to make process agree on a value after one or more have proposed what the value should be?
More informationSelected Questions. Exam 2 Fall 2006
Selected Questions Exam 2 Fall 2006 Page 1 Question 5 The clock in the clock tower in the town of Chronos broke. It was repaired but now the clock needs to be set. A train leaves for the nearest town,
More informationII. Principles of Computer Communications Network and Transport Layer
II. Principles of Computer Communications Network and Transport Layer A. Internet Protocol (IP) IPv4 Header An IP datagram consists of a header part and a text part. The header has a 20-byte fixed part
More informationCS457 Transport Protocols. CS 457 Fall 2014
CS457 Transport Protocols CS 457 Fall 2014 Topics Principles underlying transport-layer services Demultiplexing Detecting corruption Reliable delivery Flow control Transport-layer protocols User Datagram
More informationSensitivity Analysis for an Optimal Routing Policy in an Ad Hoc Wireless Network
1 Sensitivity Analysis for an Otimal Routing Policy in an Ad Hoc Wireless Network Tara Javidi and Demosthenis Teneketzis Deartment of Electrical Engineering and Comuter Science University of Michigan Ann
More informationChapter 4: Network Layer
Chapter 4: Introduction (forwarding and routing) Review of queueing theory Routing algorithms Link state, Distance Vector Router design and operation IP: Internet Protocol IPv4 (datagram format, addressing,
More informationAnnouncements Computer Networking. Outline. Transport Protocols. Transport introduction. Error recovery & flow control. Mid-semester grades
Announcements 15-441 Computer Networking Lecture 16 Transport Protocols Mid-semester grades Based on project1 + midterm + HW1 + HW2 42.5% of class If you got a D+,D, D- or F! must meet with Dave or me
More informationA Comprehensive Minimum Energy Routing Scheme for Wireless Ad hoc Networks
A Comrehensive Minimum Energy Routing Scheme for Wireless Ad hoc Networks Jinhua Zhu, Chunming Qiao and Xin Wang Deartment of Comuter Science and Engineering State University of New York at Buffalo, Buffalo,
More informationFault Tolerance. Distributed Systems. September 2002
Fault Tolerance Distributed Systems September 2002 Basics A component provides services to clients. To provide services, the component may require the services from other components a component may depend
More informationDistributed Systems (ICE 601) Fault Tolerance
Distributed Systems (ICE 601) Fault Tolerance Dongman Lee ICU Introduction Failure Model Fault Tolerance Models state machine primary-backup Class Overview Introduction Dependability availability reliability
More information