




下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
Thesemechanisms
must
classify
packets
beforepolicing
or
shathe
traffic
rate.Traffic
sha
queues
excess
packets
to
stay
within
the
desiredtrafficrate.Traffic
policing
typically
drops
or
marksexcess
traffic
to
stay
within
atraffic
ra
imit.Ra imit
file-sharing
application
traffic
to
56kbps.Do
not
ra imit
trafficfrom
mission-critical
server.Central
to
remote
site
speed
mismatchRemote
to
central
site
over
subscriptionBoth
situations
result
in
buffering
and
indelayed
or
dropped
packetsing
and
outgoingdirectionsOut-of-profile
packets
are
droppedDrop causes
TCPretransmitsSupports
packet
marking
orre-markingLess
buffer
usage
(sharequires
an
additional
shaqueuingsystem)Outgoing
direction
onlyOut-of-profile
packets
arequeueduntil
a
buffer
gets
fullBuffering
minimizes
TCPretransmitsMarking
or
re-marking
notsupportedShaFramsupports
interaction
withRelay
congestion
indicationIf
sufficient
tokens
are
available
(conform
action):Tokens
equivalent
to
the
packet
size
are
removed
from
thebucket.The
packet
is
transmitted.If
sufficient
tokens
are
NOT
available
(exceed
action):–
Drop
(or
mark)
the
packetBc
is
normal
burst
sizeTc
isthe
time
intervalCIR
is
the
committed
information
rateCIR
=
Bc/
Tc的token注入方法是:每當一個數據包,就注入tokenEvery
time
a
packet
is d,
CB
policing
puts
sometokens
back
intothe
Bucket.
The
number
of
tokensplaced
into注入數量如下:(Current_packet_arrival_time
–
Previous_packet_arrival_time)
*_rate/8Be:
Excess
burst
sizeTc:
Tokens
in
Bc
bucketTe:
Tokens
in
Be
bucketThe
return
value
is
conform
or
exceed
or
violateTc:
Tokens
in
CIR
bucketTp:
Tokens
in
PIR
bucketEnforce
traffic
policing
according
to
two
separate
rates:Committed
Information
RatePeak
Information
RateTwo-rate r
marks
packets
as
either
conforming,exceeding,
or
violating
a
specified
rate.If
(B
>
Tp),
the
packet
is
marked
as
violating
the
specifiedrate
都不減少token數量If
(B
>
Tc),
the
packet
is
marked
as
exceeding
the
specifiedrate,
and
the
Tp
token
bucket
is
updated
asTp
=
Tp
–
B此時有個問題,下次再來一個數據包,可能Tp<Tc;If
the
packet
is
marked
as
conforming
to
the
specified
rate,and
both
token
buckets(Tc
and
Tp)
are
updated
as
Tp=Tp–B
and Tc=Tc–B.
同時減少token的數量單速率配置方法:以下4個配置命令含義一樣80000
1000
1000cir
80000
1000
1000cir
80000
bc
1000
be
1000rate
80000
bps
burst
1000
bytes
peak-burst
1000
bytes雙速率配置方法:policy-map
yeslab7class
p1cir
8000
bc
1500
pir
10000
be
5000conform-action
transmitexceed-action
set-prec-transmit
1violate-action
set-prec-transmit
1r2#show
policy-map
interfaces2/0Serial2/0Service-policyoutput:
yeslab7Class-map:
p1
(match-all)15
packets,
1052
bytes5
minute
offered
rate
0
bps,
drop
rate
0
bpsMatch:
any:cir
8000
bps,
bc
1500
bytespir
10000
bps,
be
5000
bytesconformed
1
packets,
48
bytes;
actions:transmitexceeded
0
packets,
0bytes;
actions:set-prec-transmit1violated
0
packets,
0
bytes;
actions:set-prec-transmit1conformed
0bps,
exceed
0
bps,
violate0
bps每隔Tc,往桶里注入Bc個token,是 注入,不是勻速注入。然后sh r
gateopen,什么時候關閉呢?在桶里沒有token的時候就關閉了,然后在下一個Tc開始的時候在打開并
注入Bc個token發(fā)送單個數據包的速率等于link的物理層速率通過減少發(fā)送時間來降低速率如上圖:link速率128K,限制到64k,就只能用一半的時間用來發(fā)送數據流,設置TC的值為125ms,因此每次發(fā)送數據包的時間就為62.5ms,Bc=62.5ms*128Kbps=8000bit填充token的方法:每125ms的開始就填充Bc個tokenWhen
configuring
sha
,you
typically
configure
the
sha
rateand
optionally
theBc(典型假設TC為4ms).Ifyou
configure
bothvalues,IOS
changes
the
Tc
so
that
the
formula
is
met配置舉例:sh average
percent
10
125ms紅色為CIR的值,用帶寬比例表示紫色為TC的值,單位為ms自動計算出的BC值為:19300Service-policy
output:
yeslabClass-map:
p1
(match-all)138
packets,
37338
bytes5
minute
offeredrate
0
bps,
drop
rate
0
bpsMatch:
anyQueueingqueue
limit
64packets(queue
depth/total
drops/no-buffer
drops)
0/0/0(pkts
output/bytes
output)
0/0sh (average)
cir
154400,
bc
19300,
be
19300sh rate
154400配置舉例:sh average
1000000
12000紅色表示CIR紫色表示BCTC值將會自動計算:12000/1000000=120msService-policy
output:
yeslabClass-map:p1
(match-all)298
packets,
113530
bytes5
minute
offeredrate
0
bps,
drop
rate
0
bpsMatch:
anyQueueingqueue
limit
64packets(queue
depth/total
drops/no-buffer
drops)
0/0/0(pkts
output/bytes
output)
160/76614sh (average)
cir
1000000,
bc
12000,
be
12000sh rate
1000000對sha
的單桶單速率無BE,桶的大小為BC,如果一個數據包來,token夠用,轉發(fā),同時減少token相應的數量;如果一個數據包來,token不夠,等下一個tc的注入的token。從宏觀效果來看,總體速率保持為CIR對sha
的單桶單速率有BE,桶的大小為BE+BC。該類型的sha
增加了對bursty流量的能力,但是從宏觀效果來看,總體速率還是保持為CIRpolicy-map
yeslab8class
p1sh average
1000000
12000
6000r2#show
policy-map
inter
s2/0Serial2/0Service-policy
output:
yeslab8Class-map:
p1
(match-all)38
packets,
2527
bytes5
minute
offered
rate
0
bps,
drop
rate
0
bpsMatch:
anyQueueingqueue
limit
64
packets(queue
depth/total
drops/no-buffer
drops)
0/0/0(pkts
output/bytes
output)
38/2588sh
(average)
cir
1000000,
bc
12000,
be
6000sh rate
1000000Traffic
sha and
policing
are
mechanisms
that
useclassification
to
limit
traffic
rate.Traffic
sha queues
excess
packets
to
stay
within
thecontractual
rate.
Traffic
policing
typically
drops
excess
trafficto
stay
within
the
limit;
alternatively,
it
can
re-mark,
then
sendexcess
traffic.Both
traffic
policing
and
sha
ensure
that
traffic
doesnotexceed
a
bandwidth
limit,
but
they
have
different
impacts
onthe
traffic.Traffic
rate
is
metered
using
a
token
bucket
mathematicalmodel.With
traffic
policing,
new
tokens
are
added
into
the
tokenbucket
based
on
the
CIR.Class-based
traffic
policing
can
be
configured
to
supportexcess
bursting
capability.
With
excess
bursti
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權】 ISO/IEC TS 20540:2025 EN Information security,cybersecurity and privacy protection - Testing cryptographic modules in their field
- 2025至2030中國用藥依從性管理行業(yè)產業(yè)運行態(tài)勢及投資規(guī)劃深度研究報告
- 2025至2030中國生物硬腦膜修復行業(yè)產業(yè)運行態(tài)勢及投資規(guī)劃深度研究報告
- 2025至2030中國特藥配送行業(yè)發(fā)展趨勢分析與未來投資戰(zhàn)略咨詢研究報告
- 2025至2030中國特殊和擠壓石墨行業(yè)市場占有率及投資前景評估規(guī)劃報告
- 多元化創(chuàng)業(yè)培訓與技能提升計劃
- 間冷塔培訓課件
- 心理評估在課程設計中的重要性
- 教育投資在提升國民素質中的作用評估
- 教育技術在教學管理中的價值與作用
- 船廠安全用電培訓課件
- 《2025年CSCO腎癌診療指南》解讀
- 人教版九年級化學上冊暑假銜接講義(初二升初三)
- 跆拳道館技術崗位薪酬制度
- 無人駕駛車法規(guī)-深度研究
- 《寧晉縣國土空間總體規(guī)劃(2021-2035年)》
- 2024年度乳腺癌篩查與早期診斷課件
- 2024年食品檢驗員(高級)職業(yè)鑒定理論考試題庫(含答案)
- 工廠物品回收合同模板
- JJF 1168-2024便攜式制動性能測試儀校準規(guī)范
- 經橈動脈介入診療患者術肢并發(fā)癥預防及護理專家共識解讀
評論
0/150
提交評論