cac loai thuoc tinh cua bgp

Upload: xinpha91

Post on 27-Feb-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    1/14

    Cc thuc tnh (attribute) ca BGP

    AS4 ---AS1---AS2---AS3---( C Company )|........................................||........................................|B Company----------- A Company

    1. AS_Path attribute : y !" thu#$ t%nh &uan tr'n nht tron *i+$ ,$ /nh 0n i ti0u man 2 $h$ n5n:6#t !" AS Path $"n n7n $"n 08$ router &uan tm h9n. (*% ; t< AS3 =n AS4 $> 2$on 0n ?h$ nhau:AS3 - B - AS4 ho@$ AS3 - AS2 - AS1 AS4 th router D 0u tiEn $on 0n n7n h9n !"&ua $ty B). Fai !" n5nn Ki thn i+p Tpate $ho m#t neihbor ?h$ tron $dnm#t AS th n> !Li ti=p t;$dn router no"i AS !"m Xe,t hop (tt nhiEn !" $h[ n *i n>). jo > ta phOi $u hnh$ho n> bi=t 08$ !" $h%nhrouter $dn AS *i n> !" Xe,t Fop $h ?hn phOi !" router ?h$ ASUUU

    4. ko$a!-Preleren$e attribute : y !" thu#$ t%nh ?hn b7t bu#$ (t$ !" ?hn $n phOi,ut hi+n tron thn i+pTpate) $h[ man nhQa $;$ b# tron phLm *i AS m" ?hn bao i Ki ra ?hi AS >.X> 08$ truyIn =n $$ !o$a!BNP neihbor. chu#$ t%nh ko$a!-Preleren$e $ho php $hn ta $h'n $on 0n monmun nht ra ?him#t AS.

    q. eiht attribute : y $sn !" thu#$ t%nh ?hn b7t bu#$ $$ nh" $un $p ?hn $nphOi h tr8 $ho n>. chf$

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    2/14

    t= thu#$ t%nh $h[ 08$ $un $p $ho m#t b# /nh tuy=n 9n *" ?hn Ki tron bt ?thn i+p Tpate n"o. chu#$t%nh eiht 08$ dn R iIu ?hiRn h0n truyIn $$ !o$a! pa$?et =n router ?hi router> $> hai route?h$ nhau ra ?hi AS(mu!tihome).

    . 6Tkc]_v]c_j]SC attribute : (6j attribute) y !" thu#$ t%nh 08$ AS dn Rtham $hi=u $ho *i+$ nEn$h'n router n"o R i =n $dn m#t %$h tron m#t AS .

    w. Communtity attribute : y !" m#t thu#$ t%nh ?hn b7t bu#$. chu#$ t%nh n"y 08$dn R $un $p $h%nh$h $ho m#t nh>m $$ router i &ua $$ AS . jo > $$ router n"y $> $dn m#t t%nh $ht*" $> $hun $h%nh$h. X=u m#t router nhJn 08$ m#t thn i+p Tpate *i thu#$ t%nh Community 08$thi=t !Jpn> D ,x ! thn

    i+p n"y m#t $$h h8p !%. X=u n> ?hn hiRu thn i+p n"y th D xi thu#$ t%nh > $honeihbor router ,x !. (cuynhiEn n=u n> hiRu th D ?hn bao i xi thu#$ t%nh > $ho neihbor router tr< ?hi08$ $h[ /nh !"m thEm iIu >).

    Example:

    Cn ?=t ni h+ thn mLn &ua 2 ]SP ?h$ nhau.F+ thn mLn $Ma mnh $> AS qq1: router1 ni *i ]SP1 (AS qq1) router2 ni *i]SP2 (AS qq2).

    Configure

    ^outer1z$onliure termina!nter $onliuration $omman one per !ine. n {ith CXck}.^outer1($onli)zinterla$e Seria!^outer1($onli-il)ze$ription $onne$tion to ]SP z1 ASX qq1^outer1($onli-il)zip are 1~2.1.1. 2qq.2qq.2qq.2q2^outer1($onli-il)ze,it^outer1($onli)zinterla$e thernet

    ^outer1($onli-il)ze$ription $onne$tion to interna! net{or? ASX qq1^outer1($onli-il)zip are 1w2.1.q.2 2qq.2qq.2qq.^outer1($onli-il)ze,it^outer1($onli)zip a-path a$$e-!it 1q permit ^outer1($onli)zrouter bp qq1^outer1($onli-router)znet{or? 1w2.1.q. ma? 2qq.2qq.2qq.

    ^outer1($onli-router)zneihbor 1w2.1.q.3 remote-a qq1

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    3/14

    ^outer1($onli-router)zneihbor 1w2.1.q.3 ne,t-hop-e!l^outer1($onli-router)zneihbor 1~2.1.1.q remote-a qq1^outer1($onli-router)zneihbor 1~2.1.1.q li!ter-!it 1q out^outer1($onli-router)zno yn$hroniation^outer1($onli-router)zen

    ^outer1z^outer2z$onliure termina!nter $onliuration $omman one per !ine. n {ith CXck}.^outer2($onli)zinterla$e Seria!1^outer2($onli-il)ze$ription $onne$tion to ]SP z2 ASX qq2^outer2($onli-il)zip are 1~2.1.2. 2qq.2qq.2qq.2q2^outer2($onli-il)ze,it^outer2($onli)zinterla$e thernet^outer2($onli-il)ze$ription $onne$tion to interna! net{or? ASX qq1^outer2($onli-il)zip are 1w2.1.q.3 2qq.2qq.2qq.

    ^outer2($onli-il)ze,it^outer2($onli)zip a-path a$$e-!it 1q permit ^outer2($onli)zrouter bp qq1^outer2($onli-router)znet{or? 1w2.1.q. ma? 2qq.2qq.2qq.^outer2($onli-router)zneihbor 1~2.1.2.q remote-a qq2^outer2($onli-router)zneihbor 1~2.1.2.q li!ter-!it 1q out^outer2($onli-router)zneihbor 1w2.1.q.2 remote-a qq1^outer2($onli-router)zneihbor 1w2.1.q.2 ne,t-hop-e!l^outer2($onli-router)zno yn$hroniation^outer2($onli-router)zen^outer2z

    Note

    jo ^outer1 *" ^outer2 thu#$ $dn AS nEn $n phOi $u hnh iBNP^outer1($onli-router)zneihbor 1w2.1.q.3 remote-a qq1^outer2($onli-router)zneihbor 1w2.1.q.2 remote-a qq1

    Ch $n $u hnh ne,t-hop-e!l option $ho $$ iBNP peer trEn 2 router:^outer1($onli-router)zneihbor 1w2.1.q.3 ne,t-hop-e!l^outer2($onli-router)zneihbor 1w2.1.q.2 ne,t-hop-e!l

    6#t *n I $n !"m rg:1. cLi ao $n phOi $u hnh ne,t-hop-e!l U2. 6;$ %$h $Ma li!terin BNP ^oute Bae on AS Path3. Cu hnh no yn$hroniation R !"m

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    4/14

    6#t thu#$ t%nh &uan tr'n $Ma BNP

    R hiRu h9n *I BNP $hn ta D tm hiRu m#t thu#$ t%nh &uan tr'n $Ma BNP R ,$/nh $on 0n ti 0u nht

    1. chu#$ t%nh AS_PAcF: y !" thu#$ t%nh &uan tr'n tron *i+$ ,$ /nh 0n i ti0u man 2 $h$ n5n. 6#t !" AS Path $"n n7n $"n 08$ router 0u tiEn h9n. (*% ; t 2 $on 0n ?h$ nhau: AS3 - B - AS4 ho@$ AS3 - AS2 - AS1 AS4th router D 0u tiEn $on 0n n7n h9n !" &ua $ty B). Fai !" n5n n $$mLn n"y 08$ &uOn b ti $$ NP router !n iIn th thu#$ t%nh n"y 08$ i th"nhe * router mi h'$ 08$ $$ tuy=n 0n n"y nh NP. chu#$ t%nh oriin ?hn thayi &ua iao th$ BNP m" *n i nuyEn. chu#$ t%nh oriin !" e ?hi tuy=n 08$ h'$ t). jo > ta phOi $u hnh $ho n> bi=t 08$ !" $h%nh router $dn AS *i n> !" Xe,t Fop$h ?hn phOi !" router ?h$ AS.

    chu#$ t%nh Xe,thope!l tron BNP

    1q.1.. (AS 1)^outerA--------(1q.1.3.1)---]BNP--------^outerB---||(1w.1.2.1)|| (1w.1.2.2)^outerC|_ 1w.1.. (AS 3)

    chu#$ t%nh BNP ne,thop !" m#t /a $h[ ne,t hop ]P m" n> D 08$ dn R i =n m#t

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    5/14

    mLn %$h. i *i BNP ne,t hop !un !un !" /a $h[ ]P $Ma router !n iIn H 08$?hai bo tron $u !+nh neihbor. cheo *% ; trEn ^outerC D &uOn $o net{or?1w.1.. $ho ^outerA *i m#t ne,t hop !" 1w.1.2.2 *" n08$ !Li ^outerA D &uOn$o !Li 1q.1.. $ho ^outerC *i m#t ne,t hop !" 1w.1.2.1. i *i ]BNP $> m#tnuyEn t7$ !": Ythe ne,t hop a*ertie by BNP hou! be $arrie into ]BNPZ. Ch%nh *

    &uy !uJt n"y nEn ^outer A D &uOn $o !Li 1w.1.. $ho $$ ]BNP peer $Ma n> trontr0n h8p n"y !" ^outerB *i m#t ne,t hop !" 1w.1.2.2. th= !$ n"y ^outerB D$> ne,t hop R i =n net{or? 1w.1.. D !" 1w.1.2.2 $h FXN phOi !"1q.1.3.1k$ n"y th bLn phOi Om bOo r\n ^outerB $> thR rea$h 1w.1.2.2 thn &ua ]NP n=u?hn ^outerB D rop nhn pa$?et $> et. !" 1w.1.. * !$ n"y /a $h[ ne,t hopare trK nEn ina$$eib!e. =n y th bLn hHy hnh un n=u nh0 tron mi tr0nXB6A *" $> thEm m#t ^outerj (net{or? 1.2..) 08$ a *"o tron AS 3 m"^outerA ?hn $> PC ?=t ni trf$ ti=p =n ^outerj th !$ n"y ne,thop $Ma ^outerj&uHn $o $ho ^outerA m" ^outerA D ?hn rea$h 08$. k$ n"y routin D lai!. R?h7$ ph;$ tnh trLn n"y th Xvc-FVP-Sk 08$ x ;n.

    neihbor ip-are| peer-roup-name1 ne,t-hop-e!l

    Cu !+nh n"y D $ho php p @t BNP dn /a $h[ mnh ?hai bo th"nh ne,t hop thay *R BNP tf $h'n ne,t hop.

    ^outerCzrouter bp 3neihbor 1w.1.2.1 remote-a 1neihbor 1w.1.2.1 ne,t-hop-e!l

    ^outerC D &Man $o 1.2.. *i Xe,tFop 1w.1.2.2. Xe,t-hop-e!l $h[ $> !8itron mi tr0n nonmehe.

    ko$a!-Preleren$e attribute: y !" thu#$ t%nh ?hn b7t bu#$ (t$ !" ?hn $n phOi ,uthi+n tron thn i+p Tpate) $h[ man nhQa $;$ b# tron phLm *i AS m" ?hn baoi Ki ra ?hi AS >. X> 08$ truyIn =n $$ !o$a! BNP neihbor. chu#$ t%nh ko$a!-Preleren$e $ho php $hn ta $h'n $on 0n mon mun nht ra ?hi m#t AS.

    eiht attribute: y $sn !" thu#$ t%nh ?hn b7t bu#$ $$ nh" $un $p ?hn $nphOi h tr8 $ho n>. chf$ t= thu#$ t%nh $h[ 08$ $un $p $ho m#t b# /nh tuy=n 9n *"?hn Ki tron bt ? thn i+p Tpate n"o. chu#$ t%nh eiht 08$ dn R iIu?hiRn h0n truyIn $$ !o$a! pa$?et =n router ?hi router > $> hai route ?h$ nhau ra?hi AS(mu!tihome).

    6Tkc]_v]c_j]SC attribute: (6j) y !" thu#$ t%nh 08$ AS dn R tham $hi=u$ho *i+$ nEn $h'n router n"o R i =n $dn m#t %$h tron m#t AS. cron BNP $sn $>m#t Acc^]BTc 08$ 'i !" metri$ > !" 6j (6u!tie,it ji$rimination). cuy nhiEn6j n"y $> nhQa h9i ?h$ o *i metri$ tron $$ ]NP. BNP dn 6j (metri$) Rh0n n $ho $$ router !n iIn !fa $h'n 0n i tt nht. 6j(mu!tip!e-e,it-

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    6/14

    i$riminator) !" 1 attribute $Ma BNP n> ii thi+u *I nhn router !n iIn bEn no"i*I 1 mLn 08$ $h'n *"o 1 AS $> nhiIu e,it point $i n"o $> 6j thp h9n D 08$$h'n (o > $> !D n> in *i metri$) ?hn in nh0 ko$a! Preleren$e 6j 08$trao i ia $$ ASnh0n n> D ?hn ra ?hi AS > n=u n> H *"o(?hi 1 thn tin $JpnhJt /nh tuy=n *"o 1 AS *i i tr/ 6 ,$ /nh th n> D 08$ x ;n R thf$ hi+n

    &uy=t /nh tron n#i b# AS > .X=u 1 route ,ut pht t< $h%nh AS th 6j D 08$ t%nhtheo metri$ $Ma ]BNP. 6j !" m#t attribute y=u (tron th tf route-e!e$tion $Ma BNP)nEn R $ontro! 08$ n> $n phOi $are 08$ $$ thu#$ t%nh $> m$ 0u tiEn $ao h9n({eiht-!o$a!preleren$e-oriinate-ASpath-oriin $oe). F9n na oriinate AS ?hnthR iIu ?hiRn &u trnh @t 6j trEn $$ oriinatin AS (neihbor AS) ho@$ n08$ !LinEn hi=m ?hi 08$ dn tron thf$ t=. Xo"i ra *i nhiIu Cutomer *i $$ yEu $u$h%nh $h $h'n outoin tralli$ ?h$ nhau 6j ?hn hi+u &uO. X0i ta hay x ;n$ommunity attribute R iOi &uy=t *n I $h'n in$ommin tralli$ thay $ho a-pathprepenin ho@$ 6j.

    Communtity attribute: y !" m#t thu#$ t%nh ?hn b7t bu#$. chu#$ t%nh n"y 08$ dn

    R $un $p $h%nh $h $ho m#t nh>m $$ router i &ua $$ AS. jo > $$ router n"y $>$dn m#t t%nh $ht *" $> $hun $h%nh $h. X=u m#t router nhJn 08$ m#t thn i+pchn tin $Jp nhJt /nh tuy=n *i thu#$ t%nh Community 08$ thi=t !Jpn> D ,x ! thni+p n"y m#t $$h h8p !%. X=u n> ?hn hiRu thn i+p n"y th D xi thu#$ t%nh > $horouter !n iIn router ,x !. (cuy nhiEn n=u n> hiRu th D ?hn bao i xi thu#$t%nh > $ho !n iIn router tr< ?hi 08$ $h[ /nh !"m thEm iIu >).

    kuJt yn$hroniation

    BNP $> bOn /nh tuy=n *" bOn BNP riEn bi+t. kuJt Syn$hroniation 08$ pht biRunh0 au: 6#t route 08$ !earn t< m#t ]BNP !n iIn router (t$ !" route n"y H $>tron BNP tab!e) $h[ 08$ 0a *Oo bOn /nh tuy=n ho@$ &uOn b (a*ertie) ti BNPpeer ?hi n> H 08$ bi=t ti nh m#t ]NP. C9 $h= Wn b# $Ma ]BNP *i ]NP. hi m#trouter BNP nhJn m#t tuy=n ]BNP th n> phOi ,em tron bOn /nh tuy=n ]NP H $> tuy=n=n mLn > $h0a n=u $> th mi ,em tuy=n > $> i tr/ *" $> thR x ;n ho@$ Ki $ho$$ BNP peer ?h$. iIu n"y !" $n thi=t R Om bOo $$ router '$ 0n ?hn !oLi b$$ >i tin o ?hn $> tuy=n. cron m#t mLn m" $> ]NP *" ]BNP $hLy para!!e! th *n?hn Onh h0Kn $O. C$ ]BNP $n phOi 08$ lu!!-mehe *" R m#t router $> thR bi=t08$ $$h =n 08$ ]BNP peer $Ma n> n> phOi fa *"o ]NP. cron bOn /nh tuy=n $Mam#t router D $> $O $$ route $Ma BNP *" ]NP o > R tt $O $$ router tron mLn Iu

    bi=t 0n i =n tt $O $$ net {or? ta phOi thf$ hi+n reitribute ho@$ &uOn $o net{or? > K m#t router tron mLn. cdy theo topo $Ma mLn m" ta $> nhn iOi php $;thR.

    Xh0 *Jy $hn ta $> thR t$h bL$h *n I: Conne$te net{or? ?o !iEn &uan ti !uJtSyn$hroniation bLn $> !+nh net{or? n (n ubnet) th $h7$ $h7n Conne$tenet{or? D 08$ &uOn b. cheo ?huy=n $o $Ma Ci$o bLn $> thR iab!e Syn$ tron 2tr0n h8p.ct $O $$ ^outer tron AS Iu $hLy BNP ho@$ AS $Ma bLn ?hn phOi !" 1

    http://vnpro.org/forum/editpost.php?do=editpost&p=27118
  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    7/14

    tranit AS t$ !" ?hn a*ertie route t< 1 AS an 1 AS ?h$. erion 12.2 th BNPSyn$ D turne-oll by elau!t. hi bLn $u hnh areate-are m" ?hn dn thEmm#t tdy $h'n n"o route 08$ inh ra D ?hn th thEm $$ path $Ma t M thntin /nh tuy=n R lor{ar pa$?et. hi n"y $> thR t7t $h$ n5n Wn b# $Ma ]BNP. Xh0nlu!!-meh n =n *i+$ ?h> &uOn ! tn b5n thn R $Jp nhJt /nh tuy=n tnCPTmem. C> 2 $$h R iOi &uy=t *n I n"y. Sx ;n ^oute ^el!e$tor: thay i &ui!uJt p!it-horion $Ma ]BNP. C$ ^^ $> thR Ki $$ tuy=n ]BNP =n $$ BNP peer ?h$.R $hn !@p *Gn $$ ^^ thEm *"o $$ thu#$ t%nh: $!uter-i *" oriinator. Sx ;nConleeration: thay i $$h ,x ! AS-PAcF $Ma ]BNP: Chia m#t AS th"nh nhiIumember-AS. BNP ia $$ BNP peer thu#$ $$ member-AS ?h$ nhau D !" BNP (t$!" D thEm member-AS *"o AS-PAcF R $hn !oop) nh0n $$ thu#$ t%nh ?h$ nh0

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    8/14

    ko$a! Preleren$e 6j Xe,t-hop D ?hn thay i. u iRm $Ma iO] php n"y !" $$member-AS $> thR 08$ &uOn ! #$ !Jp t5n ?hO n5n $h%nh $h /nh tuy=n routin.C$ member-AS $> thR x ;n $$ ]NP ?h$ nhau. Xh0n &uOn ! m#t Conleerationth $> thR D rt ph$ tLp o > n> $h[ th%$h h8p $ho $$ ]SP $f$ !n ($$ ]SP ?=t ni trf$ti=p *"o $$ iRm trun $huyRn &u$ t= nh0 XAP...) ho@$ $$ $n ty a &u$ ia $n $>

    f !inh #n *" #$ !Jp ia $$ th"nh phn $Ma h+ thn. R !fa $h'n tuy=n $ho $$]n$omin tralli$ $> thR x ;n $$ $$h au. Sx ;n thu#$ t%nh 6j: $$h n"y %t x;n o 6j !" m#t thu#$ t%nh y=u *" non-traniti*e. Sx ;n $ommunity: ph09n phpn"y Gi hi phOi 08$ uptream ]SP h tr8 $h[ Onh h0Kn =n ]SP trf$ ti=p tron nhiIutr0n h8p ?hn !"m *i+$ tt. Sx ;n AS-Prepen: ph09n php n"y 08$ x ;nthn ;n h9n o $> thR !"m *i+$ tt tron tt $O $$ m hnh. Xh0n m#t iIu $n phOinh &uy=t /nh tuy=n $ho ]n$omin tralli$ rt ?h> thf$ hi+n $h%nh ,$ o $$ AS ?h$ $>thR thay i $$ attribute.

    R et metri$ bLn $> thR dn !+nh elau!t-metri$

    ^outer($onli-router)zelau!t-metri$ numberho@$ $> thR dn route-map:

    router bp 1neihbor 1.1.1.1 route-map lrey outUip a-path a$$e-!it 1 permit ~_ip a-path a$$e-!it 2 permit .Uroute-map lrey permit 1mat$h a-path 1et metri$ 12wUroute-map lrey permit 2mat$h a-path 2

    tron *% ; trEn $$ route K a ~ D 08$ et metri$ !" 12w.

    hi n"o th dn BNP

    hi mLn $Ma m#t $n ty ?=t n] =n nhiIu ]SP ho@$ $$ AS ?h$ *" an dn $$ ?=tn] n"y. XhiIu $n ty dn $$ ?=t n] ?h$ nhau nh\m m;$ %$h f phGn. Chi ph% $>thR iOm thiRu n=u tt $O $$ ?=t n] Iu 08$ dn. cron tr0n h8p n"y PB^ $> thR$n thi=t R triRn ?hai trEn t

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    9/14

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    10/14

    R thi=t ?= *" triRn ?hai BNP $h%nh ,$ $> m#t *"i @$ iRm $Ma BNP $n phOi 08$hiRu. iBNP ?hn nht thi=t phO] ?=t ni trf$ ti=p *I m@t *Jt !. hn in nh0 ^]Pho@$ VSP ho@$ ]P *. $$ router $hLy iBNP ?hn $n phOi ?=t ni trf$ ti=p trEn $dnm#t hL tn mLn. 6#t iao th$ ?h$ $hn hLn nh0 VSP D /nh tuy=n $$ >iBNP ia $$ iBNP router.

    ^oute ^el!e$tor

    6#t ^oute ^el!e$tor (^^) !" m#t router 08$ $u hnh R $huyRn nhn routin upate=n $$ router !n iIn ho@$ $$ router $hLy BNP bEn tron m#t AS. C$ router iBNP$n phOi 08$ $h[ ra nh0 !" $!ient tron ?hi $u hnh. hi m#t $!ient xi m#t upate =nroute-rel!e$tor n> D $huyRn upate > =n $$ router $!ient ?h$.

    @$ bi+t route-rel!e$tor /nh nhQa !uJt p!it horion. k;t n"y n>i r\n m#t iBNP routerD ?hn truyIn m#t route 08$ h'$ t< m#t router !n iIn tron $dn m#t AS. ^oute^el!e$tor *" $!ient D Gi hi m#t &uan h+ peer y M bKi * ^oute ^el!e$tor D xi $$

    $Jp nhJt t< $$ $!ient ?h$ nh0n *i+$ thi=t !Jp peer ia $$ $!ient !" ?hn $n thi=t.6#t route-rel!e$tor D ?=t ni =n $$ peer m" n> ?hn y route =n. c< &uan iRm$Ma route-rel!e$tor $$ neihbor n"y 08$ 'i !" non-$!ient. C$ router non$!ient phOi08$ ?=t ni lu!!y-mehe *i $$ route-rel!e$tor *" *i $$ non-$!ient ?h$. hi m#trouter H $u hnh nh0 m#t route-rel!e$tor n> D y nhn 0n i 08$ h'$ t< $$iBNP ?h$ $h[ =n $$ route-rel!e$tor $!ient *" ti $$ iBNPeBNP neihbor. iIu n"y$> nhQa !" m#t thi=t ?= hub-an-po?e $> thR 08$ triRn ?hai tron m#t AS ia $$iBNP peer nh0 *Jy iOm thiRu eion ia $$ router. CO route-rel!e$tor *" $$$!ient $Ma n> hnh th"nh nEn m#t 9n */ R $hia D thn tin. 9n */ n"y 'i !" $!uter.

    6#t Autonomou Sytem $> thR 08$ $hia ra th"nh $$ $!uter tron $$ $$ $!uter D $>$$ route-rel!e$tor 08$ $h[ /nh *" $u hnh. PhOi $> %t nht m#t route-rel!e$tor tronmi $!uter. X=u m#t route-rel!e$tor ?=t ni =n $$ route rel!e$tor ?h$ route-rel!e$torphOi 08$ lu!!y-mehe. iIu n"y nh\m Om bOo $$ bOn iBNP routin !" y M. him#t route-rel!etor $huyRn i m#t upate thu#$ t%nh Vriinator_]j D 08$ thi=t !Jp. y!" BNP router]j $Ma router H tLo ra 0n i. X=u router n"y nhJn !Li bOn upate >router D thy ]j $Ma $h%nh n> *" D b &ua pa$?et. iIu n"y nh\m n5n n nhiIu route-rel!e$tor tron $!uter $$ router D phn bi+t *i nhaub\n $!uter]j. chn C!uter]j n"y ph;$ *; $dn m#t m;$ %$h nh0 thu#$ t%nhVriinator_]j R n5n nn *ai trG route-rel!e$tor D tn nhiIu t"i nuyEnh9n. X=u $u hnh route-rel!e$tor ?hn $h%nh ,$ n> $> thR y ra routin-!oop. C>nhiIu m$ route-rel!e$tor $> thR 08$ $u hnh b\n $$h tLo ra $$ thi=t ?= theo th bJ$.C$ router ?hn !" th"nh phn $Ma route-rel!e$tor D ?hn b/ Onh h0Kn tron nhnthay i *I thi=t ?= *" nhn thay i *I &u trnh truyIn $$ $Jp nhJt. chay *"o > $$router n"y D ?hn nhJn bi=t 08$ bt $ thay i n"o * n> *n nhJn 08$ $$ upatem" n> $n. BOn thn $$ routin upate $sn ?hn b/ thay i bKi * ?hn $> f thayi n"o tron i tr/ $$ thu#$ t%nh 08$ man tron $$ routin upate.

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    11/14

    Ch%nh * $$ @$ iRm trEn &u trnh $huyRn i thi=t ?= m#t h+ thn mLn n"o > anLn dn route-rel!e$tor th rt "n. 6#t thi=t ?= &uan tr'n !" bOn thn $$ route-rel!e$tor tron m#t AS $sn phOi lu!!y-mehe. Xo"i ra m#t route-rel!e$tor n"y $> thR!" $!ient $ho m#t route-rel!e$tor ?h$. chi=t ?= nh0 *Jy ?h ph$ tLp *" yEu $u ,em ,t$n thJn bKi * ?hi $$ route-rel!e$tor 08$ $u hnh *" p!it horion b/ iab!e ?hn

    $Gn m#t $9 $h= n"o R bOo *+ routin !oop.C$ !oLi bOn tin $Ma BNP

    - C$ !oLi bOn tin ?h$ nhau thf$ hiEn m#t $h$ n5n tron hoLt #n $Ma BNP. 6i bOntin man m#t thn tin tiEu I.chn tin tron tiEu I $h[ Wm 3 tr0n: 1 byte 6a?er2 byte kenth *" 1 byte cype.

    i. cr0n 6a?er 08$ x ;n ho@$ R ,$ thf$(authenti$ation) ho@$ R ?iRm tra Wn b#ia $$ peer.

    ii. cr0n kenth : $h[ ra $hiIu "i tn $#n $Ma bOn tin Wm $O phn tiEu I. bOn tinnh nht $Ma BNP !" 1~ byte 1 2 1 *" $hiIu "i ti a !" 4~ byte.iii. cr0n cype $> thR $> 4 i tr/ t< 1 - 4. 6i %a tr/ n"y t09n n -*i m#t tron 4!oLi bOn tin

    Cc lo#i b$n tin:

    i.Vpen meae :

    BOn tin n"y 08$ x ;n R thi=t !Jp ?=t ni *i $$ peer *" Wm $> $O tr0n $ho*erion $h[ AS ho! time *" ]j $Ma router.

    ii.eepa!i*e meae:

    BOn tin n"y 08$ truyIn i m#t $$h $> $hu ? ia $$ peer R uy tr ?=t ni *" ?iRmtra tuy=n. X=u ?hoOn thi ian truyIn ?eepa!i*e 08$ $u hnh *i i tr/ !" th ?hn $> thn tin ?eepa!i*e 08$ truyIn i. Fo!time 3,?eepai*e. bOn tin ?eep a!i*eWm 1~ byte tiEu I *" ?hn $> thn tin !i+u 08$ truyIn i tron bOn tin n"y.

    iii.Xotili$ation meae :

    BOn tin n"y 08$ x ;n R $h[ th/ $ho router nhJn bi=t 08$ !" $> !i. BOn tin n"y Wmm#t tr0n $ho mH !i 08$ x ;n $ho *i+$ ?h@$ ph;$ *" xa !i.

    i*. Tpate meae:

    chn tin $Jp nhJt n"y Wm tt $O $$ thn tin x un R ,y fn m#t 9 G kP $Mato"n mLn. C> $$ thn tin th"nh phn $9 bO tron Tpate meae > !": Xk^] thu#$t%n $Ma Path *" thu hWi route({ithra{ route)

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    12/14

    u trnh b7t tay ia $$ peer:

    - u trnh thOo thuJn ia $$ peer 08$ thf$ hi+n &ua nhiIu trLn thi: $> trLn thi$Ma BNP :i. ]!e:

    ]!e !" trLn thi u tiEn $Ma m#t ?=t ni BNP. BNP $h f ?i+n b7t u n> th0n !"?hKi tLo bKi nh" &uOn tr/ ho@$ !" $$ f ?i+n (e*ent) tron mLn. cLi f ?i+n ?hKi tLo tLo$$ thn tin $n thi=t *" reet !Li $$ timer : ho!time` ]!e $> thR 08$ $huyRn *I t !i.

    ii. Conne$t: tron trLn thi $onne$t : BNP $h $ho ?=t ni cCP 08$ ho"n th"nh. X=u?=t ni cCP th"nh $n th trLn thi n"y 08$ $huyRn ti=p an trLn thi VpenSent.X=u ?=t ni cCP !i th trLn thi n"y $huyRn an trLn thi A$it*e*" router $ 7n Rthi=t !Jp ?=t ni !Li. X=u m#t ?=t ni m" retry timer h=t hLn(e,pire) th trLn thi 08$uy tr K tran? thi Conne$t th timer 08$ reet *" ?=t ni cCP 08$ ?hKi tLo !Li.cron tr0n h8p f ?i+n 08$ ?hKi tLo bKi nh" &uOn tr/ th trLn thi $huyRn * i!e.

    iii. A$ti*e: tron trLn thi A$ti*e th BNP $ 7n yEu $u m#t peer ?hKi tLo ?=t nicCP. X=u th"nh $n n> $huyRn an trLn thi VpenSent. X=u thi ian ?=t n>i retrytimer h=t han th BNP $huyRn *I trLn thi Conne$t !Li. cron ?hi a$ti*e th BNP *n!7n nhe m#t ?=t ni ?h$ 08$ ?hKi tLo t< peer. crLn thi $> thR $huyRn *I ]!e trontr0n h8p $> $$ f ?i+n ?h$ nh0 ?=t th$ f ?i+n bKi h+ thn hay nh" &uOn tr/.

    i*. VpenSent : tron trLn thi n"y BNP $h m#t bOn tin open t< peer $Ma n>. BOn tinopen 08$ ?iRm tra t%nh n 7n. cron tr0n hp $> ,Oy ra !i nh0: *erion ?hnth%$h h8p hay AS ?hn $hp nhJn th h+ thn truyIn bOn tin $h[ bo *" reet ?eepa!i*etimer. cLi trLn thi n"y th ho! time 08$ thoO thuJn *" ?hoOn thi ian n"o nh h9n08$ $h'n. X=u thi ian ho! time 08$ thoO thuJn !" th ho! timer *" ?eepa!i*e timer ?hn 08$ ?hKi tao.

    *. VpenConlirm: cron trLn thi n"y BNP $h bOn tin ?eepa!i*e hay bOn tin $h[ th/ $Onhbo. X=u m#t bOn tin ?eepa!i*e 08$ nhJn th trLn thi n"y $huyRn an trLn thitab!ihe *" !n iIn thoO thuJn ho"n th"nh. X=u h+ thn nhJn m#t bOn tin $JpnhJt hay ?eepa!i*e th n> reet ho!time *" trLn thi $huyRn * i!e. F+ thn truyInm#t $$h $> $hu ? $$ bOn tin ?eepa!i*e $ho peer theo t$ # 08$ $"i @t theo ?eepa!i*etimer. cron tr0n h8p bt ? mm't f n0n ?=t ni cCP hay $hm t f ?i+n 08$tLo ra bKi nh" &uOn tr/ th trLn thi $huyRn *E trLn thi i!e.

    *i. tab!ihe:y !" trLn thi au $dn $Ma f thoO thuJn $Ma $$ peer. BNP b7t u trao i $$ >i$Jp nhJt *i $$ peer $Ma n>. X=u ?hn phOi !" th ho! time 09$ reet !Li ?hi n>nhJn 08$ thn tin $Jp nhJt hay bOn tin ?eepa!i*e. 6i >i $Jp nhJt Iu 08$ ?iRm tra!i nh0 tr0n h8p !i hay trdn !@p $$ thu#$ t%nh. X=u $> !i 08$ pht hi+n th m#tbOn tin $Onh bo (notili$ation) 08$ Ki i $ho Peer. Bt ? bOn tin $Onh bo n"o 08$nhJn tron ?hi K trLn thi tab!ihe I !"m $ho BNP ,o Peer an nhJn *" trK *I

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    13/14

    trLn thi ]!e. X=u Fo! time h=t hLn hay m#t bOn tin $h[ th/ $7t ?=t ni nhJn 08$ t thR =n 08$ !a Xet{or? *" Subnet ma? thBNP truyIn Xk^] Wm Preli, *" $hiIu "i $Ma preli,. Preli, miEu tO $ho %$h $> thR =n08$ *" $hiIu "i $Ma preli, !" miEu tO $ho !08n b%t $Ma ubnet ma?. ,:Xk^]!t1~ 1~2.1.1. miEu tO preli, 1~2.1.1. *" $hiIu "i !" 1~ bit ma?.

    - ithra{ ^oute : BOn tin n"y $un $p m#t anh $ $$ tuy=n $Jp nhJt ?hn $Gn =n08$ nxa *" $n phOi thu hWi hay ,o ra ?hi bOn /nh tuy=n $Ma BNP. 6#t bOn tin $JpnhJt ?hn bao Wm thn tin Xk^] hay $$ thn tin thu#$ t%nh th n> $h[ 08$ dn$ho ithra{

    Cu Fnh BNP1. C9 bOn *I $u hnh BNP- R ?hKi tLo &u trnh BNP ta x ;n !+nh :^outer($onli)zrouter bp AS-number

    - k+nh Xet{or? 08$ x ;n tron ]NP nhu ^]P n> ,$ /nh $n iao ti=p n"o truyIn*" nhJn $$ $Jp nhJt. cuy nhiEn *i BcP th !+nh net{or? ?hn Onh h0Kn =n $niao ti=p n"o m" n> &uOn b. th= net{or? D ?hn thi=t !Jp &uan h+ ia $$ BNProuter.

    ^outer($onli)znet{or? net{or?-number ma? net{or?-ma?

    k+nh net{or? $ho bi=t route n"o H h'$ 08$ n#i b# R &uOn b i. ^oute n"y $> thR !"route tQnh ?=t ni trf$ ti=p ho@$ route h'$ 08$ t< ]NP nh0(^]P VSP )- R router BNP thi=t !Jp &uan h+ !n iIn *i m#t router ?h$ th ta x ;n !+nh:^outer($onli-router)zneihbor ip-are remote-a AS-number

    k+nh n"y $ho router bi=t ]j $Ma peer R thi=t !Jp !n iIn.

    2.BNP *" ]BNP

    hi $u hnh BNP ch BNP h tr8 hai !oLi phiEn thn tin ia $$ peer-PhiEn thn tin ia $$ BNP: ,Oy ra ia $$ router ?h$ AS.-PhiEn thn tin ia $$ ]BNP: ,Oy ra ia $$ rouer $> $dn AS

    X=u %a tr/ $Ma AS tron $u hnh *i !+nh router bp in *i %a tr/ $Ma AS tron !+nhneihbor th &uan h+ ia $$ BNP !" ]BNP $Gn n=u ?h$ th &uan h+ !" BNP

  • 7/25/2019 Cac Loai Thuoc Tinh Cua BGP

    14/14

    % &ull' ehe Net*or+

    kuJt BNP p!it horion n>i r\n m@$ d $$ router ?hn $n ?=t ni trf$ ti=p *I m@t *Jt! n> *n phOi $n lu!!y-meh K m$ !oi$. iIu ?i+n n"y nh\m Om bOo $$ mLn phOithy nhau. R trnh routin-!oop iao th$ BNP phOi tun theo !uJt p!it horion r\n?hn $> upate n"o h'$ t< m#t peer bEn tron $> thR xi =n m#t peer ?h$. iIu n"y$> nhQa r\n m#t net{or? ?hi 08$ nhJn D ?hn phn phi =n $$ router iBNP ?h$.C$ mLn n"y $h[ 08$ truyIn =n $$ router BNP tron $$ AS ?h$ $Gn 'i !" eBNPpeer.

    Net*or+ ,eource ,e-uire in &ull' ehe Net*or+

    BNP uy tr $$ thn tin $Jp nhJt b\n $$h xi $$ upate trEn $$ ?=t n] cCP. C$?=t ni cCP n"y !" m#t $$h ,ut 7$ R Om bOo t%nh $h%nh ,$ $Ma thn tin nh0nnh08$ iRm $Ma n> !" tn nhiIu t"i nuyEn h+ thn. S ?=t ni $"n !n t"i nuyEn yEu$u $"n nhiIu. 6#t $n th$ 9n iOn nh0 au:

    SD $n n (n 1) 2 ?=t ni cCP trEn m#t mLn Wm n router BNP.

    Xh0 *Jy m#t mLn Wm 1 router D yEu $u 1 (1 1) 2 1 ~ 2 4q phiEn !"m*i+$. Cn th$ n"y $hp nhJn 08$ tron mi tr0n $> m#t *"i ?=t ni tuy nhiEn n=uh+ thn mLn !" m#t nh" ]SP th thi=t ?= trEn ?hn phd h8p.

    %minitrati.e /.erhea in &ull' ehe Net*or+

    Csn $> nhn ph% tn &uOn ! tron *i+$ uy tr $$ mLn ?=t ni lu!!y-meh. % ;mi !n $> m#t router BNP mi thEm *"o ?=t ni phO] thi=t !Jp $sn D t5n !En nhiIu!n t09n n. ] *i cCP ?hn $h[ phOi uy tr $$ ?=t ni rt tn t"i nuyEn m" $Gn!" $$ $Jp nhJt upate phOi i trEn $$ ?=t ni n"y. X=u tt $O $$ router ?=t ni *i tt$O $$ router ?h$ m#t !08n !n thn tin D 08$ xi i trdn !7p.