? 9 ? TCP/IP ?? - PowerPoint PPT Presentation

1 / 34
About This Presentation
Title:

? 9 ? TCP/IP ??

Description:

9 TCP/IP Inha University Multimedia Network Lab. Prof. Sang-Jo Yoo sjyoo_at_inha.ac.kr http://multinet.inha.ac.kr – PowerPoint PPT presentation

Number of Views:93
Avg rating:3.0/5.0
Slides: 35
Provided by: ysc6
Category:

less

Transcript and Presenter's Notes

Title: ? 9 ? TCP/IP ??


1
? 9 ? TCP/IP ?? ????
Inha University Multimedia Network Lab. Prof.
Sang-Jo Yoo sjyoo_at_inha.ac.kr
http//multinet.inha.ac.kr
2
??
  • 9.1 ?? ?? ???? (Telnet)
  • 9.2 ?? ?? ????
  • 9.3 ?? ?? ?? ????

3
9.1 ?? ?? ????
  • TELNET ????
  • ??
  • ???? ?? ??? ??? ? ? ??? ?
  • TCP ??? ??
  • ???? ?? ???(NVT Network Virtual Terminal) ??? ??
  • ??? ??????? ?? ?? ????? ??
  • ???? ??? ?? ?????? ??? ??? ?? ? ??? ??? ?? ??
  • ???? ?? ???(NVT)
  • ? ???? ??? ??? ???? ?? ??? ?? ??? ?? ????? ??
  • ??? ???? ? ???? ??? ???? ?? ??

4
9.1 ?? ?? ????
Via a universal interface called the Network
Virtual Terminal (NVT) character set, the TELNET
client translates characters (data or commands)
that come from the local terminal into NVT form
and delivers them to the network. The TELNET
server translates data and commands from NVT form
into the form acceptable by the remote computer.
5
9.1 ?? ?? ????
  • TELNET ???
  • NVT ASCII ??? ??? 0, ?? 7??? US ASCII? ??
  • 8?? ASCII? ???? ???? ?? ???? ??
  • ???? ???? ???? ?? ??? 1? ??? 8 ?? ??? ??
  • ?) 0xff(??? 255) IAC(Interpret As Command)
    ??? ?? ??? ???? ??
  • AYT(246)? ?? ??? ?? ??? ?? ?

6
9.2 ?? ?? ???? - FTP
  • ??
  • FTP(File Transfer Protocol) TCP ??
  • TFTP(Trivial File Transfer Protocol) UDP ??
  • NFS(Network File System)
  • FTP (File Transfer Protocol)
  • ???? ??
  • ? ???? ??? ???? ??, ??? ? ??? ?? ??? ?? ? ??.
  • ?? ??? ?? ??? ??? ???? ??? ??? ???? ???? ??? ?
    ??? ??? ?? ??
  • FTP? ??? ??? ?? ?? ??? ??? ? ?? TCP ??? ??

7
9.2 ?? ?? ???? - FTP
  • FTP? ?? ??
  • ?? 21? FTP ??? ??? ????? ???
  • ?? 20? ?? ???? ???? ?? ??? ??
  • ?? ??? ?????? ????? FTP ??? ????? ????, ??? ???
    ??? ?? ??? ??? ??? ??

8
9.2 ?? ?? ???? - FTP
  • FTP ??
  • FTP ??? 2?? ??? ?? control (21), data(20)
  • FTP ?????? ??? control ??? ??? ??? ??
  • Active ??? Passive ??? ??? ?? ???? ??? data ???
    ????? ??.
  • Active Mode ??????
  • ?????? ???? ?? ??? ?? n(gt1023)? ?? ??? control
    ??(21?)? ??
  • ?? ?????? ??? ??? ?? ??(k)? (????? n1) ??? ????
    ??? ????? listening ??.
  • FTP ??? ??? ?? (20)? ??? ?????? ??? ?? (k)? ???
    ????.
  • ?????? ???(firewall)? ????? ??, ??? ??? ?? ????
    ??? ?? ???? ???? ?? ?? ???? ?? ???? ??? ?? ? ??

9
9.2 ?? ?? ???? - FTP
  • Passive Mode ??????
  • ??? ??? ?? ?????? ??? ????? ????.
  • ?????? ???? ?? ?? n, k(n1)? ??, n ??? ??? ???
    control ??? 21? ??? ????.
  • ??? ???? ?? ??? ?? p (gt1023)? ????, ?????? ??
    ????? ????.
  • ?????? ??? ??? ?? ??? k ??? ??? p ??? ??? ????.
  • ????? ????? ??? ??? ???? ?? ???? ?????? IP? ???
    ?? ???? ??
  • ??? ????? Passive ??? ???? ??
  • ??? ??

10
9.2 ?? ?? ???? -FTP
11
9.2 ?? ?? ????- FTP
  • ?? FTP (Anonymous FTP)
  • ??? ??? ?? ????? ???? ?? ?? ?? ???
  • ????? ?? ??? anonymous?, ??? ???? ???? ???
    guest? ???? ???? ??
  • ???? ?? ??? ?? ???

12
9.2 ?? ?? ???? -TFTP
  • TFTP (Trivial File Transfer Protocol)
  • ???? ??
  • ??? ?? ??? ?? ??? ???? ??? ?? ??? ???
  • FTP? ???? ??? ? ?? ?? ?? (binary transfer mode)?
    ???? UDP? ??
  • ??? ????? ??? ????, ?? ???? FTP?? ?? ??? ??
  • (?? ??, ??? ?????? ?? ???? ?? ??? ??? ???
    ???? TFTP ??/??? ??)

13
9.2 ?? ?? ???? -TFTP
  • ?? ???
  • ?? ??(RRQ Read ReQuest)
  • ?????? ????? ???? ?? ??? ??
  • ?? ??(WRQ Write ReQuest)
  • ?????? ????? ???? ?? ??? ??
  • ???(DATA)
  • ????? ?? ??? ??? ??? ??? ? ??
  • ?? ??(ACK)
  • ???? ?????? ??? ? ??
  • ??(ERROR)
  • ???? ????? ????? ????, ??? ??? ??? ??? ?? ??

14
9.2 ?? ?? ???? -TFTP
  • TFTP ??

15
9.2 ?? ?? ???? -NFS
  • NFS (Network File System)
  • ???? ??
  • ??????? ?? ???? ??? ? ??? ??? ????
  • ???? ??? ???? ??
  • ??? ???? ???? ??? ??? ???? ??? ?? ??? ?? ??? ??
    ??? ??
  • ??? ?? ??? ????? ?? ???
  • ??? ?? ??? ??? ??? ???? ???? ?? ???? ??? ??? ????
    ??

16
9.3 ?? ?? ?? ????
  • ??
  • SMTP(Simple Mail Transfer Protocol)
  • POP(Post Office Protocol)
  • IMAP(Internet Message Access Protocol)
  • ?? ?? ?? ????
  • First Scenario
  • ???? ???? ? ???? ??? ??? ??? agent (UA) ? ??

17
9.3 ?? ?? ?? ????
  • Second Scenario
  • ???? ?? ?? ???? ?? ?? ??? UA? MTA(Message
    Transfer Agent) pair? ????.
  • Third Scenario
  • ???? ????? LAN(?? WAN)? ???? ???, ??? UA? 2??
    MTA? ??

18
9.3 ?? ?? ?? ????
  • Fourth Scenario
  • ???? ??? ?? LAN?? WAN?? ????? ???? ?? ??, ??? UA,
    ??? MTA (????? ??), ??? ??? MAA (Message Access
    Agent) ? ????.
  • This is the most common situation today !!!

19
9.3 ?? ?? ?? ????
  • Push vs. Pull ??
  • ??? ??? ?? ??? ???? ??? ????, pull ??? ??
  • MTA ?????? MTA ???? ???? SMTP
  • MAA ?????? MAA ???? ???? POP, IAMP

20
9.3 ?? ?? ?? ????
  • User Agent
  • ?? ?? ???? ??, ????(mailbox) ?? ?? ???? ????
    Outlook, Eudora

21
9.3 ?? ?? ?? ????
  • SMTP (Simple Message Transfer Protocol) RFC 821
  • ?? ??? ???? ??? ?? ??? ????TCP ?? 25? ??
  • FTP ?? ??? ???? ???? ?? (?, ??? ?? ???? ????? ??
    ???)
  • SMTP ??
  • ?? ??? ????(MUA Mail User Agent)
  • ?? ???? ?? ??? ???? ????? ?? ??? ???? ??
  • ?? ?? ????(MTA Mail Transfer Agent)
  • ?? ???? ???? ??

22
9.3 ?? ?? ?? ????
  • SMTP? ?? ?? ???
  • ???? ??
  • ??()?? ???? ??? (command)? ???? (argument)? ??
  • ?? ?? ?? ??? ???? ????? ???? ?? MAIL ??? ?? ???
    ?? ???
  • ???? ??? ??
  • HELO ??(???? ???? ??)? ?? ??? ??? ???? ??
  • ????(from)? ???? MAIL ??? ???(To)? ???? RCPT
    ??? ??
  • DATA ??(??? ????) ?? ??? ??? ??
  • ???? ??? 5?? ??? ???? ?? ???? ?? ????, QUIT ???
    ?? ?? ??? ??

MAIL FROM sjyoo_at_inha.ac.kr
23
9.3 ?? ?? ?? ????
  • ?? Command ? Response

24
9.3 ?? ?? ?? ????
  • SMTP ?? ??? ??

25
9.3 ?? ?? ?? ????
  • ?? ?? ???

26
9.3 ?? ?? ?? ????
27
9.3 ?? ?? ?? ????
  • POP (Post Office Protocol)
  • ???? ??
  • ???? ??? ????? ??
  • ????? ??? ?? ?? ?????? ?? ??? ???? ??? ??
  • POP? ???? ???? ?? ??? POP ??? ???? ??? ?

28
9.3 ?? ?? ?? ????
  • ?? ?? ??
  • POP ??? ??(OK ????)
  • ?????? ??? ??? ??? ???? ?? ???? ??? ? ?? ??? ?? ?
  • STAT ??? ???? ????? ??? ??? ????? ????
  • LIST? ?? ??? ? ? ??
  • RETR 1 ??? ?? ??? ???? ??, ?? ?? ??? ??? ??? ???
    ??? ???? ???
  • ?????? DELE 1 ??? ?? ???? ??
  • QUIT ??? ???? ??? ??

29
9.3 ?? ?? ?? ????
  • MIME (Multipurpose Internet Mail Extension)
  • ???, ???, ???, ??? ?? ???? ??? ??? ???? ???? ?
    ??? ??? ????
  • ?? ??? ??? ??? ??? ??? ???? ?? ???? ?? ???? ??
    ????? ??? ??? ?? ????? ??????, ?? ?? ??? ?? ???
    ??? ??????? ???

30
9.3 ?? ?? ?? ????
  • MIME Header

??? ??
MIME ??(MIME version) ???? ???? ?? MIME? ??? ?? ?) MIME-Version 1.0
??? ??(Content-Type) ???? ???? ???? ??? ??? ???? ???? ??? ?? ?) Content-Type text/plain charsetus-ascii
??? ??/???(Content-Transfer-Encoding) ??? ??? ?? ?) Content-Transfer-Encoding Base64
??? ID (Content-ID) ??? ??? ?? ??
??? ??(Content-Description) ??? ???? ?? ??? ??? ???? ??, ??, ?? ?? ??? ??
31
9.3 ?? ?? ?? ????
  • MIME ??? ??

??? ?? ? ?? ??
??? plain, richtext, enriched 7 ??? ASCII ????? ??? ??
Multipart mixed, alternative, digest, parallel ?? ?? ??? ???? ?? ??? ??? ???? ???? ??
??? rfc822, partial, external-body ??? ???? ?? ???? ?????? ??
??? jpeg, gif ???? ???? ???
??? Basic ?? ? ?? ???
??? Mpeg ??? ?? ???
?? ???? postscript, octet-stream ?? ??? ? ???? ???? ??
32
9.3 ?? ?? ?? ????
  • MIME ??? ??/??? ?? Base 64
  • SMTP (RFC822)? ???? ???? ??? 7bit (?? 0? ?? 8??)
    ASCII ??? ????? ???? ??? ?? ???? ???? ???? ???
    ???. ??? binary ???? ASCII ??? ???? ?? ??
  • BASE64 ???
  • Base 64? ?? ??? 64??? ?? ???? 2664 ? 6bit
    2???
  • ???? ????? 8??(1byte)? 6bit? ?? ??? 24??
  • ?? 3??? ???? 6?? ?? ?? 4?? ??

33
9.3 ?? ?? ?? ????
  • IMAP (Internet Message Access Protocol)
  • POP? ??? ???? ????? ??? ?? ??, ? ??? ??? ??? ??,
    ?? ???? ?? ???? ??
  • IMAP? POP? ???? ???? ?? ??? ????
  • IMAP? ??? ??? ??? ?? ??, ???? ??? ?? ???? ????? ?
    ???, ?? ??? ??? ?? ??? ? ??
  • ??? ??? IMAP4? ??? POP? ?? ???? ????? ?? ???
    ????? ??? ????? ??? ??? ? ??? ??? ??
  • ??? ??? ?? ?? ?? ??
  • ? ??? ??????? ???? ??

34
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com