Page MenuHomePhabricator

Junos: ae speed not reported correctly through gNMI
Closed, ResolvedPublic

Description

Yesterday when de-pooling drmrs for a maintenance, this paged:

FIRING: CoreOutboundSaturation: Core link outbound traffic above 90% capacity - asw1-by27-esams:ae0 (Core: ...
cr1-esams) #page - https://wikitech.wikimedia.org/wiki/Network_monitoring#Primary_outbound_port_utilization_over_90% - https://grafana.wikimedia.org/d/d968a627-b6f6-47fc-9316-e058854a4945/throughput-network-device-interfaces?var-site=esams+prometheus%2Fops&var-device=asw1-by27-esams:9804&var-interface=ae0 - https://alerts.wikimedia.org/?q=alertname%3DCoreOutboundSaturation

(Which reminds me of T424794: Shorten IRC alert messages by the way...)

This is a due to a monitoring bug: the network device is not exposing the correct interface speed through gNMI.
gnmi_interfaces_interface_state_high_speed{instance="asw1-by27-esams:9804", interface_description="Core: cr1-esams", interface_name="ae0", job="gnmi", prometheus="ops", site="esams"} 10000
10000 == 10Gbps

While the interface is 40G (4x10G):

asw1-by27-esams> show interfaces ae0 brief   
Physical interface: ae0, Enabled, Physical link is Up
  Link-level type: Ethernet, MTU: 9192, Speed: 40Gbps, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled
  Device flags   : Present Running
  Interface flags: SNMP-Traps Internal: 0x4000

And properly reported through SNMP (visible in LibreNMS): https://librenms.wikimedia.org/device/device=265/tab=port/port=108302/

Looking at Grafana, more devices are impacted by this issue, for example:

fasw2-e16b-eqiad> show interfaces ae0 brief    
Physical interface: ae0, Enabled, Physical link is Up
  Link-level type: Ethernet, MTU: 9192, Speed: 200Gbps, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled
  Device flags   : Present Running
  Interface flags: SNMP-Traps Internal: 0x4000

But: gnmi_interfaces_interface_state_high_speed{instance="fasw2-e16b-eqiad:9804", interface_description="2x100G Trunk to fasw2-e16a-eqiad", interface_name="ae0", job="gnmi", prometheus="ops", site="eqiad"} 100000

Or even MXs:
gnmi_interfaces_interface_state_high_speed{instance="cr2-eqiad:9804", interface_description="External: Arelion Transit", interface_name="ae5", job="gnmi", prometheus="ops", site="eqiad"} 10000
gnmi_interfaces_interface_state_high_speed{instance="cr1-esams:9804", interface_description="External: AMS-IX 3x10G mynl-mem-9305", interface_name="ae1", job="gnmi", prometheus="ops", site="esams"} 10000
[...]


Possible workaround is to hardcode the real speed in the interface description like [40Gbps], mechanism implemented in T374614: Create alerting for saturation on sub-rated interfaces.

We should also open a JTAC case to have them fix it on the long run (or tell us in which version it has been fixed).

Event Timeline

Restricted Application added a subscriber: • Aklapper. · View Herald Transcript
ayounsi triaged this task as Medium priority.Sep 28 2026, 2:44 PM

No objection to us working with Juniper to fix this, or even the workround with the description / rewrite.

But I think for our monitoring we should be ignoring the AE, and only alerting on the member interfaces. An elephant flow can make one of those max while the overall usage on the AE is below threshold, so I think it makes more sense to have the alerting on the members.

Change #1345934 had a related patch set uploaded (by Ayounsi; author: Ayounsi):

[operations/alerts@master] Exclude ae interfaces from CoreOutboundSaturation alert

https://gerrit.wikimedia.org/r/1345934

Great point, I sent https://gerrit.wikimedia.org/r/c/operations/alerts/+/1345934 for that.

Transit/Peering interfaces are already being taken care of by the interface_description filter.

Change #1345934 merged by jenkins-bot:

[operations/alerts@master] Exclude ae interfaces from CoreOutboundSaturation alert

https://gerrit.wikimedia.org/r/1345934

• Aklapper renamed this task from Junos: ae speed not reported corectly through gNMI to Junos: ae speed not reported correctly through gNMI.Oct 5 2026, 2:31 PM