Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Simple view on how proxies work (inc DNS)

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Virgin Media Services > Virgin Media Internet Service > Webspace, E-Mail & Browsing Issues

Simple view on how proxies work (inc DNS)
Reply
 
Thread Tools
Old 16-03-2004, 15:41   #31
mr-b
Inactive
 
Join Date: Jan 2004
Location: Warwickshire
Posts: 53
mr-b is an unknown quantity at this point
Re: Simple view on how proxies work (inc DNS)

Quote:
Originally Posted by SMHarman
Http also has a HEAD command and a GET command. GET asks for the whole page, HEAD asks for the headers, which can be used to compare to the cached headers. Head uses a lot less bandwidth as a result.
Correct - but there's a way of using even less bandwidth.

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 ...
mr-b is offline   Reply With Quote
Advertisement
Old 16-03-2004, 15:43   #32
SMHarman
Inactive
 
Join Date: Jun 2003
Services: Cablevision
Posts: 8,305
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
Re: Simple view on how proxies work (inc DNS)

Quote:
Originally Posted by mr-b
Correct - but there's a way of using even less bandwidth.

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 ...
There are some well formatted caches and browsers out there. Looking at my site stats about 25% of traffic is 304'd. That saves me a good bit in bandwidth costs.
SMHarman is offline   Reply With Quote
Old 16-03-2004, 20:42   #33
mr-b
Inactive
 
Join Date: Jan 2004
Location: Warwickshire
Posts: 53
mr-b is an unknown quantity at this point
Re: Simple view on how proxies work (inc DNS)

Quote:
Originally Posted by SMHarman
There are some well formatted caches and browsers out there. Looking at my site stats about 25% of traffic is 304'd. That saves me a good bit in bandwidth costs.
Absolutely, and if you specify explicit expiry times e.g. by using a header such as:
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.
mr-b is offline   Reply With Quote
Old 16-03-2004, 20:45   #34
Chrysalis
cf.mega poster
 
Join Date: Sep 2003
Posts: 12,060
Chrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronze
Chrysalis is cast in bronze
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?
Chrysalis is offline   Reply With Quote
Old 16-03-2004, 21:50   #35
mr-b
Inactive
 
Join Date: Jan 2004
Location: Warwickshire
Posts: 53
mr-b is an unknown quantity at this point
Re: Simple view on how proxies work (inc DNS)

Quote:
Originally Posted by Chrysalis
what would happen if the page was updated

and Cache-Control: max-age=3600 was after the update?
A simplistic approach to this is to consider a web page as a collection of objects referenced by an html object. As the content publisher you apply appropriate expiry times to your objects e.g. images tend not to change very much, so you might expire them in a month. Your html might change more often so give html objects expiry times of 3600s.

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)
mr-b is offline   Reply With Quote
Old 16-03-2004, 22:57   #36
asdf
Inactive
 
Join Date: Dec 2003
Location: Middle row - far left.
Posts: 458
asdf will become famous soon enoughasdf will become famous soon enoughasdf will become famous soon enough
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.
asdf is offline   Reply With Quote
Old 16-03-2004, 23:27   #37
Chrysalis
cf.mega poster
 
Join Date: Sep 2003
Posts: 12,060
Chrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronze
Chrysalis is cast in bronze
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.
Chrysalis is offline   Reply With Quote
Old 17-03-2004, 18:02   #38
mr-b
Inactive
 
Join Date: Jan 2004
Location: Warwickshire
Posts: 53
mr-b is an unknown quantity at this point
Re: Simple view on how proxies work (inc DNS)

Quote:
Originally Posted by Chrysalis
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.
Size of file has nothing to do with how long browsers or proxies cache the object for. They cache the object until they run out of allocated disk space and something else replaces it.

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.
mr-b is offline   Reply With Quote
Old 17-03-2004, 21:30   #39
Chrysalis
cf.mega poster
 
Join Date: Sep 2003
Posts: 12,060
Chrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronze
Chrysalis is cast in bronze
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
Chrysalis is offline   Reply With Quote
Old 17-03-2004, 21:43   #40
theman
Inactive
 
Join Date: Mar 2004
Posts: 129
theman has a spectacular aura about themtheman has a spectacular aura about themtheman has a spectacular aura about themtheman has a spectacular aura about them
Re: Simple view on how proxies work (inc DNS)

i just ran ntlworld though that site and it said they are stale
theman is offline   Reply With Quote
Old 18-03-2004, 12:27   #41
mr-b
Inactive
 
Join Date: Jan 2004
Location: Warwickshire
Posts: 53
mr-b is an unknown quantity at this point
Re: Simple view on how proxies work (inc DNS)

Quote:
Originally Posted by theman
i just ran ntlworld though that site and it said they are stale
The analysis is not saying that the actual object is stale, more accurately that browsers and caches will treat the homepage html object as being stale and so always fetch a new copy every time it is accessed. ntl have done this by setting a cookie on the homepage which effectively makes it uncacheable.
The gifs have Last-Modified headers on and so will be cached and verified according to age.
mr-b is offline   Reply With Quote
Old 18-03-2004, 12:49   #42
erol
Inactive
 
Join Date: Oct 2003
Location: cyprus
Posts: 510
erol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to all
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
erol is offline   Reply With Quote
Old 18-03-2004, 13:21   #43
SMHarman
Inactive
 
Join Date: Jun 2003
Services: Cablevision
Posts: 8,305
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
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.
SMHarman is offline   Reply With Quote
Old 18-03-2004, 13:43   #44
erol
Inactive
 
Join Date: Oct 2003
Location: cyprus
Posts: 510
erol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to allerol is a name known to all
Re: Simple view on how proxies work (inc DNS)

Quote:
Originally Posted by SMHarman
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.
This is true but I doubt NTL run the proxies to save your web hosters external bandwidth. For me if you are doing a cost evaluation from NTL's perspective of how much the proxies save vs how much they cost - then what is relevant is how mcuh they save for NTL (and not how much they save for NTL + third parties)

Quote:
Originally Posted by SMHarman
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.
Well I am not an NTL user and never have been so my personal experience is zero. However having hung around this forum and other NTL related forums it seems to me that 'try changing your proxy' is one of the most common pieces of advise given and thus it would appear that NTL's forced proxies do create significant problems for significant numbers of users. For me it is all about choice. I do not think NTL should necessarily scapt its proxies but just that it should allow people to chooses whether they use them or not.
erol is offline   Reply With Quote
Old 18-03-2004, 14:07   #45
SMHarman
Inactive
 
Join Date: Jun 2003
Services: Cablevision
Posts: 8,305
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
Re: Simple view on how proxies work (inc DNS)

Quote:
Originally Posted by erol
This is true but I doubt NTL run the proxies to save your web hosters external bandwidth. For me if you are doing a cost evaluation from NTL's perspective of how much the proxies save vs how much they cost - then what is relevant is how mcuh they save for NTL (and not how much they save for NTL + third parties).
True however this is indicative of the additional bandwidth of a small site, what would it be like for Amazon or other popular sites? Ultimately it could put up the cost of doing business on line as the bandwidth costs need to be recovered in the selling price.

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:
Originally Posted by erol
Well I am not an NTL user and never have been so my personal experience is zero. However having hung around this forum and other NTL related forums it seems to me that 'try changing your proxy' is one of the most common pieces of advise given and thus it would appear that NTL's forced proxies do create significant problems for significant numbers of users. For me it is all about choice. I do not think NTL should necessarily scapt its proxies but just that it should allow people to chooses whether they use them or not.
Yes they screw up for me too. I can get mail, message, but not browse - its the proxys that are the problem in that instance.
SMHarman is offline   Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:56.


Server: lithium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum