Cisco SD-WAN: AAR & Data Policies

SD-WAN — Cisco Catalyst SD-WAN + Versa SD-WAN EVE-NG — vendor VMs

مقصدObjectiveObjective

اس لیب میں آپ vSmart پر SLA class بنائیں گے، AAR action کے ساتھ data policy بنائیں گے، site list پر لگائیں گے اور دیکھیں گے کہ path خراب ہونے پر ٹریفک کیسے گھومتا ہے۔Is lab mein aap vSmart par SLA class banayenge, AAR action ke saath data policy banayenge, site list par lagayenge aur dekhenge ke path kharab hone par traffic kaise ghumta hai.In this lab you will create an SLA class, a data policy with an AAR action on vSmart, apply it to a site list, and watch traffic steer when the path degrades.

آسان مثالSimple AnalogySimple Analogy

ایسے GPS کی طرح جو live traffic دیکھتا ہو: آج main road (MPLS) سب سے تیز ہے، مگر accident (packet loss) نظر آئے تو GPS فوراً side road (Internet) سے گھما دیتا ہے۔ AAR آپ کے ٹریفک کا یہی GPS ہے۔Aise GPS ki tarah jo live traffic dekhta ho: aaj main road (MPLS) sab se tez hai, magar accident (packet loss) nazar aaye to GPS foran side road (Internet) se ghuma deta hai. AAR aapke traffic ka yehi GPS hai.Like a GPS that watches live traffic: the main road (MPLS) is fastest today, but if an accident (packet loss) appears, the GPS instantly reroutes you via the side road (Internet). AAR is that GPS for your traffic.

سیٹ اپLab SetupLab Setup

دو vEdge راؤٹرز MPLS (color mpls) اور Internet (color biz-internet) uplinks کے ساتھ۔ Site 10 برانچ ہے، site 20 ڈیٹا سینٹر۔ vSmart centralized policies سنبھالتا ہے۔Do vEdge routers MPLS (color mpls) aur Internet (color biz-internet) uplinks ke saath. Site 10 branch hai, site 20 data center. vSmart centralized policies sambhalta hai.Two vEdge routers with MPLS (color mpls) and Internet (color biz-internet) uplinks. Site 10 is the branch, site 20 the data center. vSmart holds the centralized policies.

اقداماتStepsSteps

Step 1

vManage پر SLA class بنائیں (vSmart کے ذریعے لگے گی): max loss 2%، latency 150 ms، jitter 30 ms۔ یہ آپ کی اہم apps کے لیے 'قابلِ قبول' کی تعریف ہے۔vManage par SLA class banayen (vSmart ke zariye lagegi): max loss 2%, latency 150 ms, jitter 30 ms. Ye aapki ahem apps ke liye 'qabil-e-qabool' ki tareef hai.Create an SLA class on vManage (applied via vSmart): max loss 2%, latency 150 ms, jitter 30 ms. This defines 'good enough' for your critical apps.

🖱️ SLA class بنانے کا راستہSLA class banane ka raastaPath to create an SLA class

Step 2

Centralized data policy بنائیں: voice/video ٹریفک match کریں (مثال DSCP EF/AF41)، action = AAR with SLA class، preferred-color mpls، backup preferred-color biz-internet۔Centralized data policy banayen: voice/video traffic match karen (misal DSCP EF/AF41), action = AAR with SLA class, preferred-color mpls, backup preferred-color biz-internet.Create a centralized data policy: match voice/video traffic (e.g. DSCP EF/AF41), action = AAR with SLA class, preferred-color mpls, backup preferred-color biz-internet.

🖱️ Centralized data policy بنانے کا راستہCentralized data policy banane ka raastaPath to create a centralized data policy

Step 3

Site 10 اور 20 والی site list پر policy لگائیں، صحیح direction میں (branch-to-DC کے لیے from-service)۔ vSmart پر policy activate کریں۔Site 10 aur 20 wali site list par policy lagayen, sahi direction mein (branch-to-DC ke liye from-service). vSmart par policy activate karen.Apply the data policy to the site list containing site 10 and 20, in the correct direction (from-service for branch-to-DC). Activate the policy on vSmart.

🖱️ Policy کو site list پر لگانے کا راستہPolicy ko site list par lagane ka raastaPath to apply the policy to a site list

Step 4

تصدیق کریں کہ vEdge کو policy مل گئی: AAR action اور آپ کی SLA class کے ساتھ data policy نظر آنی چاہیے۔Tasdeeq karen ke vEdge ko policy mil gayi: AAR action aur aapki SLA class ke saath data policy nazar aani chahiye.Verify the vEdge received the policy: it should list the data policy with the AAR action and your SLA class.

show policy from-vsmart
show sdwan policy from-vsmart

Step 5

ہر path کا live SLA دیکھیں۔ EVE-NG میں MPLS path کو خراب کریں (link پر latency/loss ڈالیں) اور دیکھیں کہ show app-route stats flow کو biz-internet پر منتقل کرتا ہے۔Har path ka live SLA dekhen. EVE-NG mein MPLS path ko kharab karen (link par latency/loss dalen) aur dekhen ke show app-route stats flow ko biz-internet par muntaqil karta hai.Check the live SLA per path. Degrade the MPLS path in EVE-NG (add latency/loss on that link) and watch show app-route stats move the flow to biz-internet.

show app-route stats

Step 6

MPLS link ٹھیک کر کے stats clear کریں۔ SLA بہتر ہوتے ہی ٹریفک کو واپس mpls پر آنا چاہیے — AAR کا کام یہی ہے۔MPLS link theek kar ke stats clear karen. SLA behtar hote hi traffic ko wapas mpls par aana chahiye — AAR ka kaam yehi hai.Restore the MPLS link and clear the stats. Traffic should steer back to mpls once its SLA recovers — that is AAR doing its job.

clear app-route stats

تصدیقVerifyVerify

show policy from-vsmart میں AAR action کے ساتھ آپ کی data policy ہونی چاہیے۔ MPLS خراب کرنے کے بعد show app-route stats میں flow biz-internet پر ہونا چاہیے۔show policy from-vsmart mein AAR action ke saath aapki data policy honi chahiye. MPLS kharab karne ke baad show app-route stats mein flow biz-internet par hona chahiye.show policy from-vsmart must show your data policy with the AAR action. After degrading MPLS, show app-route stats must show the flow on biz-internet.

show policy from-vsmart
show app-route stats

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

⚠️ Primary path خراب ہونے کے باوجود ٹریفک نہیں گھوم رہا۔Primary path kharab hone ke bawajood traffic nahi ghum raha.Traffic is not steering even though the primary path is degraded.

✅ SLA class کی حدیں دیکھیں — زیادہ سخت values ہر path کو 'fail' کرا دیں گی۔ ساتھ ہی policy صحیح site-list اور direction پر لگی ہونی چاہیے۔SLA class ki haden dekhen — zyada sakht values har path ko 'fail' kara dengi. Saath hi policy sahi site-list aur direction par lagi honi chahiye.Check the SLA class thresholds — too-strict values make every path 'fail'. Also confirm the policy is applied to the right site-list and direction.

⚠️ vEdge کو data policy ملی ہی نہیں۔vEdge ko data policy mili hi nahi.The vEdge never received the data policy.

✅ vSmart پر policy activation status اور control connection دیکھیں۔ Policy activate ہونے کے بعد ہی ڈیوائسز تک پہنچتی ہے۔vSmart par policy activation status aur control connection dekhen. Policy activate hone ke baad hi devices tak pohanchti hai.Check the policy activation status on vSmart and the control connection. A policy only reaches devices after it is activated.

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

❓ Application-aware routing کا مقصد کیا ہے؟Application-aware routing ka maqsad kya hai?What is the purpose of application-aware routing?

اصل وقت کی application SLA کی بنیاد پر ٹریفک کو گھمانے کے لیے — جب primary path خراب ہو (loss/latency/jitter)، تو اہم apps خودبخود بہتر راستے پر منتقل ہو جاتی ہیں۔Asal waqt ki application SLA ke bunyad par traffic ko ghumane ke liye — jab primary path kharab ho (loss/latency/jitter), to ahem apps khud-ba-khud behtar raaste par muntaqil ho jati hain.To steer traffic based on real-time application SLA — when the primary path degrades (loss/latency/jitter), critical apps are automatically moved to a better path without manual changes.

❓ Data policy اور AAR میں کیا فرق ہے؟Data policy aur AAR mein kya farq hai?What is the difference between a data policy and AAR?

Data policy container ہے: ٹریفک match کرو، action لو (accept، drop، set TLOC، NAT...)۔ AAR ڈیٹا پالیسی کے اندر ایک action ہے — SLA classes کی بنیاد پر steering۔Data policy container hai: traffic match karo, action lo (accept, drop, set TLOC, NAT...). AAR data policy ke andar aik action hai — SLA classes ke bunyad par steering.A data policy is the container: match traffic, take an action (accept, drop, set TLOC, NAT...). AAR is one action inside a data policy — steering based on SLA classes.