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

Toxcore creates too many connections #1560

Open
LittleVulpix opened this issue Apr 8, 2016 · 3 comments
Open

Toxcore creates too many connections #1560

LittleVulpix opened this issue Apr 8, 2016 · 3 comments

Comments

@LittleVulpix
Copy link
Contributor

This used to be an issue but I believe it was fixed in the Dec/Jan commits to DHT. However, for some reason, the issue is back. I hadn't noticed when exactly this started but it's been happening for a while apparently.

See below a sample. x-axis is "seconds since start of tox", y is "connections". This is with contactlist with 40 people out of which ~8 are online at most times.

Toxcore Connections

I understand that UDP is a connection-less protocol and doesn't actually create connections - but for the purposes of natting, every router must store the nat in its memory for some time (usually 2 minutes for most of these). Before they time out, they take up processing power and resources and can cause problems on smaller/older devices.

This is on the latest toxcore with UDP+ipv4 enabled. ipv6 is disabled.

EDIT:

Data gathered from my OpenWRT router:

watch -n1 "grep 3344[5-9] /proc/net/*conntrack|wc -l >> /path/to/some/file"

Then I put the output into openoffice's calc to create a line chart.

@fcore117
Copy link

With this i agree, there should be some hard limit to avoid such bombardment, now imagine one shared family router with over 5+ users... or users with mifi device(shared mobile internet), late years it has become quite common where cable is impossible to get.

@GrayHatter
Copy link
Collaborator

imagine multi device + multi profile + multi user.

Single nat is a home of 4 geeks, each with 4 devices. you could easily have 20 tox instances behind the same nat

@v6
Copy link

v6 commented Jun 29, 2016

// , An acquaintance or two of mine have crappy router and modem combinations. They end up not realizing that they're "renting" from a certain less-than-ethical cable and would-be entertainment company. These routers, used with Tox, will prevent opening normal web connections, and pretty much fail when Tox attempts its connection to the Tox DHT.

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

No branches or pull requests

4 participants