SlideShare a Scribd company logo
Routing Algorithm 2004. 11. 3 Ahn Kook Jin
Contents Routing Protocol and Algorithm Classifications Link State Routing Algorithm Distance Vector Routing Algorithm LS Algorithm vs. DV Algorithm Hierarchical Routing
Routing Protocol and Algorithm Determining the path(route) source host destination host 5 2 1 2 3 1 3 5 2 1 B A C E D F first-hop router default router source router destination router least-cost path
Classifications Global vs. decentralized global(link state algorithm) : complete information about connectivity and link costs Static vs.  dynamic static : routes change very slowly Load-sensitive vs.  load-insensitive load-sensitive : link costs reflect congestion Typical used Dynamic link state routing algorithm Dynamic distance vector routing algorithm
Link State Routing Algorithm Each node broadcasts the identities and costs to its directly attached neighbors Dijkstra’s algorithm
Link State Routing Algorithm Oscillation(page 307) D B C A e 1 1 2+e 0 0 1+e 0 0 0 1 1 0 0 0 e 0 1+e 0 0 0 0 0 1+e 1 2+e 0 2+e 0 0 1+e 0 0 0 1
Distance Vector Routing Algorithm Iterative, asynchronous, distributed Distance table D X (Y,Z) : cost of the direct link from X to Z + Z’s currently known minmum-cost path to Y D X (Y,Z)=c(X,Z)+min w {D z (Y,w)}
Distance Vector Routing Algorithm Initialization: D X (*,v) = inifinite, D X (v,v)=c(x,v) Send min w D X (y,w) to each neighbor when they changes C(X,V) changes Neighbor node send its update
Distance Vector Routing Algorithm 7 2 1 Y X Z 7 ∞ Z ∞ 2 Y Z Y D X 1 ∞ Z ∞ 2 X Z X D Y 1 ∞ Y ∞ 7 X Y X D z
Distance Vector Routing Algorithm 7 2 1 Y X Z 7 3 Z 8 2 Y Z Y D X 1 9 Z 8 2 X Z X D Y 1 9 Y 3 7 X Y X D z
Distance Vector Routing Algorithm 7 2 1 Y X Z 7 3 Z 8 2 Y Z Y D X 1 5 Z 4 2 X Z X D Y 1 9 Y 3 7 X Y X D z
Distance Vector Routing Algorithm Decrease 50 4 1 1 Y X Z 6 4 X Z X D Y 5 50 X Y X D z
Distance Vector Routing Algorithm Decrease 50 4 1 1 Y X Z 6 1 X Z X D Y 5 50 X Y X D z
Distance Vector Routing Algorithm Decrease 50 4 1 1 Y X Z 6 1 X Z X D Y 2 50 X Y X D z
Distance Vector Routing Algorithm Decrease 50 4 1 1 Y X Z 6 1 X Z X D Y 2 50 X Y X D z
Distance Vector Routing Algorithm Increase 50 4 1 60 Y X Z 6 4 X Z X D Y 5 50 X Y X D z
Distance Vector Routing Algorithm Increase 50 4 1 60 Routing loop Y X Z 6 60 X Z X D Y 5 50 X Y X D z
Distance Vector Routing Algorithm Increase 50 4 1 60 Y X Z 6 60 X Z X D Y 7 50 X Y X D z
Distance Vector Routing Algorithm Increase 50 4 1 60 Y X Z 8 60 X Z X D Y 7 50 X Y X D z
Distance Vector Routing Algorithm Increase 50 4 1 60 Too many iterations! (count-to-infinity problem) Y X Z 8 60 X Z X D Y 9 50 X Y X D z
Distance Vector Routing Algorithm Poisoned  reverse 50 4 1 60 Y X Z ∞ 4 X Z X D Y 5 50 X Y X D z
Distance Vector Routing Algorithm Poisoned  reverse 50 4 1 60 Y X Z ∞ 60 X Z X D Y 5 50 X Y X D z
Distance Vector Routing Algorithm Poisoned  reverse 50 4 1 60 Y X Z ∞ 60 X Z X D Y 61 50 X Y X D z
Distance Vector Routing Algorithm Poisoned  reverse 50 4 1 60 Y X Z 51 60 X Z X D Y 61 50 X Y X D z
Distance Vector Routing Algorithm Poisoned  reverse Cannot solve general count-to-infinity problem 50 4 1 60 Y X Z 51 60 X Z X D Y ∞ 50 X Y X D z
LS Algorithm vs. DV Algorithm Bad Good Robustness Slow(count-to-infinity problem) O(n 2 ) algorithm Speed of convergence Maybe small O(nE) Message complexity DV LS
Hierarchical Routing View network as interconnected routers Scale Administrative autonomy Organize routers into autonomy systems(AS)
Hierarchical Routing Autonomy system(AS) Gateway router Intra-AS Inter-AS B.a B.a A.a A.b A.c A.d C.b C.c C.a Host H1 Host H2
Hierarchical Routing Topological view for inter-AS routing protocol B.a A.a A.c C.a
END
Ad

More Related Content

What's hot (20)

Weiler atherton
Weiler athertonWeiler atherton
Weiler atherton
Arvind Kumar
 
State space search
State space searchState space search
State space search
chauhankapil
 
Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)
Sudhanshu Srivastava
 
Computer network switching
Computer network switchingComputer network switching
Computer network switching
Shivani Godha
 
Tcp
TcpTcp
Tcp
Varsha Kumar
 
BFS and DFS
BFS and DFSBFS and DFS
BFS and DFS
Abdullah Al Amin
 
scan conversion of point , line and circle
scan conversion of point , line and circlescan conversion of point , line and circle
scan conversion of point , line and circle
Divy Kumar Gupta
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
Arvind Kumar
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
Siddique Ibrahim
 
Tree in data structure
Tree in data structureTree in data structure
Tree in data structure
ghhgj jhgh
 
06 floating point
06 floating point06 floating point
06 floating point
Piyush Rochwani
 
Shortest path algorithm
Shortest  path algorithmShortest  path algorithm
Shortest path algorithm
Subrata Kumer Paul
 
Graphs in Data Structure
 Graphs in Data Structure Graphs in Data Structure
Graphs in Data Structure
hafsa komal
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
Bushra M
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
Vimal Dewangan
 
Segments in Graphics
Segments in GraphicsSegments in Graphics
Segments in Graphics
Rajani Thite
 
Ripple Carry Adder
Ripple Carry AdderRipple Carry Adder
Ripple Carry Adder
Aravindreddy Mokireddy
 
Check sum
Check sumCheck sum
Check sum
Pooja Jaiswal
 
Congestion control
Congestion controlCongestion control
Congestion control
Principal,Guru Nanak Institute of Technology, Nagpur
 
Symbol table in compiler Design
Symbol table in compiler DesignSymbol table in compiler Design
Symbol table in compiler Design
Kuppusamy P
 

Similar to Routing algorithm (20)

Routing Algorithm
Routing AlgorithmRouting Algorithm
Routing Algorithm
Kamal Acharya
 
numeric network in the world of heart then ay iks jsns
numeric network in the world of heart then ay iks jsnsnumeric network in the world of heart then ay iks jsns
numeric network in the world of heart then ay iks jsns
kassemKhalil1
 
Lec12 on Computer Networks by Tarun Mangla.pdf
Lec12 on Computer Networks by Tarun Mangla.pdfLec12 on Computer Networks by Tarun Mangla.pdf
Lec12 on Computer Networks by Tarun Mangla.pdf
ShivamSawarn2
 
Bellman Ford Routing Algorithm-Computer Networks
Bellman Ford Routing Algorithm-Computer NetworksBellman Ford Routing Algorithm-Computer Networks
Bellman Ford Routing Algorithm-Computer Networks
SimranJain63
 
routing1 1X3 Router (capable of routing the data packets.ppt
routing1 1X3 Router (capable of routing the data packets.pptrouting1 1X3 Router (capable of routing the data packets.ppt
routing1 1X3 Router (capable of routing the data packets.ppt
JANARTHANANS22
 
Network Layer: Control Plane (Computer Network Course)
Network Layer: Control Plane (Computer Network Course)Network Layer: Control Plane (Computer Network Course)
Network Layer: Control Plane (Computer Network Course)
okuwobi
 
Module 3- transport_layer .pptx
Module 3- transport_layer           .pptxModule 3- transport_layer           .pptx
Module 3- transport_layer .pptx
hariprasad279825
 
Lecture set 5
Lecture set 5Lecture set 5
Lecture set 5
Gopi Saiteja
 
Chapter 5 - Computer Networking a top-down Approach 7th
Chapter 5 - Computer Networking a top-down Approach 7thChapter 5 - Computer Networking a top-down Approach 7th
Chapter 5 - Computer Networking a top-down Approach 7th
Andy Juan Sarango Veliz
 
P5 - Routing Protocols
P5 - Routing ProtocolsP5 - Routing Protocols
P5 - Routing Protocols
Kurniawan Dwi Irianto
 
Chapter_5_v8.0Routing Protocol for Computer network from kurose and ross
Chapter_5_v8.0Routing Protocol for Computer network from kurose and rossChapter_5_v8.0Routing Protocol for Computer network from kurose and ross
Chapter_5_v8.0Routing Protocol for Computer network from kurose and ross
dutt2309
 
Bellmanford
BellmanfordBellmanford
Bellmanford
Abhijeet Gokhale
 
5.2_video_slides.pptx
5.2_video_slides.pptx5.2_video_slides.pptx
5.2_video_slides.pptx
DennyHermawan15
 
Week11 lec2
Week11 lec2Week11 lec2
Week11 lec2
syedhaiderraza
 
Cnetwork
CnetworkCnetwork
Cnetwork
ADARSHN40
 
Introduction to Computer Networks
Introduction to Computer NetworksIntroduction to Computer Networks
Introduction to Computer Networks
Venkatesh Iyer
 
Intro 2 Computer Networks
Intro 2 Computer NetworksIntro 2 Computer Networks
Intro 2 Computer Networks
rakeshgoswami
 
VoxelNet
VoxelNetVoxelNet
VoxelNet
taeseon ryu
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
Matlab Assignment Experts
 
Study on Fundamentals of Raster Scan Graphics
Study on Fundamentals of Raster Scan GraphicsStudy on Fundamentals of Raster Scan Graphics
Study on Fundamentals of Raster Scan Graphics
Dr. Chandrakant Divate
 
numeric network in the world of heart then ay iks jsns
numeric network in the world of heart then ay iks jsnsnumeric network in the world of heart then ay iks jsns
numeric network in the world of heart then ay iks jsns
kassemKhalil1
 
Lec12 on Computer Networks by Tarun Mangla.pdf
Lec12 on Computer Networks by Tarun Mangla.pdfLec12 on Computer Networks by Tarun Mangla.pdf
Lec12 on Computer Networks by Tarun Mangla.pdf
ShivamSawarn2
 
Bellman Ford Routing Algorithm-Computer Networks
Bellman Ford Routing Algorithm-Computer NetworksBellman Ford Routing Algorithm-Computer Networks
Bellman Ford Routing Algorithm-Computer Networks
SimranJain63
 
routing1 1X3 Router (capable of routing the data packets.ppt
routing1 1X3 Router (capable of routing the data packets.pptrouting1 1X3 Router (capable of routing the data packets.ppt
routing1 1X3 Router (capable of routing the data packets.ppt
JANARTHANANS22
 
Network Layer: Control Plane (Computer Network Course)
Network Layer: Control Plane (Computer Network Course)Network Layer: Control Plane (Computer Network Course)
Network Layer: Control Plane (Computer Network Course)
okuwobi
 
Module 3- transport_layer .pptx
Module 3- transport_layer           .pptxModule 3- transport_layer           .pptx
Module 3- transport_layer .pptx
hariprasad279825
 
Chapter 5 - Computer Networking a top-down Approach 7th
Chapter 5 - Computer Networking a top-down Approach 7thChapter 5 - Computer Networking a top-down Approach 7th
Chapter 5 - Computer Networking a top-down Approach 7th
Andy Juan Sarango Veliz
 
Chapter_5_v8.0Routing Protocol for Computer network from kurose and ross
Chapter_5_v8.0Routing Protocol for Computer network from kurose and rossChapter_5_v8.0Routing Protocol for Computer network from kurose and ross
Chapter_5_v8.0Routing Protocol for Computer network from kurose and ross
dutt2309
 
Introduction to Computer Networks
Introduction to Computer NetworksIntroduction to Computer Networks
Introduction to Computer Networks
Venkatesh Iyer
 
Intro 2 Computer Networks
Intro 2 Computer NetworksIntro 2 Computer Networks
Intro 2 Computer Networks
rakeshgoswami
 
Study on Fundamentals of Raster Scan Graphics
Study on Fundamentals of Raster Scan GraphicsStudy on Fundamentals of Raster Scan Graphics
Study on Fundamentals of Raster Scan Graphics
Dr. Chandrakant Divate
 
Ad

Recently uploaded (20)

How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
The History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptxThe History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Myopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduateMyopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduate
Mohamed Rizk Khodair
 
UPMVLE migration to ARAL. A step- by- step guide
UPMVLE migration to ARAL. A step- by- step guideUPMVLE migration to ARAL. A step- by- step guide
UPMVLE migration to ARAL. A step- by- step guide
abmerca
 
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living WorkshopLDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDM & Mia eStudios
 
Search Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo SlidesSearch Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo Slides
Celine George
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Myopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduateMyopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduate
Mohamed Rizk Khodair
 
UPMVLE migration to ARAL. A step- by- step guide
UPMVLE migration to ARAL. A step- by- step guideUPMVLE migration to ARAL. A step- by- step guide
UPMVLE migration to ARAL. A step- by- step guide
abmerca
 
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living WorkshopLDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDM & Mia eStudios
 
Search Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo SlidesSearch Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo Slides
Celine George
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
Ad

Routing algorithm

  • 1. Routing Algorithm 2004. 11. 3 Ahn Kook Jin
  • 2. Contents Routing Protocol and Algorithm Classifications Link State Routing Algorithm Distance Vector Routing Algorithm LS Algorithm vs. DV Algorithm Hierarchical Routing
  • 3. Routing Protocol and Algorithm Determining the path(route) source host destination host 5 2 1 2 3 1 3 5 2 1 B A C E D F first-hop router default router source router destination router least-cost path
  • 4. Classifications Global vs. decentralized global(link state algorithm) : complete information about connectivity and link costs Static vs. dynamic static : routes change very slowly Load-sensitive vs. load-insensitive load-sensitive : link costs reflect congestion Typical used Dynamic link state routing algorithm Dynamic distance vector routing algorithm
  • 5. Link State Routing Algorithm Each node broadcasts the identities and costs to its directly attached neighbors Dijkstra’s algorithm
  • 6. Link State Routing Algorithm Oscillation(page 307) D B C A e 1 1 2+e 0 0 1+e 0 0 0 1 1 0 0 0 e 0 1+e 0 0 0 0 0 1+e 1 2+e 0 2+e 0 0 1+e 0 0 0 1
  • 7. Distance Vector Routing Algorithm Iterative, asynchronous, distributed Distance table D X (Y,Z) : cost of the direct link from X to Z + Z’s currently known minmum-cost path to Y D X (Y,Z)=c(X,Z)+min w {D z (Y,w)}
  • 8. Distance Vector Routing Algorithm Initialization: D X (*,v) = inifinite, D X (v,v)=c(x,v) Send min w D X (y,w) to each neighbor when they changes C(X,V) changes Neighbor node send its update
  • 9. Distance Vector Routing Algorithm 7 2 1 Y X Z 7 ∞ Z ∞ 2 Y Z Y D X 1 ∞ Z ∞ 2 X Z X D Y 1 ∞ Y ∞ 7 X Y X D z
  • 10. Distance Vector Routing Algorithm 7 2 1 Y X Z 7 3 Z 8 2 Y Z Y D X 1 9 Z 8 2 X Z X D Y 1 9 Y 3 7 X Y X D z
  • 11. Distance Vector Routing Algorithm 7 2 1 Y X Z 7 3 Z 8 2 Y Z Y D X 1 5 Z 4 2 X Z X D Y 1 9 Y 3 7 X Y X D z
  • 12. Distance Vector Routing Algorithm Decrease 50 4 1 1 Y X Z 6 4 X Z X D Y 5 50 X Y X D z
  • 13. Distance Vector Routing Algorithm Decrease 50 4 1 1 Y X Z 6 1 X Z X D Y 5 50 X Y X D z
  • 14. Distance Vector Routing Algorithm Decrease 50 4 1 1 Y X Z 6 1 X Z X D Y 2 50 X Y X D z
  • 15. Distance Vector Routing Algorithm Decrease 50 4 1 1 Y X Z 6 1 X Z X D Y 2 50 X Y X D z
  • 16. Distance Vector Routing Algorithm Increase 50 4 1 60 Y X Z 6 4 X Z X D Y 5 50 X Y X D z
  • 17. Distance Vector Routing Algorithm Increase 50 4 1 60 Routing loop Y X Z 6 60 X Z X D Y 5 50 X Y X D z
  • 18. Distance Vector Routing Algorithm Increase 50 4 1 60 Y X Z 6 60 X Z X D Y 7 50 X Y X D z
  • 19. Distance Vector Routing Algorithm Increase 50 4 1 60 Y X Z 8 60 X Z X D Y 7 50 X Y X D z
  • 20. Distance Vector Routing Algorithm Increase 50 4 1 60 Too many iterations! (count-to-infinity problem) Y X Z 8 60 X Z X D Y 9 50 X Y X D z
  • 21. Distance Vector Routing Algorithm Poisoned reverse 50 4 1 60 Y X Z ∞ 4 X Z X D Y 5 50 X Y X D z
  • 22. Distance Vector Routing Algorithm Poisoned reverse 50 4 1 60 Y X Z ∞ 60 X Z X D Y 5 50 X Y X D z
  • 23. Distance Vector Routing Algorithm Poisoned reverse 50 4 1 60 Y X Z ∞ 60 X Z X D Y 61 50 X Y X D z
  • 24. Distance Vector Routing Algorithm Poisoned reverse 50 4 1 60 Y X Z 51 60 X Z X D Y 61 50 X Y X D z
  • 25. Distance Vector Routing Algorithm Poisoned reverse Cannot solve general count-to-infinity problem 50 4 1 60 Y X Z 51 60 X Z X D Y ∞ 50 X Y X D z
  • 26. LS Algorithm vs. DV Algorithm Bad Good Robustness Slow(count-to-infinity problem) O(n 2 ) algorithm Speed of convergence Maybe small O(nE) Message complexity DV LS
  • 27. Hierarchical Routing View network as interconnected routers Scale Administrative autonomy Organize routers into autonomy systems(AS)
  • 28. Hierarchical Routing Autonomy system(AS) Gateway router Intra-AS Inter-AS B.a B.a A.a A.b A.c A.d C.b C.c C.a Host H1 Host H2
  • 29. Hierarchical Routing Topological view for inter-AS routing protocol B.a A.a A.c C.a
  • 30. END
  翻译: