libp2p / libp2p/test-plans

add tests for AutoNAT

Open
#124 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
65
Forks
82
PR merge metrics
No merged PRs in 30d

Description

We should have a test that checks that nodes can reliably determine if they are behind a NAT. This will most likely require us to implement some kind of NAT (equivalent?), maybe using `iptables`.

Main challenge:
* Implementing the NAT.
* AutoNAT requires a few interactions with different nodes, so we’d have to boot up a small network of helper nodes.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or existing tests. Start by reviewing the AutoNAT behavior and the repository's current test approach, then investigate whether iptables can provide the required NAT and how helper nodes can form a small network. Done means a repeatable test reliably distinguishes nodes behind NAT.

Written by the indexing model from the issue text.

Assessment

Domain
networking, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.