Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Why is the data transfer speed from the server being cut during the stream?
12 minutes ago|LINK|95.79.163.30

There is an ASP. NET application running on a VPS server. (Channel width 200 mb \ s). It works as follows: data is transferred from the client to the server and immediately to the browser (about 1.5 mb / s). When I run on IIS Express everything works as expected, but when sending to a remote server, the send speed is cut, while the receive speed remains at the level of (1.5mb / s).

There is only one answer - the problem is in the VPS server, but as soon as I stop sending data, the sending speed rises to the desired 1.5 mb / s. I have been struggling with the problem for several months now. I changed the hosting provider but does not help. What's the matter ??

SignalR is used for data transfer (with Forced use of WebSocket). The site is hosted on IIS.

After searching for answers in other forums, I came to the conclusion that the problem is in SignalR.
 
Here is the code, the code that is on the sender client (1st picture)

On the Hub (Fig. 2)

On the JS client - the recipient.
Can you advise something.


1) https://drive.google.com/open?id=1hUqBnNpm5-R3Jk4vD7OeEnO0ZsA0uaNh

2) https://drive.google.com/open?id=1hUqBnNpm5-R3Jk4vD7OeEnO0ZsA0uaNh

3) https://drive.google.com/open?id=1hUqBnNpm5-R3Jk4vD7OeEnO0ZsA0uaNh


What I have tried:

Tried different VPS configurations. Up to 5 cores, 10 GB of RAM and 1 GB / s channel width. Even on the most powerful configuration, the problem is the same.
Posted
Updated 3-Oct-19 17:02pm
Comments
MadMyche 3-Oct-19 20:24pm    
Most likely the problem is more in the configuration than in the code. Have you used the SignalR performance counters?

1 solution

Upload speed is always slower than download speed; as much as 10x slower.

And you can't compare "local" traffic (SQL Server Express) with traffic over the internet. Particularly if you're handling multiple streams.

If you've got some "slower" network cards, switches or hubs in the mix, that will impact you too.

Try some "internet speed tests".

Nothing runs faster than the slowest component.
 
Share this answer
 
Comments
Михаил Матясов 4-Oct-19 15:03pm    
You are right. Nothing runs faster than the slowest component. But i can not detect this
the slowest component. I have tested my VPS on https://www.speedtest.net/.I have got 97Mbps - upload speed, and 56Mbps download speed. I think this is enough. Can you get me advise, what i can check on server configuration or in my code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900