在server.counter-strike.net上找到了答案. 在这里发出来大家共享一下.
My server is initially a low ping server, but pings skyrocket the more people join?
This can happen for many reasons. But for the most part, I have found, is that many of you server admins just are not honest with yourselves - and let me explain. Some of you are trying to run a server but you just do not have the hardware or Internet connection needed to run one. Sure, it is a lot of fun running servers, but if you don't have the equipment, then it's just not going to work. You can check out Valve's recommended minimum requirements, but to be honest, I think the requirements should be much more strenuous, especially with the mods (because they are more CPU intensive). Many of you others still might have pretty good hardware, and a cable connection, so you pump up your maxplayer limit to 16+. That's just not going to happen, and it's due to the way cable works. It is a WAN (wide-area-network) and your connection is shared. I have found 12 to be the definitive max for a cable server, and that is pushing it. But the bottom line is, be honest with yourself - don't be afraid to admit that you don't have the equipment or that you are trying to push your server too hard. Because you may start off with an empty, low ping server, and a whole bunch of people join (for that low ping issue), and then your server cannot hold them all. Pings rise, their tempers rise cuz they have spent the whole night trying to find and "honest" low ping server, and your server earns a bad rep. Now, another reason has something to do with Gamespy, Pingtool, and other server finders constantly doing UDP port scans, which in effect, kind of floods your server.
在用cable做服务器的时候需要注意:
You can also use both in combination with each other. In playing around with some servers, I found some interesting combinations. I have a Counter-Strike server running with an 18 maxplayer limit. It was fascinating playing with these settings and watching how they dramatically affect player's pings. After a few hours, I found the best combination for this particular server was sv_maxrate 6500 and sv_minrate 2000. With a server with a larger maxplayer limit, you may want to lower your maxrate to keep the bandwidth reasonable for all the players. On the other hand, if you run a smaller more personal server for you and a few friends in the neighborhood, you may want to make sv_maxrate 20000 and sv_minrate 9000. Also, if you run a server on a cable connection, you may have already noticed how much cable connections seem to fluctuate. You may want to set sv_maxrate 8000 and sv_minrate 4000. Whatever the number for the cable server, keep them closer together to lessen the fluctuating rates.
cable server对于服务器来说很容易产生lag,人多的话就必须降低sv_maxrate sv_minrat
不像局域网中可以设很高,要保持每个人的带宽不超出cable的限制,很多人在客户端rate都设置成25000,这样适合局域网,但不适合互联网,所以如果服务器也设高的话就非常占用网络带宽了 |