• No results found

Chapter 4. IP Addresses: Classful Addressing

N/A
N/A
Protected

Academic year: 2021

Share "Chapter 4. IP Addresses: Classful Addressing"

Copied!
38
0
0

Loading.... (view fulltext now)

Full text

(1)

Chapter 4

IP Addresses:

(2)
(3)

4.1 Introduction

• An IP address is a 32-bit address that identifies a connection to

the Internet.

• The IP addresses are universally unique.

• The address space of IPv4 is 2

32

or 4,294,967,296.

• IP address is written as a Binary (hexadecimal) or a

Dotted-Decimal (w/out leading zeros) notation. See examples in the

(4)

CLASSFUL

ADDRESSING

4.2

4.2

• The IP address space (all possible IP values) is

divided into five classes: A, B, C, D, and E.

(5)
(6)

Example 5

Example 5

How can we prove that we have

2,147,483,648 addresses in class A?

Solution

Solution

In class A, only 1 bit defines the class.

The remaining 31 bits are available

for the address. With 31 bits,

(7)

Example 6 (Continued)

Example 6 (Continued)

Find the class of the address:

11000001 10000011 00011011 11111111

Solution

Solution

(8)

Example 7

Example 7

Find the class of the address:

227.12.14.87

Solution

Solution

(9)

Example 7 (Continued)

Example 7 (Continued)

Find the class of the address:

193.14.56.22

Solution

Solution

(10)

Netid and hostid

• Only classes A, B, and C addresses are subdivided.

(11)

Blocks in class A

Millions of class A addresses

Millions of class A addresses

are wasted.

are wasted.

One Block (

One Block (

Netid

Netid

10) is for Private

10) is for Private

Addresses.

(12)

Blocks in class B

Many class B addresses

Many class B addresses

are wasted.

are wasted.

16 Blocks are reserved for Private

16 Blocks are reserved for Private

Addresses.

(13)

Blocks in class C

The number of addresses in

The number of addresses in

a class C block is smaller than

a class C block is smaller than

the needs of most organizations.

(14)

Class D addresses (ONE block)

Class D addresses (ONE block)

are used for multicasting;

are used for multicasting;

Each address define one group. Each group member

Each address define one group. Each group member

has a multicast and a

has a multicast and a

unicast

unicast

IP address

IP address

Class E addresses (ONE block) are reserved for special

Class E addresses (ONE block) are reserved for special

purposes (limited broadcast) ; most of the block is

purposes (limited broadcast) ; most of the block is

wasted.

(15)

Network Addresses

Network Addresses

1. The network address is the first address in

the block.

2. The network address defines the network to

the rest of the Internet.

(16)

Example 9

Example 9

Given the network address 17.0.0.0, find the

class, the block, and the range of the

addresses.

Solution

Solution

The class is A because the first byte is between

0 and 127. The block has a netid of 17.

(17)

Example 10

Example 10

Given the network address 132.21.0.0, find

the class, the block, and the range of the

addresses.

Solution

Solution

The class is B because the first byte is between

128 and 191. The block has a netid of

(18)

Example 11

Example 11

Given the network address 220.34.76.0, find

the class, the block, and the range of the

addresses.

Solution

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

(19)

IP address → Network Address

1.

Find the class, then the Netid, then set Hostid = 0

Example: IP=134.45.78.2 is a class B (128-191) with

Netid=134.45, so its network address is 134.45.0.0

(20)
(21)

The network address is the

The network address is the

beginning address of each block.

beginning address of each block.

It can be found by applying

It can be found by applying

the default mask to

the default mask to

any of the addresses in the block

any of the addresses in the block

(including itself).

(including itself).

It retains the

It retains the netid

netid

of the block

of the block

and sets the

(22)

Example 12

Example 12

Given the address 23.56.7.91 and the default

class A mask, find the beginning address

(network address).

Solution

Solution

The default mask is 255.0.0.0, which means

that only the first byte is preserved

(23)

Example 13

Example 13

Given the address 132.6.17.85 and the

default class B mask, find the beginning

address (network address).

Solution

Solution

The default mask is 255.255.0.0, which means

that the first 2 bytes are preserved

(24)

We must not

We must not

apply the default mask

apply the default mask

(25)

• IP addresses are almost depleted even though

the number of devices on the Internet is much

less than 2^32.

(26)

OTHER

ISSUES

4.13

(27)
(28)

Special Addresses

1. Network Address

2. Direct Broadcast Address

3. Limited Broadcast Address

4. This

Host on

This

Network

(29)
(30)
(31)
(32)
(33)
(34)
(35)

Private Addresses

Private Addresses

(36)

Unicast

Unicast

, Multicast, and

, Multicast, and

Broadcast Addresses

Broadcast Addresses

Unicast communication is one-to-one.

Multicast communication is one-to-many.

(Class D address defining the Groupid)

(37)
(38)

References

Related documents