Network Layer: Delivery, Forwarding, and Routing
Network Layer: Delivery, Forwarding, and Routing
Network Layer: Delivery, Forwarding, and Routing
Delivery, Forwarding,
and Routing
DELIVERY
• The network layer supervises the handling of
the packets by the underlying physical
networks.
• We define this handling as the delivery of a
packet.
Direct Versus Indirect Delivery
The delivery of a packet to its final destination is
accomplished by using two different methods of
delivery, direct and indirect.
Direct Delivery
Direct delivery occurs when the source and the
destination of the packet are located on the same
physical network or when the delivery is between the
last router and the destination host.
Indirect Delivery
If the destination host is not on the same network as the
deliverer, the packet is delivered indirectly.
In an indirect delivery, the packet goes from router to
router until it reaches the one connected to the same
physical network as its final destination.
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.
Forwarding Techniques
Default Method
Route method versus next-hop method
One technique to reduce the contents of routing table is
called next-hop method
In this technique, the routing table holds only the
address of the next hop instead of information about the
complete route ( route method).
The entries of a routing table must be consistent with
one another.
Host-specific versus network-specific method
In other words, we treat all hosts connected to
the same network as one single entity.
For example, if 1000 host are attached to the
same network, only one entry exist in the routing
table instead of 1000.
Default method
Forwarding Process
Let us assume that hosts and routers use classless
addressing.
In classless addressing, the routing table needs to have one
row of information for each block involved.
Example 1
Make a routing table for router R1, using the configuration
in the Figure
Solution
Example2
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:
First step
The first mask (/26) is applied to the destination
address.
The result is 180.70.65.128, which does not
match the corresponding network address.
Second step
The second mask (/25) is applied to the destination
address.
This time all masks are applied, one by one, to the destination
address, but no matching network address is found.
When it reaches the end of the table, the module gives the
next-hop address 180.70.65.200 and interface number m2 to
ARP.
This is probably an outgoing package that needs to be sent,
via the default router, to someplace else in the Internet
ROUTING TABLE
A host or a router has a routing table with an entry for
each destination, (or a combination of destinations), to
route IP packet.
The routing table can be either :
Static
dynamic
Static routing table:
A static routing table contains information entered
manually.
The administrator enters the route for each destination
into the table.
When a table is created, it cannot update automatically
when there is a change in the Internet.
The table must be manually update by the
administrator.