Sunday 4 April 2010

Administrativfe Distance ဆိုတာဘာလဲ


အေ႐ွ႕မွာေျပာခဲ့သလိုဘဲ router တစ္ခုခ်င္းစီကာ အေကာင္းဆံုးလမ္းေၾကာင္းကို ေ႐ြးခ်ယ္ဖို႔ လိုအပ္ပါတယ္။ အဲဒီလိုေ႐ြးျခယ္တဲ့ဆီမွာ အကယ္လို႔ single network တစ္ခုမွာ ႐ွိေနတဲ့ router ကာ routing update information ေတြကို ေနရာအမ်ားအျပားကေန (ဥပမာ။ connected, static, နဲ႔ IGP routing protocols ေတြကေန) တၿပိဳင္တည္းရေနတဲ့အခ်ိန္မွာ အေကာင္းဆံုးလမ္းေၾကာင္း(the best route)တစ္ခုကို ေ႐ြးျခယ္ၿပီး router ရဲ႕routing table ထဲကိုထည့္ေပးရမယ့္ေျခအေနကာ အရမ္းကို႐ႈတ္ေထြးမႈ ႐ွိပါတယ္။ အဲဒီလိုေ႐ြးျခယ္တဲ့ဆီမွာ router ကာ administrative distance နဲ႔ routing metric ႏွစ္ခုကို ဦးစြာၾကည့္ၿပီးေတာ့မွ အေကာင္းဆံုးလမ္းေၾကာင္း(the best route)ကို ေ႐ြးျခယ္ပါတယ္။ ပထမဆံုးအေနနဲ႔ administrative distance(AD) ကိုၾကည့္ပါတယ္။

AD ကာ cisco ရဲ႕ ဦးစြာတည္ထြင္ခဲ့တဲ့ နည္းပညာျဖစ္ၿပီး IP routing protocols ေတြကို အဆင့္အတန္း အနိမ့္အျမင့္ သတ္မွတ္တဲ့ ေနရာမွာ သံုးပါတယ္။ ဥပမာအားျဖင့္ဆိုပါစို႔ router မွာ IGP routing protocol ႏွစ္ခုျဖစ္တဲ့ RIP နဲ႔ EIGRP runေနၿပီး၊ အဲဒီအခ်ိန္မွာ သူ႔ရဲ႕အိမ္နီးခ်င္း routerကေန 10.0.0.0/8 နဲ႔ အဲဒီ RIP နဲ႔ EIGRP ကို တၿပိဳင္တည္း advertise လုပ္ေနတယ္ ဆိုပါစို႔ ဘယ္ route ကို ေ႐ြးရမလဲ၊ ဘယ္ routing protocol ကို routing table ထဲထည့္ရမလဲ။ RIP လား EIGRP လား။ AD မွာ တန္ဖိုးေတြ၊ အေလးခ်ိန္ေတြ ကို ဂဏာန္းတန္ဖိုး အနည္းအမ်ားနဲ႔ protocol အလိုက္ သတ္မွတ္ထားေပးပါတယ္။ သူ႔ရဲ႕တန္ဖိုးေတြကာ 0 ကေန 255 ထိ႐ွိပါတယ္။ ဇယားထဲမွာ တန္ဖိုးတခ်ိဳ႕ကို အက်ဥ္းခ်ဳပ္ေဖၚျပထားပါတယ္။ တန္ဖိုးငယ္ေလ ယံုၾကည္စိတ္ခ်ရေလ၊ တန္ဖိုးႀကီးေလ ယံုၾကည္ရမႈနည္းေလ ျဖစ္တယ္။ 0 the best and 255 the worst.

Administrative Distance
Route Type
0 Connected interface route
0 or 1 Static route
90 Internal EIGRP route (within the same AS)
110 OSPF route
120 RIPv1 and v2 route
170 External EIGRP(from another AS)
255 Unknown route(is considered an invalid route and will not be used)

ဥပမာထဲမွာ အဲဒီနံပါတ္ေတြနဲ႔ၾကည့္မယ္ဆိုရင္ RIP ရဲ႕တန္ဖိုးက 120 ျဖစ္ၿပီးေတာ့၊ EIGRP ရဲ႕တန္ဖိုးက 90 ျဖစ္တဲ့အတြက္ေၾကာင့္ EIGRP route ကိုဘဲ ယံုၾကည္ရတဲ့ route အေနနဲ႔သတ္မွတ္ၿပီး routing table ထဲထည့္ပါလိမ့္မယ္။