You are on page 1of 2

UNIVERSITY OF NUEVA CACERES

City of Naga
College of Computer Studies
S/Y 2020-2021
BIT424 – Client Server Programming

08-30411 John Darrell D. Anadon

Questions:

1. What are the components of a client-server architecture?


2. What is the role of the client and the server in a client-server architecture?
3. How does a client-server connectivity function in an architecture?

Answers:
1. A Client-Server Architecture consists of two types of components: clients and
servers. A server component perpetually listens for requests from client
components. When a request is received, the server processes the request,
and then sends a response back to the client. Servers may be further
classified as stateless or stateful. Clients of a stateful server may make
composite requests that consist of multiple atomic requests. This enables a
more conversational or transactional interactions between client and server.
To accomplish this, a stateful server keeps a record of the requests from
each current client. This record is called a session.

2. The "client-server" characteristic describes the relationship of cooperating


programs in an application. The server component provides a function or
service to one or many clients, which initiate requests for such services.
Servers are classified by the services they provide. For example, a web
server serves web pages and a file server serves computer files. A shared
resource may be any of the server computer's software and electronic
components, from programs and data to processors and storage devices. The
sharing of resources of a server constitutes a service. Whether a computer is
a client, a server, or both, is determined by the nature of the application that
requires the service functions. For example, a single computer can run web
server and file server software at the same time to serve different data to
clients making different kinds of requests. Client software can also
communicate with server software within the same computer.
Communication between servers, such as to synchronize data, is sometimes
called inter-server or server-to-server communication.

3. The client server relationship communicates in a request–response


messaging pattern and must adhere to a common communications protocol,
which formally defines the rules, language, and dialog patterns to be used.
Client-server communication typically adheres to the TCP/IP protocol suite.
TCP protocol maintains a connection until the client and server have
completed the message exchange. TCP protocol determines the best way to
distribute application data into packets that networks can deliver, transfers
packets to and receives packets from the network, and manages flow control
and retransmission of dropped or garbled packets. IP is a connectionless
protocol in which each packet traveling through the Internet is an
independent unit of data unrelated to any other data units.

You might also like