MPLS Basics & L3VPN Concepts
CCNP ENARSI 300-410 EVE-NG / GNS3
مقصدObjectiveObjective
اس تھیوری لیب میں آپ MPLS کے بنیادی تصورات (labels، LDP)، VRF، اور L3VPN میں RD/RT کا کردار سمجھیں گے۔Is theory lab mein aap MPLS ke bunyadi tasawwurat (labels, LDP), VRF, aur L3VPN mein RD/RT ka kirdar samjhenge.In this theory lab you will understand MPLS basics (labels, LDP), VRFs, and the role of RD/RT in L3VPNs.
آسان مثالSimple AnalogySimple Analogy
MPLS ایسا ہے جیسے کورئیر کمپنی کا ہب سسٹم — ہر پارسل پر صرف ایک چھوٹا ٹیگ (label) لگا ہوتا ہے، اور ہب اسے پورا پتہ پڑھے بغیر آگے بھیج دیتا ہے۔ VRF ایک ہی راؤٹر کے اندر الگ الگ ڈاک خانے ہیں — ہر گاہک کا اپنا الگ routing table۔ RD ہر گاہک کے پتے کو منفرد بناتا ہے، RT بتاتا ہے کہ کون سا پتہ کس گاہک تک پہنچے۔MPLS aisa hai jaise courier company ka hub system — har parcel par sirf ek chhota tag (label) laga hota hai, aur hub ise poora pata parhe baghair aage bhej deta hai. VRF ek hi router ke andar alag alag daak khane hain — har gahak ka apna alag routing table. RD har gahak ke pate ko munfarid banata hai, RT batata hai ke kaun sa pata kis gahak tak pahunche.MPLS is like a courier hub system — each parcel carries just a small tag (label), and the hub forwards it without reading the full address. A VRF is separate post offices inside one router — each customer gets its own routing table. RD makes each customer's address unique; RT decides which address reaches which customer.
سیٹ اپLab SetupLab Setup
تھیوری لیب: کوئی کنفیگریشن نہیں۔ تصوراتی ٹوپولوجی: دو کسٹمر سائٹس (Cust-A) دو PE راؤٹرز سے جڑی ہیں، درمیان میں P راؤٹرز کا MPLS کور ہے۔Theory lab: koi configuration nahi. Tasawwurati topology: do customer sites (Cust-A) do PE routers se juri hain, darmiyan mein P routers ka MPLS core hai.Theory lab: no configuration. Conceptual topology: two customer sites (Cust-A) attach to two PE routers, with an MPLS core of P routers in between.
اقداماتStepsSteps
Step 1
MPLS label کا تصور سمجھیں۔ IP routing ہر hop پر پورا IP header دیکھتی ہے۔ MPLS میں ingress راؤٹر پیکٹ پر ایک چھوٹا label لگاتا ہے، اور core راؤٹرز صرف label دیکھ کر swap کر کے آگے بھیجتے ہیں — تیز اور آسان۔MPLS label ka tasawwur samjhein. IP routing har hop par poora IP header dekhti hai. MPLS mein ingress router packet par ek chhota label lagata hai, aur core routers sirf label dekh kar swap kar ke aage bhejte hain — tez aur aasan.Understand the MPLS label concept. IP routing inspects the full IP header at every hop. In MPLS the ingress router pushes a small label onto the packet, and core routers just swap labels to forward — fast and simple.
Step 2
LDP کا کردار جانیں۔ Label Distribution Protocol پڑوسی MPLS راؤٹرز کے درمیان labels بانٹتا ہے۔ ہر راؤٹر بتاتا ہے: اس prefix کے لیے یہ label استعمال کرو۔ LDP کے بغیر labels کا کوئی مطلب نہیں۔LDP ka kirdar janein. Label Distribution Protocol parosi MPLS routers ke darmiyan labels bant-ta hai. Har router batata hai: is prefix ke liye ye label istemal karo. LDP ke baghair labels ka koi matlab nahi.Learn LDP's role. The Label Distribution Protocol distributes labels between neighboring MPLS routers. Each router says: use this label for that prefix. Without LDP, labels mean nothing.
Step 3
VRF سمجھیں۔ Virtual Routing and Forwarding ایک ہی راؤٹر پر کئی الگ routing tables بناتی ہے۔ کسٹمر A کا 10.0.0.0/8 اور کسٹمر B کا 10.0.0.0/8 آپس میں ٹکرائے بغیر ایک ہی PE پر رہ سکتے ہیں۔VRF samjhein. Virtual Routing and Forwarding ek hi router par kai alag routing tables banati hai. Customer A ka 10.0.0.0/8 aur customer B ka 10.0.0.0/8 aapas mein takraye baghair ek hi PE par reh sakte hain.Understand VRF. Virtual Routing and Forwarding creates multiple separate routing tables on one router. Customer A's 10.0.0.0/8 and customer B's 10.0.0.0/8 can coexist on one PE without colliding.
Step 4
Route Distinguisher (RD) جانیں۔ جب دو کسٹمرز کے ایک جیسے prefixes MPLS کور میں BGP کے ذریعے جائیں تو RD انہیں منفرد بناتا ہے (مثلاً 65001:100:10.0.0.0/8)۔ RD صرف منفرد بنانے کے لیے ہے، پالیسی کے لیے نہیں۔Route Distinguisher (RD) janein. Jab do customers ke ek jaise prefixes MPLS core mein BGP ke zariye jayein to RD inhein munfarid banata hai (masalan 65001:100:10.0.0.0/8). RD sirf munfarid banane ke liye hai, policy ke liye nahi.Learn the Route Distinguisher (RD). When two customers' identical prefixes travel the MPLS core via BGP, the RD makes them unique (e.g. 65001:100:10.0.0.0/8). RD is only for uniqueness, not policy.
Step 5
Route Target (RT) سمجھیں۔ RT ایک extended community ہے جو بتاتی ہے کہ یہ VPN route کس VRF میں import ہو۔ Export RT لگاتا ہے، import RT قبول کرتا ہے — اسی سے hub-spoke جیسی ٹوپولوجیز بنتی ہیں۔Route Target (RT) samjhein. RT ek extended community hai jo batati hai ke ye VPN route kis VRF mein import ho. Export RT lagata hai, import RT qabool karta hai — isi se hub-spoke jaisi topologies banti hain.Understand the Route Target (RT). RT is an extended community declaring which VRF imports a VPN route. Export attaches it, import accepts it — this is how hub-spoke topologies are built.
Step 6
L3VPN کا مکمل بہاؤ دہرائیں۔ CE سے PE تک عام routing، PE پر VRF میں route، RD لگ کر MP-BGP میں، label لگ کر MPLS کور سے گزر کر دوسرے PE تک، وہاں RT کی بنیاد پر صحیح VRF میں — اور پھر CE تک۔L3VPN ka mukammal bahao dohraein. CE se PE tak aam routing, PE par VRF mein route, RD lag kar MP-BGP mein, label lag kar MPLS core se guzar kar doosre PE tak, wahan RT ki bunyad par sahi VRF mein — aur phir CE tak.Recap the full L3VPN flow. Normal routing from CE to PE, route lands in the VRF, RD is attached into MP-BGP, labels carry it across the MPLS core to the far PE, RT places it in the right VRF — then on to the CE.
تصدیقVerifyVerify
اپنے الفاظ میں بیان کریں: label کہاں لگتا ہے، LDP کیا بانٹتا ہے، RD اور RT میں کیا فرق ہے۔ یہی اس لیب کی کامیابی ہے۔Apne alfaz mein bayan karein: label kahan lagta hai, LDP kya bant-ta hai, RD aur RT mein kya farq hai. Yehi is lab ki kamyabi hai.Explain in your own words: where the label is imposed, what LDP distributes, and the difference between RD and RT. That is this lab's success criterion.
خرابی دور کرناTroubleshootingTroubleshooting
⚠️ دو کسٹمرز کے ایک جیسے prefixes آپس میں گڈمڈ ہو رہے ہیں۔Do customers ke ek jaise prefixes aapas mein gudmud ho rahe hain.Two customers' identical prefixes are getting mixed up.
✅ ہر VRF کا RD منفرد چیک کریں۔ ایک جیسا RD لگنے سے MP-BGP میں prefixes ٹکرا جاتے ہیں۔Har VRF ka RD munfarid check karein. Ek jaisa RD lagne se MP-BGP mein prefixes takra jate hain.Verify each VRF has a unique RD. Identical RDs make prefixes collide in MP-BGP.
⚠️ VPN route دوسری سائٹ تک نہیں پہنچ رہا۔VPN route doosri site tak nahi pahunch raha.The VPN route isn't reaching the other site.
✅ Export RT اور import RT کا میل چیک کریں — بھیجنے والے کی export RT وصول کرنے والے کی import RT سے ملنی چاہیے۔Export RT aur import RT ka mel check karein — bhejne wale ki export RT wasool karne wale ki import RT se milni chahiye.Check export/import RT match — the sender's export RT must equal the receiver's import RT.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ RD اور RT میں کیا فرق ہے؟RD aur RT mein kya farq hai?What is the difference between RD and RT?
RD prefix کو منفرد بناتا ہے (uniqueness)۔ RT یہ طے کرتا ہے کہ VPN route کس VRF میں import ہو (policy)۔ RD ہر VRF پر منفرد ہونا چاہیے، RT ٹوپولوجی کے حساب سے شیئر ہو سکتا ہے۔RD prefix ko munfarid banata hai (uniqueness). RT ye tay karta hai ke VPN route kis VRF mein import ho (policy). RD har VRF par munfarid hona chahiye, RT topology ke hisab se share ho sakta hai.RD makes the prefix unique (uniqueness). RT decides which VRF imports the VPN route (policy). RD should be unique per VRF; RT can be shared per topology.
❓ MPLS میں LDP کا کیا کام ہے؟MPLS mein LDP ka kya kaam hai?What does LDP do in MPLS?
LDP پڑوسی راؤٹرز کے درمیان label bindings بانٹتا ہے — کون سا label کس prefix کے لیے ہے۔ اس کے بغیر label switching کام نہیں کر سکتی۔LDP parosi routers ke darmiyan label bindings bant-ta hai — kaun sa label kis prefix ke liye hai. Is ke baghair label switching kaam nahi kar sakti.LDP distributes label bindings between neighbors — which label maps to which prefix. Label switching can't work without it.