1 Chapter 31-32 Internet Applications (DNS, E-mail)
-
Upload
mervyn-perry -
Category
Documents
-
view
215 -
download
0
Transcript of 1 Chapter 31-32 Internet Applications (DNS, E-mail)
![Page 1: 1 Chapter 31-32 Internet Applications (DNS, E-mail)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/1.jpg)
1
Chapter 31-32Chapter 31-32
Internet Applications(DNS, E-mail)
![Page 2: 1 Chapter 31-32 Internet Applications (DNS, E-mail)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/2.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/3.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/4.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/5.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/6.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/7.jpg)
7
Some Top-Level DomainsSome Top-Level Domains
Meaning assigned to each
![Page 8: 1 Chapter 31-32 Internet Applications (DNS, E-mail)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/8.jpg)
8
Within OrganizationWithin Organization
Subdivision possibleArbitrary levels possibleNot standardizedControlled locally by organization
![Page 9: 1 Chapter 31-32 Internet Applications (DNS, E-mail)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/9.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/10.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/11.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/12.jpg)
12
Illustration of Foobar Naming Hierarchy
Illustration of Foobar Naming Hierarchy
![Page 13: 1 Chapter 31-32 Internet Applications (DNS, E-mail)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/13.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/14.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/15.jpg)
15
Two Possible DNS Hierarchies
Two Possible DNS Hierarchies
Choice made by organization
![Page 16: 1 Chapter 31-32 Internet Applications (DNS, E-mail)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/16.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/17.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/18.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/19.jpg)
19
Interative DNS LookupInterative DNS Lookup
![Page 20: 1 Chapter 31-32 Internet Applications (DNS, E-mail)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/20.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/21.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/22.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/23.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/24.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/25.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/26.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/27.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/28.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/29.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/30.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/31.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/32.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/33.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/34.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/35.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/36.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/37.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/38.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/39.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/40.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/41.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/42.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/43.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/44.jpg)
44
POPPOP
Current version named POP3
![Page 45: 1 Chapter 31-32 Internet Applications (DNS, E-mail)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/45.jpg)
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)](https://reader036.fdocuments.us/reader036/viewer/2022081519/56649e215503460f94b0e2b4/html5/thumbnails/46.jpg)
46
SummarySummary
Domain Name SystemMaps name to IP addressUses on-line serversUses caching for efficiency
Three e-mail transfer protocolsSMTPPOP3
IMAP