分布式系统 Distributed Systems COMP2014

这是一份nottingham诺丁汉大学COMP2014作业代写的成功案例

分布式系统 Distributed Systems COMP2014



(local variables)
array of int $S E Q N O[1 . . n] \longleftarrow \overline{0}$
set of int Neighbors $\longleftarrow$ set of neighbors
(message types)
UPDATE
(1) To send a message $M$ :
(1a) if $i=$ root then
(1b) $S E Q N O[i] \longleftarrow S E Q N O[i]+1$;
(1c) send $\operatorname{UPDATE}(M, i, S E Q N O[i])$ to each $j \in N$ eighbors.
(2) When UPDATE $\left(M, j\right.$, seqno ${ }{j}$ ) arrives from $k$ : (2a) if $S E Q N O[j]<\operatorname{seqno}{j}$ then
(2b) Process the message $M$;
(2c) $S E Q N O[j] \longleftarrow$ seqno $_{j}$;
(2d) send UPDATE $\left(M, j\right.$, seqno $\left._{j}\right)$ to $N$ eighbors $/{k}$
(2e) else discard the message.


英国论文代写Viking Essay为您提供作业代写代考服务

COMP2014 COURSE NOTES :

  1. if leader $=i$ then
    broadcast SEARCH_MWOE $($ leader $)$ along marked edges of tree (Sect. 5.5.5).
  2. On receiving a SEARCH_MWOE(leader) message that was broadcast on marked edges:
    (a) Each process $i$ (including leader) sends an EXAMINE message along unmarked (i.e., non-tree) edges to determine if the other end of the edge is in the same component (i.e., whether its leader is the same).
    (b) From among all incident edges at $i$, for which the other end belongs to a different component, process $i$ picks its incident MWOE(localID,remoteID).
  3. The leaf nodes in the MST within the component initiate the convergecast (Sect. 5.5.5) using REPLY_MWOEs, informing their parent of their MWOE(localID,remoteID). All the nodes participate in this convergecast.










发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注