Chapter 16 Exterior Routing Protocols And Multicasting Chapter

  • Slides: 44
Download presentation
Chapter 16 Exterior Routing Protocols And Multicasting Chapter 16 Exterior Routing Protocols and Multicasting

Chapter 16 Exterior Routing Protocols And Multicasting Chapter 16 Exterior Routing Protocols and Multicasting 1

Problems with Distance-Vector and Link-State Routing Neither distance-vector (RIP) nor link state (OSPF) protocols

Problems with Distance-Vector and Link-State Routing Neither distance-vector (RIP) nor link state (OSPF) protocols effective for exterior routing l Distance vector and link state protocols assume all routers share common metric l Priorities and restrictions may differ between ASs l Flooding of link state information may become unmanageable l Chapter 16 Exterior Routing Protocols and Multicasting 2

Path Vector Routing l l Dispense with routing metrics Provide information about: – Which

Path Vector Routing l l Dispense with routing metrics Provide information about: – Which networks can be reached by given router – Which ASs must be crossed to get there l l No distance or cost element Routing information includes all Ass visited to reach destination – Allows policy routing Chapter 16 Exterior Routing Protocols and Multicasting 3

Boarder Gateway Protocol (BGP) Allows routers (gateways) in different ASs to exchange routing information

Boarder Gateway Protocol (BGP) Allows routers (gateways) in different ASs to exchange routing information l Messages sent over TCP l – See next slide l Three functional procedures – Neighbor acquisition – Neighbor reachability – Network reachability Chapter 16 Exterior Routing Protocols and Multicasting 4

BGP v 4 Messages l Open – Start neighbor relationship with another router l

BGP v 4 Messages l Open – Start neighbor relationship with another router l Update – Transmit information about single route – List multiple routes to be withdrawn l Keepalive – Acknowledge open message – Periodically confirm neighbor relationship l Notification – Send when error condition detected Chapter 16 Exterior Routing Protocols and Multicasting 5

Neighbor Acquisition l l l Neighbors attach to same subnetwork If in different ASs

Neighbor Acquisition l l l Neighbors attach to same subnetwork If in different ASs routers may wish to exchange information Neighbor acquisitionis when two neighboring routers agree to exchange routing information regularly – Needed because one router may not wish to take part l One router sends request, the other acknowledges – Knowledge of existence of other routers and need to exchange information established at configuration time or by active intervention Chapter 16 Exterior Routing Protocols and Multicasting 6

Neighbor Reachability Periodic issue of keepalive messages l Between all routers that are neighbors

Neighbor Reachability Periodic issue of keepalive messages l Between all routers that are neighbors l Chapter 16 Exterior Routing Protocols and Multicasting 7

Network Reachability Each router keeps database of subnetworks it can reach and preferred route

Network Reachability Each router keeps database of subnetworks it can reach and preferred route l When change made, router issues update message l All BGP routers build up and maintain routing information l Chapter 16 Exterior Routing Protocols and Multicasting 8

BGP Message Formats l Marker: – Reserved for authentication l Length: – In octets

BGP Message Formats l Marker: – Reserved for authentication l Length: – In octets l Type: – Open, Update, Keepalive, Notification Chapter 16 Exterior Routing Protocols and Multicasting 9

Neighbor Acquisition Detail l l Router opens TCP connection with neighbor Sends open message

Neighbor Acquisition Detail l l Router opens TCP connection with neighbor Sends open message – Identifies sender’s AS and gives IP address – Includes Hold Time l l As proposed by sender If recipient prepared to open neighbor relationship – Calculate hold time l l min [own hold time, received hold time] Max time between keepalive/update messages – Reply with keepalive Chapter 16 Exterior Routing Protocols and Multicasting 10

Keepalive Detail Header only l Often enough to prevent hold time expiring l Chapter

Keepalive Detail Header only l Often enough to prevent hold time expiring l Chapter 16 Exterior Routing Protocols and Multicasting 11

Update Detail l Information about single route through internet – Information to be added

Update Detail l Information about single route through internet – Information to be added to database of any recipient router – Network layer reachability information (NLRI) l List of network portions of IP addresses of subnets reached by this route – Total path attributes length field – Path attributes field (next slide) l l List of previously advertised routes being withdrawn May contain both Chapter 16 Exterior Routing Protocols and Multicasting 12

Path Attributes Field l Origin – Interior (e. g. OSPF) or exterior (BGP) protocol

Path Attributes Field l Origin – Interior (e. g. OSPF) or exterior (BGP) protocol l AS_Path – ASs traversed for this route l Next_Hop – IP address of boarder router for next hop l Multi_Exit_disc – Information about routers internal to AS l Local_Pref – Tell other routers within AS degree of preference l Atomic_Aggregate, Aggregator – Uses subnet addresses in tree view of network to reduce information needed in NLRI Chapter 16 Exterior Routing Protocols and Multicasting 13

Withdrawal of Route(s) l Route identified by IP address of destination subnetwork(s) Chapter 16

Withdrawal of Route(s) l Route identified by IP address of destination subnetwork(s) Chapter 16 Exterior Routing Protocols and Multicasting 14

Notification Message l l Error notification Message header error – Includes authentication and syntax

Notification Message l l Error notification Message header error – Includes authentication and syntax errors l Open message error – Syntax errors and option not recognised – Proposed hold time unacceptable l Update message error – Syntax and validity errors l l l Hold time expired Finite state machine error Cease – Close connection in absence of any other error Chapter 16 Exterior Routing Protocols and Multicasting 15

Diagram for BGP Routing Information Exchange Chapter 16 Exterior Routing Protocols and Multicasting 16

Diagram for BGP Routing Information Exchange Chapter 16 Exterior Routing Protocols and Multicasting 16

BGP Routing Information Exchange l l R 1 constructs routing table for AS 1

BGP Routing Information Exchange l l R 1 constructs routing table for AS 1 using OSPF R 1 issues update message to R 5 (in AS 2) – AS_Path: identity of AS 1 – Next_Hop: IP address of R 1 – NLRI: List of all subnets in AS 1 l l Suppose R 5 has neighbor relationship with R 9 in AS 3 R 9 forwards information from R 1 to R 9 in update message – AS_Path: list of ids {AS 2, AS 1} – Next_Hop: IP address of R 5 – NLRI: All subnets in AS 1 l R 9 decides if this is prefered route and forwards to neighbors Chapter 16 Exterior Routing Protocols and Multicasting 17

Inter-Domain Routing Protocol (IDRP) l l l Exterior routing protocol for IPv 6 ISO-OSI

Inter-Domain Routing Protocol (IDRP) l l l Exterior routing protocol for IPv 6 ISO-OSI standard Path-vector routing Superset of BGP Operates over any internet protocol (not just TCP) – Own handshaking for guaranteed delivery l l l Variable length AS identifiers Handles multiple internet protocols and address schemes Aggregates path information using routing domain confederations Chapter 16 Exterior Routing Protocols and Multicasting 18

Routing Domain Confederations Set of connected AS l Appear to outside world as single

Routing Domain Confederations Set of connected AS l Appear to outside world as single AS l – Recursive l Effective scaling Chapter 16 Exterior Routing Protocols and Multicasting 19

Multicasting l Sending message to multicast address – Multicast address refers to a group

Multicasting l Sending message to multicast address – Multicast address refers to a group of hosts Multimedia l Teleconferencing l Databases l Distributed computation l Real-time workgroup l Chapter 16 Exterior Routing Protocols and Multicasting 20

Multicasting within LAN l MAC level multicast addresses – IEEE 802 uses highest order

Multicasting within LAN l MAC level multicast addresses – IEEE 802 uses highest order bit 1 All stations that recognise the multicast address accept the packet l Works because of broadcast nature of LAN l Packet only sent once l Much harder on internet l Chapter 16 Exterior Routing Protocols and Multicasting 21

Example Configuration for Multicast Internet Chapter 16 Exterior Routing Protocols and Multicasting 22

Example Configuration for Multicast Internet Chapter 16 Exterior Routing Protocols and Multicasting 22

Broadcast l l l Assume location of recipients not know Send packet to every

Broadcast l l l Assume location of recipients not know Send packet to every network Packet addressed to N 3 traverses N 1, link L 3, N 3 Router B translates IP multicast address to MAC multicast address Repeat for each network Generates lots of packets – In example, 13 Chapter 16 Exterior Routing Protocols and Multicasting 23

Multiple Unicast Location of each member of multicast group known to source l Table

Multiple Unicast Location of each member of multicast group known to source l Table maps multicast address to list of networks l Only need to send to networks containing members of multicast group l Reduced traffic (a bit) l – In example, 11 Chapter 16 Exterior Routing Protocols and Multicasting 24

True Multicast l Least cost path from source to each network containing member of

True Multicast l Least cost path from source to each network containing member of group is determined – Gives spanning tree configuration l l For networks containing group members only Source transmits packet along spanning tree Packet replicated by routers at branch points of spanning tree Reduced traffic – In example, 8 Chapter 16 Exterior Routing Protocols and Multicasting 25

Multicast Transmission Example Chapter 16 Exterior Routing Protocols and Multicasting 26

Multicast Transmission Example Chapter 16 Exterior Routing Protocols and Multicasting 26

Requirements for Multicasting (1) l l Router must forward two or more copies of

Requirements for Multicasting (1) l l Router must forward two or more copies of incoming packet Addressing – IPv 4 uses class D l Start 1110 plus 28 bit group id – IPv 6 uses 8 bit prefix of all 1 s, 4 bit flags field, 4 bit scope field 112 bit group id l l Node must translate between multicast address and list of networks containing members of group Router must translate between IP multicast address and subnet multicast address to deliver to destination network Chapter 16 Exterior Routing Protocols and Multicasting 27

Requirements for Multicasting (2) l l Multicast addresses may be permanent or dynamic Individual

Requirements for Multicasting (2) l l Multicast addresses may be permanent or dynamic Individual hosts may join or leave dynamically – Need mechanism to inform routers l l Routers exchange information on which subnets contain members of groups Routers exchange information to calculate shortest path to each network – Need routing protocol and algorithm l Routes determined based on source and destination addresses – Avoids unnecessary duplication of packets Chapter 16 Exterior Routing Protocols and Multicasting 28

Internet Group Management Protocol (IGMP) Type: Membership query (general or group specific), membership report,

Internet Group Management Protocol (IGMP) Type: Membership query (general or group specific), membership report, leave group, max. response time l Checksum: uses IPv 4 algorithm l Group address: zero for request, valid IP multicast for report or leave l Chapter 16 Exterior Routing Protocols and Multicasting 29

IGMP Operation l l Host uses IGMP to make itself know as member of

IGMP Operation l l Host uses IGMP to make itself know as member of group to other hosts and routers To join, send IGMP membership report message – Send to multicast destination of group being joined l Routers periodically issue IGMP query – To all-hosts multicast address – Hosts respond with report message for each group to which it belongs l Only one host in group needs to respond to keep group alive l Host keeps timer and reponds if no other reply heard in time l Host sends leave group message – Group specific query from router determins if any members remain Chapter 16 Exterior Routing Protocols and Multicasting 30

Group Membership with IPv 6 Function incorporated in ICMPv 6 l Includes all ICMPv

Group Membership with IPv 6 Function incorporated in ICMPv 6 l Includes all ICMPv 4 plus IGMP l – Includes group membership query and report – Addition of new group membership termination message Chapter 16 Exterior Routing Protocols and Multicasting 31

Multicast Extension to OSPF (MOSPF) l l Enables routing of IP multicast datagrams within

Multicast Extension to OSPF (MOSPF) l l Enables routing of IP multicast datagrams within single AS Each router uses MOSPF to maintain local group membership information Each router periodically floods this to all routers in area Routers build shortest path spanning tree from a source network to all networks containing members of group (Dijkstra) – Takes time, so on demand only Chapter 16 Exterior Routing Protocols and Multicasting 32

Forwarding Multicast Packets If multicast address not recognised, discard l If router attaches to

Forwarding Multicast Packets If multicast address not recognised, discard l If router attaches to a network containing a member of group, transmit copy to that network l Consult spanning tree for this sourcedestination pair and forward to other routers if required l Chapter 16 Exterior Routing Protocols and Multicasting 33

Equal Cost Multipath Ambiguities l Dijkstra’ algorithm will include one of multiple equal cost

Equal Cost Multipath Ambiguities l Dijkstra’ algorithm will include one of multiple equal cost paths – Which depends on order of processing nodes For multicast, all routers must have same spanning tree for given source node l MOSPF has tiebreaker rule l Chapter 16 Exterior Routing Protocols and Multicasting 34

Interarea Multicasting Multicast groups amy contain members from more than one area l Routers

Interarea Multicasting Multicast groups amy contain members from more than one area l Routers only know about multicast groups with members in its area l Subset of area’s border routers forward group membership information and multicast datagrams between areas l – Interarea multicast forwarders Chapter 16 Exterior Routing Protocols and Multicasting 35

Inter-AS Multicasting l Certain boundary routers act as inter-AS multicast forwarders – Run and

Inter-AS Multicasting l Certain boundary routers act as inter-AS multicast forwarders – Run and inter-AS multicast routing protocol as well as MOSPF and OSPF – MOSPF makes sure they receive all multicast datagrams from within AS – Each such router forwards if required – Use reverse path routing to determine source l l Assume datagram from X enters AS at point advertising shortest route back to X Use this to determine path of datagram through MOSPF AS Chapter 16 Exterior Routing Protocols and Multicasting 36

MOSPF Routing Illustration Chapter 16 Exterior Routing Protocols and Multicasting 37

MOSPF Routing Illustration Chapter 16 Exterior Routing Protocols and Multicasting 37

Multicast Routing Protocol Characteristics l Extension to existing protocol – MOSPF v OSPF Designed

Multicast Routing Protocol Characteristics l Extension to existing protocol – MOSPF v OSPF Designed to be efficient for high concentration of group members l Appropriate with single AS l Not for large internet l Chapter 16 Exterior Routing Protocols and Multicasting 38

Protocol Independent Multicast (PIM) Independent of unicast routing protocols l Extract required routing information

Protocol Independent Multicast (PIM) Independent of unicast routing protocols l Extract required routing information from any unicast routing protocol l Work across multiple AS with different unicast routing protocols l Chapter 16 Exterior Routing Protocols and Multicasting 39

PIM Strategy l l Flooding is inefficient over large sparse internet Little opportunity for

PIM Strategy l l Flooding is inefficient over large sparse internet Little opportunity for shared spanning trees Focus on providing multiple shortest path unicast routes Two operation modes – Dense mode l l For intra-AS Alternative to MOSPF – Sparse mode l Inter-AS multicast routing Chapter 16 Exterior Routing Protocols and Multicasting 40

Spares Mode PIM l A spare group: – Number of networks/domains with group members

Spares Mode PIM l A spare group: – Number of networks/domains with group members present significantly small than number of networks/domains in internet – Internet spanned by group not sufficiently resource rich to ignore overhead of current multicast schemes Chapter 16 Exterior Routing Protocols and Multicasting 41

Group Destination Router Group Source Router l Group Destination Router – Has local group

Group Destination Router Group Source Router l Group Destination Router – Has local group members – Router becomes destination router for given group when at least one host joins group l l Using IGMP or similar Group source router – Attaches to network with at least one host transmitting on multicast address via that router Chapter 16 Exterior Routing Protocols and Multicasting 42

PIM Approach l l For a group, one router designated rendezvous point (RP) Group

PIM Approach l l For a group, one router designated rendezvous point (RP) Group destination router sends join message towards RP requesting its members be added to group – Use unicast shortest path route to send – Reverse path becomes part of distribution tree for this RP to listeners in this group l l Node sending to group sends towards RP using shortest path unicast route Destination router may replace group-shared tree with shortest path tree to any source – By sending a join back to source router along unicast shortest path l Selection of RP dynamic – Not critical Chapter 16 Exterior Routing Protocols and Multicasting 43

Example of PIM Operation Chapter 16 Exterior Routing Protocols and Multicasting 44

Example of PIM Operation Chapter 16 Exterior Routing Protocols and Multicasting 44