Super Server cn2 Chap1
Super Server cn2 Chap1
Super server is a server process, it monitors the arrival of a client request and
starts the appropriate server service.
Inetd, a super server daemon is a prominent example of a super server for Unix
systems. The assignment of network services is subject to the port numbers in the
file / etc / services.
In the classical approach the server monitors a process to a port. If there are many
ports, many processes will be in the waiting list and thereby will consume system
resources, especially the memory.
In super server approach, only the relatively small servers will be maintained,
which requires less memory when idle server services.
1. Start of the super server is time consuming, which increases the reaction time according to the
availability of network service.
3. In case of a super server, a single process is responsible for all the connections, cache is
shared. It is efficient in terms of resource consumption, if the number of simultaneous
connections grows to a huge.
An entry in this file consists of a single line made up of the following fields:
service
gives the service name. The service name has to be translated to a port number by
looking it up in the /etc/services file. This file will be described in section 10.3 below.
type
specifies a socket type, either stream (for connection- oriented protocols) or dgram (for
datagram protocols). TCP- based services should therefore always use stream, while UDP- based
services should always use dgram.
protocol
names the transport protocol used by the service. This must be a valid protocol name
found in the protocols file, also explained below.
wait
This option applies only to dgram sockets. It may be either wait or nowait. If wait is
specified, inetd will only execute one server for the specified port at any time.
user
This is the login id of the user the process is executed under. This will frequently be the
root user, but some ser- vices may use different accounts.
server
gives the full path name of the server program to be executed. Internal services are
marked by the keyword internal.
cmdline
This is the command line to be passed to the server. This includes argument 0, that is the
command name. Usually, this will be the program name of the server, unless the program
behaves differently when invoked by a different name. This field is empty for internal services.