Network Layer: 
Delivery, Forwarding, and Routing 
21.1 Delivery 
21.2 Forwarding 
21.3 Unicast Routing Protocols 
21.4 Multicast Routing Protocols
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
Routing protocols-network-layer
Routing protocols-network-layer
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
Forwarding techniques to make the size of the 
routing table manageable 
•Next-hop method versus route method 
•Network-specific method versus host-specific 
method 
•Default method
Forwarding Techniques 
1) Route method versus next-hop method :
Routing protocols-network-layer
Host –specific versus network-specific method
Routing protocols-network-layer
Default method
Forwarding Process 
• In classless addressing, we need at least four columns in a routing table
Example 
• Make a routing table for router R1, using the configuration in Figure
Example 
• Routing table for router R1 
• Forwarding process for the destination address 180.70.65.140 ? 
• Forwarding process for the destination address 18.24.32.78 ?
Address Aggregation 
• Classless addressing increases the number of routing table entries 
• To alleviate the problem, the address aggregation is used
Longest Mask Matching
Hierarchical Routing 
• To solve the problem of gigantic routing tables
Routing protocols-network-layer
RIP (Routing Information Protocol), OSPF (Open Shortest Path 
First), BGP (Border Gateway Protocol)
Routing protocols-network-layer
Routing protocols-network-layer
Routing protocols-network-layer
Routing protocols-network-layer
Routing protocols-network-layer
Intra domain : link state and distance vector 
Interdomain : path vector
Popular (Unicast) Routing Protocols
Routing protocols-network-layer
Distance Vector Routing
Distance Vector Routing: Initialization 
• At the beginning, each node can know only the distance between itself and its 
immediate neighbors
Distance Vector Routing: Sharing 
• In distance vector routing, each node shares its routing table (with first two cols) 
with its immediate neighbors periodically and when there is a change
Distance Vector Routing: Updating 
• When a node receives a two-column table from a neighbor, it 
need to update its routing table 
• Updating rule: 
– Choose the smaller cost. If the same, keep the old one 
– If the next-node entry is the same, the receiving node chooses the new row
Routing protocols-network-layer
Ccost+2
When to Share 
• Periodic update: A node sends its routing table, normally 
every 30 s 
• Triggered update: Anode sends its two-column routing table to 
its neighbors anytime there is a change in its routing table
Routing protocols-network-layer
Solutions for Instability
Routing protocols-network-layer
Routing protocols-network-layer
Three-Node Instability 
• If the instability is between three nodes, stability cannot be 
guaranteed.
Routing protocols-network-layer
RRoouuttiinngg IInnffoorrmmaattiioonn PPrroottooccooll
LLiinnkk SSttaattee RRoouuttiinngg 
• Each node has the entire topology of the domain- the list of nodes and links, how 
they are connected including type, cost, and condition of the links(up or down) 
• Node can use Dijkstra’s algorithm to build a routing table
LLiinnkk SSttaattee RRoouuttiinngg 
• Each node has partial knowledge: it know the state (type, condition, and cost) of its links. 
The whole topology can be compiled from the partial knowledge of each node
BBuuiillddiinngg RRoouuttiinngg TTaabbllee 
1. Creation of the states of the links by each node, called the link state packet 
(LSP) 
2. Dissemination of LSPs to every other router, called flooding, in an 
efficient and reliable way 
3. Formation of a shortest path tree for each node 
4. Calculation of a routing table based on the shortest path tree 
• Creation of LSP 
– LSP contains node identity, the list of links (to make the topology), 
sequence number (to facilitate flooding and distinguish new LSPs 
from old ones 
– LSPs are generated (1) when there is a change in the topology of the 
domain, (2) on a periodic basis, normally 60 min or 2 h
BBuuiillddiinngg RRoouuttiinngg TTaabbllee 
• Flooding of LSPs 
– The creating node sends a copy of the LSP out of each interface 
– A node compares it with the copy it may already have. If the newly 
arrived LSP is older than the one it has, it discards the LSP. If it is 
newer, 
1. It discards the old LSP and keeps the new one 
2. It sends a copy of it out of each interface except the one from which 
the packet arrived 
• Formation of shortest path tree: Dijkstra Algorithm 
– After receiving all LSPs, each node will have a copy of the whole 
topology. Need to find the shortest path to every other node 
– The Dijkstra algorithm creates a shortest path tree from a graph
DDiijjkkssttrraa AAllggoorriitthhmm
EExxaammppllee ooff DDiijjkkssttrraa AAllggoorriitthhmm
Routing protocols-network-layer
Routing protocols-network-layer
Open Shortest Path First (OSPF) 
• Popular intra domain routing protocol based on link state routing 
• To handle routing efficiently and in a timely manner, OSPF divides an autonomous 
system into area 
• Area is a collection of network, hosts, and routers all contained within an AS 
• AS can also be divided into many different areas
Routing protocols-network-layer
Metric 
• The OSPF allows the administrator to assign a cost, called the metric, to each route 
• The metric can be based on a type of service (minimum delay, maximum 
throughput, and so on) 
Types of Links
Point-to-Point Link 
• To connect two routers without any other host or router in between 
Transient Link 
• A network with several routers attached to it
Stub Link 
Virtual Link
Path Vector Routing 
• Distance vector routing is subject to instability if there are 
more than a few hops in the domain of operation 
• Link state routing needs a huge amount of resources to 
calculate routing tables. It also create heavy traffic because 
of flooding 
• Need for a third routing algorithm for interdomain routing, 
called path vector routing 
• Path vector routing is similar to distance vector routing 
• But, only speaker node (one node that acts on behalf of 
entire AS) creates a routing table and advertises it to speaker 
nodes in each AS in its neighbour. 
• A speaker node advertises the path, not the metric of nodes
Path Vector Routing: Initialization
Path Vector Routing: Sharing and Updating 
Sharing: Like distance vector routing, a speaker shares its 
table with immediate neighbors 
Updating: When a speaker receives a two-column table from 
a neighbor, it updates its own table 
• Loop prevention 
• Policy routing 
• Optimum path
Routing protocols-network-layer
Routing protocols-network-layer
Routing protocols-network-layer
Routing protocols-network-layer
Border Gateway Protocol (BGP) 
• Interdomain routing protocol using path vector routing 
• Types of autonomous systems (ASs) 
– Stub AS: only one connection to another AS. A stub AS is 
either a sink or source. 
– Multihomed AS: more than one connection to other ASs, 
– Transit AS: A multihomed AS that also allows transient 
traffic
Path attributes 
1. Well-known attribute 
Well-known mandatory attribute: that must appear in 
the description of a router. 
ORIGIN (source of the routing information) 
AS_PATH (the list of ASs) 
NEXT-HOP(the next router) 
Well-known discretionary attribute that not required 
in every update message. 
2. Optional attribute :
BGP Sessions 
• A session is a connection between BGP routers for the 
exchange of router information 
• To create a reliable environment, BGP uses the services of 
TCP as semipermanent connections 
• External and internal BGP 
– E-BGP sessions: used to exchange information between 
two speaker nodes belonging to two different ASs 
– I-BGP sessions: used to exchange information between two 
routers inside an AS

More Related Content

PPT
Chapter 4 data link layer
PPTX
Computer network switching
PPTX
Framing in data link layer
PPTX
Wireless transmission
PDF
Multiplexing
PPTX
Congestion control
PPTX
Point to-point protocol (ppp)
PDF
QOS (Quality of Services) - Computer Networks
Chapter 4 data link layer
Computer network switching
Framing in data link layer
Wireless transmission
Multiplexing
Congestion control
Point to-point protocol (ppp)
QOS (Quality of Services) - Computer Networks

What's hot (20)

PPTX
Network layer - design Issues
PPTX
Flow control in Computer Network
PPTX
Network Layer design Issues.pptx
PPT
Forouzan _ Multiple access protocols.ppt
PPTX
HDLC(High level Data Link Control)
PPTX
Routing ppt
PPT
Network Layer,Computer Networks
PPTX
Routing Protocols.pptx
PPTX
Arp and rarp
PPTX
Link state routing protocol
PPTX
Multicastingand multicast routing protocols
PPTX
Csma cd and csma-ca
PPTX
Routing algorithm
PPTX
TCP/IP 3-way Handshake
PPT
TCP IP Addressing
PPT
Transport services
PPTX
AODV (adhoc ondemand distance vector routing)
PPTX
Routing protocols
PPTX
Routing Protocols
Network layer - design Issues
Flow control in Computer Network
Network Layer design Issues.pptx
Forouzan _ Multiple access protocols.ppt
HDLC(High level Data Link Control)
Routing ppt
Network Layer,Computer Networks
Routing Protocols.pptx
Arp and rarp
Link state routing protocol
Multicastingand multicast routing protocols
Csma cd and csma-ca
Routing algorithm
TCP/IP 3-way Handshake
TCP IP Addressing
Transport services
AODV (adhoc ondemand distance vector routing)
Routing protocols
Routing Protocols
Ad

Viewers also liked (20)

PPT
Network Layer
PPT
Routing algorithm
PPTX
Ppt of routing protocols
PPT
Routing, Different types of forwarding technique
PPTX
Routing Protocols and Concepts - Chapter 1
PPT
Routing
PPT
Distance vector routing
PDF
Routing
PPT
Multicast vs unicast diagram
PPT
Chapter 20: Internet Protocol
PPTX
Routing Algorithm
PDF
The Network Layer
PPTX
Ch 18 intro to network layer - section 1
PPT
Routing table and routing algorithms
PPTX
Dijkstra’S Algorithm
PPTX
Types of Networks,Network Design Issues,Design Tools
PPT
Evolution of Routing Techniques
PPT
Chapter 10.slides
PPTX
Routing Technique Table Type by Umar danjuma maiwada.ppt
Network Layer
Routing algorithm
Ppt of routing protocols
Routing, Different types of forwarding technique
Routing Protocols and Concepts - Chapter 1
Routing
Distance vector routing
Routing
Multicast vs unicast diagram
Chapter 20: Internet Protocol
Routing Algorithm
The Network Layer
Ch 18 intro to network layer - section 1
Routing table and routing algorithms
Dijkstra’S Algorithm
Types of Networks,Network Design Issues,Design Tools
Evolution of Routing Techniques
Chapter 10.slides
Routing Technique Table Type by Umar danjuma maiwada.ppt
Ad

Similar to Routing protocols-network-layer (20)

PPTX
Unit 4_Network Layer_Part II.pptx
PPTX
Unit 3_Network Layer_Part II.pptx
PPT
Routing.ppt
PPTX
I. Proactive routing protocols (Table Driven protocols)
PPTX
Computer Network - Unicast Routing Distance vector Link state vector
PPTX
NETWORK LAYER PRESENTATION IP ADDRESSING UNIT-3.pptx
PPTX
computer communications
PPTX
Computer networks unit iii
PPT
DSR,LSR,IGMP,RIP,OSPF.ppt
PPTX
Network layer Part 7
PPT
PPTX
ROUTING PROTOCOLS new.pptx
PPTX
Et3003 sem2-1314-9 network layers vi (routing protocols)
PPTX
computer Netwoks - network layer
PPTX
Module 3 Part B - computer networks module 2 ppt
PDF
routing
PPT
Routing
PPT
Routing.pptbbbbbbbbbbbbbbbbbbbbbnbbnbbbbnbb
PPTX
Routing algorithms
PPT
Dynamic Protocols Dynamically learn information about remote networks and ad...
Unit 4_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptx
Routing.ppt
I. Proactive routing protocols (Table Driven protocols)
Computer Network - Unicast Routing Distance vector Link state vector
NETWORK LAYER PRESENTATION IP ADDRESSING UNIT-3.pptx
computer communications
Computer networks unit iii
DSR,LSR,IGMP,RIP,OSPF.ppt
Network layer Part 7
ROUTING PROTOCOLS new.pptx
Et3003 sem2-1314-9 network layers vi (routing protocols)
computer Netwoks - network layer
Module 3 Part B - computer networks module 2 ppt
routing
Routing
Routing.pptbbbbbbbbbbbbbbbbbbbbbnbbnbbbbnbb
Routing algorithms
Dynamic Protocols Dynamically learn information about remote networks and ad...

More from Nitesh Singh (20)

PPTX
Risk taking and emotions
PDF
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
PPTX
The real comedy behind comedy
PDF
Project report Rs Dry celaners
PPTX
BIG DATA ANALYSIS
DOCX
Udp vs-tcp
DOCX
Routers vs-switch
PPT
New udp
PPT
I pv4 format
PPT
I pv4 addressing
DOCX
Hub vs-switch
PPTX
PPT
Email ftp
PPTX
Www and http
PDF
Transmission main
PPT
Ta 104-topology
PPT
Ta 104-topology (1)
PPT
Ta 104-tcp
PPT
Ta 104-media-3
PPT
Ta 104-media-2
Risk taking and emotions
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
The real comedy behind comedy
Project report Rs Dry celaners
BIG DATA ANALYSIS
Udp vs-tcp
Routers vs-switch
New udp
I pv4 format
I pv4 addressing
Hub vs-switch
Email ftp
Www and http
Transmission main
Ta 104-topology
Ta 104-topology (1)
Ta 104-tcp
Ta 104-media-3
Ta 104-media-2

Recently uploaded (20)

PDF
AI agent, robotics based Smart Construction 2025
PPTX
sinteringn kjfnvkjdfvkdfnoeneornvoirjoinsonosjf).pptx
PDF
Project_Mgmt_Institute_- Marc Marc Marc.pdf
PPTX
module 2 renewable energy power plant.pptx
PPTX
Cloud Security and Privacy-Module-2a.pptx
PDF
Water Industry Process Automation & Control Monthly - September 2025
PDF
August 2025 Top Read Articles in - Bioscience & Engineering Recent Research T...
PDF
Design and Implementation of Low-Cost Electric Vehicles (EVs) Supercharger: A...
PPTX
MODULE 3 SUSTAINABLE DEVELOPMENT GOALSPPT.pptx
PPTX
MODULE 02 - CLOUD COMPUTING-Virtual Machines and Virtualization of Clusters a...
PPTX
L1111-Important Microbial Mechanisms.pptx
PDF
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf
PDF
Recent Trends in Network Security - 2025
PPT
Module_1_Lecture_1_Introduction_To_Automation_In_Production_Systems2023.ppt
PPTX
5-2d2b20afbe-basic-concepts-of-mechanics.ppt
PDF
ITEC 1010 - Information and Organizations Database System and Big data
PPTX
non conventional energy resorses material unit-1
PPTX
highway-150803160405-lva1-app6891 (1).pptx
PDF
Manual variador de corriente directa parker.pdf
PDF
ITEC 1010 - Networks and Cloud Computing
AI agent, robotics based Smart Construction 2025
sinteringn kjfnvkjdfvkdfnoeneornvoirjoinsonosjf).pptx
Project_Mgmt_Institute_- Marc Marc Marc.pdf
module 2 renewable energy power plant.pptx
Cloud Security and Privacy-Module-2a.pptx
Water Industry Process Automation & Control Monthly - September 2025
August 2025 Top Read Articles in - Bioscience & Engineering Recent Research T...
Design and Implementation of Low-Cost Electric Vehicles (EVs) Supercharger: A...
MODULE 3 SUSTAINABLE DEVELOPMENT GOALSPPT.pptx
MODULE 02 - CLOUD COMPUTING-Virtual Machines and Virtualization of Clusters a...
L1111-Important Microbial Mechanisms.pptx
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf
Recent Trends in Network Security - 2025
Module_1_Lecture_1_Introduction_To_Automation_In_Production_Systems2023.ppt
5-2d2b20afbe-basic-concepts-of-mechanics.ppt
ITEC 1010 - Information and Organizations Database System and Big data
non conventional energy resorses material unit-1
highway-150803160405-lva1-app6891 (1).pptx
Manual variador de corriente directa parker.pdf
ITEC 1010 - Networks and Cloud Computing

Routing protocols-network-layer

  • 1. Network Layer: Delivery, Forwarding, and Routing 21.1 Delivery 21.2 Forwarding 21.3 Unicast Routing Protocols 21.4 Multicast Routing Protocols
  • 2. 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
  • 5. 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
  • 6. Forwarding techniques to make the size of the routing table manageable •Next-hop method versus route method •Network-specific method versus host-specific method •Default method
  • 7. Forwarding Techniques 1) Route method versus next-hop method :
  • 9. Host –specific versus network-specific method
  • 12. Forwarding Process • In classless addressing, we need at least four columns in a routing table
  • 13. Example • Make a routing table for router R1, using the configuration in Figure
  • 14. Example • Routing table for router R1 • Forwarding process for the destination address 180.70.65.140 ? • Forwarding process for the destination address 18.24.32.78 ?
  • 15. Address Aggregation • Classless addressing increases the number of routing table entries • To alleviate the problem, the address aggregation is used
  • 17. Hierarchical Routing • To solve the problem of gigantic routing tables
  • 19. RIP (Routing Information Protocol), OSPF (Open Shortest Path First), BGP (Border Gateway Protocol)
  • 25. Intra domain : link state and distance vector Interdomain : path vector
  • 29. Distance Vector Routing: Initialization • At the beginning, each node can know only the distance between itself and its immediate neighbors
  • 30. Distance Vector Routing: Sharing • In distance vector routing, each node shares its routing table (with first two cols) with its immediate neighbors periodically and when there is a change
  • 31. Distance Vector Routing: Updating • When a node receives a two-column table from a neighbor, it need to update its routing table • Updating rule: – Choose the smaller cost. If the same, keep the old one – If the next-node entry is the same, the receiving node chooses the new row
  • 34. When to Share • Periodic update: A node sends its routing table, normally every 30 s • Triggered update: Anode sends its two-column routing table to its neighbors anytime there is a change in its routing table
  • 39. Three-Node Instability • If the instability is between three nodes, stability cannot be guaranteed.
  • 42. LLiinnkk SSttaattee RRoouuttiinngg • Each node has the entire topology of the domain- the list of nodes and links, how they are connected including type, cost, and condition of the links(up or down) • Node can use Dijkstra’s algorithm to build a routing table
  • 43. LLiinnkk SSttaattee RRoouuttiinngg • Each node has partial knowledge: it know the state (type, condition, and cost) of its links. The whole topology can be compiled from the partial knowledge of each node
  • 44. BBuuiillddiinngg RRoouuttiinngg TTaabbllee 1. Creation of the states of the links by each node, called the link state packet (LSP) 2. Dissemination of LSPs to every other router, called flooding, in an efficient and reliable way 3. Formation of a shortest path tree for each node 4. Calculation of a routing table based on the shortest path tree • Creation of LSP – LSP contains node identity, the list of links (to make the topology), sequence number (to facilitate flooding and distinguish new LSPs from old ones – LSPs are generated (1) when there is a change in the topology of the domain, (2) on a periodic basis, normally 60 min or 2 h
  • 45. BBuuiillddiinngg RRoouuttiinngg TTaabbllee • Flooding of LSPs – The creating node sends a copy of the LSP out of each interface – A node compares it with the copy it may already have. If the newly arrived LSP is older than the one it has, it discards the LSP. If it is newer, 1. It discards the old LSP and keeps the new one 2. It sends a copy of it out of each interface except the one from which the packet arrived • Formation of shortest path tree: Dijkstra Algorithm – After receiving all LSPs, each node will have a copy of the whole topology. Need to find the shortest path to every other node – The Dijkstra algorithm creates a shortest path tree from a graph
  • 50. Open Shortest Path First (OSPF) • Popular intra domain routing protocol based on link state routing • To handle routing efficiently and in a timely manner, OSPF divides an autonomous system into area • Area is a collection of network, hosts, and routers all contained within an AS • AS can also be divided into many different areas
  • 52. Metric • The OSPF allows the administrator to assign a cost, called the metric, to each route • The metric can be based on a type of service (minimum delay, maximum throughput, and so on) Types of Links
  • 53. Point-to-Point Link • To connect two routers without any other host or router in between Transient Link • A network with several routers attached to it
  • 55. Path Vector Routing • Distance vector routing is subject to instability if there are more than a few hops in the domain of operation • Link state routing needs a huge amount of resources to calculate routing tables. It also create heavy traffic because of flooding • Need for a third routing algorithm for interdomain routing, called path vector routing • Path vector routing is similar to distance vector routing • But, only speaker node (one node that acts on behalf of entire AS) creates a routing table and advertises it to speaker nodes in each AS in its neighbour. • A speaker node advertises the path, not the metric of nodes
  • 56. Path Vector Routing: Initialization
  • 57. Path Vector Routing: Sharing and Updating Sharing: Like distance vector routing, a speaker shares its table with immediate neighbors Updating: When a speaker receives a two-column table from a neighbor, it updates its own table • Loop prevention • Policy routing • Optimum path
  • 62. Border Gateway Protocol (BGP) • Interdomain routing protocol using path vector routing • Types of autonomous systems (ASs) – Stub AS: only one connection to another AS. A stub AS is either a sink or source. – Multihomed AS: more than one connection to other ASs, – Transit AS: A multihomed AS that also allows transient traffic
  • 63. Path attributes 1. Well-known attribute Well-known mandatory attribute: that must appear in the description of a router. ORIGIN (source of the routing information) AS_PATH (the list of ASs) NEXT-HOP(the next router) Well-known discretionary attribute that not required in every update message. 2. Optional attribute :
  • 64. BGP Sessions • A session is a connection between BGP routers for the exchange of router information • To create a reliable environment, BGP uses the services of TCP as semipermanent connections • External and internal BGP – E-BGP sessions: used to exchange information between two speaker nodes belonging to two different ASs – I-BGP sessions: used to exchange information between two routers inside an AS