Traditional Internet Applications – / DNS

Slides:



Advertisements
Similar presentations
Internet Applications INTERNET APPLICATIONS. Internet Applications Domain Name Service Proxy Service Mail Service Web Service.
Advertisements

Chapter Extension 7 How the Internet Works © 2008 Prentice Hall, Experiencing MIS, David Kroenke.
Chapter 29 Structure of Computer Names Domain Names Within an Organization The DNS Client-Server Model The DNS Server Hierarchy Resolving a Name Optimization.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
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.
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)
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
1 Chapter Internet Applications (DNS, )
1 Chapter Internet Applications (DNS, )
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
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.
Lecturer: Maxim Podlesny Sep CSE 473 File Transfer and Electronic in Internet.
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.
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Traditional Internet Applications Asst. Prof. Chaiporn Jaikaeo, Ph.D.
Network and the internet Part four Introduction to computer, 2nd semester, 2009/2010 Mr.Nael Aburas Faculty of Information.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 3.1 Internet Applications Ch. 31,32,34 (DNS, , TELNET, FTP)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
How Web Servers and the Internet Work by by: Marshall Brainby: Marshall Brain
Simple Mail Transfer Protocol (SMTP)
1 Applications Computer Networks. 2 Where are we?
Traditional Internet Applications Dr. John P. Abraham Professor UTRGV.
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)
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 2 Application Layer Computer Networking: A Top Down Approach, 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
4343 X2 – Outline The Domain Name System The Web.
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.
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
COMP 431 Internet Services & Protocols
1 Chapter 10: Application Layer Reference: Chapter 7 - “Computer Networks”, Andrew S. Tanenbaum, 4th Edition, Prentice Hall, 2003.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
© MMII JW RyderCS 428 Computer Networks1 Electronic Mail  822, SMTP, MIME, POP  Most widely used application service  Sometimes only way a person ever.
Computer Network 1 HCM City University of Technology
Internet Applications
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
IS1500: Introduction to Web Development
Networking Applications
Application layer tcp/ip
Chapter 9: Domain Name Servers
Domain Name System (DNS)
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
The Internet.
Networking for Home and Small Businesses – Chapter 6
Working at a Small-to-Medium Business or ISP – Chapter 7
Internet Applications
Chapter 10: Application Layer
Networking for Home and Small Businesses – Chapter 6
Traditional Internet Applications
Working at a Small-to-Medium Business or ISP – Chapter 7
Working at a Small-to-Medium Business or ISP – Chapter 7
Chapter 2: Application layer
Web Server Technology Unit 10 Website Design and Development.
William Stallings Data and Computer Communications
The Application Layer: SMTP, FTP
Internet Applications & Programming
INTERNET APPLICATIONS
Networking for Home and Small Businesses – Chapter 6
Chapter 2 Application Layer
Computer Networks Protocols
Part II Application Layer.
Presentation transcript:

Traditional Internet Applications – Email / DNS Chapter 4 Traditional Internet Applications – Email / DNS © Bobby Hoggard, Department of Computer Science, East Carolina University These slides may not be used or duplicated without permission

Email Example: direct email transfer from one device to another Email apps on each end running constantly Sender Text Editor New Email Message alert: you have mail To: userX@abc.com Receiver New Email Message connect to abc.com Transfer Application Mail Server Text Reader New Email Message send email New Email Message abc.com To: userX@abc.com Other Message A "mailbox" is just a file on the mail server Outgoing Queue userX mailbox

Email Protocols Transfer Protocols Access Protocols Used to transfer email from a sending device to a receiving device Most common: SMTP Access Protocols Allows a user to access a mailbox to view and send messages Most common: POP3, IMAP Representation Protocols Specifies the format of the message Most common: RFC2822, MIME

SMTP Simple Mail Transfer Protocol Key Points Uses stream transfer Port: 25 Simple Mail Transfer Protocol Key Points Uses stream transfer Uses text-based control messages Sends one copy of given message to server List users one at a time, then a single copy is sent to all users on the list Allows sender to check receipient names Only transfers text messages

SMTP Example Server: example.edu Client: somewhere.com client forms a control connection to the server 220 example.edu Ready HELO somewhere.com 250 OK MAIL FROM: <john@somewhere.com> Attempt to send email from: john@somewhere.com to: three users at example.edu 250 OK RCPT TO: <bill@example.edu> 250 OK RCPT TO: <jim@example.edu> 250 OK RCPT TO: <alice@example.edu> 550 No such user

<CR><LF>.<CR><LF> SMTP Example Server: example.edu Client: somewhere.com DATA 354 End data with <CR><LF>.<CR><LF> From: John Doe <john@somewhere.com><CR><LF> To: Bill Smith <bill@example.edu><CR><LF> Cc: jim@example.edu; alice@example.edu<CR><LF> Date: Tue, 15 January 2008 16:02:43 -0500<CR><LF> Subject: Test Message<CR><LF> <CR><LF> Hello There! <CR><LF> Attempt to send email from: john@somewhere.com to: three users at example.edu <CR><LF>.<CR><LF> 250 OK QUIT 221 example.edu closing connection

Access Protocols IMAP Port: 143 POP3 Port: 110 Provides access to a mailbox (a file on the mail server) Needed because most people don't leave their computers running all the time Users access email through an email client program (ex: MS Outlook) connecting to an ISP server ISP Mail Server ISP Mail Server User 1 User 2 Email Client Email Client POP/IMAP SMTP POP/IMAP

Access Protocols Some users can access email by using a web browser (web based email service) User 1 User 2 Web Server Web Server Web Browser Web Browser HTTP HTTP IMAP/POP IMAP/POP Mail Server Mail Server SMTP

Representation Standards RFC2822 (named after the standards document that defines it) Key Points Mail message is represented as a text file Consists of a header, a blank line, and a body Header lines have the form Keyword: Information Examples: From: <email@address.com> Subject: test email Header lines starting with an uppercase 'X' can be added without affecting anything. Ex: X-Cutest-Pokemon: Pikachu

Representation Standards MIME (Multi-purpose Internet Mail Extensions) Key Points Allows the transfer of non-text data in an email message Specifies how binary data is encoded into printable characters Adds additional lines in the header to specify how the message is encoded Messages can be divided into sections, and each section encoded independently MIME is backward compatable, however a system that does not understand MIME will treat the email as a single block of text

MIME Ex: An email message with a single attachment Body Attachment Header From: email@address.com To: jim@example.com Subject: Email Test Cc: alice@example.edu X-Cutest-Pokemon: Pikachu MIME-Version: 1.0 Content-Type: Multipart/Mixed; Boundary=MIME-SEPARATOR Body all printable text MIME-SEPARATOR Attachment

DNS (Domain Name System) Port: 53 Converts readable names into IP addresses: name resolution Major steps User specifies the domain name it wants to connect to A series of DNS servers are contacted until the name is found IP address is returned back to the user User then uses the IP address to contact the device it originally wanted

DNS Hierarchy IANA – organization which oversees IP addresses ICANN – organization which oversees name registrations Root Server The highest level domain name servers in existence 13 sets of them located throughout the world See: http://www.root-servers.org/ Resolves addresses to Top Level Domain servers Top Level Domain The last segment of a domain name Examples: COM, NET, ORG, EDU, GOV, etc. See: http://www.iana.com/domains/root/db/

DNS Name Segments rhoggard.cs.ecu.edu. Administered by ECU Administered by ICANN rhoggard.cs.ecu.edu. Name of ONE computer in CS network Root Server Network on ECU campus Top Level Domain Name registered with a TLD Registrar

DNS Hierarchy Root Server Top Level Domain Server Authoritative Server Answers requests for locations to top level domain servers Top Level Domain Server Answers requests for organizations registered under a particular TLD registrar When you register a domain name, your name is registered with a company operating one of these servers Authoritative Server Answers request for a specific domain name (a specific machine address) You, or your hosting provider, will set this up after you register your domain name so that this server will point clients to your website/email server/ftp server etc. The exact authoritative server could be located under a higher level DNS server in a local network

DNS Hierarchy Root Server NET EDU COM ORG ATT SPECTRUM ECU YAHOO GOOGLE MICROSOFT REDCROSS ITCS CS MAIL LOGIN WWW WWW MSDN WWW RHOGGARD COURSEELF

DNS Hierarchy Root Server Local network administrators can set up their own DNS servers to divide up their networks any way they want COM server for foobar.com FOOBAR server for candy.foobar.com CANDY SOAP PEANUT WALNUT ALMOND

DNS Hierarchy Root Server Local network administrators can set up their own DNS servers to divide up their networks any way they want COM server for foobar.com FOOBAR CANDY SOAP server for almond.candy.foobar.com PEANUT WALNUT ALMOND

Web Browser request for Example DNS Lookup I.ROOT-SERVERS.NET https://www.dotcom-tools.com/DNS-lookup-tools.aspx K.EDU-SERVERS.NET rhoggard .cs .ecu .edu . Request to: 192.36.148.17 Try: 192.52.178.30 Request to: 192.36.148.17 Try: 150.216.1.252 SUNNY.NOC.ECU.EDU Request to: 150.216.1.252 DNS Port 53 request for: rhoggard.cs.ecu.edu Resolving Nameserver (your ISP) Try: 150.216.150.36 NS2.CS.ECU.EDU Request to: 150.216.150.36 Web Browser request for rhoggard.cs.ecu.edu Go to: 150.216.55.77 Web Server at 150.216.55.77 HTTP Port 80 request for: default page

Web Browser request for DNS Caching Root Server DNS requests are cached to try to speed up the resolution process authoritative server NOT in cache authoritative server in cache Check resolving server Resolving Nameserver (your ISP) Ask authoritative server NS2.CS.ECU.EDU Web Browser request for rhoggard.cs.ecu.edu Go to: 150.216.55.77 150.216.55.77 Check local cache Have you been there before? Check local cache www.yahoo.com 72.30.35.10 disney.com 130.211.198.204 ns2.cs.ecu.edu 150.216.150.36 www.yahoo.com 72.30.35.10 maps.google.com 172.217.9.78 mail.google.com 172.217.4.197 rhoggard.cs.ecu.edu 150.216.55.77 Add to cache

Types of DNS Entries Type A Type MX Type CNAME Name/IP combination used to point a domain name to an IP address Type MX Name/Name or Name/IP combination used to point a domain name to a mail server Type CNAME Name/Name combination, also known as an alias Used to set up a second name (an alias) that points to an already existing name

DNS Entry Examples Type Name Points To Description A corporation.com 98.130.150.7 points corporation.com to 98.130.150.7 MX corporation.com 98.130.150.26 points mail requests for corporation.com to a different machine than non-mail requests MX mail.corporation.com corporation.com sets up a second name to point to the mail server CNAME www.corporation.com corporation.com sets up a second name to point to the main server CNAME ecu.corporation.com ecu.edu sets up a second name to point to ECU's server A server1.corporation.com 98.130.150.48 sets up a name to another server (Ex: FTP server) CNAME ftp.corporation.com server1.corporation.com sets up an alias for the FTP server