2016/02/23 EdgeMAX シリーズのファームウェア v1.8.0 がリリースされました。
詳細はこちら をご覧下さい。

コマンド > configure > traffic-policy

提供:EdgeOS 日本語Wiki [非公式]
2015年11月23日 (月) 12:19時点におけるHiro (トーク | 投稿記録)による版 (→‎traffic-policy shaper)
ナビゲーションに移動 検索に移動

このページの概要

当ページでは、Configure モード 設定編集系 コマンドで、traffic-policy を利用する方法をご紹介します。


解説

traffic-policy は、設定要素の一つであり、設定編集系のコマンド と共に用います。

のように用います。


各 policy と設定可能なパケット方向

  • limiter : in
  • priority-queue : out
  • shaper : out

その他判明したものは追記していきます。

traffic-policy のパラメーター

index


traffic-policy drop-tail

traffic-policy fair-queue

traffic-policy limiter

traffic-policy network-emulator

  • set traffic-policy network-emulator {T_POLICY_ENTRY}
    Network emulator policy
    • set traffic-policy network-emulator {T_POLICY_ENTRY} bandwidth
      Bandwidth limit
      • set traffic-policy network-emulator {T_POLICY_ENTRY} bandwidth {NUMBER}
        Rate in k (1000) bytes per second
      • set traffic-policy network-emulator {T_POLICY_ENTRY} bandwidth {NUMBER} {SUFFIX}
        Rate with scaling suffix (mbit, mbps, ...)
    • set traffic-policy network-emulator {T_POLICY_ENTRY} burst
      Burst size
      • set traffic-policy network-emulator {T_POLICY_ENTRY} burst {NUMBER}
        Bytes
      • set traffic-policy network-emulator {T_POLICY_ENTRY} burst {NUMBER} {SUFFIX}
        Bytes with scaling suffix (kb, mb, gb)
    • set traffic-policy network-emulator {T_POLICY_ENTRY} description {任意テキスト}
      Description for this queuing policy
    • set traffic-policy network-emulator {T_POLICY_ENTRY} network-delay
      Additional network delay
      • set traffic-policy network-emulator {T_POLICY_ENTRY} network-delay {NUMBER}
        Time in milliseconds
      • set traffic-policy network-emulator {T_POLICY_ENTRY} network-delay {NUMBER} {SUFFIX}
        Time with suffix (secs, ms, us)
    • set traffic-policy network-emulator {T_POLICY_ENTRY} packet-corruption {NUMBER}%
      Emulated packet data corruption rate
    • set traffic-policy network-emulator {T_POLICY_ENTRY} packet-loss {NUMBER}%
      Emulated packet loss rate
    • set traffic-policy network-emulator {T_POLICY_ENTRY} packet-reordering {NUMBER}%
      Emulated packet reordering percentage
    • set traffic-policy network-emulator {T_POLICY_ENTRY} queue-limit {1-4294967295}
      Maximum queue size (packets)

traffic-policy priority-queue

traffic-policy random-detect

  • set traffic-policy random-detect {T_POLICY_ENTRY}
    Weighted Random Early Detect policy
    • set traffic-policy random-detect {T_POLICY_ENTRY} bandwidth
      Available bandwidth for this policy
      • set traffic-policy random-detect {T_POLICY_ENTRY} bandwidth auto
        Rate based on interface speed (default)
      • set traffic-policy random-detect {T_POLICY_ENTRY} bandwidth {NUMBER}
        Rate in k (1000) bytes per second
      • set traffic-policy random-detect {T_POLICY_ENTRY} bandwidth {NUMBER} {SUFFIX}
        Rate with scaling suffix (mbit, mbps, ...)
    • set traffic-policy random-detect {T_POLICY_ENTRY} description {任意テキスト}
      Description for queuing policy
    • set traffic-policy random-detect {T_POLICY_ENTRY} precedence {0-7}
      IP precedence
      • set traffic-policy random-detect {T_POLICY_ENTRY} precedence {0-7} average-packet {16-10240}
        Average packet size (bytes)
      • set traffic-policy random-detect {T_POLICY_ENTRY} precedence {0-7} mark-probability {NUMBER}
        Mark probability for this precedence (1/N)
      • set traffic-policy random-detect {T_POLICY_ENTRY} precedence {0-7} maximum-threshold {0-4096}
        Maximum threshold for random detection
      • set traffic-policy random-detect {T_POLICY_ENTRY} precedence {0-7} minimum-threshold {0-4096}
        Minimum threshold for random detection
      • set traffic-policy random-detect {T_POLICY_ENTRY} precedence {0-7} queue-limit {1-4294967295}
        Maximum queue size (packets)

traffic-policy rate-control

  • set traffic-policy rate-control {T_POLICY_ENTRY}
    Rate limiting policy
    • set traffic-policy rate-control {T_POLICY_ENTRY} bandwidth
      Bandwidth limit
      • set traffic-policy rate-control {T_POLICY_ENTRY} bandwidth {NUMBER}
        Rate in k (1000) bytes per second
      • set traffic-policy rate-control {T_POLICY_ENTRY} bandwidth {NUMBER} {SUFFIX}
        Rate with scaling suffix (mbit, mbps, ...)
    • set traffic-policy rate-control {T_POLICY_ENTRY} burst
      Burst size
      • set traffic-policy rate-control {T_POLICY_ENTRY} burst {NUMBER}
        Bytes
      • set traffic-policy rate-control {T_POLICY_ENTRY} burst {NUMBER} {SUFFIX}
        Bytes with scaling suffix (kb, mb, gb)
    • set traffic-policy rate-control {T_POLICY_ENTRY} description {任意テキスト}
      Description for this queuing policy
    • set traffic-policy rate-control {T_POLICY_ENTRY} latency
      Maximum latency
      • set traffic-policy rate-control {T_POLICY_ENTRY} latency {NUMBER}
        Time in milliseconds
      • set traffic-policy rate-control {T_POLICY_ENTRY} latency {NUMBER} {SUFFIX}
        Time with suffix (secs, ms, us)

traffic-policy round-robin

traffic-policy shaper

  • set traffic-policy shaper {T_POLICY_ENTRY}
    Traffic shaping based policy
    • set traffic-policy shaper {T_POLICY_ENTRY} bandwidth
      Available bandwidth for this policy
      • set traffic-policy shaper {T_POLICY_ENTRY} bandwidth auto
        Rate matches interface speed (default)
      • set traffic-policy shaper {T_POLICY_ENTRY} bandwidth {NUMBER}
        Rate in k (1000) bytes per second
      • set traffic-policy shaper {T_POLICY_ENTRY} bandwidth {NUMBER} {SUFFIX}
        Rate with scaling suffix (mbit, mbps, ...)
    • set traffic-policy shaper {T_POLICY_ENTRY} class {1-4095}
      Class handle
      • set traffic-policy shaper {T_POLICY_ENTRY} class {1-4095} bandwidth
        Bandwidth used for this class
        {NUMBER} //
        • Bandwidth in Kbps
        • set traffic-policy shaper {T_POLICY_ENTRY} class {1-4095} bandwidth
        {NUMBER} % //
        • Percentage of overall rate (default 100%)
        • set traffic-policy shaper {T_POLICY_ENTRY} class {1-4095} bandwidth
        {NUMBER} {SUFFIX} //
        • Value with scaling suffix (kbit, kbps, ...)
      • set traffic-policy shaper {T_POLICY_ENTRY} class {1-4095} burst
        Burst size for this class (default: 15kb)
        {NUMBER} //
        {NUMBER} {SUFFIX} //
Bytes with scaling suffix (kb, mb, gb)
Bytes with scaling suffix (kb, mb, gb)
      • set traffic-policy shaper {T_POLICY_ENTRY} default ceiling
        Bandwidth limit for default traffic
        • set traffic-policy shaper {T_POLICY_ENTRY} default ceiling {NUMBER}
          Bandwidth in Kbps
        • set traffic-policy shaper {T_POLICY_ENTRY} default ceiling {NUMBER} %
          Percentage of overall rate (default 100%)
        • set traffic-policy shaper {T_POLICY_ENTRY} default ceiling {NUMBER} {SUFFIX}
          Value with scaling suffix (kbit, kbps, ...)
      • set traffic-policy shaper {T_POLICY_ENTRY} default priority {0-7}
        Priority for usage of extra bandwidth
      • set traffic-policy shaper {T_POLICY_ENTRY} default queue-limit {1-4294967295}
        Maximum queue size (packets)
      • set traffic-policy shaper {T_POLICY_ENTRY} default queue-type
        Queue type for default traffic
        fair-queue //
        • Stochastic Fair Queue (SFQ)
        • set traffic-policy shaper {T_POLICY_ENTRY} default queue-type
        drop-tail //
        • First-In-First-Out (FIFO)
        • set traffic-policy shaper {T_POLICY_ENTRY} default queue-type
        priority //
        • Priority queueing based on DSCP
        • set traffic-policy shaper {T_POLICY_ENTRY} default queue-type
        random-detect //
        • Random Early Detection (RED)
      • set traffic-policy shaper {T_POLICY_ENTRY} default set-dscp {IPv4 DSCP 条件式}
        Modified Differentiated Services (DiffServ) value
    • set traffic-policy shaper {T_POLICY_ENTRY} description {任意テキスト}
      Description for this queuing policy

関連項目



凡例

「★」は、不明であることを表しています。

注意事項

動作の確認は、EdgeRouter X : ER-X にて行っています。 他のモデルでは、一部動作が異なる可能性があります。