0% found this document useful (0 votes)
17 views81 pages

Unit 2

The document discusses the network layer's role in packet delivery, forwarding, and routing, highlighting key concepts such as direct vs. indirect delivery and the importance of routing tables. It covers various routing protocols, including distance vector and link state routing, as well as multicast routing techniques. Additionally, it explains the differences between unicast and multicast routing, emphasizing the efficiency of constructing shortest path trees for data transmission.

Uploaded by

nirmaclg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views81 pages

Unit 2

The document discusses the network layer's role in packet delivery, forwarding, and routing, highlighting key concepts such as direct vs. indirect delivery and the importance of routing tables. It covers various routing protocols, including distance vector and link state routing, as well as multicast routing techniques. Additionally, it explains the differences between unicast and multicast routing, emphasizing the efficiency of constructing shortest path trees for data transmission.

Uploaded by

nirmaclg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 81

Network Layer:

Delivery,
examp
note
info
le

Forwarding,
and Routing
DELIVER
Y The network layer supervises the handling of
the packets by the underlying physical
networks. We define this handling as the
examp

delivery of a packet.
note

info
le

Topics discussed in this section:

Direct Versus Indirect Delivery


FORWARDIN
G
Forwarding means to place the packet in its
route to its destination. Forwarding requires a
host or a router to have a routing table. When a
examp

host has a packet to send or when a router has


note

received a packet to be forwarded, it looks at

info
le

this table to find the route to the final


destination.

Topics discussed in this section:

Forwarding Techniques
Forwarding Process
Routing Table
examp

note
info
le

Direct and indirect delivery

Please note it down...


examp

note
info
le

Route method versus next-hop method


Please note it down...
examp

note
info
le

Host-specific versus network-specific method


Please note it down...
examp

note
info
le

Default method
Please note it down...
examp

note
info
le

Simplified forwarding module in classless address

Please note it down...


examp

note
info
In classless addressing, we need at least four
le

columns in a routing table.

Please note it down...


Make a routing table for router R1, using the
configuration following.

examp
note
info
le
Please note it down...
Make a routing table for
router R1, using the
configuration following.

examp
note
info
le
Routing table for router R1

Please note it down...


Show the forwarding process if a packet arrives at R1
in Figure with the destination address 180.70.65.140.
Solution
The router performs the following steps:
1. The first mask (/26) is applied to the destination

examp
address.

note
info
The result is 180.70.65.128, which does not match

le
the
corresponding network address.
2. The second mask (/25) is applied to the destination
address. The result is 180.70.65.128, which
matches the
corresponding network address. The next-hop
address
and the interface number m0 are passed toPlease
ARP note
for it down...
Show the forwarding process if a packet arrives at R1
in Figure with the destination address 201.4.22.35.

examp
Solution

note
info
The router performs the following steps:

le
1. The first mask (/26) is applied to the destination
address. The result is 201.4.22.0, which does not
match the corresponding network address.
2. The second mask (/25) is applied to the
destination address. The result is 201.4.22.0,
which does not match the corresponding network
address (row 2).
Please note it down...
Show the forwarding process if a packet arrives at R1
in Figure with the destination address 201.4.22.35.
3. The third mask (/24) is applied to the destination
address. The result is 201.4.22.0, which matches

examp
Solution
the

note
info
Thecorresponding
router performs the following
network address.steps:
The destination

le
1. The first mask
address of the(/26) is applied
packet and thetointerface
the destination
number
m3address.
are The result is 201.4.22.0, which does not
match
passedthe to corresponding
ARP. network address.
2. The second mask (/25) is applied to the
destination address. The result is 201.4.22.0,
which does not match the corresponding network
address (row 2).
Please note it down...
As an example of hierarchical routing, let us consider
Figure. A regional ISP is granted 16,384 addresses
starting from 120.14.64.0. The regional ISP has
decided to divide this block into four subblocks, each
with 4096 addresses. Three of these subblocks are

examp
assigned to three

note
info
local ISPs; the second subblock is reserved for future

le
use. Note that the mask for each block is /20
because the original block with mask /18 is divided
into 4 blocks.
The first local ISP has divided its assigned subblock
into 8 smaller blocks and assigned each to a small
ISP. Each small ISP provides services to 128
households, each using four addresses.
Please note it down...
As an example of hierarchical routing, let us consider
The second
Figure. local ISP
A regional ISP has divided16,384
is granted its block into 4
addresses
blocks
startingand has assigned
from 120.14.64.0. the addresses
The regionalto four
ISPlarge
has
organizations.
decided to divide this block into four subblocks, each
with 4096 addresses. Three of these subblocks are

examp
The third to
assigned local
threeISP has divided its block into 16

note
info
blocks andtheassigned
local ISPs; each block
second subblock to a
is reserved for small
future

le
organization.
use. Note that Eachthe small
mask organization
for each block has is 256
/20
addresses,
because the andoriginal
the mask is /24.
block with mask /18 is divided
into 4 blocks.
There is a sense of hierarchy in this configuration. All
The first local ISP has divided its assigned subblock
routers in the Internet send a packet with destination
into 8 smaller blocks and assigned each to a small
address 120.14.64.0 to 120.14.127.255 to the
ISP. Each small ISP provides services to 128
regional ISP.
households, each using four addresses.
Please note it down...
examp
note
info
le
Hierarchical routing with ISPs
Please note it down...
examp
note
info
le
Common fields in a routing table

Please note it down...


One utility that can be used to find the contents of a
routing table for a host or router is netstat in UNIX or
LINUX. The next slide shows the list of the contents of

examp
a default server. We have used two options, r and n.

note
info
The option r indicates that we are interested in the

le
routing table, and the option n indicates that we are
looking for numeric addresses. Note that this is a
routing table for a host, not a router. Although we
discussed the routing table for a router throughout the
chapter, a host also needs a routing table.

Please note it down...


One utility that can be used to find the contents of a
routing table for a host or router is netstat in UNIX or
LINUX. The next slide shows the list of the contents
of a default server. We have used two options, r and
n. The option r indicates that we are interested in the
routing table, and the option n indicates that we are
looking for numeric addresses. Note that this is a

note
routing table for a host, not a router. Although we

info
discussed the routing table for a router throughout
the chapter, a host also needs a routing table.

Please note it down...


The destination column here defines the
network address. The term gateway used
by UNIX is synonymous with router. This
column actually defines the address of the
next hop. The value 0.0.0.0 shows that the
delivery is direct. The last entry has a flag
of G, which means that the destination can
be reached through a router (default
router). The Iface defines the interface.
exaexamp
mpl le
e
More information about the IP address and physical
address of the server can be found by using the
ifconfig command on the given interface (eth0).

examp
note
info
The destination column here defines the network

le
address. The term gateway used by UNIX is
synonymous with router. This column actually defines
the address of the next hop. The value 0.0.0.0 shows
that the delivery is direct. The last entry has a flag of
G, which means that the destination can be reached
through a router (default router). The Iface defines the
interface.
Please note it down...
More information about the IP address and physical
address of the server can be found by using the
ifconfig command on the given interface (eth0).

note
info
Please note it down...
UNICAST
ROUTING
PROTOCOLS A routing table can be either static or dynamic.
A static table is one with manual entries. A
dynamic table is one that is updated
automatically when there is a change

examp
somewhere in the Internet. A routing protocol is

note
info
a combination of rules and procedures that lets

le
routers in the Internet inform each other of
changes.

Topics discussed in this section:

Optimization
Intra-
Configuration of and
theInterdomain
server forRouting
Example
Distance Vector Routing and RIP
Link State Routing and OSPF
Path Vector Routing and BGP
examp

note
info
le

Autonomous systems
Please note it down...
examp

note
info
le

Popular routing protocols

Please note it down...


examp

note
info
le

Distance vector routing tables


Please note it down...
examp

note
info
le

Initialization of tables in distance vector routing


Please note it down...
examp

In distance vector routing, each node shares its

note
info
routing table with its
le

immediate neighbors periodically and when


there is a change.

Please note it down...


examp

note
info
le

Updating in distance vector routing


Please note it down...
examp

note
info
le

Two-node instability

Please note it down...


examp

note
info
le

Three-node instability

Please note it down...


examp

note
info
le

Example of a domain using RIP

Please note it down...


examp

note
info
le

Concept of link state routing


Please note it down...
examp

note
info
le

Link state knowledge

Please note it down...


examp

note
info
le

Dijkstra algorithm
Please note it down...
examp

note
info
le

Example of formation of shortest path tree


Please note it down...
examp

note
info
le

https://meet.google.com/tsc-vvcn-ien

Routing table for node A

Please note it down...


examp

note
info
le

Areas in an autonomous system

Please note it down...


examp

note
info
le

Types of links

Please note it down...


examp

note
info
le

Point-to-point link

Please note it down...


examp

note
info
le

Transient link

Please note it down...


examp

note
info
le

Stub link

Please note it down...


examp

note
info
le

Example of an AS and its graphical representation in OSPF


Please note it down...
examp

note
info
le

Initial routing tables in path vector routing


Please note it down...
examp

note
info
le

Stabilized tables for three autonomous systems

Please note it down...


examp

note
info
le

Internal and external BGP sessions

Please note it down...


MULTICAST
ROUTING
PROTOCOLS
In this section, we discuss multicasting and
multicast routing protocols
examp

note
info
le

Topics discussed in this section:

Unicast, Multicast, and Broadcast


Applications
Multicast Routing
Routing Protocols
Internal and external BGP sessions
examp

note
info
le

Unicasting

Please note it down...


examp

In unicasting, the router forwards the received

note
info
le

packet through
only one of its interfaces.

Please note it down...


examp

note
info
le

Multicasting
Please note it down...
examp

note
In multicasting, the router may

info
le

forward the received packet


through several of its interfaces.

Please note it down...


examp

note
info
le

Multicasting versus multiple unicasting


Please note it down...
examp

Emulation of multicasting through multiple

note
info
unicasting is not efficient
le

and may create long delays,


particularly with a large group.

Please note it down...


examp

In unicast routing, each router in the domain has

note
info
a table that defines
le

a shortest path tree to possible destinations.

Please note it down...


examp

note
info
le

Shortest path tree in unicast routing


Please note it down...
examp

In multicast routing, each involved router needs

note
info
to construct
le

a shortest path tree for each group.

Please note it down...


examp

note
info
le

Source-based tree approach


Please note it down...
examp

note
In the source-based tree approach, each router

info
le

needs to have one shortest path tree for each


group.

Please note it down...


examp

note
info
le

Group-shared tree approach


Please note it down...
examp

In the group-shared tree approach, only the core

note
info
le

router, which has a shortest path tree for each


group, is involved in multicasting.

Please note it down...


examp

note
info
le

Taxonomy of common multicast protocols

Please note it down...


examp

note
info
Multicast link state routing uses the source-
le

based tree approach.

Please note it down...


examp

note
info
Flooding broadcasts packets, but creates loops in
le

the systems.

Please note it down...


examp

note
info
RPF eliminates the loop in the
le

flooding process.

Please note it down...


examp

note
info
le

Reverse path forwarding (RPF)


Please note it down...
examp

note
info
le

Problem with RPF

Please note it down...


examp

note
info
le

RPF Versus RPB

Please note it down...


RPB creates a shortest path broadcast tree from
examp

note
info
the source to each destination.
le

It guarantees that each destination receives one


and only one copy
of the packet.

Please note it down...


examp

note
info
le

RPF, RPB, and RPM


Please note it down...
examp

RPM adds pruning and grafting to RPB to create a

note
info
multicast shortest
le

path tree that supports dynamic membership


changes.

Please note it down...


examp

note
info
le

Group-shared tree with rendezvous router


Please note it down...
examp

note
info
le

Sending a multicast packet to the rendezvous router


Please note it down...
examp

In CBT, the source sends the multicast packet

note
info
(encapsulated in a unicast packet) to the core
le

router. The core router decapsulates the packet


and forwards it to all interested interfaces.

Please note it down...


examp

note
info
le

PIM-DM is used in a dense multicast


environment, such as a LAN.

Please note it down...


PIM-DM uses RPF and pruning and grafting
examp

note
strategies to handle multicasting.

info
le

However, it is independent of the underlying


unicast protocol.

Please note it down...


examp

note
info
PIM-SM is used in a sparse multicast environment
le

such as a WAN.

Please note it down...


examp

note
info
PIM-SM is similar to CBT but uses a simpler
le

procedure.

Please note it down...


examp

note
info
le

Logical tunneling
Please note it down...
examp

note
info
le

MBONE

Please note it down...

You might also like