LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-16-2009, 05:50 AM   #1
marlon4
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Rep: Reputation: 0
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
 
Old 05-17-2009, 03:31 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi, welcome to LQ,

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?


Cheers,
Tink
 
Old 05-17-2009, 04:31 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
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.
 
Old 05-18-2009, 02:48 AM   #4
marlon4
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 05-18-2009, 09:21 AM   #5
mwkemo
Member
 
Registered: May 2009
Location: Croatia
Distribution: Debian
Posts: 31

Rep: Reputation: 16
Hi,

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.

Hope it help,
By.
 
Old 05-18-2009, 11:42 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by marlon4 View Post
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 ....



Cheers,
Tink
 
Old 05-19-2009, 12:05 AM   #7
marlon4
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New online game dragos13 General 14 05-29-2007 11:37 AM
how to game online behind squid? artz Linux - Networking 7 08-31-2004 09:15 PM
configure wants lower version of aclocal aus9 Slackware 2 01-20-2004 10:01 PM
Latency lower after RH and Mandrake!? blop Linux - Newbie 0 10-29-2003 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration