Docsity

Modello Client Server, Lecture notes of Computer science

Toggle sidebar
bg1
The term
client-server
refers to a popular model for computer networking that uses
client and server devices each designed for specific purposes. The client-server model
can be used on the Internet as well as on local area networks (LANs). Examples of
client-server systems on the Internet include Web browsers and Web
servers, FTP clients and servers, and the DNS.
Client
ClientClient
Client
and
andand
and
Server
ServerServer
Server
Devices
DevicesDevices
Devices
Client/server networking grew in popularity many years ago as personal computers
(PCs) became the common alternative to older
mainframe
computers. Client
devices are typically PCs with network software applications installed that request
and receive information over the network. Mobile devices as well as desktop
computers can both function as clients.
A server device typically stores files and databases including more complex
applications like Web sites. Server devices often feature higher-powered central
processors, more memory, and larger disk drives than clients.
Client
ClientClient
Client-
--
-Server
ServerServer
Server
Applications
ApplicationsApplications
Applications
The client-server model organizes network traffic per client application and also per
device. Network clients make requests to a server by sending messages, and servers
respond to their clients by acting on each request and returning results. One server
generally supports numerous clients, and multiple servers can be networked together
in a pool to handle the increased processing load as the number of clients grows.
A client computer and a server computer are usually two separate devices, each
customized for their designed purpose. For example, a Web client works best with a
large screen display, while a Web server does not need any display at all and can be
located anywhere in the world. However, in some cases a given device can function
both as a client and a server for the same application. Additionally, a device that is a
server for one application can simultaneously act as a client to other servers, for
different applications.
Some of the most popular applications on the Internet follow the client-server model
including email, FTP and Web services. Each of these clients features a user
interface (either graphic- or text-based) and a client application that allows the user to
connect to servers. In the case of email and FTP, users enter a computer name (or
sometimes an IP address) into the interface to set up connections to the server.
Local
LocalLocal
Local
Client
ClientClient
Client-
--
-Server
ServerServer
Server
Networks
NetworksNetworks
Networks
Many home networks use client-server systems without even realizing it. Broadband
routers, for example, contain DHCP servers that provide IP addresses to the home
computers (DHCP clients). Other types of network servers found in home include
print
servers
and
backup servers
.
Client
ClientClient
Client-
--
-Server
ServerServer
Server
vs
vsvs
vs
Peer
PeerPeer
Peer-
--
-to
toto
to-
--
-Peer
PeerPeer
Peer
and
andand
and
Other
OtherOther
Other
Models
ModelsModels
Models
Client – Server Model
pf3

Partial preview of the text

Download Modello Client Server and more Lecture notes Computer science in PDF only on Docsity!

The term client-server refers to a popular model for computer networking that uses

client and server devices each designed for specific purposes. The client-server model

can be used on the Internet as well as on local area networks (LANs). Examples of

client-server systems on the Internet include Web browsers and Web

servers, FTP clients and servers, and the DNS.

ClientClientClientClient andandandand ServerServerServerServer DevicesDevicesDevicesDevices

Client/server networking grew in popularity many years ago as personal computers

(PCs) became the common alternative to older mainframe computers. Client

devices are typically PCs with network software applications installed that request

and receive information over the network. Mobile devices as well as desktop

computers can both function as clients.

A server device typically stores files and databases including more complex

applications like Web sites. Server devices often feature higher-powered central

processors, more memory, and larger disk drives than clients.

Client ClientClient

Client-

-Server ServerServer

Server Applications ApplicationsApplications

Applications

The client-server model organizes network traffic per client application and also per

device. Network clients make requests to a server by sending messages, and servers

respond to their clients by acting on each request and returning results. One server

generally supports numerous clients, and multiple servers can be networked together

in a pool to handle the increased processing load as the number of clients grows.

A client computer and a server computer are usually two separate devices, each

customized for their designed purpose. For example, a Web client works best with a

large screen display, while a Web server does not need any display at all and can be

located anywhere in the world. However, in some cases a given device can function

both as a client and a server for the same application. Additionally, a device that is a

server for one application can simultaneously act as a client to other servers, for

different applications.

Some of the most popular applications on the Internet follow the client-server model

including email, FTP and Web services. Each of these clients features a user

interface (either graphic- or text-based) and a client application that allows the user to

connect to servers. In the case of email and FTP, users enter a computer name (or

sometimes an IP address) into the interface to set up connections to the server.

LocalLocalLocalLocal ClientClientClientClient----ServerServerServerServer NetworksNetworksNetworksNetworks

Many home networks use client-server systems without even realizing it. Broadband

routers, for example, contain DHCP servers that provide IP addresses to the home

computers (DHCP clients). Other types of network servers found in home include print

servers and backup servers.

ClientClientClientClient---Server-ServerServerServer vsvsvsvs PeerPeerPeer-Peer--to-tototo----PeerPeerPeerPeer andandandand OtherOtherOtherOther ModelsModelsModelsModels

Client – Server Model

The client-server model was originally developed to allow more users to share access

to database applications. Compared to the mainframe approach, client-server offers

improved scalability because connections can be made as needed rather than being

fixed. The client-server model also supports modular applications that can make the

job of creating software easier. In so-called "two tier" and "three tier" types of client-

server systems, software applications are separated into modular pieces, and each

piece is installed on clients or servers specialized for that subsystem.

Client-server is just one approach to managing network applications. The primary

alternative to client-server, peer-to-peer networking, treats all devices as having

equivalent capability rather than specialized client or server roles. Compared to client-

server, peer to peer networks offer some advantages such as better flexibility in

expanding the network to handle large number of clients. Client-server networks

generally offer advantages over peer-to-peer as well, such as in the ability to keep data

protected from attackers.

ClientClientClientClient ProcesProcesProcesProcess:s:s:s:

This is the process which typically makes a request for information. After getting the

response this process may terminate or may do some other processing.

For example:For example:For example:For example: Internet Browser works as a client application which sends a request to

Web Server to get one HTML web page.

ServerServerServerServer Process:Process:Process:Process:

This is the process which takes a request from the clients. After getting a request from

the client, this process will do required processing and will gather requested

information and will send it to the requestor client. Once done, it becomes ready to

serve another client. Server process are always alert and ready to serve incoming

requests.

For example: For example:For example:

For example: Web Server keeps waiting for requests from Internet Browsers and as

soon as it gets any request from a browser, it picks up a requested HTML page and

sends it back to that Browser.

Notice that the client needs to know of the existence and the address of the server, but

the server does not need to know the address or even the existence of the client prior

to the connection being established. Once a connection is established, both sides can

send and receive information.

222 2----tiertiertiertier andandandand 3 33 3----tiertiertier architectures:tierarchitectures:architectures:architectures:

There are two types of client server architectures:

-tier architectures: tiertier architectures:architectures:

tier architectures: In this architecture, client directly interacts with the

server. This type of architecture may have some security holes and performance

problems. Internet Explorer and Web Server works on two tier architecture.

Here security problems are resolved using Secure Socket Layer(SSL).

  • 333 3---tier architectures-tier architecturestier architectures:tier architectures::: In this architecture, one more software sits in between

client and server. This middle software is called middleware. Middleware are

used to perform all the security checks and load balancing in case of heavy load.

A middleware takes all requests from the client and after doing required

authentication it passes that request to the server. Then server does required

processing and sends response back to the middleware and finally middleware