Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[conn-manager] peer value should be HOP-aware #416

Closed
pgte opened this issue Apr 23, 2018 · 7 comments
Closed

[conn-manager] peer value should be HOP-aware #416

pgte opened this issue Apr 23, 2018 · 7 comments

Comments

@pgte
Copy link
Contributor

pgte commented Apr 23, 2018

A connection to another peer can host connections to other peers through the HOP transport.
When disconnecting from a peer, the value of that connections shouldn't be only the single value of that peer, but also should contain the value of all the peers that are connected through it.

First discussed here.

@dryajov
Copy link
Member

dryajov commented Apr 23, 2018

I think there will be other types of transports/services that we want to make the peer aware off, dht is one that comes to mind. Should we generalize this issue, so we can track those here as well?

@pgte
Copy link
Contributor Author

pgte commented Apr 24, 2018

That's a great point, but perhaps we should create another issue for this one alone, mainly because I think this is a special case where we specifically value a connection that contains more connections.
And also because there are finer points to be discussed in that context that you brought up, like: Should we have internal values for peer connections? How do these combine with the user-defined values? Is the "value" a good model for this? Is the go approach of tagging a good generalisation? Etc..

Opened issue here: https://github.com/libp2p/js-libp2p-connection-manager/issues/11

@dryajov
Copy link
Member

dryajov commented Apr 24, 2018

Sounds good :)

@serzero2007
Copy link

The implementation I have suggested to solve issue libp2p/js-libp2p-connection-manager#8 should solve this one as well.

@dryajov
Copy link
Member

dryajov commented May 7, 2018

@serzero2007 I'm not sure how it will help in this case, this is mostly about singling out some peers/connections as being more important than others.

@serzero2007
Copy link

serzero2007 commented May 9, 2018

It is basically a framework that would allow for a subsystem to ensure the connection to a certain node will not be dropped. The circuit subsystem can implement it the way described above.

@dryajov dryajov closed this as completed May 9, 2018
@dryajov dryajov reopened this May 9, 2018
@daviddias daviddias changed the title peer value should be HOP-aware [conn-manager] peer value should be HOP-aware Aug 22, 2019
@daviddias daviddias transferred this issue from libp2p/js-libp2p-connection-manager Aug 22, 2019
maschad pushed a commit to maschad/js-libp2p that referenced this issue Jun 21, 2023
* deps: bump protons-runtime from 4.0.2 to 5.0.0

Bumps [protons-runtime](https://github.com/ipfs/protons) from 4.0.2 to 5.0.0.
- [Release notes](https://github.com/ipfs/protons/releases)
- [Commits](ipfs/protons@protons-runtime-v4.0.2...protons-runtime-v5.0.0)

---
updated-dependencies:
- dependency-name: protons-runtime
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* deps(dev): bump protons from 6.1.3 to 7.0.2

Bumps [protons](https://github.com/ipfs/protons) from 6.1.3 to 7.0.2.
- [Release notes](https://github.com/ipfs/protons/releases)
- [Commits](ipfs/protons@protons-v6.1.3...protons-v7.0.2)

---
updated-dependencies:
- dependency-name: protons
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: regenerate protobuf

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Potsides <[email protected]>
maschad pushed a commit to maschad/js-libp2p that referenced this issue Jun 21, 2023
## [7.0.3](libp2p/js-libp2p-kad-dht@v7.0.2...v7.0.3) (2023-03-10)

### Dependencies

* bump protons-runtime from 4.0.2 to 5.0.0 ([libp2p#416](libp2p/js-libp2p-kad-dht#416)) ([7ebf172](libp2p/js-libp2p-kad-dht@7ebf172))
* **dev:** bump execa from 6.1.0 to 7.0.0 ([libp2p#421](libp2p/js-libp2p-kad-dht#421)) ([04124d4](libp2p/js-libp2p-kad-dht@04124d4))
@wemeetagain
Copy link
Member

This feature is available thru peer tagging. We prioritize / sort peers based on peer tag values for autoconnect / disconnect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants