Datornätverk A – lektion 14: Applikationslagret Kap 24: Sockets Kapitel 25: DNS Kapitel 26: SMTP och FTP Kapitel 27: HTTP och WWW.

Slides:



Advertisements
Similar presentations
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Advertisements

FILE TRANSFER PROTOCOL Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring.
PART 6 Application Layer
CS 1302 Computer Networks — Unit - 5 — — Application Layer —
Chapter 26 FTP.
Layer 7- Application Layer
TCP/IP Protocol Suite 1 Chapter 20 Upon completion you will be able to: Electronic Mail: SMTP, POP, and IMAP Understand four configurations of architecture.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Know how HTTP accesses data on the WWW Objectives.
File Transfer: FTP and TFTP
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 20 File Transfer Protocol (FTP)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 26 SMTP and FTP.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 20 File Transfer Protocol (FTP)
File Transfer Protocol (FTP)
Electronic Mail: SMTP, POP, and IMAP
SMTP, POP3, IMAP.
File Transfer & Access (FTP, TFTP, NFS)
4-Traditional Internet Applications Dr. John P. Abraham Professor UTPA.
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.
FTP (File Transfer Protocol) & Telnet
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.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
9/15/2015© 2008 Raymond P. Jefferis IIILect Application Layer.
Simple Mail Transfer Protocol (SMTP)
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
TCP/IP Protocol Suite 1 Chapter 19 Upon completion you will be able to: File Transfer: FTP and TFTP Understand the connections needed for FTP file transfer.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 26 SMTP and FTP.
File Transfer Protocol (FTP)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 27 HTTP and WWW.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
COMP 431 Internet Services & Protocols
Chapter 26 SMTP and FTP 26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Ch 2. Application Layer Myungchul Kim
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Internet Protocol Version4 (IPv4)
Chapter 26 Standard Client-Server Protocols Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
Chapter 26 Standard Client-Server Protocols
Remote Logging, Electronic Mail, and File Transfer
Instructor Materials Chapter 5 Providing Network Services
WWW and HTTP King Fahd University of Petroleum & Minerals
HTTP – An overview.
Application layer 1 Principles of network applications 2 Web and HTTP
FTP Lecture supp.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Networking Applications
Traditional Internet Applications
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Datornätverk A – lektion 14: Applikationslagret
File Transfer: FTP Objectives Chapter 19
UNIT V APPLICATION LAYER.
Chapter 2: Application layer
Remote Logging, Electronic Mail,
PART 6 Application Layer
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Domain Name System: DNS
Chapter 7 Network Applications
Computer Networks Protocols
Presentation transcript:

Datornätverk A – lektion 14: Applikationslagret Kap 24: Sockets Kapitel 25: DNS Kapitel 26: SMTP och FTP Kapitel 27: HTTP och WWW

Application Layer PART VI

Position of application layer

Chapter 24 Client-Server Model: Socket Interface

Figure 22.5 Socket address A socket is a data flow between two processes that is identified by its socket address pair, i.e. a unique combination of: - Transport protocol (UDP or TCP). - Source IP address and port number. - Destination IP address and port number.

Figure 24.2 Client-server relationship

Figure 24.3 Connectionless iterative server

Figure 24.4 Connection-oriented concurrent server

Figure 24.6 Socket types

Figure 24.7 Socket interface for connectionless iterative server

Figure 24.8 Socket interface for connection-oriented concurrent server

Chapter 25 DNS = Domain Name System

Figure 25.1 Domain name space

Domain Name System - DNS En distribuerad databas som används till att koppla IP- nummer till textbaserade internetadresser. Ex Varje sökning utgår från någon av rootservrarna som håller ordning på toppdomänerna. (.com.edu.se m fl) All information rörande en domän ligger i den ”Name Server” som hanterar domänen. För att lägga upp en ny domän krävs ”tillstånd” från närmast högre

Figure 25.2 Domain names and labels

Figure 25.4 Domains

Figure 25.5 Hierarchy of name servers

A primary DNS server loads all information from the disk file; the secondary server loads all information from the primary server. Note:

Figure 25.7 DNS in the Internet

Table 25.1 Generic domain labels LabelDescription.comCommercial organizations.eduEducational institutions.govGovernment institutions.intInternational organizations.milMilitary groups.netNetwork support centers.orgNonprofit organizations

Table 25.2 New generic domain labels LabelDescription.aeroAirlines and aerospace companies.bizBusinesses or firms (similar to com).coopCooperative business organizations.infoInformation service providers.museumMuseums and other nonprofit organizations.namePersonal names (individuals).proProfessional individual organizations

Figure 25.9 Country domains

Figure Inverse domain

Figure Recursive resolution

Figure Iterative resolution

Figure Query and response messages

Figure Header format

DNS can use the services of UDP or TCP, using the well-known port 53. Note:

Elektronisk Postvia SMTP, POP eller IMAP Konferenssystem via USENET News och NNTP Fildelningvia t.ex NFS Filöverföringvia t.ex FTP Skrivardelning World Wide Webvia HTTP MassutsändningarMbone- Multicast Backbone LAN Tjänster

Chapter 26 Internet

Figure delivery

Figure POP3

Figure 26.1 Format of an

Figure address

Figure 26.3 User agent

Figure 26.4 MIME

Figure 26.5 MIME header

Table 26.1Data types and subtypes in MIME TypeSubtypeDescription TextPlainUnformatted text Multiport MixedBody contains ordered parts of different data types ParallelSame as above, but no order DigestSimilar to mixed, but the default is message/RFC822 AlternativeParts are different versions of the same message Message RFC822Body is an encapsulated message PartialBody is a fragment of a bigger message Ext. BodyBody is a reference to another message Image JPEGImage is in JPEG GIFImage is in GIF format VideoMPEGVideo is in MPEG format AudioBasicSingle-channel encoding of voice at 8 KHz Application PostScriptAdobe PostScript Octet-StreamGeneral binary data (8-bit bytes)

Table 26.2 Content-transfer encoding CategoryDescription Type ASCII characters and short lines 7bitNon-ASCII characters and short lines 8bitNon-ASCII characters with unlimited-length lines Binary6-bit blocks of data are encoded into 8-bit ASCII characters Base64Non-ASCII characters are encoded as an equal sign followed by an ASCII code

Figure Base64

Table 26.3 Base64 encoding table ValueCodeValueCodeValueCodeValueCodeValueCodeValueCode 0A11L22W33h44s B12M23X34i45t C13N24Y35j46u D14O25Z36k47v E15P26a37l48w F16Q27b38m49x G17R28c39n50y H18S29d40o51z I19T30e41p / 9J20U31f42q531 10K21V32g43r542

Figure 26.7 Quoted-printable

Figure client and server

26.2 File Transfer Connections Communication File Transfer User Interface Anonymous

FTP uses the services of TCP. It needs two TCP connections. The well-known port 21 is used for the control connection, and the well-known port 20 is used for the data connection. Note:

Figure FTP

Figure Using the control connection

Figure Using the data connection

Figure File transfer

Example 1 Figure (next slide) shows an example of how a file is stored. 1.The control connection is created, and several control commands and responses are exchanged. 2.Data are transferred record by record. 3.A few commands and responses are exchanged to close the connection.

Figure Example 1

Table 26.4 List of FTP commands in UNIX Commands !, $, account, append, ascii, bell, binary, bye, case, cd, cdup, close, cr, delete, debug, dir, discount, form, get, glob, hash, help, lcd, ls, macdef, mdelete, mdir, mget, mkdir, mls, mode, mput, nmap, ntrans, open, prompt, proxy, sendport, put, pwd, quit, quote, recv, remotehelp, rename, reset, rmdir, runique, send, status, struct, sunique, tenex, trace, type, user, verbose,?

Example 2 We show some of the user interface commands that accomplish the same task as in Example 1. The user input is shown in boldface. As shown below, some of the commands are provided automatically by the interface. The user receives a prompt and provides only the arguments. $ ftp challenger.atc.fhda.edu Connected to challenger.atc.fhda.edu 220 Server ready Name: forouzan Password: xxxxxxx ftp > ls /usr/user/report 200 OK 150 Opening ASCII mode transfer complete ftp > close 221 Goodbye ftp > quit

Example 3 We show an example of using anonymous FTP. We connect to internic.net, where we assume there are some public data available. $ ftp internic.net Connected to internic.net 220 Server ready Name: anonymous 331 Guest login OK, send "guest" as password Password: guest ftp > pwd 257 '/' is current directory ftp > ls 200 OK 150 Opening ASCII mode bin... ftp > close 221 Goodbye ftp > quit

Chapter 27 HTTP and WWW

HTTP uses the services of TCP on well-known port 80. Note:

Figure 27.1 HTTP transaction

Figure 27.9 Example 1

Example 1 This example retrieves a document. We use the GET method to retrieve an image with the path /usr/bin/image1. The request line shows the method (GET), the URL, and the HTTP version (1.1). The header has two lines that show that the client can accept images in GIF and JPEG format. The request does not have a body. The response message contains the status line and four lines of header. The header lines define the date, server, MIME version, and length of the document. The body of the document follows the header (see Fig. 27.9, next slide).

Figure 27.3 Request line

Figure 27.4 URL

Figure 27.6 Status line

Figure 27.7 Header format

Figure Example 2

Example 2 This example retrieves information about a document. We use the HEAD method to retrieve information about an HTML document (see the next section). The request line shows the method (HEAD), URL, and HTTP version (1.1). The header is one line showing that the client can accept the document in any format (wild card). The request does not have a body. The response message contains the status line and five lines of header. The header lines define the date, server, MIME version, type of document, and length of the document (see Fig , next slide). Note that the response message does not contain a body.

HTTP version 1.1 specifies a persistent connection by default. Note:

Figure Hypertext

Figure WWW Hyperlinks

Figure Browser architecture