Multicast Advanced: PIM-SM, RP & MSDP

CCIE Enterprise Infrastructure EVE-NG / GNS3

مقصدObjectiveObjective

اس تھیوری سبق کے بعد آپ shared اور source-based distribution trees، Rendezvous Point کا کردار، اور MSDP کے ذریعے inter-domain multicast سمجھ جائیں گے۔Is theory lesson ke baad aap shared aur source-based distribution trees, Rendezvous Point ka kirdar, aur MSDP ke zariye inter-domain multicast samajh jayenge.After this theory lesson you will understand shared vs source-based distribution trees, the Rendezvous Point role, and inter-domain multicast via MSDP.

آسان مثالSimple AnalogySimple Analogy

Multicast ایسا ہے جیسے ریڈیو اسٹیشن — ایک بار نشر کرو، جو سننا چاہے ٹیون کر لے۔ RP وہ مرکزی ٹاور ہے جہاں سب پہلے جڑتے ہیں، پھر بہترین سگنل والا براہ راست راستہ (SPT) بنا لیتے ہیں۔Multicast aisa hai jaise radio station — ek baar nashar karo, jo sunna chahe tune kar le. RP wo markazi tower hai jahan sab pehle jurtay hain, phir behtareen signal wala direct rasta (SPT) bana lete hain.Multicast is like a radio station — broadcast once, whoever wants to listen tunes in. The RP is the central tower everyone joins first, then they build the best direct path (SPT).

سیٹ اپLab SetupLab Setup

تھیوری سبق — لیب اختیاری ہے۔ چاہیں تو تین روٹرز پر PIM-SM چلا کر RP کے ساتھ (*,G) اور (S,G) entries دیکھ سکتے ہیں۔Theory lesson — lab optional hai. Chahein to teen routers par PIM-SM chala kar RP ke saath (*,G) aur (S,G) entries dekh sakte hain.Theory lesson — lab is optional. If you like, run PIM-SM on three routers with an RP and observe (*,G) and (S,G) entries.

اقداماتStepsSteps

Step 1

PIM Dense Mode ہر جگہ flood کرتا ہے پھر prune کرتا ہے — چھوٹے نیٹ ورکس کے لیے ٹھیک۔ PIM Sparse Mode صرف وہیں بھیجتا ہے جہاں receivers ہوں — بڑے نیٹ ورکس کا معیار۔PIM Dense Mode har jagah flood karta hai phir prune karta hai — chhote networks ke liye theek. PIM Sparse Mode sirf wahin bhejta hai jahan receivers hon — bare networks ka standard.PIM Dense Mode floods everywhere then prunes — fine for small networks. PIM Sparse Mode only forwards where receivers exist — the large-network standard.

Step 2

Shared tree (*,G): receiver پہلے RP سے جڑتا ہے۔ RP وہ ملاقات کی جگہ ہے جہاں source اور receivers آپس میں ملتے ہیں۔Shared tree (*,G): receiver pehle RP se jurta hai. RP wo mulaqat ki jagah hai jahan source aur receivers aapas mein milte hain.Shared tree (*,G): receivers first join the RP. The RP is the meeting point where sources and receivers meet.

Step 3

Source tree (S,G): جب ٹریفک بہنا شروع ہو تو router براہ راست source کی طرف Shortest Path Tree بنا لیتا ہے — تاخیر کم، بینڈوتھ بہتر۔Source tree (S,G): jab traffic behna shuru ho to router direct source ki taraf Shortest Path Tree bana leta hai — delay kam, bandwidth behtar.Source tree (S,G): once traffic flows, the router builds a Shortest Path Tree directly toward the source — lower delay, better bandwidth.

Step 4

RP منتخب کرنے کے طریقے: static (سادہ، چھوٹے نیٹ ورک)، Auto-RP (Cisco)، BSR (معیاری، vendor-neutral)۔ BSR ہر ڈومین میں RP معلومات پھیلاتا ہے۔RP select karne ke tareeqay: static (saada, chhote network), Auto-RP (Cisco), BSR (standard, vendor-neutral). BSR har domain mein RP information phailata hai.RP election methods: static (simple, small networks), Auto-RP (Cisco), BSR (standard, vendor-neutral). BSR floods RP info within a domain.

Step 5

MSDP مختلف PIM ڈومینز کے RPs کو جوڑتا ہے۔ ہر RP اپنے local sources کی خبر (SA messages) دوسرے ڈومین کے RP کو دیتا ہے — یوں inter-domain multicast چلتا ہے۔MSDP mukhtalif PIM domains ke RPs ko jorta hai. Har RP apne local sources ki khabar (SA messages) doosre domain ke RP ko deta hai — yun inter-domain multicast chalta hai.MSDP connects RPs of different PIM domains. Each RP shares its local sources via SA messages with the other domain's RP — enabling inter-domain multicast.

Step 6

Anycast-RP: دو یا زیادہ RPs ایک ہی IP استعمال کرتے ہیں، MSDP ان کے درمیان source معلومات sync کرتا ہے — RP redundancy کا بہترین طریقہ۔Anycast-RP: do ya zyada RPs ek hi IP use karte hain, MSDP un ke darmiyan source information sync karta hai — RP redundancy ka behtareen tareeqa.Anycast-RP: two or more RPs share one IP; MSDP syncs source info between them — the best RP redundancy method.

تصدیقVerifyVerify

اپنے آپ سے پوچھیں: (*,G) اور (S,G) میں فرق بتا سکتا ہوں؟ RP کیوں ضروری ہے؟ MSDP کب چاہیے؟ اگر تینوں کے جواب آتے ہیں تو سبق مکمل۔Apne aap se poochen: (*,G) aur (S,G) mein farq bata sakta hoon? RP kyun zaroori hai? MSDP kab chahiye? Agar teenon ke jawab aate hain to lesson complete.Ask yourself: can I explain (*,G) vs (S,G)? Why is the RP needed? When is MSDP required? If you can answer all three, the lesson is complete.

خرابی دور کرناTroubleshootingTroubleshooting

⚠️ Receiver کو multicast stream نہیں مل رہی۔Receiver ko multicast stream nahi mil rahi.Receiver not getting the multicast stream.

✅ چیک کریں: RP reachable ہے؟ (*,G) entry بنی؟ Source کی طرف (S,G) بنی؟ RPF check fail تو unicast routing درست کریں۔Check karein: RP reachable hai? (*,G) entry bani? Source ki taraf (S,G) bani? RPF check fail to unicast routing durust karein.Check: is the RP reachable? Does (*,G) exist? Is (S,G) built toward the source? If RPF fails, fix unicast routing.

انٹرویو سوالاتInterview Q&AInterview Q&A

❓ Shared tree سے source tree پر switchover کیوں ہوتا ہے؟Shared tree se source tree par switchover kyun hota hai?Why switch from the shared tree to the source tree?

RP کے ذریعے راستہ لمبا ہو سکتا ہے۔ SPT براہ راست source کی طرف سب سے چھوٹا راستہ دیتا ہے — کم latency اور RP پر بوجھ کم۔RP ke zariye rasta lamba ho sakta hai. SPT direct source ki taraf sab se chhota rasta deta hai — kam latency aur RP par bojh kam.The path via RP can be suboptimal. SPT gives the shortest path directly to the source — lower latency and less load on the RP.

❓ MSDP اور Anycast-RP ایک ساتھ کیوں استعمال ہوتے ہیں؟MSDP aur Anycast-RP ek saath kyun use hote hain?Why are MSDP and Anycast-RP used together?

Anycast-RP سے receivers قریبی RP سے جڑتے ہیں (redundancy + بہترین path)۔ MSDP دونوں RPs کے درمیان active sources کی معلومات sync رکھتا ہے تاکہ کوئی source miss نہ ہو۔Anycast-RP se receivers qareebi RP se jurte hain (redundancy + behtareen path). MSDP dono RPs ke darmiyan active sources ki information sync rakhta hai taake koi source miss na ho.Anycast-RP lets receivers join the nearest RP (redundancy + optimal path). MSDP keeps active-source info synced between RPs so no source is missed.