3? ???????( IP ) - PowerPoint PPT Presentation

Loading...

PPT – 3? ???????( IP ) PowerPoint presentation | free to download - id: 64a5db-MWVlN



Loading


The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
About This Presentation
Title:

3? ???????( IP )

Description:

Title: 3 ( IP ) Author: Last modified by: Created Date: 9/17/1998 4:44:28 PM Document presentation format – PowerPoint PPT presentation

Number of Views:1
Avg rating:3.0/5.0
Slides: 39
Provided by: 6649732
Learn more at: http://netwk.hannam.ac.kr
Category:
Tags: igmp

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: 3? ???????( IP )


1
3? ???????( IP )
TCP/IP ??? ??
  • ??????? ???
  • ???

2
? ? (1/2)
  • 1. ? ?
  • 2. IP ??
  • 3. IP ???
  • 4. ??? ????
  • 5. ??? ???
  • 6. ??? ??? IP ??
  • 7. ??? ??

3
? ? (2/2)
  • 8. ifconfig ???
  • 9. netstat ???
  • 10. IP? ??
  • 11. ??

4
1. ? ?
  • IP ??
  • RFC791
  • ?? TCP,UDP,ICMP,IGMP?? ??
  • unreliable (????? ??? ??)
  • connectionless
    (?????A,B????? B,A)

5
2. IP ??(1/9)
  • Size
  • 20byte (Option ??)
  • ????
  • 0-7, 8-15, 16-23, 24-31 ?? ??
  • big endian network byte order
  • little endian

6
2. IP ??(2/9)
7
2. IP ??(3/9)
  • IP ?? ??
  • ???? ??(4bit) - IPv4
  • ?? ?? (4bit)
  • Option Header length
  • 60????? ??
  • ??? ?? ??(TOS Type-of service-8bit)
  • ????(3bit) - ?? ??
  • TOS(4bit)
  • ????, ?? ???, ?? ???, ?? ??
  • ??? ????
  • 4bit ?? 0? ? ????? ??
  • ??? ??(1bit0)

8
2. IP ??(4/9)
  • TOS ?? ?? ?

9
2. IP ??(5/9)
  • TOS Example
  • minimum delay (???? ??)
  • Telnet, rlogin
  • maximum throughput (?? ??? ??)
  • FTP
  • maximum reliability (?? ??? ??)
  • SNMP, routing protocol
  • minimize monetary cost (?? ?? ??)
  • NNTP

10
2. IP ??(6/9)
  • 16 ?? ?? ??
  • IP ?????? ? ??? ??(??65535byte)
  • ????-?? ?? ??? ??? ??
  • 16 ?? ???
  • ? ???? ?? ???? ? ?????? ???? ?? ??
  • ?????? ??? ??? ?? 1? ??
  • 3 ?? ???
  • D Dont fragment, MMore fragment, unused

11
2. IP ??(7/9)
  • 13 ?? ?? ??
  • fragment? ?? ??? ??(11??? ??)
  • TTL(Time-to live8bit)
  • ?????? ??? ??(??? ??? 1? ??)
  • Why ? ??? ??? ???? ??? ??? ??
  • ???? ???
  • ????(8bit)
  • ?? ????? IP? ???? ??? ?? ??
  • ?? ???
  • Why ? Demultiplexing? ?? ???

12
2. IP ??(8/9)
  • header checksum(16bit)
  • IP ??? checksum
  • Source IP address and destination IP address
    (?? 32bit)
  • PAD (Option ??)
  • IP ??? 32 ??? ??? ??? ?? ??? ??

13
2. IP ??(9/9)
  • option
  • ?????? ?? ???? ??
  • ??? ?? ?? (?? ??? ???? RFC 1108? ??)
  • ??? route (? router? ??? IP address ??)
  • time stamp (? router? ??? IP address? time ??)
  • loose source routing
  • (?????? ??? ?? IP address ??)
  • strict source routing
  • (?????? ??? IP address? ?? ????? ???)

14
3. IP Routing(1/9)
  • Routing ??
  • If
  • ???? ???? ?????? ??? ??? ????(?Ethernet, token
    ring)? ??
  • then
  • ???? ?? ??
  • else
  • ?????? ??? ???? ?? ?,
  • ???? ???? ????

15
3. IP Routing(2/9)
  • IP layer? ?? ??(TCP, UDP, ICMP, IGMP) ?? Network
    Interface??? datagram? ??? ?
  • memory ?? routing table ?? ? ??
  • If ?? datagram? IP address ??? IP address
    ??
    broadcast address
  • then protocol ???? ??
  • else
  • 1) IP layer? router? ??? ? ??? ??????
  • ????? ??
  • 2) ??? ??? discard

16
3. IP Routing(3/9)
  • Routing table? ?? ?? ??
  • Destination IP address host or network address
  • next-hop router ?? ?? ??? ????? IP address
  • flags
  • destination IP address? network?? host??? ??
  • next-hop router address? ?? router?? ?? ???
    interface??? ??(9??? ??)
  • ??? ?? datagram? ?? ? network interface
    specification

17
3. IP Routing(4/9)
  • routing table? ?
  • svr4 netstat -rn
  • Routing tables
  • Destination Gateway Flags
    Refcnt Use Interface
  • 140.252.13.65 140.252.13.35 UGH 0 0
    emd0
  • 127.0.0.1 127.0.0.1 UH 1
    0 lo0
  • default 140.252.13.33 UG 0
    0 emd0
  • 140.252.53.32 140.252.13.34 U 4
    25043 emd0

18
3. IP Routing(5/9)
  • IP routing
  • routing table search
  • If destination IP address IP address
  • then next-hop router? ?? ??? interface?
    packet? send
  • routing table search
  • If destination network IDnetwork ID
  • then next-hop router? ?? ??? interface?
    packet? send
  • Routing table?? default? ???. ?? ???? ???
    next-hop router? packet? send
  • ?? ???? ???? ?? ??? datagram? ???? host
    unreachable or network unreachable message? ??
    application?? return

19
3. IP Routing (6/9)
  • Examples
  • bsdi(140.252.13.35)?? sun(140.252.13.33)?? IP
    datagram? ??? ??
  • routing table search ? ?? subnet?? ??
  • ARP ?? ? ??

20
3. IP Routing(7/9)
  • bsdi(140.252.13.35)? ftp.uu.net(192.48.96.9)? IP
    datagram? ??? ??

21
3. IP Routing(8/9)
  • bsdi
  • routing table search. Host or network entry?
    match?? ??. ??? default? ??.
  • ARP? sun?? ??.
  • sun
  • destination address? ??? ??? router? ??? ?? ????
    datagram? forward.
  • routing table search. Host or network entry?
    match?? ??. ??? default? ???? netb?? ??.
  • netb
  • sun? ??? ??? ??. ? default? ???? gateway?? ?????
    ? ? ARP? ???? Enet. Address? ??.

22
3. IP Routing(9/9)
  • gateway
  • ??? ? router? ??? ??? ??. Default? ???? next-hop
    router? 140.252.104.2?? datagram? forward.
  • Key points
  • ?? host? router? default? ??
  • destination IP address? ???? ???, ?? routing? ???
    ?.
  • ? link?? ?? link header? link address? ???.

23
4. Subnet Addressing(1/2)
  • RFC 950
  • host ID??? subnet ID? host ID? ??? ??.
  • ?) Class B 16bits 8bits
    8bits
  • - 254?? subnet? subnet? 254?? host? ??
    ? ??
  • Subnet ??- routing table? ??? ?? ? ??.
  • Example
    140.252 network? ?? Internet
    router??? subnet? transparent?? ???. ?? 140.252?
    ???? ?? ???? ???? ???? ??? 140.252.104.1?
    routing? ?? ????.

24
4. Subnet Addressing(2/2)
25
5. Subnet Mask(1/3)
  • subnet mask? subnetID? hostID? ? bit? ???? ??
    ???? ?? ??( 32-bit)
  • ????? IP address? dotted-decimal notation?? ????
    subnet mask? hexadecimal? ??.

26
5. Subnet Mask(2/3)
  • IP address? subnet mask? ????
  • (1) ?? subnet??,
  • (2) ?? network? ?? subnet??,
  • (3) ?? network???
  • ? ? ??.
  • Example
  • host address140.252.1.1, subnet mask?
    255.255.255.0? ?
  • destination IP address? 140.252.4.5?
  • ?? network?
    ?? subnet??.
  • destination IP address? 140.252.1.22? ??
    subnet??.
  • destination IP address? 192.43.235.6?? ??
    network??.

27
5. Subnet Mask(3/3)
28
6. ??? ??? IP ??
  • 0?all 0, -1 ?all 1, ?? ? not ????

29
7. ??? ??(1/3)
30
7. ??? ??(2/3)
  • Variable-length subnet

31
7. ??? ??(3/3)
  • Authors subnet? IP Address

32
8. ifconfig ???(1/2)
  • ??? ???? ????? ? ??? ????? ??? ?? ?? ??
  • ????? ??? ???
  • ?? ?? ?? ?
  • ???? ????? ?????? ????? ???
  • Option
  • -a ?? ?????? ???(Only SunOS ??)

33
8. ifconfig ???(2/2)
  • Sun /usr/etc/ifconfig -a
  • le0 flags63ltUP,BROADCAST,NOTRAILERS,RUNNINGgt
  • inet 140.252.13.33 netmask ffffffe0 broadcast
    140.252.13.63
  • sl0 flags1501ltUP,POINTTOPOINT,RUNNING,LINK0gt
  • inet 140.252.1.29 netmask ffffff00
  • lo0 flags49ltUP,LOOPBACK,RUNNINGgt
  • inet 127.0.0.1 netmask ff000000
  • bsdi /sbin/ifconfig we0
  • we0 flags863ltUP,BROADCAST,NOTRAILERS,RUNNING,SIM
    PLEXgt
  • inet 140.252.13.35 netmask ffffffe0 broadcast
    140.252.13.63
  • bsdi /sbin/ifconfig sl0
  • sl0 flags1011ltUP,POINTTOPOINT,LINK0gt
  • inet 140.252.13.66 --gt 140.252.13.65 netmask
    ffffffe0

34
9. netstat ??(1/2)
  • ??? ?????? ?? ??? ??
  • MTU, ?? ?? ??, ?? ?? ??, ?? ?? ??, ?? ?? ??, ??
    ??, ?? ?? ?? ??
  • Option
  • -i ????? ??? ??
  • -n ??? ?? ?? IP ?? ??

35
9. netstat ??(2/2)
  • Sun netstat -in
  • Name Mtu Net/Dest Address
    Ipkts Ierrs Opkts Oerrs Collis Queue
  • le0 1500 140.252.13.32 140.252.13.33 67719
    0 92133 0 1 0
  • sl0 552 140.252.1.183 140.252.13.33
    48035 0 54963 0 0 0
  • lo0 1500 127.0.0.0 127.0.0.1
    15548 0 15548 0 0 0

36
10. IP? ??(1/2)
  • IP? ? ?? ???
  • ??? IP?? ??? ?? ??
  • 32?? ????? ????? ???
  • ??? ??? ???? ??? ???? ?? ?? ?? - CIDR?? ??
    ??(10.8)
  • IPng SIP, PIP, TUBA , TP/IX

37
10. IP? ??(2/2)
  • IPv4
  • 32bit address ??
  • TCP, UDP, ICMP, IGMP? ?? ???? ?????
  • ????? ???? ??
  • IPv6
  • IPv4? ???? ??? 1990?? ??? ??
  • 128bit address
  • TCP, UDP, ICMPv6? ?? ?? ?? ?????
  • ????? ?? (No ??? ??? ??)
  • ICMPv6ICMPIGMPARP

38
11. ??
  • ??
  • ???
  • ???
  • ??? ???
  • ifconfig ? netstat
  • ??? IP
About PowerShow.com