TELE202 Lecture 16 Internet applications (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Socket programming »Source: chapter 17 ¥This Lecture »Internet.

Slides:



Advertisements
Similar presentations
World Wide Web Basics Original version by Carolyn Watters (Dalhousie U. Computer Science)
Advertisements

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.
Cornell CS502 Web Basics and Protocols CS 502 – Carl Lagoze Acks to McCracken Syracuse Univ.
Implementing Application Protocols. Overview An application protocol facilitates communication between applications. For example, an client uses.
2/9/2004 Web and HTTP February 9, /9/2004 Assignments Due – Reading and Warmup Work on Message of the Day.
Chapter 30 Electronic Mail Representation & Transfer
Chapter 31 File Transfer & Remote File Access (NFS)
Electronic Mail (SMTP, POP, IMAP, MIME)
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Human-Computer Interface Course 5. ISPs and Internet connection.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 7 The Application Layer.
Network Applications Outline Simple Mail Transfer Protocol
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Application Protocols: ELECTRONIC MAIL (SMTP, POP) CSNB534 Semester 2, 2007/2008 Asma Shakil.
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.
1 Applications Electronic Mail. 2 Electronic Mail Many user applications use client-server architecture. Electronic mail client accepts mail.
FTP (File Transfer Protocol) & Telnet
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.
2: Application Layer1 CS 4244: Internet Software Development Dr. Eli Tilevich.
Rensselaer Polytechnic Institute Shivkumar Kalvanaraman, Biplab Sikdar 1 The Web: the http protocol http: hypertext transfer protocol Web’s application.
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
© 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.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
CIS-325: Data Communications 1 CIS-325 Data Communications Dr. L. G. Williams, Instructor.
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
1 Web Development & Design Foundations with XHTML Chapter 1 Key Concepts.
File Transfer Protocol (FTP)
April 17, 2004 Prof. Paul Lin 1 CPET 355 Data Communications & Networking 7. The Application Layer: World Wide Web - Part 1 Paul I-Hai Lin, Professor Electrical.
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.
CMPE 80N - Introduction to Networks and the Internet 1 Client-Server Architecture Client Server request response.
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.
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
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.
TCP/IP (Transmission Control Protocol / Internet Protocol)
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
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.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
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.
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.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
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
TCP/IP Services and Applications Chapter 14 Release 16/7/2009.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 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 CS 3470, Section 1 Sarah Diesburg
Networking for Home and Small Businesses – Chapter 6
Chapter 10: Application Layer
Web Development & Design Chapter 1, Sections 4, 5 & 6
Networking for Home and Small Businesses – Chapter 6
1 Introduction to the Internet.
William Stallings Data and Computer Communications
Networking for Home and Small Businesses – Chapter 6
Chapter 7 Network Applications
Computer Networks Protocols
Presentation transcript:

TELE202 Lecture 16 Internet applications (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Socket programming »Source: chapter 17 ¥This Lecture »Internet applications (1) »Source: chapter 19 ¥Next Lecture »Internet applications (2) »Source: chapter 19

TELE202 Lecture 16 Internet applications (1) 2 Lecturer Dr Z. Huang Client/Server ¥TCP is like a telephone service »Applications using the service need to establish connection with their peers by using socket functions, just like (a little bit more complicated than) placing a telephone call ¥Client/server model »Server: provide service »Client: request service from a server ¥Server’s control flow »Accept connections from a client by using socket primitives »Receive a request from the client »Process the request and send a response to the client ¥Client’s control flow »1. Request connection with a server by using the socket primitives »2. Send a request message to the server »3. Wait to receive the response message from the server »4. Repeat step 2 and 3 until there is no more request »5. Close the connection with the server

TELE202 Lecture 16 Internet applications (1) 3 Lecturer Dr Z. Huang Electronic mails ¥Mailbox »Each recipient has a mailbox, which is a storage area (a file) on disk ¥Each mailbox is assigned a unique address ¥When a sender wants to send a mail to address name, it first locates the host’s IP address by using DNS, and then establishes connection with the host and transfers the mail using SMTP ¥Each host has a mail server which can receive mails to its mailboxes and deliver them to the corresponding mailboxes

TELE202 Lecture 16 Internet applications (1) 4 Lecturer Dr Z. Huang SMTP ¥Simple Mail Transfer Protocol ¥ is delivered by »the source host establishing a TCP connection to port 25 of the destination host »An daemon on the destination host listening to that port »The daemon speaking SMTP ¥Simple ASCII protocol (RFC 821, 1425) ¥SMTP operation »First the client (the source host) establishes a connection with the server (the destination host), and then waits for message from the server »The server sends its identity and tell the client whether it will accept mail. »If the server is willing to accept the mail, the client sends the name of the sender of the and intended recipient. »If it is a valid recipient, server sends a go- ahead message. »Message is sent and acknowledged. »When all the has been exchanged, connection is released.

TELE202 Lecture 16 Internet applications (1) 5 Lecturer Dr Z. Huang Mailbox location ¥On which computer to place the mailbox? »The computer should be available all the time »Should have enough resources, such as memory space and CPU capacity »Should be connected to Internet continuously ¥How can PCs with dial-up connection to Internet receive mails? ¥The mailboxes normally reside on mail servers and PCs fetch mails from the servers using Post Office Protocol (POP) ¥POP is very useful for computers which don’t have permanent Internet connection, such as laptops

TELE202 Lecture 16 Internet applications (1) 6 Lecturer Dr Z. Huang POP3 ¥Post Office Protocol version 3 »RFC 1225 ¥Servers are used to hold mails for machines which are not regular mail servers. »Laptops »PC's »MAC's ¥ POP3 is used to fetch mails from a remote mail server and store it locally. ¥POP3 operation »The client first sends a login and a password to authenticate the session. »Once authentication has been accepted, the client sends commands to retrieve a copy pf one or more messages »The server transfers the messages and deletes them from the permanent mailbox »Logout ¥Both POP3 and SMTP manipulate the mailbox. To ensure correct operation, the two servers must coordinate use of the mailbox.

TELE202 Lecture 16 Internet applications (1) 7 Lecturer Dr Z. Huang format ¥ format is part of the protocols of SMTP and POP ¥ s consist of a header and a body which are separated by a blank line ¥Header includes information about the sender, the recipient, date, format of the content, and etc From: To: Date: Fri, 25 August :21:32 Subject: lunch with me Content-Type: text/plain ¥Body contains only plain text ¥Multipurpose Internet Mail Extensions (MIME) »Used to encode binary data »Specify the encoding schemes used in the body »Normally base64 encoding is used to convert binary to ASCII

TELE202 Lecture 16 Internet applications (1) 8 Lecturer Dr Z. Huang exploders and gateways ¥ exploder »Maintain mailing lists in a database »When a mail to a mailing list is received, it forwards the mail to each member of the list ¥ gateway »A computer dedicated to processing s is often called an gateway »It can run exploders and forward s »It also maintain a large database for mailing lists »When a message is sent via an gateway, it passes across the Internet at least twice »It can manage automated mailing list. Users can send subscribe or unsubscribe message to join or leave a list without human intervention »By using a gateway, eg atlas, a computer can be removed or renamed without changing the employee’s address, e.g.

TELE202 Lecture 16 Internet applications (1) 9 Lecturer Dr Z. Huang FTP ¥File Transfer Protocol »Widely deployed Internet file transfer service »Oldest application protocol used in Internet and predates TCP/IP ¥How does FTP work? »TCP is used for data/commands transfer »Use open command to establish a control connection with a FTP server –open tigger.otago.ac.nz »The control connection is used to send commands and receive responses »If a file is required to be transferred, a data connection is established between the client and server –get somefile »The file is transferred via the data connection which is closed once the transfer completes »The control connection is up until the command close or bye is typed

TELE202 Lecture 16 Internet applications (1) 10 Lecturer Dr Z. Huang Other file applications ¥Trivial File Transfer Protocol(TFTP) »Similar to but simpler than FTP »UDP, instead of TCP, is used »Smaller set of commands, excluding commands for file interrogation, e.g. ls »Does not support authorisation. A client does not send a login name or password; a file can be transferred only if the file permissions allow global access »Advantages –Can be used when UDP is available but TCP is not –Less memory required in TFTP, which is required in a small special purpose hardware device –It is especially useful for bootstrapping a hardware device which does not have a disk on which to store system software »A small hardware device may only have TFTP, UDP and IP in its ROM, and transfer the system software from a server to its memory using TFTP when bootstrapping ¥Network File System (NFS) »Allows an application to open a remote file without transferring the entire file »Save network bandwidth »It gives the user an illusion that he/she has the file locally, though the file may be miles away

TELE202 Lecture 16 Internet applications (1) 11 Lecturer Dr Z. Huang World-wide Web ¥WWW History »Began in 1989 at CERN (European center for nuclear research) by a physicist Tim Berners- Lee »Text based prototype operational 18 months later »Mosaic in February 1993 by Marc Andreessen, who formed Netscape Communications Corp. a year later »World Wide Web Consortium formed by CERN and MIT in 1994 »When Netscape went public in 1995, investors paid 1.5 billion dollars for the stock for only one product ¥Browsers are used to display web pages, while servers provides the requested documents ¥Hypertext Transfer Protocol(HTTP) »Used for communication between browsers and servers ¥Uniform Resource Locators(URL) »Used to locate a document (web page) »protocol://machine/path to file ¥HyperText Markup Language (HTML) »Language used to write web pages

TELE202 Lecture 16 Internet applications (1) 12 Lecturer Dr Z. Huang Web server and browser ¥A web server performs a straightforward task repeatedly »Waits for a browser to open a connection and request a specific page »The server then sends a copy of the requested item, closes the connection, and repeat above ¥Web browsers have a more complex structure than Web servers »A browser contains several large software components that work together to provide the illusion of a seamless service »A browser consists of a set of clients, a set of interpreters, and a controller managing them »It interprets both mouse and keyboard input »Normally when it receives a request from the user, it asks HTTP client to request the requested HTML page and then asks the HTML interpreter to display the page

TELE202 Lecture 16 Internet applications (1) 13 Lecturer Dr Z. Huang HTTP Scenario ¥The browser gets a URL from user ¥The browser determines the URL ¥The browser asks DNS for the IP address using the IP name in the URL ¥The browser makes a TCP connection to port 80 (usually) of a remote host specified by the IP address in order to connect to the Web server ¥Then the browser sends a GET command giving the path to a file as a parameter ¥The Web server sends the requested file back to the browser ¥Then the browser release the TCP connection ¥The browser displays the text of the page according to the semantic of HTML ¥The browser may further use HTTP to fetch the images on the page

TELE202 Lecture 16 Internet applications (1) 14 Lecturer Dr Z. Huang HTTP Protocol ¥HTTP »ASCII protocol »Each interaction consists of one ASCII request, followed by one MIME-like response (RFC 822) »A HTTP response consists of a header and a body separated by a blank line HTTP/ OK Date: Thu, 27 Apr :03:16 GMT Server: Apache/1.3.0 (Unix) Last-Modified: Thu 17 Sep :32:53 GMT Content-Length: 1310 Content-Type: text/html »A new TCP connection is established for each HTTP interaction ¥Protocol methods »GET: request a Web page »HEAD: request the header of a page »PUT: request to store a Web page »POST: request to append to a resource »DELETE: request to remove a Web page »LINK: connect two existing resources »UNLINK: break a connection between two resources

TELE202 Lecture 16 Internet applications (1) 15 Lecturer Dr Z. Huang Summary ¥Client/server ¥SMTP ¥POP3 ¥ exploders and gateways ¥FTP ¥TFTP ¥NFS ¥WWW ¥HTTP ¥URL ¥HTML