sending and forgetting termination of amnesiac flooding
play

SENDING AND FORGETTING: TERMINATION OF AMNESIAC FLOODING ON A - PowerPoint PPT Presentation

SENDING AND FORGETTING: TERMINATION OF AMNESIAC FLOODING ON A GRAPH* WALTER HUSSAK AND AMITABH TREHAN LOUGHBOROUGH UNIVERSITY On the Termination of Flooding. STACS 2020 * * On Termination of a Flooding Process (Brief Announcement). PODC 2019


  1. SENDING AND FORGETTING: TERMINATION OF AMNESIAC FLOODING ON A GRAPH* WALTER HUSSAK AND AMITABH TREHAN LOUGHBOROUGH UNIVERSITY On the Termination of Flooding. STACS 2020 * * On Termination of a Flooding Process (Brief Announcement). PODC 2019 www.amitabhtrehan.net www.huntforthetowel.wordpress.com

  2. THE AMNESIAC AMBITIOUS WHATSAPPERS! Creatur et ti at ex it ts among su us - maybe rj ght now (in thf au dj ence!) - O fu en wi ti a deep inter et t in politics and unwi tu ingly purveyors of fake news! Sending and Forgetting: Termination of Amnesiac Flooding

  3. THE AMNESIAC AMBITIOUS WHATSAPPERS! • Forward every message they receive! • However, very discerning persons (at least in their mind!): • Do not forward messages back to the person received from! • But forgetful - too many messages/too little time! • Forget if the person had sent the message some time before! • Will flood again if `asked’! Q: Will that annoying WhatsApp message ever stop? Sending and Forgetting: Termination of Amnesiac Flooding

  4. FORMAL MODEL • A graph G(V,E) is a formal model for a network • Graph G: The network • V: Vertices are the nodes • E: Edges are the connections

  5. FORMAL MODEL • The graph G(V,E) is a formal model for a network. • Message passing: nodes only communicate by sending messages. A. Synchronous and Reliable: communication in synchronous rounds, messages delivered by end of the round sent in. B. Adaptive Round asynchronous: ‘global’ rounds but adaptive adversary decides the delay on each edge Sending and Forgetting: Termination of Amnesiac Flooding

  6. GAME:THE AMNESIAC AMBITIOUS WHATSAPPER! WORD OF MOUTH ANNOUNCEMENT Class in Pub at 7 pm! Problem: Inform everyone about class = Message M! Solution: Send/ Broadcast/Flood M from a source to every node in the network!

  7. AMNESIAC FLOODING (AF)! I hate that I hate that Flooding: `dumb’ but most fundamental of politician! politician! distributed algorithms AF: Flooding with a slight twist! Ambitious WhatsApper : If I have a message, I will forward! Amnesiac WhatsApper: I shalt not remember the past! Polite WhatsApper: If you have just sent me the message, I will not flood it back! • Nodes only remember previous round (no explicit message flags) • Send messages to exactly all those who did not send to it in the previous round

  8. More formally: Amnesiac Flooding (AF) Start: A distinguished node l Round 1: l sends message M to all neighbours Round i ( > 1): If node v receives M from neighbours R in round i-1 , v floods to n(v)/R (i.e. neighbours besides R ) Q1: Does AF terminate? Q2: If AF terminates, how long does it take? *Termination: M is not sent in a round (and subsequent rounds) by any node in the network Termination time: The number of rounds AF takes i.e. last round with a transmission Sending and Forgetting: Termination of Amnesiac Flooding

  9. AMNESIAC FLOODING: TERMINATION Amnesiac Flooding Start: A distinguished node l Round 1: l sends message M to all neighbours Round i ( > 1): If node v receives M from neighbours R in round i-1 , v floods to n(v)/R (i.e. neighbours besides R ) Q1: Does this process terminate? Let’s try some examples 1. Line Graph: a b c d a b c d a b c d Round 1 Round 2 Round 3 Sending and Forgetting: Termination of Amnesiac Flooding

  10. AMNESIAC FLOODING: TERMINATION Amnesiac Flooding Start: A distinguished node l Round 1: l sends message M to all neighbours Round i ( > 1): If node v receives M from neighbours R in round i-1 , v floods to n(v)/R (i.e. neighbours besides R ) Q1: Does this process terminate? 2. Triangle/Clique/Odd Cycle: b b b a c a c a c Round 2 Round 1 Round 3 b a c Round 4 Sending and Forgetting: Termination of Amnesiac Flooding

  11. AMNESIAC FLOODING: TERMINATION Amnesiac Flooding Start: A distinguished node l Round 1: l sends message M to all neighbours Round i ( > 1): If node v receives M from neighbours R in round i-1 , v floods to n(v)/R (i.e. neighbours besides R ) Q1: Does this process terminate? 3. Even Cycle: c c c b b b a d a d a d Round 2 Round 1 Round 3

  12. AMNESIAC FLOODING: TERMINATION Amnesiac Flooding Start: A distinguished node l Round 1: l sends message M to all neighbours Round i ( > 1): If node v receives M from neighbours R in round i-1 , v floods to n(v)/R (i.e. neighbours besides R ) Q1: Does this process terminate? 3. More complex topologies: e e e e c c c b b b c b f f f f a d a d a d a d Round 1 Round 2 Round 3 Round 4 e e e c c c b b b f f f a d a d a d Round 5 Round 6 Round 7

  13. AMNESIAC FLOODING: TERMINATION Amnesiac Flooding Start: A distinguished node l Round 1: l sends message M to all neighbours Round i ( > 1): If node v receives M from neighbours R in round i-1 , v floods to n(v)/R (i.e. neighbours besides R ) Q1: Does this process terminate? 3. More complex topologies: Hypercube Petersen Graph Sending and Forgetting: Termination of Amnesiac Flooding

  14. AMNESIAC FLOODING: TERMINATION Amnesiac Flooding Start: A distinguished node l Round 1: l sends message M to all neighbours Round i ( > 1): If node v receives M from neighbours R in round i-1 , v floods to n(v)/R (i.e. neighbours besides R ) Q1: Does this process terminate? 3. More complex topologies: Hypercube Petersen Graph T = 3 rounds T = 5 rounds Diameter = 3 Diameter = 2 Why such different termination times? Sending and Forgetting: Termination of Amnesiac Flooding

  15. AF TERMINATION DOES AF TERMINATE? ON EVERY GRAPH? IS IT QUICK? Sending and Forgetting: Termination of Amnesiac Flooding

  16. AF TERMINATION DOES AF TERMINATE? YES ON EVERY GRAPH? YES

  17. AF TERMINATION Theorem 1. Given a finite graph G, Amnesiac Flooding (AF) from a single source will terminate in a finite number of rounds Proof. Proof is by contradiction High level idea: - Define round-sets as set of nodes receiving M in a particular round - Consider sequences of round-sets E of even duration: Condition of non-termination: There must be at least one E having the same node repeated! - We show this is not possible! R 0 = {b} b E.g. R1 = {a,c} R2 = {a,c} R3 = {b} R4 = {} a c

  18. AF TERMINATION Theorem 1. Given a finite graph G, Amnesiac Flooding (AF) from a single source will terminate in a finite number of rounds Detailed Proof. Proof is by contradiction R } Definition. Round-sets: R 0 R s R s+d R 0 , R 1 , … R 0 : Singleton with node l R i : Set of nodes receiving a message at round i (>0) Define R to be the set of finite sequences of the form where , and R = R s , …, R s + d R s ∩ R s + d ≠ ∅ s ≥ 0 d ≥ 0 Consider R e to be subset of R where d is even. Claim 1. If AF does not terminate, R e will be non-empty

  19. AF TERMINATION Theorem 1. Given a finite graph G, Amnesiac Flooding (AF) from a single source will terminate in a finite number of rounds Claim 1. If AF does not terminate, R e will be non-empty Proof. G is finite, therefore, if AF does not terminate, a node x must occur in infinitely many round-sets. Consider the first 3 such round- sets (e.g. 2,5, and 7); Surely at least two of these are evenly spaced. Thus, R e is non-empty. For the proof of Theorem 1, assume that R e is non-empty and derive a contradiction.

  20. AF TERMINATION Theorem 1. Given a finite graph G, Amnesiac Flooding (AF) from a single source will terminate in a finite number of rounds Detailed Proof. Claim 1. If AF does not terminate, R e Assume R e is non-empty will be non-empty Consider the first smallest sequence in the set R e ! i.e. R * = R ms , …, R ms + md Where md is the shortest duration of any sequence and ms is the earliest starting point of such sequences Consider a node x common to R ms and R ms+md (exists by assumption) and a node y which sent M to node x in round R ms+md : Case 1. y also sent M to x in round ms OR Case 2. x sent M to y in round ms+1

  21. AF TERMINATION Theorem 1. Given a finite graph G, Amnesiac Flooding (AF) from a single source will terminate in a finite number of rounds Claim 1. If AF does not Case 1. y also sent M to x in round ms terminate, R e will be non-empty y x y x The first smallest R m s+md sequence in the set R e ! R m s-1 R m s R m s+md-1 R * = R ms , …, R ms + md Thus, round ms-1 is either 0 and y is origin node l node x in R ms and R ms+md Or y received M in round ms-1 (> 0): node y: sent M to x in R ms+md R * ′ � = R ms − 1 , …, R ms + md − 1 Either way, there is a sequence of even min-duration md but earlier start point ms-1 with R ms − 1 ∩ R ms + md − 1 ≠ ∅ Contradiction.

  22. AF TERMINATION Theorem 1. Given a finite graph G, Amnesiac Flooding (AF) from a single source will terminate in a finite number of rounds Claim 1. If AF does not Case 2. x sent M to y in round ms+1 terminate, R e will be non-empty x y y x The first smallest R m s+md sequence in the set R e ! R m s R m s+1 R m s+md-1 R * = R ms , …, R ms + md By definition, smallest value of md is 2 i.e. x y x Maybe but this is not possible node x in R ms and R ms+md R m s R m s+1 R m s+2 node y: sent M to x in R ms+md due to politeness!! R * ′ � ′ � = R ms +1 , …, R ms + md − 1 Thus, there is a sequence Of even duration md - 2 with y repeating i.e. R ms +1 ∩ R ms + md − 1 ≠ ∅ Contradiction. Hence proved.

  23. AF TERMINATION DOES (SYNCHRONOUS) AF TERMINATE? YES ON EVERY GRAPH? YES IS IT QUICK? YES Sending and Forgetting: Termination of Amnesiac Flooding

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend