Longest and slowest path wins when sending dm to a contact

Open
#3,940 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
networking

Research direction

Start by tracing how MeshCore handles incoming path messages for direct messages and updates a contact’s route. Compare how the 4-hop and 8-hop paths are accepted when they arrive at different times, then identify the rule that determines which route is stored. Done means a contact keeps the preferable route instead of switching to a slower, longer one; the issue does not name files or tests, so locating the relevant routing code will take investigation.

Written by the indexing model from the issue text.

Description

Scenario.

The network in Denmark has quite good coverage, and a path message might take different routes back to the sender of the dm.

I have noticed a couple of time that the contact receives a path message which updates the contact with the shortest route 4 hops.

Within milliseconds this is replaced with a new path to contact of 8 hops.

The logic I see is, that the slowest path wins, and the user ends up using the longest route for new dm's until this is reset using flood for the next dm.

Dominant language
C
Stars
3.9k
Forks
1.5k
Avg merge
2d 7h
Merged PRs (30d)
56

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshcore-dev/MeshCore

All issues in meshcore-dev/MeshCore

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.