Traditional Internet Applications

Similar documents
2. Introduction to Internet Applications

Electronic Mail. Three Components: SMTP SMTP. SMTP mail server. 1. User Agents. 2. Mail Servers. 3. SMTP protocol

Application Layer Protocols

Chapter 2: Application layer

Lecture 05: Application Layer (Part 02) Domain Name System. Dr. Anis Koubaa

Subnet Design and IP Addressing

Application Layer: , DNS

Review for Internet Introduction

FTP. Mail. File Transfer Protocol (FTP) FTP commands, responses. Electronic Mail. TDTS06: Computer Networks

Motivation For Networking. Information access Interaction among cooperative application programs Resource sharing

Chapter 4. Internet Applications

Chapter 2 Application Layer

Computer Network 1 1

Information Network Systems The application layer. Stephan Sigg

Electronic Mail Paradigm

Application Layer: OSI and TCP/IP Models

Computer Networking Introduction

Chapter 2 Application Layer. Lecture 5 DNS. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 10: Application Layer CCENT Routing and Switching Introduction to Networks v6.0

Chapter 2 part B: outline

Domain Name System (DNS) 김현철 ( 화 ) 정보통신융합서울대학교컴퓨터공학부

Chapter 10: Application Layer

CS4/MSc Computer Networking. Lecture 3: The Application Layer

CSCE 463/612 Networks and Distributed Processing Spring 2018

[Prof. Rupesh G Vaishnav] Page 1

CSCD 330 Network Programming Winter 2015

Asst. Prof. Chaiporn Jaikaeo, Ph.D.

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Introduction to Computer Networks

CCNA Exploration1 Chapter 3: Application Layer Functionality and Protocols

Introduction to Internet, Web, and TCP/IP Protocols SEEM

Application layer. Some network apps. Client-server architecture. Hybrid of client-server and P2P. Pure P2P architecture. Creating a network app

DNS and HTTP. A High-Level Overview of how the Internet works

Application Layer. Pure P2P architecture. Client-server architecture. Processes communicating. Hybrid of client-server and P2P. Creating a network app

Lecture 7 Application Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Computer Networks. More on Standards & Protocols Quality of Service. Week 10. College of Information Science and Engineering Ritsumeikan University

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 5

CSEN 404 Introduction to Networks. Mervat AbuElkheir Mohamed Abdelrazik. ** Slides are attributed to J. F. Kurose

Applications & Application-Layer Protocols: (SMTP) and DNS

Lecture 6: Application Layer Web proxies, , and SMTP

Application Level Protocols

CSEN 503 Introduction to Communication Networks

Notes beforehand... For more details: See the (online) presentation program.

Internet Applications

Computer Networks. Wenzhong Li. Nanjing University

Application Layer. Applications and application-layer protocols. Goals:

13. Internet Applications 최양희서울대학교컴퓨터공학부

Supporting Protocols and Technologies in TCP/IP Suites

DNS and SMTP. James Walden CIT 485: Advanced Cybersecurity. James WaldenCIT 485: Advanced Cybersecurity DNS and SMTP 1 / 31

Application-layer Protocols

Chapter II: Application Layer

APPLICATION LAYER APPLICATION LAYER : DNS, HTTP, , SMTP, Telnet, FTP, Security-PGP-SSH.

Lecture 7: Application Layer Domain Name System

The Application Layer: Sockets, DNS

WEB TECHNOLOGIES CHAPTER 1

CSCE 463/612 Networks and Distributed Processing Spring 2018

WWW: the http protocol

Networking. Layered Model. DoD Model. Application Layer. ISO/OSI Model

CSC 401 Data and Computer Communications Networks

FTP,HTTP. By Nidhi Jindal

Networks, WWW, HTTP. Web Technologies I. Zsolt Tóth. University of Miskolc. Zsolt Tóth (University of Miskolc) Networks, WWW, HTTP / 35

Application Layer. Goals:

Application Layer. Applications and application-layer protocols. Goals:

Application Layer: The Web and HTTP Sec 2.2 Prof Lina Battestilli Fall 2017

CSCD 330 Network Programming Spring 2018 Lecture 5 Application Layer. Reading: Chapter 2 Still

World-Wide Web Protocols CS 571 Fall Kenneth L. Calvert All rights reserved

Chapter 2: Application Layer

Chapter 2: outline. 2.6 P2P applications 2.7 socket programming with UDP and TCP

Information Network I: The Application Layer. Doudou Fall Internet Engineering Laboratory Nara Institute of Science and Technique

Internet applications. 2: Application Layer 1

CCNA 1 Chapter 10 v5.0 Exam Answers 2013

Chapter 2 Application Layer

Internet Applications. Dr Steve Gordon ICT, SIIT

Lecture 25. Tuesday, November 21 CS 475 Networks - Lecture 25 1

Chapter 2 Application Layer

FTP. Client Server Model. Kent State University Dept. of Computer Science. CS 4/55231 Internet Engineering. Server Models

Internet Mail: The SMTP Model

Course on Computer Communication and

Application Layer. Goals: Service models. Conceptual aspects of network application protocols Client server paradigm

Text-Based Protocols. Many common protocols based on sending text messages. Built atop the TCP stream protocol. Lines terminated with \r\n.

CSC358 Week 2. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

Chapter 2 Application Layer

Application Layer Chapter 2

Network Applications Principles of Network Applications

CCNA Exploration Network Fundamentals. Chapter 03 Application Functionality and Protocols

Applications & Application-Layer Protocols: FTP and (SMTP & POP)

From administrivia to what really matters

COMPUTER NETWORK. Homework #1. Due Date: March 29, 2017 in class

Application Layer. Pure P2P architecture. Client-server architecture. Processes communicating. Hybrid of client-server and P2P. Creating a network app

EEC-682/782 Computer Networks I

Computer Networking. Chapter #1. Dr. Abdulrhaman Alameer

Electronic Mail. Prof. Indranil Sen Gupta. Professor, Dept. of Computer Science & Engineering Indian Institute of Technology Kharagpur

The Application Layer: & SMTP

CMPE 151: Network Administration. Servers

Lecture 04: Application Layer (Part 01) Principles and the World Wide Web (HTTP) Dr. Anis Koubaa

Allows a user to copy files to/from remote hosts Usage:

3. WWW and HTTP. Fig.3.1 Architecture of WWW

Networking Fundamentals: IP, DNS, URL, MIME

Domain Name Service. DNS Overview. October 2009 Computer Networking 1

Electronic Mail. Electronic Mailboxes

Transcription:

Traditional Internet Applications Asst. Prof. Chaiporn Jaikaeo, Ph.D. chaiporn.j@ku.ac.th http://www.cpe.ku.ac.th/~cpj Computer Engineering Department Kasetsart University, Bangkok, Thailand Adapted from the notes by Lami Kaya, LKaya@ieee.org, and notes by J.F Kurose and K.W. Ross 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1

Application-Layer Protocols Specs for network applications The syntax and semantics of messages Actions to be taken if an error arises How the two sides know when to terminate communication There are two broad types of application-layer protocols that depend on the intended use: Private communication proprietary, limited scope Standardized service standard, Internet-wide: Web server, FTP, etc. Standards for the Internet are known as Request for Comments (RFCs) 2

Representation And Transfer Application-layer protocols specify two aspects of interaction: Representation Transfer 3

World Wide Web

Web Protocols The World Wide Web (WWW) is one of the most widely used services in the Internet 5

Document Representation With HTML HyperText Markup Language (HTML) Specifies the syntax of a web page Uses a textual representation Describes pages that contain multimedia Provides markup specifications instead of formatting Permits a hyperlink to be embedded in an arbitrary object 6

Document Representation With HTML <HTML> <HEAD> <TITLE> Document Title </TITLE> </HEAD> <BODY> Hello </BODY> </HTML> Whitespaces do not matter <HTML><HEAD><TITLE>Document Title</TITLE></HEAD> <BODY>Hello</BODY></HTML> 7

Uniform Resource Locators URLs identify where resources can be found and how they can be obtained The general form of a URL is: Example: 8

Uniform Resource Locators In a typical URL, a user can omit many of the parts E.g., Which omits the protocol (http is assumed) the port (80 is assumed) the document name (index.html is assumed) and parameters (none are assumed) 9

Hypertext Transfer Protocol HyperText Transfer Protocol (HTTP) Primary transfer protocol between web server and browser (client) A browser is a client that extracts a server name from a URL and contacts the server Most URLs contain an explicit protocol reference of http:// or omit the protocol altogether (HTTP is assumed) 10

HTTP Once it establishes a connection a browser sends an HTTP request to the server 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 11

HTTP GET Requests/Responses The browser (client) sends a GET request to request a resource (e.g., HTML doc, images) The server responds by sending a header, a blank line, and the requested document Sample GET request Sample response GET /index.html HTTP/1.1 CRLF (\r\n) HTTP/1.0 200 OK Server: Apache/1.3.37 Content-Length: 221 Content-Type: text/html <HTML> : </HTML> 12

Response Details The first line of a response header contains a status code Additional lines of the header give further information, such as its length when it was last modified and the content type 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 13

Web Browser Architecture A browser must understand HTTP (at least) A browser also provides support for other protocols Knows how to interact with a server and how to interpret responses E.g., a browser must know how to access the FTP (File Transfer Protocol) service Knows what external program to launch for particular protocol code 14

Electronic Mail

Electronic Mail One of the most widely used Internet applications Because it was conceived before personal computers and hand-held PDAs were available, Email software is divided into two parts Email interface application A mechanism for a user to compose and edit outgoing messages as well as read and process incoming email Email transfer program acts as a client to send a message to the mail server on the destination computer; the mail server accepts incoming messages and deposits each in the appropriate user's mailbox 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 21

Electronic Mail The specifications used for Internet email can be divided into three broad categories 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 22

Simple Mail Transfer Protocol (SMTP) Standard protocol that a mail transfer program uses SMTP has a restriction to send only textual content MIME standard that allows email to include attachments such as graphic images or binary files SMTP can send a single message to multiple recipients 23

Example SMTP Session 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 24

ISPs, Mail Servers, And Mail Access Most users do not know how to configure and manage an email server ISPs began offering email services An ISP runs an email server and provides a mailbox for each user Email access follows one of two forms: A special-purpose email interface application A web browser that accesses an email web page 25

ISPs, Mail Servers, And Mail Access 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 26

Web Browser as Mail Access ISP provides a special web page that displays messages from a user's mailbox Advantages ability to read email from any computer a user does not need to run a special mail interface application 27

Mail Access Protocols (POP, IMAP) Provide access to a user s mailbox Permit a user to view headers, download, delete, or send messages Client runs on user s personal computer Server runs on a computer that stores user s mailbox 28

Email Representation Standards Two important email representation standards exist: RFC (Request For Comments) 2822 Internet Message Format Multi-purpose Internet Mail Extensions (MIME) 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 29

RFC 2822 Mail Message Format Takes its name from the IETF standards document RFC 2822 A mail message is represented as a text file and consists of a header section a blank line and a body Header lines each have the form: Keyword: information where the set of keywords is defined to include From:, To:, Subject:, Cc:

Multi-purpose Internet Mail Extensions (MIME) The MIME standard extends the functionality of email to allow the transfer of non-text data in a message MIME specifies how a binary file can be encoded into printable characters, included in a message, and decoded by the receiver The Base64 encoding standard is most popular, but MIME does not restrict encoding to a specific form 31

Domain Name System

Domain Name System (DNS) DNS provides a service that maps humanreadable symbolic names to computer addresses Just like a phonebook of the Internet Browsers, mail software, and most other Internet applications use the DNS 33

Domain Name System (DNS) Each name consists of a sequence of alpha-numeric segments separated by periods For example, a computer in the Computer Engineering Department at Kasetsart University has the domain name: garnet.cpe.ku.ac.th A computer at Cisco, Incorporated has the domain name: anakin.cisco.com Domain names are hierarchical, with the most significant part of the name on the right 34

Top-Level Domains (TLDs) The most significant segment of each domain name is called a top-level domain (TLD) Controlled by the Internet Corporation for Assigned Names and Numbers (ICANN) ICANN designates one or more domain registrars to administer a given top-level domain and approve specific names 35

Examples of TLDs 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 36

Examples of Country Code TLDs cctld at Austria Country be ca ch cn fm jp th to tv Belgium Canada Switzerland Mainland China Federated States of Micronesia Japan Thailand Tonga Tuvalu

DNS Hierarchy And Server Model Each organization is free to choose the details of its servers A small organization that only has a few computers can contract with an ISP to run a DNS server. An organization that runs its own server can choose to place all names for the organization in a single physical server, or it can choose to divide its names among multiple servers 38

Possible Server Setups 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 39

Name Resolution Software (or library) to perform name-address translation is known as a name resolver The resolver becomes a client of a DNS server DNS server returns an answer to the caller Each resolver is configured with the address of one or more local domain name servers The resolver forms a DNS request message sends the message to the local server waits for the server to send a DNS reply message for the answer 40

Example root DNS server Host at cis.poly.edu wants IP address for gaia.cs.umass.edu 2 3 4 5.edu DNS server local DNS server dns.poly.edu 1 8 7 6 There are 13 root DNS servers around the world requesting host cis.poly.edu authoritative DNS server dns.cs.umass.edu gaia.cs.umass.edu

DNS Caching Once (any) name server learns mapping, it caches mapping Cache entries timeout (disappear) after some time TLD servers typically cached in local name servers Thus root name servers not often visited

nslookup Command Tool for querying DNS Available for many operating systems Including Windows and Linux $ nslookup > www.sanook.com Server: 158.108.32.3 Address: 158.108.32.3#53 Non-authoritative answer: Name: www.sanook.com Address: 203.107.165.221 >

Summary Common Internet applications and protocols World Wide Web Electronic Mail File Transfer Domain Name System