版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Electronic
MailThree
major
components:r
user
agentsr
serversr
simple
transferprotocol:
smtpUser
Agentr
a.k.a.
reader”r
composing,
editing,
readingmail
messagesr
e.g.,
Eudora,
pine,
elm,NetscapeMessengerr
outgoing,
incoming
messagesstored
on
serveruser
mailboxoutgoingmessage
queuemailserveruseragentuseragentuseragentmailserveruseragentuseragentmailserveruseragentSMTP2:
Application
Layer1SMTPSMTPElectronic
Mail:
serversMail
Serversr
mailbox
contains
incomingmessages
(yet
ot
be
read)for
userr
message
queue
of
outgoing(to
be
sent)
messagesr
smtp
protocol
between
mailserver
to
send
emailmessagesm
client:
sending
mailserverm
“server”:
receivingmail
servermailserveruseragentuseragentuseragentmailserveruseragentuseragentmailserveruseragentSMTP2:
Application
Layer2SMTPSMTP2:
Application
Layer3Electronic
Mail:smtp
[RFC
821]r
uses
tcp
to
reliably
transfer
msg
from
client
toserver,
port
25r
direct
transfer:
sending
server
to
receiving
serverr
three
phases
of
transfer
m
handshaking(greeting)m
transferm
closurer
command/response
interactionm
commands:
ASCI
textm
response:
status
code
and
phrase2:
Application
Layer4Sample
smtp
interactionS:
220
C:
HELO
crepes.frS:
250
Hello
crepes.fr,
pleased
to
meet
youC:
FROM:
<alice@crepes.fr>S:
250
alice@crepes.fr...
Sender
okC:
RCPT
TO:
<bob@>S:
250
bob@
...
Recipient
okC:
DATAS:
354
Enter
mail,
end
with
"."
on
a
line
by
itselfC:
Do
you
like
ketchup?C:
How
about
pickles?C:
.S:
250
Message
accepted
for
deliveryC:
QUITS:
221
closing
connection2:
Application
Layer5smtp:
final
wordstry
smtp
interaction
foryourself:r
telnet
servername
25r
see
220
reply
from
serverr
enter
HELO,
FROM,RCPT
TO,
DATA,
QUITcommandsabove
lets
you
send
emailwithout
using
client(reader)Comparison
with
httpr
http:
pullr
email:
pushr
both
have
ASCIIcommand/responseinteraction,
status
codesr
http:
multiple
objects
infile
sent
in
separateconnectionsr
smtp:
multiple
messageparts
sent
in
oneconnectionMail
message
formatsmtp:
protocol
for
exchangingemail
msgsRFC
822:
standard
for
textmessage
format:r
header
lines,
e.g.,m
To:m
From:m
Subject:different
from
smtpcommands!r
bodym
the
“message”,
ASCIIcharacters
onlyr
line
containing
only
`.’headerbody.blankline2:
Application
Layer6Message
format:
multimedia
extensionsr
MIME:
multimedia
extension,
RFC
2045,
2056r
additional
lines
in
msg
header
declare
MIME
contenttypeFrom:
alice@crepes.fr
To:
bob@Subject:
Picture
of
yummy
crepe.MIME-Version:
1.0Content-Transfer-Encoding:base64Content-Type:
image/jpegbase64
encoded
data
....................................base64
encoded
data.multimedia
datatype,
subtype,parameter
declarationmethod
usedto
encode
dataMIME
versionencoded
data2:
Application
Layer72:
Application
Layer8MIME
typesTextr
example
subtypes:
plain,htmlImager
example
subtypes:
jpeg,gifAudior
exampe
subtypes:
basic(8-bit
mu-law
encoded),32kadpcm
(32
kbpscoding)Videor
example
subtypes:
mpeg,quicktimeApplicationr
other
data
that
must
beprocessed
by
readerbefore
“viewable”r
example
subtypes:msword,
octet-streamMail
access
protocolsr
SMTP:
delivery/storage
to
receiver’s
serverr
access
protocol:
retrieval
from
serverm
POP:
Post
Office
Protocol
[RFC
1939]authorization
(agent
<-->server)
and
downloadm
IMAP:
Internet
Access
Protocol
[RFC
1730]more
features
(more
complex)manipulation
of
stored
msgs
on
serveruseragentsender’s
mailserveruseragentSMTP
SMTPPOP3
orIMAPreceiver’s
mailserver2:
Application
Layer9POP3
protocolauthorization
phaser
client
commands:m
user:
declare
usernamem
pass:
passwordr
server
responsesm
+OKm
-ERRtransaction
phase,
client:r
list:
list
message
numbers
r
retr:
retrieve
message
bynumberr
dele:
deleter
quitS:
+OK
POP3
server
readyC:
user
aliceS:
+OKC:
pass
hungryS:
+OK
user
successfully
logged
onC:
listS:
1
498S:
2
912S:
.C:
retr
1S:
<message
1
contents>S:
.C:
dele
1C:
retr
2S:
<message
1
contents>S:
.C:
dele
2C:
quitS:
+OK
POP3
server
signing
off2:
Application
Layer102:
Application
Layer11DNS:
Domain
Name
SystemPeople:
many
identifiers:m
SSN,
name,
Passport
#Internet
hosts,
routers:m
IP
address
(32
bit)
-used
for
addressingdatagramsm
“name”,
e.g.,
-used
by
humansQ:
map
between
IPaddresses
and
name
?Domain
Name
System:r
distributed
databaseimplemented
in
hierarchy
ofmany
name
serversr
application-layer
protocolhost,
routers,
name
servers
tocommunicateto
resolve
names(address/name
translation)m
note:
core
Internetfunction
implemented
asapplication-layer
protocolm
complexity
at
network’s“edge”2:
Application
Layer12DNS
name
serversr
no
server
has
all
name-to-IP
address
mappingslocal
name
servers:m
each
ISP,
company
haslocal
(default)
name
serverm
host
DNS
query
first
goesto
local
name
serverauthoritative
name
server:m
for
a
host:
stores
thathost’s
IP
address,
namem
can
perform
name/addresstranslation
for
thathost’s
nameWhy
not
centralize
DNS?r
single
point
of
failurer
traffic
volumer
distant
centralizeddatabaser
maintenancedoesn’t
scale!DNS:
Root
name
serversr
contacted
by
localname
server
that
cannot
resolve
namer
root
name
server:m
contactsauthoritative
nameserver
if
namemapping
not
knownm
gets
mappingm
returns
mapping
tolocal
name
serverr
~
dozen
root
nameservers
worldwide2:
Application
Layer13Simple
DNS
examplehost
surf.eurecom.frwants
IPaddress
ofContacts
its
local
DNS server,
dns.eurecom.frdns.eurecom.fr
contacts root
name
server,
if necessaryroot
name
server
contacts authoritative
name
server, ,
if necessaryrequesting
hostsurf.eurecom.frroot
name
serverauthorititive
name
serverlocal
name
serverdns.eurecom.fr1234562:
Application
Layer14DNS
exampleRoot
name
server:r
may
not
knowauthoratiative
nameserverr
may
knowintermediate
nameserver:
who
tocontact
to
findauthoritative
nameserverroot
name
serverlocal
name
serverdns.eurecom.fr123456authoritative
name
serverrequesting
hostsurf.eurecom.frintermediate
name
server2:
Application
Layer1578DNS:
iterated
queriesrecursive
query:r
puts
burden
of
nameresolution
oncontacted
nameserverr
heavy
load?iterated
query:r
contacted
serverreplies
with
name
ofserver
to
contactr
“I
don’t
know
thisname,
but
ask
thisserver”requesting
hostsurf.eurecom.frroot
name
serverlocal
name
serverdns.eurecom.fr1234authoritative
name
serverintermediate
name
server5
678iterated
query2:
Application
Layer162:
Application
Layer17DNS:
caching
and
updating
recordsr
once
(any)
name
server
learns
mapping,
it
cachesmappingm
cache
entries
timeout
(disappear)
after
sometimer
update/notify
mechanisms
under
design
by
IETFm
RFC
2136m
/html.charters/dnsind-charter.htmlDNS
recordsDNS:
distributed
db
storing
resource
records
(RR)RR
format:
(name,
value,
type,ttl)Ty
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024物業(yè)資產(chǎn)讓與擔(dān)保合同 資產(chǎn)方與受讓方協(xié)議
- 二零二四年免租金科研機(jī)構(gòu)租賃合同規(guī)范文本3篇
- 2025年管道檢測(cè)與修復(fù)水管安裝合同樣本3篇
- 2025年酒店布草租賃與智能化管理服務(wù)合同2篇
- 二零二五年度草料種植基地土壤治理合同3篇
- 二零二五年度租賃房屋租賃保證金監(jiān)管服務(wù)合同范本3篇
- 2025年校園體育設(shè)施平整施工合同6篇
- 二零二五年度數(shù)據(jù)中心場(chǎng)地租賃合同及數(shù)據(jù)安全保障與服務(wù)標(biāo)準(zhǔn)3篇
- 二零二五惠州法務(wù)專員招聘與法律知識(shí)普及培訓(xùn)合同3篇
- 2024金融機(jī)構(gòu)貸款擔(dān)保合同
- 危險(xiǎn)性較大分部分項(xiàng)工程及施工現(xiàn)場(chǎng)易發(fā)生重大事故的部位、環(huán)節(jié)的預(yù)防監(jiān)控措施
- 繼電保護(hù)試題庫(kù)(含參考答案)
- 《榜樣9》觀后感心得體會(huì)四
- 2023事業(yè)單位筆試《公共基礎(chǔ)知識(shí)》備考題庫(kù)(含答案)
- 《住院患者身體約束的護(hù)理》團(tuán)體標(biāo)準(zhǔn)解讀課件
- 酒店一線員工績(jī)效考核指標(biāo)體系優(yōu)化研究
- 成都市優(yōu)質(zhì)結(jié)構(gòu)工程申報(bào)指南
- 小學(xué)四年級(jí)上冊(cè)-數(shù)學(xué)口算題精選(分頁(yè)打印)
- 【納棺夫日記】
- 《鐵路貨車(chē)運(yùn)用維修規(guī)程》2018年10月
- 水利工程竣工驗(yàn)收?qǐng)?bào)告表格(共5頁(yè))
評(píng)論
0/150
提交評(píng)論