0% found this document useful (0 votes)
22 views

Client Server Architecture

Uploaded by

nidhinb200723cs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Client Server Architecture

Uploaded by

nidhinb200723cs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

CS4042D Web

Programming
Introduction
Introduction to Web Applications

• How to use/access a web


application?
Using/Accessing Web application
-Steps
1. Open a Web-browser Chrome or firefox
2. Enter the web address usually called www.google.com
as URL
3. Browser fetches data from remote Connecting to server/Loading the
server page
4. Browser displays the webpage
What is a Web Application?
• A web-application is an
application program that is
usually stored on a remote server,
and users can access it through
the use of a client
software (eg: web-browser).
• A web-application is a client-
server application that can be
executed/accessed through web-
clients
Internet
• Started in the 1970s
• Started as experimental network connecting research and
military networks
• Now, it is a global network linking the users worldwide
• The Internet, now connects everything from sensors to
supercomputers.
• Increases the opportunities available to us, helping us to be
more productive in our professional and private lives
What is Internet?
• It is a network.
• A network is a collection of computers that can communicate
with each other.
• Each computer in a network is called host
• A network that uses a specific technology to provide connectivity
between the computers attached to it is often called a physical
network.
• Internet connects different physical networks using a set of
conventions that let the computers attached to these networks
communicate.
What is Internet?
• The Internet is the world's largest interconnected computer
network that uses the Internet protocol suite (TCP/IP) to link
devices worldwide.
Internet Architecture
• To promote the unification of the
disparate networks, a layered
architecture with a suite of protocols
was invented to unify the networks.
• A protocol is a set of rules that partners in
communication use when they
communicate.
Layered Architecture of
Internet
Link Layer
• Physical transmission of raw bits across
network media (wires, wireless)
• MAC (media access control) addresses are
unique identifiers assigned to network hardware
and which are used at the physical networking
level.
Network Layer
• Taking individual packets of information and forwarding
them to their destination.
• It routes packets between communication partners across
networks.
• Provides “best effort” communication
• The Internet uses the Internet Protocol (IP) addresses to
identify destinations on the Internet
• Every device connected to the Internet has an IP address,
which is a numeric code that is meant to uniquely identify
Packet Forwarding
Transport Layer
• The transport layer ensures transmissions arrive in order and
without error.
• Distinguish between different applications on the same host
• Web communications in particular uses one: the Transmission
Control Protocol (TCP).
• Whereas IP is implemented on the routers in the core of the
network and on end hosts, transport-layer protocols only have
to be implemented on end hosts.
• Services that do not require the reliability (and overhead)
associated with TCP make use of UDP (User Datagram
Protocol)
Transport Layer
Application Layer
• Contains a range of protocols that let applications
communicate with one another.
• To communicate with an application on a different end host,
both application programs exchange data according to the
format and conventions specified in the application protocol.
Architecture of Internet
Web Communications through
Internet
World Wide Web
• Subset of internet services.
Why Web development
Different
• Constantly evolve.
• Web applications are different from traditional software in content (text,
image, audio, video)
• Used by vast, variable user community – a large number of anonymous
users
• Many demand a good look and feel
• Compressed development schedule, and time pressure heavy
• Failure or dissatisfaction of users may be worse than conventional systems
• Small development team with diverse background and skills
• Rapid technological changes
• Security and privacy
• Needs to cope up with variety of display devices
Client – Server Model
• The web is sometimes referred to as a client-server model of
communications
• There are two types of actors:
– clients and servers
Client-Server Model

• Clients
– it can make requests to particular servers for particular resources and then wait for the response
• Servers
– it is listening for requests, and upon getting one, responds with a message
Client-Server Model
• Typical scenario
– 1. The server process starts on some system
• Initializes itself and goes to sleep waiting for a client
request
– 2. A client process starts either on the same
system or different system
• Sends a request to the server
– 3. When the server process has finished,
providing the service to the requested client, the
server goes back to sleep waiting for the next
client request to arrive
– 4. The process repeats steps 2 and 3
Client-Server Model
• Types of servers
– Iterative servers
– Concurrent servers
Client-Server Communication: How it
works?
• If TCP, before start of communication,
a connection needs to be
established between the hosts.
• Five components in a connection
– Protocol Used
– Source IP Address
– Source Port Number
– Destination IP Address
– Destination Port Number
Inspect Tool
• It comes as the DevTool along with
most of the browsers
• Find out more
Demo
Thank You

You might also like