Poor bullet registration in CS:Source [Archive] - SpeedGuide.net Broadband Community

View Full Version : Poor bullet registration in CS:Source


Sojo
03-22-08, 01:03 PM
In CounterStrike Source everything seems ok (low ping,choke, 0 loss ...) but when I shoot directly at a moving target, although I see blood bursting out of him, server does not count it as a successful hit because of the client side blood implementation. Its server side Hitbox is not the one my computer draws on my monitor. In brief I want to see the hitboxes ON the model not 0.5m behind or forward of the model.

http://developer.valvesoftware.com/wiki/Source_Multiplayer_Networking
http://developer.valvesoftware.com/w/images/c/ca/Lag_compensation.jpg
"This screenshot was taken on a listen server with 200 milliseconds of lag (using net_fakelag), right after the server confirmed the hit. The red hitbox shows the target position on the client where it was 100 milliseconds ago. Since then, the target continued to move to the left while the user command was traveling to the server."

These are the results of TCP/IP Analyzer, ping and trace route to my favorite server.

TCP/IP Analyzer
MSS: 1452
MTU: 1492 (only PPPoE)
TCP Window: 32768 (NOT multiple of MSS) (In optimizer I set this value to 63888 but OS insists on 32769 I think :confused:)
RWIN Scaling: 0
Unscaled RWIN : 32768
Reccomended RWINs: 63888, 127776, 255552, 511104
BDP limit (200ms): 1311kbps (164KBytes/s)
BDP limit (500ms): 524kbps (66KBytes/s)
MTU Discovery: ON
TTL: 45
Timestamps: OFF
SACKs: ON
IP ToS: 00000000 (0)

PING
http://img291.imageshack.us/img291/8573/bulletregtq0.jpg

Trace Route
http://img218.imageshack.us/img218/8277/bulletreg4dg6.jpg

Does Hop 1 to 2 mean the router delay? Isn't it high 13ms?

My Modem+Router is Zyxel 660HW-61

Besides
-HDD is clean (no spy or virus)
-I turn off Windows firewall
-I permit the UDP ports that CSS uses on modem's firewall
-Dont know it works but I use CBR as QoS on modem(other options are UBR, VBR-nrt, VBR-rt)
-Zyxel has media bandwidth management option. When I choose VOIP as high priority, at random times the router does not respond until I disable the auto bandwidth management stuff.
-Deleted every protocol but TCP/IP (QoS+Kaspersky stuff )

http://img529.imageshack.us/img529/3959/bulltreg2ee9.jpg

trogers
03-22-08, 03:07 PM
Check out this link and see if your TCP Window is stuck due to the same problem:

http://forums.speedguide.net/showthread.php?p=2178447#post2178447

Sojo
03-22-08, 03:34 PM
Thanks to trogers and Dime333; RWIN limitation problem is solved.

Sojo
03-23-08, 05:05 AM
Could you comment on the trace route results.

It consists two tests, first one seems to be ok but the second one to the same IP has two packet loss.

Is it normal, or is it the source of the problem?

trogers
03-23-08, 09:26 AM
Could you comment on the trace route results.

It consists two tests, first one seems to be ok but the second one to the same IP has two packet loss.

Is it normal, or is it the source of the problem?

Unless you are using VoIP (ie. connecting a phone set to the modem), it should not be set to high priority.

After you unstuck your TCP Window, post a new TCP Analyzer report to see if your settings are tweaked. What speed did you pay to get?

After tweaks and reboot. do another tracert (the 2nd set) to see if packet losses are still happening.

Sojo
03-23-08, 05:30 PM
I set VoIP to high priority because I think its requirements are close to online gaming. But the router just cant handle the traffic.

My latest TCP Analyzer report;

MSS: 1452
MTU: 1492
TCP Window: 63888 (multiple of MSS)
RWIN Scaling: 0
Unscaled RWIN : 63888
Reccomended RWINs: 63888, 127776, 255552, 511104
BDP limit (200ms): 2556kbps (319KBytes/s)
BDP limit (500ms): 1022kbps (128KBytes/s)
MTU Discovery: ON
TTL: 46
Timestamps: OFF
SACKs: ON
IP ToS: 00000000 (0)

Traceroute result
http://img212.imageshack.us/img212/9471/traceaj8.jpg

Still have pocket losses. Actually I dont know if Packet loss is equal to Request timed out. But if Hop 4 always results with a "request timed out" I would say that there is no permission to ping that IP but in the second test I can ping it. Weird :S

trogers
03-23-08, 10:18 PM
You have not tell us what speed you have paid to get.

Request timed out means that device does not respond to pings. But if * only occur once or twice with some third value, it implies there is packet loss.

First tracert shows packet loss at the modem in hop 2. It may be that your modem is being affected by interference from some nearby devices. Turn off power to it and relocate it a few feet away from ALL other electrical devices. Also, ensure you do not coil up any excess length of signal or power cables.

mccoffee
03-23-08, 11:27 PM
I got your pm no sure if you cablenut wil help due to those hops that is kina odd that 3,and 7 are out ta could be just for security reasons still odd.

Who is your SP ,and advertised speed.


I say disable that quo stuff unles syou are a large network ,or if alot o people are using the router the same time. Make sure te driver for the nic is uptodate ,and firmware up to date.


Another suggest is sp3 for xp is in RC it's not final ,so if you do try it do a backup first. The reason being is it does hve alot updates/patches for networking ,and also realibity. LIke i said it's not final use with due care.

Sojo
03-24-08, 03:22 AM
I did not notice the loss at hop 2, trogers you may be right. Modem is between a multifunc. printer and a speaker satellite, under it there is a sub woofer and power connector. Lastly a DC Motor is 2meters nearby (but enough distance I think its offline). There is a high possibility that these devices interfere with modem, generating EMI, noise.

mccoffee what is quo? (qos?). I dont like to use beta software, driver I am going to wait final of SP3. NIC software and modem firmware is up to date but I have to choose one of these firmwares. Which one should I use? (latest firmwares available on the site)

Global Zyxel Web Site: P-660HW-61_3.40(PE.11)C0 / 05/22/2006 (currently using this)
or
Zyxel Turkey Web Site: P660HW-61_V3.40(SV.2)D0 / 11/16/2005

My connection speed: 1024 / 256 (Will upgrade 4Mb)
Speed test result: 857.4/ 223.2
ISP: TTNet (Turkey)

I am close to the station.

noise margin downstream: 25 db
output power upstream: 11 db
attenuation downstream: 21 db

noise margin upstream: 26 db
output power downstream: 17 db
attenuation upstream: 12 db

mccoffee
03-24-08, 09:13 AM
There isn't much you can do with udp ,and yes I met qos I"ve been up all night doing verious other things. If that is the only firmware up there then keep don't touch it. If anyting maybe get the isp to upgrade the speed. My gues it's on the ips's end since it's at hop 3 .
Double check your del filters make sure they are working If you have the means there is powered filters that can filter out more stuff. Example link to one http://www.excelsus-tech.com/index.cfm?fuseaction=products.ProductDetail&id=1749757

Try thease

DefaultReceiveWindow = 131072
DefaultSendWindow = 32768
DisableAddressSharing = 1
InitialLargeBufferCount = 200
InitialMediumBufferCount = 480
InitialSmallBufferCount = 640
LargeBufferSize = 819200
MaxFastTransmit = 64000
MediumBufferSize = 150400
Priority Boost = 0
SmallBufferSize = 12800
TransmitWorker = 32
FastSendDatagramThreshhold = 4096
EnableFastRouteLookup = 1
EnablePMTUDiscovery = 1
IgnorePushBitsOnReceives = 0
GlobalMaxTcpWindowSize = 26136
MaxFreeTcbs = 8000
MaxHashTableSize = 16384
MaxNormLookupMemory = 5000000
SackOpts = 1
SynAttackProtect = 1
Tcp1323Opts = 0
TcpLogLevel = 1
TcpMaxDupAttacks = 3
TcpMaxHalfOpen = 100
TcpMaxHalfOpenRetired = 80
TcpRecvSegmentSize = 1452
TcpSendSegmentSize = 1452
TcpTimedWaitDelay = 30
TcpUseRFC1122UrgentPointer = 0
TcpWindowSize = 26136
MaxConnectionsPer1_0Server = 10
MaxConnectionsPerServer = 8
DefaultTimeToLive = 64
DefaultUserTOSSetting = 0
TcpMaxDataRetransmissions = 6
DefaultTOSValue = 240