SlideShare a Scribd company logo
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
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 :
Host –specific versus network-specific method
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
RIP (Routing Information Protocol), OSPF (Open Shortest Path 
First), BGP (Border Gateway Protocol)
Intra domain : link state and distance vector 
Interdomain : path vector
Popular (Unicast) Routing Protocols
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
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
Solutions for Instability
Three-Node Instability 
• If the instability is between three nodes, stability cannot be 
guaranteed.
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
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
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
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

What's hot

Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
Bushra M
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
N.Jagadish Kumar
 
Ch 20 UNICAST ROUTING SECTION 2
Ch 20   UNICAST ROUTING  SECTION  2Ch 20   UNICAST ROUTING  SECTION  2
Ch 20 UNICAST ROUTING SECTION 2
Hossam El-Deen Osama
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
Aung Thu Rha Hein
 
Network layer tanenbaum
Network layer tanenbaumNetwork layer tanenbaum
Network layer tanenbaum
Mahesh Kumar Chelimilla
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
Rahul Hada
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
Shehara Abeythunga
 
IPv4
IPv4IPv4
Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)
RaghulR21
 
Classification of routing protocols
Classification of routing protocolsClassification of routing protocols
Classification of routing protocols
Menaga Selvaraj
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Dr. SELVAGANESAN S
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
Congetion Control.pptx
Congetion Control.pptxCongetion Control.pptx
Congetion Control.pptx
Naveen Dubey
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithm
Basit Hussain
 
System models in distributed system
System models in distributed systemSystem models in distributed system
System models in distributed system
ishapadhy
 
Mobile Transport layer
Mobile Transport layerMobile Transport layer
Mobile Transport layer
Pallepati Vasavi
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Unit 4 - Network Layer
Unit 4 - Network LayerUnit 4 - Network Layer
Unit 4 - Network Layer
Chandan Gupta Bhagat
 

What's hot (20)

Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Ch 20 UNICAST ROUTING SECTION 2
Ch 20   UNICAST ROUTING  SECTION  2Ch 20   UNICAST ROUTING  SECTION  2
Ch 20 UNICAST ROUTING SECTION 2
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Network layer tanenbaum
Network layer tanenbaumNetwork layer tanenbaum
Network layer tanenbaum
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 
Congestion control
Congestion controlCongestion control
Congestion control
 
IPv4
IPv4IPv4
IPv4
 
Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)
 
Classification of routing protocols
Classification of routing protocolsClassification of routing protocols
Classification of routing protocols
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
 
Congetion Control.pptx
Congetion Control.pptxCongetion Control.pptx
Congetion Control.pptx
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithm
 
System models in distributed system
System models in distributed systemSystem models in distributed system
System models in distributed system
 
Mobile Transport layer
Mobile Transport layerMobile Transport layer
Mobile Transport layer
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Unit 4 - Network Layer
Unit 4 - Network LayerUnit 4 - Network Layer
Unit 4 - Network Layer
 
Tcp
TcpTcp
Tcp
 

Viewers also liked

Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
farimoin
 
Routing, Different types of forwarding technique
Routing, Different types of forwarding techniqueRouting, Different types of forwarding technique
Routing, Different types of forwarding technique
rajib_
 
Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1CAVC
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
Siddique Ibrahim
 
Multicast vs unicast diagram
Multicast vs unicast diagramMulticast vs unicast diagram
Multicast vs unicast diagram
internetstreams
 
Chapter 20: Internet Protocol
Chapter 20: Internet ProtocolChapter 20: Internet Protocol
Chapter 20: Internet Protocol
Shafaan Khaliq Bhatti
 
Routing Algorithm
Routing AlgorithmRouting Algorithm
Routing Algorithm
Kamal Acharya
 
The Network Layer
The Network LayerThe Network Layer
The Network Layer
adil raja
 
Ch 18 intro to network layer - section 1
Ch 18   intro to network layer - section 1Ch 18   intro to network layer - section 1
Ch 18 intro to network layer - section 1
Hossam El-Deen Osama
 
Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithmslavanyapathy
 
Dijkstra’S Algorithm
Dijkstra’S AlgorithmDijkstra’S Algorithm
Dijkstra’S Algorithm
ami_01
 
Types of Networks,Network Design Issues,Design Tools
Types of Networks,Network Design Issues,Design ToolsTypes of Networks,Network Design Issues,Design Tools
Types of Networks,Network Design Issues,Design Tools
Surabhi Gosavi
 
Evolution of Routing Techniques
Evolution of  Routing TechniquesEvolution of  Routing Techniques
Evolution of Routing Techniques
Tusharadri Sarkar
 
Chapter 10.slides
Chapter 10.slidesChapter 10.slides
Chapter 10.slideslara_ays
 
Routing Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.pptRouting Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.ppt
umardanjumamaiwada
 

Viewers also liked (20)

Network Layer
Network LayerNetwork Layer
Network Layer
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Routing, Different types of forwarding technique
Routing, Different types of forwarding techniqueRouting, Different types of forwarding technique
Routing, Different types of forwarding technique
 
Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1
 
Routing
RoutingRouting
Routing
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
Routing
RoutingRouting
Routing
 
Multicast vs unicast diagram
Multicast vs unicast diagramMulticast vs unicast diagram
Multicast vs unicast diagram
 
Chapter 20: Internet Protocol
Chapter 20: Internet ProtocolChapter 20: Internet Protocol
Chapter 20: Internet Protocol
 
Routing Algorithm
Routing AlgorithmRouting Algorithm
Routing Algorithm
 
The Network Layer
The Network LayerThe Network Layer
The Network Layer
 
Ch 18 intro to network layer - section 1
Ch 18   intro to network layer - section 1Ch 18   intro to network layer - section 1
Ch 18 intro to network layer - section 1
 
Ch 21
Ch 21Ch 21
Ch 21
 
Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithms
 
Dijkstra’S Algorithm
Dijkstra’S AlgorithmDijkstra’S Algorithm
Dijkstra’S Algorithm
 
Types of Networks,Network Design Issues,Design Tools
Types of Networks,Network Design Issues,Design ToolsTypes of Networks,Network Design Issues,Design Tools
Types of Networks,Network Design Issues,Design Tools
 
Evolution of Routing Techniques
Evolution of  Routing TechniquesEvolution of  Routing Techniques
Evolution of Routing Techniques
 
Chapter 10.slides
Chapter 10.slidesChapter 10.slides
Chapter 10.slides
 
Routing Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.pptRouting Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.ppt
 

Similar to Routing protocols-network-layer

Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptx
HODElex
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptx
HODElex
 
Routing.ppt
Routing.pptRouting.ppt
Routing.ppt
dada827350
 
computer communications
computer communicationscomputer communications
computer communications
JAYASHSINGHRA2111003
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
JAIGANESH SEKAR
 
DSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.pptDSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.ppt
Munnakumar518378
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7Tutun Juhana
 
Ospf
OspfOspf
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptx
AayushMishra89
 
Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)
Tutun Juhana
 
computer Netwoks - network layer
computer Netwoks - network layercomputer Netwoks - network layer
computer Netwoks - network layer
Sendhil Kumar
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 ppt
anushaj46
 
routing
routingrouting
routing
radhika477746
 
Routing
RoutingRouting
Routing
Saima Azam
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
Parameswaran Selvakumar
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
MoctardOLOULADE
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
N.Jagadish Kumar
 
Chapter07
Chapter07Chapter07
Chapter07
Muhammad Ahad
 
Network layer
Network layerNetwork layer
Network layer
TharuniDiddekunta
 
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
Mugabo4
 

Similar to Routing protocols-network-layer (20)

Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptx
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptx
 
Routing.ppt
Routing.pptRouting.ppt
Routing.ppt
 
computer communications
computer communicationscomputer communications
computer communications
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
 
DSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.pptDSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.ppt
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7
 
Ospf
OspfOspf
Ospf
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptx
 
Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)
 
computer Netwoks - network layer
computer Netwoks - network layercomputer Netwoks - network layer
computer Netwoks - network layer
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 ppt
 
routing
routingrouting
routing
 
Routing
RoutingRouting
Routing
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Chapter07
Chapter07Chapter07
Chapter07
 
Network layer
Network layerNetwork layer
Network layer
 
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
 

More from Nitesh Singh

Risk taking and emotions
Risk taking and emotionsRisk taking and emotions
Risk taking and emotionsNitesh Singh
 
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SADProject report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
Nitesh Singh
 
The real comedy behind comedy
The real comedy behind comedyThe real comedy behind comedy
The real comedy behind comedy
Nitesh Singh
 
Project report Rs Dry celaners
Project report Rs Dry celaners Project report Rs Dry celaners
Project report Rs Dry celaners Nitesh Singh
 
Ta 104-topology (1)
Ta 104-topology (1)Ta 104-topology (1)
Ta 104-topology (1)Nitesh Singh
 

More from Nitesh Singh (20)

Risk taking and emotions
Risk taking and emotionsRisk taking and emotions
Risk taking and emotions
 
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SADProject report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
 
The real comedy behind comedy
The real comedy behind comedyThe real comedy behind comedy
The real comedy behind comedy
 
Project report Rs Dry celaners
Project report Rs Dry celaners Project report Rs Dry celaners
Project report Rs Dry celaners
 
BIG DATA ANALYSIS
BIG DATA ANALYSISBIG DATA ANALYSIS
BIG DATA ANALYSIS
 
Udp vs-tcp
Udp vs-tcpUdp vs-tcp
Udp vs-tcp
 
Routers vs-switch
Routers vs-switchRouters vs-switch
Routers vs-switch
 
New udp
New udpNew udp
New udp
 
I pv4 format
I pv4 formatI pv4 format
I pv4 format
 
I pv4 addressing
I pv4 addressingI pv4 addressing
I pv4 addressing
 
Hub vs-switch
Hub vs-switchHub vs-switch
Hub vs-switch
 
Ftp
FtpFtp
Ftp
 
Email ftp
Email ftpEmail ftp
Email ftp
 
Www and http
Www and httpWww and http
Www and http
 
Transmission main
Transmission mainTransmission main
Transmission main
 
Ta 104-topology
Ta 104-topologyTa 104-topology
Ta 104-topology
 
Ta 104-topology (1)
Ta 104-topology (1)Ta 104-topology (1)
Ta 104-topology (1)
 
Ta 104-tcp
Ta 104-tcpTa 104-tcp
Ta 104-tcp
 
Ta 104-media-3
Ta 104-media-3Ta 104-media-3
Ta 104-media-3
 
Ta 104-media-2
Ta 104-media-2Ta 104-media-2
Ta 104-media-2
 

Recently uploaded

MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 

Recently uploaded (20)

MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 

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
  • 3.
  • 4.
  • 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 :
  • 8.
  • 9. Host –specific versus network-specific method
  • 10.
  • 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
  • 18.
  • 19. RIP (Routing Information Protocol), OSPF (Open Shortest Path First), BGP (Border Gateway Protocol)
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25. Intra domain : link state and distance vector Interdomain : path vector
  • 27.
  • 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
  • 32.
  • 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
  • 35.
  • 37.
  • 38.
  • 39. Three-Node Instability • If the instability is between three nodes, stability cannot be guaranteed.
  • 40.
  • 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
  • 48.
  • 49.
  • 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
  • 51.
  • 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
  • 58.
  • 59.
  • 60.
  • 61.
  • 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