1 / 22

Chapter 22 Network Layer: Delivery, Forwarding, and Routing

Chapter 22 Network Layer: Delivery, Forwarding, and Routing. Part 5 Multicasting protocol . Multicast Protocols. Multicast Link State Routing: MOSPF. Multicast link state routing uses the source-based tree approach

fleta
Télécharger la présentation

Chapter 22 Network Layer: Delivery, Forwarding, and Routing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 22 Network Layer:Delivery, Forwarding, and Routing Part 5 Multicasting protocol

  2. Multicast Protocols Computer Networks

  3. Multicast Link State Routing: MOSPF Multicast link state routing uses the source-based tree approach A node advertises every group which has any loyal member on the link. The meaning of state is "what groups are active on this link." When a router receives all LSPs it creatn (the number of group) topologies and n shortest path trees made using Dijkstra's algorithm each router has a routing table that represents as many shortest path trees as there are groups The only problem with this protocol is the time and space needed to create and save the many shortest path trees. solution is to create the trees only when needed. When a router receives a packet with a multicast destination address, it runs the Dijkstra algorithm to calculate the shortest path tree for that group. The result can be cached in case there are additional packets for that destination. 22-3 Computer Networks

  4. Multicast Open Shortest Path First (MOSPF) • MOSPF is an extension of the OSPF protocol that uses multicast link state routing to create source-based trees • MOSPF requires a new link state update packet to associate the unicast address of a host with the group address or addresses the host is sponsoring (This packet is called the group-membership LSA). • We make a tree that contains all the hosts belonging to a group, but we use the unicast address of the host in the calculation. • MOSPF is a data-driven protocol; the first time an MOSPF router see a datagram with a given source and group address, the router constructs the Dijkstra shortest path tree

  5. Multicast Distance Vector: DVMRP Multicast distance vector routing uses the source-based trees, but the router never actually makes a routing table Multicast routing does not allow a router to send its routing table to its neighbors. The idea is to create a table from scratch by using the information from the unicast distance vector tables Process based on four decision-making strategies. Each strategy is built on its predecessor Flooding Reverse Path Forwarding (RPF) Reverse Path Broadcasting (RPB) Reverse Path Multicasting (RPM) Computer Networks 22-5

  6. DVMRP: Strategies • Flooding broadcasts packets, but creates loops in the systems • Reverse path forwarding: RPF eliminates the loop in the flooding process. In RPF, a router forwards only the copy that has traveled the shortest path from the source to the router. Computer Networks

  7. Problem with RPF • RPF does not guarantee that each network receives only one copy • a network may receive two or more copies. The reason is that RPF is not based on the destination address (a group address); forwarding is based on the source address.

  8. DVMRP: Strategies (cont) Reverse path broadcasting: RPB creates a shortest path broadcast tree from the source to each destination. It guarantees that each destination receives one and only one copy of the packet To eliminate duplication, we must define only one parent router for each network. We must have this restriction: A network can receive a multicast packet from a particular source only through a designated parent router. the router sends the packet only out of those interfaces for which it is the designated parent. The designated parent router can be the router with the shortest path to the source. If more than one router qualifies, the router with the smallest IP address is selected. Computer Networks 22-8

  9. DVMRP: Strategies Reverse path multicasting: RPM adds pruning and grafting to RPB to create a multicast shortest path tree that supports dynamic membership changes Computer Networks 22-9

  10. Distance Vector Multicast Routing Protocol (DVMRP) Core-Based Tree (CBT) • CBT is a group-shared protocol that uses a core as the root of the tree • AS is divided into regions, and core (center router or rendezvous router) is chosen for each region • Each router sends a unicast join message to rendezvous router • When the rendezvous router has received all join messages from every member of the group, the tree is formed • there is no tree at the beginning; the joining (grafting) gradually makes the tree. Computer Networks

  11. Sending Multicast Packets • The source sends the multicast (belonging to the group or not)packet (encapsulated in a unicast packet) to the core router. • The core router decapsulates the packet and forwards it to all interested hosts. Each router that receives the multicast packet, in turn, forwards it to all interested ports Computer Networks

  12. Protocol Independent Multicast (PIM) • Protocol Independent Multicast (PIM) is the name given to two independent multicast • routing protocols: • Protocol Independent Multicast, Dense Mode (PIM-DM) • Protocol Independent Multicast, Sparse Mode (PIM-SM). • Both protocols are unicastprotocol-dependent, but the similarity ends here. PIM-DM • PIM-DM is used in a dense multicast environment, such as a LAN • PIM-DM is a source-based tree routing protocol that uses RPF and pruning and grafting strategies for multicasting. However, it is independent of the underlying unicastprotocol unicastprotocol (can be a distance vector protocol (RIP) or link state protocol (OSPF)) . PIM-SM • PIM-SM is used in a sparse multicast environment such as a WAN • PIM-SM is a group-shared routing protocol that has a rendezvous point as the source of the tree • PIM-SM is similar to CBT but uses a simpler procedure. • One of the characteristics of PIM-SM is that it can switch from a group-shared tree strategy to a source-based tree strategy when necessary. Computer Networks

  13. MBONE • To enable multicasting, we make a multicast backbone (MBONE) out of isolated routers, using of the concept of tunneling • small fraction of Internet routers are multicast routers • a multicast router may not find another multicast router in the neighborhood to forward the multicast packet. solution to this problem is tunneling : • The multicast routers may not be connected directly, but they are connected logically. • To enable multicasting, we make a multicast backbone (MBONE) out of these isolated routers by using the concept of tunneling. Computer Networks

  14. Logical Tunneling • A logical tunnel is established by encapsulating the multicast packet inside a unicast packet • The multicast packet becomes the payload (data) of the unicast packet • So far the only protocol supporting MBONE and tunneling is DVMRP Computer Networks

  15. IGMP • Internet Group Management Protocol (IGMP) is one of the necessary, but not sufficient, protocol for multicasting. • IGMP is a companion to the IP protocol • IGMP is a group management protocol. It helps a multicast router create and update a list of loyal members related to each router interface Computer Networks

  16. IGMP Message Format • Type. This 8-bit field defines the type of message • Maximum Response Time. This 8-bit field defines the amount of time in which a query must be answered. The value is in tenths of a second. • Checksum. This is a 16-bit field carrying the checksum. The checksum is calculated • over the 8-byte message. • Group address. The value of this field is 0 for a general query message. The value • defines the group id (multicast address of the group) in the special query, the membership • report, and the leave report messages. Computer Networks

  17. IGMP Operation • A multicast router connected to a network has a list of multicast addresses of the groups with at least one loyal member in that network. • For each group, there is one router that has the duty of distributing the multicast packets destined for that group. • This means that if there are three multicast routers connected to a network, their lists of group ids are mutually exclusive. Computer Networks

  18. IGMP Operation • Joining a group: • When a process wants to join a new group, it sends its request to the host. • The host adds the name of the process and the name of the requested group to its list. • If this is the first entry for this particular group, the host sends a membership report message. • If this is not the first entry, there is no need to send the membership report • In IGMP, a membership report is sent twice, one after the other if the first one is lost or damaged, the second one replaces it. • Leaving a group: • When a host sees that no process is interested in a specific group, it sends a leave report. • when a router sees that none of the networks connected to its interfaces is interested in a specific group, it sends a leave report. • when a multicast router receives a leave report, it check if there are some station still interest in this group it sends a special query message and inserts the group id, or multicast address, related to the group and wait for specified time for any host or router to respond. • If during this time, no interest (membership report) is received, the router assumes that there are no loyal members in the network and purges the group from its list. • Monitoring membership • The general query message does not define a particular group • The router periodically sends a general query message. The group address field is set to 0.0.0.0 • The router expects an answer for each group in its group list in maximum response time of 10 s

  19. IGMP: Delayed Response • To prevent unnecessary traffic, IGMP uses a delayed response strategy • When a host or router receives a query message, it does not respond immediately; it delays the response. • Each host or router uses a random number to create a timer, which expires between 1 and 10 s. • A timer is set for each group in the list. • Each host or router waits until its timer has expired before sending a membership report message • During this waiting time, if the timer of another host or router, for the same group, expires earlier, that host or router sends a membership report and the waiting host will not sends the report to prevent duplicate report for this group. • Example: • Time 12: The timer for 228.42.0.0 in host A expires, and a membership report is sent, which is received by the router and every host including host B which cancels its timer for 228.42.0.0. • Time 30: The timer for 225.14.0.0 in host A expires, and a membership report is sent which is received by the router and every host including host C which cancels its timer for 225.14.0.0. • Time 50: The timer for 238.71.0.0 in host B expires, and a membership report is sent, which is received by the router and every host. • Time 70: The timer for 230.43.0.0 in host C expires, and a membership report is sent, which is received by the router and every host including host A which cancels its timer for 230.43.0.0 Computer Networks

  20. IGMP: Query Router • Query messages may create a lot of responses. • To prevent unnecessary traffic, IGMP designates one router as the query router for each network. Only this designated router sends the query message • The other routers are passive (they receive responses and update their lists).

  21. IGMP: Encapsulation at Network Layer • The IGMP message is encapsulated in an IP datagram, which is itself encapsulated in a frame. • The IP packet that carries an IGMP packet has a value of 1 in its TTL field Computer Networks

  22. Part not included from chapter 22 • Address Aggregation • Longest Mask Matching • Hierarchical Routing • Geographical Routing

More Related