![]() |
Cisco Internet CDN Software Configuration Guide
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chapter 2--Preparing to Configure CDN Devices
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table of ContentsPreparing to Configure CDN DevicesWhat to Do Before Configuration
Configuring DNS Determining Whether Your Network Uses a DHCP Server Setting Up the Oracle 8i DBMS About Configuring CDN Devices Configuration Priorities
CDN Device Network Addressing Primary Versus Content IP Address
Gathering Device Configuration InformationVirtual Address Internal Subnet Addresses CSS Configuration Address Configuration Information for Content Distribution Manager, Content Engines, and Content Routers
Connecting to CDN Devices Using the Command-Line InterfaceConfiguration Information for Content Services Switches Preparing to Configure CDN DevicesBefore you configure CDN devices on your network, you must prepare for the configuration. This chapter tells you what you must do before you begin the configuration process and what information you need during the configuration process. This chapter contains the following sections:
What to Do Before ConfigurationWhen you set up a Content Delivery Network, you work with three types of devices: a Content Distribution Manager, Content Routers, and Content Engines. Optionally, a fourth and fifth device type can be added: Content Services Switches for the creation of supernodes, and Cisco Catalyst 4000 or 5000 Family switches. Before you begin configuring CDN devices, you must do the following:
Configuring DNSWhen end users click CDN URLs to request content, Cisco Internet CDN Software uses DNS to route the requests, using Content Routers, to the Content Engines hosting the content requested. Content Routers and Content Engines run DNS servers that know how to answer requests related to the CDN. Before your CDN can serve content associated with a domain, you must have DNS configured properly. It is important that you understand the following definitions before you proceed with configuring DNS.
Configuring DNS involves defining the delegated domain on your DNS server and creating mappings in the configuration file (also known as a "zone file") of a domain to the Content Routers that will handle requests for that domain.
For instructions on creating hosted domains through the Content Distribution Manage user interface, refer to Chapter 2 of the Cisco Internet CDN Software User Guide. Parent domains must be configured using conventional DNS tools. To configure a delegated domain, list the Content Router host names as name servers for the domain. Cisco Internet CDN Software allows you to configure a maximum of eight Content Routers.
To create your delegated domains, apply one of the following three naming conventions to the domain names:
$ORIGIN example.com ... cdn IN NS 1d hostname_of_content_router_1.example.com. IN NS 1d hostname_of_content_router_2.example.com. IN NS 1d hostname_of_content_router_3.example.com.
www.cdn.example.com
$ORIGIN ISP.net ... content IN NS hostname_of_content_router_1.ISP.net. IN NS hostname_of_content_router_2.ISP.net. IN NS hostname_of_content_router_3.ISP.net.
www.customer1.content.ISP.net www.customer2.content.ISP.net
$ORIGIN example.com ... www IN CNAME 1d www.cdn.
www IN CNAME 1d example.content.ISP.net. Determining Whether Your Network Uses a DHCP ServerWe recommend that you determine whether your network uses a DHCP server, and what kind of a DHCP server it is.
For the network information you must provide, see the "Gathering Device Configuration Information" section. Setting Up the Oracle 8i DBMSYou must have an Oracle 8i database in use at your organization that can be used as the Cisco Internet CDN policy database. The Oracle server does not need to be dedicated to the Cisco Internet CDN. Use the instructions below to properly install the Oracle database, if you have not already done so, and to reserve resources on the Oracle database that will be used by the Cisco Internet CDN. Installing the Oracle DBMSYou must install the Oracle 8i database management system (DBMS) on your host network. To do so, follow the instructions included with the Oracle DBMS. During the installation, note the port number that the Oracle listener is configured to use. You need this port number when you configure the Content Distribution Manager.
You also need the database administrator account username and password.
Use the Oracle tools to create a database and note the session name you assign when you create the database. Configuring the Oracle DatabaseFrom a Windows, Linux, or UNIX client, log in as the database administrator to the Oracle session and host previously created using a database administration tool such as SQL*Plus.
Perform the following SQL commands.
Step 1 Create a tablespace and temporary tablespace for use by Cisco Internet CDN Software. A tablespace can be helpful with future administration of your CDN database.
SQL> create tablespace cdn DATAFILE `datafile path on Oracle Server' SIZE 250M REUSE default storage(initial 25K next 10K minextents 1 maxextents unlimited pctincrease 50); SQL> create tablespace cdntemp DATAFILE `datafile path on Oracle Server' SIZE 250M REUSE default storage(initial 25K next 10K minextents 1 maxextents unlimited pctincrease 50); Additional data files can be associated with the tablespace using the following command. SQL> alter tablespace cdn add DATAFILE `datafile path on Oracle Server' SIZE 250M REUSE default storage(initial 25K next 20K minextents 1 maxextents unlimited pctincrease 50); Step 2 List the names of the rollback segments: SQL> select segment_name from dba_rollback_segs; Step 3 For the rollback segment listed in Step 2, change the max extents to be unlimited. SQL> alter rollback segment rollback_segment_name STORAGE (NEXT 2 M MAXEXTENTS unlimited); You may also want to create a database user for Cisco Internet CDN Software at this time. Step 4 Use the following command to create a Cisco Internet CDN Software user account and password along with default tablespaces. SQL> create user username identified by password default tablespace cdn temporary tablespace cdntemp;
Step 5 Grant access rights to the new user. SQL> grant CREATE SESSION, connect, resource to username; You can use dbsetup to create your database schema (see the "Configuring the Content Distribution Manager" section), but you can also install the Cisco Internet CDN Software database schema by using an SQL script shipped with Cisco Internet CDN Software. This script contains the table definitions for Cisco Internet CDN Software and can be modified to change things such as tablespace declarations, but the actual table column definition should remain unchanged. Step 6 To load and run the script, you must first reconnect to the database using SQL*Plus and log in as the database user for Cisco Internet CDN Software. Then use the start command to run the following MerlotCreate.sql script: SQL> start LOCALPATH\MerlotCreate.sql About Configuring CDN DevicesWith the exception of the Content Services Switch, CDN devices must be configured using the setup program. Setup is a comprehensive configuration program that encompasses three other configuration routines:
You run the setup program on each device to name the device, specify the Oracle database information and DNS server information for the Content Distribution Manager, specify network interfaces and network information, bring the network online, generate certificates, and register the Content Distribution Manager, Content Routers, and Content Engines.
Configuration PrioritiesWhen you begin your CDN device configuration, configure your devices according to the following priorities: 1. Content Services Switch and Catalyst switch (if used) 2. Content Distribution Manager 3. Content Routers and Content Engines See the following sections for CDN device configuration information:
CDN Device Network AddressingYour CDN devices use a number of different network addresses to manage different types of content requests from end users and from other devices on the CDN. This section identifies and explains the different kinds of addresses you are asked to supply during configuration of your CDN devices. Make sure that you understand the purpose of each type of network address before continuing with device configuration. Primary Versus Content IP AddressContent Routers and Content Engines require two IP addresses to operate: a primary IP address and a content IP address. The Content Distribution Manager requires only a single address, the primary IP address.
You must assign each IP address to an Ethernet port. The primary and content IP addresses can each use a unique Ethernet port, or they can share a single port.
If you decide to use separate Ethernet ports for the primary and content IP addresses, you must provide separate subnet and gateway information for each port. In this case, DHCP is capable of assigning one IP address per interface. See the "CDN Device Wiring Configuration" section for more information on assigning your primary and content IP addresses to the appropriate port on your CDN device. Virtual AddressThe Content Services Switch is configured with one or more virtual IP addresses. These addresses are assigned one per cluster for each cluster associated with the Content Services Switch. When requests are received for a particular cluster using that cluster's virtual IP address, the Content Services Switch uses Network Address Translation (NAT) to map the virtual IP address to the content IP addresses of the Content Engines in that cluster. Internal Subnet AddressesThe Content Services Switch maintains an internal subnet of Content Engine content IP addresses referred to as the internal subnet. It is from this list of addresses that the Content Services Switch chooses Content Engines to serve content. CSS Configuration AddressThe Content Services Switch maintains an address, the CSS configuration address, through which it communicates with the Content Distribution Manager. Requests and commands are sent from the Content Distribution Manager, programmatically, to the Content Services Switch at the CSS configuration address using Secure Shell (SSH) to encrypt this traffic. Gathering Device Configuration InformationBefore you configure your CDN devices, you need to have specific information available so you can respond to prompts during configuration. Configuration Information for Content Distribution Manager, Content Engines, and Content RoutersTable 2-1 shows the device information you need when you configure the Content Distribution Manager, Content Routers, and Content Engines. Table 2-1: Device Information for Configuring the Content Distribution Manager, Content Routers, and Content Engines
If your network uses a DHCP server, then you do not provide network configuration information when you configure CDN devices. If your network does not use a DHCP server, then you must provide network configuration information when you configure your CDN devices. Table 2-2 shows the network information you need for the Content Distribution Manager, Content Routers, and Content Engines. Table 2-2: Network Information for Configuring the Content Distribution Manager, Content Routers, and Content Engines
The Content Distribution Manager uses an external Oracle 8i database to store current CDN policies. Table 2-3 shows the Oracle database server information you need during the Content Distribution Manager configuration. Table 2-3: Oracle Database Information for Configuring Content Distribution Manager
After you have the database and network information, you are ready to configure your CDN devices. Configuration Information for Content Services SwitchesThe Content Services Switch is an optional component of the Internet CDN Software. If you are not deploying a Content Services Switch on your CDN, continue with the next chapter.
Table 2-4 shows the device information you need when you configure the Content Services Switch, which is used to create supernodes. Table 2-4: Content Services Switch Configuration Information
Connecting to CDN Devices Using the Command-Line InterfaceAlthough the Content Distribution Manager graphical user interface (GUI) can be used to modify many CDN device configuration settings once a device has been properly configured, initial device setup takes place using the CDN command-line interface (CLI). After initial setup, certain maintenance and troubleshooting activitiessuch as modifying a device network address or restarting a device that has been stoppedalso require you to interact with CDN devices using the CLI. You can access the CLI for a CDN device by connecting a console cable to the designated console cable port on the device and attaching the device to a console terminal or a PC running terminal emulation software such as Telnet or SSH. Refer to the Cisco hardware documentation that came with your CDN device for instructions on connecting the console cable.
Refer to the Cisco hardware documentation that came with your CDN device for detailed information on cabling and accessing the device's CLI or web-based management interface (where applicable). Also refer to the Cisco Internet CDN Software Command Reference for detailed instructions on using Cisco Internet CDN Software commands.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|