Presentation is loading. Please wait.

Presentation is loading. Please wait.

HANNAM UNIVERSITY 1 Chapter 4 IP Addresses: Classful Addressing.

Similar presentations


Presentation on theme: "HANNAM UNIVERSITY 1 Chapter 4 IP Addresses: Classful Addressing."— Presentation transcript:

1 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 1 Chapter 4 IP Addresses: Classful Addressing

2 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 2 CONTENTS INTRODUCTION CLASSFUL ADDRESSING OTHER ISSUES A SAMPLE INTERNET

3 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 3 INTRODUCTION 4.1

4 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 4 4.1 개요 An IP address is a 32-bit address.

5 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 5 4.1 개요 The IP addresses are unique.

6 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 6 4.1 개요 Address Space addr15 addr1 addr2 addr41 addr31 addr226 …………..

7 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 7 4.1 개요 RULE: addr31 ………….. If a protocol uses N bits to define an address, the address space is 2 N because each bit can have two different values (0 and 1) and N bits can have 2 N values. The address space of IPv4 is 2 32 or 4,294,967,296.

8 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 8 4.1 개요  표기법  2 진 표기법 (Binary Notation)  10 진 표기법 (Dotted-decimal notation) 01110101 10010101 00011101 11101010

9 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 9 4.1 개요 The binary, decimal, and hexadecimal number systems are reviewed in Appendix B.

10 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 10 4.1 개요 Example 1 Change the following IP address from binary notation to dotted-decimal notation. 10000001 00001011 00001011 11101111 Solution 129.11.11.239

11 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 11 4.1 개요 Example 2 Change the following IP address from dotted-decimal notation to binary notation. 111.56.45.78 Solution 01101111 00111000 00101101 01001110

12 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 12 4.1 개요 Example 3 Find the error, if any, in the following IP address: 111.56.045.78 Solution There are no leading zeroes in dotted-decimal notation (045).

13 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 13 4.1 개요 Example 3 (continued) Find the error, if any, in the following IP address: 75.45.301.14 Solution In dotted-decimal notation, each number is less than or equal to 255; 301 is outside this range.

14 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 14 4.1 개요 Example 4 Change the following IP addresses from binary notation to hexadecimal notation. 10000001 00001011 00001011 11101111 Solution 0X810B0BEF or 810B0BEF

15 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 15 CLASSFUL ADDRESSING 4.2

16 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 16 4.2 클래스  주소 공간 할당  클래스 주소 갯수 ClassNumber of AddressPercentage A231=2,147,483,64850% B230=1,073,741,82425% C229=536,870,91212.5% D228=268,435,4566.25% E228=268,435,4566.25%

17 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 17 4.2 클래스 In classful addressing, the address space is divided into five classes: A, B, C, D, and E.

18 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 18 4.2 클래스  이진 표기법으로 클래스 찾기

19 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 19 4.2 클래스  클래스 주소 찾기

20 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 20 4.2 클래스 Example 5 How can we prove that we have 2,147,483,648 addresses in class A? Solution In class A, only 1 bit defines the class. The remaining 31 bits are available for the address. With 31 bits, we can have 2 31 or 2,147,483,648 addresses.

21 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 21 4.2 클래스 Example 6 Find the class of the address: 00000001 00001011 00001011 11101111 Solution The first bit is 0. This is a class A address.

22 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 22 4.2 클래스 Example 6 (Continued) Find the class of the address: 11000001 10000011 00011011 11111111 Solution The first 2 bits are 1; the third bit is 0. This is a class C address.

23 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 23 4.2 클래스  10 진 표기법으로 클래스 찾기

24 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 24 4.2 클래스 Example 7 Find the class of the address: 227.12.14.87 Solution The first byte is 227 (between 224 and 239); the class is D.

25 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 25 4.2 클래스 Example 7 (Continued) Find the class of the address: 193.14.56.22 Solution The first byte is 193 (between 192 and 223); the class is C.

26 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 26 4.2 클래스 Example 8 In Example 4 we showed that class A has 2 31 (2,147,483,648) addresses. How can we prove this same fact using dotted-decimal notation? Solution The addresses in class A range from 0.0.0.0 to 127.255.255.255. We notice that we are dealing with base 256 numbers here.

27 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 27 4.2 클래스 Solution (Continued) Each byte in the notation has a weight. The weights are as follows: 256 3, 256 2, 256 1, 256 0 Last address: 127  256 3 + 255  256 2 + 255  256 1 + 255  256 0 = 2,147,483,647 First address: = 0 If we subtract the first from the last and add 1, we get 2,147,483,648.

28 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 28 4.2 클래스  Netid 와 Hostid 주소

29 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 29 4.2 클래스  클래스 A 의 블록

30 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 30 4.2 클래스 Millions of class A addresses are wasted.

31 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 31 4.2 클래스  클래스 B 의 블록

32 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 32 4.2 클래스 Many class B addresses are wasted.

33 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 33 4.2 클래스  클래스 C 의 블록

34 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 34 4.2 클래스 The number of addresses in a class C block is smaller than the needs of most organizations.

35 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 35 4.2 클래스 Class D addresses are used for multicasting; there is only one block in this class.

36 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 36 4.2 클래스 Class E addresses are reserved for special purposes; most of the block is wasted.

37 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 37 4.2 클래스 The network address is the first address. The network address defines the network to the rest of the Internet. Given the network address, we can find the class of the address, the block, and the range of the addresses in the block  네트워크 주소

38 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 38 4.2 클래스 In classful addressing, the network address (the first address in the block) is the one that is assigned to the organization.

39 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 39 4.2 클래스 Example 9 Given the network address 17.0.0.0, find the class, the block, and the range of the addresses. Solution The class is A because the first byte is between 0 and 127. The block has a netid of 17. The addresses range from 17.0.0.0 to 17.255.255.255.

40 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 40 4.2 클래스 Example 10 Given the network address 132.21.0.0, find the class, the block, and the range of the addresses. Solution The class is B because the first byte is between 128 and 191. The block has a netid of 132.21. The addresses range from 132.21.0.0 to 132.21.255.255.

41 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 41 4.2 클래스 Example 11 Given the network address 220.34.76.0, find the class, the block, and the range of the addresses. Solution The class is C because the first byte is between 192 and 223. The block has a netid of 220.34.76. The addresses range from 220.34.76.0 to 220.34.76.255.

42 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 42 4.2 클래스  마스크 A mask is a 32-bit binary number that gives the first address in the block (the network address) when bitwise ANDed with an address in the block.

43 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 43 4.2 클래스  마스킹 개념

44 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 44 4.2 클래스  AND 연산

45 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 45 4.2 클래스 The network address is the beginning address of each block. It can be found by applying the default mask to any of the addresses in the block (including itself). It retains the netid of the block and sets the hostid to zero.

46 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 46 4.2 클래스  디폴트 마스크 ClassMask in binaryMask in dotted-decimal A11111111 00000000 00000000 0000000255.0.0.0 B11111111 11111111 00000000 0000000255.255.0.0 C11111111 11111111 11111111 00000000255.255.255.0

47 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 47 4.2 클래스 Example 12 Given the address 23.56.7.91 and the default class A mask, find the beginning address (network address). Solution The default mask is 255.0.0.0, which means that only the first byte is preserved and the other 3 bytes are set to 0s. The network address is 23.0.0.0.

48 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 48 4.2 클래스 Example 13 Given the address 132.6.17.85 and the default class B mask, find the beginning address (network address). Solution The default mask is 255.255.0.0, which means that the first 2 bytes are preserved and the other 2 bytes are set to 0s. The network address is 132.6.0.0.

49 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 49 4.2 클래스 Example 14 Given the address 201.180.56.5 and the class C default mask, find the beginning address (network address). Solution The default mask is 255.255.255.0, which means that the first 3 bytes are preserved and the last byte is set to 0. The network address is 201.180.56.0.

50 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 50 4.2 클래스 We must not apply the default mask of one class to an address belonging to another class.

51 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 51 OTHER ISSUES 4.3

52 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 52 4.3 다른 이슈들  멀티홈드 장치  서로 다른 네트워크에 연결된 하나의 컴퓨터

53 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 53 4.3 다른 이슈들  특수주소 Special AddressNetidHostidSource or Destination Network addressSpecificAll 0sNone Direct broadcast addressSpecificAll 1sDestination Limited broadcast addressAll 1s Destination This host on this networkAll 0s Source Specific host on this networkAll 0sSpecificDestination Loopback address127AnyDestination

54 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 54 4.3 다른 이슈들  네트워크 주소

55 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 55 4.3 다른 이슈들  직접 브로드캐스트 주소  direct broadcast address  hostid 가 모두 “1” 인 주소  라우터가 특정 네트워크에 있는 모든 호스트에 패 킷을 보낼 때 사용  IP 패킷에서 목적지 주소로만 사용

56 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 56 4.3 다른 이슈들  직접 브로드 캐스트 주소 예

57 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 57 4.3 다른 이슈들  제한된 브로드캐스트 주소  limited broadcast address  현재 네트워크내에서 브로드캐스트 주소  로컬 네트워크내의 모든 호스트에게 메시지 전달 때 사용  다른 네트워크로 가는 것을 라우터가 제한함  클래스 E 주소

58 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 58 4.5 다른 이슈들  제한된 브로드 캐스트 주소 예

59 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 59 4.3 다른 이슈들  현재 네트워크에 있는 호스트  IP 주소가 모두 “0” 인 주소  this host on this network  IP 주소를 모르는 호스트가 bootstrap 시 사용  발신지 주소로만 이용  목적지 주소는 제한된 브로드캐스트 주소 이용  항상 클래스 A 주소

60 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 60 4.3 다른 이슈들  현재 네트워크에 있는 호스트 예

61 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 61 4.3 다른 이슈들  현재 네트워크에 있는 특정 호스트  netid 가 모두 “0” 인 주소  같은 네트워크에 있는 다른 호스트에게 메시지 보 낼 때 사용

62 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 62 4.3 다른 이슈들  루프백 주소  loopback address  첫 번째 바이트가 “127” 인 IP 주소  컴퓨터에 설치된 소프트웨어를 시험하기 위해 사용  클라이언트 프로세스가 동일한 시스템상에 있는 서 버 프로세스에게 메시지 전송시 사용  IP 패킷의 목적지 주소로만 사용

63 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 63 4.3 다른 이슈들  루프백 주소의 예

64 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 64 4.3 다른 이슈들  사설 주소  사설 네트워크 주소 A number of blocks in each class are assigned for private use. They are not recognized globally. These blocks are depicted in Table 4.4 ClassNetidsBlocks A10.0.01 B172.16 to 172.3116 C192.168.0 to 192.168.255256

65 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 65 4.3 다른 이슈들  유니캐스트, 멀티캐스트, 브로드 캐스트 주소 Unicast communication is one-to-one. Multicast communication is one-to-many. Broadcast communication is one-to-all.

66 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 66 4.3 다른 이슈들  협회 IP 주소 AddressGroup 224.0.1.7AUDIONEWS 224.0.1.10IETF-1-LOW-AUDIO 224.0.1.11IETF-1-AUDIO 224.0.1.12IETF-1-VIDEO 224.0.1.13IETF-2-LOW-AUDIO 224.0.1.14IETF-2-AUDIO 224.0.1.15IETF-2-VIDEO 224.0.1.6MUSIC-SERVICE 224.0.1.7SEANET-TELEMETRY 224.0.1.8SEANET-IMAGE

67 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 67 4.3 다른 이슈들  할당된 멀티캐스트 주소 (Assigned Multicast Address) AddressGroup 224.0.0.0Reserved 224.0.0.1All SYSTEMS on this SUBNET 224.0.0.2All ROUTERS on this SUBNET 224.0.0.4DVMRP ROUTERS 224.0.0.5OSPFIGP All ROUTERS 224.0.0.6OSPFIGP Designated ROUTERS 224.0.0.7ST Routers 224.0.0.8ST Hosts 224.0.0.9RIP2 Routers 224.0.0.10IGRP Routers 224.0.0.11Mobile-Agents

68 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 68 4.3 다른 이슈들 Multicast delivery will be discussed in depth in Chapter 14.

69 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 69 A SAMPLE INTERNET WITH CLASSFUL ADDRESSES 4.4

70 HANNAM UNIVERSITY Http://netwk.hannam.ac.kr 70 4.5 클래스 주소를 가진 인터넷 예


Download ppt "HANNAM UNIVERSITY 1 Chapter 4 IP Addresses: Classful Addressing."

Similar presentations


Ads by Google