欢迎来到天天文库
浏览记录
ID:41523123
大小:58.50 KB
页数:4页
时间:2019-08-26
《带宽控制-分层标记桶(HTB)介绍--Ros官方文档翻译》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、IntroductiontoHTBHTB(HierarchicalTokenBucket)isaclassfulqueuingdisciplinethatisusefulforapplyingdifferenthandlingfordifferentkindsoftraffic.Generally,wecansetonlyonequeueforaninterface,butinRouterOSqueuesareattachedtothemainHierarchicalTokenBucket(HTB)andthushavesomepropertiesderivedfromthat
2、parentqueue.Forexample,wecansetamaximumdatarateforaworkgroupandthendistributethatamountoftrafficbetweenthemembersofthatworkgroup.HTBqdiscindetail:HTB介绍HTB(分层标记桶)是一种有助于对不同类型的流实现不同处理的分级排队规则通常,我们可以为一个界面只设置一个队列,但在RouterOS中,队列附属于主HTB,从而带有一些来自父队列的属性。例如,我们可以为一个工作组设置最大传输率然后在工作组成员之间分配带宽。 HTBqdiscind
3、etail:HTB排队规则详述:HTBterms:·queuingdiscipline(qdisc)-analgorithmthatholdsandmaintainsaqueueofpackets.Itspecifiestheorderoftheoutgoingpackets(itmeansthatqueuingdisciplinecanreorderpackets).Qdiscalsodecideswhichpacketstodropifthereisnospaceforthem·filter-aprocedurethatclassifiespackets.Thefilter
4、isresponsibleforclassifyingpacketssothattheyareputinthecorrespondingqdiscs·level-positionofaclassinthehierarchy·innerclass-aclassthathasoneormorechild-classesattachedtoit.Innerclassesdonotstoreanypackets,buttheydotrafficshaping.Theclassalsodoesnothaveitsownpriority·leafclass-aclassthathasapa
5、rentbutdoesnothaveanychild-classes.Leafclassesarealwayslocatedatlevel0ofthehierarchy.Eachleafclasshasaqdisc,attachedtoit·selffeed-anobjectthatrepresentstheexitforthepacketsfromalltheclassesactiveatitslevelofthehierarchy.Itconsistsof8selfslots·selfslot-anelementofaselffeedthatcorrespondstoeac
6、hparticularpriority.Allclasses,activeatthesamelevel,ofonepriorityareattachedtooneselfslotthattheyareusingtosendpacketsoutthrough·activeclass(ataparticularlevel)-aclassthatisattachedtoaselfslotatthegivenlevel·innerfeed-similartoselffeedobject,whichconsistsofinnerselfslots,presentoneachinnercl
7、ass·innerfeedslot-similartoselfslot.EachinnerfeedconsistsofinnerslotswhichrepresentapriorityEachclasshasaparentandmayhaveoneormorechildren.Classesthatdonothavechildren,areputatlevel0,wherequeuesaremaintained,andarecalled'leafclasses'HTB术语: 排队规则(qd
此文档下载收益归作者所有