Register for your free account! | Forgot your password?

You last visited: Today at 23:41

  • Please register to post and access all features, it's quick, easy and FREE!


limit update's max speed!!

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2012
Posts: 112
Received Thanks: 54
limit update's max speed!!

hey guys how you doing, hope you all okay


just wonder how i can set max speed 50kb per client while update?



SnapPop is offline  
Old 10/22/2015, 23:23   #2
 
elite*gold: 0
Join Date: Oct 2015
Posts: 113
Received Thanks: 22
Quote:
Originally Posted by SnapPop View Post
hey guys how you doing, hope you all okay


just wonder how i can set max speed 50kb per client while update?
You can limit the user at download manager just change USER_LIMIT "1" or setup a virtual machine with your server files and limiting the virtual networkcard of the vm there


Hynix1337 is offline  
Old 10/23/2015, 03:52   #3
 
elite*gold: 0
Join Date: Jun 2012
Posts: 112
Received Thanks: 54
setting USER_LIMIT "1" wont solve it while even just 1 player can use the maximum upload speed of the server

any more ideas ?
SnapPop is offline  
Old 10/23/2015, 13:27   #4
 
elite*gold: 11
Join Date: May 2013
Posts: 922
Received Thanks: 658
Neither his second solution will, you will limit the machine's speed to 1000kb/s for example.. First user takes 200, third 600, 4th and 5th 100.. and then what?

Probably the way is trough server.cfg if it has such param. I couldn;t find myself one


Pr0x! is online now  
Old 10/23/2015, 13:39   #5


 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,095
Received Thanks: 2,630
Probably you will have to make your own download server xD

Drew had theory and a cpp example maybe you want to check'em out.
​Exo is offline  
Old 10/23/2015, 15:21   #6
 
elite*gold: 0
Join Date: Jun 2012
Posts: 112
Received Thanks: 54
Quote:
Originally Posted by Zed* View Post
Probably the way is trough server.cfg if it has such param. I couldn;t find myself one
you mean these params

Code:
	MaxConnectionsPerServer			"5000"
	MaxConnectionsPer1_OServer		"5000"
i'm afraid they wont work either


Quote:
Originally Posted by ​Exo View Post
Probably you will have to make your own download server xD

Drew had theory and a cpp example maybe you want to check'em out.
you mean creating custom library/addon for DownloadServer which can limit the connection speed per ip ?
there's no other way?
SnapPop is offline  
Old 10/23/2015, 15:55   #7
 
elite*gold: 2
Join Date: Aug 2011
Posts: 831
Received Thanks: 1,124
The only way to do this would be with a filter....

and in the filter you would have to limit the number of bytes that can be processed per interval from server -> client.

a basic filter will use 4096 - 8192 bytes per interval, but using async socket handlers you can send that every 1ms. which will allow 4mb-10mb per second per connection.

The solution would be to allow only 6-12 intervals to occur every second, which would slow your connection to 40-60 kbps.
Timlock is offline  
Old 10/23/2015, 16:12   #8
 
elite*gold: 11
Join Date: May 2013
Posts: 922
Received Thanks: 658
@Timlock's explanation is good enough!
I tried to find rest of the params, but I couldn't find anything else. And yes I do mean the same param you showed above, but they are not the proper ones.

Edit:

That's just a theory which I did not test.

Try using these lines as server.cfg params, for example try the last one.
Code:
PromptAtClose 1
Restart download server and then try to shut it down, if you get a msg box saying do you really want to close the DownloadServer or something like that, try the rest of the params from the picture, it might work. Needs testing
Pr0x! is online now  
Old 10/23/2015, 16:42   #9


 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,095
Received Thanks: 2,630
Quote:
Originally Posted by Zed* View Post
@Timlock's explanation is good enough!
I tried to find rest of the params, but I couldn't find anything else. And yes I do mean the same param you showed above, but they are not the proper ones.

Edit:

That's just a theory which I did not test.

Try using these lines as server.cfg params, for example try the last one.
Code:
PromptAtClose 1
Restart download server and then try to shut it down, if you get a msg box saying do you really want to close the DownloadServer or something like that, try the rest of the params from the picture, it might work. Needs testing
It works.
​Exo is offline  
Old 10/23/2015, 20:22   #10
 
elite*gold: 0
Join Date: Jun 2012
Posts: 112
Received Thanks: 54
Quote:
Originally Posted by Timlock View Post
The only way to do this would be with a filter....
humm, do you know an existing filter or you mean code mine ?
well my skills at c# is still low but your idea can be taken from Chernobyl's srprot it's just need some re code as it has a penalty: if the client exceeded the max allowed bytes the connection get terminated

Quote:
Originally Posted by Zed* View Post
That's just a theory which I did not test.

Try using these lines as server.cfg params, for example try the last one.
Code:
PromptAtClose 1
yeah saw that param (MaxSendQueDepth) too but didn't consider that it's related, so i didn't test it
Quote:
Originally Posted by ​Exo View Post
It works.
which one ? MaxSendQueDepth ?
SnapPop is offline  
Old 10/24/2015, 16:50   #11
 
elite*gold: 2
Join Date: Aug 2011
Posts: 831
Received Thanks: 1,124
PromptAtClose 1 worked, i cant easily test if any others are working, but ill try.
Timlock is offline  
Old 10/24/2015, 17:53   #12
 
elite*gold: 11
Join Date: May 2013
Posts: 922
Received Thanks: 658
Well try these ones if you can figure out what they doing, if they work I and someone write it here or PMs me, I will try to dig all of them for all of the modules
Pr0x! is online now  
Thanks
1 User
Old 10/25/2015, 17:08   #13
 
elite*gold: 0
Join Date: Apr 2015
Posts: 1,444
Received Thanks: 1,358
There is a program out there, where you can set upload speed etc. Just get a better net.
#Best solution 2k15
​Goofie​ is offline  
Old 10/25/2015, 19:33   #14
 
elite*gold: 11
Join Date: May 2013
Posts: 922
Received Thanks: 658
On specific *.exe files you mean or overall?
Pr0x! is online now  
Old 10/25/2015, 23:05   #15
 
elite*gold: 0
Join Date: Jun 2012
Posts: 112
Received Thanks: 54
@Timlock, @Zed , really sorry guys can't test that param at the moment as my own net is **** and for testing the dedicated's upload speed, it wont be accurate
so can you guys test and confirm ?

@​Goofie​ which program you refer to ? and what do you mean by 2k15 (think i don't get that part) ?

@thread when i posted this thread asking for help i thought you guys already have solution used on your own servers
updates which containing sro_client on servers with a lot of users while leaving the maximum upload speed as it is, is sounds like a shell or a natural built-in ddos xD
my ex-dedicated server had 6~7mb/s upload speed and was lagging as hell if just 1 user can update his client with his 7+mb/s download speed
like i just said it's almost built-in ddos
if there's no existing solution so let's do it as we always did

P.S: ksro already using such technique , when i try to update ksro client the maximum download speed doesn't exceed 35kb/s


SnapPop is offline  
Reply



« need help | IP-LIMIT Problem »

Similar Threads
About Limit Update Files in SMC
06/01/2012 - SRO PServer Ask the Experts - 3 Replies
i wonder if gateway of BR Files that control the max updated files i tested it and it only update max 5 files why this?! anyone know?



All times are GMT +2. The time now is 23:41.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.