學研計畫Training Course IP Multicasting

Slides:



Advertisements
Similar presentations
1April 16, 2002 Layer 3 Multicast Addressing IP group addresses – “Class D” addresses = high order bits of “1110” Special reserved.
Advertisements

Multicast on the Internet CSE April 2015.
Multicasting© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science.
Multicasting CSE April Internet Multicast Service Model Multicast group concept: use of indirection a host “sends” IP datagrams to multicast.
Multicasting - Part II© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer.
MULTICAST USING UDP SOCKETS. PRELIMINARIES *CAST Unicast Communication is strictly from one sender to another specified receiver eg: TCP on LAN Broadcast.
COS 420 Day 15. Agenda Assignment 3 Due Assignment 4 Posted Chap Due April 6 Individual Project Presentations Due IEPREP - Jeff MANETS - Donnie.
School of Information Technologies Internet Multicasting NETS3303/3603 Week 10.
Multicasting Jari Kellokoski Introduction When a unicast address identifies a sigle IP interface Then a broadcast address identifies all IP.
COS 420 Day 18. Agenda Group Project Discussion Program Requirements Rejected Resubmit by Friday Noon Protocol Definition Due April 12 Assignment 3 Due.
COS 420 Day 14. Agenda Assignment 3 Posted Covers chapters Due March 23 Assignment 4 Posted Chap Due April 6 Individual Project Papers due.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
Internet Networking Spring 2002
1 IP Multicasting. 2 IP Multicasting: Motivation Problem: Want to deliver a packet from a source to multiple receivers Applications: –Streaming of Continuous.
EE689 Lecture 12 Review of last lecture Multicast basics.
MULTICASTING Network Security.
© J. Liebeherr, All rights reserved 1 IP Multicasting.
1 CSCI 6433 Internet Protocols Class 7 Dave Roberts.
1 Computer Networks IP Multicast. 2 Recall Unicast Broadcast Multicast sends to a specific group.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Multicast 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.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 9 Internet Group Management Protocol (IGMP)
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.
Multicast Routing Algorithms n Multicast routing n Flooding and Spanning Tree n Forward Shortest Path algorithm n Reversed Path Forwarding (RPF) algorithms.
1 Multicasting Anthony Choi David Strole Werner Kalyan Landeck.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing Part 5 Multicasting protocol.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
© J. Liebeherr, All rights reserved 1 Multicast Routing.
IP Multicast COSC Addressing Class D address Ethernet broadcast address (all 1’s) IP multicast using –Link-layer (Ethernet) broadcast –Link-layer.
CS 4396 Computer Networks Lab IP Multicast - Fundamentals.
Björn Landfeldt School of Information Technologies NETS 3303 Networked Systems Multicast.
© J. Liebeherr, All rights reserved 1 IP Multicasting.
1 © 2000, Cisco Systems, Inc _05_2000_c2 Server Router Unicast Server Router Multicast Unicast vs. Multicast.
Internet Multicasting Chapter 17. Hardware Broadcast Broadcast delivery –Network delivers a copy of a packet to each destination Bus technology - single.
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.
1 IP Multicasting Relates to Lab 10. It covers IP multicasting, including multicast addressing, IGMP, and multicast routing.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 10 Internet Group Management Protocol (IGMP)
Multicasting  A message can be unicast, multicast, or broadcast. Let us clarify these terms as they relate to the Internet.
Chapter 21 Multicast Routing
Multicast Communications
4.6 Multicast at the Network Layer Introduction: The Internet multicast abstraction and multicast groups The IGMP Protocol Multicast.
2/25/20161 Multicast on the Internet CSE 6590 Fall 2009.
Multicasting EECS June Multicast One-to-many, many-to-many communications Applications: – Teleconferencing – Database – Distributed computing.
1 Group Communications: Reverse Path Multicast Dr. Rocky K. C. Chang 19 March, 2002.
1 Group Communications: Host Group and IGMP Dr. Rocky K. C. Chang 19 March, 2002.
1 CMPT 471 Networking II Multicasting © Janice Regan,
Chapter 21 Multicast Routing
TRANSPORT LAYER BY, Parthasarathy.g.
IP: Addressing, ARP, Routing
Multicasting protocols
Multicast Outline Multicast Introduction and Motivation DVRMP.
Routing BY, P.B.SHANMATHI.
CMPE 252A: Computer Networks
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
ECE544: Communication Networks-II Spring 2013
UNIT III ROUTING.
Chapter 07. Socket Options.
Chapter 10 IGMP Prof. Choong Seon HONG.
Chapter 15. Internet Protocol
Internet Protocol, Version 6 (IPv6)
IP Multicast COSC /5/2019.
EE 122: Lecture 13 (IP Multicast Routing)
Chapter 12 Multicasting And Multicast Routing Protocols
Implementing Multicast
Optional Read Slides: Network Multicast
Multicasting Unicast.
Presentation transcript:

學研計畫Training Course IP Multicasting Instructor: Jen-Shun Yang Date: Feb. 6, 2004

Outline Principles of IP Multicasting IP Multicasting Protocols Multicasting Programming PoC with Multicast Supporting Q & A

Principles of IP Multicasting

Unicast v.s. Multicast IP Based Public Network IP Based Public Network 140.X.3.22 or 239.192.0.25 140.X.3.22 IP Based Public Network IP Based Public Network IP Based Private Network IP Based Private Network 140.X.1.10 140.X.1.11 140.X.1.12 239.192.0.25 239.192.0.25 239.192.0.25 140.X.2.33 239.192.0.25 Unicasting Mulicasting

General Characteristics of IP Multicasting Group address: each multicasting group is a unique class D address. Number of groups: up to 228 simultaneous multicast groups. Dynamic group membership: a host can join or leave an IP multicasting group at any time. Use of hardware: underling network can support multicast. Inter-network forwarding: the capability of IP multicast is usually added to conventional routers. Delivery semantics: as same as best-effort delivery semantic. IP multicast datagram can also be lost, delayed, duplicated, or delivered out of order. Membership and transmission: group membership is only used to determine whether the host receivers datagram sent to group.

Multicast Addresses 224.0.0.0 through 239.255.255.255 A multicast address can never appear in the source address field of a datagram, nor can it appear in a source route or record route option

Examples of A Few Permanent IP Multicast Address Assignments

Mapping IP Multicast to Ethernet Multicast

Hosts and Multicast Delivery Multicast Hosts and Multicast Routers Multicast Delivery Single physical network Throughout an Internet the primary difference between local and non-local multicast lies in multicast router, not in hosts

Multicast Scope The scope of multicast group refers to the range of group member. IP uses two techniques to control multicast scope: Time-to-live (TTL): 0: inter-process, 1: intra signal physical network Administrative Scoping: distinct by the reserving part of address space

Three Levels of participation in IP Multicast

IP Multicasting Protocols

IP Multicasting Protocols Internet Group Management Protocol (IGMP): RFC 1112 and RFC2256 (updates RFC 1112) Distance Vector Multicast Routing Protocol (DVMRP): RFC 1075 Core Based Trees (CBT): RFC 2189, RFC 2201 Protocol Independent Multicast (PIM): RFC 2362 Multicast Extensions to OSPF (MOSPF): RFC 1584

Internet Group Management Protocol (IGMP) IGMP is a group management protocol. It helps a multicast router create and update a list of loyal members related to each router interface. Although IGMP uses IP datagram to carry messages, we think of it as an integral part of IP, not a separate protocol. IGMPv2 is current version.

Position of IGMP in the Network Layer

IGMP Message Types

IGMP Message Format

IGMP Operation

General Query Message

Membership Report In IGMP, a membership report is sent twice, one after the other.

IGMP Group Membership State Transition a Multicast router only generates a query every 125 second.

Encapsulation of IGMP Packet IP Header fields: Protocol field = 2 TTL field = 1

IGMP Package

IGMP Group Table State: Free, Delaying, Idle Reference Count: Number of processes interested

Multicast Forwarding and Routing Information Network 1 G1 G1 G2 G2 B C D E R Network s Network 2 G1 A G2 F G Special Features of Multicasting routing: Multicast routes can change simple because an application program join or leave a multicast group. Multicast forwarding requires a router to examine more than the destination address. Sender of a multicast group may not join the multicast group.

Avoid Routing Loops When making a forwarding decision, a multicast router use both the datagram’s source and destination address. The basic forwarding mechanism is known as Truncated Reverse Path Forwarding (TRPF) or Truncated Reverse Path Forwarding (TRPB) TRPF scheme follows the RPF scheme (unicast version).

TRPF scheme Routing Information: a conventional routing table and a list of multicast groups reachable through each network interface. Execution Steps: when a multicast datagram arrives, the router: Applies RPF rule: If RPF specifies discarding the copy, the router does so. If RFP specifies transmitting the datagram over particular interface, the router makes an additional check to verify that one or more members of the group designated in the datagram’s destination address are reachable over the interface. If no group members are reachable over the interface, the router skips that interface and continues examining the next one.

TRPF Problems

Multicast Membership Propagation If group membership information is not propagated rapidly, multicast routers will not make optimal decisions (i.e., they either forward datagrams across some networks unnecessarily or fail to send datagrams to all group members). A multicast routing scheme that communicates every membership change to every router is doomed because the resulting traffic can overwhelm an internet.

Reverse Path Multicasting (RPM) RPM extends TRPF to make it more dynamic. Bottom up multicast membership propagation Broadcast and Prune Strategy A router broadcasts datagrams (using RPF), Until it receives information that allow it prune a path. Data-driven model A router does not send group membership information to any other routers until datagrams arrive for that group. Graft requests graft the previously pruned branch back onto the tree.

Multicasting Programming

Multicast Socket Functions #include <sys/socket.h> int getsocketopt (int sockfd, int level, int optname, void *optval, socklen_t *optlen); int setsocketopt (int sockfd, int level, int optname, const void *optval, socklen_t *optlen); Both return: 0 if OK, -1 on error Level = IPPROTO_IP or IPPRPTO_IPv6 Other parameters see next slide

Multicast Socket Options Command Datatype Description IP_ADD_MEMBERSHIP IP_DROP_MEMBERSHIP IP_MULTICAST_IF IP_MULTICAST_TTL IP_MULTICAST_LOOP struct ip_mreq struct in_addr u_char Join a multicast group Leave a multicast group Specify default interface for outgoing multicasts Specify TTL for outgoing multicast Enable or disable loopback of outgoing multicast IPV6_ADD_MEMBERSHIP IPV6_DROP_MEMBERSHIP IPV6_MULTICAST_IF IPV6_MULTICAST_LOOP struct ipv6_mreq u_int int struct ip_mreq { struct in_addr imr_multiaddr; /* IPv4 class D multicast addr */ struct in_addr imr_interface; /* IPv4 addr of local interface */ } struct ipv6_mreq { struct in6_addr ipv6imr_multiaddr; /* IPv6 multicast addr */ unsigned int ipv6imr_interface; /* interface index, or 0 */

Example Program (IPv4)

Example Program (IPv6)

Program Examples (others) ftp://ftp.kohala.com/pub/rstevens/unpv12e.tar.gz Or ftp://pdptlg6.csie.nctu.edu.tw:6350/pub/unpv12e.tar.gz In /lib

PoC with Multicast Supporting

What is Push-to-talk ? Ericsson, Siemens, Mortorola and Nokia published the Push-to-talk over Cellular (PoC) release 1.0 at Aug. 2003. Mobile phone user can only push one button to talk with another person or a group. CCL enhance the idea to the WLAN/Cellular inter-working named Push-to-talk over WLAN/Cellular (PoW/C)

Why PoC ?

Floor Control The method that UEs to have and to release the resource in the PoC server Floor Idle: PoC Server notify UEs the resource is free Floor Request: UE request media resource to PoC Server Floor Grant: PoC Server notify agreed to the request UE Floor Deny: PoC Server notify rejected to the request UE Floor Taken: PoC Server notify all other UEs, a resource has been granted to another UE. Floor Release: UE notify PoC Server to release the resource Floor Revoke: PoC Server cancel the resource from UE

PoC without Multicasting (Current) GLMS PoW/C Server Ucast RTP session for Speaker Ucast RTP session for Listener Talk Floor grant IP Network UE A UE C UE D UE F UE B

PoC with Multicasting (Store and Forward) GLMS PoW/C Server Ucast RTP session for Speaker Mcast RTP session for Listener Talk Floor grant IP Network UE A UE C UE D UE F UE B

PoC with Multicasting (Direct Connect) GLMS PoW/C Server Mcast RTP session for Speaker Mcast RTP session for Listener Floor grant Talk IP Network Talk UE A UE C UE D UE F UE B

PoC with Multicasting (Direct Connect)-2 GLMS PoW/C Server Mcast RTP session for Speaker Mcast RTP session for Listener Floor grant IP Network Talk UE A UE C UE D UE F UE B

Q & A