You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2018/10/10 18:26:05 UTC

[trafficcontrol] 07/39: Formatting consitency

This is an automated email from the ASF dual-hosted git repository.

mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit 3a710e7ab7da07fb834b9e13fad67bfa7a6e1cd4
Author: ocket8888 <oc...@gmail.com>
AuthorDate: Tue Sep 18 18:11:33 2018 -0600

    Formatting consitency
---
 docs/source/basics/caching_proxies.rst | 80 ++++++++++++++--------------------
 1 file changed, 32 insertions(+), 48 deletions(-)

diff --git a/docs/source/basics/caching_proxies.rst b/docs/source/basics/caching_proxies.rst
index b6570ea..e469f7c 100644
--- a/docs/source/basics/caching_proxies.rst
+++ b/docs/source/basics/caching_proxies.rst
@@ -13,34 +13,24 @@
 .. limitations under the License.
 ..
 
-
-.. |arrow| image:: fwda.png
-
 .. _caching_proxy:
 
+***************
 Caching Proxies
-===============
-The main function of a CDN is to proxy requests from clients to origin servers
-and cache the results.
-To proxy, in the CDN context, is to obtain content using HTTP from an origin
-server on behalf of a client. To cache is to store the results so they can be
-reused when other clients are requesting the same content. There are three
-types of proxies in use on the Internet today:
-
-- Reverse Proxy
+***************
+The main function of a CDN is to proxy requests from clients to origin servers and cache the results. To proxy, in the CDN context, is to obtain content using HTTP from an origin server on behalf of a client. To cache is to store the results so they can be reused when other clients are requesting the same content. There are three types of proxies in use on the Internet today:
+
+Reverse Proxy
 	Used by Traffic Control for EDGE caches.
-- Forward Proxy
+Forward Proxy
 	Used by Traffic Control for MID caches.
-- Transparent Proxy
+Transparent Proxy
 	These are not used by Traffic Control. If you are interested you can learn more about transparent proxies on `wikipedia <http://en.wikipedia.org/wiki/Proxy_server#Transparent_proxy>`_.
 
-.. index::
-	Reverse Proxy
-
 .. _rev-proxy:
 
-|arrow| Reverse Proxy
----------------------
+Reverse Proxy
+=============
 A reverse proxy acts on behalf of the origin server. The client is mostly unaware it is communicating with a proxy and not the actual origin. All EDGE caches in a Traffic Control CDN are reverse proxies. To the end user a Traffic Control based CDN appears as a reverse proxy since it retrieves content from the origin server, acting on behalf of that origin server. The client requests a URL that has a hostname which resolves to the reverse proxy's IP address and, in compliance with the HTT [...]
 
 .. seealso:: `ATS documentation on reverse proxy <https://docs.trafficserver.apache.org/en/latest/admin/reverse-proxy-http-redirects.en.html#http-reverse-proxy>`_.
@@ -68,29 +58,31 @@ cache is: ``http://www-origin-cache.cdn.com http://www.origin.com``.
 
 The client is given the URL ``http://www-origin-cache.cdn.com/foo/bar/fun.html`` (note the different hostname) and when attempting to obtain that URL, the following occurs:
 
-1. The client sends a request to the Local Domain Name Server (LDNS) server to resolve the name ``www-origin-cache.cdn.com`` to an IPv4 address.
+#. The client sends a request to the Local Domain Name Server (LDNS) server to resolve the name ``www-origin-cache.cdn.com`` to an IPv4 address.
+
+#. Similar to the previous case, the LDNS server resolves the name ``www-origin-cache.cdn.com`` to an IPv4 address, in this example, this address is 55.44.33.22.
 
-2. Similar to the previous case, the LDNS server resolves the name ``www-origin-cache.cdn.com`` to an IPv4 address, in this example, this address is 55.44.33.22.
+#. The client opens a TCP connection from a random port locally, to port 80 (the HTTP default) on 55.44.33.22, and sends the following:
 
-3. The client opens a TCP connection from a random port locally, to port 80 (the HTTP default) on 55.44.33.22, and sends the following: ::
+	.. code-block:: http
 
 		GET /foo/bar/fun.html HTTP/1.1
 		Host: www-origin-cache.cdn.com
 
-4. The reverse proxy looks up ``www-origin-cache.cdn.com`` in its remap rules, and finds the origin is ``www.origin.com``.
+#. The reverse proxy looks up ``www-origin-cache.cdn.com`` in its remap rules, and finds the origin is ``www.origin.com``.
 
-5. The proxy checks its cache to see if the response for ``http://www.origin.com/foo/bar/fun.html`` is already in the cache.
+#. The proxy checks its cache to see if the response for ``http://www.origin.com/foo/bar/fun.html`` is already in the cache.
 
-6a. If the response is not in the cache:
+#. If the response is not in the cache:
 
-	1. The proxy uses DNS to get the IPv4 address for ``www.origin.com``, connect to it on port 80, and sends:
+	#. The proxy uses DNS to get the IPv4 address for ``www.origin.com``, connect to it on port 80, and sends:
 
 		.. code-block:: http
 
 			GET /foo/bar/fun.html HTTP/1.1
 			Host: www.origin.com
 
-	2. The origin server responds with the headers and content as shown:
+	#. The origin server responds with the headers and content as shown:
 
 		.. code-block:: http
 
@@ -105,7 +97,7 @@ The client is given the URL ``http://www-origin-cache.cdn.com/foo/bar/fun.html``
 
 			<!DOCTYPE html><html><body>This is a fun file</body></html>
 
-	3. The proxy sends the origin response on to the client adding a ``Via:`` header (and maybe others):
+	#. The proxy sends the origin response on to the client adding a ``Via:`` header (and maybe others):
 
 		.. code-block:: http
 
@@ -122,9 +114,7 @@ The client is given the URL ``http://www-origin-cache.cdn.com/foo/bar/fun.html``
 
 			<!DOCTYPE html><html><body>This is a fun file</body></html>
 
-6b. If it *is* in the cache:
-
-	The proxy responds to the client with the previously retrieved result:
+	If it *is* in the cache the proxy responds to the client with the previously retrieved result:
 
 	.. code-block:: http
 
@@ -141,23 +131,19 @@ The client is given the URL ``http://www-origin-cache.cdn.com/foo/bar/fun.html``
 
 		<!DOCTYPE html><html><body>This is a fun file</body></html>
 
-
-.. index::
-	Forward Proxy
-
 .. _fwd-proxy:
 
-|arrow| Forward Proxy
----------------------
+Forward Proxy
+=============
 A forward proxy acts on behalf of the client. The origin server is mostly unaware of the proxy, the client requests the proxy to retrieve content from a particular origin server. All MID caches in a Traffic Control based CDN are forward proxies. In a forward proxy scenario, the client is explicitly configured to use the the proxy's IP address and port as a forward proxy. The client always connects to the forward proxy for content. The content provider does not have to change the URL the  [...]
 
 ..  seealso:: `ATS documentation on forward proxy <https://docs.trafficserver.apache.org/en/latest/admin/forward-proxy.en.html>`_.
 
 Below is an example of the client retrieving the URL ``http://www.origin.com/foo/bar/fun.html`` through a forward proxy:
 
-1. The client requires configuration to use the proxy, as opposed to the reverse proxy example. Assume the client configuration is through preferences entries or other to use the proxy IP address 99.88.77.66 and proxy port 8080.
+#. The client requires configuration to use the proxy, as opposed to the reverse proxy example. Assume the client configuration is through preferences entries or other to use the proxy IP address 99.88.77.66 and proxy port 8080.
 
-2. To retrieve ``http://www.origin.com/foo/bar/fun.html`` URL, the client connects to 99.88.77.66 on port 8080 and sends:
+#. To retrieve ``http://www.origin.com/foo/bar/fun.html`` URL, the client connects to 99.88.77.66 on port 8080 and sends:
 
 	.. code-block:: http
 
@@ -165,13 +151,13 @@ Below is an example of the client retrieving the URL ``http://www.origin.com/foo
 		Host: www.origin.com
 
 
-..  Note:: In this case, the client places the entire URL after ``GET``, including protocol and hostname (``http://www.origin.com``), but in the reverse proxy and direct-to-origin case it puts only the path portion of the URL (``/foo/bar/fun.html``) after the ``GET``.
+	..  Note:: In this case, the client places the entire URL after ``GET``, including protocol and hostname (``http://www.origin.com``), but in the reverse proxy and direct-to-origin case it puts only the path portion of the URL (``/foo/bar/fun.html``) after the ``GET``.
 
-3. The proxy verifies whether the response for ``http://www-origin-cache.cdn.com/foo/bar/fun.html`` is already in the cache.
+#. The proxy verifies whether the response for ``http://www-origin-cache.cdn.com/foo/bar/fun.html`` is already in the cache.
 
-4a. If it is not in the cache:
+#. If it is not in the cache:
 
-	1. The proxy uses DNS to obtain the IPv4 address for ``www.origin.com``, connects to it on port 80, and sends:
+	#. The proxy uses DNS to obtain the IPv4 address for ``www.origin.com``, connects to it on port 80, and sends:
 
 		.. code-block:: http
 
@@ -179,7 +165,7 @@ Below is an example of the client retrieving the URL ``http://www.origin.com/foo
 			Host: www.origin.com
 
 
-	2. The origin server responds with the headers and content as shown below:
+	#. The origin server responds with the headers and content as shown below:
 
 		.. code-block:: http
 
@@ -195,7 +181,7 @@ Below is an example of the client retrieving the URL ``http://www.origin.com/foo
 			<!DOCTYPE html><html><body>This is a fun file</body></html>
 
 
-	3. The proxy sends this on to the client adding a ``Via:`` header (and maybe others):
+	#. The proxy sends this on to the client adding a ``Via:`` header (and maybe others):
 
 		.. code-block:: http
 
@@ -213,9 +199,7 @@ Below is an example of the client retrieving the URL ``http://www.origin.com/foo
 			<!DOCTYPE html><html><body>This is a fun file</body></html>
 
 
-4b. If it *is* in the cache:
-
-	The proxy responds to the client with the previously retrieved result:
+	If it *is* in the cache the proxy responds to the client with the previously retrieved result:
 
 	.. code-block:: http