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 2009 1.

Slides:



Advertisements
Similar presentations
Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
Advertisements

Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
1 Electronic Mail u Three major components: u user agents u mail servers u simple mail transfer protocol: SMTP u User Agent u a.k.a. “mail reader” u composing,
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.
HTML Introduction (cont.) 10/01/ Lecture 8, MAT 279, Fall 2009.
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
2: Application Layer1 ECE5650 FTP, , DNS, and P2P.
HTML Introduction. What we have learned so far:  2.1 Basic HTML page development  2.2 Tags… (example?)  2.3 Lists… (example?)  2.4 Single Tag… (example?)
Layer Aplikasi Risanuri Hidayat. Applications and application-layer protocols Application: communicating, distributed processes –e.g., , Web, P2P.
2: Application Layer1 FTP, SMTP and DNS. 2: Application Layer2 FTP: separate control, data connections r FTP client contacts FTP server at port 21, specifying.
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.
9/16/2003-9/18/2003 The Application Layer and Java Programming September 16-18, 2003.
Electronic Mail and SMTP
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
Announcement #1 1 Lecture 9. Announcement #2  Midterm exam will be on Oct. 12 (Tuesday)  pm – 1.45 pm  Exam will cover all materials till Oct.
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.
Esimerkki: Sähköposti. Lappeenranta University of Technology / JP, PH, AH Electronic Mail Three major components: user agents mail servers simple mail.
Simple Mail Transfer Protocol
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.
Lecturer : Ms.Trần Thị Ngọc Hoa Chapter 8 File Transfer Protocol – Simple Mail Transfer Protocol.
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.
2: Application Layer1 Chapter 2 Application Layer These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose, Keith Ross.
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Trying out HTTP (client side) for yourself
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Lecture51 Administrative Things r Grader: Yona Raekow Office hours: Wed. 1pm-3pm or Th. 11am-1pm r Homeworks.
CSE401N: Computer Networks Lecture-5 Electronic Mail S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
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.
Communications and Networks Lecture 5 Instructor: Rina Zviel-Girshin.
Review: –How do we address “a network end-point”? –What services are provided by the Internet? –What is the network logical topology observed by a network.
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.
2: Application Layer1 Reminder r Homework 1 for Wednesday: m Problems #3-5,11,16,18-20 m Half of the problems will be graded r Feel free to send me .
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
FTP (File Transfer Protocol) & Telnet
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Developing a Web Site. Web Site Navigational Structures A storyboard is a diagram of a Web site’s structure, showing all the pages in the site and indicating.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_c Application Protocols: HTTP, FTP, SMTP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part.
File Transfer Protocol (FTP)
Internet Protocol B Bhupendra Ratha, Lecturer School of Library and Information Science Devi Ahilya University, Indore
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 8 Omar Meqdadi Department of Computer Science and Software Engineering University of.
Tutorial 2 Developing a Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
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.
Chapter 29 World Wide Web & Browsing World Wide Web (WWW) is a distributed hypermedia (hypertext & graphics) on-line repository of information that users.
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.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
COMP 431 Internet Services & Protocols
XP 1 Charles Edeki AIU Live Chat for Unit 2 ITC0381.
Lecture 8 Introduction to Web Programming. Announcement  First In-class exam will be on Oct. 10 (Wednesday)  2.50pm – 4.05pm  Exam will cover all materials.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Dr. Adil Yousif University of Alneelian – Master of CS - IT Electronic Mail.
Application Layer instructors at St. Clair College in Windsor, Ontario for their slides. Special thanks to instructors at St. Clair College in Windsor,
Lecture 5 Internet Core: Protocol layers. Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP 
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 2 Creating Links.
Lecture 6, MAT 279, Fall HTML Introduction (cont.) 9/17/2009.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
Dibyajit Computer Security Hacking dibyajit
Application layer 1 Principles of network applications 2 Web and HTTP
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Protocols and networks in the TCP/IP model initially.
Chapter 2: Application layer
HTML Introduction Lecture 8.
The Application Layer: SMTP, FTP
FTP, SMTP and DNS 2: Application Layer.
Chapter 2 Application Layer
Presentation transcript:

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

FTP: the file transfer protocol  transfer file to/from remote host  client/server model  client: side that initiates transfer (either to/from remote)  server: remote host  ftp server: port 21 file transfer FTP server FTP user interface FTP client local file system remote file system user at host 9/22/2009 Lecture 7, MAT 279, Fall

FTP: separate control, data connections 1. FTP client contacts FTP server at port client authorized over control connection 3. client browses remote directory by sending commands over control connection. 4. when server receives file transfer command, server opens 2 nd TCP connection (for file) to client 5. after transferring one file, server closes data connection. FTP client FTP server TCP control connection port 21 TCP data connection port 20  Difference between HTTP and FTP? 9/22/2009 Lecture 7, MAT 279, Fall

Chapter 2: Application layer  2.1 Web and HTTP  2.2 FTP  2.3 SMTP 9/22/2009 Lecture 7, MAT 279, Fall

Electronic Mail Three major components:  user agents  mail servers  simple mail transfer protocol: SMTP User Agent  a.k.a. “mail reader”  composing, editing, reading mail messages  e.g., Outlook, Mozilla Thunderbird  outgoing, incoming messages stored on server user mailbox outgoing message queue mail server user agent user agent user agent mail server user agent user agent mail server user agent SMTP 9/22/2009 Lecture 7, MAT 279, Fall

Electronic Mail: mail servers Mail Servers  mailbox contains incoming messages for user  message queue of outgoing (to be sent) mail messages  SMTP protocol between mail servers to send messages  client: sending mail server  “server”: receiving mail server mail server user agent user agent user agent mail server user agent user agent mail server user agent SMTP 9/22/2009 Lecture 7, MAT 279, Fall

Electronic Mail: SMTP [RFC 2821]  uses TCP to reliably transfer message from client to server, port 25  direct transfer: sending server to receiving server  three phases of transfer  handshaking (greeting)  transfer of messages  closure 9/22/2009 Lecture 7, MAT 279, Fall

Scenario: Alice sends message to Bob 1) Alice uses UA to compose message and “to” 2) Alice’s UA sends message to her mail server; 3) Message placed in message queue 4) Client side of SMTP opens TCP connection with Bob’s mail server and sends Alice’s message 5) Bob’s mail server places the message in Bob’s mailbox 6)Bob invokes his user agent to read message user agent mail server mail server user agent /22/2009 Lecture 7, MAT 279, Fall

SMTP: comparison with HTTP  SMTP uses persistent connections Comparison with HTTP:  HTTP: pull  SMTP: push  HTTP: each object encapsulated in its own response msg  SMTP: multiple objects handled 9/22/2009 Lecture 7, MAT 279, Fall

Mail access protocols user agent sender’s mail server user agent SMTP access protocol receiver’s mail server Post Office Protocol (POP3) Internet Message Access Protocol (IMAP) 9/22/2009 Lecture 7, MAT 279, Fall

POP3 and IMAP: Comparison POP3  Uses “download and delete” mode.  Bob cannot re-read e- mail if he changes client  POP3 is stateless across sessions IMAP  Keep all messages in one place: the server  Allows user to organize messages in folders  IMAP keeps user state across sessions:  names of folders and mappings between message IDs and folder name 9/22/2009 Lecture 7, MAT 279, Fall

Back to HTML (cont.) 9/22/2009 Lecture 7, MAT 279, Fall

What we have learned so far:  2.1 Basic HTML page development  2.2 Tags… (example?)  2.3 Lists… (example?)  2.4 Attributes… (example?)  2.5 Single Tag… (example?) So far, we have learned text handling. How about Image? Image handling in HTML 9/22/2009 Lecture 7, MAT 279, Fall

Image tag  example:   tag: place images on Web Pages  src attribute: specifies name of image file  attribute_name: src  attribute_value: source file name  alt attribute, give your image a hidden name  attribute_value: a hidden name of your image 9/22/2009 Lecture 7, MAT 279, Fall

Image tag (cont.)  WIDTH, HEIGHT attribute: specifies size of image file  attribute_name: width, height  attribute_value: define the width or the height of a image  example: 9/22/2009 Lecture 7, MAT 279, Fall

Image tag (cont.)  place an image in center of a browser , … tag  example  Alternatively, 9/22/2009 Lecture 7, MAT 279, Fall

Remember:  use image files in.gif,.jpg,.png format  do NOT use.bmp,.tiff,.pict  use images with small size 9/22/2009 Lecture 7, MAT 279, Fall

NOTE  When insert an image, make sure that the image file is located at the same disk directory as shown in your src attribute in tag  Example  if is used in your html file, then the image file (logo.jpg) MUST be installed in the same disk and same file folder with your html file! 9/22/2009 Lecture 7, MAT 279, Fall

Creating a Hypertext Link 9/22/2009 Lecture 7, MAT 279, Fall

Hyperlinks  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page or a different location on the current Web page.” 9/22/2009 Lecture 7, MAT 279, Fall  use anchor tags …, and href attribute  href = “a link destination”  example Tutorial link label, visible on a Web page, where you will click link destination

Next Level: Developing a Web Site 9/22/2009 Lecture 7, MAT 279, Fall

Web Site Structures  A well-designed structure ensures users  navigate the site  not get lost or miss important information  A storyboard is a diagram of a Web site’s structure  shows all pages in a site  indicates how the pages are linked together  defines a structure works best for the type of information of the site 9/22/2009 Lecture 7, MAT 279, Fall

(1) Linear Structures  each page is linked with the page follows and the page precedes it in a chain  works best for Web pages with a clearly defined order  commonly, each page contains an additional link back to an opening page 9/22/2009 Lecture 7, MAT 279, Fall

Linear Structures 9/22/2009 Lecture 7, MAT 279, Fall

(2) Hierarchical Structures  pages are linked going from the home page down to more specific pages  users easily move from general to specific and back  a user can move quickly to a specific page without moving through each page in order 9/22/2009 Lecture 7, MAT 279, Fall

Hierarchical Structures 9/22/2009 Lecture 7, MAT 279, Fall

(3) Mixed Structures  overall form hierarchical, allowing the user to move from general to specific  in the same time, links allow users to move through the site in a linear fashion 9/22/2009 Lecture 7, MAT 279, Fall

Mixed Structures 9/22/2009 Lecture 7, MAT 279, Fall

(4) Protected Structures 9/22/2009 Lecture 7, MAT 279, Fall

Exercise? 9/22/2009 Lecture 7, MAT 279, Fall