TCP/IP ???? - PowerPoint PPT Presentation

About This Presentation
Title:

TCP/IP ????

Description:

tcp/ip 6 6.1 icmp 6.2 icmp 6.3 icmp ... – PowerPoint PPT presentation

Number of Views:28
Avg rating:3.0/5.0
Slides: 26
Provided by: 6649215
Category:
Tags: tcp | icmp

less

Transcript and Presenter's Notes

Title: TCP/IP ????


1
TCP/IP ????
  • ? 6?
  • ??? ?? ??? ????

2
??
  • 6.1 ICMP ??
  • 6.2 ICMP ??? ??
  • 6.3 ICMP ?? ??? ??? ??
  • 6.4 ICMP ????? ??? ??
  • 6.5 ICMP ?? ???? ??
  • 6.6 4.4BSD?? ICMP ??? ??
  • 6.7 ??

3
6.1 ICMP ??
  • ICMP?? ??? ?? ??? IP? ?? ?? ???? ??
  • gateway? host??
    ?? ???? ??? ??? ??
  • ??? ???? ?? ????
  • - IP?? ?? ?? ?? ??
    ????(TCP,UDP)? ?? ???
  • - ?? ICMP ???? ???
    ?????? ??? ??
  • ?? ??? ??
  • - ICMP ???? IP ???????
    ??
  • - ICMP ?? ??RFC
    792(Postel 1981b)
  • lt IP ?????? ???? ICMP ???gt



ICMP ???
IP ??
IP ??? ??
4
6.1 ICMP ??(ICMP ??? ??)
  • ?? 4 ???? ?? ???? ?? ?? ??. ??? ??? ???? ??
    ??
  • - ??(type) ?? 15?? ?? ?? ?
  • - ??(code)?? ?? ??? ???? ???? ?? ?
  • - ???(checksum)?? ICMP ?? ???? ????

  • IP ?? ?? ??? ?? ????
  • ltICMP
    ???gt
  • 0 7 8
    15 16
    31



8?? ??
8?? ??
16?? ???

??? ??? ?? ??
5
6.2 ICMP ??? ??
  • ltICMP ??? ??gt
  • ??(query),??(error) ???? ???? ??
  • ICMP ?? ???? ???? ???? ??
  • ICMP ?? ???? ??? ICMP ?? ???? ? ? ???? ???? ??
  • ICMP ????? ???IP ??? ICMP ?? ??? ??? ? IP
    ?????? ?? 8 ???? ??
  • ICMP ?? ??? ????? ???? ?? ?? ??? ?????
    ???? ??



6
6.2 ICMP ??? ??
  • ICMP ???? ???? ?? ?? (broadcast storms? ??)
  • 1. ICMP ?? ???
  • 2. IP ?????? ??? IP ????? ??? ?? ?????
  • 3. ????? ???????? ???? ?????
  • 4. ??? ? ? ? ?? ??? ?? ?????
  • 5. ??? ??? ?? ???? ???? ?? ?? ?????
  • (zero ??,?? ? ??,??? ??? ??,?? ??? ??)



7
6.3 ICMP ?? ??? ??? ??
  • ICMP ?? ??? ?? ??? ?? ???? ???
  • ??? ??? ???? ?? ??? ??
  • ICMP ?? ???? ??????(RARP? ????
  • ??? IP??? ?? ??? ??)
  • BOOTP ????
  • ???? ???(identifier)? ????(sequence number)? ??
  • -gt?? ???? ?? ???,???? ??? ?? ???? ??
  • ltICMP ?? ??? ??? ?? ???gt

0
7 8

15 16
31
??(17??18)
??(0)
???


???
????
12???
32 ?? ??? ???
8
6.3 ICMP ?? ??? ??? ??
  • ICMP ?? ??? ??? ???? ?? ??? ? ??? ???? sun
    icmpaddrmask 140.252.13.63 Received
    maskffffffe0, from 140.252.13.33 ?? ?? ????
    Received maskffffffe0, from 140.252.13.35
    bsdi??? Received maskffff0000, from
    140.252.13.34 svr4??? svr4??? ??? ?? ??
    ?? svr4? B??? ?? ???? ??? ??? ???
    ???? ??? ??

9
lt?????? ??? ??? ICMP ?? ??? ??gt 1 0.0
80203f642 ffffffffffff ip
60 2 0.00(0.00) 00c06f2d40
ffffffffffff ip 46
bsdigtsunicmpaddress mask is 0xffffffe0
3 0.01(0.01) 00c0c29b26 80203f642
ip 60 svr4gt sun
icmpaddress mask is 0xffff0000 ?? ???(???
sun)? ??? ???? ???? ICMP ?? ???? ?? ??
???? ?? ??? ????? ??? ?????? ?? ???? ????
??????? ?? ?? svr4 ??? ?????? ??? ?? bsdi
??? ?????? RFC???? ???? ?? ???? ?? ????
??? ?? ??? ??? ??? ??? ?
6.3 ICMP ?? ??? ??? ??

10
6.3 ICMP ?? ??? ??? ??
  • lt?gt sun icmpaddrmask sun
  • received maskff000000, from
    140.252.13.33
  • sun icmpaddrmask localhost
  • received maskff000000,from 127.0.0.1
  • lt??gt
  • ??? IP??(140.252.13.33)? ??? IP ?????
  • -gt ?? ? ?????? ??
  • ???? ?? ??? -gt ?? ? ??? ??? A ?? (127.0.0.1)?
    ??
  • lt??gt
  • ICMP ?? ??? ?? -gtIP ??? ?? ? ??(??? ??? ?????
    ??)

11
6.4 ICMP ????? ??? ??
  • ICMP ????? ?? ???? ?? ????? ? ? ??? ??? ?? ?
  • UTC(Coordinated Universal Time) ?? 0??? ???
    ??(ms)
  • ltICMP ????? ??? ??gt

0
7 8
15 16
31
??(17?? 18)
??(0)
???
???
?? ??
12 ???
32-?? originate ?????
32-?? receive ?????
32-?? transmit ?????
12
6.4 ICMP ????? ??? ??
  • Originate timestamp ???? ???? ??? ??
  • Receive timestamp ??? ???? ??? ??? ??
  • Transmit timestamp ??? ???? ?? ??
  • Receive(recv)? Transmit(xmit)?
  • ?? ??(rtt) ?? ?? ?? - ?? ?? ??
  • ???(difference)Received timestamp ? - Originated
    timestam?
  • ltICMPtime ????? ?? ??? ??? ??gt


originate
??
received
transmit
??
RTT
13
6.4 ICMP ????? ??? ??
  • lt?gt
  • sun icmptime bsdi
  • orig83573336, recv83573330, xmit83573330,
    rtt2ms
  • difference -6ms
  • sun icmptime bsdi
  • orig83577987, recv83577980, xmit83577980,
    rtt2ms
  • difference -7ms
  • lt??gt
  • RTT? ???? RTT? ? ? ?? , ??? ?? ??? ?? ?????
  • ???? ??? ??? ???? ?? ??? ?? ?? ??

  • ???(difference) - RTT? ??
  • -gt bsdi? ??? sun? ???? 7?? 8ms ?? ??

14
6.4 ICMP ????? ??? ??(1)
  • ??? ??? ?? ?? ??
  • 1. Daytime ??? ??? ??? ??? ??? ?? ? ?? ASCII
    ??
  • ??(telnet
    ??)
  • time ??? 1900?? 1? 1? ?? 0??? ??? ???
    32??
  • 2???? ??? ??? ???
  • sun telnet bsdi daytime
  • Trying 140. 252.13. 35
  • Connected to bsdi.
  • Escape character is
    ?? ??? telnet client? ????
  • Web Feb 3 1638 33 1993 ???
    daytime ??? ????
  • Connection closed by foreign host. ???
    telnet ????? ????

15
6.4 ICMP ????? ??? ??(2)
  • 2. NTP(Network Time Protocol) ??(RFC
    1305Mills 1992)
  • ms ??? ???? ?? WAN, LAN?? ?? ???
    ??
  • ??
  • 3. OSF(Open Software Foundation)? ?? ???
    ??
  • (DCEDistributed Computing
    Environment) ????? ???
  • ?? ??? ??? ??? ?? ?? ???
    (DTSDistributed
  • Time Service)
  • 4. ??? Unix ??? LAN ? ???? ??? ?? ???
  • ??? ?? timed(8) ?? ??

16
6.5 ICMP ?? ???? ??
  • ICMP ?? ???? ??
  • - ??? UDP datagram? ??? ??? ?? ????? ??
  • ?? ??? ?? ? ? ?? ??
  • - TFTP(Trivial File Transfer
    Protocol)????? ??
  • ltTFTP ????? ????gt
  • bsdi tftp
  • tftpgt connect svr4 8888 ???
    ??? ?? ??? ??
  • tftpgt get temp.foo
    ??? ????
  • Transfer timed out
    ? 25? ?
  • tftp gt quit

17
6.5 ICMP ?? ?? ?? ??
  • ltTFTP ??? ?? ??? ICMP ?? ?? ??gt
  • 1. 0.0 arp who-has
    svr4 tell bsdi
  • 2 0.002050 (0.0020) arp reply svr4 is-at
    00c0c29b26
  • 3 0.002723 (0.0007) bsdi.2924gtsvr4.8888udp
    20
  • 4 0.006399 (0.0037) svr4gtbsdi icmpsvr4 udp
    port 8888 unreachable
  • 5 5.000776 (4.9944) bsdi.2924gtsvr4.8888udp
    20
  • 6 0.006399 (0.0037) svr4gtbsdiicmpsvr4 udp
    port 8888 unreachable
  • 7 10.000887 (4.9966) bsdi.2924gtsvr4.8888udp
    20
  • 8 10.004416 (0.0035) svr4gtbsdiicmpsvr4 udp
    port 8888 unreachable
  • 9 15.001014 (4.9966) bsdi.2924gtsvr4.8888udp
    20
  • 10 15.004574 (0.0036) svr4gtbsdiicmpsvr4 udp
    port 8888 unreachable
  • 11 20.001177 (4.9966) bsdi.2924gtsvr4.8888udp 20
  • 12 20.004759 (0.0036) svr4gtbsdiicmpsvr4 udp
    port 8888 unreachable

18
6.5 ICMP ?? ???? ??
  • lt??gt
  • 1? ? UDP ?????? svr4? ??? ? ???? ???
  • ??? ? ?? ARP ??? ??
  • 2? ? ARP ??? ???
  • 3? ? UDP ?????? ??
  • 4? ? ICMP ?? ???? ?? ????
  • 5? ? TFTP ?????? ICMP ???? ???? ? 5? ??
  • ?? UDP ?????? ??
  • ??? ? UDP 20(??? ??) 2???(TFTP? opcode)
  • 9 ???(null? ???
    temp.foo) 9???(null?
  • ??? ??? netascii)
  • tcpdump? e???? ??? ICMP ?? ???? ??? ??

  • 70???


19
6.5 ICMP ?? ???? ??
  • UDP ?????? ?? ??? ??? ?? ????? ????, ? 20???? UDP
    ?????? ?? ??(2924)??? ?? ??(8888)? ??
  • ICMP ?? ???? ??? ???? ?????? IP ?? ??? ??? ??
    8???? ????? ?
  • ltUDP port unreachable ??? ???? ICMP ???gt

IP
?????
ICMP ???
ICMP? ??? ??
?? ??? ??? ?????? IP ??
??? ??
ICMP ??
IP ??
UDP ??
14 ???
20 ???
8???
20 ???
8 ???
20
6.5 ICMP ?? ???? ??
  • UDP ?? ???? ??? ?? ??
  • - ??? ?? ??(8888) ICMP ?? ???? ??
  • - ??? ?? ??(2924)ICMP ??? ??? ?? ?? ??
  • ??? ????? ????? ?? ??
  • ??? ???? ?????? IP ?? ?? ??
  • ICMP? ???? 8??? ??(UDP ??)? ???? ???
  • ?? ?? ???? ??? IP??? ???? ??
  • ICMP ???? ???
  • - ?? 3
  • - ??? 32?? ?? 0

21
6.5 ICMP ?? ???? ??
  • ltICMP ????
    ???gt

??(0-15)
??(3)
???
8???
???? ??(0 ??? ?)
IP ??(?? ??) ??? IP ????? ???? ?? 8???
22
6.5 ICMP ?? ???? ?? (Tcpdump ?? ??)
  • lt???? ?? ??? ?? TFTP ??? ?? ??gt


Svr4?? Bsdi? ?? ??? ??? ?? arp
S
Svr4rk 00c0c29b26 ? ??? ?? ???? arp ??
Udp 20bytes
ICMPSvr4 udp port 8888 unreachable
Udp 20bytes
ICMPSvr4 udp port 8888 unreachable
Svr4.8888
Bsdi.2924
23
6.5 ICMP ?? ???? ??
  • TFTP ?????? ???? ?? ???? ???
  • ?? ??
  • BSD ???? ???? ?????? ??? ????? connect?
    ?? ???? ???? ???
  • ? ?? ??? ICMP ???? UDP? ???? ??? ????? ??
    ? ?? ??? ??
  • ?? BSD? TFTP ?????? connect? ???? ????
    ICMP ??? ?????? ???? ?? ??

24
6.6 4.4BSD?? ICMP ??? ??
  • ? ICMP ???? ?? ??? ?? ??? ??
  • ??
  • ???? ???? ?? ????? ????
  • ??? ???? ?? ??
  • lt4.4BSD? ?? ICMP ??? ?? ?? ??gt
  • ICMP ??? ?? ??
  • ?? -gt??
  • ??? ???? -gt ??? ??? ?? ??? ????? ??
  • ??? ????? ?? ?? -gt ????? ??
  • ????? ? ??? UNIX ?? ???

25
6.7 ??
  • ICMP ??? ??
  • ICMP ?? ??? ??? ??
  • ICMP ????? ??? ??
  • ICMP ?? ???? ??
Write a Comment
User Comments (0)
About PowerShow.com