城域以太网论坛 (MEF) 运营商以太网 (客户边缘) 2.0 标准集对用户到网络接口 (UNI) 的带宽配置文件实施有严格的要求。MEF 客户边缘 2.0 认证合规性只允许在所有帧大小上与 UNI 承诺或峰值速率偏差 2%。这意味着监管器应考虑 UNI 接口上的帧大小,包括帧校验和,并排除服务提供商网络内部可能添加的所有额外开销(如 S-VLAN)。
为了满足 MEF 客户边缘 2.0 对带宽配置文件的严格要求, policer-overhead 调整是根据每个 IFL 或方向粒度定义的。调整范围 policer-overhead 为 -16 字节到 +16 字节,适用于在指定 IFL 或方向上考虑第 1 层/第 2 层 (L1/L2) 数据包长度的所有监管器,包括相应的逻辑接口家族 (IFF) 功能监管器。
- 在配置模式下的 [edit interfaces] 层次结构级别,创建要将监管器开销添加到输入或输出流量的接口上。
[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