Networking CS 3470, Section 1 Sarah Diesburg

Slides:



Advertisements
Similar presentations
Hypertext Transfer PROTOCOL ----HTTP Sen Wang CSE5232 Network Programming.
Advertisements

Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Layer 7- Application Layer
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Implementing Application Protocols. Overview An application protocol facilitates communication between applications. For example, an client uses.
Hypertext Transport Protocol CS Dick Steflik.
 What is it ? What is it ?  URI,URN,URL URI,URN,URL  HTTP – methods HTTP – methods  HTTP Request Packets HTTP Request Packets  HTTP Request Headers.
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.
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.
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.
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.
Network Applications Outline Simple Mail Transfer Protocol
FTP (File Transfer Protocol) & Telnet
HyperText Transfer Protocol (HTTP).  HTTP is the protocol that supports communication between web browsers and web servers.  A “Web Server” is a HTTP.
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.
Simple Mail Transfer Protocol (SMTP)
File Transfer Protocol (FTP)
1 Chinese Information Processing : Using Computers to Teach and Learn Chinese Week 6 and 7: Creating and maintaining web pages - html and ftp.
1 SMTP - Simple Mail Transfer Protocol –RFC 821 POP - Post Office Protocol –RFC 1939 Also: –RFC 822 Standard for the Format of ARPA Internet Text.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Lecture 6: Sun: 8/5/1435 Distributed Applications Lecturer/ Kawther Abas CS- 492 : Distributed system & Parallel Processing.
ECEN “Internet Protocols and Modeling”, Spring 2012 Course Materials: Papers, Reference Texts: Bertsekas/Gallager, Stuber, Stallings, etc Class.
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.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
Web Services. 2 Internet Collection of physically interconnected computers. Messages decomposed into packets. Packets transmitted from source to destination.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
SMTP - Simple Mail Transfer Protocol RFC 821
CS440 Computer Networks 1 Neil Tang 12/01/2008.
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.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
COMP 431 Internet Services & Protocols
INTERNET AND . WHAT IS INTERNET The Internet can be defined as the wired or wireless mode of communication through which one can receive, transmit.
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
@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.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Remote Logging, Electronic Mail, and File Transfer
WWW and HTTP King Fahd University of Petroleum & Minerals
HTTP – An overview.
Computing with C# and the .NET Framework
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Hypertext Transport Protocol
Internet transport protocols services
HTTP Protocol.
Chapter 10: Application Layer
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
HTTP Hypertext Transfer Protocol
Chapter 2: Application layer
Networking CS 3470, Section 1 Sarah Diesburg
HyperText Transfer Protocol
William Stallings Data and Computer Communications
The Application Layer: SMTP, FTP
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 7 Network Applications
HTTP Hypertext Transfer Protocol
Chapter 2 Application Layer
Presentation transcript:

Networking CS 3470, Section 1 Sarah Diesburg Protocols Networking CS 3470, Section 1 Sarah Diesburg

Applications Applications need their own protocols Just like we are writing our chat program with a certain specification so that any two randomly-chosen chat programs may work together

Applications and Network Protocols As an example, many browsers can interact with web servers Firefox IE Chrome Opera Others…

Networking Application Protocols Many specialized network application protocols are defined For a list, just take a look at /etc/services Today we will discuss two Simple Mail Transfer Protocol (SMTP) used to exchange electronic mail HyperText Transport Protocol (HTTP) is used to communicate between web browsers and web servers

Networking Application Protocols Both HTTP and SMTP have companion protocols that specify the format of the data that can be exchanged SMTP RFC821 – Actual SMTP protocol RFC822 – Companion protocol that specifies standard message format HTTP HTTP is the protocol for fetching web pages HTML (HyperText Markup Language) is the companion protocol that defines the form of web pages Easter Egg #2 – Send an email to diesburg@cs.uni.edu with the RFC number for the protocol concerning avian carriers for an extra point on homework #2! (Must send before homework #2 due date to count.)

SMTP Goal of SMTP is to transfer mail reliably and efficiently on TCP port 25 Two main components User Agents (UAs) prepare the message Also called mail readers in the text Mail Transfer Agents (MTAs) transfer the mail across the Internet Also called mail daemons in the text (where daemon is just another word for process)

SMTP UA UA Internet MTA MTA

Gateways Often the sender’s MTA doesn’t get to connect directly to the receiver’s MTA Mail traverses one or more mail gateways Stores and forwards email addresses Example: Sending a mail to pizzahut.com first forwards to a global pizzahut gateway, then is sent to MTA specific to location (Cedar Falls area)

SMTP Gateways UA UA MTA/Gateway MTA/Gateway MTA MTA

RFC 822 ARPA Internet Text Messages Defines format of the messages being exchanged Messages have two parts: header and body Both parts are represented in ASCII text Attachments like pictures are encoded ASCII protocols can be tried by humans running telnet! $> telnet some.mail.server 25

How SMTP works The Basics Keyword Arguments HELO Sender’s Host Domain Name MAIL FROM: Email Address of sender RCPT TO: Email of Intended recipient DATA Body of the message QUIT

Status Codes The Server responds with a 3 digit code that may be followed by text info 2## - Success 3## - Command can be accepted with more information 4## - Command was rejected, but error condition is temporary 5## - Command rejected, Bad User!

Book’s Example $> telnet mail.cs.princeton.edu 25 HELO cs.princeton.edu 250 Hello daemon@mail.cs.princeton.edu MAIL FROM:<Bob@cs.princeton.edu> 250 OK RCPT TO:<Alice@cisco.com>

Book’s Example (Cont.) DATA 354 Start mail input; end with . Blah blah blah… . 250 OK QUIT 221 Closing connection…

Demo Let’s find UNI’s SMTP server… Can we send from any address (even fake ones)? Can we send to anybody? What’s in the headers?

HTTP Hypertext Transport Protocol TCP port 80 RFC 1945 ASCII protocol Protocol used for communication between web browsers and web servers TCP port 80 RFC 1945 ASCII protocol This means we can use our good friend, telnet! $> telnet some.webserver.com 80

HTTP - URLs URL Uniform Resource Locator protocol (http, ftp, news) host name (name.domain name) port (usually 80 but many on 8080) directory path to the resource resource name http://xxx.myplace.com/www/index.html http://xxx.myplace.com:80/cgi-bin/t.exe

HTTP Request Operations Description OPTIONS Request information about available options GET Retrieve document identified in URL HEAD Retrieve metainformation about document identified in URL POST Give information to server (e.g., submitting forms) PUT Upload document under specified URL

Status Codes 200 OK 201 created 202 accepted 204 no content 301 moved perm. 302 moved temp 304 not modified 400 bad request 401 unauthorized 403 forbidden 404 not found 500 int. server error 501 not impl. 502 bad gateway 503 svc not avail

Demo $> telnet www.cs.uni.edu GET http://www.cs.uni.edu …<Lots of HTML code here….>

Demo Can we get a webpage? Do all the images come along?