Computer Networks. Wenzhong Li. Nanjing University

Similar documents
Advanced Networking. Multicast

Broadcast Routing. Multicast. Flooding. In-network duplication. deliver packets from source to all other nodes source duplication is inefficient:

Review. Some slides are in courtesy of J. Kurose and K. Ross

DATA COMMUNICATOIN NETWORKING

Chapter 4 roadmap. CS555, Spring /14/2005. WMU-CS, Dr. Gupta 1. Multicast Routing: Problem Statement. Approaches for building mcast trees

Exercises to Communication Systems

Lecture 6. TCP/IP Network Layer (4)

Computer Network Architectures and Multimedia. Guy Leduc. Chapter 2 MPLS networks. Chapter 2: MPLS

Multicast Communications. Slide Set were original prepared by Dr. Tatsuya Susa

Internet Multicast Routing

IP Multicast. What is multicast?

Multicast Communications

CSCE 463/612 Networks and Distributed Processing Spring 2018

Advanced Network Training Multicast

Topic: Multicast routing

Exercises to Communication Systems

IP Multicast. Falko Dressler Regionales Rechenzentrum Grundzüge der Datenkommunikation IP Multicast

Multicast. Midterm. EECS 122: Lecture 16. University of California Berkeley. Exam was not meant to be easy

Master Course Computer Networks IN2097

IP Multicast Technology Overview

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

ICS 351: Today's plan. routing protocol comparison encapsulation network dynamics multicasting in general IP multicasting IGMP PIM

MLD. MLDv1 (defined in RFC 2710), which is derived from IGMPv2. MLDv2 (defined in RFC 3810), which is derived from IGMPv3.

Why multicast? The concept of multicast Multicast groups Multicast addressing Multicast routing protocols MBONE Multicast applications Conclusions

Contents. Overview Multicast = Send to a group of hosts. Overview. Overview. Implementation Issues. Motivation: ISPs charge by bandwidth

Configuring IP Multicast Routing

Configuring IP Multicast Routing

Table of Contents 1 PIM Configuration 1-1

Network Layer II. Getting IP addresses. DHCP client-server scenario. DHCP client-server scenario. C compiler. You writing assignment 2

CSC 401 Data and Computer Communications Networks

سوي يچينگ و مسيريابي در شبكه

Multicast Technology White Paper

CSE 123A Computer Networks

Broadcast and Multicast Routing

ETSF10 Internet Protocols Routing on the Internet

Configuring IP Multicast Routing

Configuring IP Multicast Routing

Master Course Computer Networks IN2097

Da t e: August 2 0 th a t 9: :00 SOLUTIONS

Internet Protocol, Version 6

What is Multicasting? Multicasting Fundamentals. Unicast Transmission. Agenda. L70 - Multicasting Fundamentals. L70 - Multicasting Fundamentals

Multicast service model Host interface Host-router interactions (IGMP) Multicast Routing Distance Vector Link State. Shared tree.

List of groups known at each router. Router gets those using IGMP. And where they are in use Where members are located. Enhancement to OSPF

Lecture 8. Network Layer (cont d) Network Layer 1-1

Multicast overview. Introduction to multicast. Information transmission techniques. Unicast

Multicast routing protocols

Multicast EECS 122: Lecture 16

Multicast overview. Introduction to multicast. Information transmission techniques. Unicast

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Module 7 Implementing Multicast

EEC-684/584 Computer Networks

Computer Networks. Wenzhong Li. Nanjing University

Chapter 19 Network Layer: Logical Addressing

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

MPLS опорни мрежи MPLS core networks

IP MULTICAST EXPLAINED

FSOS Multicast Configuration Guide

ITEC310 Computer Networks II

Implementing IPv6 Multicast

Configuring MLD. Overview. MLD versions. How MLDv1 operates. MLD querier election

Configuring IGMP Snooping

4.2 Multicast IP supports multicast to support one-to-many (radio, news, IP multicast was originally a many-to-many (any source MC or

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Network Security Fundamentals. Network Security Fundamentals. Roadmap. Security Training Course. Module 2 Network Fundamentals

Multi Protocol Label Switching (an introduction) Karst Koymans. Thursday, March 12, 2015

Acknowledgments. Part One - Introduction to the TCP/IP Protocol

MULTICAST EXTENSIONS TO OSPF (MOSPF)

IPv6 PIM. Based on the forwarding mechanism, IPv6 PIM falls into two modes:

Date: June 4 th a t 1 4:00 1 7:00

IP Multicast Technology Overview

Internet Routing - MPLS. By Richard Harris

Table of Contents 1 IGMP Configuration 1-1

CMSC 332 Computer Networks Network Layer

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

Auxiliary protocols. tasks that IP does not handle: Routing table management (RIP, OSPF, etc.). Congestion and error reporting (ICMP).

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

IP Multicasting: Explaining Multicast Cisco Systems, Inc. All rights reserved. Cisco Academy

Virtual Link Layer : Fundamentals of Computer Networks Bill Nace

Multicast Communications. Tarik Čičić, 4. March. 2016

CSC 4900 Computer Networks: Link Layer (3)

Telematics Chapter 7: MPLS

LARGE SCALE IP ROUTING LECTURE BY SEBASTIAN GRAF

Internet Multicast Routing

Securizarea Calculatoarelor și a Rețelelor 32. Tehnologia MPLS VPN

Hands-On Network Security: Practical Tools & Methods

Developing IP Muiticast Networks

HP 5920 & 5900 Switch Series

Internet Control Message Protocol (ICMP)

Connection Oriented Networking MPLS and ATM

Lab 7-1 Implementing IGMP and IGMP Snooping

Integrated Services. Integrated Services. RSVP Resource reservation Protocol. Expedited Forwarding. Assured Forwarding.

IPv6 PIM-DM configuration example 36 IPv6 PIM-SM non-scoped zone configuration example 39 IPv6 PIM-SM admin-scoped zone configuration example 42 IPv6

Computer Networks. Routing

Objectives. Chapter 10. Upon completion you will be able to:

Multicast and Quality of Service. Internet Technologies and Applications

FiberstoreOS IPv6 Multicast Configuration Guide

Transcription:

Computer Networks Wenzhong Li Nanjing University 1

Chapter 4. Internetworking The Internet Protocol IP Address ARP and DHCP ICMP IPv6 Mobile IP Internet Routing BGP and OSPF IP Multicasting Multiprotocol Label Switching (MPLS) 2

IP Multicasting Multicast Act of sending datagram to multiple receivers (hosts) with single transmit operation Multicast address (class D in IPv4) Addresses that refer to group of hosts on one or more networks Applications Multimedia (TV) broadcast Teleconferencing Database replication Distributed computing, 3

Example Config 4

Handling IP Multicast Multicast (Spanning) Tree Build a (least cost) tree connecting routers having local mcast group members Nodes (routers) forward copies only along spanning tree Sender only sends once 5

Multicast Example 6

IP Multicast Service Model Multicast group concept: use of indirection Hosts address IP datagram to a multicast group Routers forward multicast datagrams to hosts that have joined that multicast group 128.59.16.12 128.119.40.186 multicast group 226.17.30.197 128.34.108.63 128.34.108.60 7

Multicast Address Convention needed to identify multicast addresses IPv4: Class D, start with 1110 IPv6: 8 bit prefix, 4 bit flags, 4 bit scope, 112 bit group identifier Address translation IP: translate between IP multicast addresses and lists of networks containing group members MAC: translate between IP multicast address and network multicast address 8

Maintain a Multicast Group Local network Host informs local mcast router of desire to join a group IGMP (Internet Group Management Protocol) used Wide area Mcast routers interact with each other to build spanning tree, and interchange mcast datagrams Many protocols (e.g. DVMRP, MOSPF, PIM) IGMP IGMP wide-area multicast routing IGMP 9

IGMP RFC 3376 Host and router exchange of multicast group info on local net Can use broadcast LAN to transfer info among multiple hosts and routers 10

Principle Operations Hosts Send reports to routers to subscribe to (join) and unsubscribe from (unjoin) multicast group Host need not explicitly unjoin group when leaving Routers Sends query info at regular intervals Host belonging to a mcast group must reply to query query report 11

IGMP Operations (1) 2 special multicast address 224.0.0.1: all multicast groups on subnet 224.0.0.2: all routers on subnet On each LAN, one router is elected as the querier Querier periodically sends a Membership Query message to 224.0.0.1 with TTL = 1 On receipt, hosts start random timers (0~10s) for each multicast group to which they belong querier 12

IGMP Operations (2) When a host s timer for group G expires, it sends a Membership Report to group G, with TTL = 1 Other members of G hear the report and stop their timers Routers hear all reports, and time out non-responding groups Q G G G G 13

IGMP Versions IGMP v1 Routers: Host Membership Query broadcast on LAN to all hosts Use timer to unsubscribe members Hosts: explicitly issues Host Membership Report to indicate group membership (join a group) Implicit leave via no reply to Query IGMP v2 Routers can use group-specific Query Host replying to Query can send explicit Leave Group message 14

IGMP v1 & v2 Operations Sources do not have to subscribe to groups Any host can send traffic to any multicast group Problems Location of sources is not known Establishment of distribution trees is problematic (not optimistic) Spamming of multicast groups consume valuable resources Finding globally unique multicast addresses difficult 15

IGMP v3 Allows hosts to specify source list from which they want to receive traffic Traffic from other hosts blocked at routers Allows hosts to block packets from sources that send unwanted traffic 16

Membership Query Sent by multicast router General query Which groups have members on attached network Group-specific query Does specified group have members on attached network Group-and-source specific query Do attached hosts want packets sent to specified multicast address from any of specified list of sources 17

IGMP Message Membership Query 18

Membership Query Fields (1) Type (8 bits): 0x11, means Query Max Response Time (8 bits) Max time before host sending report in units of 1/10 second Checksum (16 bits): Same algorithm as IPv4 Group Address (32 bits) Zero for general query message Multicast group address for group-specific or group-and-source S Flag (1 bit) 1 indicates that receiving routers should suppress normal timer updates done on hearing query 19

Membership Query Fields (2) QRV (querier s robustness variable) (3 bits) RV dictates number of retransmissions to assure report not missed Other routers can adopt value from most recently received query QQIC (querier s querier interval code) (8 bits) QI dictates timer for sending multiple queries Routers not current querier adopt most recently received QI Number of Sources (16 bits) Source addresses One 32 bit unicast address for each source 20

IGMP Message Membership Report 21

Membership Reports Fields Type (8 bits) 0x22, means Report Checksum (16 bits) Same algorithm as IPv4 Number of Group Records Group Records One record for each group attended 22

IGMP Message Group Record 23

Group Record Multicast Address (32 bits) Identify the group attended Record Type (8 bits) EXCLUDE or INCLUDE mode (6 modes defined) Number of Sources (16 bits) Source Addresses Aux Data Length (8 bits) Length of Auxiliary Data, in 32-bit words Auxiliary Data Currently, no auxiliary data values defined 24

Group Membership with IPv6 IPv6 internets need same functionality IGMP functions incorporated into Internet Control Message Protocol version 6 (ICMP v6) ICMPv6 includes all of functionalities of ICMPv4 and IGMP ICMPv6 includes Group-membership Query and Group-membership Report message Used in the same fashion as in IGMP v3 25

Multicast Routing Find a spanning tree (or trees) connecting routers having local mcast group members Shared-tree Same tree used by all group members Source-based Different tree from each sender to receivers Shared tree Source-based trees 26

Approaches for Multicast Trees Source-based tree: one tree per source Shortest path trees Reverse path forwarding Group-shared tree: group uses one tree Minimal spanning (Steiner) Center-based trees 27

Shortest Path Trees Multicast forwarding tree Tree of shortest path routes from source to all receivers Use Dijkstra s algorithm, used with OSPF S: source R1 1 R2 3 4 2 R4 5 R5 LEGEND router with attached group member router with no attached group member R3 R6 6 R7 i link used for forwarding, i indicates order link added by algorithm 28

Reverse Path Forwarding Rely on router s knowledge of unicast shortest path from it to sender Each router has simple forwarding behavior: Used with RIP if (mcast datagram received on incoming link on shortest path back to sender) then flood datagram onto all outgoing links else ignore datagram 29

Reverse Path Forwarding: Example S: source R2 R1 R4 R5 LEGEND router with attached group member router with no attached group member R3 R6 R7 datagram will be forwarded datagram will not be forwarded The result is a source-specific reverse SPT May be a bad choice with asymmetric links 30

Reverse Path Forwarding: Pruning Forwarding tree contains subtrees with no mcast group members No need to forward datagrams down subtree Prune msgs sent upstream by router with no downstream group members S: source R3 R2 R1 R6 P R4 P R7 R5 LEGEND P router with attached group member router with no attached group member prune message links with multicast forwarding 31

Shared-Tree: Steiner Tree Steiner Tree Minimum cost tree connecting all routers with attached group members Problem is NP-complete, but excellent heuristics exists Not used in practice Computational complexity Information about entire network needed Monolithic: rerun whenever a router needs to join/leave 32

Center-based Trees Single delivery tree shared by all One router identified as center of tree Other routers to join: Edge router sends unicast join-msg addressed to center router join-msg processed by intermediate routers and forwarded towards center join-msg either hits existing tree branch for this center, or arrives at center Path taken by join-msg becomes new branch of tree for this router 33

Center-based Trees: Example Suppose R6 chosen as center: LEGEND R1 3 R4 router with attached group member R3 R2 1 R6 2 R7 R5 1 router with no attached group member path order in which join messages generated 34

Multicasting Routing Protocols DVMRP Distance Vector Multicast Routing Protocol, RFC1075 Flood and prune: source-based tree, reverse path forwarding Soft state DVMRP router periodically (1 min) forgets branches are pruned Mcast data again flows down unpruned branch Downstream router: reprune or else continue to receive data 35

Multicasting Routing Protocols PIM: Protocol Independent Multicast Not dependent on any specific underlying unicast routing algorithm (works with all) 2 different multicast distribution scenarios Sparse: group members widely dispersed, bandwidth not plentiful Dense: group members densely packed, bandwidth more plentiful Sparse mode Group-shared tree, use center-based approach Dense mode Nearly same as DVMRP 36

Application-level Multicast

MPLS

Multiprotocol label switching (MPLS) Initial goal: high-speed IP forwarding using fixed length label (instead of IP address) Fast lookup using fixed length identifier (rather than shortest prefix matching) Borrowing ideas from Virtual Circuit (VC) approach But IP datagram still keeps IP address!

Why MPLS? IP Routing disadvantages Connectionless,no QoS Large IP Header (>=20 bytes) Routing in Network Layer: Slower than Switching ATM disadvantages Complex Expensive Not widely adopted Best of both MPLS + IP form a middle ground that combines the best of IP and the best of circuit switching technologies.

Multiprotocol Label Switching Speed up IP forwarding by using fixed length label to do VC-like routing Advantages of MPLS Leverage existing ATM hardware Ultra fast forwarding IP traffic engineering Constraint-based Routing Better supporting Virtual Private Networks Controllable tunneling mechanism QoS support for Voice/Video on IP ROUTE AT EDGE, SWITCH IN CORE IP #L1 IP #L2 IP #L3 IP IP IP Forwarding LABEL SWITCHING IP Forwarding 41

IP-Over-ATM ATM network Ethernet LANs 42

IP-Over-ATM Boundary router at source LAN IP layer maps between IP, ATM dest address Passes datagram to AAL5 AAL5 encapsulates data, segments cells, passes to ATM layer ATM network: moves cell along VC to destination LAN Boundary router at dest LAN AAL5 reassembles cells into original datagram If CRC OK, datagram is passed to IP 43

MPLS Capable of providing a connection oriented Inter-networks Makes full use of VC networks such as ATM or Frame Relay Link layer Header MPLS header IP header Upper layer data Link layer Trailer label Exp S TTL 20 3 1 8 44

MPLS Header Contains one or more labels, called a label stack Each label contains 4 fields Label value, 20-bit VC number Experimental traffic class, 3 bit, for priority and Explicit Congestion Notification Bottom of stack, 1 bit, means the last label Time to Live, 8 bit, same as IP TTL 45

MPLS Forwarding By MPLS capable routers, must co-exist with IPonly routers Forwards packets to outgoing interface based only on label value MPLS forwarding table distinct from IP forwarding tables Signaling protocol needed to set up forwarding table Support hop-by-hop and source routing RSVP-TE, an extension of the Resource Reservation Protocol (RSVP) for traffic engineering 46

MPLS capable routers a.k.a. label-switched router forward packets to outgoing interface based only on label value (don t inspect IP address) MPLS forwarding table distinct from IP forwarding tables flexibility: MPLS forwarding decisions can differ from those of IP use destination and source addresses to route flows to same destination differently (traffic engineering) re-route flows quickly if link fails: pre-computed backup paths (useful for VoIP)

MPLS versus IP paths R6 R5 R4 R2 R3 IP routing: path to destination determined by destination address alone D A IP router

R6 R5 MPLS versus IP paths R4 entry router (R4) can use different MPLS routes to A based, e.g., on source address R2 R3 IP routing: path to destination determined by destination address alone D A IP-only router MPLS and IP router MPLS routing: path to destination can be based on source and dest. address fast reroute: precompute backup routes in case of link failure

MPLS Forwarding Tables in out out label label dest interface 10 A 0 12 D 0 8 A 1 in out out label label dest interface 10 6 A 1 12 9 D 0 Each link in a MPLS path may be a VC in local net in out out label label dest interface 8 6 A 0 in out out label label dest interface 6 - A 0 50

More than VC IP1 IP1 IP2 #L1 IP1 #L2 IP1 #L3 IP1 IP2 #L1 IP2 #L2 IP2 #L3 IP2 Forwarding Equivalence Class A subset of packets or flows that are all treated the same way by a MPLS router Provides for a great deal of flexibility and scalability 51

Traffic Engineering #216 #14 #99 #963 #311 #311 #311 #963 #14 #612 #5 #99 #311 #462 Purpose of traffic engineering: Maximize utilization of links and nodes throughout the network Engineer links to achieve required delay, grade-of-service Spread the network traffic across network links, minimize impact of single failure Ensure available spare link capacity for re-routing traffic on failure Meet policy requirements imposed by the network operator 52

Traffic Engineering Alternatives Current methods of traffic engineering: Manipulating routing metrics Use PVCs over an ATM backbone Over-provision bandwidth Difficult to manage Not scalable Not economical MPLS provides a new method to do traffic engineering (traffic steering) Example Network: Ingress node explicitly routes traffic over uncongested path Congested Node Potential benefits of MPLS for traffic engineering: - allows explicitly routed paths - no n-squared problem - per FEC traffic monitoring - backup paths may be configured Chosen by routing protocol (least cost) Chosen by Traffic Eng. (least congestion) operator control scalable granularity of feedback redundancy/restoration MPLS combines benefits of ATM and IP-layer traffic engineering

MPLS Advantages Improves packet-forwarding performance in the network Supports QoS and CoS for service differentiation Supports network scalability Integrates IP and ATM in the network Builds interoperable networks MPLS Disadvantages An additional layer is added The router has to understand MPLS

Summary IP Multicast 组播地址 组管理 :IGMP 组播路由机制及协议 MPLS 概念及原理

Homework 第四章 :R19, P45