Top Banner
1 IP Classes
33

IP-Classes & Sub Netting

Mar 24, 2015

Download

Documents

Swalih Haji
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: IP-Classes & Sub Netting

1

IP Classes

Page 2: IP-Classes & Sub Netting

2

IP Classes

0 Net-id0 24

Host-id8 16 31

Class A

1 Net-id Host-idClass B

Net-id Host-idClass C

MulticastClass D

0

1 01

1 01

1

ReservedClass E 1 011 1

Page 3: IP-Classes & Sub Netting

3

Page 4: IP-Classes & Sub Netting

4

IP Classes

Page 5: IP-Classes & Sub Netting

5

Special IP Addresses• Network address• Direct broadcast address• Limited broadcast address• Loop back address

Page 6: IP-Classes & Sub Netting

6

Network Address

Page 7: IP-Classes & Sub Netting

7

Direct Broadcast Address

Page 8: IP-Classes & Sub Netting

8

Limited Broadcast Address

Page 9: IP-Classes & Sub Netting

9

Loop back Address

Page 10: IP-Classes & Sub Netting

10

Subnetting• In subnetting, a network is divided into smaller

subnets with each subnet having its own subnet address.

Page 11: IP-Classes & Sub Netting

11

Reasons for Subnetting

• Most IP address assignments were not used very efficiently.

• Broadcast problem.• Many sites were requesting multiple network

numbers due to variable amounts of networks at their sites.

• Imagine a Network Class A with over 16 millions of hosts or a Class B Network with 65 thousand hosts, it is impractical…

Page 12: IP-Classes & Sub Netting

12

Benefits of subnetting

• Reduced network traffic• Simplified management• Smaller broadcast domains

Page 13: IP-Classes & Sub Netting

13

Subnetting

Page 14: IP-Classes & Sub Netting

14

Network Before Subnetting

Page 15: IP-Classes & Sub Netting

15

Network After Subnetting

Page 16: IP-Classes & Sub Netting

16

Subnet Mask

Example

00000000.00000000.00000000.000010100.0.0.10Host Portion

11000000.10101000.00000101.00000000192.168.5.0Network Portion

11111111.11111111.11111111.00000000255.255.255.0Subnet Mask

11000000.10101000.00000101.00001010192.168.5.10Full Network Address

BinaryDot-decimal Address

Subnet mask is used to distinguish the network ID from the host ID

• Question is: how do we determine the entire subnets inside our network?

Page 17: IP-Classes & Sub Netting

17

Subnet MaskExample

11000000.10101000.00000101.10000000192.168.5.128Network Portion

11111111.11111111.11111111.11000000255.255.255.192Subnet Mask

11000000.10101000.00000101.10000010192.168.5.130Full Network Address

BinaryDot-decimal Address

Page 18: IP-Classes & Sub Netting

18

How to know network is subnetted

IP Address: 192.168.2.1

Subnet Mask: 255.255.255.0

With Prefix Notation: 192.168.2.1/24

Page 19: IP-Classes & Sub Netting

19

Prefix Notation

IP Address: 132.168.64.3/18

Subnet Mask: 255.255.192.0

Page 20: IP-Classes & Sub Netting

20

Subnetting: how to?

• Number of host bits used for subnetting• What are the subnetted Network IDs• What are the IP Addresses for each new

subnet?

Page 21: IP-Classes & Sub Netting

21

Number of host bits used for subnetting

• How many subnets I will have in the future• Use more bits to overcome the change

overhead.

Page 22: IP-Classes & Sub Netting

22

Example

192.168.5.25511000000.10101000.00000101.11000000192.168.5.192/26192.168.5.19111000000.10101000.00000101.10000000192.168.5.128/26192.168.5.12711000000.10101000.00000101.01000000192.168.5.64/26192.168.5.6311000000.10101000.00000101.00000000192.168.5.0/26Broadcast addressNetwork (binary)Network

Page 23: IP-Classes & Sub Netting

23

Possible subnets for a /24 prefix (traditional Class C)

2562 *128255.255.255.254/31

128264255.255.255.252/30

192632255.255.255.248/29

2241416255.255.255.240/28

240308255.255.255.224/27

248624255.255.255.192/26

2521262255.255.255.128/25

2542541255.255.255.0/24

Total usable hosts

Available Hosts per network

Available NetworksNetwork MaskCIDR notation

Page 24: IP-Classes & Sub Netting

24

Another Example

• Network ID: 191.168.0.0• Use 3 bits• Subnet Mask: 255.255.224.0

Page 25: IP-Classes & Sub Netting

25

Subnets of the previous example

Page 26: IP-Classes & Sub Netting

26

How many hosts allowed for each subnet of the previous example?

Page 27: IP-Classes & Sub Netting

27

Variable Length Subnetting VLSStatic Subnettingo All subnets in the subnetted network use the same subnet masko Easy to implemento Waste IP Addresses

Variable SubnettingSubnets use different subnet masksReal world environmentsNo wasting of IP addresses

Page 28: IP-Classes & Sub Netting

28

Variable Subnetting Example

• Network ID: 135.41.0.0/16• 24 subnets are required as follows:

– One subnet with up to 32000 hosts– 15 subnets with up to 2000 hosts– 8 subnets with up to 250 hosts

Page 29: IP-Classes & Sub Netting

29

One subnet with up to 32000 hosts• I need one bit only to subnet• Subnet ID options:

255.255.128.010000111.00101001.10000000.00000000135.41.128.0/17

255.255.128.010000111.00101001.00000000.00000000135.41.0.0/17

Subnet MaskSubnet ID (Binary)Subnet ID (Decimal)

Page 30: IP-Classes & Sub Netting

30

15 subnets with up to 2000 hosts• I need 4 bits to subnet• Subnet ID options:

255.255.248.010000111.00101001.11110000.00000000135.41.240.0/21

---

---

---

255.255.248.010000111.00101001.10010000.00000000135.41.144.0/21

255.255.248.010000111.00101001.10001000.00000000135.41.136.0/21

255.255.248.010000111.00101001.10000000.00000000135.41.128.0/21

Subnet MaskSubnet ID (Binary)Subnet ID (Decimal)

Page 31: IP-Classes & Sub Netting

31

8 subnets with up to 250 hosts• I need 3 bits to subnet• Subnet ID options:

255.255.255.010000111.00101001.11111111.00000000135.41.255.0/24

255.255.255.010000111.00101001.11111000.00000000135.41.248.0/24

---

---

---

255.255.255.010000111.00101001.11111011.00000000135.41.251.0/24

255.255.255.010000111.00101001.11111010.00000000135.41.250.0/24

255.255.255.010000111.00101001.11111001.00000000135.41.249.0/24

Subnet MaskSubnet ID (Binary)Subnet ID (Decimal)

Page 32: IP-Classes & Sub Netting

32

Variable Subnetting of 135.41.0.0/16

Page 33: IP-Classes & Sub Netting

33

Exercise• A corporation is assigned a Class C network 195.214.32.0, and it

has the requirement to split this address range into five separate networks. The required number of hosts for each subnet is as follows:

– Subnet No. 1: 50 hosts– Subnet No. 2: 50 hosts– Subnet No. 3: 50 hosts– Subnet No. 4: 30 hosts– Subnet No. 5: 30 hosts