Upload
tuyishime-adiel
View
225
Download
0
Embed Size (px)
Citation preview
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 1/38
Objectives:
Chapter 4: IP Addressing
Inter net ArchitectureIPv4 Addressing
IP address Classes
Subnets and subnet mask
Subnets design with IP addressingIPv6
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 2/38
Taibah University
2
Inter net Architecture
Two computers, anywhere in
the world, f ollowing certain
hardware, software, pr otocol
specifications, can
communicate, reliably evenwhen not directly connected.
L ANs are no longer scalable
beyond a certain number of
stations or geographicseparation.
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 3/38
Taibah University
3
IP Address as a 32-Bit Binary Number
Inter net Addresses
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 4/38
Taibah University
4
Decimal Equivalents of 8-Bit Patter ns
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 5/38
Taibah University
5
Binary and Decimal Conversion
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 6/38
Taibah University
6
IP Address Classes
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 7/38
Taibah University
7
IP Address Classes
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 8/38
Taibah University
8
IP Addresses as Decimal Numbers
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 9/38
Taibah University
9
Hosts for Classes of
IP Addresses
Class A (24 bits f or hosts) 224 - 2* = 16,777,214 maximum hosts
Class B (16 bits f or hosts) 216 - 2* = 65,534 maximum hosts
Class C (8 bits f or hosts) 28 - 2* = 254 maximum hosts
* Subtracting the network and broadcast reserved address
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 10/38
Taibah University
10
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 gr oup of hosts called ahost gr oup, or multicast gr oup.
Class E Addresses
First octet of an IP address begins with 1111
First octet range 240 to 255.
Class E addresses are reserved f or experimental purposes and shouldnot be used f or addressing hosts or multicast gr oups.
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 11/38
Taibah University
11
IP Addresses as Decimal Numbers
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 12/38
Taibah University
12
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
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 13/38
Taibah University
13
Private Addresses
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 14/38
Taibah University
14
Reserved Address Space
Network ID
Br oadcast address
Hosts f or classes of IP addresses
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 15/38
Taibah University
15
Basics of Subnetting
Classical IP addressing
Subnetworks
Subnet mask
Boolean operations: AND, OR, and NOT Perf or ming the AND function
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 16/38
Taibah University
16
Subnetworks
To create a subnet address, a network administrator
borr ows bits fr om the original host portion and
designates them as the subnet field.
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 17/38
Taibah University
17
Subnetworks
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 18/38
Taibah University
18
Subnet Mask
Deter mineswhich part of an IP address is the network field and which
part is the host field
Follow these steps to deter mine the subnet mask:
± 1. Express the subnetwork IP address in binary f or m. ± 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.
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 19/38
Taibah University
19
Subnet mask in decimal = 255.255.240.0
Subnet Mask
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 20/38
Taibah University
20
AND is like multiplication.
OR is like addition.
NOT changes 1 to 0, and 0 to 1.
Boolean Operations: AND, OR, and NOT
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 21/38
Taibah University
21
Performing the AND Function
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 22/38
Taibah University
22
Range of Bits Needed to Create Subnets
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 23/38
Taibah University
23
Subnet Addresses
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 24/38
Taibah University
24
Creating a Subnet
Deter mining 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
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 25/38
Taibah University
25
Class B address with 8 bits borr owed f or the subnet
130.5.2.144 (8 bits borr owed f or subnetting) r outes to subnet
130.5.2.0 rather than just to network 130.5.0.0.
Determining Subnet Mask Size
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 26/38
Taibah University
26
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 borr owed)
Determining Subnet Mask Size
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 27/38
Taibah University
27
Subnetting Example with AND Operation
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 28/38
Taibah University
28
The r outer connects subnetworks and networks.
IP Configuration on a Network Diagram
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 29/38
Taibah University
29
Using /24subnet...
190.52.1.2
190.52.2.2
190.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
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 30/38
Taibah University
30
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
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 31/38
Taibah University
31
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
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 32/38
Taibah University
32
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 br oadcast address f or the subnet, 190.52.255.255 is the same as the br oadcast
address as the major network, 190.52.255.255.
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 33/38
Taibah University
33
The number of lost IP addresses with a Class C network
depends on the number of bits borrowed for subnetting.
Host Subnet Schemes
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 34/38
Taibah University
34
IP addressing crisis
Address Depletion
Internet Routing Table Explosion
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 35/38
Taibah University
35
IPv4 Addressing
Subnet Mask
One solution to the IP address shortage was thought to be the
subnet mask.
For malized in 1985 (RFC 950), the subnet mask breaks a single
class A, B or C network in to smaller pieces.
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 36/38
Taibah University
36
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
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 37/38
Taibah University
37
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
8/8/2019 CS-414 Chap 4 ( IP Address - Subnet Mask)
http://slidepdf.com/reader/full/cs-414-chap-4-ip-address-subnet-mask 38/38
Taibah University
38
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 f or years to come.
Some experts believe IPv4 will remain f or more than 10 years.