Lecture#11
Lecture#11
Network layer
Delivery, Forwarding and
Routing
Note
In classless addressing, we need at least
four columns in a routing table.
m3
(/0) (0.0.0.0)
Dr. Gihan Naguib 10
Example
Show the forwarding process if a packet arrives at R1
with the destination address 180.70.65.140.
(/0) (0.0.0.0)
Solution
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.
Hop Next
Destination Other information
Count Router
163.5.0.0 7 172.6.23.4
197.5.13.0 5 176.3.6.17
189.45.0.0 4 200.5.1.6
115.0.0.0 6 131.4.7.19
Types of Links
1. Point-to-point
Connects two routers without any other router or
host in between.
Directly connected routers using serial line.
Only one neighbour.
No need to assign a network address to this type of
link
The metrics are the same at the two ends
2. Transient link
A network with several routers attached to it.
Each router has many neighbours.
3. Stub
A network that is connected to only one router. The
data packets enter the network through this single
router and leave the network through this same router.
4. Virtual
When the link between two routers is broken, the administration
may create a virtual link between them, using a longer path that
probably goes through several routers.
Dr. Gihan Naguib Behrouz A. Forouzan “Data communication and Networking” 42
Example of an internet & Graphical representation
2. Flooding
X A X A
C B D C B D
(a) (b)
X A X A
C B D C B D
(c) (d)
Metric:
Administrator can assign the cost to each route. Based
on type of service (minimum delay, maximum
throughput, and so on).
Example 2:
92 permanent
66 permanent
Example 3:
Next
Network Cost
Router
N1 5 ----
N2 7 C
N3 10 D
N4 11 B
N5 15 D
There is only one source, but all the other hosts are
the destinations.