44
CLIENT/ SERVER ARCHITECTURE INCLUDING BASIC NETWORKING

C/S archtecture including basic networking

Embed Size (px)

Citation preview

Page 1: C/S archtecture including basic networking

CLIENT/ SERVER ARCHITECTURE

INCLUDING BASIC NETWORKING

Page 2: C/S archtecture including basic networking

Architecture• 3 primary logical architectures

1. Host-based • Traditional mainframe / central computer model

2. Client-based / Peer-to-Peer• Historically most home-based and many small

office networks3. Client-server

• Microsoft model – or what we commonly see today

• Fairly powerful clients interacting with some number of servers

• Model used on campus WE WILL ONLY FOCUS ON CLIENT/ SERVER

ARCHITECTURE.

Page 3: C/S archtecture including basic networking

CLIENT/ SERVER ARCHITECTURE

Page 4: C/S archtecture including basic networking

CLIENT/ SERVER ARCHITECTURE

A network architecture in which each computer or process on the network is either a client or a server.

Page 5: C/S archtecture including basic networking

A simple definition

A simple definition of CS is “ server software accepts requests for data

from client software and returns the results to the client.”

Page 6: C/S archtecture including basic networking

COMPONENTS• Clients• Servers• Communication Networks

Server

Server Client

Page 7: C/S archtecture including basic networking

Client / Server (CS) Architecture

• CS model distinguishes between client / server devices and applications.

• Clients request specific services.• Servers respond to individual client

requests for services.– Functionality implemented in software

• Depending on services the server provides, physical server computers can be different than other servers and client computers (i.e. more processing power, more memory, etc.)

Page 8: C/S archtecture including basic networking

Client/Server Architecture

Page 9: C/S archtecture including basic networking

Client/Server Architecture

• Structured architecture with specific roles for specific devices using specific applications.– File server, printer server.

• A “managed” network .– Unlike P2P will have a network admin.

• CS is the most commonly observed architecture.– Most applications are designed to be

used on CS architecture.

Page 10: C/S archtecture including basic networking

Client/Server architecture

• Balance processing between clients and server(s) by dividing functions.– Client – presentation and application

logic.– Server – Data access logic, data storage,

application logic.

Page 11: C/S archtecture including basic networking

Clients• Applications that run on computers.• Rely on servers for

– Files.– Devices. Clients are

Applications– Processing power.

• Example: E-mail client– An application that enables you to send

and receive e-mail.

Page 12: C/S archtecture including basic networking

Servers• Computers or processes that

manage network resources– Disk drives (file servers) Servers

Manage – Printers (print servers) Resources– Network traffic (network servers)

• Example: Database Server– A computer system that processes

database queries.

Page 13: C/S archtecture including basic networking

Categories of Servers

• Data Server• Communication Server• Internet Server

Page 14: C/S archtecture including basic networking

Data Server• Data-oriented; used only for data storage

and management.• Since a data server can serve more than

one compute server, compute-intensive applications can be spread among multiple severs.

• Does not prefer any application logic processing.

• Performs processes such as data validation, required as part of the data management function.

• Requires fast processor, large amount of memory and substantial Hard disk capacity..

Data Server

ComputerServer

Page 15: C/S archtecture including basic networking

Communication Server

Provides gateway to other LANs, networks & Computers.

E-mail Server & internet server. Modest system requirements .

multiple slots. fast processor to translate

networking protocols.

Page 16: C/S archtecture including basic networking

Internet Server

Internet ServerPC client

UNIX workstations

Local AreaNetwork

Page 17: C/S archtecture including basic networking

Communication Networks

Networks Connect Clients and

Servers.

Page 18: C/S archtecture including basic networking

Multi-Tier Client/Server architecture

Page 19: C/S archtecture including basic networking

Distinct characteristics of Client/ Server Architecture o Client-server is a computing architecture which

separates a client from a server.o It is almost always implemented over a

computer network.o The most basic type of client-server architecture

employs only two types of nodes: clients and servers. This type of architecture is sometimes

referred to as two-tier. It allows devices to share files and resources.

o Server provides the service. o Client is considered as the customer requesting

the service. o The server service can be shared among a

number of clients.o Clients must request or initiate the service. o The location of the server in the network is

transparent to clients.

Page 20: C/S archtecture including basic networking

Systems with C/S Architecture

• File servers – File sharing and file processing.

• Data base servers– Passing file results – Example: Query in DBMS server – Typically one single request/reply

• Transaction servers– Transaction server includes DBMS and transaction

monitoring.– Server has remote procedures run online by the client.

• web servers– Super-fat servers and thin clients. – Uses HTTP protocol.– Java was first to introduce interactive C/S forms.

Client

Client

Server

ServerInternetClient

JAVA

ClientHTML

Application

Page 21: C/S archtecture including basic networking

Client/Server Models

• Where to push the application to • Fat clients

– The bulk of the application is running on the client .– The client knows how the data is organized and where it is .– Different clients access the same applications different ways .

• Fat servers– The server more complicated. – The clients are less complex .– More of the code runs on the server .– The network interaction is minimized.

ServerClient

Application

Page 22: C/S archtecture including basic networking

Middleware Software

It is the (/) between client and server which glues them together. – Allowing the client request for a service and the

server providing it. • Middleware can also be between server/server.• Two broad classes

– General • LAN servers, TCP/IP, Communication stacks,

Queuing services, etc. – Application specific

• Used to accomplish a specific task • Groupware specific: SMTP • Internet specific: HTTP• Database specific: SQL.

Page 23: C/S archtecture including basic networking

Client/Server Building Blocks

• Purpose – To divide the application

between the client and server

– Different functionalities of client and server

• Basic client server model– Fits various applications

• Small office • Small business • Enterprise • Global Client

Server

Server

Client ServerMiddleware

Single Machine

Client Server

Middleware

Client Middleware

C/S Middleware

C/S

C/S

C/S

Page 24: C/S archtecture including basic networking

Servers and Client Building Blocks

Web Browser GUI DSM OS

Service-Specific; DSM NOS (security, peer-to-peer, directory, distributed files);

Transport stack (TCP/IP)

Web serverGroupware

DMBSEtc.

ClientMiddleware

Server

Page 25: C/S archtecture including basic networking

Server Scalability

PC Server

Asymmetric Multi-processing Superserver

symmetric Multi-processing Superserver

Multiservers

Page 26: C/S archtecture including basic networking

Server Scalability

• Superserver – A very powerful server.– Single-server or multiserver.– Each server can have a single processor or

multiprocessor.– Multiprocessing can be Asymmetric or Symmetric.

• Multiprocessing • Asymmetric: each processor is dedicated to

a specific task • Fully symmetric (SMP): applications are

divided into threads and threads are sent to available processors

– Examples: 32-bit NT, Unix, NetWare – Requires 3 basic functionalities:

» Global scheduling » I/O sharing structure » OS access sharing

Page 27: C/S archtecture including basic networking

Server scalability• Multi servers

– Pool of servers, providing more processing power (also called a cluster).

– They divide the task between different servers.

• Server lite– As opposed to full blown servers. – Provides a background process on the

client machine that can accept unsolicited networks request (refreshing database, synchronizing time, etc.)

Page 28: C/S archtecture including basic networking

Network Services• Network services (in general) are

the specific functions/tasks/jobs provided by the network– File sharing– Printing– Communication– Mail– Internet– Management.

Page 29: C/S archtecture including basic networking

Common Network Services

• File and print services– Allow sharing of data files and printers

• Communications services– Such as mail services

• Coordination and storage of email• Internet services

– WWW, FTP, some security• Access services

– Allow remote users to connect to network• Login (authorization / authentication)

• Network Management Services– Traffic monitoring, load balancing, diagnostics

Page 30: C/S archtecture including basic networking

Client/Server Networking Model

• Networking in Linux follows the client/server model– Server provides the resource (web server).– Client talks to the server (browser, e-mail

program).• Server has a corresponding program that

communicates with the client (runs in the background)– In Windows the server program called

service .– In Linux the server program called daemon.

Page 31: C/S archtecture including basic networking

NETWORKINGBASIC NETWORKING

Page 32: C/S archtecture including basic networking

3 General Categories of Networks

• 1) Local Area Network (LAN)

• 2) Wide Area Network (WAN)

• 3) Metropolitan Area Network (MAN)

Page 33: C/S archtecture including basic networking

Local Area Network{LAN}

• A LAN is a group of computers located in a relatively small geographical area (like a building or group of buildings).– Typically owned by a single organization

• A local area network (LAN) is a computer network that interconnects computers within a limited area such as a home, school, computer laboratory, or office building, using network media.[1] The defining characteristics of LANs, in contrast to wide area networks (WANs), include their smaller geographic area, and non-inclusion of leased telecommunication lines.

• A group of computers connected within a confined geographic area.

• Commonly used for intra office communication.

Page 34: C/S archtecture including basic networking

Local Area Network• Various configurations, called topologies,

have been used to administer LANs.– Ring topology A configuration that connects

all nodes in a closed loop on which messages travel in one direction.

– Star topology A configuration that centers around one node to which all others are connected and through which all messages are sent.

– Bus topology All nodes are connected to a single communication line that carries messages in both directions.

Page 35: C/S archtecture including basic networking
Page 36: C/S archtecture including basic networking

Local Area Network

Switch

PC PC PC

PrinterPC

?

Page 37: C/S archtecture including basic networking

Wide Area Network{WAN}

• A wide area network (WAN) is a network that covers a broad area (i.e., any telecommunications network that links across metropolitan, regional, national or international boundaries) using leased telecommunication lines. Business and government entities utilize WANs to relay data among employees, clients, buyers, and suppliers from various geographical locations. In essence, this mode of telecommunication allows a business to effectively carry out its daily function regardless of location. The Internet can be considered a WAN as well, and is used by businesses, governments, organizations, and individuals for almost any purpose imaginable.[1]

Page 38: C/S archtecture including basic networking

Wide Area Networks

Leased lines from a larger provider form part of the WAN

Page 39: C/S archtecture including basic networking

LAN versus WANLAN

• High speed (≥1000 mbps)• Tend to primarily use Ethernet

and Wi Fi, but also use Token Passing.

• Generally consist of layer 2 devices like switches, bridges. To a lesser extent layer1 devices like hubs & repeaters.

• Typically owned, controlled, and managed by a single organization.

• Cost is Low as compared to WAN.

WAN• Low speed (≤ 155 mbps)• WANs tend to use technology like

MPLS and ATM, and to a lesser extent (Frame Relay & X.25) for connectivity over the longer distances.

• Layer 3 (+) devices such as routers, multi-layer switches and technology specific devices like ATM or Frame-relay Switches etc.

• WANs are typically not owned by any one organization but exist under collective or distributed ownership and management over long distances.

• Cost is high as compared to LAN.

Page 40: C/S archtecture including basic networking

Metropolitan Area Network {MAN}

• A metropolitan area network (MAN) is a computer network in which two or more computers or communicating devices or networks which are geographically separated but in same metropolitan city and are connected to each other are said to be connected on MAN. Metropolitan limits are determined by local municipal corporations; the larger city, bigger then MAN, the smaller a metro city, smaller the MAN. [1]

Page 41: C/S archtecture including basic networking

Metropolitan Area Network

Page 42: C/S archtecture including basic networking

Difference between LAN, WAN and MAN

Page 43: C/S archtecture including basic networking
Page 44: C/S archtecture including basic networking

A presentation by:- Abhinav

singh Class:- 9th ‘B’Roll no:- 01