Homework 3 forum

Consistency of test 4; retransmission of rumors with prepares

 
Picture of Pasindu Nivanthaka Tennage
Re: Consistency of test 4; retransmission of rumors with prepares
by Pasindu Nivanthaka Tennage - Monday, 30 November 2020, 17:38
 

Dear Intocl

Thank you for your question

I’m not sure that I understand your question. The question needs some context. 


Without any context, I believe that, in general, a node would send out a single prepare rumor, which is broadcast by its nature. But it’s still a single rumor. Of course, if x node want to name a file, we’d have x rumors going around. But each node would send a single rumor out in the simple case. So I believe watcherOut would be 1, but watcherIn could be up to numParticipants.


Does this answer your concern?

Regards
TAs

Picture of Francesco Intoci
Re: Consistency of test 4; retransmission of rumors with prepares
by Francesco Intoci - Monday, 30 November 2020, 18:58
 

Yes, you are right, but when broadcasting the message I will send the rumor message (that is indeed always the same) and the address (that will eventually change, since I will send it to all my neighbour nodes) to the watcher. Otherwise, which address should I pass to the watcher when wrapping the GossipPacket in the CallbackMessage?