![]() |
Simple view on how proxies work (inc DNS)
Since it seems to confuse people a lot I thought I'd try and explain it in simple terms;
Techies - feel free to point out any mistakes. :) First of all - without any proxies - when a client wants a web page ; 1. It does a dns lookup of the required domain using its own (locally) defined dns servers. 2. It sends the http request on tcp port 80 to the destination servers IP address. 3. This request is routed over the network direct to the specified server IP. 4. The requested page is then returned, by the server, direct to the client. Now if you have a manually defined proxy (such as in IE, on port 8080) - when a client wants a web page ; 1. It does a dns lookup of the proxy servers IP using its own (locally) defined dns servers. 2. It sends the http request on tcp port 8080 to the proxy servers IP address. 3. This request is routed over the network direct to the specified proxy server IP. 4. The proxy server checks if it has a valid copy of the requested page in its cache. 5. If the proxy has the page it returns it directly back to the client, Job done. 6. If the proxy does not have the page it does a dns lookup of the requested domain using it's own defined dns servers. 7. The proxy sends the http request on tcp port 80 to the destination servers IP address. 8. This request is routed over the network direct to the destination servers IP. 9. The requested page is then returned, by the destination server, directly back to the proxy server. 10. The requested page is then returned, by the proxy server, direct to the client. Now if you have no manually defined proxy, but NTL's proxies are active - when a client wants a web page ; 1. It does a dns lookup of the destination servers IP using its own (locally) defined dns servers. 2. It sends the http request on tcp port 80 to the destination servers IP address. 3. This request is intercepted by NTL's routers and re-directed to one of a group of transparent proxy [cache] servers - the decision on which proxy server gets used is (usually) based on the requested domain. 4. The chosen proxy server checks if it has a valid copy of the requested page in its cache. 5. If the proxy has the page it returns it directly back to the client, Job done. 6. If the proxy does not have the page it does a dns lookup of the requested domain using it's own defined dns servers. 7. The proxy sends the http request on tcp port 80 to the destination servers IP address. 8. This request is routed over the network direct to the destination servers IP. 9. The requested page is then returned, by the destination server, directly back to the proxy server. 10. The requested page is then returned, by the proxy server, direct to the client. The final scenario is called transparent because the client is unaware that its request as been "hijacked" and still thinks it is talking directly to the destination server. From the above it can be seen that if you are having web browsing problems and proxies are in use (transparent or otherwise) then ; 1. The DNS servers the proxy is using are just as important as yours - if they are duff then you are in trouble. (However, even if the proxy cannot resolve or contact the destination server - you can still access the requested pages if the proxy has a valid copy of them in its cache) 2. Doing a tracert to the destination server will not show you the route your request is taking as it won't go via any proxy in use. This is not a precise and exact description of how it all works but I hope it makes it clearer. :D To workout if you are using an NTL transparent proxy - use this simple link Pem. |
Re: Simple view on how proxies work (inc DNS)
Cheers for that. I think that makes sense :) I have a question though. What is a 'valid copy' of a page. I.e. How does the proxy decide if the page it has cached is recent enough? Do all pages carry a time stamp (last modified date/time), and does the proxy query the requested site for the time stamp of the requested page?
|
Re: Simple view on how proxies work (inc DNS)
All pages effectivley have an expiry date & time.
|
Re: Simple view on how proxies work (inc DNS)
Quote:
I presume this expiry time/date is set differently depending on the type of page? (very low for a forum like this) and high(er) for less dynamic pages)? Or is it just based on recent 'refresh rates'? |
Re: Simple view on how proxies work (inc DNS)
pem even when a port is specified my pages are still going through the transperent proxies, the guy who told us this in the other thread was right.
|
Re: Simple view on how proxies work (inc DNS)
Quote:
Quote:
|
Re: Simple view on how proxies work (inc DNS)
Does CTRL+Refresh Overide the proxy in order to get an updated refresh??
|
Re: Simple view on how proxies work (inc DNS)
Quote:
Do they all follow the rules ...... do they **** :banghead: |
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
just ditch them, the're not there for your convenience!
mind you, i like playing with them at work. but that's not for here!!!!!!!!!! |
Re: Simple view on how proxies work (inc DNS)
How long to the proxies keep stored pages for?
|
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
well right now pem I am running through my own proxy on port 3333, but the ntl transperent proxy is still intercepting my pages, I will look for the post that explains this and paste it here.
|
Re: Simple view on how proxies work (inc DNS)
http://forum.nthellworld.co.uk/showp...2&postcount=89
shows the info but right after i retrieved this post the ip shown in my sig is no longer ntl proxy server. I think it is working after all |
Re: Simple view on how proxies work (inc DNS)
when I use IE or firefox it doesnt use ntl proxy but if I use MYIE2 it does, very weird especially as MYIE2 uses IE core.
--edit-- fixed it :) |
Re: Simple view on how proxies work (inc DNS)
Quote:
- Expires (the best since they are explictly set by the content publisher) - Cache-Control - Last-Modified So a forum page should have the frequently updated part as having either a very recently modified date, a short expiry time or else marked as non-cacheable and the relatively static parts (logos, banners etc.) as being older or having longer expiry times. This will make the page much more responsive than making the whole page uncacheable. Note that these settings are what your local browser cache uses as well, so it's not just for the benefit of proxies). In fact checking this page via the Cacheability Engine shows this to be true (takes some time to load): http://www.web-caching.com/cgi-web-c...php%3Ft%3D9354 There's some more info about how this all works (without requiring knowledge of the RFCs) and how to optimise web servers at: http://www.mnot.net/cache_docs/ |
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
The bottom line is these transparent proxies slow down your surfing as if they havent got the page you want it now has to look it up which you had already done on the proxy. In real time doubling the time till the page arrives if its one not stored.
If I have it wrong then I am willing to learn so come on techies teach me the ideas behind proxies and what benefit they give customers! |
Re: Simple view on how proxies work (inc DNS)
I presume (but I might be wrong), the reason for having proxies is not to speed up browsing but to reduce the bandwith used outside the NTL network, thereby reducing cost (and as a result reducing what we need to pay for our connection)?
|
Re: Simple view on how proxies work (inc DNS)
pem you might have misread my previous posts, the proxy is not on my local machine, it is on a remote box. It is a pass through proxy it doesnt cache pages.
this link no longer shows any ntl proxy servers. http://romulas.zmnt.co.uk/forum/vars.asp |
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
dedicated box I got in a datacentre in the us.
I got some minor issues with cookies and ssl at the moment needs some tweaking, but overall I am pleased with the improvements. |
Re: Simple view on how proxies work (inc DNS)
|
Re: Simple view on how proxies work (inc DNS)
Quote:
Also the one website I visit the most the forums I moderate is slower this is hosted in Germany. I have more page errors on proxies even though the address is correct to get to these pages I have to go via Google. Infect when the proxies were turned off that was the best internet I had and the DNS propagated quicker. I have had to waste downloads as I have sometimes started a download and itâ₠¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚¢s stopped partway through and would not restart. Yet if I started again from it worked. Suppose its the proxies but I find the information on that link very limited about proxies and not at all reasuring after all the problems with mail servers how can we be sure the proxies will stay up. The more different ways we have to ask to get to our final website the more bandwidth we end up using.... IMPO........ |
Re: Simple view on how proxies work (inc DNS)
Quote:
A cache 'hit' (where it satisfies the request from local disk) should take tens of milliseconds (ms). A 'miss' (where it has to fetch the object from the remote web server via the internet) takes several hundreds to thousands of ms. A slightly older doc on the problems of latency (but the principles still hold true today) is: http://rescomp.stanford.edu/~cheshir...s/Latency.html |
Re: Simple view on how proxies work (inc DNS)
well ntl rang me up today, concerning my proxy complaint, I ran some tests for him downloaded a file from download.com and it was fine. I told him of the hotmail problems and on the firefox site as well as my browsing slowdown, he told me what I believed to be true tho, these proxies were turned on after ntl decided nationwide they are all to be on, he said its ok for me to use my own proxy, so I will carry on using it.
|
Re: Simple view on how proxies work (inc DNS)
Quote:
Thank you for that link I will read it later tonight when I have peace. I must say that the proxies was working ok recently but last night they blew it big time. As soon as it was too late to call in the proxies for me died completely. Unable to access any website.. MSN, Yahoo, ICQ and AIM alsom MIRC chatroom all still worked but anything that needed the http was dead.... this lasted about 30 mins... Need some sort of way to communicate these problems when faults is closed or 24 hour cover.. |
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
yeah I got this sig from someone else I added it purely as a diagnostic to see if using a ntl proxy.
|
Re: Simple view on how proxies work (inc DNS)
Quote:
If you issue an HTTP GET and also include an If-Modified-Since header then the web server will only send you the object if it has been modified since the date that you specified. If it hasn't, it replies with HTTP/1.1 304 Not Modified and then you can mark your content as being fresh again having only transferred a few bytes. You can view this in a trace by seeing lots of 304 responses typically coming back after you hit browser Refresh. But now we're getting away from the 'simple' aspect of this thread ... :) |
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
Quote:
Cache-Control: max-age=3600 on appropriate images etc. then it optimises your web performance even further since the browsers/caches will know exactly when to refresh the content and won't need to guess by sending periodic IMS requests. For instance Google's logo.gif expires in Jan 2038! Of course if they want to change it then they just change the name. |
Re: Simple view on how proxies work (inc DNS)
what would happen if the page was updated
and Cache-Control: max-age=3600 was after the update? |
Re: Simple view on how proxies work (inc DNS)
Quote:
If you apply inappropriate expiry times then you risk browsers and caches storing your content for longer than is correct. The usual rule of thumb is to keep the html objects small and with short expiry times (or mark it uncacheable) and mark the larger objects with longer expiry times. The larger objects are the ones that you don't want being downloaded all the time anyway, since it will both load your web server and give users the impression that your page is slow. If you want to change the page and objects completely then change all the objects' names and then you can start afresh. More details are at http://www.web-caching.com/mnot_tutorial/ (might have posted that link before) |
Re: Simple view on how proxies work (inc DNS)
Yup, I noticed proxies had been turned on in both Leicester and Nottingham in the past week or so. Previously I'd pretty much always been proxy free.
Seems okay so far. |
Re: Simple view on how proxies work (inc DNS)
mr-b that would explain why I had so many problems on the development pages I used, the first time I downloaded the file probably cached it and because its a large file it is probably cached for a long time, but the file is updated at the server end numerous times a day, the cache made it pretty much unusable for me to use. This was before I setup my own proxy of course.
|
Re: Simple view on how proxies work (inc DNS)
Quote:
Just run your dev server's URL through the Cacheablity Engine http://www.ircache.net/cgi-bin/cacheability.py and it'll tell you exactly what's going on (Definitely given that link out before). If the file is being updated frequently then its Last Modified header will be more recent which will tell your browser or proxy to verify its freshness more frequently. |
Re: Simple view on how proxies work (inc DNS)
"The usual rule of thumb is to keep the html objects small and with short expiry times (or mark it uncacheable) and mark the larger objects with longer expiry times. The larger objects are the ones that you don't want being downloaded all the time anyway, since it will both load your web server and give users the impression that your page is slow. "
I thought by that you was reffering to size of file? I ran a link through that url and it seems to confirm my proxy server is only proxying and doing no caching which is what I want :) |
Re: Simple view on how proxies work (inc DNS)
i just ran ntlworld though that site and it said they are stale
|
Re: Simple view on how proxies work (inc DNS)
Quote:
The gifs have Last-Modified headers on and so will be cached and verified according to age. |
Re: Simple view on how proxies work (inc DNS)
The problem with proxies is they work on a flase premise. The false premise they work on is that external bandwidth is expensive - and thus it is worth spending time money and resource on reducing external bandwidth requirments. It is very like the false premise that 'storage' was expensive - that led to people coding year date fields as 2 numbers and not 4 - well into the 80's and beyond, thus creating the y2k problems.
I would challenge anyone to prove to me that the cost of running and maintaining the NTL proxies is less than the amount saved on external bandwidth costs. If you add in a cost for the problems these proxies cause for users as well then the figures make even less sense. Of course you can also use such proxies for other objectives - like limiting what and how much people can browse but that is apparently not the objective for NTL. PS there was an onlinbe petition setup a while back - but it's not had much support so far so maybe NTL's forced proxies are not that much of a problem to most users? http://www.petitiononline.com/ntlhpp/petition.html |
Re: Simple view on how proxies work (inc DNS)
Erol - you also need to factor in the bandwidth costs that the supplier of the data pays. A site pays its host bandwidth cost. NTLs (and others proxies) reduce the bandwidth I use at my host by about 25%, meaning I stay within my prepaid bandwidth.
NTLs proxies generally work well for me so I don't complain. Ctrl F5 addresses any problems. Occasionally I need to specify as the transparant Luton/Ware has gone screwy. I like to think of proxys like warehouses. Just because a pair of shoes is made in China this doesn't mean the entire stock stays there until its called for. They are shipped out to the other continents for quicker delivery. |
Re: Simple view on how proxies work (inc DNS)
Quote:
Quote:
|
Re: Simple view on how proxies work (inc DNS)
Quote:
This is also a reciprocal thing. NTL host sites. If all the proxies on the internet were switched off, then the bandwidth hitting NTLs web servers (their own ntlworld and all their customers) would increase and require more hardware and bandwidth. Bandwidth will become a more used resource, more scarse and more expensive. Quote:
|
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
If the proxies were turned of it wouldnt make any extra external traffic to the ntl hosted websites, all that traffic would be internal if their network is setup properly, for instance I leeched a file of a website onto a box on the same isp as the website and it zommed across at 1000mbit on the internal network.
|
Re: Simple view on how proxies work (inc DNS)
Quote:
If NTL switch their proxies off then every request to sites hosted on Thus, Tiscali, Telewest and all other external subnets will go to those subnets and none of the traffic will be caught by proxies. A resultant increase in traffic for the other sites. If all ISPs switched off their proxies, then all traffic from say Blueyonder or Demon to NTL hosted sites would be directed to the server not a proxy, resulting in an increase in traffic on NTLs subnet. |
Re: Simple view on how proxies work (inc DNS)
Quote:
If any that did 'turned off' their proxies overnight then yes their external traffic would increase - but if this increase in external traffic cost _less_ than running the proxies in the first place then they would _all_ be better off. That's the (same) point made nefore in relation to NTL. Introducing 'both ends' makes no difference to the basic common sense of the point. |
Re: Simple view on how proxies work (inc DNS)
Bravo
Lets have some more threads like this, makes a nice change from moaning posts! Very informative thanks very much :) |
Re: Simple view on how proxies work (inc DNS)
Quote:
|
Re: Simple view on how proxies work (inc DNS)
So how would I go about reporting a problem with a particular 'transparent' proxy?
The one (or more?) in Kirklees is messing up web pages, causing lots of script errors and most importantly stopping eBay from working!! (Have verified thatusing a different proxy solves these issues) |
Re: Simple view on how proxies work (inc DNS)
Contact ntl Technical Support would be the best way.
|
| All times are GMT. The time now is 14:23. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum