You are on page 1of 85

Network Layer

CCNA Routing and Switching


Introduction to Networks v6.0
Rules of Communication

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
The Rules
Communication Fundamentals
 All communication methods have three elements in common:
• Source or sender
• Destination or receiver
• Channel or media
 Rules or protocols govern all methods of communication.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
The Rules
Rule Establishment
 Protocols are necessary for effective communication and include:
• An identified sender and receiver
• Common language and grammar
• Speed and timing of delivery
• Confirmation or acknowledgment requirements
 Protocols used in network communications also define:
• Message encoding
• Message delivery options
• Message Formatting and Encapsulation
• Message Timing
• Message Size

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
The Rules
Message Encoding
 Encoding between hosts must be in
appropriate format for the medium.
 Messages are first converted into bits
by the sending host.
 Each bit is encoded into a pattern of
sounds, light waves, or electrical
impulses depending on the network
media
 The destination host receives and
decodes the signals in order to
interpret the message.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
The Rules
Message Formatting and Encapsulation
 There is an agreed format for letters and
addressing letters which is required for
proper delivery.
 Putting the letter into the addressed
envelope is called encapsulation.
 Each computer message is
encapsulated in a specific format, called
a frame, before it is sent over the
network.
 A frame acts like an envelope providing
destination address and source address.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
The Rules
Message Size
 Humans break long messages into smaller
parts or sentences.
 Long messages must also be broken into
smaller pieces to travel across a network.
• Each piece is sent in a separate frame.
• Each frame has its own addressing
information.
• A receiving host will reconstruct multiple
frames into the original message.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
The Rules
Message Timing
 Access Method
• Hosts on a network need to know when to begin sending
messages and how to respond when collisions occur.
 Flow Control
• Source and destination hosts use flow control to negotiate
correct timing to avoid overwhelming the destination and
ensure information is received.
 Response Timeout
• Hosts on the network have rules that specify how long to
wait for responses and what action to take if a response
timeout occurs.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
The Rules
Message Delivery Options
Unicast Message Multicast Message Broadcast Message

One-to-one delivery One-to-many delivery One-to-all delivery

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
Protocols and Standards

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
Protocols
Rules that Govern Communications
 Protocol suites are implemented
by hosts and networking devices
in software, hardware or both.
 The protocols are viewed in terms
of layers, with each higher level
service depending on the
functionality defined by the
protocols shown in the lower
levels.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
Reference Models
The Benefits of Using a Layered Model
 The benefits of using a layered
model include:
• Assisting in protocol design since
protocols at each layer have
defined functions.
• Fostering competition because
products from different vendors can
work together.
• Preventing technology changes in
one layer from affecting other
layers.
• Providing a common language to
describe networking functions and
capabilities.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
Reference Models
The OSI Reference Model
 Application - contains protocols used for process-to-process
communications.
 Presentation - provides for common representation of the data.

 Session - provides services to the presentation layer to


organize its dialogue and to manage data exchange.
 Transport - defines services to segment, transfer, and
reassemble the data.
 Network - provides services to exchange the individual pieces
of data over the network between identified end devices.
 Data Link - provides methods for exchanging data frames
between devices over a common media.
 Physical - describes the mechanical, electrical, functional, and
procedural means to transmit bits across physical connections.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
Reference Models
The TCP/IP Protocol Model
 The TCP/IP Protocol Model
• Created in the early 1970s for
internetwork communications.
• Open Standard.
• Also called The TCP/IP Model
or the Internet Model.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
Reference Models
OSI Model and TCP/IP Model Comparison
 In the OSI model, the network access layer and the application layer of the
TCP/IP model are further divided to describe discrete functions that must
occur at these layers.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
Data Transfer in the Network

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
Data Encapsulation
Message Segmentation
 Large streams of data are divided
into smaller, more manageable
pieces to send over the network.
• By sending smaller pieces, many
different conversations can be
interleaved on the network, called
multiplexing.
• Each piece must be labeled.
• If part of the message fails to
make it to the destination, only the
missing pieces need to be
retransmitted.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
Data Encapsulation
Protocol Data Units
 As application data is passed down the
protocol stack, information is added at each
level. This is known as the encapsulation
process.
 The form that the data takes at each layer is
known as a Protocol Data Unit (PDU).
• Data - application layer PDU
• Segment – Transport layer PDU
• Packet – Network layer PDU
• Frame – Data Link Layer PDU
• Bits – Physical Layer PDU

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18
Data Encapsulation
Encapsulation Example
 The encapsulation process works
from top to bottom:
• Data is divided into segments.
• The TCP segment is encapsulated
in the IP Packet.
• The IP packet is encapsulated in the
Ethernet Frame.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19
Data Encapsulation
De-encapsulation
 The de-encapsulation process
works from bottom to top.
 De-encapsulation is the process
used by a receiving device to
remove one or more of the protocol
headers.
• The data is de-encapsulated as it
moves up the stack toward the end-
user application.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
Data Access
Network Addresses
 Network layer source and
destination addresses - Responsible
for delivering the IP packet from the
original source to the final
destination.
• Source IP address - The IP address
of the sending device, the original
source of the packet.
• Destination IP address - The IP
address of the receiving device, the
final destination of the packet.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21
Data Access
Data Link Addresses
 The purpose of the data link
address is to deliver the data link
frame from one network interface to
another network interface on the
same network.
• As the IP packet travels from source to
destination it is encapsulated in a new
data link frame when it is forwarded by
each router.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22
Data Access
Devices on the Same Network
 The network layer addresses, or IP addresses,
indicate the original source and final
destination.
• Network portion – The left-most part of the
address indicates which network the IP address
is a member of.
• Host portion – The remaining part of the
address identifies a specific device on the
network.
 The data link frame which uses MAC
addressing, is sent directly to the receiving
device.
• Source MAC address - address of sending
device.
• Destination MAC address – address of
receiving device. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23
Data Access
Devices on a Remote Network
 Sending to a remote network - the
source and destination IP
addresses represent hosts on
different networks.
 The data link frame cannot be sent
directly to the remote destination
host. Therefore the frame is sent to
the default gateway (nearest router
interface).
 The router removes the received
Layer 2 information and adds new
data link information before
forwarding out the exit interface.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
Network Layer Protocols

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25
Network Layer in Communications
The Network Layer
• The network layer, which resides at OSI
Layer 3, provides services that allow end
devices to exchange data across a network.
• The network layer uses four processes in
order to provide end-to-end transport:
• Addressing of end devices – IP addresses must be
unique for identification purposes.
• Encapsulation – The protocol data units from the
transport layer are encapsulated by adding IP
header information including source and
destination IP addresses.
• Routing – The network layer provides services to
direct packets to other networks. Routers select
the best path for a packet to take to its destination
network.
• De-encapsulation – The destination host de-
encapsulates the packet to see if it matches its
own.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26
Network Layer in Communications
Network Layer Protocols
• There are several network layer
protocols in existence; however,
the most commonly implemented
are:
• Internet Protocol version 4 (IPv4)
• Internet Protocol version 6 (IPv6)

Note: Legacy network layer protocols


are not discussed in this course.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27
Characteristics of the IP Protocol
Encapsulating IP
• At the network layer, IP encapsulates
the transport layer segment by
adding an IP header for the purpose
of delivery to the destination host.
• The IP header stays the same from
the source to the destination host.
• The process of encapsulating data
layer by layer enables the services at
different layers to scale without
affecting other layers.
• Routers implement different network
layer protocols concurrently over a
network and use the network layer
packet header for routing.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 28
Characteristics of the IP Protocol
Characteristics of IP
• IP was designed as a protocol
with low overhead – it
provides only the functions
required to deliver a packet
from the source to a
destination.
• An IP packet is sent to the
destination without prior
establishment of a connection
• IP was not designed to track
and manage the flow of
packets.
• These functions, if required, are
performed by other layers –
primarily TCP

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29
Characteristics of the IP Protocol
IP - Connectionless
• IP is a connectionless
protocol:
• No dedicated end-to-end
connection is created before data
is sent.
• Very similar process as sending
someone a letter through snail
mail.
• Senders do not know whether or
not the destination is present,
reachable, or functional before
sending packets.
• This feature contributes to the low
overhead of IP.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 30
Characteristics of the IP Protocol
IP – Best Effort Delivery
 IP is a Best Effort Delivery
protocol:
• IP is considered “unreliable”
because it does not guarantee
that all packets that are sent will
be received.
• Unreliable means that IP does not
have the capability to manage and
recover from undelivered, corrupt,
or out of sequence packets.
• If packets are missing or not in the
correct order at the destination,
upper layer protocols/services
must resolve these issues.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 31
Characteristics of the IP Protocol
IP – Media Independent
• IP operates independently from the
media that carries the data at lower
layers of the protocol stack – it does
not care if the media is copper
cables, fiber optics or wireless.
• The OSI data link layer is responsible
for taking the IP packet and preparing
it for transmission over the
communications medium.
• The network layer does have a
maximum size of the PDU that can be
transported – referred to as MTU
(maximum transmission unit).
• The data link layer tells the network
layer the MTU.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32
IPv4 Packet
IPv4 Packet Header
• An IPv4 packet header consists of the fields containing binary numbers. These numbers identify
various settings of the IP packet which are examined by the Layer 3 process.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33
IPv4 Packet
IPv4 Packet Header (cont.)
• IPv4 Packet fields:
• Version – Specifies that the packet is IP version 4
• Internet Header Length (IHL)
• Differentiated Services or DiffServ (DS) – Used to determine the priority of each packet on the network.
• Total Length
• Identification - Identifying the group of fragments of a single IP datagram
• Flags – Used to control or identify fragments
• Fragment Offset- specifies the offset of a particular fragment relative to the beginning of the original unfragmented
IP datagram
• Time-to-Live (TTL) – Limits the lifetime of a packet – decreased by one at each router along the way.
• Protocol – Used to identify the next level protocol.
• Header Checksum - Used for error-checking of the header
• Source IPv4 Address – Source address of the packet.
• Destination IPv4 Address – Address of destination.
• Options
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 34
IPv4 Network Addresses

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 35
Binary and Decimal Conversion
IPv4 Addresses
 Binary numbering system consists of the numbers 0 and 1 called bits
• IPv4 addresses are expressed in 32 binary bits divided into 4 8-bit octets

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 36
Binary and Decimal Conversion
IPv4 Addresses (Cont.)
 IPv4 addresses are commonly expressed in dotted decimal notation

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 37
Binary and Decimal Conversion
Positional Notation
 The first row identifies the number base
or radix. Decimal is 10. Binary is based
on 2, therefore radix will be 2
 The 2nd row considers the position of
the number starting with 0. These
numbers also represent the exponential
value that will be used to calculate the
positional value (4th row).
 The 3rd row calculates the positional
Applying decimal positional notation
value by taking the radix and raising it
by the exponential value of its position.
Note: n^0 is always = 1.
 The positional value is listed in the
fourth row.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 38
Binary and Decimal Conversion
Positional Notation (Cont.)

 Applying binary positional notation.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39
Binary and Decimal Conversion
Binary to Decimal Conversion
 To convert a binary IPv4 address to decimal enter the 8-bit binary number of each octet under the
positional value of row 1 and then calculate to produce the decimal.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40
Binary and Decimal Conversion
Decimal to Binary Conversion
 To convert a decimal IPv4address
to binary use the positional chart
and check first if the number is
greater than the 128 bit. If no a 0 is
placed in this position. If yes then a
1 is placed in this position.
 128 is subtracted from the original
number and the remainder is then
checked against the next position
(64) If it is less than 64 a 0 is
placed in this position. If it is
greater, a 1 is placed in this
position and 64 is subtracted.
 The process repeats until all
positional values have been
entered.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 41
Binary and Decimal Conversion
Decimal to Binary Conversion Examples

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42
IPv4 Address Structure
Network and Host Portions
 An IPv4 address is hierarchical.
• Composed of a Network portion
and Host portion.
 All devices on the same network
must have the identical network
portion.
 The Subnet Mask helps devices
identify the network portion and
host portion.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43
IPv4 Address Structure
The Subnet Mask
 Three IPv4 addresses must be
configured on a host:
• Unique IPv4 address of the host.
• Subnet mask - identifies the
network/host portion of the IPv4
address.
• Default gateway -IP address of the
local router interface.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 44
IPv4 Address Structure
The Subnet Mask (Cont.)
 The IPv4 address is compared to the subnet mask bit by bit, from left to right.

 A 1 in the subnet mask indicates that the corresponding bit in the IPv4 address is a
network bit.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 45
IPv4 Address Structure
Logical AND
 A logical AND is one of three
basic binary operations used in
digital logic.
 Used to determine the Network
Address
 The Logical AND of two bits yields
the following results:

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 46
IPv4 Address Structure
The Prefix Length
 The Prefix Length:
• Shorthand method of
expressing the subnet mask.
• Equals the number of bits in
the subnet mask set to 1.
• Written in slash notation, /
followed by the number of
network bits.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 47
IPv4 Address Structure
Network, Host, and Broadcast Addresses
 Types of Addresses in Network
192.168.10.0/24
• Network Address - host portion is all 0s
(.00000000)
• First Host address - host portion is all 0s
and ends with a 1 (.00000001)
• Last Host address - host portion is all 1s
and ends with a 0 (.11111110)
• Broadcast Address - host portion is all
1s (.11111111)

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 48
IPv4 Unicast, Broadcast, and Multicast
Static IPv4 Address Assignment to a Host
 Some devices like printers, servers
and network devices require a fixed
IP address.
 Hosts in a small network can also be
configured with static addresses.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 49
IPv4 Unicast, Broadcast, and Multicast
Dynamic IPv4 Address Assignment to a Host
 Most networks use Dynamic Host
Configuration Protocol (DHCP) to
assign IPv4 addresses dynamically.
 The DHCP server provides an IPv4
address, subnet mask, default
gateway, and other configuration
information.
 DHCP leases the addresses to hosts
for a certain length of time.
 If the host is powered down or taken
off the network, the address is
returned to the pool for reuse.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 50
IPv4 Unicast, Broadcast, and Multicast
IPv4 Communication

 Unicast – one to one  Broadcast– one to  Multicast – one to a


communication. all. select group.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 51
IPv4 Unicast, Broadcast, and Multicast
Unicast Transmission
 Unicast – one to one
communication.
• Use the address of the
destination device as the
destination address.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 52
IPv4 Unicast, Broadcast, and Multicast
Broadcast Transmission

 Broadcast– one to all


• Message sent to everyone in the
LAN (broadcast domain.)
• destination IPv4 address has all
ones (1s) in the host portion.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 53
IPv4 Unicast, Broadcast, and Multicast
Multicast Transmission

 Multicast– one to a select group.


• 224.0.0.0 to 239.255.255.255
addresses reserved for multicast.
• routing protocols use multicast
transmission to exchange routing
information.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 54
Types of IPv4 Addresses
Public and Private IPv4 Addresses
 Private Addresses
• Not routable
• Introduced in mid 1990s due to depletion of IPv4
addresses
• Used only in internal networks.
• Must be translated to a public IPv4 to be routable.
• Defined by RFC 1918
 Private Address Blocks
• 10.0.0.0 /8 or 10.0.0.0 to 10.255.255.255
• 172.16.0.0 /12 or 172.16.0.0 to
172.31.255.255192.168.0.0 /16
• 192.168.0.0 to 192.168.255.255
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 55
Types of IPv4 Addresses
Special User IPv4 Addresses
 Loopback addresses (127.0.0.0 /8 or 127.0.0.1)
• Used on a host to test if the TCP/IP
configuration is operational.
 Link-Local addresses (169.254.0.0 /16 or
169.254.0.1)
• Commonly known as Automatic Private IP
Addressing (APIPA) addresses.
• Used by Windows client to self configure if no
DHCP server available.
 TEST-NET addresses (192.0.2.0/24 or 192.0.2.0 to
192.0.2.255)
• Used for teaching and learning.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 56
Types of IPv4 Addresses
Legacy Classful Addressing
 In 1981, Internet IPv4 addresses were
assigned using classful addressing (RFC 790)
 Network addresses were based on 3 classes:
• Class A (0.0.0.0/8 to 127.0.0.0/8) – Designed to
support extremely large networks with more than
16 million host addresses.
• Class B (128.0.0.0 /16 – 191.255.0.0 /16) –
Designed to support the needs of moderate to
large size networks up to approximately 65,000
host addresses.
• Class C (192.0.0.0 /24 – 223.255.255.0 /24) –
Designed to support small networks with a
maximum of 254 hosts.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 57
Types of IPv4 Addresses
Classless Addressing
 Classful Addressing wasted addresses and
exhausted the availability of IPv4
addresses.
 Classless Addressing Introduced in the
1990s
• Classless Inter-Domain Routing (CIDR,
pronounced “cider”)
• Allowed service providers to allocate IPv4
addresses on any address bit boundary
(prefix length) instead of only by a class A,
B, or C.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 58
Types of IPv4 Addresses
Assignment of IP Addresses
 The following organizations manage and
maintain IPv4 and IPv6 addresses for the
various regions.
• American Registry for Internet Numbers
(ARIN)- North America.
• Réseaux IP Europeans (RIPE) - Europe, the
Middle East, and Central Asia
• Asia Pacific Network Information Centre
(APNIC) - Asia and Pacific regions
• African Network Information Centre (AfriNIC) –
Africa
• Regional Latin-American and Caribbean IP
Address Registry (LACNIC) - Latin America and
some Caribbean islands
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 59
Subnetting an IPv4 Network

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 60
Network Segmentation
Broadcast Domains
 Devices use broadcasts in an Ethernet LAN to locate:
• Other devices - Address Resolution Protocol (ARP) which sends Layer 2 broadcasts to a known IPv4
address on the local network to discover the associated MAC address.
• Services – Dynamic Host Configuration Protocol (DHCP) which sends broadcasts on the local network
to locate a DHCP server.
 Switches propagate broadcasts out all interfaces except the interface on which it was received.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 61
Network Segmentation
Problems with Large Broadcast Domains
 Hosts can generate excessive broadcasts and negatively affect the network.
• Slow network operations due to the significant amount of traffic it can cause.
• Slow device operations because a device must accept and process each broadcast packet.
 Solution: Reduce the size of the network to create smaller broadcast domains. These smaller
network spaces are called subnets.

One
Broadcast Broadcast in Broadcast in
Domain LAN 1 LAN 2
contained in contained in
1 subnet 1 subnet

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 62
Network Segmentation
Reasons for Subnetting
 Reduces overall network traffic and improves network performance.

 Enables an administrator to implement security policies such as which subnets are allowed or not
allowed to communicate together. Communicating between
Networks

Subnetting by Location

Subnetting by Device Type

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 63
Subnetting an IPv4 Network
Octet Boundaries

Networks
are most
easily
subnetted
at the
octet
boundary
of /8, /16,
and /24

 Prefix length and the subnet mask are different ways of identifying the network
portion of an address.
 Subnets are created by borrowing host bits for network bits.
 More host bits borrowed, the more subnets that can be defined .

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 64
Subnetting an IPv4 Network
Subnetting on the Octet Boundary

 Subnetting Network 10.x.0.0/16


 Define up to 256 subnets with each subnet capable of connecting 65,534 hosts.
 First two octets identify the network portion while the last two octets are for host IP addresses.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 65
Subnetting an IPv4 Network
Subnetting on the Octet Boundary (Cont.)

 Subnetting Network 10.x.x.0/24


 Define 65,536 subnets each capable of connecting 254 hosts.
 /24 boundary is very popular in subnetting because of number of hosts.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 66
Subnetting an IPv4 Network
Classless Subnetting
Subnetting a /24 Network

Subnets can borrow bits from any host bit position to create other masks.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 67
Subnetting an IPv4 Network
Classless Subnetting Example

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 68
Subnetting an IPv4 Network
Creating 2 Subnets
 /25 Subnetting Topology

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 69
Subnetting an IPv4 Network
Subnetting Formulas

Calculate Number of Subnetting a /24 Network


Subnets Formula

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 70
Subnetting an IPv4 Network
Subnetting Formulas (Cont.)

Calculate Number of
Calculating the Number of Hosts
Hosts Formula

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 71
Subnetting an IPv4 Network
Creating 4 Subnets
 /26 Subnetting Topology

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 72
Subnetting an IPv4 Network
Creating 4 Subnets (Cont.)
 /26 Subnetting Topology

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 73
Subnetting an IPv4 Network
Creating 4 Subnets (Cont.)
 /26 Subnetting Topology

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 74
Subnetting a /16 and /8 Prefix
Creating Subnets with a /16 prefix

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 75
Subnetting a /16 and /8 Prefix
Creating 100 Subnets with a /16 prefix

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 76
Subnetting a /16 and /8 Prefix
Calculating the Hosts

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 77
Subnetting to Meet Requirements
Subnetting Based on Host Requirements

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 78
Subnetting to Meet Requirements
Subnetting Based On Network Requirements

Host devices
used by
employees in
the Engineering
department in
one network
and
Management in
a separate
network.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 79
Subnetting to Meet Requirements
Network Requirement Example

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 80
Subnetting to Meet Requirements
Network Requirement Example (Cont.)

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 81
Benefits of Variable Length Subnet Masking
Traditional Subnetting Wastes Addresses

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 82
Benefits of Variable Length Subnet Masking
Variable Length Subnet Masks (VLSM)
Traditional Subnets of Varying Sizes

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 83
Benefits of Variable Length Subnet Masking
Basic VLSM
Basic Subnetting

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 84

You might also like