Message from immediate neighbor

I need to know if the message coming in on face 2 is from the immediate neighbor of from down the chain, how do I do that?

Technically any message you get is from the immediate neighbor as communication only happens between connected Blinks.

If you mean that you need a way to differentiate between a message that was generated in the specific Blink from messages that were propagated by said Blink, there are most likely several possible ways to do that. One way would be:

Use one bit from the face value to indicate the origin of the message. A Blink that originates a message would set this bit to 0. Blinks that receive a message with that bit as 0 will know that it was generated by the immediate neighbor. Before propagating that message to other Blinks a Blink that received it would set that bit to 1. Then any Blink that receives a message with that bit set to 1 knows it was not generated by the immediate neighbor.

1 Like