Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf ·...

22
Chapter 20 Unicast Routing

Transcript of Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf ·...

Page 1: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

Chapter 20

Unicast Routing

Page 2: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.2

General Idea

In unicast routing, a packet is routed,

- hop by hop, from its source to its destination by

the help of forwarding tables

- only the routers that glue together the networks

in the Internet need forwarding tables.

Page 3: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.3

Least-Cost Routing

- The best route from the source router to the

destination router is to find the least cost

between the two

- In other words, the source router chooses a

route to the destination router in such a way

that the total cost for the route is the least cost

among all possible routes

Page 4: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.4

An internet and its graphical representation

Page 5: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.5

Distance-Vector Routing

- a router continuously tells all of its neighbors

what it knows about the whole internet

(although the knowledge can be incomplete)

Page 6: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.6

Link-State Routing

- the cost associated with an edge defines the

state of the link

- Links with lower costs are preferred to links

with higher costs

- if the cost of a link is infinity, it means that the

link does not exist or has been broken.

Page 7: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.7

UNICAST ROUTING PROTOCOLS

three common protocols used in the Internet:

- Routing Information Protocol (RIP), based on the

distance-vector algorithm

- Open Shortest Path First (OSPF), based on the

link-state algorithm

- Border Gateway Protocol (BGP), based on the

path-vector algorithm

Page 8: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.8

Internet structure

Page 9: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.9

Hop counts in RIP

3 hops (N2, N3, N4)

2 hops (N3, N4)

1 hop (N4)

Page 10: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.10

Forwarding tables

Page 11: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.11

Example of an autonomous system using RIP (Part I)

Page 12: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.12

Example of an autonomous system using RIP (Part II)

Page 13: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.13

Example of an autonomous system using RIP (Part III)

Page 14: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.14

Metric in OSPF

Total cost: 12

Total cost: 7

Total cost: 4

Page 15: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.15

Forwarding tables in OSPF

Page 16: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.16

Areas in an autonomous system

Page 17: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.17

Border Gateway Protocol

- the only interdomain routing protocol used in

the Internet today

- is based on the path-vector algorithm

- is tailored to provide information about the

reachability of networks in the Internet.

Page 18: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.18

A sample internet with four ASs

Page 19: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.19

eBGP operation

Page 20: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.20

Combination of eBGP and iBGP sessions in our internet

Page 21: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.21

Finalized BGP path tables (Part I)

Page 22: Chapter 20 Unicast Routing - Western Illinois Universityfaculty.wiu.edu/Y-Kim2/NET321F14ch20.pdf · Chapter 20 Unicast Routing. 20.2 General Idea In unicast routing, a packet is routed,-hop

20.22

Finalized BGP path tables (Part II)