CS4500CS4500 Dr. Clincy1 Continuing Chapter 11 Unicast Routing Protocols (RIP, OSPF, BGP) (How the routers’ tables are filled in) Lecture 6.

Slides:



Advertisements
Similar presentations
Introduction 1 Lecture 22 Network Layer (Broadcast and Multicast) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science.
Advertisements

Multicast on the Internet CSE April 2015.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 12 Multicasting And Multicast.
1 Internet Networking Spring 2004 Tutorial 7 Multicast Routing Protocols.
TCP/IP Protocol Suite 1 Chapter 15 Upon completion you will be able to: Multicasting and Multicast Routing Protocols Differentiate between a unicast, multicast,
Routing So how does the network layer do its business?
Slide Set 15: IP Multicast. In this set What is multicasting ? Issues related to IP Multicast Section 4.4.
Internet Networking Spring 2002
McGraw-Hill©The McGraw-Hill Companies, Inc., Chapter 21 Unicast and Multicast Routing: Routing Protocols.
1 CSE 401N:Computer Network LECTURE-14 MULTICAST ROUTING.
Delivery, Forwarding, and Routing
MULTICASTING Network Security.
© J. Liebeherr, All rights reserved 1 IP Multicasting.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 14 Multicasting And Multicast Routing Protocols.
Delivery, Forwarding and
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Multicasting  A message can be unicast, multicast, or broadcast.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing
22.1 Chapter 22 Network Layer: Delivery, Forwarding, and Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Multicast Routing Protocols NETE0514 Presented by Dr.Apichan Kanjanavapastit.
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.
Network Layer4-1 R1 R2 R3R4 source duplication R1 R2 R3R4 in-network duplication duplicate creation/transmission duplicate Broadcast Routing r Deliver.
AD HOC WIRELESS MUTICAST ROUTING. Multicasting in wired networks In wired networks changes in network topology is rare In wired networks changes in network.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
CSC 600 Internetworking with TCP/IP Unit 8: IP Multicasting (Ch. 17) Dr. Cheer-Sun Yang Spring 2001.
Broadcast and Multicast. Overview Last time: routing protocols for the Internet  Hierarchical routing  RIP, OSPF, BGP This time: broadcast and multicast.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing Part 5 Multicasting protocol.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Chapter 15 Multicasting and Multicast Routing
Multicast Routing Protocols. The Need for Multicast Routing n Routing based on member information –Whenever a multicast router receives a multicast packet.
© J. Liebeherr, All rights reserved 1 Multicast Routing.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
Introduction to Multicast Routing Protocols
© J. Liebeherr, All rights reserved 1 IP Multicasting.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
©The McGraw-Hill Companies, Inc., 2000© Adapted for use at JMU by Mohamed Aboutabl, 2003Mohamed Aboutabl1 1 Chapter 14 Multicasting And Multicast Routing.
4: Network Layer4-1 Chapter 4: Network Layer Last time: r Internet routing protocols m RIP m OSPF m IGRP m BGP r Router architectures r IPv6 Today: r IPv6.
Multicasting  A message can be unicast, multicast, or broadcast. Let us clarify these terms as they relate to the Internet.
Chapter 21 Multicast Routing
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
(How the routers’ tables are filled in)
Spring 2006CS 3321 Multicast Outline Link-state Multicast Distance-vector Multicast Protocol Independent Multicast.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
2/25/20161 Multicast on the Internet CSE 6590 Fall 2009.
Communication Networks Recitation 11. Multicast & QoS Routing.
1 Group Communications: Reverse Path Multicast Dr. Rocky K. C. Chang 19 March, 2002.
TCP/IP Protocol Suite 1 Multicasting and Multicast Routing Protocols Differentiate between a unicast and a multicast message Understand multicast link.
22.1 Network Layer Delivery, Forwarding, and Routing.
Lecture 15 and 16 Ch 12: Multicast Routing Section 12
(How the routers’ tables are filled in)
(How the routers’ tables are filled in)
TODAY’S TENTATIVE AGENDA
Chapter 6 Delivery & Forwarding of IP Packets
Distance Vector Routing
Net 323 D: Networks Protocols
Delivery, Forwarding, and Routing
Agenda Answer any questions regarding OSPF or BGP
STRUCTURE OF A ROUTER We represent a router as a black box that accepts incoming packets from one of the input ports (interfaces), uses a routing table.
UNIT III ROUTING.
(How the routers’ tables are filled in)
Multicasting and Multicast Routing Protocols
(How the routers’ tables are filled in)
Will Review Exam 3 Dr. Clincy Lecture.
Chapter 12 Multicasting And Multicast Routing Protocols
STRUCTURE OF A ROUTER We represent a router as a black box that accepts incoming packets from one of the input ports (interfaces), uses a routing table.
Implementing Multicast
Optional Read Slides: Network Multicast
STRUCTURE OF A ROUTER We represent a router as a black box that accepts incoming packets from one of the input ports (interfaces), uses a routing table.
Chapter 6 Delivery & Forwarding of IP Packets
Presentation transcript:

CS4500CS4500 Dr. Clincy1 Continuing Chapter 11 Unicast Routing Protocols (RIP, OSPF, BGP) (How the routers’ tables are filled in) Lecture 6

CS4500CS4500 Dr. Clincy2 Popular Unicast Routing protocols RIP – Routing Information Protocol – treats each network the same (assigns the same cost for each network) – already covered OSPF – Open Shortest Path First protocol – assigns a cost for passing through a network based on the type of service required – routes through the network can have different cost – each router would have several tables BGP – Border Gateway Protocol – is an exterior routing protocol that uses a policy that defines what paths should be chosen

CS4500CS4500 Dr. Clincy3 OSPF: Open Shortest Path First Similar to RIP however, divide autonomous system into areas Routers with in an area floods the area with routing info – router sends to all it’s neighbors and each neighbor sends to all it’s neighbors and etc.. At the border of an area, special routers called area border routers are used to (1) summarize info about an area and (2) send info amongst areas A special area called the backbone is used to tie together all of the areas – backbone is primary area and all other areas are secondary areas – backbone area uses backbone routers Note: backbone router can also be an area border router Each area has an ID (backbone’s Id is 0) Explain Current Real World Practices relating to this topic

CS4500CS4500 Dr. Clincy4 The OSPF is similar to RIP however, it allows the admin the ability to assign a cost or metric to each route. The metric can be based on a type of service (ie. Min delay, max throughput, etc..) For OSPF, a router will have multiple routing tables – one for each TOS Unlike RIP, sharing or updating is done when there is a change (not periodically) For OSPF, the objective is for the routers to contain the full picture or topology of the Internet – by having this, the router can figure out the “shortest path” or “least cost” route between itself and each network To do this, the Internet is represented by a graph – set of edges and nodes Recall OSPF: Open Shortest Path First

CS4500CS4500 Dr. Clincy5 Point-to-point link Transient link Stub link Defining edges or connections/links Direct connection between two routers, no IP address needed Bi-directional Edge Represents the network Connects to only one router – packets enter and leave through this same router Virtual link When link between two routers are broken, admin creates a new route across multiple routers

CS4500CS4500 Dr. Clincy6 Graphical representation of an internet

CS4500CS4500 Dr. Clincy7 OSPF uses Dijkstra’s Shortest Path Algorithm

CS4500CS4500 Dr. Clincy8 Dijkstra’s Algorithm Cont..

CS4500CS4500 Dr. Clincy9 Dijkstra’s Algorithm Continued At this point, we would have the least cost path from A to all other nodes Note: to find the least cost paths from E to all other nodes, Disjkstra’s algorithm has to run again

CS4500CS4500 Dr. Clincy10 Answer in Hyphen Format A-D A-D-N3 A-D-N3-F A-D-N3-F-N5 A-N1 A-N1-B A-N1-B-E A-N1-B-E-N4 A-N1-C A-N1-C-N2

CS4500CS4500 Dr. Clincy11 A re-occurring theme How do the OSPF packets travel across the network(s) ??????????????

CS4500CS4500 Dr. Clincy12 OSPF packets are encapsulated in IP datagrams.

CS4500CS4500 Dr. Clincy13 BGP: Border Gateway Protocol BPG is an inter- autonomous system routing protocol that makes use of path vector routing For BPG, each routing entry contains (1) destination network, (2) next router (hop) and (3) entire path to reach destination Path is an ordered list of autonomous systems that the packet should travel through to make it to the destination

CS4500CS4500 Dr. ClincyLecture14 Chapter 12 Multicast Routing Protocols Lecture 6

CS4500CS4500 Dr. ClincyLecture15 Put Your Unicast Routing HAT on

CS4500CS4500 Dr. ClincyLecture16 Recall Unicasting Vs Multicasting Vs Broadcasting In unicast routing, the router forwards the received packet through only one of its interfaces.In unicast routing, the router forwards the received packet through only one of its interfaces. Both the source and destination addresses are unicast addressesBoth the source and destination addresses are unicast addresses One-to-One RelationshipOne-to-One Relationship Unicasting Case:

CS4500CS4500 Dr. ClincyLecture17 Multicasting Case In multicast routing, the router may forward the received packet through several of its interfaces.In multicast routing, the router may forward the received packet through several of its interfaces. The source address is unicast and the destination address is a group address (Class D)The source address is unicast and the destination address is a group address (Class D) Group address define a set of Rx’sGroup address define a set of Rx’s One-to-Many RelationshipOne-to-Many Relationship Actually, the packet is DUPLICATED at each router – only one copy travels in between any two routersActually, the packet is DUPLICATED at each router – only one copy travels in between any two routers Packet starts from source, S1, and goes to all destinations belonging to group, G1

CS4500CS4500 Dr. ClincyLecture18 Broadcasting Case One-to-all case would cause traffic problemsOne-to-all case would cause traffic problems

CS4500CS4500 Dr. ClincyLecture19 Multicasting versus multiple unicasting Recall Multicasting One packet start from source and is duplicated at each router Only one copy of the packet travels in between any two routers Packet has a single group address Multiple Unicast Case More than one copy of the packet starts from the source Each copy of the packet has a different destination address In this case, there could be multiple copies traveling between any two routers Multicast is more efficient than multiple unicast because in the unicast cast, some links will use more bandwidth in handling more packet copies. Also for the unicast case, there is more delay at the source due to packet duplication

CS4500CS4500 Dr. ClincyLecture20 MULTICAST ROUTING Now we understand what multicasting is Now let’s understand how packets are routed in the multicast case Some Objectives of multicast routing (very complex) Each Rx of the group must get only one copy of the packet Rx’s not belonging to the group DO NOT get a copy of the packet The packet can not visit the same router more than once (no loops) The route from Tx to various Rx’s must be optimal (shortest path)

CS4500CS4500 Dr. ClincyLecture21 MULTICAST TREES Recall in the RIP/OSPF unicast World, we converted networks to graphs in finding the optimal routes For graphs, nodes can have both successors and predecessors In the multicast World, networks are converted to trees Tree has a hierarchical structure Each node on a tree has (1) a single parent and (2) zero to multiple off-springs (children) The root (source or Tx) of the tree is the initial node (has no parent) A leaf (group members) of a tree has no child Called Spanning Tree provided all nodes are connected NOTE: show students difference between graph & tree

CS4500CS4500 Dr. ClincyLecture22 Two Types of Trees are used for multicasting by protocols: Source-Based Trees – a single tree is created for each Source-to-Group combination. For example, given M sources and N groups, there would be a maximum of MxN trees Group-Shared Trees – each group has it’s own tree. Given N groups, there would be a maximum of N trees.

CS4500CS4500 Dr. ClincyLecture23 Source-Based Tree Given a source needs to send a packet to group-1, a certain tree is used Given the same source needs to send a packet to group-5, a different tree is used Challenge: (1) determining all source-to-group combinations, (2) each tree needs to be optimal Two approaches used to create optimal source-based trees: (1st) An extension to the unicast distance vector routing we covered in regards to RIP – used by DVMRP (Distance Vector Multicasting Routing Protocol) (2 nd ) An extension to the unicast link state routing we covered in regards to OSPF – used by MOSPF (Multicast Open Shortest Path First) Another protocol called PIM-DM (Protocol Independent Multicast – Dense Mode) uses either RIP or OSPF depending on need

CS4500CS4500 Dr. ClincyLecture24 Group-Shared Tree Given a source (source x) needs to send a packet to group-1, a certain tree is used Given a different source (source y) needs to send a packet to the same group, group-1, the same tree is used If either source-x or source-y need to send to a different group, the tree would change Note: the tree changes when the group changes – the tree remains the same for a group regardless if the source changes – the group determines the tree Two approaches used to create optimal group-shared trees: (1st) Steiner Tree – the optimal tree has the minimum cost routes like Dijkstra’ algorithm however, instead of it being based around a source node, it is not based around any particular source (very complex and has to re-run every time the topology changes) – not really used by the Internet (2 nd ) Rendezvous-Point Tree – a tree is created for each group and a single router is selected as the core or rendezvous point or root of the tree. The CBT (Core-Based Tree Protocol) and PIM-SM (Protocol Independent Multicast – Sparse Mode) use the rendezvous-point tree approach.

CS4500CS4500 Dr. ClincyLecture25 Multicast routing protocols

CS4500CS4500 Dr. ClincyLecture26 DVMRP Distance Vector Multicast Routing Protocol –similar to the distance vector routing protocol we covered for the unicast case – next hop scenario. For DVMRP, the optimal tree is not pre-defined – only the next hop How do we build a tree using the DVMRP approach ? Use a modified “flooding” approach Recall what flooding is: a router sends a copy of a packet out of all of it’s interfaces – all interfaces except the interface the packet came in on Flooding will cause looping problems (ie. the same packet copy that left the router will re-visit the router) The flooding is modified to stop the looping problem How is the flooding modified ??????

CS4500CS4500 Dr. ClincyLecture27 DVMRP - How is the flooding modified ?????? Instead of forwarding copies of the packet through all interfaces (except the receiving interface), ONLY FORWARD THE PACKET IF IT CAME IN ON THE SHORTEST PATH This approach of only forwarding the packet if it comes in on the shortest path is called Reverse Path Forwarding (RPF) – RPF prevents looping How does the router determines if the packet came in on the shortest path ??? Recall that the unicast routing tables contain the next hop based around the shortest path – the table has destinations, interfaces and next hops en route to destinations If the router used the packet’s source address (instead of destination address), the router could determine the NEXT HOP and desired INTERFACE to exit en route to the packet’s source address Punch Line: if the INTERFACE the packet arrived at, is the same INTERFACE the packet needs to take in achieving the shortest path en route to the source address – then the PACKET ARRIVED USING THE SHORTEST PATH – make sense ?? If it comes in on the non-shortest path – drop it

CS4500CS4500 Dr. ClincyLecture28 DVMRP Continuing EXAMPLE A multicast router receives a packet with source address and destination address from interface 2. Should the router discard or forward the packet based on the following unicast table ? DestinationInterface SOLUTION: In interpreting the source address of using the default mask, the router would send the packet to network via interface 3 (not interface 2). Recall the packet came in on interface 2 – therefore, the router would DROP the packet (and not forward it)

CS4500CS4500 Dr. ClincyLecture29 DVMRP Continuing What RPF guarantees is: each network will receive a copy of the multicast packet WITHOUT the loop problem What RPF doesn’t guarantee is: each network will receive ONLY ONE COPY With the Reverse Path Forwarding approach, networks could received multiple copies (see example below) In fixing this problem, a policy called Reverse Path Broadcasting (RPB) can be implemented.

CS4500CS4500 Dr. ClincyLecture30 To eliminate networks (nodes) receiving more than one copy, ONLY THE PARENT HAS THE RIGHT TO FORWARD (this is the RPB policy) Recall: with a tree, each node has only ONE PARENT Therefore, if the parent is the only node that can forward, no node should receive duplicates Policy: the router sends the packet only out of those interfaces for which it is the designated parent. See the example  Reverse Path Broadcasting (RPB) The next question: “How is the parent determined ????” The router with the shortest path to the source is designated as the PARENT Recall: because routers share info with their neighbors, they can easily determine which router has the shortest path to the source

CS4500CS4500 Dr. ClincyLecture31 RPB creates a shortest path broadcast tree (not multicast tree) from the source to each destination. It guarantees that each destination receives one and only one copy of the packet.

CS4500CS4500 Dr. ClincyLecture32 Reverse Path Multicasting (RPM) Based on pruning Using the IGMP (Internet Group Management Protocol), each PARENT ROUTER holds a membership and knows which groups it is not responsible for. The PARENT ROUTER sends a “prune message” to it’s upstream router letting the upstream router know NOT to send any packets belonging to certain no-interest groups through that corresponding interface. That upstream router will do the same to it’s upstream router This creates a “pruning” effect in that only the packets belonging to a group are forwarded through a particular interface Based on grafting Suppose a “leaf” router (a router with NO children) had previously sent a prune message and suddenly realize it NOW INTERESTED in receiving the multicast packet The leaf router will issue a grafting message upstream and as a result, multicasting will resume Recall RPB broadcast a packet versus multicast How is multicasting achieved ? (1) the first packet is broadcasted no matter what, (2) the remaining packets are multicasted based on pruning and grafting Another name for pruning and grafting is Reverse Path Multicasting (RPM)

CS4500CS4500 Dr. ClincyLecture33 RPM adds pruning and grafting to RPB to create a multicast shortest path tree that supports dynamic membership changes.

CS4500CS4500 Dr. ClincyLecture34 MOSPF MOSPF stands for Multicast Open Shortest Path First Extension of the OSPF protocol Instead of the tree being generated gradually – it’s generated all at once – by using the link state database (recall) With the link state database, the router can see the entire topology Each router could then use Dijikstra’s algorithm and obtain a least cost tree for each router (or node) For multicasting routing, we need a tree for each source/group pair For the source/group trees, the only hosts with the particular group address are included We do the previous by associating the unicast address with the group address – with this approach, we do the calculation the same way using the unicast address however, the associated group address dictates if the host is added to the tree or not MOSPF is a data-driven protocol – the first time a MOSPF router sees a datagram with a given source and group address, the router calculates Dijkstra

CS4500CS4500 Dr. ClincyLecture35 Core-Based Tree (CBT) Protocol Is a group-shared protocol Autonomous systems are divided into regions and a core router or rendezvous point is used for each region In forming a tree: 1 st : the core router or rendezvous router is selected (very complex - will not cover this process – not covered in your book as well) 2 nd : all other routers are informed of the unicast address of rendezvous router 3 rd : all routers wanting to join group sends a “join message” to the rendezvous router 4 th : the intermediate routers between the rendezvous router and Tx router record the address of the source and the interface in which the packet came into the router on 5 th : after the rendezvous has received all joined messages – the tree is formed

CS4500CS4500 Dr. ClincyLecture36 CBT - Sending a multicast packet Now that the tree is formed, how are multicast packets sent ? Any particular source can send a multicast packet to the group by: 1 st : source (inside or outside of the shared tree) sends packet to rendezvous router (via the rendezvous router’s unicast address) 2 nd : rendezvous router then sends the packet to the group members

CS4500CS4500 Dr. ClincyLecture37 DVMRP & MOSPF Versus CBT For DVMRP and MOSPF, the tree is created from the root For CBT, the tree is created starting from the leaves For DVMRP, the tree is first made via broadcast and then pruned into a multicast tree For CBT, initially there is no tree and then a tree is created gradually via grafting (ie. announcing to the core you want to be apart of the group)

CS4500CS4500 Dr. ClincyLecture38 Protocol Independent Multicast – Dense Mode (PIM-DM) PIM-DM is used in a dense multicast environment, such as a LAN environment.PIM-DM is used in a dense multicast environment, such as a LAN environment. PIM-DM is justifiably used when each router is involved in multicasting – therefore broadcasting is justifiedPIM-DM is justifiably used when each router is involved in multicasting – therefore broadcasting is justified PIM-DM uses reverse path forwarding, pruning and grafting techniques for multicastingPIM-DM uses reverse path forwarding, pruning and grafting techniques for multicasting

CS4500CS4500 Dr. ClincyLecture39 Protocol Independent Multicast – Sparse Mode (PIM-SM) PIM-SM is used in a sparse multicast environment, such as a WAN environment.PIM-SM is used in a sparse multicast environment, such as a WAN environment. PIM-SM is used when there is a slight possibility each router is involved in multicasting – therefore NOT justifying broadcastingPIM-SM is used when there is a slight possibility each router is involved in multicasting – therefore NOT justifying broadcasting PIM-SM operates more like CBTPIM-SM operates more like CBT PIM-SM allows the ability to switch between source-based tree and group- shared tree strategiesPIM-SM allows the ability to switch between source-based tree and group- shared tree strategies

CS4500CS4500 Dr. ClincyLecture40 Multicast Backbone (MBONE) There are many more unicast oriented routers in the Internet than multicast routers (ie. routers able to multicast) In creating more links between multicast routers, the concept of “tunneling” is used Tunneling - via unicast routers, multicast routers are logically connected – in essence we create a multicast backbone in logically linking the multicast routers

CS4500CS4500 Dr. ClincyLecture41 MBONE – How are tunnels created ? How to create a tunnel 1 st : encapsulate multicast packet inside a unicast packet (in the data field) 2 nd : the unicast intermediate routers route the packet to the next multicast router