Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Routing
Computer
Networking: A
Top Down
Approach
6th edition
Jim Kurose, Keith
Ross
Addison-Wesley
March 2012
IP ADDRESSING (IPV4)
IP Addresses
A unique identifier for a node or host
connection on the network
32-bit binary number represented as 4
decimal values
Each decimal value representing 8 bit (known as
octet)
140
.179
.220
.200
100011
00
.
.
.11001000
1011001 1101110
1
0
IP Addresses
IP Address
Unique device (host) address
Subnet Mask
Identifies which portion of IP Address is
the Network ID and which portion is the
Host ID
Default Gateway
IP Address of the Router on the same
152.107.102.7
IP Address
subnet255.255.255.0
Subnet Mask
152.107.102.1
Default Gateway
Host ID
Identifies a specific
device (Host) within
a subnet
Unique on the
subnet
Example:
Phone Number
xxxxxxx .
.
.
x
xxxxxxx xxxxxxx xxxxxxx
x
x ID
Network
ID x
Host
5
IP Address
Network
Address
140.179.220.20
0/16
140.179.0.0
Broadcast Address
The portion of Host
ID is set to all 1s
It specifies a
broadcast that is
sent
to all hosts on
Broadcast
the
network
Address
140.179.255.255
Network IDs
Hosts IDs
Class A
1 127
126
16,777,214
Class B
128 191
16,384
65,534
Class C
192 223
2,097,152
254
Private IP Address
There are three IP network addresses
reserved for private network (RFC
1918)
Address Classes
Private IP Address
Range
A
10.0.0.0 to
10.255.255.255
172.16.0.0 to
172.16.255.255
192.168.0.0 to
192.168.255.255
SUBNETTING
10
What is a Subnet?
A Broadcast Domain
The portion of the network that you can
retrieve information from by using a
broadcast packet
Routers dont forward broadcasts
IP Addressing Rules
All devices on the same subnet share a
common Network ID
Each subnet has a unique Network IDs
11
Subnetting
Goal:
to control network traffic
12
Subnet Masking
To identify the portion of Network ID
and Host ID
The network bits are represented by
1s in the mask, and host bits are
represented by 0s
100011
00
.
.
.
140.179.220.
1011001 1101110 1100100 200
1
0
0
IP Address
111111
11
.
.
.
255.255.224.
1111111 1110000 0000000 0
1
0
0
Subnet Mask
100011
00
.
.
.
140.179.192.
1011001 1100000 0000000 0
Network
Address
13
Subnetting
IP address space was depleting
rapidly
The Internet Engineering Task Force
(IETF) introduced Classless Inter-Domain
Routing (CIDR)
CIDR uses Variable Length Subnet Masking
(VLSM) to help conserve address space
VLSM is simply subnetting a subnet
14
Classful IP Addressing
The IPv4 Classful Addressing
Structure (RFC 790)
An IP address has 2 parts:
The network portion
The host portion
15
Classless IP Addressing
The classful system of allocating IP
address can be very wasteful
Solution: use a scheme called CIDR
(RFC 1517)
By accurately allocating only the amount of
address space that was actually needed
16
17
VLSM
Subnet 10.3.0.0/16, 12
more bits are borrowed
again, to create 4,096
subnets with a /28 mask.
Mask allows for 14 host
addresses per subnet
Subnets range from: 10.3.0.0
/ 28 to 10.3.255.240 / 28
Subnet 10.4.0.0/16, 4
more bits are borrowed
again, to create 16 subnets
with a /20 mask.
Mask allows for 2,046 host
addresses per subnet
Subnets range from: 10.4.0.0
/ 20 to 10.4.240.0 / 20
18
20
21
22
23
CIDR
Example:
If I needed about 1000 addresses, I
could supernet 4 Class C networks
together
192.168.128.
110000 .
.
.
Class C Net.
0
00
192.168.129.
0
110000
00
.
.
.
Class C Net.
1010100 1000000 0000000 Address
0
1
0
192.168.130.
0
110000
00
.
.
.
Class C Net.
1010100 1000001 0000000 Address
0
0
0
192.168.131. 110000 .
.
.
Class C Net.
0
00
1010100 1000001 0000000 Address
Route summarization could be written simply as 192.168.128.0/22
24
0
1
0
CIDR
Route summarization done by CIDR
Routes are summarized with masks that are
less than that of the default classful mask
(supernetting)
Example:
172.16.0.0/13 is the summarized route for the
172.16.0.0/16 to 172.23.0.0/16 classful network
25
CIDR
Steps to calculate a
route summary:
1. List networks in binary
format
2. Count number of left
most matching bits to
determine summary
routes mask
3. Copy the matching
bits and zero bits to
determine the
summarized network
address
26
27
28
29
30
References
www.learntosubnet.com
www.ralphb.net
www.tcpipguide.com
Cisco Networking Academy
31