Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

层次监管器配置概述

层次化速率限制所有协议家族的第 2 层入口流量。不能应用于出口流量、第 3 层流量或接口层次结构的特定协议级别。

支持以下接口:

  • SONET 接口托管在 M40e、M120 和 M320 边缘路由器上,传入 FPC 作为 SFPC,传出 FPC 作为 FFPC。

  • SONET 接口托管在 T320、T640 和 T1600 核心路由器上,带有增强型智能排队 (IQE) PIC。

  • 千兆以太网智能队列 2 (IQ2) 和以太网增强型 IQ2 (IQ2E) PIC 上的以太网接口。

  • 具有 MPC 或 DPC 的 MX 系列路由器。

表 1 介绍了您可以在哪些层级上配置和应用分层监管器。

表 1: 层次监管器配置和应用程序摘要

监管器配置

2 层应用

要点

层次监管器

分层监管器的聚合和高级监管组件:

[edit firewall]
hierarchical-policer policer-name {
    aggregate {
        if-exceeding {
            bandwidth-limit bps;
            burst-size-limit bytes;
        }
        then {
            discard;
            forwarding-class class-name;
            loss-priority supported-value;
        }
    }
    premium {
        if-exceeding {
            bandwidth-limit bps;
            burst-size-limit bytes;
        }
        then {
            discard;
        }
    }
}

选项 A — 直接应用于物理接口上的第 2 层输入流量:

[edit interfaces]
interface-name {
    layer2-policer {
        input-hierarchical-policer policer-name;
    }
}

针对物理接口上配置的所有协议家族和逻辑接口的分层速率限制第 2 层入口流量。

layer2-policer 层次结构级别包括配置语句 [edit interfaces interface-name]

注:

如果在物理接口上应用分层监管器,则也不能对任何成员逻辑接口应用分层监管器。

选项 B — 直接应用于逻辑接口上的第 2 层输入流量。

[edit interfaces]
interface-name {
    unit unit-number {
        layer2-policer {
            input-hierarchical-policer policer-name;
        }
    }
}

针对特定逻辑接口上配置的所有协议家族的层次化速率限制第 2 层入口流量。

layer2-policer 层次结构级别包括配置语句 [edit interfaces interface-name unit unit-number]

注:

您必须为逻辑接口至少配置一个协议家族。