1 kyung hee university prof. choong seon hong ip addressing : classful addressing

31
1 Kyung Hee Univers ity Prof. Choong Seon HONG IP Addressing IP Addressing : Classful A : Classful A ddressing ddressing

Upload: holly-richardson

Post on 12-Jan-2016

220 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

11

Kyung Hee University

Prof. Choong Seon HONG

IP Addressing : IP Addressing : Classful AddresClassful Addres

singsing

Page 2: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

22

Kyung Hee University

4.1 Introduction4.1 Introduction

For a host to communicate with any other host

Need a universal identification system

Need to name each host

Internet address or IP address is a 32-bit address that

uniquely defines a host or a router on the internet

The IP addresses are unique in the sense that two

devices can never have the same address. However, a

device can have more one address.

Page 3: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

33

Kyung Hee University

NotationNotation

Binary notation

01110101 10010101 00011101 11101010

32 bit address, or a 4 octet address or a 4-byte address

Decimal point notation

Page 4: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

44

Kyung Hee University

Notation (cont’d)Notation (cont’d)

Hexadecimal NotationHexadecimal Notation

- 8 hexadecimal digits- 8 hexadecimal digits

- Used in network programming- Used in network programming

0111 0101 1001 0101 0001 1101 1110 1010

75 95 1D EA

0x75951DEA

Page 5: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

55

Kyung Hee University

4.2 Classful Addressing4.2 Classful Addressing Occupation of address space

In classful addressing, the address space is divided into five classes: A, B, C, D, and E.

Finding the class in binary notation

Page 6: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

66

Kyung Hee University

Classful Addressing (cont’d)Classful Addressing (cont’d)

Finding the address class

Page 7: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

77

Kyung Hee University

Classful Addressing (cont’d)Classful Addressing (cont’d)

Finding the class in decimal notation

Page 8: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

88

Kyung Hee University

Netid and HostidNetid and Hostid

Each IP address is made of two parts; netid and hostid.

Netid defines a network; hostid identifies a host on that network.

Page 9: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

99

Kyung Hee University

Netid and Hostid (cont’d)Netid and Hostid (cont’d)

IP addresses are divided into five different classes: A, B, C, D, and E

Page 10: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1010

Kyung Hee University

Classes and Blocks Blocks in class A

Class A is divided into 128 blocks with each block having a different netid.

Millions of class A addresses Millions of class A addresses are wasted.are wasted.

Page 11: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1111

Kyung Hee University

Classes and Blocks (cont’d) Class B is divided into 16,384 blocks with each block having a diffe

rent netid

Many class B addresses Many class B addresses are wasted.are wasted.

Page 12: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1212

Kyung Hee University

Classes and Blocks (cont’d)

Class C is divided into 2,097,152 blocks with each block having a diff

erent netid.

The number of addresses in The number of addresses in a class C block a class C block is smaller than is smaller than the needs of most organizationthe needs of most organizationss

Page 13: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1313

Kyung Hee University

Classes and Blocks (cont’d)

Class D addresses are used for multicasting;

there is only one block in this class.

Class E addresses are reserved for special purposes;

most of the block is wasted.

Page 14: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1414

Kyung Hee University

Network AddressNetwork Address

The network address is the first address.

The network address defines the network to the rest of the I

nternet.

Given the network address, we can find the class of the ad

dress, the block, and the range of the addresses in the bloc

k

In classful addressing, the network address

(the first address in the block) is the one that is assigned to

the organization.

Page 15: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1515

Kyung Hee University

Mask Mask

A mask is a 32-bit binary number that gives the first address in the bloc

k (the network address) when bitwise ANDed with an address in the blo

ck.

Masking concept

Page 16: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1616

Kyung Hee University

Mask (cont’d)Mask (cont’d)

AND Operation

The network address is the beginning address of each block. It ca

n be found by applying the default mask to any of the addresses i

n the block (including itself). It retains the netid of the block and s

ets the hostid to zero. (refer table 4.2)(refer table 4.2)

Page 17: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1717

Kyung Hee University

4.3 Others Issues4.3 Others Issues

Multihomed devices (computers, or routers)

A computer that is connected to different networks

Having more than one address

Page 18: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1818

Kyung Hee University

Special AddressesSpecial Addresses

Some parts of the address space in class A, B, C for special addresses

Page 19: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

1919

Kyung Hee University

Special AddressesSpecial Addresses

Network address : an address with the hostid all set to 0s

Page 20: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2020

Kyung Hee University

Special Addresses (cont’d)Special Addresses (cont’d) Direct Broadcast Address : Used by a router to send a packet to all

hosts in a specific network

Page 21: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2121

Kyung Hee University

Special Addresses (cont’d)Special Addresses (cont’d) Limited Broadcast Address : all 1s for the netid and hostid (32bits)

Page 22: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2222

Kyung Hee University

Special Addresses (cont’d)Special Addresses (cont’d) This Host on This Network : used by a host at bootstrap time when

it does not know its IP address

Page 23: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2323

Kyung Hee University

Special Addresses (cont’d)Special Addresses (cont’d) Specific Host on This Network : used by a host to send a message

to another on the same network

Page 24: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2424

Kyung Hee University

Special Addresses (cont’d)Special Addresses (cont’d) Loopback Address :

IP address of the first byte : 127Used to test the software on a machine Used by a client process to send a message to a server process on the same machine“Ping”

Page 25: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2525

Kyung Hee University

Private AddressesPrivate Addresses

A number of blocks in each class are assigned for priv

ate use. They are not recognized globally. These blocks

are depicted in Table 4.4

Page 26: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2626

Kyung Hee University

Unicast, Multicast, and Broadcast AddressesUnicast, Multicast, and Broadcast Addresses

Unicast communication is one-to-one.

Multicast communication is one-to-many.

Broadcast communication is one-to-all.

Multicast delivery will be discussed in depth in Chapter

14.

Page 27: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2727

Kyung Hee University

Unicast, Multicast, and Broadcast Addresses (cont’d)Unicast, Multicast, and Broadcast Addresses (cont’d)

Assigned Multicast addresses : starting with a 224.0.0 prefix

Page 28: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2828

Kyung Hee University

Unicast, Multicast, and Broadcast Addresses (cont’d)Unicast, Multicast, and Broadcast Addresses (cont’d)

Unicast Addresses : one-to-one

Multicast addresses : one-to-many; class D address

Used as a destination address

Page 29: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

2929

Kyung Hee University

Unicast, Multicast, and Broadcast Addresses (cont’d)Unicast, Multicast, and Broadcast Addresses (cont’d)

Multicast address for conferencing : starting with a 224.0.1 prefix

Page 30: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

3030

Kyung Hee University

Unicast, Multicast, and Broadcast Addresses (cont’d)Unicast, Multicast, and Broadcast Addresses (cont’d)

Broadcast addresses : one-to-all

Allowed only at the local level

Limited broadcast address (all 1s) Direct broadcast address (netid: specific, hostid: all)

No broadcasting is allowed at the global level

Page 31: 1 Kyung Hee University Prof. Choong Seon HONG IP Addressing : Classful Addressing

3131

Kyung Hee University

4.4 A Sample Internet with Classful Address4.4 A Sample Internet with Classful Address

Token Ring LAN (Class C), Ethernet LAN (Class B), Ethernet LAN (Class A) ,

Point-to-point WAN, A Switched WAN