在接口统计信息中配置监管器开销的核算
城域以太网论坛 (MEF) 运营商以太网 (CE) 2.0 标准集对用户到网络接口 (UNI) 的带宽配置文件实施有严格的要求。MEF CE 2.0 认证合规性仅允许在所有帧尺寸中与 UNI 承诺速率或峰值速率相差 2%。这意味着监管器应考虑 UNI 接口上的帧大小,包括帧校验和,并排除可能在服务提供商网络内部添加的所有其他开销(如 S-VLAN)。
为了满足MEF CE 2.0对带宽配置文件的严格要求, 根据每个IFL或方向粒度定义了调整。policer-overhead
此 调整范围为 -16 字节到 +16 字节,适用于在指定 IFL 或方向上考虑第 1 层/第 2 层 (L1/L2) 数据包长度的所有监管器,包括相应的逻辑接口系列 (IFF) 功能监管器。policer-overhead
要配置监管器开销,请执行以下操作:
- 在配置模式下的 [编辑接口] 层次结构级别,创建用于将监管器开销添加到输入或输出流量的接口。
[edit interfaces] user@host# edit interfaces interface name
例如:
[edit interfaces interface name] user@host# edit xe-0/1/6
- 创建要在其上添加监管器开销的设备。
[edit interfaces unit] [edit interfaces interface name unit unit-number]
例如:
[edit interfaces unit] user@host# edit xe-0/1/6 unit 0
- 为入口监管器配置监管器开销。
[edit interfaces interface name unit unit-number ] user@host# set policer-overhead ingress value in bytes (-16..+16 bytes)
例如:
[edit xe-0/1/6 unit 0] user@host# set policer-overhead ingress 10;
- 为出口监管器配置监管器开销。
user@host# set policer-overhead egress value in bytes (-16..+16 bytes)
[edit xe-0/1/6 unit 0] user@host# set policer-overhead egress 10;
- 验证配置。
[edit interfaces] user@host# show interfaces xe-0/1/6 xe-0/1/6 { unit 0 { policer-overhead { ingress 10; egress 10; } } } user@host>show interfaces xe-0/1/6 Physical interface: xe-0/1/6, Enabled, Physical link is Up Interface index: 161, SNMP ifIndex: 544 Link-level type: Ethernet, MTU: 1514, MRU: 1522, LAN-PHY mode, Speed: 10Gbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: None, Source filtering: Disabled, Flow control: Enabled Pad to minimum frame size: Disabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Schedulers : 0 Current address: 00:23:9c:fc:a8:58, Hardware address: 00:23:9c:fc:a8:58 Last flapped : 2015-09-13 20:12:36 PDT (14:21:57 ago) Input rate : 0 bps (0 pps) Output rate : 0 bps (0 pps) Active alarms : None Active defects : None PCS statistics Seconds Bit errors 0 Errored blocks 0 Link Degrade : Link Monitoring : Disable Interface transmit statistics: Disabled Logical interface xe-0/1/6.0 (Index 339) (SNMP ifIndex 571) Flags: Up SNMP-Traps 0x4004000 Encapsulation: ENET2 Policer overhead : Ingress policer overhead : 10 bytes Egress policer overhead : 10 bytes Input packets : 0 Output packets: 0 Protocol multiservice, MTU: Unlimited Flags: Is-Primary user@host> show interfaces xe-0/1/6.0 Logical interface xe-0/1/6.0 (Index 339) (SNMP ifIndex 571) Flags: Up SNMP-Traps 0x4004000 Encapsulation: ENET2 Policer overhead : Ingress policer overhead : 10 bytes Egress policer overhead : 10 bytes Input packets : 0 Output packets: 0 Protocol multiservice, MTU: Unlimited Flags: Is-Primary