Contained WithinFind More DocumentationFeatured Support Resources | Scarica il manuale in formato PDF (143 KB)
Chapter 1 Overview of SLPThe Service Location Protocol (SLP) provides a portable, platform-independent framework for the discovery and provisioning of SLP-enabled network services on IP intranets. This chapter provides an overview of the SLP architecture and describes the Solaris SLP implementation. SLP ArchitectureThis section describes the fundamental operation of SLP, its constituent parts, and what these parts do for your enterprise. SLP facilitates the following:
SLP provides all of these services automatically, with little or no configuration. Additionally, you can configure SLP to assist with administration and tune SLP operation, if needed. For instance, you can enable SLP logging mechanisms to monitor and troubleshoot the SLP operation on your network. You can tune certain properties to synchronize timing on SLP message exchanges between agents. Additionally, you can suppress SLP multicasts to reduce network congestion. Further, you can provision services by placing certain SLP agents, called, directory agents, strategically throughout the enterprise by creating groupings of users, called scopes, through which you can tailor service provisioning to meet the needs of your enterprise. Summary of the SLP DesignIn SLP, various software-based agents represent user applications and network services. SLP maintains information about the nature and location of enterprise services, so that the information about the SLP entities on the enterprise is automatically updated. Additionally, SLP is capable of advertising services that are not SLP-enabled using proxy registrations (see Chapter 7, Incorporating Legacy Services). SLP Agents and ProcessesThe following table describes the agents and processes that make up the SLP framework. Table 1-1 SLP Agents and Processes
The following figure shows the basic agents and processes that implement the SLP architecture. Figure 1-1 SLP Basic Agents and Processes
The figure above also represents a default deployment of SLP in which no configuration has been done. Only two agents are required, the UA and SA. The SLP framework allows the UA to multicast requests for services to the SA. When the SA receives requests for a service that it advertises, it unicasts a reply to the UA containing the service advertisement. The following figure shows the basic agents and processes that implement the SLP architecture when a DA is deployed in the framework. Figure 1-2 SLP Architectural Agents and Processes Implemented with a DA
In more complex enterprises, one or more DAs are used. The DA serves as a cache for registered service advertisements. SAs send register messages (SrvReg) that list all the services they advertise to DAs and receive acknowledgments in reply (SrvAck). The service advertisements are refreshed with the DA, or they expire according to the lifetime set for the advertisement. Once a UA discovers a DA, UAs unicast requests to DAs rather than multicasting requests to SAs. For more information about Solaris SLP messages, refer to Appendix A, SLP Message Types. How SLP Is ImplementedIn the Solaris SLP implementation, the SLP SAs, UAs, DAs, SA servers, scopes, and other architectural components (listed in Table 1-1) are mapped partially into slpd and partially into application processes. The SLP daemon, slpd, organizes certain off-host SLP interactions. The SLP daemon:
For more information about the SLP daemon, see slpd(1M). In addition to slpd, the UA and SA client libraries (libslp.so for C/C++ and slp.jar for Java) provide UA and SA clients with access to the SLP framework. The client libraries:
In the following figure, the SLP client library in the Service Provider Program implements SA functionality. The Service Provider Program uses the SLP client library to register services with slpd, and to deregister them. The SLP client library in the Service Client Program implements UA functionality. The Service Client Program uses the SLP client library to issue multicast and unicast (to DAs) service requests and to query slpd for information on DAs. The slpd process takes care of all SA functionality, such as answering multicast requests, registering with DAs, and so on. Figure 1-3 SLP Implementation
Enabling SLPSLP is enabled by running the SLP daemon, slpd. The supported interface for starting slpd is the /etc/init.d/slpd script, which starts the daemon only if the SLP configuration file, /etc/inet/slp.conf, exists. The Solaris operating environment includes the file /etc/inet/slp.conf.example. Rename this file to /etc/inet/slp.conf to enable SLP at boot time. |
||||||||||||||||