1 chapter 31-32 internet applications (dns, e-mail)

46
1 Chapter 31-32 Internet Applications (DNS, E-mail)

Upload: mervyn-perry

Post on 26-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

1

Chapter 31-32Chapter 31-32

Internet Applications(DNS, E-mail)

Page 2: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

2

Internet ApplicationsInternet Applications

Domain Name SystemElectronic mailRemote loginFile transferWorld Wide WebAll use client-server model

Page 3: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

3

NamesNames

Internet communication requires IP addresses

Humans prefer to use computer namesAutomated system available to translate

names to addressesKnown as Domain Name System (DNS)

Page 4: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

4

DNS FunctionalityDNS Functionality

GivenName of a computer

ReturnsComputer’s internet address

MethodDistributed lookupClient contacts server(s) as necessary

Page 5: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

5

Domain Name SyntaxDomain Name Syntax

Alphanumeric segments separated by dotsExamples

www.netbook.cs.purdue.edu

www.eg.bucknell.eduMost significant part on right

Page 6: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

6

Obtaining a Domain NameObtaining a Domain Name

OrganizationChooses a desired nameMust be uniqueRegisters with central authorityPlaced under one top-level domain

Names subject to international law forTrademarksCopyright

Page 7: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

7

Some Top-Level DomainsSome Top-Level Domains

Meaning assigned to each

Page 8: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

8

Within OrganizationWithin Organization

Subdivision possibleArbitrary levels possibleNot standardizedControlled locally by organization

Page 9: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

9

Example Name StructureExample Name Structure

First level is .comSecond level is company nameThird level is division within companyFourth level either

Company subdivisionIndividual computer

Page 10: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

10

An ExampleAn Example

AssumeCompany is FoobarHas two divisions

Soap divisionCandy division

Candy division has subdivisionsSoap Division has no subdivisions

Page 11: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

11

An Example (continued)An Example (continued)

Names in soap division have form

Names in candy division have form

computer.soap.foobar.com

computer.subdivision.candy.foobar.com

Page 12: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

12

Illustration of Foobar Naming Hierarchy

Illustration of Foobar Naming Hierarchy

Page 13: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

13

The Point About NamesThe Point About Names

The number of segments in a domain name corresponds to the naming hierarchy. There is no universal standard; each organization can choose how to structure names in its hierarchy. Furthermore, names within an organization do not need to follow a uniform pattern; individual groups within the organization can choose a hierarchical structure that is appropriate for the group.

Page 14: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

14

DNS Client-Server Interaction

DNS Client-Server Interaction

Client known as resolverMultiple DNS servers usedArranged in hierarchyEach server corresponds to contiguous part

of naming hierarchy

Page 15: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

15

Two Possible DNS Hierarchies

Two Possible DNS Hierarchies

Choice made by organization

Page 16: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

16

Inter-Server LinksInter-Server Links

All domain name servers are linked together to form a unified system. Each server knows how to reach a root server and how to reach servers that are authorities for names further down the hierarchy.

Page 17: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

17

In PracticeIn Practice

DNS uses backup server(s)ISPs and others

Offer DNS service to subscribersSmall organizations and individuals

Only need domain names for computers running servers

Contract with an ISP for domain service

Page 18: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

18

DNS LookupDNS LookupApplication

Becomes DNS clientSends request to local DNS server

Local serverIf answer known, returns responseIf answer unknown

Starts at top-level serverFollows linksReturns response

Called name resolution

Page 19: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

19

Interative DNS LookupInterative DNS Lookup

Page 20: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

20

Caching in DNSCaching in DNS

Server always caches answersHost can cache answersCaching

Improves efficiencyEliminates unnecessary searchWorks well because high locality of reference

Page 21: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

21

DNS TypesDNS Types

Each entry in server consists ofDomain nameDNS type for nameValue to which name corresponds

During lookup, client must supplyNameType

ServerMatches both name and type

Page 22: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

22

The Point About TypesThe Point About Types

The domain name system stores a type with each entry. When a resolver looks up a name, the resolver must specify the type that is desired; a DNS server returns only entries that match the specified type.

Page 23: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

23

Example DNS TypesExample DNS Types

Type A (Address)Value is IP address for named computer

Type MX (Mail eXchanger)Value is IP address of computer with mail server

for nameType CNAME (Computer NAME)

Value is another domain nameUsed to establish alias (www)

Page 24: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

24

Domain Name Abbreviation

Domain Name Abbreviation

DNS lookup uses full namesUsers desire abbreviationsTechnique

Configure resolver with list of suffixesTry suffixes one at a time

Page 25: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

25

Example of DNS Abbreviations

Example of DNS Abbreviations

Suffixes arefoobar.comcandy.foobar.com

User enters name walnutResolver tries

walnutwalnut.foobar.comwalnut.candy.foobar.com

Page 26: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

26

Other Internet Applications

Other Internet Applications

Invoked directly by userE-mailRemote loginFile transferWeb browsing

Page 27: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

27

Electronic MailElectronic Mail

OriginallyMemo sent from one user to another

NowMemo sent to one or more mailboxes

MailboxDestination point for messages Can be storage or programGiven unique address

Page 28: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

28

E-mail AddressE-mail Address

Text stringSpecifies mail destinationGeneral form mailbox@computercomputer

Domain name of computerActually type MX

mailboxDestination on the computer

Page 29: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

29

Use of E-mail AddressUse of E-mail Address

Each electronic mailbox has a unique address, which is divided into two parts: the first identifies a user’s mailbox, and the second identifies a computer on which the mailbox resides. E-mail software on the sender’s computer uses the second part to select a destination; e-mail software on the recipient’s computer uses the first part to select a particular mailbox.

Page 30: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

30

Mail Message FormatMail Message Format

HeaderIdentifies sender, recipient(s), memo contentsLines of form

keyword:informationBlank lineBody

Contains text of message

Page 31: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

31

Example E-mail Header Fields

Example E-mail Header Fields

Most header lines optional

Page 32: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

32

Extending E-mailExtending E-mail

Original e-mailSMTP - message restricted to ASCII text

Users desire to sendImage filesAudio clipsCompiled (binary) programs

SolutionMulti-purpose Internet Mail Extensions (MIME)

Page 33: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

33

MIMEMIME

Allows transmission ofBinary dataMultimedia files (video/audio clips)Multiple types in single messageMixed formats

Backward compatible

Page 34: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

34

MIME EncodingMIME Encoding

SenderInserts additional header linesEncodes binary data in (printable) ASCII

Sent like standard messageReceiver

Interprets header linesExtracts and decodes parts

Separate standards for content and encoding

Page 35: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

35

Example of MIMEExample of MIME

Header lines added

MIME-Version: 1.0

Content-Type: Multipart/Mixed; Boundary=Mime_sep

SpecifiesUsing MIME version 1.0Line Mime_sep appears before each message

part

Page 36: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

36

MIMEMIME

Although Internet e-mail only transfers text, MIME can be used to transport binary data by encoding it in printed characters. A MIME mail message includes additional information that a receiving application uses to decode the message.

Page 37: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

37

Mail TransferMail Transfer

Protocol is Simple Mail Transfer Protocol (SMTP)Runs over TCPUsed between

Mail transfer program on sender’s computerMail server on recipient’s computer

Specifies howClient interacts with serverRecipients specifiedMessage is transferred

Page 38: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

38

Illustration of Mail TransferIllustration of Mail Transfer

ServerRequired to receive mailPlaces message in user’s mailbox

Page 39: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

39

TerminologyTerminologyMail exploder

ProgramAccepts incoming messageDelivers to multiple recipients

Mailing listDatabaseUsed by exploder

Mail gatewayConnects two mail systems

Page 40: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

40

Illustration of a Mailing ListIllustration of a Mailing List

Separate permissions forMailing to listAdding/deleting members

Public – anyone can joinPrivate – access restricted by owner

Page 41: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

41

Illustration of a Mail Gateway

Illustration of a Mail Gateway

Can connect twoHeterogeneous systemsInternet to non-Internet

Page 42: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

42

Automated Mailing ListsAutomated Mailing Lists

Automated program to handle routine chores of maintaining mailing list: list manager

Used in conjunction with exploderExample expected command:

add mailbox to list

Page 43: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

43

Computers Without Mail Servers

Computers Without Mail Servers

TypicallySmall, personal computerNot continuously connected to Internet

To receive e-mail, user mustEstablish mailbox on large computerAccess mailbox as necessary

Post Office Protocol (POP) used

Page 44: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

44

POPPOP

Current version named POP3

Page 45: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

45

IMAPIMAP

Internet Message Access Protocol (IMAP4 rev1 1996)

A more modern type of protocol for accessing email messages

Leaves mail on server Built in security features

Page 46: 1 Chapter 31-32 Internet Applications (DNS, E-mail)

46

SummarySummary

Domain Name SystemMaps name to IP addressUses on-line serversUses caching for efficiency

Three e-mail transfer protocolsSMTPPOP3

IMAP