how to configure squid to lower down latency in online game ...
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to configure squid to lower down latency in online game ...
greetings ,
i have a question here , i have set up squid 2.7 in ubuntu server and it works fine as a proxy server , but how can i configure it to lower down the latency when i play online games through the proxy server ?
thanks for the help , you guys have done a great job helping ppl here cheers
and how do you expect that to work? Squid can cache
data (if the web-server flags caching as sensible).
No latency impact. What kind of game(s) are you wanting
to impact on with squid?
but how can i configure it to lower down the latency when i play online games through the proxy server ?
My first reaction was also "you can't", but I was hoping that someone would ask a question that would get you to explain more about your objectives, as maybe I've misunderstood.
if you mean stuff like fps or role-playing games, my impression is that the data transfer is almost entirely of the dynamic data (eg, player/bot coordinates, health status, etc). I get the impression that, eg, Doom and all of the games that follow in its bloody footsteps, do a good job of reducing this data to a sensible minimum set and that, eg backgrounds, textures and maps are not needlessly retransmitted within a level. (Note: that is the textures itself, not the index to the texture).
There may be some re-transmission on starting a level (which I assume isn't your biggest concern), or the texture-to-index mapping may be 'hard coded' within the game; my guess is that this is game specific, but that's only a guess, and its not really important.
If not, I don't see how they ever managed to run on relatively low technology and old networks...
Given this, and given that caching works by storing an old copy of the data in the hope that it will be useful at some time in the future, like Tinkster, I don't see how this would work. This may just be my lack of awareness about modern games, of course, as I can't claim any expertise there.
There might be some minute advantage to be gained out of trying to ensure that nameserver (err, gameserver, I suppose) look-up occurs speedily, but maybe the particular games effectively cache those translations from human-readable to ip forms, so I don't know whether that could be useful or whether its anything other than the most insignificant of advantages.
thanks for the reply , actually i have discovered this from 1 of the service provider in the market ...which i have subscribed and using proxifier to check on the connection ...it replies :
The proxy server reply header is:
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.7.STABLE3
Date: Mon, 18 May 2009 07:39:38 GMT
Content-Type: text/html
Content-Length: 1277
Expires: Mon, 18 May 2009 07:39:38 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
X-Cache: MISS from gametune
X-Cache-Lookup: NONE from gametune:3128
Via: 1.0 gametune:3128 (squid/2.7.STABLE3)
Connection: close
so i thought this actually could be done using squid...and with the connection to the proxy i subscribed , it does reduce the game latency from usually 700ms-1000ms to 290ms-400ms dramatically.(fyi:i am staying in asia and the destination server is in US).
now back to my question , is there any way to do it
thanks again for your time and pls do let me know if there's any other information you need from my side , cheers
dont know much about squid, but i dont belive that you can lower down the latency for games with squid. Data send from game server to client is never the same.
If you have low bandwith internet connection, the only solution to lower down the latency is probably using iptables on layer7, QoS. And this works only if you have more clients on one internet connection and you know that they are using bandwith when you are playing. On high speed connection ther is no, or very little impact to latency with QoS. You need to patch kernel for layer7 to work.
so i thought this actually could be done using squid... and with the connection to the proxy i subscribed , it does reduce the game latency from usually 700ms-1000ms to 290ms-400ms dramatically.(fyi:i am staying in asia and the destination server is in US).
now back to my question , is there any way to do it
thanks again for your time and pls do let me know if there's any other information you need from my side , cheers
You're still not saying much about what kind of
game you're hoping to improve; but either way, if
you're playing against other people, and the response
is meant to be real-time, all a proxy can introduce
is extra latency. Even in an ideal case, where the
storage & retrieve of cached data is marginal (in the
few millisecond range), you'll always have the roundtrip
from the opponent (squid can't impact on line-speed,
quality or the gear of the other player) to the game
host, and the round-trip from the game host to yourself.
If you could elaborate in which way the squid has reduced
latency for you between 410-600ms I'd be very keen to
hear that ....
You're still not saying much about what kind of
game you're hoping to improve; but either way, if
you're playing against other people, and the response
is meant to be real-time, all a proxy can introduce
is extra latency. Even in an ideal case, where the
storage & retrieve of cached data is marginal (in the
few millisecond range), you'll always have the roundtrip
from the opponent (squid can't impact on line-speed,
quality or the gear of the other player) to the game
host, and the round-trip from the game host to yourself.
If you could elaborate in which way the squid has reduced
latency for you between 410-600ms I'd be very keen to
hear that ....
Cheers,
Tink
sry abt that , those online game i am talking abt is actually any mmorpg .
about how the squid has reduce my latency is actually my question here ,but by using Proxifier , connecting to the proxy server(which i detected as a squid2.7 stable) , it does reduce the latency in game ;without connecting to squid , it was totally unplayable...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.