Lecture - Network Layer Protocols
Lecture - Network Layer Protocols
Networks
Network Layer Protocols
Routing Protocols
ARP
• Address Resolution Protocol (ARP) is a
protocol used to map IP address to
physical machine address
• ARP (RFC 826) provides dynamic IP to
Ethernet address mapping
o source broadcasts ARP request
o destination replies with ARP
response
ARP Operation
Encapsulation of ARP Packet
Dynamic Route
Static Route
• Uses a route that a
• Uses a route that a
network routing
network
protocol adjusts
administrator enters
automatically for
into the router
manually
topology or traffic
changes
Static Route Example
metric
Metric assignment depends on the routing
protocol
◦ RIP: cost of all networks is same (1 hop)
◦ OSPF: Admin can assign costs
Link 1
Count to infinity
2. Link fails
Net 1
1. [Net 1, 1]
3. [Net 1, 2]
4. [Net 1, 3]
5. [Net 1, 4]
…
[Net 1, 16]
2. Split Horizon
• RIPv2
– A classless distance vector routing protocol that is an
enhancement of RIPv1’s features
– Support dis-contiguous networks
– Support VLSM
Similarities
– Use of split horizon or split horizon with poison
reverse
– Use of triggered updates
– Maximum hop count of 15
Configuring RIPv2
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network IP address
Dis-contiguous Network
OSPF Cost =
Reference Bandwidth/Interface Bandwidth
RIP OSPF
Distance Vector Protocol Link State Protocol
Metric Used is Hop Count Metric used is Bandwidth
and delay
Bandwidth intensive as it It only sends the change
sends the whole routing in network topology
table
Max 15 Hop Count. 16 is Unlimited number of
considered as routers
unreachable
Good for small networks Good for large networks