Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

Searchable, convenient, complete TCP/IP information.
The TCP/IP Guide

Custom Search







Table Of Contents  The TCP/IP Guide
 9  TCP/IP Application Layer Protocols, Services and Applications (OSI Layers 5, 6 and 7)
      9  Name Systems and TCP/IP Name Registration and Name Resolution
           9  TCP/IP Name Systems: Host Tables and Domain Name System (DNS)
                9  TCP/IP Domain Name System (DNS)
                     9  DNS Name Servers and Name Resolution
                          9  DNS Resolution Concepts and Resolver Operations

Previous Topic/Section
DNS Basic Name Resolution Techniques: Iterative and Recursive Resolution
Previous Page
Pages in Current Topic/Section
1
23
Next Page
DNS Name Resolution Process
Next Topic/Section

DNS Name Resolution Efficiency Improvements: Caching and Local Resolution
(Page 1 of 3)

The basic resolution techniques—iterative and recursive—can be considered “complete” from an algorithmic standpoint. By starting at the top (root) and working our way down, we are “guaranteed” to always eventually arrive at the server that has the information we need. I put “guaranteed” in quotes only because as always, there are no real “guarantees” in networking—we might have asked for a non-existent name, or a server might have bad data for example. But in the absence of such atypical problems, the process leads to the information eventually.

The problem is that last word: “eventually”. Both iterative and recursive resolution will get us to the right server, but they take a long time to do it, especially if the name we are trying to resolve is in a “deep” part of the DNS hierarchy (for example, “F.E.D.C.B.A.”). Since resolution is done so often, it is helpful to define changes to the basic resolution process that improve efficiency as much as possible.

The Motivation for Caching: Locality of Reference

A computer science principle called locality of reference describes two common phenomena related to how computers (and networks) are used. The first, sometimes called spatial locality of reference, observes that a resource is more likely to be referenced if it is near another resource that was recently referenced. The second, temporal locality of reference, says a resource is more likely to be accessed if it was recently accessed.

We can observe both of these phenomenon by using the example of browsing the Web. To observe spatial locality of reference, notice what happens when you visit a site such as http://www.tcpipguide.com. The initial request asks the server for the main index document of The TCP/IP Guide. However, that document contains links to several images and other items, all of which are also located at the domain “tcpipguide.com”. When your browser asks for the main document, it will shortly thereafter also ask for a number of graphics. Of course, as you navigate the site, you will click links to go to other Web pages. Again here, most of these will also be at the same domain, “tcpipguide.com”.

What this means is that if we resolve a particular domain name, it is likely that we will need to resolve it again very soon in the future. It would be silly to have to interrogate the same domain server dozens of times, each asking it to resolve the same name.

The second phenomenon, temporal locality of reference, is one you have probably noticed yourself. You are far more likely to access a resource you have used recently than one you have not looked at in a year. This means that maintaining information about recently-used resources can be inherently advantageous.


Previous Topic/Section
DNS Basic Name Resolution Techniques: Iterative and Recursive Resolution
Previous Page
Pages in Current Topic/Section
1
23
Next Page
DNS Name Resolution Process
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.