Ads 468x60px

Featured Posts

Sunday, October 16, 2011

Others

Security

Basic Networking

Switching

EIGRP Routing Protoco

EIGRP Routing Protocol

EIGRP နဲ႕ ပတ္သက္လို႕ သိသေလာက္ေလး စတင္ေဆြးေႏြး ၍ post လုပ္ေပးခ်င္ပါသည္။
EIGRP Protocol ဆိုသည္မွာ. . .

၁။ EIGRP Protocol ဟာ Hybrid protocol အမ်ိဳး အစားျဖစ္ပါတယ္။ ၄င္းမွာ distance vector ႏွင့္ link-state routing protocols မ်ားရဲ႕ feature ေတြပါ၀င္ေနပါတယ္။
၂။ EIGRP ဟာ cisco မူပိုင္ protocol တစ္ခုျဖစ္ပါတယ္။ cisco မွ Enhance ျပန္လုပ္ထားတဲ့ protocol တစ္ခုျဖစ္ပါတယ္။ ၁၉၉၂ ခုမွ ထုတ္လုပ္ခဲ့ပါတယ္။
၃။ EIGRP Protocol ဟာ Classless routing protocol ျဖစ္ပါတယ္။ VLSMs ကို support လုပ္ပါတယ္။
၄။ EIGRP Protocol မွာ Table ၃ ခုပါ၀င္ပါတယ္။
a. Neighbors Table
b. Topology Table
c. Routing Table

a. Neighbors Table
၄င္းထဲမွာ EIGRP Protocol run ထားတဲ့ Router နဲ႕ ခ်ိတ္ဆက္ထားတဲ့(neighbor) ျဖစ္ေနတဲ့ Routers ေတြ ပါ၀င္ပါတယ္။
Neighbors ေရြးခ်ယ္ရန္
EIGRP Protocol run ထားေသာ Routers မ်ားသည္ Hello Message မ်ား အခ်င္းခ်င္းပို႕လႊတ္ကာ Neighbors မ်ား ရွာေဖြပါတယ္။ Hello Message ဟာ unreliable ျဖစ္ပါတယ္။ Hello Message ကို ၅ စကၠန္႕ တစ္ခါ ပို႕ပါတယ္။ NBMA(Multipoint nonboradcast multi-access networks)မ်ားျဖစ္တဲ့ X.25, Frame Relay ႏွင့္ ATM တို႕မွာေတာ့ ၆၀ စကၠန္႕ တစ္ခါပို႕ပါတယ္။

b. Topology Table
၄င္းထဲမွ route လမ္းေၾကာင္းေတြပါရွိပါတယ္။ အဲ့ဒါက Successor Route နဲ႕ Feasible Successor Route တို႕ျဖစ္ပါတယ္။ Successor Route ဆိုတာ destination network ကိုသြားဘို႕ အတြက္ အေကာင္းဆံုး လမ္းေၾကာင္းပါ(best route) ျဖစ္ပါတယ္။ Feasible Successor Route ကေတာ့ Backup Route ျဖစ္ပါတယ္။ အရံလမ္းေၾကာင္းျဖစ္ပါတယ္။
Route လမ္းေၾကာင္းမ်ားရွာရန္
EIGRP run ထားေသာ routers မ်ားဟာ အခ်င္းခ်င္း neighbors ျဖစ္ၿပီးခ်ိန္တြင္ ပထမအႀကိမ္ မိမိတြင္ရွိေသာ routing info ေတြကို fully update ေပးပို႕ပါတယ္။ ေနာက္ပိုင္းတြင္ route လမ္းေၾကာင္းမ်ား အေျပာင္းအလဲရွိမွသာ partial update (ေျပာင္းလဲမႈသာ)ပို႕ေဆာင္ပါတယ္။
Update Message ပို႕ရာတြင္ Reliable delivery ျဖင့္လုပ္ေဆာင္ပါတယ္။ ဆိုလိုသည္မွာ သက္ဆိုင္ရာ Neighbors Routers မ်ားမွ update message ရရွိပါက Acknowledgement ျပန္ပို႕ပါတယ္။ Acknowledgement Message ကိုေတာ့ unreliable အေနျဖင့္ပို႕ပါတယ္။

Topology Table ထဲတြင္ Feasible Successor Route မရွိခဲ့လွ်င္ DUAL Diffusing Update Algorithm ကို run ၿပီး အေကာင္းဆံုးလမ္းေၾကာင္းကိုျပန္ရွာပါတယ္။
DUAL အလုပ္လုပ္ပံု
၁။ EIGRP run ထားေသာ Router ဟာ network လမ္းေၾကာင္းတစ္ခုေျပာင္းလဲသြားသည္ႏွင့္ (15 seconds (NBMA networks မ်ားတြင္ 180 seconds) ၾကာလို႕မွ Neighbors Router ေတြက Hello Message မ Send ရင္) အရင္ဆံုး Update route Info ကို Neighbors Routers ေတြဆီပို႕ပါတယ္။ လက္ခံရရွိတဲ့ Neighbors ေတြက Acknowledge ျပန္ပါတယ္။
၂။ Neighbors Router ေတြဆီကို Query Message ပို႕ပါတယ္။(အေကာင္းဆံုးလမ္းေၾကာင္းရွာရန္ပါ)။ Neighbors Routers ေတြက Query Message ကို ရရင္ Acknowledge ျပန္ပါတယ္။
၃။ Neighbors Routers ေတြကေန Reply Message (Best Route လမ္းေၾကာင္း) ျပန္ပို႕ပါတယ္။ Reply Message ကိုရရင္ Neighbors Router ေတြဆီကို Acknowledge ျပန္ပို႕ပါတယ္။ အဲ့ သလိုနဲ႕ အေကာင္းဆံုးလမ္းေၾကာင္း Best Route ကို ရရွိပါတယ္။

c. Routing Table
Destination Network တစ္ခု စီအတြက္ အေကာင္းဆံုးလမ္းေၾကာင္းမ်ား(best route) မ်ားစုစည္းထားပါတယ္။


EIGRP Protocol ဟာ Metric မ်ားကိုၾကည့္၍ best route အေကာင္းဆံုးလမ္းေၾကာင္းကိုေရြးခ်ယ္ပါတယ္။
Metric အနည္းဆံုးသည္ အေကာင္းဆံုးလမ္းေၾကာင္းအျဖစ္ေရြးခ်ယ္ပါတယ္။

Metric = (10000000 / အနည္းဆံုး Bandwidth Kbps + စုစုေပါင္း Delay ten micro sec ) x 256 ျဖစ္ပါတယ္။

သို႕ျဖစ္ပါသျဖင့္ . . . Bandwidth မ်ားေလေလ best route ျဖစ္ႏိုင္ေျခမ်ားေလျဖစ္ပါတယ္။

အနည္းဆံုး bandwidth ကိုယူတြက္သျဖင့္ မသြားေစခ်င္တဲ့လမ္းေၾကာင္းတြင္ Bandwidth ေလ်ာ့ေပးထားပါကထိုလမ္းေၾကာင္းကို ပယ္၍ Bandwidth ပိုမ်ားေသာလမ္းမွ သြားပါလိမ့္မယ္။

R1(config-if)#int fa 0/1
R1(config-if)#bandwidth 200000

ထိုနည္းတူ မိမိ မသြားလိုေသာ လမ္းမွ delay ကိုတိုးေပးလို႕လည္းရပါတယ္။
R1(config-if)#int fa 0/0
R1(config-if)#delay 1000000

Router ၏ သက္ဆိုင္ရာ interface အတြင္းသို႕၀င္ေရာက္၍ Bandwidth ႏွင့္ Delay ကို ၾကည့္ႏိုင္သည္။
R1>en
R1#
R1#
R1#
R1#
R1#show inter
R1#show interfaces fa
R1#show interfaces fastEthernet 0/0
FastEthernet0/0 is up, line protocol is up (connected)
Hardware is Lance, address is 0010.11b0.1c01 (bia 0010.11b0.1c01)
Internet address is 10.10.12.1/30
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255

Feasible Distance ဆိုသည္မွာ Source Router မွာ Destination Network အတြက္ Router Interface ထြက္ေပါက္မ်ားမွ Metric မ်ားကို ထြက္ခ်က္ထားေသာတန္ဘိုးျဖစ္သည္။

Reported Distance (RD) or Advertised Distance (AD) ဆိုသည္မွာ Destination Network ႏွင့္ ခ်ိတ္ဆက္ေနေသာ Router မွ Destination Network အတြက္ Metric ကို ထြက္ခ်က္ၿပီး Source Router အတြက္ေပးပို႕ေပး ထားေသာတန္ဘိုးျဖစ္သည္။

Feasible Distance ႏွင့္ Reported Distance ကိုၾကည့္ရန္ . . .

R1#sh ip eigrp topology
IP-EIGRP Topology Table for AS 100
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - Reply status
P 10.10.1.0/24, 1 successors, FD is 28160 >>>>>>>> Feasible Distance
via Connected, FastEthernet1/0
P 10.10.12.0/30, 1 successors, FD is 15360
via Connected, FastEthernet0/0
P 10.10.13.0/30, 1 successors, FD is 53760
via Connected, FastEthernet0/1
P 10.10.2.0/24, 1 successors, FD is 17920
via 10.10.12.2 (17920/15360), FastEthernet0/0 15360 is >>>>>>>> Reported Distance (RD) or Advertised Distance (AD)
P 10.10.23.0/30, 1 successors, FD is 30720
via 10.10.12.2 (30720/28160), FastEthernet0/0
P 10.10.3.0/24, 1 successors, FD is 33280
via 10.10.12.2 (33280/30720), FastEthernet0/0


cheer !!!
Pyi Phyo

RIP Routing Protoco

RIP Routing Protocol Cisco Router ေတြမွာ ေရွး ေရွး က သံုး ခဲ့တဲ့ RIP Protocol (Distance Vector) နဲ႕ ပတ္သက္ တဲ့ config post ေလး တင္ခ်င္ပါတယ္ . . . RIP Protocol ဟာ hopcount ေတြ ကို ၾကည့္ၿပီး အလုပ္လုပ္ပါတယ္ . . . ဆိုလိုခ်င္တာ က routing path ေရြးခ်ယ္တဲ့ ေနရာမွာ သူက bandwidth ေတြ delay ေတြကို မၾကည့္ ပါဘူး။ သူ ၾကည့္တာ router ဘယ္ႏွစ္လံုး ျခားလည္း ဆိုတဲ့ hopcount ေတြကိုဘဲ ၾကည့္ပါတယ္။ ေျပာရရင္ေတာ့ အသိဥာဏ္နည္းတယ္ routing protocol တစ္ခု ပါ။ ဘာျဖစ္လို႕လည္း ဆိုေတာ့ bandwidth ေကာင္းတဲ့ လမ္းေၾကာင္းကို မသိလို႕ ပါ သံုး ရေကာင္းမွန္း မသိပါဘူး။ အဲ့ဒီ အခ်က္ ဟာ Distance Vector ေတြရဲ႕ အားနည္းတဲ့ အခ်က္ပါ။ Bandwidth ေကာင္းတဲ့ လမ္းေၾကာင္းက သြားလွ်င္ ခရီး ပိုတြင္မည္ဆိုတာကို မသိတာ ဟာ Distance Vector Protocol မ်ား ရဲ႕ အားနည္းခ်က္ပါ။ Distance Vector Protocol ျဖစ္တဲ့ RIP အေၾကာင္းကို အေသးစိပ္ ေနာက္တြင္ဆက္လက္ ေဆြးေႏြးေပပါမည္ . . . ယခု post လုပ္လိုသည္မွာ RIP Configure လုပ္ထားေသာ အေၾကာင္းအရာျဖစ္ပါသည္။







PC1
IP Address......................: 192.168.1.6
Subnet Mask.....................: 255.255.255.248
Default Gateway.................: 192.168.1.1

PC2
IP Address......................: 192.168.1.14
Subnet Mask.....................: 255.255.255.248
Default Gateway.................: 192.168.1.9

Router A
Router0>en
Router0#conf t
Router0(config)#hostname RouterA
RouterA(config)#enable secret cisco
RouterA(config)#interface FastEthernet0/0
RouterA(config-if)# ip address 192.168.1.17 255.255.255.252
RouterA(config-if)# no sh
RouterA(config-if)# exit
RouterA(config)#interface FastEthernet0/1
RouterA(config-if)# ip address 192.168.1.1 255.255.255.248
RouterA(config-if)# no sh
RouterA(config-if)# exit
RouterA(config)#router rip
RouterA(config-router)# version 2
RouterA(config-router)# network 192.168.1.0
RouterA(config-router)# network 192.168.1.16
RouterA(config-router)# end
RouterA# wr

Router B
Router1>en
Router1#conf t
Router1(config)#hostname RouterB
RouterB(config)#enable secret cisco
RouterB(config)#interface FastEthernet0/0
RouterB(config-if)# ip address 192.168.1.18 255.255.255.252
RouterB(config-if)# no sh
RouterB(config-if)# exit
RouterB(config)#interface FastEthernet0/1
RouterB(config-if)# ip address 192.168.1.21 255.255.255.252
RouterB(config-if)# no sh
RouterB(config-if)# exit
RouterB(config)#router rip
RouterB(config-router)# version 2
RouterB(config-router)# network 192.168.1.16
RouterB(config-router)# network 192.168.1.20
RouterB(config-router)# end
RouterB# wr

Router C
Router2>en
Router2#conf t
Router2(config)#hostname RouterC
RouterC(config)#enable secret cisco
RouterC(config)#interface FastEthernet0/0
RouterC(config-if)# ip address 192.168.1.22 255.255.255.252
RouterC(config-if)# no sh
RouterC(config-if)# exit
RouterC(config)#interface FastEthernet0/1
RouterC(config-if)# ip address 192.168.1.9 255.255.255.248
RouterC(config-if)# no sh
RouterC(config-if)# exit
RouterC(config)#router rip
RouterC(config-router)# version 2
RouterC(config-router)# network 192.168.1.8
RouterC(config-router)# network 192.168.1.20
RouterC(config-router)# end
RouterC# wr

Cheer!
Pyi Phyo cheers cheers cheers cheers cheers cheers cheers