JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Network Services     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information


Part I Network Services Topics

1.  Network Service (Overview)

2.  Managing Web Cache Servers

Network Cache and Accelerator (Overview)

Web Servers Using the Secure Sockets Layer Protocol

Managing Web Cache Servers (Task Map)

Planning for NCA

System Requirements for NCA

NCA Logging

Interpositioning Library for Daemon Support of the Door Server

Multiple Instance Support

Administering the Caching of Web Pages (Tasks)

How to Enable Caching of Web Pages

How to Disable Caching of Web Pages

How to Enable or Disable NCA Logging

How to Load the Socket Utility Library for NCA

How to Add a New Port to the NCA Service

How to Configure an Apache 2.0 Web Server to Use the SSL Kernel Proxy

How to Configure a Sun Java System Web Server to Use the SSL Kernel Proxy

Using the SSL Kernel Proxy in Zones

Caching Web Pages (Reference)

NCA Files

NCA Architecture

NCA to Httpd Request Flow

3.  Time-Related Services

Part II Accessing Network File Systems Topics

4.  Managing Network File Systems (Overview)

5.  Network File System Administration (Tasks)

6.  Accessing Network File Systems (Reference)

Part III SLP Topics

7.  SLP (Overview)

8.  Planning and Enabling SLP (Tasks)

9.  Administering SLP (Tasks)

10.  Incorporating Legacy Services

11.  SLP (Reference)

Part IV Mail Services Topics

12.  Mail Services (Overview)

13.  Mail Services (Tasks)

14.  Mail Services (Reference)

Part V Serial Networking Topics

15.  Solaris PPP 4.0 (Overview)

16.  Planning for the PPP Link (Tasks)

17.  Setting Up a Dial-up PPP Link (Tasks)

18.  Setting Up a Leased-Line PPP Link (Tasks)

19.  Setting Up PPP Authentication (Tasks)

20.  Setting Up a PPPoE Tunnel (Tasks)

21.  Fixing Common PPP Problems (Tasks)

22.  Solaris PPP 4.0 (Reference)

23.  Migrating From Asynchronous Solaris PPP to Solaris PPP 4.0 (Tasks)

24.  UUCP (Overview)

25.  Administering UUCP (Tasks)

26.  UUCP (Reference)

Part VI Working With Remote Systems Topics

27.  Working With Remote Systems (Overview)

28.  Administering the FTP Server (Tasks)

29.  Accessing Remote Systems (Tasks)

Part VII Monitoring Network Services Topics

30.  Monitoring Network Performance (Tasks)



Caching Web Pages (Reference)

The following sections cover the files and the components that are needed to use NCA. Also, specifics about how NCA interacts with the web server are included.

NCA Files

You need several files to support the NCA feature. Many of these files are ASCII, but some of the files are binary. The following table lists all of the files.

Table 2-1 NCA Files

File Name
The path name for the NCA device.
File that lists all physical interfaces that are configured on the server.
File that lists all host names that are associated with the server. Entries in this file must match entries in /etc/hostname.* files for NCA to function.
Script that starts the NCA server. This script is run when a server is booted.
Script that starts NCA logging. This script is run when a server is booted.
File that lists the interfaces on which NCA is run. See the nca.if(4) man page for more information.
File that lists configuration parameters for NCA. See the ncakmod.conf(4) man page for more information.
File that lists configuration parameters for NCA logging. See the ncalogd.conf(4) man page for more information.
File that lists the IP addresses and the ports for NCA. See the ncaport.conf(4) man page for more information.
Command that is used to convert data in the log file to the common log format. See the ncab2clf(1) man page for more information.
Command that is used to configure NCA to run on multiple interfaces during boot. See the ncaconfd(1M) man page for more information.
Library that uses AF_NCA sockets instead of AF_INET sockets. This library must be used on web servers that use AF_INET sockets. See the ncad_addr(4) man page for more information.
File that holds the log file data. The file is in binary format, so do not edit it.
The door path name.

NCA Architecture

The NCA feature includes the following components.

The kernel module ncakmod maintains the cache of web pages in system memory. The module communicates with a web server, httpd, through a sockets interface. The family type is PF_NCA.

The kernel module also provides a logging facility that logs all HTTP cache hits. NCA logging writes HTTP data to the disk in binary format. NCA provides a conversion utility for converting binary log files to common log format (CLF).

The following figure shows the flow of data for the conventional path and the path that is used when NCA is enabled.

Figure 2-1 Data Flow With the NCA Service

Flow diagram shows the flow of data from a client request through the NCA layer in the kernel.
NCA to Httpd Request Flow

The following list shows the request flow between the client and the web server.

  1. An HTTP request is made from the client to the web server.

  2. If the page is in cache, the in-kernel cache web page is returned.

  3. If the page is not in cache, the request goes to the web server to retrieve or update the page.

  4. Depending on the HTTP protocol semantics that are used in the response, the page is cached or not. Then the page is returned to the client. If the Pragma: No-cache header is included in the HTTP request, the page is not cached.