datorn tverk a lektion 14 applikationslagret
Download
Skip this Video
Download Presentation
Datornätverk A – lektion 14: Applikationslagret

Loading in 2 Seconds...

play fullscreen
1 / 68

Datornätverk A – lektion 14: Applikationslagret - PowerPoint PPT Presentation


  • 137 Views
  • Uploaded on

Datornätverk A – lektion 14: Applikationslagret. Kap 24: Sockets Kapitel 25: DNS Kapitel 26: SMTP och FTP Kapitel 27: HTTP och WWW. PART VI. Application Layer. Position of application layer. Chapter 24. Client-Server Model: Socket Interface. Figure 24.2 Client-server relationship.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Datornätverk A – lektion 14: Applikationslagret' - lelia


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
datorn tverk a lektion 14 applikationslagret

Datornätverk A – lektion 14:Applikationslagret

Kap 24: Sockets

Kapitel 25: DNS

Kapitel 26: SMTP och FTP

Kapitel 27: HTTP och WWW

slide2

PART VI

Application Layer

slide4

Chapter 24

Client-ServerModel:Socket Interface

slide11

Chapter 25

DNS = DomainName System

slide13

Domain Name System - DNS

En distribuerad databas som används till att koppla IP-nummer till textbaserade internetadresser.

Ex www.gb.se <-> 195.7.73.37

  • 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
slide17

Note:

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

slide27

Note:

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

slide28

LAN Tjänster

  • Elektronisk Post via SMTP, POP eller IMAP
  • Konferenssystem via USENET News och NNTP
  • Fildelning via t.ex NFS
  • Filöverföring via t.ex FTP
  • Skrivardelning
  • World Wide Web via HTTP
  • Massutsändningar Mbone - Multicast Backbone
slide29

Chapter 26

Internet E-mail

slide43

26.2 File Transfer

Connections

Communication

File Transfer

User Interface

Anonymous

slide44

Note:

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.

slide49

Example 1

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

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

...........

...........

226 transfer complete

ftp > close

221 Goodbye

ftp > quit

slide53

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

slide54

Chapter 27

HTTPandWWW

slide55

Note:

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

slide58

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).

slide64

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. 27.10, next slide). Note that the response message does not contain a body.

slide65

Note:

HTTP version 1.1 specifies a persistent connection by default.

slide67

Figure 27.11WWW

Hyperlinks

ad