TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.

Slides:



Advertisements
Similar presentations
Path Vector Routing NETE0514 Presented by Dr.Apichan Kanjanavapastit.
Advertisements

Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol –Datagram format.
Chapter 11 Unicast Routing Protocols
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Unicast Routing Protocols: RIP, OSPF, and BGP
Routing So how does the network layer do its business?
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
Unicast Routing Protocols: RIP, OSPF, and BGP
Delivery, Forwarding, and Routing
INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is.
TCP/IP Protocol Suite1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Chapter 14 Routing Protocols (RIP, OSPF, and BGP)
Delivery, Forwarding and
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 14 Routing Protocols RIP, OSPF, BGP.
Computer Networks22-1 Chapter 22. Network Layer: Delivery, Forwarding, and Routing 21.1 Delivery 21.2 Forwarding 21.3 Unicast Routing Protocols 21.4 Multicast.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
1 Chapter 22 Network layer Delivery, Forwarding and Routing (part2)
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 13 Routing Protocols (RIP, OSPF, BGP)
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
資 管 Lee Lesson 10 RIP, OSPF, and BGP. 資 管 Lee Routing in Internet An internet is divided into autonomous systems. An autonomous system(AS) is a group.
1 Chapter 14 Routing Protocols (RIP, OSPF, and BGP) Chapter 14 Routing Protocols (RIP, OSPF, and BGP) Mi-Jung Choi Dept. of Computer Science and Engineering.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
22.1 Chapter 22 Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 14 1 Unicast Routing Protocols There isn’t a person anywhere that isn’t capable of doing more than he thinks he can. - Henry Ford.
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
Dynamic Routing Protocols II OSPF
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
1 Kyung Hee University Chapter 11 Unicast Routing Protocols (RIP, OSPF, and BGP)
(How the routers’ tables are filled in)
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Ch 22. Routing Direct and Indirect Delivery.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred.
RIP Routing Protocol. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
1. 2  An autonomous system is a region of the Internet that is administered by a single entity.  Examples of autonomous regions are:  UVA’s campus.
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
22.1 Network Layer Delivery, Forwarding, and Routing.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols II OSPF
Dynamic Routing Protocols part2
Chapter 14 Routing Protocols (RIP, OSPF, and BGP)
(How the routers’ tables are filled in)
9 Network Layer Part VI Computer Networks Tutun Juhana
Routing Information Protocol (RIP)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
COMP 3270 Computer Networks
Rip Routing Protocol.
Delivery, Forwarding, and Routing
Net 323 D: Networks Protocols
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Routing.
Net 323 D: Networks Protocols
(How the routers’ tables are filled in)
Dynamic Routing Protocols part2
Chapter 13 Routing Protocols (RIP, OSPF, and BGP)
UNICAST ROUTING PROTOCOLS
Routing Protocols (RIP, OSPF, BGP).
Chapter 11 Unicast Routing Protocols (RIP, OSPF, and BGP)
Chapter 13 Routing Protocols (RIP, OSPF, and BGP)
Computer Networks Protocols
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain routing Understand distance vector routing and RIP Understand link state routing and OSPF Understand path vector routing and BGP Objectives

TCP/IP Protocol Suite INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred to as interdomain routing.

TCP/IP Protocol Suite 3 Figure 14.1 Autonomous systems

TCP/IP Protocol Suite 4 Figure 14.2 Popular routing protocols

TCP/IP Protocol Suite DISTANCE VECTOR ROUTING 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 vector (table) of minimum distances to every node The topics discussed in this section include: InitializationSharingUpdating When to Share Two-Node Loop Instability Three-Node Instability

TCP/IP Protocol Suite 6 Figure 14.3 Distance vector routing tables

TCP/IP Protocol Suite 7 Figure 14.4 Initialization of tables in distance vector routing

TCP/IP Protocol Suite 8 In distance vector routing, each node shares its routing table with its immediate neighbors periodically and when there is a change. Note:

TCP/IP Protocol Suite 9 Figure 14.5 Updating in distance vector routing

TCP/IP Protocol Suite10 Updating Routing Table If the next-node entry is different –The receiving node chooses the row with the smaller cost –If there is a tie, the old one is kept If the next-node entry is the same –The receiving node chooses the new row, even though the new value is infinity.

TCP/IP Protocol Suite11 When to Share Periodic Update –A node sends its routing table, normally 30 seconds, in a periodic update Triggered Update –A node sends its routing table to its neighbors any time when there is a change in its routing table 1. After updating its routing table, or 2. Detects some failure in the neighboring links

TCP/IP Protocol Suite 12 Figure 14.6 Two-node instability

TCP/IP Protocol Suite13 Two-Node Instability (1) Defining Infinity –Most implementations define 16 as infinity Split Horizon –Instead of flooding the table through each interface, each node sends only part of its table through each interface –E.g. node B thinks that the optimum route to reach X is via A, it does not need to advertise this piece of information to A

TCP/IP Protocol Suite14 Two-Node Instability (2) Split Horizon and Poison Reverse –One drawback of Split Horizon Normally, the DV protocol uses a timer and if there is no news about a route, the node deletes the route from its table In the previous e.g., node A cannot guess that this is due to split horizon or because B has not received any news about X recently –Poison Reverse Node B can still advertise the value for X, but is the source of information is A, it can replace the distance with infinity as a warning

TCP/IP Protocol Suite 15 Figure 14.7 Three-node instability If the instability is btw three nodes, stability cannot be guaranteed

TCP/IP Protocol Suite RIP The Routing Information Protocol (RIP) is an intradomain routing protocol used inside an autonomous system. It is a very simple protocol based on distance vector routing. The topics discussed in this section include: RIP Message Format Requests and Responses Timers in RIP RIP Version 2 Encapsulation

TCP/IP Protocol Suite 17 Figure 14.8 Example of a domain using RIP

TCP/IP Protocol Suite 18 Figure 14.9 RIP message format

TCP/IP Protocol Suite 19 Figure Request messages

TCP/IP Protocol Suite20 RIP messages Request –A request message is sent by a router that has just come up or by a router that has some time-out entries –A request can ask about specific entries or all entries Response –A response can be either solicited or unsolicited (30s or when there is a change in the routing table)

TCP/IP Protocol Suite 21 Figure shows the update message sent from router R1 to router R2 in Figure The message is sent out of interface Example 1 See Next Slide The message is prepared with the combination of split horizon and poison reverse strategy in mind. Router R1 has obtained information about networks , , and from router R2. When R1 sends an update message to R2, it replaces the actual value of the hop counts for these three networks with 16 (infinity) to prevent any confusion for R2. The figure also shows the table extracted from the message. Router R2 uses the source address of the IP datagram carrying the RIP message from R1 ( ) as the next hop address.

TCP/IP Protocol Suite 22 Figure Solution to Example 1 Split horizon & Poison Reverse

TCP/IP Protocol Suite 23 Figure RIP timers

TCP/IP Protocol Suite24 RIP Timers Periodic timer –It controls the advertising of regular update message (25 ~ 30 sec) Expiration timer –It governs the validity of a route (180 sec) –The route is considered expired and the hop count of the route is set to 16 Garbage collection timer –A invalid route is not purged from the routing table until this timer expires (120 sec)

TCP/IP Protocol Suite 25 A routing table has 20 entries. It does not receive information about five routes for 200 s. How many timers are running at this time? Example 2 Solution The 21 timers are listed below: Periodic timer: 1 Expiration timer: 20 − 5 = 15 Garbage collection timer: 5

TCP/IP Protocol Suite 26 Figure RIP version 2 format

TCP/IP Protocol Suite 27 Figure Authentication

TCP/IP Protocol Suite28 RIPv2 vs. RIPv1 Classless Addressing Authentication Multicasting –RIPv1 uses broadcasting to send RIP messages to every neighbors. Routers as well as hosts receive the packets –RIPv2 uses the all-router multicast address to send the RIP messages only to RIP routers in the network

TCP/IP Protocol Suite 29 RIP uses the services of UDP on well-known port 520. Note:

TCP/IP Protocol Suite LINK STATE ROUTING 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 table. The topics discussed in this section include: Building Routing Tables

TCP/IP Protocol Suite 31 Figure Concept of link state routing

TCP/IP Protocol Suite 32 Figure Link state knowledge

TCP/IP Protocol Suite33 Building Routing Tables Creation of the states of the links by each node, called the link state packets (LSP) Dissemination of LSPs to every other routers, called flooding (efficiently) Formation of a shortest path tree for each node Calculation of a routing table based on the shortest path tree

TCP/IP Protocol Suite34 Creation of LSP LSP data: E.g. the node ID, the list of links, a sequence number, and age. LSP Generation –When there is a change in the topology of the domain –On a periodic basis There is no actual need for this type of LSP, normally 60 minutes or 2 hours

TCP/IP Protocol Suite 35 Figure Dijkstra algorithm

TCP/IP Protocol Suite 36 Figure Example of formation of shortest path tree

TCP/IP Protocol Suite 37 Table 14.1 Routing table for node A

TCP/IP Protocol Suite OSPF The Open Shortest Path First (OSPF) protocol is an intradomain routing protocol based on link state routing. Its domain is also an autonomous system. The topics discussed in this section include: AreasMetric Types of Links Graphical Representation OSPF Packets Link State Update Packet Other Packets Encapsulation

TCP/IP Protocol Suite 39 Figure Areas in an autonomous system

TCP/IP Protocol Suite40 Area in OSPF (1) A collection of networks with area ID Routers inside an area flood the area with routing information Area border routers summarize the information about the area and send it to other areas Backbone area and backbone routers –All of the area inside an AS must be connected to the backbone

TCP/IP Protocol Suite41 Area in OSPF (2) Virtual link –If, because of some problem, the connectivity between a backbone and an area is broken, a virtual link between routers must be created by the administration to allow continuity of the functions of the backbone as the primary area

TCP/IP Protocol Suite 42 Figure Types of links

TCP/IP Protocol Suite 43 Figure Point-to-point link

TCP/IP Protocol Suite 44 Figure Transient link

TCP/IP Protocol Suite 45 Figure Stub link

TCP/IP Protocol Suite 46 Figure Example of an AS and its graphical representation in OSPF

TCP/IP Protocol Suite 47 Figure Types of OSPF packets

TCP/IP Protocol Suite 48 Figure OSPF common header

TCP/IP Protocol Suite 49 Figure Link state update packet

TCP/IP Protocol Suite 50 Figure LSA general header

TCP/IP Protocol Suite51 LSA General Header (1) Link state age –When a router creates the message, the value of this field is 0 –When each successive router forwards this message, it estimates the transit time and adds it to the cumulative value of this field

TCP/IP Protocol Suite52 LSA General Header (2) E flag –If this flag is set to 1, it means the area is a stub area (an area that is connected to the backbone area by only one path T flag –If this flag is set to 1, it means the router can handle multiple types of services

TCP/IP Protocol Suite53 LSA General Header (3) Advertising router –The IP address of the router advertising this message Link state sequence number –A sequence number assigned to each link state update message

TCP/IP Protocol Suite54 LS Type and LS ID Address of the networkExternal link IP address of the boundary router Summary link to AS boundary Address of the networkSummary link to network IP address of the designated router Network link IP address of the routerRouter link Link state IDLink state type

TCP/IP Protocol Suite 55 Figure Router link

TCP/IP Protocol Suite 56 Figure Router link LSA

TCP/IP Protocol Suite 57 Table 14.2 Link types, link identification, and link data

TCP/IP Protocol Suite 58 Give the router link LSA sent by router in Figure Example 3 Solution This router has three links: two of type 1 (point-to- point) and one of type 3 (stub network). Figure shows the router link LSA. See Next Slide See Figure 14.32

TCP/IP Protocol Suite 59 Figure Example 3

TCP/IP Protocol Suite 60 Figure Solution to Example 3

TCP/IP Protocol Suite 61 Figure Network link

TCP/IP Protocol Suite 62 Figure Network link advertisement format

TCP/IP Protocol Suite 63 Give the network link LSA in Figure Example 4 Solution. See Next Slide See Figure 14.36

TCP/IP Protocol Suite 64 Figure Example 4

TCP/IP Protocol Suite 65 Figure Solution to Example 4

TCP/IP Protocol Suite 66 In Figure 14.37, which router(s) sends out router link LSAs? Example 5 Solution All routers advertise router link LSAs. a. R1 has two links, N1 and N2. b. R2 has one link, N1. c. R3 has two links, N2 and N3. See Next Slide

TCP/IP Protocol Suite 67 Figure Example 5 and Example 6

TCP/IP Protocol Suite 68 In Figure 14.37, which router(s) sends out the network link LSAs? Example 6 Solution All three network must advertise network links: a. Advertisement for N1 is done by R1 because it is the only attached router and therefore the designated router. b. Advertisement for N2 can be done by either R1, R2, or R3, depending on which one is chosen as the designated router. c. Advertisement for N3 is done by R3 because it is the only attached router and therefore the designated router.

TCP/IP Protocol Suite 69 Figure Summary link to network

TCP/IP Protocol Suite 70 Figure Summary link to network LSA

TCP/IP Protocol Suite 71 Figure Summary link to AS boundary router

TCP/IP Protocol Suite 72 Figure Summary link to AS boundary router LSA

TCP/IP Protocol Suite 73 Figure External link

TCP/IP Protocol Suite 74 Figure External link LSA The AS boundary router may define a forwarding router that can provide a better route to the destination.

TCP/IP Protocol Suite 75 Figure Hello packet OSPF uses the hello message to create neighborhood relationship and to test the reachability of neighbors. This is the first step in link state routing. Before a router can flood all of the other routers with information about its neighbors, it must first greet it neighbors.

TCP/IP Protocol Suite 76 Figure Database description packet When a router is connected to the system for the first time or after a failure, it needs the complete link state database immediately. Therefore, it sends hello packets to greet its neighbors. If this is the first time that the neighbors hear from the router, they send a database description message. The database description packet does not contain complete database information; it only gives an outline, the title of each lines in the database.

TCP/IP Protocol Suite 77 Figure Link state request packet

TCP/IP Protocol Suite 78 Figure Link state acknowledgment packet

TCP/IP Protocol Suite 79 OSPF packets are encapsulated in IP datagrams. Note:

TCP/IP Protocol Suite PATH VECTOR ROUTING Path vector routing is similar to distance vector routing. There is at least one node, called the speaker node, in each AS that creates a routing table and advertises it to speaker nodes in the neighboring ASs.. The topics discussed in this section include: InitializationSharingUpdating

TCP/IP Protocol Suite 81 Figure Initial routing tables in path vector routing A speaker node advertises the path, not the metric of the nodes, in its AS or other ASs.

TCP/IP Protocol Suite 82 Figure Stabilized tables for four autonomous systems

TCP/IP Protocol Suite83 Path Vector Routing (1) Sharing –A speaker in an AS shares its table with immediate neighbors Updating –Adding the nodes that are not in its routing table and adding its own AS and the AS that sent the table –The routing table shows the path completely

TCP/IP Protocol Suite84 Path Vector Routing (2) Loop prevention –A route checks to see if its SA is in the path list to the destination Policy routing –If one of the ASs listed in the path is against its policy, it can ignore that path and that destination –It does not update its routing table with the path, and it does not send this message to its neighbors

TCP/IP Protocol Suite85 Path Vector Routing (3) Optimum path –Problem: each AS that is included in the path may use a different criteria for the metric –The optimum path is the path that fits the organization –For Fig , the author chose the one that had the smaller number of ASs –Other criteria: security, safety, reliability, etc.

TCP/IP Protocol Suite BGP Border Gateway Protocol (BGP) is an interdomain routing protocol using path vector routing. It first appeared in 1989 and has gone through four versions. The topics discussed in this section include: Types of Autonomous Systems Path Attributes BGP Sessions External and Internal BGP Types of Packets Packet Format Encapsulation

TCP/IP Protocol Suite87 Types of AS Stub AS –Only one connection to another AS (only a source or sink for data traffic) Multihomed AS –More than one connection to other AS, but it is still only a source or sink for data traffic Transit AS –Multihomed AS that also allows transient traffic

TCP/IP Protocol Suite 88 Figure Internal and external BGP sessions

TCP/IP Protocol Suite 89 Figure Types of BGP messages When a TCP connection is created for BGP, it can last for a long time, until something unusual happens. For this reason, BGP sessions are sometimes referred to as semi-permanent connections.

TCP/IP Protocol Suite 90 Figure BGP packet header (for authentication)

TCP/IP Protocol Suite 91 Figure Open message

TCP/IP Protocol Suite 92 Figure Update message

TCP/IP Protocol Suite93 Path Attributes ORIGIN –The source of the routing information (RIP, OSPF, etc) AS_PATH –The list of ASs through which the destination can be reached NEXT-HOP –The next router to which the data packet should be sent

TCP/IP Protocol Suite94 NLRI Network layer reachability information –It defines the network that is actually advertised by this message –Length field and IP address prefix –BGP4 supports classless addressing and CIDR

TCP/IP Protocol Suite 95 BGP supports classless addressing and CIDR. Note:

TCP/IP Protocol Suite 96 Figure Keepalive message

TCP/IP Protocol Suite 97 Figure Notification message

TCP/IP Protocol Suite 98 Table 14.3 Error codes

TCP/IP Protocol Suite 99 BGP uses the services of TCP on port 179. Note: