Introduction to computer networking - PowerPoint PPT Presentation

About This Presentation
Title:

Introduction to computer networking

Description:

Is it possible that a node i will send messages to all its ... to send a message to its parent p before node j has finished sending messages to ... – PowerPoint PPT presentation

Number of Views:11
Avg rating:3.0/5.0
Slides: 15
Provided by: eran3
Category:

less

Transcript and Presenter's Notes

Title: Introduction to computer networking


1
Introduction to computer networking
  • Distributed Algorithms Class Recitation

2
Ex. 1 - PIF Revisited
  • Given the PIF algorithm
  • Init ?l N(l)?0 m?0 p?0
  • Upon receipt of MSGs(l)
  • N(l)?1
  • if m0 then
  • p?1
  • send MSGs to all l?N-l
  • m?1
  • if ?l holds N(l)1 then
  • send MSGs to p
  • m?0
  • ?l N(l)?0
  • Is it possible that a node i will send messages
    to all its
  • neighbors except its parent, p, before node p
    has?
  • Is it possible for node i to send a message to
    its parent p before node j has finished sending
    messages to its neighbors?

3
T0
4
T3
5
T4
6
T5
7
T6
8
T7
9
T8
10
T11
11
Ex. 2
  • Given the PIFD algorithm, which is similar to the
    PIF algorithm, albeit with a second (other than
    the source) unique node D which behaves
    differently from the other nodes. For each of the
    following claims, determine whether the claim is
    true or false

12
The Claims
  • All the nodes will receive the message after a
    finite time period and all will have m1
    eventually.
  • The algorithm ends. i.e. there is a finite time
    after which no more messages are transferred.
  • The source node knows when the algorithm has
    finished
  • When the source node finishes the algorithm, the
    algorithm has ended.

13
PIFD
Algorithm For Node D Init Init ?l N(l)?0
m?0 p?0 Upon receipt of MSGs(l) N(l)?1 if m0
then p?1 send MSGs to all neighbours m?1
14
The Claims Revisited
  • All the nodes will receive the message after a
    finite time period and all will have m1
    eventually.
  • The algorithm ends. i.e. there is a finite time
    after which no more messages are transferred.
  • The source node knows when the algorithm has
    finished
  • When the source node finishes the algorithm, the
    algorithm has ended.
Write a Comment
User Comments (0)
About PowerShow.com