20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions: Define the domain of operation...

32
20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions: Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols if needed (e.g., External protocols EGP). Specify how routers exchange messages to share information & report changes. Enables a network to make dynamic adjustments to its conditions. Unicast routing in the Internet, challenge? Yes! Large number of routers and a huge number of hosts; hence immense number of alternative routes for each packet, one is only the optimal (search routing tables for Which one ?)! Huge routing tables space longer search time .

Transcript of 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions: Define the domain of operation...

Page 1: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.1

20-3 UNICAST ROUTING PROTOCOLSMajor Functions:

Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols if needed (e.g., External protocols EGP).

Specify how routers exchange messages to share information & report changes.

Enables a network to make dynamic adjustments to its conditions.

Unicast routing in the Internet, challenge? Yes!

Large number of routers and a huge number of hosts; hence immense number of alternative routes for each packet, one is only the optimal (search routing tables for Which one?)!

Huge routing tables space longer search time.

Hierarchical Routing (HR) is the solution!

In addition, each ISP administrator can have own control running different suiting routing algorithm for their optimal choice of domain equipment.

Page 2: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.2

20.3.1 Internet Structure

Before discussing unicast routing protocols, we need to understand the structure of today’s Internet.

The Internet has changed from a tree-like structure, with a single backbone, to a multi-backbone structure run by different

private corporations today.

Page 3: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.3

Figure 20.14: Internet structure

Except for the Peering points, every component is considered an ISP Autonomous System AS.

Page 4: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.4

20.3.1 Internet Structure

Hierarchical Routing (HR) is when we consider each component in Fig 20.14 (Internet Structure), except peering points, as an ISP Autonomous System (AS).

Each AS runs its own routing protocol, that fits its need based on its optimal architectural design, called Interior Gateway Protocol (IGP)– Intra-domain(AS) Routing Protocol.

Two major IGP routing protocols: Routing Information Protocol (RIP)– Most widely used based on DV routing algorithm. Open Shortest Path First Protocol (OSPF)– Based on LS routing algorithm.

In order to glue the Ass together, an Exterior Gateway Protocol (EGP)– also called Interdomain Routing Protocol.

One major EGP routing protocol: Border Gateway Protocol V4 (BGP4) – Complex, based on PV(Path Vector) routing algorithm, with reachability information of networks in the Internet.

Page 5: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.5

20.3.2 Routing Information Protocol

The Routing Information Protocol (RIP) is one of the most widely used intradomain routing protocols based on the distance-vector routing algorithm we described earlier. RIP was started as part of the Xerox Network System (XNS), but it was the Berkeley Software Distribution (BSD) version of UNIX that helped make the use of RIP widespread.

Page 6: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.6

Figure 20.15: Hop counts in RIP

3 hops (N2, N3, N4)

2 hops (N3, N4)

1 hop (N4)

Page 7: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.7

Figure 20.16: Forwarding tables

Page 8: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.8

Figure 20.17: RIP message format

Page 9: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

Figure 20.18 shows a more realistic example of the operation of RIP in an autonomous system. First, the figure shows all forwarding tables after all routers have been booted. Then we show changes in some tables when some update messages have been exchanged. Finally, we show the stabilized forwarding tables when there is no more change.

Example 20.1

20.9

Page 10: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.10

Figure 20.18: Example of an autonomous system using RIP (Part I)

Page 11: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.11

Figure 20.18: Example of an autonomous system using RIP (Part II)

Page 12: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.12

20.3.3 Open Shortest Path First

Open Shortest Path First (OSPF) is also an intradomain routing protocol like RIP, but it is based on the link-state routing protocol we described earlier in the chapter. OSPF is an open protocol, which means that the specification is a public document.

Page 13: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.13

Figure 4.73: Example of an autonomous system using RIP (Part III)

Page 14: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.14

Figure 20.19: Metric in OSPF

Total cost: 12

Total cost: 7

Total cost: 4

Page 15: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.15

Figure 20.20: Forwarding tables in OSPF

Page 16: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.16

Figure 20.21: Areas in an autonomous system

Page 17: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.17

Figure 20.22: Five different LSPs (Part I)

Page 18: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.18

Figure 20.22: Five different LSPs (Part II)

Page 19: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.19

Figure 20.23: OSPF message formats (Part I)

Attention

Page 20: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.20

Figure 20.23: OSPF message formats (Part II)

Attention

Page 21: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.21

20.3.4 Border Gateway Protocol

The Border Gateway Protocol version 4 (BGP4) is the only interdomain routing protocol used in the Internet today. BGP4 is based on the path-vector algorithm we described before, but it is tailored to provide information about the reachability of networksin the Internet.

Page 22: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.22

Figure 20.24: A sample internet with four ASs

Page 23: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.23

Figure20.25: eBGP operation

Page 24: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.24

Figure 20.26: Combination of eBGP and iBGP sessions in our internet

Page 25: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.25

Figure 20.27: Finalized BGP path tables (Part I)

Page 26: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.26

Figure 20.27: Finalized BGP path tables (Part II)

Page 27: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.27

Figure 20.27: Finalized BGP path tables (Part III)

Page 28: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.28

Figure 20.28: Forwarding tables after injection from BGP (Part I)

Page 29: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.29

Figure 20.28: Forwarding tables after injection from BGP (Part II)

Page 30: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.30

Figure 20.29: Format of path attribute

Page 31: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.31

Figure 20.30: Flow diagram for route selection

Page 32: 20.1 20-3 UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.

20.32

Figure 20.30: BGP messages