Home » Multicast Networking: IGMP, PIM-SM, PIM-SSM, RP, Rendezvous Point และ Design
Multicast Networking: IGMP, PIM-SM, PIM-SSM, RP, Rendezvous Point และ Design
Multicast Networking: IGMP, PIM-SM, PIM-SSM, RP, Rendezvous Point และ Design
Multicast ส่ง data จาก 1 source ไปยังหลาย receivers พร้อมกัน โดยไม่ต้อง duplicate packets ที่ source IGMP (Internet Group Management Protocol) ใช้ hosts แจ้ง router ว่าต้องการรับ multicast group, PIM-SM (Protocol Independent Multicast – Sparse Mode) สร้าง multicast distribution tree, PIM-SSM (Source-Specific Multicast) optimize สำหรับ known source และ RP (Rendezvous Point) เป็น meeting point สำหรับ sources กับ receivers
Unicast ส่ง 1 copy ต่อ 1 receiver: ถ้ามี 1,000 receivers → ส่ง 1,000 copies ซึ่ง waste bandwidth มหาศาล Multicast ส่งแค่ 1 copy → network replicate ที่ branch points → ทุก receiver ได้ data ใช้ bandwidth เท่ากับ 1 stream ไม่ว่าจะมี receivers กี่คน เหมาะสำหรับ IPTV, video conferencing, stock market feeds, software updates
Unicast vs Multicast vs Broadcast
Type
Source → Destination
Bandwidth Usage
Unicast
1 → 1
N copies for N receivers (scales poorly)
Broadcast
1 → All (entire subnet)
1 copy but reaches everyone (including non-interested)
Multicast
1 → Group (interested only)
1 copy, replicated at branch points (efficient)
Multicast Addressing
Range
Purpose
Example
224.0.0.0/24
Link-local (not forwarded by routers)
224.0.0.1 (all hosts), 224.0.0.5 (OSPF routers)
224.0.1.0 – 238.255.255.255
Globally scoped (internet multicast)
Assigned by IANA for specific applications
239.0.0.0/8
Administratively scoped (private use)
Organization-internal multicast groups
L2 Mapping
IP multicast → MAC: 01:00:5E:XX:XX:XX
224.1.2.3 → 01:00:5E:01:02:03
IGMP (Internet Group Management Protocol)
Version
Features
Use
IGMPv1
Join only (no explicit leave)
Legacy (timeout-based leave)
IGMPv2
Join + explicit Leave + Group-specific query
Most common (faster leave)
IGMPv3
Source filtering (include/exclude source list)
Required for PIM-SSM (source-specific)
IGMP Operations
Message
Direction
Purpose
Membership Report (Join)
Host → Router
“ฉันต้องการรับ group 239.1.1.1”
Leave Group
Host → Router
“ฉันไม่ต้องการรับ group 239.1.1.1 แล้ว”
General Query
Router → Hosts
“ใครยังต้องการรับ multicast groups อยู่?” (periodic)
Group-Specific Query
Router → Hosts
“ใครยังต้องการรับ group X อยู่?” (after leave received)
IGMP Snooping
Switch feature
Switch ดู IGMP messages → forward multicast เฉพาะ ports ที่มี receivers
PIM-SM (Sparse Mode)
Feature
รายละเอียด
คืออะไร
Multicast routing protocol ที่สร้าง distribution tree แบบ shared tree (RP-based)
RP (Rendezvous Point)
Central router ที่ sources + receivers “meet” → shared tree root
Shared Tree (*,G)
Tree rooted at RP → all sources ใช้ tree เดียวกัน
Source Tree (S,G)
Shortest path tree จาก source ไป receivers (optimal path)
SPT Switchover
Receiver switches จาก shared tree (RP) ไป source tree (shorter path)
Join/Prune
PIM messages ที่สร้าง/ลบ branches ของ multicast tree
Register
Source’s DR encapsulate first packets → send to RP (register tunnel)
RP Discovery Methods
Method
How
Use Case
Static RP
Configure RP address on every router manually
Simple networks (few groups, stable RP)
Auto-RP (Cisco)
Candidate RPs announce → Mapping Agent selects → distribute via 224.0.1.40
Cisco-only networks
BSR (Bootstrap Router)
Candidate RPs + BSR → BSR floods RP mapping via PIM messages
Multi-vendor (RFC 5059, standard)
Anycast RP
Same RP address on multiple routers → MSDP sync between RPs
RP redundancy (active-active)
PIM-SSM (Source-Specific Multicast)
Feature
PIM-SM
PIM-SSM
Tree Type
Shared tree (*,G) → Source tree (S,G)
Source tree (S,G) only
RP Required
Yes (shared tree needs RP)
No (no RP needed)
Source Knowledge
Receivers don’t need to know source
Receivers must know source IP (IGMPv3)
Address Range
224.0.0.0/4
232.0.0.0/8 (SSM range)
Security
Any source can send to group
Only specified source accepted (spoof protection)
Efficiency
May use suboptimal path (via RP)
Always shortest path (source → receiver)
Use Case
General multicast (unknown sources)
IPTV, known-source streams
Multicast Design Best Practices
Practice
รายละเอียด
Use PIM-SSM where possible
No RP needed, shortest path, source validation (IPTV, known sources)
Redundant RPs
Anycast RP + MSDP หรือ Phantom RP สำหรับ RP redundancy
IGMP Snooping
Enable on all switches (prevent multicast flooding to all ports)
RP placement
Place RP close to sources (reduce register tunnel overhead)
SPT threshold
Configure SPT switchover threshold (or immediate switchover = 0)
Scope control
Use 239.0.0.0/8 (admin-scoped) + TTL scoping สำหรับ internal multicast
Monitor
Monitor IGMP groups, PIM neighbors, mroute table, packet counts
ทิ้งท้าย: Multicast = Efficient One-to-Many Delivery
Multicast Networking Concept: 1 source → many receivers, network replicates at branch points (bandwidth efficient) IGMP: hosts tell router which groups to join (v2 common, v3 for SSM) PIM-SM: shared tree (*,G) via RP → switch to source tree (S,G) for optimal path PIM-SSM: source tree only, no RP needed, IGMPv3 required (232.0.0.0/8) RP: rendezvous point for sources + receivers (static, Auto-RP, BSR, Anycast) IGMP Snooping: switch-level optimization (forward multicast only to interested ports) Use cases: IPTV, video conferencing, stock feeds, OS deployment, routing protocols
อ่านเพิ่มเติมเกี่ยวกับ QoS DiffServ DSCP Queuing และ Network Load Balancing L4 L7 GSLB ที่ siamlancard.com หรือจาก icafeforex.com และ siam2r.com