







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concept of client-server architecture and database management systems, including the responsibilities of a dbms, the benefits of separating application logic and web server, and the use of ncs and java in server implementations. It also provides an example of an architecture for a hypothetical handheld computer (hhc) for flight attendants. The document also touches on the topic of data types and their representation in computing.
Typology: Study notes
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Announcements
Student Talks
Client-Server Architecture
Client
Application:
Infrastructure
Server
Application Server
Web Server
Application Logic
Common Gateway Interchange
Client
Application Server
Web Server
Application Logic
Common Gateway Interchange
Client
Database Management System (DBMS)
What is Bob’s Balance?
Database
Application Server
Web Server
Java Servlet
Client
Database Management System (DBMS)
What is Bob’s Balance?
Database
In some implementations Application Logic and Web Server can be put on Different machines.
Application Logic
Relational Database
DBMS Responsibilities
Application Server
Client
-Accept instructions from user -Make requests of server -Display responses of server
-Takes inputs from client -Decides what to be done next -Decides what shared data to access and manipulates it -Processes shared data
-Support multiple applications with common data -Protect critical data -Decouple data administration and application administration
Sun N-tier Sun N-Tier
Sun’s Performance
(1,048.0)(2,653.0)(3,429.0)(3,429.0)1,121.21,176.21,605.72,771.01,584.01,031.31,854.0(587.0)(388.0)(106.0)1,031.31,854.0(587.0)(388.0)(106.0) 1,627.01,716.0(461.0) 523.3708.9437.0738.0355.8476.4762.4762.9981.0 (54.0) 355.8476.4762.4762.9927.0 (0.18)(1.07)(0.12)(0.03)(0.18)(1.07)(0.12)(0.03) 1995199619971998199920002001200220032004 378.0273.0200.0167.5232.5358.8413.3574.4917.0603.0776.0825.0844.0 31493147311131543256337834173242319032773378 TTM 22.933.994.746.183.971.00.110.150.250.240.320.550.290.110.150.250.240.320.550.27------------------------------------------------------------------------------------------------
Net Income 355.8 476.4 762.4 762.9 1,031.3 1,854.0 927.0 (587.0) (3,429.0) (388.0) (106.0)
Today
Today
Architecture Example
Architecture
Who paid the highest fares Who has been a more valuable customer in past
Free drinks, meals, and pillows to valuable customers Ignore less valuable customers
Example Concept:
Architecture
Architecture
Airline Dataserver
HHC Server
Airline Intranet
Wireless Link
HHC Architecture
HHC Application
Palm OS
Networking Infrastructure
User Interface
Coordination With HHC Server
Data Management
HHC Architecture
HHC Application
Palm OS
Networking Infrastructure
User Interface
Communication With HHC Server
data management
Example data types
since 2n^ = 65,
More data types
Compound data types
Interfaces
Computation of key statistics
N numbers of Float type
2 Numbers of float type that signify: Mean, Variance
Compute Mean and Variance
Implementation
Computation of key statistics
Compute Mean and Variance
Implementation 1:
X^ i, i=1..N
MEAN, VARIANCE
One module should not be concerned with other module’s implementation Æ “Separation of concerns.” One module should see the other only through its interface – implementation details hidden. Æ Abstraction
Module A
Module B
Implementation
Computation of key statistics
Compute Mean and Variance
Implementation 2:
X^ i, i=1..N MEAN, VARIANCE
Though different, this implementation is ok too.
We can choose the implementation details however we want, as long as we comply with the agreed interface.
Module A
Module B
Implementation
Computation of key statistics
Compute Mean and Variance
Implementation 1:
X^ i, i=1..N MEAN, VARIANCE
Module A
Module B
“I need to get the sum, I’ll just take it from B”
Encapsulation
Interfaces
Computation of key statistics
N numbers of Float type
2 Numbers of float type that signify: Mean, Variance
Compute Mean and Variance
This simple interface example allows for only one action of module B. Action is “Compute mean and variance.”
Other examples are possible.
Module B
Module A
Possible software interface
Protocol
Protocol Example
HHC Server
Hello: I’m the gate 32 server
Hello: I’m the HHC of Airplane#
Tell me about the passengers of my next flight
Return Weather Data
(Might be passed As an array of a compound data type “passenger,” which in turn is composed of standard types like integer, and string)
Tell me about the weather at my next destination.
Return Passenger Data
“Passengers noted”
These were the unruly passengers on last flight
Action: specify_account
Action: amount
Protocol: cash_withdrawal
Protocol: cash_withdrawal
More on layering
Goals
Interaction of layers
Layering
Three types of software
Part of Microsoft vs. DOJ
dispute
Major layers
Example 3
HHC Server
HHC Server Application HHC Client Application
Passenger Information
Windows OS
message
Networking Infrastructure (Contains: TCP/IP, WiFi)
Collection of Packets (^) Networking Infrastructure (Contains: TCP/IP, WiFi)
Palm OS
message
Example 3: Network Infrastructure Expanded
HHC Server Application HHC Client Application
Passenger Information
Windows OS
message
TCP transport layer
Palm OS
message
WiFi Link Layer
Packets
WiFi Physical Layer
Networking Infrastructure
TCP transport layer
WiFi Link Layer
Packets
WiFi Physical Layer
Networking Infrastructure
Radio Signals
Example 4
HHC Server
HHC Server Application DBMS
Windows OS
message
Networking Infrastructure Layers within TCP/IP, WiFi
Collection of Packets (^) Networking Infrastructure Layers within: TCP/IP, WiFi
Unix OS
message
Airline Dataserver
“Send me today’s flight information”
Information in the
infrastructure
Data and information