A content router can be added to a CDN to redirect users' requests to the closest content engine that contains the desired content. The closest content engine is the one that has the shortest delay to the user. To determine this, the list of candidate content engines is configured on the content router, and a boomerang protocol is used between the content router and each content engine to determine the delay between the two devices. This delay is then used in a Domain Name System (DNS) race process. When a content router receives a request for content that is serviced by multiple content engines, the content router forwards that request to a selection of the appropriate content engines, delaying each request by the delay determined by the boomerang protocol. Thus, each content engine should receive the request at the same time. The content engines then all respond to the request; the first response that is received by the client or the client's local DNS server is the winner of the race and is therefore the best content engine from which that particular client should receive the desired content. The client then requests the desired content from the winning content engine. The content router can be used in either of two modes[3]direct mode or WCCP modeas described in the following sections. Direct ModeKey Point When used in direct mode, the content router acts as the authoritative DNS server for all domains for which it is configured. DNS address requests are sent directly from a DNS server that is local to the client to the content router. As an example of a content router operating in direct mode, assume that the content router is to handle requests to http://www.cisco.com. The DNS server is thus configured to point to the content router as the name server for http://www.cisco.com, and all requests for content from this site are sent to the content router. Figure 8-4 illustrates how a direct-mode content router interacts with other devices in the network. Figure 8-4. A Content Router in Direct Mode Acts as a DNS Server
The steps involved when a content router is operating in direct mode are as follows:
WCCP ModeKey Point When a content router is used in WCCP mode, users' requests are intercepted by a WCCP-enabled router and forwarded to the content router. (This is different from when the content router is used in direct mode, in which the user's local DNS server is configured to point directly to the content router.) If the content router cannot handle the user's request, it forwards the request on to the DNS server specified in the request. Otherwise, the content router handles the request in the same way as it does in direct mode, as described in the previous section. The use of WCCP mode requires that WCCP be enabled both on the content router and on another router in the path between the user and the primary DNS server. This second router must be configured to send DNS address requests to the content router. Figure 8-5 illustrates how a WCCP-mode content router interacts with other devices in the network. Figure 8-5. A Content Router in WCCP Mode Receives Requests Intercepted by a WCCP-Enabled Router
The steps involved when a content router is operating in WCCP mode are as follows:
|