Professional Documents
Culture Documents
Application Layer
Telnet FTP SMTP REXEC DNS Gopher X Win TFTP SNMP RPC NFS
Transport Layer
TCP UDP
Network Layer
ICMP IP IGMP ARP RARP
Link Interface
Ethernet, IEEE 802.3, Token Ring, X.25, SNA, FDDI, .
Parviz Kermani
IPv4 Addressing in
Legends
Back to previous foil
End of animation
IP Addressing
Acknowledgement
Part of the following pages were taken from materials provided by other authors and companies
Cisco Lecture slides of Computer Networking: A Top Down Approach by Jim Kurose and Keith Ross CCENT/CCNA ICND1 & 2- Official Exam Certification Guide, Wendell Odom, Cisco Press
IP Addressing
Internet in a Nutshell
Application Layer
Telnet FTP SMTP REXEC DNS Gopher X Win TFTP SNMP RPC NFS
Transport Layer
TCP UDP
Network Layer
ICMP IP IGMP ARP RARP
Link Interface
Ethernet, IEEE 802.3, Token Ring, X.25, SNA, FDDI, .
IP Addressing
Network (Layer 3)
IP IPX, SNA, others
All are important and needed Ultimately, all deliveries move over the physical layer Note: Port address not under discussion (Transport)
IP Addressing
Layer 2 Addressing
IP Addressing
Layer 3 Addressing
Each Network Architecture has its own Layer 3 address format. OSI uses NSAP. TCP/IP uses IP
IP Addressing
IP Addressing
IP Addressing
IP Addressing
10
IP Addressing
11
IP Addressing
12
IP Addressing
13
IP Addressing
14
IP Addressing
15
IP Addressing
16
IP Addressing
17
The division between network and host is determined by the size of network and determined by the class of the address
IP Addressing 18
IP Addresses
classful addressing
class A 0 network B C D
10 110 1110 network network multicast address
32 bits
IP Addressing 19
IP Addresses
IP Classful Addresses:
Class A addresses begin with 0xxx, or 1 to 126 Class B addresses begin with 10xx, or 128 to 191 Class C addresses begin with 110x, or 192 to 223 Class D addresses begin with 1110, or 224 to 239
Multicast
IP Addressing
20
Classful Addressing
Number of elements in each class
Class A B C 0xxx 10xx 110x Number of classes 128 16,384 2,097,152 Number of local addresses 16,777,216 65,534 254
IP Addressing
21
Class of Network A B C
Note: The third column is the Number of Networks (and not IP Addresses)
IP Addressing
22
Network manageability (discussed below) No longer formally part of IP addressing architecture Note:
A classful address identifies the Network and Host field
No need for Network Mask!
IP Addressing 23
Problems
All devices share the same bandwidth. All devices share the same broadcast domain. It is difficult to apply a security policy.
IP Addressing
24
Manageability: Subnetworks
The Smaller networks are easier to manage. Overall traffic is reduced. You can more easily apply network security policies.
IP Addressing
1-25
IP addressing: CIDR
CIDR: Classless InterDomain Routing Adopted by IETF in 1993 Network (subnet) portion of address of arbitrary length address format: a.b.c.d/x, where x is # bits in network (subnet) portion of address
To support 2000 hosts, a block of 2048 addresses of the form a.b.c.d/21 assigned
11 bits needed to store 2048 (211=2048)
In practice the 11 bit rightmost addressing could be further divided (subnetting, more on this later)
network part host part
Network Mask
With CIDR, address no longer specifies the network portion Mask is used to extract network portion from an IP Address
A string of 32 bits Bits corresponding to network (and subnet) part set to 1 Bits corresponding to host part set to 0 Ex (classful address):
Addr = 9.2.225.65/8 = 00001001.00000010.11100001.01000001 Mask = 11111111.00000000.00000000.00000000 = 255 . 0 . 0 . 0
IP Addressing
27
Ex-2
Addr = 156 . 204 . 135 . 160/19 = 10011100.11001100.10000111.10100000 Mask = 11111111.11111111.11100000.00000000 = 255 . 255 . 224 . 0 N-Adr= 10011100.11001100.10000000.00000000 156 . 204 . 128 . 0
IP Addressing 28
IP Addressing
30
IP Addressing
31
IP Addressing
32
IP Addressing
33
IP Addressing
34
Topology Example
A network topology using one IP network with six subnets
IP Addressing
35
IP Addressing
36
IP Addressing
37
IP Addressing
38
Subnet addresses
Reserved addresses:
The smallest address (all 0s) signifies the subnet number
128.12.17.144/28: x.y.z.10010000 10.12.16.128/26: x.y.z.10000000
IP Addressing
39
IP Addressing
40
Mask(last byte only): 11110000; 240 Subnet number: 199.214.17.128 (10000000) Next/previous subnets:
Next: 128 + 16= 144 (10010000) Previous: 128 16 = 112 (01110000)
Range of addresses: x.y.z.129 to x.y.z.143 Broadcast address: 199.214.17.143 First IP address: 199.214.17.129 Last IP address: 199.214.17.142
IP Addressing
41
Range of addresses: 192.214.16.1 to 192.214.19.255) Broadcast address: 199.214.19.255 First IP address: 199.214.16.1 Last IP address: 199.214.19.254
IP Addressing
42
IP Addressing
43
Step 2: Compare the range of addresses in each subnet and look for any overlap
IP Addressing
44
IP Addressing
45
Problem Network
2
172.16.4.2/23
172.16.2.1/23
3
172.16.5.2/24
IP Addressing
46
172.16.4.1/23
Mask: 255.255.254.0 Subnet number: 172.16.4.0 Broadcast @: 172.16.5.255
172.16.5.1/24
Mask: 255.255.255.0 Subnet number: 172.16.5.0 Broadcast @: 172.16.5.255
Overlap!
IP Addressing
47