Choke and Loss

A forum for computer hardware and software issues
Post Reply
Dog
Server Ops
Server Ops
User avatar
Posts: 14317
Joined: Sun Oct 15, 2006 12:12 am
Location: In the bath, having a good think....

Games Played

Ville Awards

Dog - RIP Stevo’s avatar
Loading…

Choke and Loss

Post by Dog » Wed Apr 11, 2007 9:11 am

Found this.
It's taken from an Australian CS web site but you can check it out and PM me with any corrections and I'll change it.


Broadband quick start settings

rate=10000 or <= sv_maxrate (bytes/sec limit from server)
cl_updaterate=60 or = fps_max <= 100 > 20 (pack/sec requested from server)
cl_rate=10000 or = rate (bytes/sec limit to server)
cl_cmdrate=60 or = cl_updaterate (packets/sec sent to server)
interp=0.1


Intro
New Users: Press tilde"~" to get the console. Type "netgraph 3" in the console to see choke and loss data. Type "rate" to see the current rate. Type "rate=10000" to set the rate. All without quotes.

Choke: server too slow - you need to ask for less data or find better server.
Loss: you're too slow - you need a better computer, or send less data, or have lower fps_max and graphics settings. May vary map to map.
Packet: A discrete piece of data for network transmission. Size of packet varies depending on how much is going on. Thus the need for an upper limit for bytes/sec (rate and cl_rate).
Ping: Time in milliseconds for your connection to reach the server. Broadband might be 40 to 100, dial up around 200, LAN 0 to 40. Busy servers with overloaded connections will make ping worse (higher).

Firstly
b is for bit
B is for Byte

There are 8 bits to a Byte

Server Side

The first and most important setting is in actual fact server side, and no clients have any say on this number. This setting is called.

sv_maxrate=xxxx

sv_maxrate is measured in bytes per second, and is how much bandwidth the server dedicates to be able to send to each client, each and every second.

The sv_maxrate settings for each of the TheVille servers at the time of writing were as follows.

TV1=0 <--unlimited
TV2=20000
TV3=9999
TV4=0 <--unlimited
TV5=0 <--unlimited
TV6=0 <--unlimited

When you are alone on the map and not doing anything, then the server only needs to send about 1000 bytes a second. When you are in a firefight, the server can end up wanting to send 10,000 bytes a second.

So if you set your rate above the sv_maxrate you can expect choke when things get busy and you are asking for more data than the server will let you have. There is no point having a rate above sv_maxrate.


Client Side
Now the remaining Client Side settings that can have an affect on all of this are as follows.

rate
cl_updaterate
cl_rate
cl_cmdrate
interp
fps_max
fps_modem

rate is the number of bytes per second that the client is able to accept, when rate and sv_maxrate differ, the lower of the two will be used.

cl_updaterate is the number of game packets per second the client will attempt to request off the server. This should be no higher than 100 or the maximum number of frames per second you are getting, and should be no lower than 20.

interp
- frame interpolation ON/OFF. Since ver 1.6 this has been locked at the default 0.1. Type interp by itself to toggle off then on. The default is that it is on. Those with cheats may still be able to change this value.

fps_max
- Sets the maximum frame rate that HL will try to display. Usually fps_max=100, for crappier graphic cards or computers fps_max=60. Set this to no more than 100 as any more is a waste/not possible.

fps_modem - Is the minimum frame rate that HL will display. You can set this the same as fps_max.


Errors
cl_FlushEntityPacket - This error can be caused by having your cl_cmdrate and cl_updaterate set too high for the current rate. Your ping will go crazy and HL will hardly update at all causing weird problems. Try lowering the cl_updaterate and cl_cmdrate to 50, or 40. You might also try increasing the rate if you have a fast enough connection (as you increase the rate watch your loss, once your rate is too high you will get loss - lower the rate till you get no loss). With a frame rate of 60 and cl_cmdrate of 40 is still very playable. Down to 30 and you will start to notice a delay between you instruction and the result, ie when buying weapons for instance. The optimal cl_cmdrate and cl_updaterate would match the frame rate (what you set fps_max and fps_modem too).

choke - You'll probably experience some choke when things get busy, small amounts for a small time under 10 is ok. If it is consistantly going too high and effecting play, or it is present when there is nothing much happening then your cl_cmdrate and cl_updaterate are too high. Experiment and bring them down by 5, see how you like it and see how the choke goes. You'll notice your ping goes down as you lower the cl_updaterate and cl_cmdrate because you are taking the load off your connection, which is not necessarily a good thing if you don't get updated quickly enough!


Improving Choke

To improve choke you can:

1. Change your rate setting to be similar or equal to what the servers is, if possible. This enables you to have as much bandwidth as the server can provide.

2. Lower your cl_updaterate so you are requesting less game packets per second.

3. Get a good computer, with a good Network Card.

4. Upgrade to a faster Internet connection.


Upload Speeds

cl_rate is exactly the same as rate, except that it is the number that determines how much bandwidth the client can send to the server in bytes per second.

Now this is one of the most important things to understand. Most retail broadband Internet connections are limited to 16,384 bytes a second IN TOTAL upload speed.

Unless you are on a 5GB or 10GB cable that has unlimited upload speed then your upload speeds will be limited to the following.

128Kb=16KB or 16,384 bytes per second.

256Kb=32KB or 32,768 bytes per second.

56K Modem users have far less, and they usually only get 5KB to 6KB a second in total to download, but can only upload at about 3KB a second, AND cannot do both at the same time, unlike Cable and ADSL. I.e. You cannot download at 5KB a second whilst simultaneously uploading at 3KB a second, modems unfortunately don't work like that, so effectively you are left with being able to download at 3KB/s and Upload at 3KB/s at the same time, or there abouts.

cl_cmdrate is the number of game packets per second, you the client will try to send to the server. Again this should not be set higher than your frames per second, and not any lower than 20.

Finally for people who share Internet connections, you need to be aware of what your total upload and download speeds are in bytes, and then setup each client accordingly, so you share the bandwidth, otherwise you will end up saturating your connection with HL data, and you will have issues.


Quick Start Settings to Try
For the record here are settings for a peak connection and peak machine:

rate=10,000
cl_updaterate=100
cl_rate=10,000
cl_cmdrate=100
fps_max=100
fps_modem=100
interp=0.1

Tweaked settings for a slower connection with an older machine with an older video card, say a 256K / 32K up slower ADSL link (which has inherent latency anyway) and a GEForce 2;

rate=10,000
cl_updaterate=40
cl_rate=10,000
cl_cmdrate=40
fps_max=60
fps_modem=60
interp=0.1
Image

DeafOfficeWorker
Retired Admin
Retired Admin
User avatar
Posts: 7903
Joined: Mon Jan 29, 2007 3:39 pm

Ville Awards

Pootleshooter’s avatar
Loading…

Re: Choke and Loss

Post by DeafOfficeWorker » Wed Apr 11, 2007 9:17 am

:shock:
[img]http://i149.photobucket.com/albums/s68/pootleshooter/kpsdow.gif[/img]

Bull
Villun
Villun
User avatar
Posts: 237
Joined: Mon Oct 30, 2006 5:50 am
Bull’s avatar
Loading…

Re: Choke and Loss

Post by Bull » Wed Apr 11, 2007 2:30 pm

I knew that.. :wink:
[img]http://i122.photobucket.com/albums/o255/GoldWing97SE/mini-gun8b.gif[/img]
A LOTTA shots, a LOTTA kills
Rules of Engagement: 1. Protect Sgt Bull at all costs. 2. See rule #1

Founding Member, PETA (People who Eat Tasty Animals)

Bull
Villun
Villun
User avatar
Posts: 237
Joined: Mon Oct 30, 2006 5:50 am
Bull’s avatar
Loading…

Re: Choke and Loss

Post by Bull » Wed Apr 11, 2007 2:31 pm

[quote="DeafOfficeWorker";p="21272"]:shock:[/quote]

Negative -24 points? You been a bad boy.. :?
[img]http://i122.photobucket.com/albums/o255/GoldWing97SE/mini-gun8b.gif[/img]
A LOTTA shots, a LOTTA kills
Rules of Engagement: 1. Protect Sgt Bull at all costs. 2. See rule #1

Founding Member, PETA (People who Eat Tasty Animals)

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests