49
1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is intradomain routing. Routing between autonomous systems is referred to as interdomain routing. referred to as interdomain routing. www.btechebooks4u.blogspot.com www.btechebooks4u.blogspot.com

1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

Embed Size (px)

DESCRIPTION

3 Figure 14.2 Popular routing protocols

Citation preview

Page 1: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

1

INTRA- AND INTERDOMAIN ROUTING

Routing inside an autonomous system is referred to as intradomain Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred to as routing. Routing between autonomous systems is referred to as interdomain routing. interdomain routing.

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 2: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

2

Autonomous systems

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 3: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

3

Figure 14.2 Popular routing protocols

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 4: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

4

14.2 DISTANCE VECTOR ROUTING

In distance vector routing, the least cost route between any two nodes is In distance vector routing, the least cost route between any two nodes is the route with minimum distance. In this protocol each node maintains a the route with minimum distance. In this protocol each node maintains a vector (table) of minimum distances to every nodevector (table) of minimum distances to every node

The topics discussed in this section include:The topics discussed in this section include:

Initialization Initialization Sharing Sharing Updating Updating When to Share When to Share Two-Node Loop Instability Two-Node Loop Instability Three-Node Instability Three-Node Instability

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 5: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

5

Distance vector routing tables

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 6: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 6

Figure 14.4 Initialization of tables in distance vector routing

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 7: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

7

In distance vector routing, each node shares its routing table with its

immediate neighbors periodically and when there is a change.

Note:Note:

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 8: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

8

Figure 14.5 Updating in distance vector routing

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 9: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

9

Figure 14.6 Two-node instability

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 10: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

10

Three-node instability

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 11: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

11

RIP

The Routing Information Protocol (RIP) is an intradomain routing The Routing Information Protocol (RIP) is an intradomain routing protocol used inside an autonomous system. It is a very simple protocol protocol used inside an autonomous system. It is a very simple protocol based on distance vector routing. based on distance vector routing.

The topics discussed in this section include:The topics discussed in this section include:

RIP Message Format RIP Message Format Requests and Responses Requests and Responses Timers in RIP Timers in RIP RIP Version 2 RIP Version 2 Encapsulation Encapsulation

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 12: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

12

Example of a domain using RIP

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 13: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 13

Figure 14.9 RIP message format

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 14: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

14

Figure 14.10 Request messages

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 15: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 15

Figure 14.13 RIP version 2 format

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 16: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 16

Figure 14.14 Authentication

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 17: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 17

RIP uses the services of UDP on well-known port 520.

Note:Note:

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 18: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

18

LINK STATE ROUTING

In link state routing, if each node in the domain has the entire topology In link state routing, if each node in the domain has the entire topology of the domain, the node can use Dijkstra’s algorithm to build a routing of the domain, the node can use Dijkstra’s algorithm to build a routing table.table.

The topics discussed in this section include:The topics discussed in this section include:

Building Routing Tables Building Routing Tables

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 19: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

19

Concept of link state routing

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 20: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

20

Figure 14.16 Link state knowledge

Page 21: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

21

Figure 14.17 Dijkstra algorithm

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 22: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

22

Figure 14.18 Example of formation of shortest path tree

Page 23: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

23

Table 14.1 Table 14.1 Routing table for node ARouting table for node A

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 24: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

24

14.5 OSPF

The Open Shortest Path First (OSPF) protocol is an intradomain The Open Shortest Path First (OSPF) protocol is an intradomain routing protocol based on link state routing. Its domain is also an routing protocol based on link state routing. Its domain is also an autonomous system. autonomous system.

The topics discussed in this section include:The topics discussed in this section include:

Areas Areas Metric Metric Types of Links Types of Links Graphical Representation Graphical Representation OSPF Packets OSPF Packets Link State Update Packet Link State Update Packet Other Packets Other Packets Encapsulation Encapsulation

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 25: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

25

Areas in an autonomous system

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 26: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

26

Types of links

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 27: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 27

Figure 14.21 Point-to-point link

Page 28: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 28

Figure 14.22 Transient link

Page 29: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

29

Figure 14.23 Stub link

Page 30: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

30

Figure 14.24 Example of an AS and its graphical representation in OSPF

Page 31: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

31

Figure 14.25 Types of OSPF packets

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 32: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

32

Figure 14.26 OSPF common header

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 33: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

33

Figure 14.27 Link state update packet

Page 34: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

34

Figure 14.28 LSA general header

Page 35: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

35

Figure 14.29 Router link

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 36: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

36

Figure 14.30 Router link LSA

Page 37: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

37

Table 14.2 Table 14.2 Link types, link identification, and link dataLink types, link identification, and link data

Page 38: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 38

OSPF packets are encapsulated in IP datagrams.

Note:Note:

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 39: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 39

14.7 BGP

Border Gateway Protocol (BGP) is an interdomain routing protocol Border Gateway Protocol (BGP) is an interdomain routing protocol using path vector routing. It first appeared in 1989 and has gone using path vector routing. It first appeared in 1989 and has gone through four versions. through four versions.

The topics discussed in this section include:The topics discussed in this section include:Types of Autonomous Systems Types of Autonomous Systems Path Attributes Path Attributes BGP Sessions BGP Sessions External and Internal BGP External and Internal BGP Types of Packets Types of Packets Packet Format Packet Format Encapsulation Encapsulation

Page 40: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 40

Figure 14.50 Internal and external BGP sessions

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 41: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 41

Figure 14.51 Types of BGP messages

Page 42: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 42

Figure 14.52 BGP packet header

Page 43: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 43

Figure 14.53 Open message

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 44: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 44

Figure 14.54 Update message

Page 45: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 45

BGP supports classless addressing and CIDR.

Note:Note:

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 46: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 46

Figure 14.55 Keepalive message

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com

Page 47: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 47

Figure 14.56 Notification message

Page 48: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 48

Table 14.3 Table 14.3 Error codesError codes

Page 49: 1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred

TCP/IP Protocol Suite 49

BGP uses the services of TCP on port 179.

Note:Note:

www.btechebooks4u.blogspot.comwww.btechebooks4u.blogspot.com