CMPE 80N - Introduction to Networks and the Internet 1 Client-Server Architecture Client Server request response.

Slides:



Advertisements
Similar presentations
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Advertisements

The Application Layer Chapter 7. Electronic Mail Architecture and Services The User Agent Message Formats Message Transfer Final Delivery.
The Internet Useful Definitions and Concepts About the Internet.
Layer 7- Application Layer
Chapter 29 Structure of Computer Names Domain Names Within an Organization The DNS Client-Server Model The DNS Server Hierarchy Resolving a Name Optimization.
Spring 2004 CMPE 151: Network Administration Servers.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Chapter 2: Application layer  2.1 Web and HTTP  2.2 FTP 2-1 Lecture 5 Application Layer.
Winter 2005 CMPE 151: Network Administration Clients.
Chapter 2: Application layer  2.1 Web, HTTP and HTML (We will continue…)  2.2 FTP  2.3 SMTP 9/22/2009 Lecture 7, MAT 279, Fall
Winter CMPE 155 Week 4. Winter Project 3: Basic Servers Telnet Rlogin FTP Web In this context, let’s look at the underlying protocols…
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
Chapter 30 Electronic Mail Representation & Transfer
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
Mail Server Fitri Setyorini. Content SMTP POP3 How mail server works IMAP.
Introduction 1-1 Chapter 2 FTP & Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 IC322 Fall.
Electronic Mail (SMTP, POP, IMAP, MIME)
INTRODUCTION TO WEB DATABASE PROGRAMMING
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
SMUCSE 4344 application layer. SMUCSE 4344 application vs. application-layer protocols application-layer protocol is just one piece –how the end hosts.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 2: Application.
Application Layer Protocols Simple Mail Transfer Protocol.
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 7 The Application Layer.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Internet Applications  DNS   TELNET  FTP  Web browsing.
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
1 Applications Electronic Mail. 2 Electronic Mail Many user applications use client-server architecture. Electronic mail client accepts mail.
FTP (File Transfer Protocol) & Telnet
1 Web Developer Foundations: Using XHTML Chapter 1 Key Concepts.
The Internet in Education Objectives Introduction Overview –The World Wide Web –Web Page v. Web Site v. Portal Unique and Compelling Characteristics Navigation.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
Some Data Comm. Standards
TELE202 Lecture 16 Internet applications (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Socket programming »Source: chapter 17 ¥This Lecture »Internet.
World Wide Web Hypertext model Use of hypertext in World Wide Web (WWW) WWW client-server model Use of TCP/IP protocols in WWW.
CIS-325: Data Communications 1 CIS-325 Data Communications Dr. L. G. Williams, Instructor.
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
What is and How Does it Work?  Electronic mail ( ) is the most popular use of the Internet. It is a fast and inexpensive way of sending messages.
File Transfer Protocol (FTP)
Spring 2004 CMPE 151: Network Administration Lecture 3.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Spring 2003 Week 10 Introduction to Networks and the Internet.
The Internet The internet is simply a worldwide computer network that uses standardised communication protocols to transmit and exchange data.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
CS 3830 Day 9 Introduction 1-1. Announcements r Quiz #2 this Friday r Demo prog1 and prog2 together starting this Wednesday 2: Application Layer 2.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 2 1 Evaluating an Program and a Web-Based Service Basic Communication.
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Berkeley Sockets The socket primitives for TCP.. PortProtocol Use 21 FTP File transfer 23 Telnet Remote login 25 SMTP 69 TFTP Trivial File Transfer.
4343 X2 – Outline The Domain Name System The Web.
Slides based on Carey Williamson’s: FTP & SMTP1 File Transfer Protocol (FTP) r FTP client contacts FTP server at port 21, specifying TCP as transport protocol.
JavaScript and Ajax (Internet Background) Week 1 Web site:
World Wide Web r Most Web pages consist of: m base HTML page, and m several referenced objects addressed by a URL r URL has two components: host name and.
COMP 431 Internet Services & Protocols
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
TCP/IP Services and Applications Chapter 14 Release 16/7/2009.
1 Chapter 10: Application Layer Reference: Chapter 7 - “Computer Networks”, Andrew S. Tanenbaum, 4th Edition, Prentice Hall, 2003.
Dr. Adil Yousif University of Alneelian – Master of CS - IT Electronic Mail.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
Web Development & Design Foundations with XHTML Chapter 1 Key Concepts 1.
© MMII JW RyderCS 428 Computer Networks1 Electronic Mail  822, SMTP, MIME, POP  Most widely used application service  Sometimes only way a person ever.
Networking Applications
Instructor Materials Chapter 5 Providing Network Services
The Application Layer RIS 251 Dr. ir. S.S. Msanjila.
Protocols and networks in the TCP/IP model initially.
1 Introduction to the Internet.
William Stallings Data and Computer Communications
Chapter 7 Network Applications
Presentation transcript:

CMPE 80N - Introduction to Networks and the Internet 1 Client-Server Architecture Client Server request response

CMPE 80N - Introduction to Networks and the Internet 2 Client-Server Architecture Clients Server

CMPE 80N - Introduction to Networks and the Internet 3 Client-Server Model CLIENTS SERVERS

CMPE 80N - Introduction to Networks and the Internet 4 Remote File Access In the old times: file transfer by removable medium. Network allows “seamless” remote access: –File transfer: equivalent of tape/floppy/CD transfer. –Remote file system: access to files on networked computers as though files are local.

CMPE 80N - Introduction to Networks and the Internet 5 File Transfer Protocol (FTP) File transfer is one of the Internet’s “original” applications. FTP is a general purpose protocol –Transfer arbitrary files. –Accommodates file ownership and access. restrictions. Usually requires a password. Some FTP servers provide anonymous ftp (does not require password).

CMPE 80N - Introduction to Networks and the Internet 6 FTP Client-Server Model Remote server accepts control connection from local client –Client sends commands to server. –Persists through entire session.. Server creates data connection for data transfer –One data connection for each transferred file.

CMPE 80N - Introduction to Networks and the Internet 7 FTP Operation

CMPE 80N - Introduction to Networks and the Internet 8 Electronic Mail Another “original” Internet application. Enables new forms of interaction. also uses client-server architecture. – client accepts mail from user and sends it to server on destination computer. Users have an electronic mailbox into which incoming mail is deposited. User then accesses mail with a mail reader program. Usually associated with a computer account. Electronic Mailboxes

CMPE 80N - Introduction to Networks and the Internet 9 Addresses Electronic mailbox is identified by an address –Typically user’s ID account. To deliver , need computer name together with mailbox –Typically: –Sender uses the host part to select a destination; receiving server uses user part to select a mailbox.

CMPE 80N - Introduction to Networks and the Internet 10 Mail Client-Server Source mail client: –Resolves destination name using DNS. –Contacts mail delivery server at destination. –Copies mail to server. Destination mail server: –Interprets user name as mailbox id. –Places mail in appropriate mailbox. –What’s a mailbox?

CMPE 80N - Introduction to Networks and the Internet 11 Message Format Simple two-part format: –Header includes delivery information –Body carries text of message Header: Lines of text in format keyword:information Some keyword are required; some optional.

CMPE 80N - Introduction to Networks and the Internet 12 Header Fields To: Addr. of primary recipient Cc: Addr. of secondary recipients Bcc: Addr. for blind carbon copies From: Person who “created” the message Sender: Person who actually “sent” the message Receiver: Line added by each transfer agent along the route Date: Date and time message was sent Reply-To: address to which replies should be sent Message-Id: Unique number for referencing this message In-Reply-To: Message-Id of message to which this is a reply Subject: Short summary of message for 1-line display

CMPE 80N - Introduction to Networks and the Internet 13 Data in Original Internet system: RFC 822. Perfectly suited for transmitting text. Does not work with: –Messages in languages with accents (e.g. French). –Messages in nonLatin alphabets (e.g. Russian) or languages without alphabets (e.g. Chinese). –Messages not containing text at all (e.g., audio and video). Solution: Multipurpose Internet Mail Extension (MIME)

CMPE 80N - Introduction to Networks and the Internet 14 MIME MIME extends and automates encoding mechanisms. Allows inclusion of separate components (programs, pictures, audio/video clips) in a single mail message. Sending program identifies the components so receiving program can automatically extract and inform mail recipient.

CMPE 80N - Introduction to Networks and the Internet 15 MIME (cont’d) MIME uses RFC 822 but adds structure to message body and defines encoding rules for non-ASCII messages. –Uses same delivery mechanism. MIME adds a Content-Type field, where a sender can specify the nature of the message body. E.g., Content-Type = video/mpeg –Then receiver knows that the message body contains a video encoded with the MPEG standard.

CMPE 80N - Introduction to Networks and the Internet 16 Transfer communication is really a two-part process: –User composes mail with an interface program. –Mail transfer program delivers mail to destination. Waits for mail to be placed in outgoing message queues. Picks up message and determines recipient(s). Contacts server on recipient’s computer. Passes message to server for delivery.

CMPE 80N - Introduction to Networks and the Internet 17 Transfer

CMPE 80N - Introduction to Networks and the Internet 18 SMTP Simple Mail Transfer Protocol (SMTP) is the standard application protocol for delivery of from source to destination. Provides reliable delivery of messages. Uses TCP. Other functions: – address lookup. – address verification. Allows for multiple recipients.

CMPE 80N - Introduction to Networks and the Internet 19 Mail Gateways Mail processing may take significant resources in large organizations. May be segregated to a dedicated server computer: mail gateway. –Provides single mail destination point for all incoming mail (e.g.: ucsc.edu).

CMPE 80N - Introduction to Networks and the Internet 20 Mail Gateways

CMPE 80N - Introduction to Networks and the Internet 21 Mailbox Access Where should mailbox be located? Users want to access mail from most commonly used computer. Solution: ssh to remote computer with mail server. Or, Post Office Protocol (POP).

CMPE 80N - Introduction to Networks and the Internet 22 POP Usually, mailboxes are kept on a “dedicated” machine. Computer with mailboxes runs POP server. User runs POP client on local computer. POP client can access and retrieve messages from mailbox. Requires authentication (password). Local computer uses SMTP for outgoing mail.

CMPE 80N - Introduction to Networks and the Internet 23 POP

CMPE 80N - Introduction to Networks and the Internet 24 POP and Dialup Access POP useful for dialup connection. –User’s computer not always connected. –Can download all mail at once and read off-line. An alternative to POP: IMAP (Interactive Mail Access Protocol): –Does not copy to user’s PC - always resides in the mail server. –Useful when user uses several computers.

CMPE 80N - Introduction to Networks and the Internet 25 The Web WWW, or the world-wide web is a resource discovery service. – Resource space is organized hierarchically, and resources are linked to one another according to some relation. – Hypertext organization: link “granularity”; allows links within documents. – Graphical user interface.

CMPE 80N - Introduction to Networks and the Internet 26 Some History 1 Started in 1989 at CERN, European center for nuclear research, in Switzerland. Original motivation: need for scientists around the world to collaborate and share multi- media information. Tim Berners-Lee came up with initial proposal of a web of linked documents

CMPE 80N - Introduction to Networks and the Internet 27 Some History 2 First text-based prototype demo in Release of first graphical interface, Mosaic, in at NCSA by M. Andreessen. In 1994, Andreessen creates Netscape. In 1994, CERM and MIT set up the WWW Consortium to further develop the Web. – for more information.

CMPE 80N - Introduction to Networks and the Internet 28 The Client Side Users perceive the Web as a vast collection of information. – Page is the Web’s information transfer unit. – Each page may contain links to other pages. – Users follow links by clicking on them which takes them to the corresponding page. – This process can go on indefinetly, traversing several pages located in different places.

CMPE 80N - Introduction to Networks and the Internet 29 The Browser Program running on client that retrieves and displays pages. – Interacts with server of page. – Interprets commands and displays page. Examples: Mosaic, Netscape’s Navigator and Communicator, Microsoft Internet Explorer. Other features: back, forward, bookmark, caching, handle multimedia objects.

CMPE 80N - Introduction to Networks and the Internet 30 The Server Side Web site has Web server running that answers requests for pages locally served. – Web server listens to port 80 for requests. – When request from client arrives, connection is set up. – Server replies. – Connection released.

CMPE 80N - Introduction to Networks and the Internet 31 HTTP HyperText Transfer Protocol. Each interaction: client’s ASCII request followed by MIME-like response. Use TCP as underlying transport protocol (although not required by standard). Several co-existing versions of HTTP. Proxy servers What are proxy servers? –Close to client. –Close to server.

CMPE 80N - Introduction to Networks and the Internet 32 Client-side proxies ClientsServers Proxy

CMPE 80N - Introduction to Networks and the Internet 33 Server-side proxies Clients Proxy Servers

CMPE 80N - Introduction to Networks and the Internet 34 HTTP support for caching Servers can control caching. –Cachable/non-cacheable object. –Cacheable at proxy. –Cached object expiration time. –Operations performed on cached copy. Browsers can force request to go to server. –Specifies maximum age not to be > 0. What’s caching? What are its benefits? What are its problems? Caching

CMPE 80N - Introduction to Networks and the Internet 35 Uniform Resource Locator (URL) Way to identify objects (pages). – What is page called? – Where is it located? –How to access page? URL has 3 parts: – Protocol (or scheme). – Machine’s name/address. – Local name (file name). Ability to handle other protocols. – HTTP, FTP, news, gopher, mail, telnet. Universal Resource Identifier (URI). – Location transparency. – Replication.

CMPE 80N - Introduction to Networks and the Internet 36 HyperText Markup Language (HTML) Allows users to produce Web pages including text, graphics, pointers, etc. Application of the ISO SGML (Standard Generalized Markup Language) standard. Markup language: describe how objects are to be formatted. – Contains explicit commands for formatting. – Example: and. – Advantages: easy to parse.