CCNA Chapter 5477
CCNA Chapter 5477
Introduction
The Network layer (Layer 3) fits into the OSI model - between the Transport
layer (Layer 4) and the Data Link layer (Layer 2). The Network layer is responsible
for taking the Layer 4 PDU (TCP segments) and ensuring that it is correctly
addressed and routed so it can reach its final destination anywhere in the world.
Anyone who accesses the Internet uses the TCP/IP protocol. In the same way
that TCP at Layer 4 has a PDU, so too does IP at the Network layer. The primary
Network layer protocol used on the Internet is IPv4, so this chapter focuses on the
IPv4 packet structure. Understanding the hierarchical IPv4 addressing schemes is
necessary for further networking studies because almost all addresses currently
used on the Internet are IPv4 addresses. FDFFFFFFFFFFFFFDDDDDDDDDDDDFF
Define the following key terms: network layer protocols, media dependent,
packet, packet header, IPv4 address, and gateway.
Describe the role of the network layer.
Explain the characteristics of IPv4
Describe the reasons why hosts are group into networks
Explain hierarchical addressing scheme
Module 5 – The Network Layer
The Network layer is responsible for addressing packets and then using those
addresses to route packets over the Internet from the sending host computer, through
many intermediary routers to the final destination host computer.
Internet Protocol version 4 (IPv4) – is the most widely used version of IP.
Novell Internetwork Packet Exchange (IPX) - a legacy network protocol used by the
Novell NetWare operating systems to route packets through an internetwork
IP Characteristics
B. Best Effort Delivery (Unreliable) - Unreliable means simply that IP does not have the
capability to manage and recover from undelivered or corrupt packets. Since
protocols at other layers can manage reliability, IP is allowed to function very
efficiently at the Network Layer.
In TCP/IP based networks, the Network Layer PDU is the IP Packet. A packet
header is added during the encapsulation process.
a. Source Address: IPv4 address of host sending the packet: Remains unchanged
throughout the passage of the packet across the internetwork. Enables the
destination host to respond to the source if required.
c. Type of Service: Data QoS priority: Enables router to give priority to voice and
network route information over regular data.
d. Protocol: The data payload protocol type: Denotes if the data is a UDP datagram
or TCP segment because these Transport layer protocols manage the receipt of
their PDUs differently.
g. Header Checksum –It is used for checking if header has been corrupted.
i. Fragment Offset - If router has to split a packet, this gives order for putting
pieces together.
l. Version – Version 4
b. Purpose – what software and shared resources do people use? How much bandwidth
do they use? The volume of traffic can also be considered in network design. For
example, if a lot of video conferencing is required, the excessive traffic caused by
multicasting during video conferencing would create a need for a separate network
subnet for this purpose.
a. Performance - Too much broadcast traffic can lead to network congestion. Routers
block broadcasts unless specifically configured to forward them. Replacing the
switch in the diagram with a router creates two separate IP sub-networks and two
broadcast domains. Broadcasts are now contained within each network.
b. Security - Dividing networks based on ownership means that access to and from
resources outside each network can be prohibited, allowed, or monitored. Security
should always be considered in network design. Access Control Lists, Firewalls and
server access policies are some of the ways in which network security can be
regulated.
For all other destinations, the hosts only need to know the address of an
intermediary device, to which they send packets for all other destinations addresses.
This intermediary device is called a gateway. The gateway is a router on a network
that serves as an exit from that network.
Using hierarchical addressing means that the layer 3 address are divided into a
network level and then the host level.
o By the time the packet arrives at the destination host network, the whole
destination address of the host will have been used to deliver the packet.
The IP Version 4 Address contains elements that uniquely identify both the network
and host. An IPv4 address has 32 bits or 4 bytes. We divide these 32 bits into two
components: the network portion and the host portion. The length of network part can
vary.
• The network portion of the address is the same for all hosts on the network.
This hierarchy means that routers only need to know the network portion – not the
address of each individual host.
3. What are the basic characteristics of IP? Why was IP designed with these
characteristics?
4. What is the purpose of the time to live (TTL) field in the packet header?
5. Networks have to be split up because very large networks are too difficult to
manage. What are the ways of splitting up a network?
Routing is the process of moving data packets through a series of networks from the
sending host to the destination host. Routers are the devices that connect a network to
other networks. A router has two or more gateways - connections or "interfaces" - one for
each network to which it is connected. Each host on a network is given a gateway, which is
the router interface (the IPv4 address on a router) that will take data packets from the host
and route them to other hosts outside of the sending host’s network.
A gateway is like a doorway that leads into and out of a room - all data packets into
or out of a network go through the gateway.
Default Gateway
Address Types
Each host on the network has two addresses: the MAC address and the IP address.
The routing table stores information about directly connected and remote networks.
Remote networks are networks not directly connected to the router (manual configuration
or learned dynamically).
Each router has a routing table. This contains a list of known networks and the
best way to get there – outgoing port and address of next-hop router. The routing table
stores information about connected and remote networks.
o These interfaces are the gateways for the hosts on different local
networks.
Remote networks are networks that are not directly connected to the router.
The router looks at the IP address of a packet. It decides which network this address
is on. If it knows the network it forwards the packet. If it does not know the network it
drops the packet.
Destination network
Next-hop
Metric
• When forwarding a packet, the router will select the most specific
route.
Default Route
A router can be configured to have a default route. A default route is a route that
will match all destination networks. In IPv4 networks, the address 0.0.0.0 is used for this
purpose.
The default route is used to forward packets for which there is no entry in the
routing table for the destination network. Packets with a destination network address that
does not match a more specific route in the routing table are forwarded to the next-hop
router associated with the default route.
Hops
A packet may pass through many routers on its journey. The trip from one router
to the next is called a hop and the next router is called the next hop router. Each router
looks at the IP address in the packet header and decides what to do with the packet next
Some routes can have multiple next-hops. This indicates that there are multiple
paths to the same destination network
Packet Forwarding
o Drop it
If the routing table does not contain a more specific route entry for an arriving
packet, the packet is forwarded to the interface indicated by a default route, if one exists.
The default route is also known as the Gateway of Last Resort.
Default routes are important because the gateway router is not likely to have a
route to every possible network on the Internet. If the packet is forwarded using a default
route, it should eventually arrive at a router that has a specific route to the destination
network.
Routing requires that every hop, or router, along the path to a packet's destination
have a route to forward the packet. The routing table contains the information to make
packet forwarding decisions.
Every router between each source and destination must have routes.
Changes to the topology require static route changes. If updating is not done
in a timely fashion, the routing information may be incomplete or inaccurate,
resulting in packet delays and possible packet loss
1. Describe routing.
Module 5 Quiz
Directions. On the space provided before each number, write the letter of the correct
answer.
__________2. An IPv4 address can be broken down into two parts. These are
A. Network portion and transport portion
B. Network portion and host portion
C. Gateway portion and host portion
D. Source portion and destination portion
__________3. What information from a packet does a router use in order to choose a route
for forwarding the packet?
A. Host portion of destination IP address
B. Host portion of source IP address
C. Network portion of destination IP address
D. Network portion of source IP address
__________4. What name is given to one stage of a packet’s journey as it moves from one
router to the next?
A. Trip C. Step
B. Hop D. Section
__________5. What contact does IPv4 make with the destination before sending a packet?
A. It sends a message to say that a packet will be arriving.
B. It checks that the destination host exists.
C. It checks that the destination host is ready to receive.
D. It does not make any contact before sending
__________8. Refer to the diagram. What should be configured as the default gateway for
host A?
A. 192.168.5.3 C. 192.168.7.254
B. 192.168.5.253 D. 192.168.5.254