Specifications

CoS Hardware Resource Configuration
May 09, 2011 Page 17 of 38
TheremainderofthissectiondetailsaTxQrateshapingconfigurationthat:
Configuresportgroup2.0forportge.2.17
•Namesportgroup2.0txqRateShaper
Configuresallotherportsforportgroup0.0
•Setstheportresourcerateforportgroup2.0onqueue8to50%ofportbandwidth
•EnablesCoS
•Providesrelated
showcommanddisplays
CoS Port Configuration Layer
FortheCoSportconfiguration layer,usethesetcosportconfigtxqcommandto:
Configureportgrouptemplate0.0forallportsonthedeviceexceptforge.2.17
Configureportgrouptemplate2.0forportge.2.17
•Nameportgrouptemplate2.0txqRateShaper
CoSportConfigurationCLIinput:
System(su)->set cos port-config txq 0.0 ports ge.2.1-16,18-48;tg.2.101-104
System(su)->set cos port-config txq 2.0 name txqRateShaper ports ge.2.17
CoS TxQ Port Resource Layer
ItisattheportresourceTxQconfigurationlayerthatthebandwidthrateshaper,overwhichall
packetsarebuffered,isappliedtoahardwarequeue.Wewillapplyabandwidthrateof50%to
TxQqueue8forportgroup2.0.
System(su)->set cos port-resource txq 2.0 8 unit percentage rate 50
Enable CoS State
CoSconfigurationmustbeenabledtobecomeactive,usingthesetcosstateenablecommand:
System(su)->set cos state enable
TxQ Rate Shaping Configuration Example Show Command Output
NoCoSSettingsconfigurationwasrequiredforthisexample.TheCoSsettingsshowcommand
willdisplaythedefaultconfiguration.UsetheshowcossettingscommandtodisplayCoSsettings
layerconfiguration:
System(su)->show cos settings
* Means attribute has not been configured
CoS Index Priority ToS TxQ IRL ORL Drop Prec Flood-Ctrl
--------- ---------- ------- ----- ----- ----- --------- ----------
0 0 * 0 * * * Disabled
1 1 * 2 * * * Disabled
2 2 * 4 * * * Disabled