Page 1 of 1

Very high upload rate when connecting/connected to server

Posted: Tue Jun 28, 2016 10:01 am
by NomisCode
When i try connect to server, upload is higher than download... and while ingame it's unplayble, because it's so hard on upload... why?

Re: Why so much upload???

Posted: Tue Jun 28, 2016 3:08 pm
by cpy
How big numbers are we talking about? Post details, statistics, data. Then we can talk.

Checked it myself, it really is strange, 4mbit upload for joining MP game? I was not even host!
433kB/s upload rate to server seems a bit too much for basically standing in game.

Re: Why so much upload???

Posted: Tue Jun 28, 2016 4:35 pm
by Koub
[Koub] Topic moved to technical help : Multiplayer subforum's goal to help people wanting to play multi to find each other.

Re: Very high upload rate when connecting/connected to server

Posted: Wed Jun 29, 2016 10:04 am
by NomisCode
My upload is really slow, 50kB/s... in other games i haven't this problem... And im about 20ms latency. On TeamSpeak im often under 10ms...


Devs should fix this.

Re: Very high upload rate when connecting/connected to server

Posted: Wed Jun 29, 2016 10:41 am
by Loewchen
We still need numbers, how high is the games upload?
If you are on windows: task-manager > performance > resource monitor > network > factorio.exe

I moved this to Bug reports as you opened a new topic there and I don't think it makes much sense to have both

Re: Very high upload rate when connecting/connected to server

Posted: Wed Jun 29, 2016 3:36 pm
by cpy
Loewchen wrote:We still need numbers, how high is the games upload?
If you are on windows: task-manager > performance > resource monitor > network > factorio.exe

I moved this to Bug reports as you opened a new topic there and I don't think it makes much sense to have both
I told you mine, what more you need? It was 10-20kB/s and then it jumped to 433kB/s and that made game bring to grinding halt, no response from server, everyone but one guy got dropped. That's pretty much it.

Re: Very high upload rate when connecting/connected to server

Posted: Wed Jun 29, 2016 4:28 pm
by TruePikachu
So up to about 3.5 Mbps? What is your upload capacity?

My best guess is that the TCP-over-UDP might be flooding packets, especially if this 3.5Mbps is over the connection's bandwidth capacity.

Re: Very high upload rate when connecting/connected to server

Posted: Wed Jun 29, 2016 4:31 pm
by Zeblote
There's no reason at all for the game to upload 3.5mbps. Something's wrong.

Re: Very high upload rate when connecting/connected to server

Posted: Wed Jun 29, 2016 6:39 pm
by Loewchen
Please take a screenshot of the resource monitor showing the network tab (or something similar on non windows OS).

Re: Very high upload rate when connecting/connected to server

Posted: Fri Jul 01, 2016 2:34 am
by Bob Fuse
I am having the same issue, I can sometimes host from my PC, sometimes it sits at 3-4kb/sec and its all smooth. However most of the time it's uploading at my max speed of 28kb/sec and it just lags like crazy. Also when a friend is connecting and downloading the map, he downloads it at 5kb/sec however my traffic monitor still shows factorio maxing out my upload at 28kb/sec... makes no sense.

I thought I could resolve this by hosting through a vps, nope, when connecting to the VPS my upload is still being maxed out by Factorio...

Why so much uploading?

I use Netlimiter to monitor traffic.

EDIT: My friend has connected to the VPS and has 0 issues and is 100% lag free, however for me factorio is constantly uploading something, what is it uploading?

EDIT2: Here's an image showing my usage, the dips in the graph are when it is smooth and completely playable, the peaks are when it is lagging like crazy and maxing out my upload, for no reason.
http://imgur.com/VtLxE5S

Re: Very high upload rate when connecting/connected to server

Posted: Fri Jul 01, 2016 7:05 am
by Zeblote
28kb/s upload?! What is this, 2004??

Re: Very high upload rate when connecting/connected to server

Posted: Fri Jul 01, 2016 7:06 am
by Bob Fuse
Zeblote wrote:28kb/s upload? What is this, 2004??
Australia.... -_- and mine is the fastest out of our whole group =/

Either way, why is it uploading so much? Every other game I've ever played has never used this much upload data.

It's almost as if the game is flooding (or DDoSing) my modem and then getting backed up on itself....

Re: Very high upload rate when connecting/connected to server

Posted: Fri Jul 01, 2016 8:09 am
by cpy
TruePikachu wrote:So up to about 3.5 Mbps? What is your upload capacity?

My best guess is that the TCP-over-UDP might be flooding packets, especially if this 3.5Mbps is over the connection's bandwidth capacity.
I'm on 100/100mbit.

Re: Very high upload rate when connecting/connected to server

Posted: Fri Jul 01, 2016 8:25 am
by Killerbee
If we are going to brag, I'm on a 250/250 connection.

But this topic appears to be related to: viewtopic.php?f=7&t=26045

Also it would be trivial to either use a server in a ddos by spoofing your IP address or disabling the server by using up all the upload speed.
So in my opinion this is a very high priority bug because of ease with which it can be abused.

Re: Very high upload rate when connecting/connected to server

Posted: Fri Jul 01, 2016 8:36 am
by Bob Fuse
Killerbee wrote:If we are going to brag, I'm on a 250/250 connection.

But this topic appears to be related to: viewtopic.php?f=7&t=26045

Also it would be trivial to either use a server in a ddos by spoofing your IP address or disabling the server by using up all the upload speed.
So in my opinion this is a very high priority bug because of ease with which it can be abused.
This is exactly right, throughout the day I've managed to get 4 people concurrently in the server with no lag issues.

However as soon as I join it kills the server by maxing the upload, not even sure what is wrong here, leaning towards a router/modem issue with the UDP connection spam to the point of shutting down my modem for all connected devices on my network.

Re: Very high upload rate when connecting/connected to server

Posted: Fri Jul 01, 2016 2:32 pm
by TruePikachu
cpy wrote:
TruePikachu wrote:So up to about 3.5 Mbps? What is your upload capacity?

My best guess is that the TCP-over-UDP might be flooding packets, especially if this 3.5Mbps is over the connection's bandwidth capacity.
I'm on 100/100mbit.
What is the downlink of the client, though?
Bob Fuse wrote:However as soon as I join it kills the server by maxing the upload, not even sure what is wrong here, leaning towards a router/modem issue with the UDP connection spam to the point of shutting down my modem for all connected devices on my network.
As a side note, you might want to look into QoS on the router; before we had QoS, my home network (which I admin, heh) got very unreliable when one iPhone was added, and a second iPhone completly knocked it out, even for wired devices.

Re: Very high upload rate when connecting/connected to server

Posted: Tue Jul 12, 2016 3:54 am
by bk5115545
Test your packet loss to the server. I have a friend that occasionally has 1~5% packet loss and Factorio doesn't handle it well at all.
0% is flawless but game is completely unplayable at 1%.

Just do like a "ping ip.add.re.ss -n 1000" and wait about 17mins (assuming the server responds to ping).

Re: Very high upload rate when connecting/connected to server

Posted: Fri Aug 26, 2016 2:04 pm
by kovarex
As most of the multiplayer has been rewritten for 0.14, I will move this to resolved.