Professional Documents
Culture Documents
Gate Ip Addressing
Gate Ip Addressing
IP Addressing
ELTP-GROUP 2 ELTP-GATE 2015
IP Address Classes
z IP addresses are divided into 5 classes, each of which is
designated with the alphabetic letters A to E.
Class Addresses
ELTP-GROUP 5 ELTP-GATE 2015
Class A Addresses
There are 128 Class A Network Addresses, but because
available.
ELTP-GROUP 10 ELTP-GATE 2015
Class B IP Addresses
z So how many Class B Networks can there be?
Class C IP Addresses
z There can be 221 – 2 Class C Networks, but only 254 (28 – 2)
Hosts per Network.
ELTP-GROUP 12 ELTP-GATE 2015
Special Addresses
Network addresses that are all binary zeros, all binary ones
& Network addresses beginning with 127 are special
Network addresses.
ELTP-GROUP 14 ELTP-GATE 2015
Subnetting
ELTP-GROUP 18 ELTP-GATE 2015
Introduction
The standard address class structure has been expanded
by borrowing bits from the Host portion to allow for more
Networks. This addressing scheme, called Subnetting,
separating the Network & Host requires a special process
called Subnet Masking.
ELTP-GROUP 19 ELTP-GATE 2015
Introduction (Cont.)
There are 2 fundamental reasons why subnetting has so
much importance in today’s networking environment:
Introduction (Cont.)
2) Subnetting reduces the size of the routing tables
stored in routers. Routers must have a way to extract
from a IP address both the Network address & the Host
address.
ELTP-GROUP 21 ELTP-GATE 2015
z In fact, the 1st creates the 2nd & is identified by the 3rd.
subnetwork or subnet.
ELTP-GROUP 22 ELTP-GATE 2015
begins.
ELTP-GROUP 24 ELTP-GATE 2015
Subnetting Networks ID
Subnetting (Cont.)
z Through the use of subnetting, the network can be
logically divided into subnets with fewer hosts on each
subnetwork.
z It does not improve the available shared bandwidth only,
but it cuts down on the amount of broadcast traffic
generated over the entire network as well.
ELTP-GROUP 27 ELTP-GATE 2015
Subnetting (Cont.)
Example of subnetting: when the network administrator
divides the 172.20.0.0 network into 5 smaller networks –
172.20.1.0,
172.20.2.0,
172.20.3.0,
172.20.4.0,
172.20.5.0
Subnetting (Cont.)
In the example, only a single IP address is used to
reference the network & instead of 5 network addresses,
only one network reference is included in the routing
tables of routers on other networks.
ELTP-GROUP 29 ELTP-GATE 2015
A 24 22
B 16 14
C 8 6
ELTP-GROUP 31 ELTP-GATE 2015
• I need x hosts: 2 BL
−2≥x
• Remember: we need to subtract two to provide for
the subnetwork and broadcast addresses.
ELTP-GROUP 33 ELTP-GATE 2015
Class B Subnets
ELTP-GROUP 35 ELTP-GATE 2015
Class C Subnets
ELTP-GROUP 36 ELTP-GATE 2015
8.1.4.5 255.255.0.0
130.4.100.1 255.255.255.0
199.1.1.4 255.255.255.0
172.100.2.2 255.255.255.0
17.9.44.3 255.255.255.0
ELTP-GROUP 45 ELTP-GATE 2015
130.4.100.0 255.255.252.0
199.1.1.0 255.255.255.224
172.100.200.0 255.255.254.0
17.9.44.64 255.255.255.192
ELTP-GROUP 53 ELTP-GATE 2015
CIDR Notation
ELTP-GROUP 55 ELTP-GATE 2015
CIDR Notation
z Classless Inter domain Routing is a method of representing
an IP address and its subnet mask with a prefix.
202.151.37.0/26
z Subnet mask?
255.255.255.192
z Bits borrowed?
z Magic Number?
256 - 192 = 64
202.151.37.64
64 + 64 + 64 = 192, so 202.151.37.192
ELTP-GROUP 57 ELTP-GATE 2015
198.53.67.0/30
z Subnet mask?
255.255.255.252
z Bits borrowed?
z Magic Number?
256 - 252 = 4
4 + 4 + 4 = 12, so 198.53.67.12
4 + 4 + 4 - 1 = 11, so 198.53.67.11
ELTP-GROUP 58 ELTP-GATE 2015
194.53.45.0/29
What kind of address is 194.53.45.26? IP address belongs to which
subnet address.
What broadcast address would this host use communicate with other
devices on the same subnet?
Answers
Bits Last Non- Magic 2nd Subnet's 2nd Subnet's
Address Class Borrowed Zero Octet Number Address Broadcast
202.139.67.0/28 C 4 240 16 202.139.67.32 202.139.67.47
132.59.0.0/19 B 3 224 32 132.59.64.0 132.59.95.255
64.0.0.0/16 A 8 255 1 64.2.0.0 64.2.255.255
ELTP-GROUP 60 ELTP-GATE 2015
subnets have the same number of hosts, this is known as FLSM ( Fixed
length subnet mask). In FLSM all subnets use same subnet mask, this lead
to inefficiencies.
=> VLSM
ELTP-GROUP 62 ELTP-GATE 2015
Benefits
2. Route aggregation.
ELTP-GROUP 63 ELTP-GATE 2015
Benefits of VLSM
Efficient use of the organization’ s assigned IP address space
For example:
In CIDR, the subnets are of fixed size. Using the same methodology the
Benefits of VLSM
Efficient use of the organization’ s assigned IP address space
Benefits of VLSM
Route Aggregation- Reducing Routing Table Size
address space.
Benefits of VLSM
Route Aggregation- Reducing Routing Table Size
11.253.0.0/16 11.1.253.0/24
Internet
Router C Router D
11.253.32.0/19 11.1.253.32/27
11.253.64.0/19 11.1.253.64/27
... 11.1.253.96/27
11.253.160.0/19 11.1.253.128/27
11.253.192.0/19 11.1.253.160/27
11.1.253.192/27
ELTP-GROUP 67 ELTP-GATE 2015
Benefits of VLSM
Route Aggregation- Reducing Routing Table Size
• E.g. Router D is able to summarize the six subnets behind it into a single
• Likewise, Router C is able to summarize the six subnets behind it into a single
advertisement (11.253.0.0/16).
• Finally, since the subnet structure is not visible outside the organization, Router A
injects a single route into the global Internet's routing table : 11.0.0.0/8
ELTP-GROUP 68 ELTP-GATE 2015
Benefits of VLSM
Route Aggregation- Reducing Routing Table Size
11.2.0.0/16 11.1.253.64/27
11.1.253.0/24
11.3.0.0/16
11.1.254.0/24
11.1.253.160/27
11.0.0.0/8
11.253.32.0/19 11.1.253.192/27
11.252.0.0/16
11.253.64.0/19
11.253.0.0/16
11.254.0.0/16
11.253.160.0/19
11.253.192.0/19
ELTP-GROUP 70 ELTP-GATE 2015
Assume that a portion of the ISPs address block (200.25.16.0/20) has been
allocated to 4 organizations.
Finally, the ISP is able to inject the 256 /24s in its allocation into the Internet
with a single advertisement - 200.25.0.0/16
ELTP-GROUP 72 ELTP-GATE 2015
A Router’s Functions
A router is responsible for determining the packet’s path
and switching the packet out the correct port.
Examples IP.
Multi-Protocol Routing
z Routers are capable of running multiple routing protocols (RIP,
IGRP, OSPF, etc.) as well as running multiple routed protocols
(IP, IPX, AppleTalk).
Default Routes
A default route is usually to a border or gateway
router that all routers on a network can send
packets to, if they do not know the route for a
particular network.
ELTP-GROUP 78 ELTP-GATE 2015
Default routes
routing table
ELTP-GROUP 79 ELTP-GATE 2015
Convergence