Presentation is loading. Please wait.

Presentation is loading. Please wait.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 IP Addressing.

Similar presentations


Presentation on theme: "McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 IP Addressing."— Presentation transcript:

1 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 IP Addressing

2 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addressing About IP Address The identifier that is used in the IP layer of the TCP/IP protocol is called the Internet address or IP address. An IP address is a 32-bit address that uniquely defines a host or a router on the Internet. The IP address are unique in the sense that two devices can never have the same address. However, a device can have more than one address. Each IP address is made of two parts: –Net id : The net id defines a network –Host id : The host id identifies a host on that network.

3 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 4-1 Internet address

4 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addressing 4.1 DECIMAL NOTATION Internet address are usually written in decimal form with decimal points separating the bytes. Figure 4-2 Decimal point notation

5 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addressing 4.2 CLASSES IP address are divided into five different classes: A, B, C, D, and E. Figure 4-3 Internet address classes

6 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addressing CLASS A The first octet(8 bits) defines the net id, the leftmost bit must be zero to define the class as A. The remaining 7 bits define different network.(2 7 =128 networks), There are actually 126 networks in class A because two of the addresses are reserved for special purposes. In a class A network, 24 bits are used to define the host id. –(2 24 = 16,777,216 hosts) - (hostid all 0s and hostid all 1s) = 16,777,214 hosts CLASS B Two octets define the net id and two octets define the hostid. The two leftmost bit are 10 to define the class as B. The next 14 bits define different network.(2 14 =16,384 networks), In a class B network, 16 bits are used to define the host id. –(2 16 = 65,536 hosts) - (hostid all 0s and hostid all 1s) = 65,534 hosts

7 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addressing CLASS C Three octets define the net id and one octets define the hostid. The three leftmost bit are 110 to define the class as C. The next 21 bits define different network.(2 21 = 2,097,152 networks), In a class C network, 8 bits are used to define the host id. –(2 8 = 256 hosts) - (hostid all 0s and hostid all 1s) = 254 hosts. CLASS D The class D address is defined for multicasting. There is no netid or hostid./ The whole address is used for multicasting. The first 4 bits define the class(1110). The remaining 28 bits define different multicast addresses. CLASS E Class E is rederved by the Internet for special use. There is no netid or hostid. The first 4 bits define the class(1111).

8 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addressing Determining the Class of an Address If the first number is between 0 and 127 (inclusive), the class is A. If the first number is between 128 and 191 (inclusive), the class is B. If the first number is between 192 and 223 (inclusive), the class is C. If the first number is between 224 and 239 (inclusive), the class is D. If the first number is between 240 and 255 (inclusive), the class is E.

9 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 4-4 Classes using decimal notation.

10 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addressing Multihomed Device A computer that is connected to different networks is called a multihomed computer and will have more than one address, each possibly belong to a different class. Figure 4-5 Multihomed devices Router

11 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addressing 4.3 SPECIAL ADDRESSES 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 network All 0sSpecificDestination Loopback address127AnyDestination

12 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 4-6 Examples of network addresses

13 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 4-7 Examples of direct broadcast addresses

14 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 4-8 Examples of limited broadcast addresses

15 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 4-0 Examples of “this” host on “this” network address

16 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 4-10 Example of specific host on “this” network

17 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 4-11 Example of loopback address

18 McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 4-12 Sample internet 4.4 A SAMPLE INTERNET


Download ppt "McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 IP Addressing."

Similar presentations


Ads by Google