Bridge, Switch & Spanning Tree Protocol
Bridge
Bridge
•
!"#$%$&' !(!)*!+&,,'-!.+.!/'0!+12&)3'4,02 '*!
,,,5$5,671!+&)0) ,81
•
9+6.!+):;,41,(61<,"*)='
•
'):;,,02 4>..!/9+6.>?6@,A, BCDEBF)0!+,G4>..!4
!+3!H
Bridge
I)0
•
+):;,41,(6J) !K!L$:;!M)1,1A/4'L(, >M$:;,,N!,O
:4P)#1$
•
B!0' !M,,-!.+.!$(',14$*!! !"#$:!+Q4,02
•
+>M!'L,R"S!'T>7!1)K)M4%,,161!.+UD,81,,>!
Bridges: lọc khung, chuyển tiếp khung
•
U5,
!+3!+&,P*!UDV>..!'L):;,,02 ) UDV>..!',
•
B02
U! )0" !):;,,02 *!') UDV>..!W
Lọc khung
•
9+6.>XY5,Z):;,,!0):;,' !M!%!L[116=V\bảng lọc
•
G):;,'/"+6.Y5,Z4#!+],81:<?,UD>..!
•
9+6.4#!+]:<?4bảng lọc
•
B,@,!+bảng lọc
•
6.UDD66+.>>/9+6.^!.+_1,./.!1
Hoạt động của Bridge
•
9+6.+,.6+.`aCDB/a+!/!aCDBb
.!c$!.+!1"$.! Ed$.1+dE
$'c$!.+!1"$.+.,.4.
`!a+!!41$6b Ed.!+_6_+6.>212dE
e6f E* forward on all but the interface on which the frame arrived*/
Ed6.>212>UDg, _+1.g1>+.,.4.6dE
6+!._+1.
`!a+!>41$6b Ed.!+_6_+6.>212dE
_+g1+6!._+1.!.+_1,.6,1!.
U.,!+.h i
Ví dụ về quá trình “học” của Bridge
B?'!%F4F!+H$<$("j'?!%B
B?'/"+6.'L,!L243F/&)k'+1!S!,H,,,K
❍
9+6.%+jBl+!m
❍
"#"n[1l>..!M4%+!h
❍
):;,FG
U.,!+.h io
Ví dụ về quá trình “học” của Bridge
F!(!+H$<,B/?
❍
9+6.G'?!pF
❍
9+6.$(+jFl+!q
❍
9+6.)r" !Bl+!m/&chỉ )k'+1+!m
Bm
Switch
I. Khái niệm
g!,,OM:*!9+6.:,3,H2 A
•
3,KA`.++!6.>!b/
•
Hs?$21A`mt$$1,'.!>.+>.,6b<
•
?6@`D^B>bD$,12V>.,c,!.+1!.6,+,!>b/
•
Bu1A/
•
B!V!+>g!,>4%>!+.V16V_+g1+6,819+6./
•
v+1.!V_+ >g!,
•
B'H/
•
w!+;UD
Khái niệm (tiếp)
•
+L!1,3x^/>g!,(!)*l!R$&' !6Q$=/+1,*!>M$(>g!,,1,S(!)*
l!R(
II. Nguyên lý hoạt động của LAN Switches
UDg!,.>,(!)*
myU.1+
qyv$6
hyv+g1+6
yv$!.+
yD
1.Learning
•
zH>?D`6.Db!p>..!D!+36Q$=!%9`6.9bl>..!Byg!,>X$S6Q$=
!{S!!pDy>X)5,)#1,|CDB4$:!+$'!1"$.,>..!Dy:4G/>g!,"}
<,!0" !~6.Dl)}"S!'T$N,,2M!+3!%)y
2. Flooding
•
>g!,'L" !6.9l)}/>X?2435>..!>(!+pA?`>..!Dby
!+>g!,?*!)!%!S!,H,,>..!>)0~6.)•,!+:):;,€$e6y6.9G
):;,4?!+l$(6.D4%>7!p1Gy
3. Forwarding
•
9}<>g!,,R!&)#1,|CDB,816.94$'!1"$.,>..!By>g!,)r" !):;,)#1,|,816.D/
?!+7,2 !%)y9l46.Dl)R>..!',4%6.9/>g!,H' !Mq>..!>)0?2yz2
2 !.!p6.D!%6.9):;,,0!p>g!,yg!,"}<,O)r,):;,)#1,|6.9/&,!0,0
2 2!%!•9y
4. Filtering
•
6.B?!L2!%>g!,,6.Dyg!,4)#1,|CDB,6.B4!&4$'
!1"$.,>..!Dyg!,)r,):;,)#1,|,6.D4s,)#,Hq6.l,P>..!yF)/
'L,R' !M>..!D!%*!>..!',)06Q$=,!0!+3!pB!%D
5. Aging
•
L!:</,|,*!$:;"*%n6P)06!+$'!1"$.y0!M:14=,>?6@"*
%/>g!,.>>?6@*!,L=5$DyCw$R*!2):;,G!p*!6./r!<1>X
):;,,GG!yg!,,*!!<1>.+V,c+1"$.)0$("n,,.!+'L,(!)*!p6.
)y9*%):;,H)>X6P)0@,4@,,.!+.>',y
>Q19+6.4g!,
FULLY SWITCHED NETWORKS
Spanning Tree Protocol (STP)
Bridging Loops
Vấn đề nảy sinh với các vòng
Học sai
m
m
q
q
D/m
D/m
Vấn đề nảy sinh với các vòng
Lặp khung
m
m
q
q
B/WW
B/WW