ExtremeªºQoS¤À¬°Ingress»PEgress¨âÓ¤è¦V¡C
¥HIngress¤è¦V¨Ó»¡¡A¥Ø«e¶¶¤l¥uª¾¹D³z¹LACLªº¤è¦¡¨Ó°µ¬y¶q±±¨î¡F
¦ÓEgressªº³¡¤À¡A«h¦³Port rate-shaping¡BQoS Profile on Port»PACL¤TºØ¤è¦¡¨Ó¶i¦æ¡C
¥H¤U¬°Ingress/EgressªºQoS¾ã²zµ§°O¡C
- Ingress¤è¦VQoS
- ACL
³z¹LACL¨Ó¶i¦æ¬y¶q±±¨î¡AXOS¤ä´©¤FMeter¤ÎQoS Profile ¨âºØ¬y¶q¶ì«¬¤u¨ã¡C
º¥ý§ÚÌ¨Ó¬Ý¬Ý Meter ªº°µªk¡C
n³z¹LMeter¨Ó°µ¬y¶q¨î¡A´Nn«Ø¥ß¤@ÓMeter¡A³]©w¦n¸ÓMeterªº¬y¶q°t¸m«á¡A¦A³z¹LACL®M¥Î¨ì²Å¦X±ø¥óªº¨Ó·½ºÝ¡C
«Ø¥ßMeterªº«ü¥O¦p¤U¡C
create meter <Meter-Name>
°t¸m¸ÓMeterªº¬y¶q¶ì«¬¡C
configure meter <Meter-Name> {committed-rate cir [Gbps | Mbps | Kbps]} {max-burstsize burst-size [Kb | Mb]} {out-actions [drop | set-drop-precedence {dscp [none | dscp-value]}}
¬d¸ßMeterªº«ü¥O¦p¤U¡C
show meter <Meter-Name>
°²³]§ÚÌn«Ø¥ß¬y¶q¬°1MªºMeter m1¡A¨ä³]©w¦p¤U¡C
create meter m1 configure meter m1 committed-rate 1 M out-actions drop
µM«á«Ø¥ß®M¥ÎMeterªº ACL ÀɮסA¨Ò¦pingress_limit.pol¡C
vi ingress_limit.pol
entry ingress {
if {
#¥i¨Ì»Ý¨D°w¹ïIP¡AMAC¡AProtocolµ¥¡A³]©w¹LÂo±ø¥ó
} then {
Meter m1;
count c1;
}
}
«Ø¥ß¦nACL«á¡ACheck¤@¤UACL¤º®e¦³¨S¦³°ÝÃD¡H
check policy ingress_limit
³Ì«á¦A§âACL®M¥Î¦b¹ïÀ³ªºPort¤W¡A´N§¹¦¨¤FIngressªº¬y¶q¨î¤F¡C
configure access-list <ACL-Name> ports <Port-String> ingress
¨Ò¦p§ÚÌ¥i¥H§âingress_limit³o±øACL®M¥Î¦bPort 3¤W¡AµM«á³z¹L«ü¥O¥hÆ[¹î³oportªº¬y¶qÅܤơC
configure access-list ingress_limit ports 3 ingress
show ports 3 utilization
¡ô127KB´«ºâ°_¨Ó¬O1016Kb¡A¤]´N¬O1M¡F100MÀW¼eªº1%¤]¬O1M¡A¨âªÌ§k¦X¤@P¡C
*ACLªº³]©w¥i¥H°Ñ¦Ò³o¤@½g Access Control List (ACL)
³z¹L QoS Profile ·f°tACL°µ¬y¶q¨î¡A
°ò¥»¤W¸ò·f°tMeterªº¤è¦¡¬Û¦P¡A¥u¬O¬y¶qªº¶ì«¬¤£¬O¥ÑMeter¨Ó¶i¦æ¡A¦Ó¬O§ï¥ÑQoS Profile¨Ó°µ¡C
QoS Profileªº«Ø¥ß»P³]©w¡A¶¶¤l¦b±µ¤U¨ÓªºEgress¤è¦VQoSùئ³¤ñ¸û§¹¾ãªº»¡©ú¡A
¦b³oùØ¡A¶¶¤l¥u¬O²³æªº¥Ü½dQoS Profileªº³]©w¡A¨Ã®M¥Î¦bACL¤¤¨Ó¹ï²Ä3 port¶i¦æ¬y¶q¨î¡C
create qosprofile qp2
configure qosprofile qp2 committed_rate 1 M peak_rate 1 M Port 3
vi ingress_limit.pol
entry ingress {
if {
} then {
qosprofile qp2;
count c1;
}
}
check policy ingress_limit
configure access-list ingress_limit ports 3 ingress
±q¤Wz½d¨Ò¤£Ãøµo²{¡A³z¹LMeter©ÎQoS Profile·f°tACL¨Ó°µ¬y¶q±±¨î¡Aì«h¤W§¹¥þ¬Û¦Pªº¡A
¥u¦³¬y¶q¹LÂoªº¤u¨ã¤£¦P¦Ó¤w¡C
- Egress¤è¦VQoS
- Port rate-shaping
Port rate-shaping¬O³Ì²³æªºEgress¬y¶q±±¨î¡C
¥un¦b¹ïÀ³ªºPort¤W³]©w¦n¬y¶q¤j¤p«á¡A´N¥i²³æ®M¥Î¡A«ü¥O¦p¤U¡C
configure ports <Port-String> rate-limit egress [no-limit | cir-rate [Kbps | Mbps | Gbps] {max-burst-size burst-size [Kb | Mb]}]
n¬d¸ßrate-shapingªº¸Ü¡A´N¥u¯à³z¹LPortªºdetail¸ê°T¨Ó¬d¬Ý¤F¡C
show ports <Port-String> information detail
°²³]§ÚÌn³]©wswitch¤W²Ä5 portªº¬y¶q¬O777 Kbps¡A¨ä³]©w»P¬d¸ß«ü¥O¦p¤U¡C
configure ports 5 rate-limit egress 777 Kbps
show ports 5 information detail
- QoS Profile on Port
¬Û¸û¤§¤U¡A³z¹LQoS Profile¨Ó±±¨îEgress¬y¶q´N³Â·Ð¤FÂI¡C
º¥ýn«Ø¥ßQoS Profile¡AµM«á¦A©ó¹ïÀ³ªºPort¤W®M¥Î¦¹QoS Profile¡C
QoS Profile¦³QP1¡ãQP8¤KÓ¡A¨ä¤¤QP1¡AQP7¤ÎQP8¨t²Î¤w¤º«Ø¡A
Yn¨Ï¥Î¨ä¥¦profile¡A«h¥²»Ý¦Û¦æ«Ø¥ß¡A«ü¥O¦p¤U¡C
create qosprofile <QPn>
µM«á³]©w¦¹profileªº¬y¶q±±¨î¡A
¨ä¤¤¬y¶q¶ì«¬ªº¤èªk¦³¡§ÀW¼e¦Ê¤À¤ñ minbw|maxbw¡¨»P¡§¹ê»Ú³t«× committed_rate|peak_rate¡¨¨âºØ¿ï¾Ü¡C
configure qosprofile <QPn> [{minbw minbw_number} {maxbw maxbw_number} | {{committed_rate committed_bps [K | M]} {peak_rate peak_bps [K | M]} | [ports <Port-String>]
³Ì«á¦A®M¥Î¨ìPort¤W´N§¹¦¨°Õ¡ã
configure ports <Port-String> qosprofile <QPn>
¬d¸ßªº«ü¥O¦p¤U¡C
show qosprofile ports <Port-String>
°²³]§ÚÌn³]©wQP2ªº¬y¶q¬O1M¡A¨Ã®M¥Î¦bSwitch¤W²Ä3 port¡A¨ä³]©w«ü¥O¦p¤U¡C
create qosprofile qp2
configure qosprofile qp2 committed_rate 1 M peak_rate 1 M Port 3
configure port 3 qosprofile qp2
show qosprofile ports 3
Y§ÚÌn§ï¥HÀW¼e¦Ê¤À¤ñªº¤è¦¡¨Ó³]©w¡A¥Ñ©ó¶¶¤l¾Þ§@ªº³o¥xSwitch¬O100MªºRJ45¤¶±¡A
¦Ó1M¬O¤¶±ÀW¼e100Mªº1%¡A©Ò¥H³]©wn§ï¬°¦p¤U¡C
create qosprofile qp2 configure qosprofile qp2 minbw 1 maxbw 1 Port 3 configure port 3 qosprofile qp2 show qosprofile ports 3
¥t¥~QoS Profile¤]¥i¥H®M¥Î¦bVLAN¤W¡A¤£¹L®M¥Î«á¡A¥¼¯àµo´§¹w´Áªº¨î®ÄªG¡H
VLAN¤WªºPortÁÙ¬O¯à¥H¥¿±`¥¼¨üªº³t«×¹B¦æ¡H
³o³¡¤Àµ¥¥H«á¦³¥¿½Tªº³]©w¤è¦¡¡A¦A¶i¦æ§ó·s...
configure vlan <VLAN-Name> qosprofile <QPn>
- ACL
Egress¤è¦VªºACL¬y¶q±±¨î¨ä¹ê¸òIngress¤è¦V¦b·§©À¤W§¹¥þ¬Û¦P¡F
¦P¼Ë¤ä´©¤F Meter »P QoS Profile ¨âºØ¬y¶q¶ì«¬¤u¨ã¡A¤@¼Ën«Ø¥ßACL¡A¥u¬O¦b®M¥Î¨ìPort®É¡A»Ý§â¤è¦V³]©w¬°egress§Y¥i¡C
¥H¤U½d¨Ò¬°«Ø¥ß¤@Ó1MªºMeter m2¡AµM«á®M¥Î¦bACL egress_limit¤¤¡A¹ï²Ä4 portªºegress¤è¦V°µ¬y¶q±±¨î¡C
create meter m2 configure meter m2 committed-rate 1 M out-actions drop
vi egress_limit.pol
entry egress {
if {
#¥i¨Ì»Ý¨D°w¹ïIP¡AMAC¡AProtocolµ¥¡A³]©w¹LÂo±ø¥ó
} then {
Meter m2;
count c2;
}
}
check policy egress_limit
configure access-list egress_limit ports 4 egress
¦Ü©óQoS Profile·f°tACLªº³¡¤À¡A¶¶¤l´N¤£¦A«½ÆÅo¶Û¡ã
*ª`·N¡I
ExtremeªºACL egress¤è¦V³]©w¦ü¥GµLªk®M¥Î¦bL2 Switch¤W³á¡I
¶¶¤l¸Õ¹LX250¤ÎX430¡A³o¨â¥xL2 Switch³£¤£¤ä´©egress¤è¦VªºACL³]©w¡A
¦ýL3 Switch X440´N¥i¤ä´©egress¤è¦VªºACL³]©w¡C
|
|
♥¶¶¤l¦Ñ±Cªººô©ç¡A½Ð¦hÃö·Ó¡ã
If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!
|