31

An Internet address is made of four bytes (32 bits) that define the host connection to a network. It is uniquely and universally defines the connection

Embed Size (px)

Citation preview

Page 1: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection
Page 2: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

An Internet address is made of four bytes (32 bits) that define the host connection to a network.

It is uniquely and universally defines the connection of a host or a router to the internet.

Page 3: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Two Types: Classful Addressing Classless Addressing

Page 4: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Five Types: Class A ( Unicast) Class B (Unicast) Class C (Unicast) Class D ( Multicast) Class E ( Future Use)

Page 5: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Unicast: Communication from one source to one destination.

Multicast: Communication from one source to a group of destination

Broadcast: Communication from one source to many destinations , which are in same network.

Page 6: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Binary Notation: 4 bytes (32bits) binary number 10000000 00001011 00000011 00011111 Decimal Notation: Internet address are usually written in

decimal form with decimal point separated the bytes.

Page 7: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Finding the Class in Binary Notation

Page 8: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Finding the Class in Dotted – Decimal Notation

Page 9: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

In classful addressing each class is divided into fixed of

blocks.

Page 10: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

All hostid bytes are 0s. The network address defines the network to the rest of the

Internet. The network address is the first address in the block. Given the network address , we can find the class of the

address.

Page 11: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

A Network with Two Levels of Hierarchy

Page 12: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Addressing without Subnets

Page 13: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Network and Host Addresses

Page 14: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection
Page 15: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

A Network with Three Levels of Hierarchy

Page 16: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection
Page 17: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Addresses with and without Subnetting

Page 18: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection
Page 19: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection
Page 20: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

A network administrator knows the network address and subnet address , but a router doesnot. The router outside the organisation use a default mask; the router inside the organisation use a subnet mask.

A 32 – bit number called the mask. Two types: Default mask ( Identify the network address) Class A 255. 0 . 0 . 0 /8 Class B 255.255.0.0 /16 Class C 255. 255. 255. 0 /24 Subnet mask ( Identify the subnet address)

Page 21: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

A bitwise AND operation between IP address and default mask yields a network address.

Note that zeros bit are used to mask out the host number resulting the network address.

Example: IP Address: 190. 240. 7. 91 Default Mask: 255. 255. 0. 0 Network address: 190. 240. 0. 0

Page 22: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

The number of 1’s in a subnet mask is more than the number of 1’s in the corresponding default mask.

In other words , in a subnet mask , we change some of the Rightmost 0s in the default mask to make a subnet mask.

The number of subnets is determined by the number of extra 1s. If the number of extra 1s is n, the number of subnets is 2 to the n.

A bitwise AND operation between IP address and subnet mask yields a subnet address.

Example: IP Address: 190. 240. 33. 91 Subnet Mask : 255. 255. 224.0 /19 Subnet address: 190.240. 32. 0

Page 23: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

The idea of classful addressing has created many Problems. Until mid – 1990’s , a range of address meant a block of addresses in class A,B,C.

The minimum number of address granted to an organization was 256 ( Class C); the maximum was 16,777,216 (Class A).

In addition what about a small business that needed only 16 addresses?

During 1990s, ISP came into prominence. An ISP can be granted several class B or Class C blocks and then subdivide the range of addresses in group of 2 , 4 , 8, or 16 address), giving a range to a household or a small business. This is called the classless address.

Page 24: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

A better way to define a block of addresses is to select any address in the block and mask. A mask is a 32 bit number in which the n leftmost bits are 1s and the 32 – n rightmost bits are 0s. However , in classless addressing the mask for a block can take any value from 0 to 32.

Address: 205.16.37.39/28 11001101 00010000 00100101 00100111

Mask : 11111111 11111111 11111111 11110000 First address( Network address): 11001101 000100000 00100101 00100000

Address: 205.16.37.39/28 11001101 00010000 00100101 00100111 Mask complement : 00000000 00000000 00000000 00000111 Last address : 11001101 00010000 00100101 00101111

Number of addresses in a block: 232-28 =24 = 16

Page 25: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

In 1987, RFC 1009 specified that a subnetted network could use more than one subnet mask.

When an IP network is assigned more than one subnet mask, it is considered a network with variable length subnet masks.

Page 26: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

26

Benefits› Efficient use of the organization’ s

assigned IP address space.

Page 27: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

27

Assume that a network administrator has decided to configure the 130.5.0.0/16 network with a /22 extended-network prefix.

This disign allows for 64 subnets with 1,022 hosts each.

Fine if the organization plans to deploy a number of large subnets.

What about the occasional small subnet containing only 20 or 30 hosts?

About 1,000 IP host addresses wasted for every small occasional subnet!

Page 28: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

28

Assume in previous example that administrator is also allowed to configure the 130.5.0.0/16 network with a /26 extended-network-prefix.

/26 permits 1024 subnets with 62 hosts each.

The /26 prefix would be ideal for small subnets with less than 60 hosts, while /22 prefix is well suited for larger subnets up to 1000 hosts.

Page 29: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

Addresses for private networks

Page 30: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

A NAT implementation

Page 31: An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection

19.31

Addresses in a NAT