Top Banner
Objectives: Chapter 4: IP Addressing Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing IPv6
38

Objectives: Chapter 4: IP Addressing Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

Apr 01, 2015

Download

Documents

Richard Torrey
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: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

Objectives:

Chapter 4: IP Addressing

Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing IPv6

Page 2: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

2

Taibah University

Internet Architecture

• Two computers, anywhere in the world, following certain hardware, software, protocol specifications, can communicate, reliably even when not directly connected.

• LANs are no longer scalable beyond a certain number of stations or geographic separation.

Page 3: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

3

Taibah University

IP Address as a 32-Bit Binary Number

Internet Addresses

Page 4: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

4

Taibah University

Decimal Equivalents of 8-Bit Patterns

Page 5: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

5

Taibah University

Binary and Decimal Conversion

Page 6: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

6

Taibah University

IP Address Classes

Page 7: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

7

Taibah University

IP Address Classes

Page 8: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

8

Taibah University

IP Addresses as Decimal Numbers

Page 9: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

9

Taibah University

Hosts for Classes of IP Addresses

Class A (24 bits for hosts) 224 - 2* = 16,777,214 maximum hosts

Class B (16 bits for hosts) 216 - 2* = 65,534 maximum hosts

Class C (8 bits for hosts) 28 - 2* = 254 maximum hosts

* Subtracting the network and broadcast reserved address

Page 10: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

10

Taibah University

IPv4 Address Classes

Class D Addresses• A Class D address begins with binary 1110 in the first octet. • First octet range 224 to 239. • Class D address can be used to represent a group of hosts called a

host group, or multicast group.

Class E Addresses

• First octet of an IP address begins with 1111• First octet range 240 to 255.• Class E addresses are reserved for experimental purposes and should

not be used for addressing hosts or multicast groups. 

Page 11: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

11

Taibah University

IP Addresses as Decimal Numbers

Page 12: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

12

Taibah University

An IP address such as 176.10.255.255 that has all binary 1s in the host bit positions is reserved for the broadcast address.

An IP address such as 176.10.0.0 that has all binary 0s in the host bit positions is reserved for the network address.

Network IDs and Broadcast Addresses

Page 13: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

13

Taibah University

Private Addresses

Page 14: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

14

Taibah University

Reserved Address Space

• Network ID

• Broadcast address

• Hosts for classes of IP addresses

Page 15: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

15

Taibah University

Basics of Subnetting

• Classical IP addressing

• Subnetworks

• Subnet mask

• Boolean operations: AND, OR, and NOT

• Performing the AND function

Page 16: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

16

Taibah University

Subnetworks

To create a subnet address, a network administrator borrows bits from the original host portion and designates them as the subnet field.

Page 17: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

17

Taibah University

Subnetworks

Page 18: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

18

Taibah University

Subnet Mask

• Determines which part of an IP address is the network field and which part is the host field

• Follow these steps to determine the subnet mask:– 1. Express the subnetwork IP address in binary form.– 2. Replace the network and subnet portion of the address with all

1s.– 3. Replace the host portion of the address with all 0s.– 4. Convert the binary expression back to dotted-decimal notation.

Page 19: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

19

Taibah University

Subnet mask in decimal = 255.255.240.0

Subnet Mask

Page 20: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

20

Taibah University

• AND is like multiplication.

• OR is like addition.

• NOT changes 1 to 0, and 0 to 1.

Boolean Operations: AND, OR, and NOT

Page 21: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

21

Taibah University

Performing the AND Function

Page 22: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

22

Taibah University

Range of Bits Needed to Create Subnets

Page 23: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

23

Taibah University

Subnet Addresses

Page 24: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

24

Taibah University

Creating a Subnet

• Determining subnet mask size• Computing subnet mask and IP address• Computing hosts per subnetwork• Boolean AND operation• IP configuration on a network diagram• Host and subnet schemes• Private addresses

Page 25: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

25

Taibah University

Class B address with 8 bits borrowed for the subnet

130.5.2.144 (8 bits borrowed for subnetting) routes to subnet 130.5.2.0 rather than just to network 130.5.0.0.

Determining Subnet Mask Size

Page 26: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

26

Taibah University

The address 197.15.22.131 would be on the subnet 197.15.22.128.

11000101 00001111 00010110 100 00011

Network Field SN Host Field

Class C address 197.15.22.131 with a subnet mask of 255.255.255.224 (3 bits borrowed)

Determining Subnet Mask Size

Page 27: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

27

Taibah University

Subnetting Example with AND Operation

Page 28: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

28

Taibah University

The router connects subnetworks and networks.

IP Configuration on a Network Diagram

Page 29: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

29

Taibah University

Using /24 subnet...

190.52.1.2190.52.2.2190.52.3.2

Network Network Subnet Host

But internal routers think all these addresses are on different networks, called subnetworks

Internet routers still “see” this net as 190.52.0.0

Class B Network Network Host Host

Given the Class B address 190.52.0.0

Subnet Example

Page 30: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

30

Taibah University

Using the 3rd octet, 190.52.0.0 was divided into:190.52.1.0 190.52.2.0 190.52.3.0 190.52.4.0

190.52.5.0 190.52.6.0 190.52.7.0 190.52.8.0

190.52.9.0 190.52.10.0 190.52.11.0 190.52.12.0

190.52.13.0 190.52.14.0 190.52.15.0 190.52.16.0

190.52.17.0 190.52.18.0 190.52.19.0 and so on ...

Network Network Subnet Host

Subnet Example

Page 31: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

31

Taibah University

Subnet Example

Network Network Subnet Host

Network address 190.52.0.0 with /16 network mask

190 52 0 Host

190 52 1 Host

190 52 2 Host

Using Subnets: subnet mask 255.255.255.0 or /24

190 52 3 Host

190 52 Etc. Host

190 52 254 Host

190 52 255 Host

255 Subnets

28 - 1

Cannot use last subnet as it contains broadcast address

Subnets

Page 32: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

32

Taibah University

Subnet Example

Network Network Subnet Host

Subnet 0 (all 0’s subnet) issue: The address of the subnet, 190.52.0.0/24 is the same address as the major network, 190.52.0.0/16.

190 52 0 Host

190 52 1 Host

190 52 Etc. Host

190 52 254 Host

190 52 255 Host

255 Subnets

28 - 1

Subnets

Last subnet (all 1’s subnet) issue: The broadcast address for the subnet, 190.52.255.255 is the same as the broadcast address as the major network, 190.52.255.255.

Page 33: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

33

Taibah University

The number of lost IP addresses with a Class C network depends on the number of bits borrowed for subnetting.

Host Subnet Schemes

Page 34: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

34

Taibah University

IP addressing crisis

• Address Depletion• Internet Routing Table Explosion

Page 35: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

35

Taibah University

IPv4 Addressing

Subnet Mask

• One solution to the IP address shortage was thought to be the subnet mask.

• Formalized in 1985 (RFC 950), the subnet mask breaks a single class A, B or C network in to smaller pieces.

Page 36: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

36

Taibah University

Short Term Solutions: IPv4 Enhancements

• CIDR (Classless Inter-Domain Routing) – RFCs 1517, 1518, 1519, 1520

• VLSM (Variable Length Subnet Mask) – RFC 1009

• Private Addressing - RFC 1918

• NAT/PAT (Network Address Translation / Port Address Translation) – RFC

Page 37: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

37

Taibah University

IPv4 versus IPv6

• IP version 6 (IPv6) has been defined and developed.

• IPv6 uses 128 bits rather than the 32 bits currently used in IPv4.

• IPv6 uses hexadecimal numbers to represent the 128 bits.

IPv4

Page 38: Objectives: Chapter 4: IP Addressing  Internet Architecture IPv4 Addressing IP address Classes Subnets and subnet mask Subnets design with IP addressing.

38

Taibah University

Long Term Solution: IPv6 (coming)

• IPv6, or IPng (IP – the Next Generation) uses a 128-bit address space, yielding

340,282,366,920,938,463,463,374,607,431,768,211,456

possible addresses.

• IPv6 has been slow to arrive

• IPv4 revitalized by new features, making IPv6 a luxury, and not a desperately needed fix

• IPv6 requires new software; IT staffs must be retrained

• IPv6 will most likely coexist with IPv4 for years to come.

• Some experts believe IPv4 will remain for more than 10 years.