ラベル QoS の投稿を表示しています。 すべての投稿を表示
ラベル QoS の投稿を表示しています。 すべての投稿を表示

2009年10月24日土曜日

Traffic Policing (MQC)

概要
  • ポリシングは、特定の通信が帯域の閾値を越えないように強制する。
  • ポリシングは、Committed Access Rate (CAR) または rate-limiting とも呼ばれる。
  • 2種類の方法で設定できる。インタフェース設定モードで、"rate-limit" コマンドを使うか、"policy-map" で "police" コマンドを使う (MQC) 方法がある。
MQC によるポリシングの設定
  • ICMP の出力を 128kbps に制限する。
  • バーストは、32kbps にする。
  • (config-pmap-c)#police cir bps bc [burst]
ip cef !--- NBAR (match protocol) を使う場合は CEF を有効にする
!
class-map match-all ICMP
match protocol icmp
!
policy-map POLICE_ICMP
class ICMP
police cir 128000 bc 4000
!
interface FastEthernet0/0
service-policy output POLICE_ICMP
show コマンド

#sh policy-map interface fa0/0
FastEthernet0/0
Service-policy output: POLICE_ICMP
Class-map: ICMP (match-all)
1383 packets, 204462 bytes
5 minute offered rate 14000 bps, drop rate 2000 bps
Match: protocol icmp
police:
cir 128000 bps, bc 4000 bytes
conformed 1374 packets, 195336 bytes; actions:
transmit
exceeded 9 packets, 9126 bytes; actions:
drop
conformed 13000 bps, exceed 2000 bps
Class-map: class-default (match-any)
1798 packets, 174306 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

参考

2009年10月19日月曜日

FRTS

用語
  • AR (Available Rate or Access Rate)
    物理インタフェースのスピードであり、DCE の clock rate で決まる。port speed とも言われる。FR のサービスプロバイダの受信できる全トラフィックのポリシングのレートの場合もある。

  • CIR (Commited Information Rate)
    一秒間にルータが転送を試みる平均レート (bps)。target rate とも言われる。

  • MINCIR
    FR 網から、BECN を受信したとき、ルータが転送速度を絞る最小のレート。FR プロバイダは、このレートを超えるトラフィックに DE bit をセットする。MINCIR の既定値は、CIR / 2。

  • Bc (Committed Burst)
    与えられたインターバルで送信を許されたビット数。各インターバルで Bc ビット送信された場合、出力は CIR になる。

  • Be (Excess Burst)

  • Tc (Time Commited)
    シェーピングは、Tc 秒の間に Bc ビット送信することを許す。Tc = 125ms (1/8 秒) ~ 10ms (1/100 秒)
公式
  • Tc (ms) = Bc / CIR * 1,000
  • CIR (bps) = Bc * 1,000 / Tc
  • Bc (bits/int) = CIR * Tc / 1,000
  • Be (bits/int) = (AR - CIR) * Tc / 1,000
設定
  • AR (bps) = 1,536,000 bps
  • Tc (ms) = 50 ms
  • CIR (bps) = 512,000 bps
  • MINCIR (bps) = 384,000 bps (BECN を受信したとき)
  • Bc (bits/int) = 25,600 bits/int
  • Be (bits/int) = (AR - CIR) * Tc / 1,000 = 51,200 bits/int
map-class frame-relay DLCI504
frame-relay cir 512000
frame-relay bc 25600
frame-relay be 51200
frame-relay mincir 384000
frame-relay adaptive-shaping becn
!
interface Serial1/0
frame-relay interface-dlci 504
class DLCI504

show コマンド
  • #show frame-relay pvc DLCI

  • #show traffic-shape
    Interface Se1/0
    Access Target Byte Sustain Excess Interval Increment Adapt
    VC List Rate Limit bits/int bits/int (ms) (bytes) Active
    504 512000 9600 25600 51200 50 3200 BECN

    VC → DLCI = 504
    Target Rate → CIR = 512,000
    Byte Limit → (Bc + Be) / 8 = 9,600
    Sustain bits/int → Bc = 25,600
    Excess bits/int → Be = 51,200
    Interval (ms) → Tc = 50
    Increment (bytes) → Bc / 8 = 3,200
    Adapt Active → BECN

  • #show traffic-shape statistics