lidgren-network-gen3 icon indicating copy to clipboard operation
lidgren-network-gen3 copied to clipboard

Slow connection file Transfer does not arrive unless NetPeerConfiguration.AutoExpandMTU = true;

Open SonicTTH opened this issue 8 years ago • 8 comments

Hello,

I'm using Lidgren the primary networking component in one of my projects. Im trying file transfer with the libary and noticed that "larger" packages do not arrive at the other end when being transfered over a slow connection, unless the Setting AutoExpandMTU is enabled.

Ive tried it a dozen times with both the setting disabled and enabled and always only received the package from Lidgren at the other end when the setting is enabled.

The specific data where talking about is a 512 KB textfile and a maximum 100 kb/s upload rate. I also noticed that this data is send twice by the netserver, meaning that I am monitoring a transmition of about an entire megabyte instead of just approx. 512 kb which I would expect.

Did anyone ever had transmission problems with large data?

Greetings,

SonicTTH

SonicTTH avatar Apr 04 '16 22:04 SonicTTH

Actually I noticed that similar stuff happens when Im sending data from the remote client with even lower upload rate (around 55 kb/s) and trying to do this twice. I'm repeadedly sending packets from there (always with a pause inbetween, waiting for the arival of the previous packet) with sizes of around 40 kb. The first time I do this, it works. When I do it afterwards, none of the send packages from the client arrive at the server. Im though measuring the full bandwidth of the client being used by lidgren network produced traffic. So its sending a large amount of something which never arrives at the server!

How comes this?

I really am monitoring everything and logging every incoming and outgoing message at the server and the client. The client responds to stuff the server wants from it and sends it to the server but it just wont arrive.

SonicTTH avatar Apr 05 '16 00:04 SonicTTH

Can we have a sample project? Sound like a major problem.

AgentFire avatar Apr 05 '16 09:04 AgentFire

Okay I will make one and try to reproduce the issue with that. I will post it this evening.

SonicTTH avatar Apr 05 '16 10:04 SonicTTH

Okay so here is the test project I made: http://venion.net/files/LNI/example_traffic_Issue_shared.zip

I also recorded a video to show how the application works and how to reproduce the behavior. It's here: http://venion.net/files/LNI/explanation.avi

The code itself is very simple to look through. I made the base project where it derived from in german so mabye theres german words there somewhere, but I hope its not too much. All the new stuff I made is in english.

When trying it out yourself you only need to set the correct target IP in the constructor of the ClientInstance class.


The way I see it is lidgren is sending so much data that I dont know at all what actually happens there, especially if its a slow connection there even seems to come out very much.

The current lidgren project is attached so it can be debugged directly.

I hope this can be resolved :)

SonicTTH avatar Apr 05 '16 17:04 SonicTTH

Hi again!

AngelFire, I just noticed, youve got a really nice avatar!

Did you look into it yet?

Greetings,

SonicTTH

SonicTTH avatar Apr 09 '16 07:04 SonicTTH

I'm going to do it right away, sorry for the delay. @SonicTTH 404 Page not found it says

AgentFire avatar Apr 16 '16 12:04 AgentFire

Sorry,

I corrected the links, theyre working now.

SonicTTH avatar Apr 17 '16 17:04 SonicTTH

@lidgren you may want to look into this.

AgentFire avatar Apr 22 '16 16:04 AgentFire