Professional Documents
Culture Documents
Herng-Yow Chen
Outline
HTTP redirection
DNS redirection
Anycast routing
Policy routing
IP MAC forwarding
IP address forwarding
Outline (cont.)
The Web Cache Coordination Protocol (WCCP)
The Intercache Communication Protocol (ICP)
The Hyper Text Caching Protocol (HTCP)
The Network Element Control Protocol (NECP)
The Cache Array Routing Protocol (CARP)
The Web Proxy Autodiscovery Protocol (WPAD)
Why Redirect?
Redirection is a fact of life in the modern Web because
HTTP applications always want to do three things:
Perform HTTP transactions reliably
Minimize delay
Conserve network bandwidth
For these reasons, web content often is distribute in
multiple locations.
Redirection can be considered as a set of techniques
that help to find “best” distributed content.
Redirection vs. load balancing
Most redirection deployments include some form of load
balancing.
Conversely, any form of load balancing involved redirection
techniques.
Where to redirect
General techniques: many redirection techniques work
for web servers, proxies, caches, and gateways because
of their common, server-like traits.
Specialized techniques: specially designed for a
particular class of endpoint.
Web servers handle requests on a per-IP basis.
Distributing requests to duplicate servers means that
each request for a specific URL should be sent to an
optimal web server (the one nearest to the client, or the
least-loaded one, or some other optimization).
Proxies tend to handle requests on a per-protocol basis,
all HTTP traffic in the neighborhood of a proxy should go
through the proxy.
Overview of redirection protocols
The goal of redirection is to send HTTP m
essages to available web servers as quickl
y as possible. Several mechanisms can be
provided for redirection:
The browser application’s proxy configuration.
(only for redirecting traffic to proxies)
HTTP redirections.
DNS resolvers. (can be used for redirecting tra
ffic to any server).
TCP/IP Routing (e.g. Routers and switches)
HTTP redirections
How it works (next slide)
Bob
HTTP Redirection (cont.)
Several disadvantages
A significant amount of processing power is
required from the original server. (Sometime
almost as much server horse-power is
required to issue the redirect as would be to
serve up the page itself.)
User delays are increased, because two round
trips are required to access pages.
If the redirecting server is broken, the site will
be broken.
DNS redirections
How it works (next slide)
Try nslookup ccsun.ncnu.edu.tw, www.yaoo.com
Limitation
Need to configure DNS server
DNS Redirection
DNS server www.joes-hardware.com
Decides whether to www.joes-hardware.com
10.10.10.4
resolve to 10.10.10.1
Server4
10.10.10.1, Server1
10.10.10.2,
10.10.10.3,
10.10.10.4 Backbone network
router
Switch
www.joes-hardware.com
Edge network
10.10.10.2
www.joes-hardware.com Server2
10.10.10.3
Server3
DNS round robin for load
balancing
(a)Alice asks DNS for IP address of www.cnn.com
Bob
10.10.10.1
Server1
Backbone network
router
router
Switch
router
www.joes-hardware.com
Edge network
10.10.10.2
www.joes-hardware.com Server2
10.10.10.3
Server3
IP MAC Forwarding
Client MAC 1
To Internet
Gateway MAC5
Client MAC 2
IP MAC Forwarding
Client MAC 1
To Internet
Gateway MAC5
Port 80 traffic
Client MAC 2
Caching proxy
MAC6
IP Address Forwarding
Destination
proxy
Joe’s server
Backbone network
router
Switch Joe’s edge
network
Edge network
IP Address Forwarding
T P d a ta ■
HT a t a ■
──────
──────
─
HTTP d
─
────── ──────
─
────── ──────
──
───── ──
────── ──────
──── ─
─
──────
──────
Proxy Auto-configuration
PAC file autodiscovery
GRE packet encapsulation
To Proxy: Proto:GRE
3.3.3.3
8080
Form:Client:
Form:Client:
1.1.1.1
1.1.1.1
80 To:Joe’s Server
80 To:Joe’s Server
2.2.2.2 Passes through WCCP
router 2.2.2.2
80
80
T TP d a t a ■ ■
H ─ H T TP d a t a
──────
────── ─
──────
─ ──────
────── ──────
─
────── ─ ──────
────── ──────
─ ─
─────
──────
Cache Array Routing Protocol
Cache Array Routing Protocol
Hyper Text Caching protocol