Application Layer CHAPTER 2. Announcements and Outline Administrative Items Questions? Recap...

42
Application Layer CHAPTER 2

Transcript of Application Layer CHAPTER 2. Announcements and Outline Administrative Items Questions? Recap...

Page 1: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Application Layer

CHAPTER 2

Page 2: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Announcements and Outline Administrative Items Questions?

Recap1. Introduction to Networks

1. Network Type

2. Network Layers

Today’s Outline2. Application Layer

2.1 Hardware2.2 Application Architecture (Software)2.3 Web2.4 Email

2

Page 3: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

3

Network Layers

Computer 1 Computer 2

3

Page 4: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

• HTTP – Hypertext Transfer Protocol

• SMTP – Simple Mail Transfer Protocol

• POP – Post Office Protocol

• IMAP – Internet Message Access Protocol

• MIME – Multipurpose Internet Mail Extensions

Acronyms of the Day

4

Page 5: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2 Application Layer

5

Application Layer

Network Layer

Transport Layer

Applications(e.g., email, web, word processing)

• The software that enables the user to perform useful work

• Application architecture• The way in which the functions of the application layer

software are spread among the clients and servers on the network

• Functions of Application Layer

Page 6: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

What the users use

• PC • Terminal• Network Computers• Mobile Devices• Special Purpose

2.1 Hardware - Client

6

Page 7: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Terminal

MobileTechnologies

SpecialPurpose

2.1 Hardware – Client (Special Purpose)

7

Page 8: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

What the client accesses

• PC (special purpose)• Mainframe• Clusters (aka Server Farms)• Special Purpose

2.1 Hardware – Server

8

Page 9: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Mainframes

2.1 Hardware – Server

9

From 1970’s

More Recent

Page 10: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Clusters

2.1 Hardware – Server

Server Clusters

Computer Cluster

Page 11: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Splitting the work across the client and the server

Basic Software Components:• Presentation Logic

• Application Logic

• Data Access Logic

• Data

2.2 Application Architecture

11

Page 12: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2.2 Host (Server) Based Architecture

12

CLIENT SERVER

Page 13: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Host becomes a bottleneck

Host upgrades typically expensive and “lumpy”

2.2 Host Based Architecture Problems

13

Page 14: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2.2 Client Based Architecture

14

CLIENT SERVER

Page 15: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Data traffic must travel back and forth between server and client

Example: when the client program is making a database query, the ENTIRE database must travel to the client before the query can be processed

Often the large file sizes moving across the LAN can yield a poor result in network performance

2.2 Client Based Architecture Problems

15

Page 16: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2-Tier Architecture

2.2 Client-Server Architecture

16

CLIENT SERVER

Page 17: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2-Tier Architecture

2.2 Client-Server Architecture

CLIENT SERVER

Page 18: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Classification depends on how much of the application logic resides on the client or server

Thin client: • Little or no application logic on client• Becoming popular because easier to manage, (only

the server application logic generally needs to be updated)

• The best example: World Wide Web architecture (uses a two-tier, thin client architecture)

Thick client:• All or most of the application logic resides on the

client

Thin and Thick Clients

Page 19: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Advantages

Disadvantages

2.2 Client-Server Architecture

19

Page 20: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Examples of standards for Middleware: Distributed Computing Environment (DCE) Common Object Request Broker Architecture (CORBA) Open Database Connectivity (ODBC)

Middleware

Middleware

client application programs

server application programs

a standard way of translating between software from different vendors

–Manages message transfers

– Insulates network changes from the clients (e.g., adding a new server)

20

Page 21: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Involve more than two computers in distributing application program logic 2-tier architecture

• Uses clients and servers in a balance, very popular approach in simple LANs

3-tier architecture• 3 sets of computers involved

N-tier architecture • More than three sets of computers used, more typical

across complex organizations• Allows load balancing across servers

Multi-tier Architectures

21

Page 22: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2.2 Client-Server Architecture

22

CLIENT SERVER SERVER

Page 23: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2.2 Client-Server Architecture

23

CLIENT SERVER SERVER SERVER

Page 24: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Advantages

Disadvantages

2.2 Client-Server Architecture (Multi-Tier)

24

Page 25: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Peer to Peer Architecture

• All computers can serve as a client and a server

Advantages:

Disadvantages:

25

Page 26: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Peer to Peer Architecture

26

Page 27: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

Infrastructure Cost

Development Cost

Scalability

2.2 Criteria for Choosing Architecture

27

Page 28: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2.2 Choosing an Architecture

 

Host-Based Client-Based Client-Server

Cost of Infrastructure

Cost of Development

Scalability

28

Page 29: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

What happens when type a web address (2-Tier Networks, Client/Server)

2.3.1 Web (How it works)

29

Page 30: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

HTTP Requests:

1. Request Line

2. Request Header

3. Request Body

2.3 Web

30

Page 31: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

HTTP Response:

1. Response Status

2. Response Header

3. Response Body

2.3 Web

31

Page 32: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

www.rexswain.com/httpview

2.3 Web (Request/Response Demo)

32

Page 33: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

How a message is sent

2.4.1 Email (2-Tier - Thick Client)

33

Page 34: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

How a message is sent offsite (e.g. email from UNCW to UNC)

2.4.1 Email (2-Tier - Thick Client)

34

Page 35: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

3-Tier Email – Off Campus

2.4.2 Email – Web Mail

35

Page 36: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

1. Header

2. Body

2.4.3 Email – SMTP Packets

36

Page 37: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

SMTP is a relatively old protocol and is text only, so how do we send attachments using text only?

MIME (Multipurpose Internet Mail Extension)

MIME example

2.4.4 Email – Sending Attachments

37

Page 38: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2 - 38

A client-server program that allows real-time typed messages to be exchanged Client needs an IM client software Server needs an IM server package

Some types allow voice and video packets to be sent Like a telephone

Examples include AOL and ICQTwo step process:

Telling IM server that you are online Chatting

Instant Messaging (IM)

Page 39: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2 - 39

How Instant Messaging Works

Page 40: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2 - 40

Provides real time transmission of video and audio signals between two or more locations Allows people to meet at the same time in different

locations Saves money and time by not having to move people

around Typically involves matched special purpose rooms with

cameras and displays

Desktop videoconferencing Low cost application linking small video cameras and

microphones together over the Internet No need for special rooms Example: Net Meeting software on clients communicating

through a common videoconference server

Videoconferencing

Page 41: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

2.1 Hardware2.1.1 Clients2.1.2 Servers

2.2 Application Architecture (Software)2.3 Web

2.3.1 How it works2.3.2 Requests and Responses

2.4 Email2.4.1 How it Works2.4.2 Requests and Sending Attachments

Recap – Application Layer

41

Page 42: Application Layer CHAPTER 2. Announcements and Outline  Administrative Items  Questions? Recap 1.Introduction to Networks 1.Network Type 2.N etwork.

• Read Chapter 3 - Physical Layer• Find out what service you currently use• What are the transmission speed?• What type of transmissions are utilized – Analog

or Digital?

Next Class

42