13.07.2015 Views

Page 2 Lecture Notes in Computer Science 2865 Edited by G. Goos ...

Page 2 Lecture Notes in Computer Science 2865 Edited by G. Goos ...

Page 2 Lecture Notes in Computer Science 2865 Edited by G. Goos ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

106 G. Alonso et al.A node discovery protocol dictates how a node should choose its state ateach po<strong>in</strong>t <strong>in</strong> time. A run of a given protocol is the sequence of events generated<strong>by</strong> the node’s choices. Let E → E ′ denote that event E is immediately followed<strong>by</strong> event E ′ <strong>in</strong> a given run of the protocol. A run term<strong>in</strong>ates when the k nodeshave discovered each other. In the two node case, the last two events of the run,E → E ′ , are 1) <strong>in</strong> event E, the first node hears the second node talk, and 2) <strong>in</strong>the last event, E ′ , the second node hears the first node talk. Thus node discoverywith two nodes occurs under the events( ) TiLi→( ) LjTjor( ) Li→Ti( ) TjLjThe relationship between frequencies i and j depends on the protocol’s frequencyallocation method and is discussed below.Let a node be represented <strong>by</strong> the random variable X that assumes the valuesof (S, i), the possible states of the node. When a node must randomly choosewhether to talk or listen, let p denote the probability that the node will talk (T )and let q =1− p denote the probability that the node will listen (L). When anode must randomly choose a frequency, let F i denote the probability that thenode will choose frequency i. Thusp i , the probability that a given node will talkon frequency i, equals Pr[X =(T,i)] = pF i and q i , the probability that a givennode will listen on frequency i, equals Pr[X =(L, i)] = qF i . S<strong>in</strong>ce p + q = 1 and∑ fi=1 F i = 1, then ∑ fi=1 p i + ∑ fi=1 q i =1.After certa<strong>in</strong> events, e.g., one node hears the broadcast of another node, anode may have to decide whether to stay with the same frequency i <strong>in</strong> the nextstep, i.e., static frequency allocation, or to aga<strong>in</strong> randomly choose a frequency,i.e., dynamic frequency allocation. If the <strong>in</strong>itial contact occurred on a givenfrequency i, one might argue that frequency i is a natural choice for furthercommunication and thus static frequency allocation should occur. One can alsoargue, however, that chances for cont<strong>in</strong>ued contact may be just as good if thenext frequency is aga<strong>in</strong> randomly chosen and thus dynamic frequency allocationcan be used.We assume that nodes are synchronized so that they start an algorithm atthe same time, choose their respective states at the same time, and ma<strong>in</strong>ta<strong>in</strong>those states for the same amount of time. While it is unlikely that all the nodesthat want to participate <strong>in</strong> a given session of node discovery will start the nodediscovery protocol at the same time, Salonidis et al [15] demonstrate that nodesynchronization can be accomplished <strong>in</strong> a reasonable amount of time. They showthat if the times at which the respective nodes start the protocol are modelled asa carefully chosen Poisson process then, after a first node has started the nodediscovery protocol, the rema<strong>in</strong><strong>in</strong>g nodes have start times that are identicallyand <strong>in</strong>dependently distributed accord<strong>in</strong>g to a truncated exponential distribution.Given this distribution, a timeout value can be estimated and <strong>in</strong>corporated <strong>in</strong>tothe beg<strong>in</strong>n<strong>in</strong>g of the node discovery protocol so that node synchronization occursbefore the nodes engage <strong>in</strong> discovery. The size of the timeout is usually smallrelative to the time required for node discovery.(2)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!