Data Center Architectures: Spine-Leaf & VXLAN/EVPN
CCNP Data Center — DCCOR track EVE-NG — Nexus / ACI lab
مقصدObjectiveObjective
اس lesson میں آپ ڈیٹا سینٹر کی 3-tier آرکیٹیکچر اور spine-leaf آرکیٹیکچر میں فرق سیکھیں گے، اور VXLAN/EVPN overlay کے بنیادی تصورات سمجھیں گے۔Is lesson mein aap data center ki 3-tier architecture aur spine-leaf architecture mein farq seekhenge, aur VXLAN/EVPN overlay ke bunyadi tasawwurat samjhenge.In this lesson you will learn the difference between 3-tier and spine-leaf data center architectures, and understand the basic concepts of the VXLAN/EVPN overlay.
آسان مثالSimple AnalogySimple Analogy
پرانے ڈیٹا سینٹر میں ٹریفک پرانے شہر جیسا تھا: ہر طرف جانے کے لیے ایک ہی بڑی مرکزی سڑک (core) سے گزرنا پڑتا تھا جہاں رش لگ جاتا تھا۔ Spine-leaf ایک منصوبہ بند نئے شہر جیسا ہے: ہر گلی (leaf) مرکزی شاہراہ (spine) سے ایک جیسے فاصلے پر ملتی ہے، اس لیے رش نہیں لگتا اور سفر ہمیشہ ایک جیسا رہتا ہے۔Purane data center mein traffic purane shehar jaisa tha: har taraf jaane ke liye ek hi bari markazi sarrak (core) se guzarna parta tha jahan rush lag jata tha. Spine-leaf ek mansooba-band naye shehar jaisa hai: har gali (leaf) markazi shahrah (spine) se ek jaise faasle par milti hai, is liye rush nahi lagta aur safar hamesha ek jaisa rehta hai.Traffic in an old data center was like an old city: to go anywhere you had to funnel through one big central road (core), where congestion built up. Spine-leaf is like a planned new city: every street (leaf) meets the central highway (spine) at an equal distance, so there is no bottleneck and every trip takes the same number of hops.
سیٹ اپLab SetupLab Setup
یہ ایک theory lesson ہے — کوئی ڈیوائس درکار نہیں۔ EVE-NG میں یا کاغذ پر دو ڈایاگرام بنائیں: ایک 3-tier (access → aggregation → core) اور ایک spine-leaf (2 spines، 2 leaves)۔Ye ek theory lesson hai — koi device darkaar nahi. EVE-NG mein ya kaaghaz par do diagram banayein: ek 3-tier (access → aggregation → core) aur ek spine-leaf (2 spines, 2 leaves).This is a theory lesson — no devices required. Draw two diagrams in EVE-NG or on paper: one 3-tier (access → aggregation → core) and one spine-leaf (2 spines, 2 leaves).
اقداماتStepsSteps
Step 1
3-tier ماڈل میں تین پرتیں ہوتی ہیں: access (جہاں servers جڑتے ہیں)، aggregation (جو ٹریفک جمع کرتا ہے)، اور core (تیز رفتار backbone)۔3-tier model mein teen partien hoti hain: access (jahan servers jurte hain), aggregation (jo traffic jama karta hai), aur core (tez raftar backbone).The 3-tier model has three layers: access (where servers connect), aggregation (which collects traffic), and core (the high-speed backbone).
Step 2
مسئلہ یہ ہے: سرور سے سرور تک ٹریفک کو access → aggregation → core → aggregation → access یعنی چار hops سے گزرنا پڑتا ہے۔ اس سے latency بڑھتی ہے اور bandwidth ضائع ہوتی ہے۔Masla ye hai: server se server tak traffic ko access → aggregation → core → aggregation → access, yaani chaar hops se guzarna parta hai. Is se latency barhti hai aur bandwidth zaya hoti hai.The problem: server-to-server traffic must cross access → aggregation → core → aggregation → access — four hops. This adds latency and wastes bandwidth through oversubscription.
Step 3
Spine-leaf میں leaf switches servers سے جڑتے ہیں اور ہر leaf ہر spine سے جڑا ہوتا ہے۔ Spine کبھی spine سے اور leaf کبھی leaf سے براہِ راست نہیں جڑتا۔Spine-leaf mein leaf switches servers se jurte hain aur har leaf har spine se jura hota hai. Spine kabhi spine se aur leaf kabhi leaf se braah-e-raast nahi jurta.In spine-leaf, leaf switches connect to servers and every leaf connects to every spine. Spines never connect to each other, and leaves never connect to each other directly.
Step 4
کوئی بھی سرور دوسرے سرور تک ہمیشہ دو hops (leaf → spine → leaf) میں پہنچتا ہے۔ ECMP (Equal-Cost Multi-Path) ٹریفک کو تمام spines پر برابر تقسیم کرتا ہے۔Koi bhi server doosre server tak hamesha do hops (leaf → spine → leaf) mein pahunchta hai. ECMP (Equal-Cost Multi-Path) traffic ko tamam spines par barabar taqseem karta hai.Any server reaches any other server in exactly two hops (leaf → spine → leaf). ECMP (Equal-Cost Multi-Path) spreads traffic evenly across all spines.
Step 5
VXLAN ایک tunnel ہے جو Layer 2 ٹریفک کو Layer 3 network کے اوپر لے جاتا ہے۔ VLAN صرف 4094 IDs دیتا ہے جبکہ VXLAN 16 ملین VNI دیتا ہے — جو cloud scale کے لیے بنا ہے۔VXLAN ek tunnel hai jo Layer 2 traffic ko Layer 3 network ke upar le jata hai. VLAN sirf 4094 IDs deta hai jabke VXLAN 16 million VNI deta hai — jo cloud scale ke liye bana hai.VXLAN is a tunnel that carries Layer 2 traffic over a Layer 3 network. VLANs give only 4094 IDs, while VXLAN gives 16 million VNIs — built for cloud scale.
Step 6
EVPN وہ control plane ہے جو بتاتا ہے کہ ہر MAC/IP address کس VTEP کے پیچھے ہے۔ یہ BGP کے ذریعے یہ معلومات spines اور leaves میں share کرتا ہے۔EVPN woh control plane hai jo batata hai ke har MAC/IP address kis VTEP ke peeche hai. Ye BGP ke zariye ye maloomat spines aur leaves mein share karta hai.EVPN is the control plane that tells everyone which MAC/IP address sits behind which VTEP. It shares this information among spines and leaves using BGP.
تصدیقVerifyVerify
دونوں topology کے ڈایاگرام بنائیں اور ہر ایک میں سرور سے سرور تک hops گنیں: 3-tier میں چار، spine-leaf میں دو۔ پھر ایک جملے میں لکھیں کہ VXLAN کیوں VLAN سے بہتر ہے۔Dono topology ke diagram banayein aur har ek mein server se server tak hops ginein: 3-tier mein chaar, spine-leaf mein do. Phir ek jumle mein likhein ke VXLAN kyun VLAN se behtar hai.Draw both topologies and count the server-to-server hops in each: four in 3-tier, two in spine-leaf. Then write one sentence explaining why VXLAN is better than VLAN at scale.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ 3-tier اور spine-leaf آرکیٹیکچر میں بنیادی فرق کیا ہے؟3-tier aur spine-leaf architecture mein bunyadi farq kya hai?What is the fundamental difference between 3-tier and spine-leaf architectures?
3-tier میں تین layers اور سرور سے سرور تک چار hops ہوتے ہیں۔ Spine-leaf میں ہر leaf ہر spine سے جڑا ہوتا ہے، ہمیشہ دو hops، اور ECMP ٹریفک کو برابر تقسیم کرتا ہے۔3-tier mein teen layers aur server se server tak chaar hops hote hain. Spine-leaf mein har leaf har spine se jura hota hai, hamesha do hops, aur ECMP traffic ko barabar taqseem karta hai.3-tier has three layers and four server-to-server hops. In spine-leaf every leaf connects to every spine, so it is always two hops, and ECMP balances traffic evenly.
❓ VXLAN کیوں ضروری ہے — VLAN کیوں کافی نہیں؟VXLAN kyun zaroori hai — VLAN kyun kaafi nahi?Why is VXLAN needed — why is VLAN not enough?
VLAN کی حد 4094 IDs ہے جو بڑے cloud کے لیے ناکافی ہے۔ VXLAN 16 ملین VNI دیتا ہے اور Layer 2 کو Layer 3 کے اوپر لے جاتا ہے، اس لیے VMs کہیں بھی move ہو سکتی ہیں۔VLAN ki had 4094 IDs hai jo bare cloud ke liye nakaafi hai. VXLAN 16 million VNI deta hai aur Layer 2 ko Layer 3 ke upar le jata hai, is liye VMs kahin bhi move ho sakti hain.VLANs are limited to 4094 IDs, which is not enough for large clouds. VXLAN gives 16 million VNIs and stretches Layer 2 over Layer 3, so VMs can move anywhere.