Network Layer Delivery, Forwarding and Routing
Network Layer Delivery, Forwarding and Routing
Delivery,forwarding and
routing
Delivery
There are two different methods of delivery:
Direct delivery
Indirect delivery
Delivery
• The delivery of a packet is called direct if the deliverer(host or router)
and the destination are on the same network.
Delivery
• The delivery of a packet is called indirect if the deliverer(host or
router) and the destination are on different networks.
FORWARDING
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 host has a packet to
send or when a router has received a packet to be
forwarded, it looks at this table to find the route to the
final destination.
Routing inside an
autonomous system
is referred to as
intradomain routing.
Routing between
autonomous system
is referred to as
interdomain routing.
Intra- and Interdomain Routing
An internet can be so large that one routing protocol cannot handle the
task of updating the routing tables of all routers.
For this reason,an internet is divided into autonomous systems.
An autonomous system(AS) is a group of networks and routers under
the authority of a single administration.
Routing inside an autonomous system is referred to as intradomain
routing.
Routing between autonomous system is referred to as interdomain
routing.
Intra- and Interdomain Routing
We discuss two intradomain routing protocols:
Distance vector
Link state
We also introduce one interdomain routing protocol:
Path vector
Note:Routing Information protocol(RIP) is an implementation of the
distance vector protocol.it is an intradomain routing protocol used
inside an autonomous sysrem.It is a very simple protocol based on
distance vector roting.
Intra- and Interdomain Routing
We discuss two intradomain routing protocols:
Distance vector
Link state
We also introduce one interdomain routing protocol:
Path vector
Open shortest path first(OSPF) IS AN IMPLEMENTATION of the link state
protocol.
Border Gateway Protocol(BGP) is an implementation of the path vector
protocol.
Figure Popular routing protocols
Distance Vector Routing
• In distance vector routing, the least cost route between any two
nodes is the route with minimum distance.
• In this protocol ,each node maintains a vector(node) of minimum
distances to every node.
• The table at each node also guides the packets to the desired node by
showing the next stop in the route(next-hop routing).
Steps involved:
1.Initialization
2.Sharing
3.updating
Figure Distance vector routing tables
The table for node A shows how we can reach any node from this node.for example,our
least cost to reach node E is 6.The route passes through c.
Figure b Initialization of tables in distance vector routing
Initialization
• At the beginning,each node can know only the distance between itself
and its immediate neighbors,thos directly connected to it.
• So for the moment, we assume that each node can send a message to
the immediate neighbors and find the distance between itself and
these neighbors.
• fig:b shows the initial tables for each node.
• The distance for any entry that is not a neighbor is marked as
infinite(unreachable).
Sharing
• The whole idea of distance vector routing is the sharing of
information between neighbors.
• Although node A doesn't know about node E, node C does.
• So if node C shares its routing table with A, node A can also know how
to reach node E.
• On the other hand, node C doesn't know how to reach node D, but
node A does.
• If node A shares its routing table with node C,node C also knows how
to reach node D.
Sharing
• In other words, nodes A and C as immediate neighbors, can improve
their routing tables if they help each other.
• A node therefore can send only the first two columns of its table to
any neighbor.
• In other words,sharing here means sharing only the first two columns.
Note
AS1-AS2-AS3-AS4
OR
AS1-AS3-AS4
Updating
When a speaker node receives a two-column table from a neighbor,it
updates its own table by adding the nodes that are not in its routing
table and adding its own autonomous system and the autonomous
system that sent the table.