Giter Site home page Giter Site logo

Comments (12)

sachinsngh165 avatar sachinsngh165 commented on September 5, 2024

@cristobalmedinalopez A quick solution would be to put NODE OUT line in drawing file whenever a peer receives good bye message from the splitter. Also, respond to request message if and only if the sender is in peer list.

from simulator.

sachinsngh165 avatar sachinsngh165 commented on September 5, 2024

@cristobalmedinalopez, is there any scenario when above solution would fail?

from simulator.

sachinsngh165 avatar sachinsngh165 commented on September 5, 2024

What should we do for following scenario:
When peer receives a request messaege from removed peer before receiving good bye message from the splitter.
if we follow this solution:

@cristobalmedinalopez A quick solution would be to put NODE OUT line in drawing file whenever a peer receives good bye message from the splitter. Also, respond to request message if and only if the sender is in peer list.

then removed peer would appear for time until it don't receives a good bye message.

from simulator.

cristobalmedinalopez avatar cristobalmedinalopez commented on September 5, 2024

A quick solution would be to put NODE OUT line in drawing file whenever a peer receives good bye message from the splitter.

You mean it removes itself, isn't it?

Also, respond to request message if and only if the sender is in peer list.

Yes, it sounds good!

When peer receives a request messaege from removed peer before receiving good bye message from the splitter (edited).

Does that action trigger the writing of a NODE IN line in the drawing file?

from simulator.

sachinsngh165 avatar sachinsngh165 commented on September 5, 2024

Does that action trigger the writing of a NODE IN line in the drawing file?

yes, whenever a peer receives a request message from another peer, and if it is not in the forwarding list of origin (of requested chunk), then it write NODE IN for sender in drawing file, that's the cause of this bug. This would overwrite splitter's action of NODE OUT.

from simulator.

sachinsngh165 avatar sachinsngh165 commented on September 5, 2024

A quick solution would be to put NODE OUT line in drawing file whenever a peer receives good bye message from the splitter.

You mean it removes itself, isn't it?

No, i was talking in reference to other peers who will receive GOODBYE message from removed peers.

from simulator.

cristobalmedinalopez avatar cristobalmedinalopez commented on September 5, 2024

No, i was talking in reference to other peers who will receive GOODBYE message from removed peers.

It could work with honest peers.

from simulator.

sachinsngh165 avatar sachinsngh165 commented on September 5, 2024

Even if every peer put NODE OUT on receiving GOODBYE message, even then removed peer may appear in network overlay for a tiny interval of time (like a ghost). Because a peer may receive request message before goodbye message. Do you @cristobalmedinalopez think we can do something with that, because possibility seems very low ?

from simulator.

sachinsngh165 avatar sachinsngh165 commented on September 5, 2024

Even checking sender in peer_list before responding to request_chunk message will not work due to above reason.

from simulator.

cristobalmedinalopez avatar cristobalmedinalopez commented on September 5, 2024

I think it's not an important issue that removed peers appear like a ghost if finally they are completely removed from the graph. What do you think @vicente-gonzalez-ruiz? Any other idea @josmanual?

from simulator.

sachinsngh165 avatar sachinsngh165 commented on September 5, 2024

@cristobalmedinalopez , how should we check if removed peer is in peer_list or not, as we just have a forwarding list? should we check this peer in every forwarding list ?

from simulator.

cristobalmedinalopez avatar cristobalmedinalopez commented on September 5, 2024

No, I think it would be enough checking the forwarding list of itself (where it is the origin).

from simulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.