---
title: "Huawei traffic graphs show artificial spikes"
description: "Fix regular symmetric spikes and dips on Huawei switch traffic graphs caused by the default IF-MIB counter refresh interval."
---

> Documentation Index
> Fetch the complete documentation index at: https://netsense-nms.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Huawei traffic graphs show artificial spikes

## Symptom

The traffic graph of a Huawei switch shows a regular comb pattern: short spikes at roughly
double the real traffic level, alternating with dips, repeating every few minutes. Both
directions (IN and OUT) show the same pattern. The device is otherwise healthy and utilization
reported elsewhere looks normal.

A typical example, where real traffic is around 4.6 Gbps but the graph spikes to 9.69 Gbps:

![Huawei switch traffic graph with regular artificial spikes reaching about double the real traffic level](https://netsense-nms.com/docs/_nimbus/md/3qws1z/huawei-if-mib-spikes.png)

A quick way to recognize it: the Max value is close to exactly 2x the Last/typical value, and
the spikes are perfectly regular. Real traffic bursts are never that periodic.

## Cause

NetSense polls interface counters about once per minute. On Huawei S-series switches the
IF-MIB interface counters are not updated in real time by default: the switch refreshes them
on its own internal schedule. When a poll lands before the refresh, it reads a stale value
(a dip in the graph). The next poll then reads roughly two intervals worth of traffic at once
(a spike).

This is a display artifact of the counter sampling, not real traffic. The switch is not
experiencing these bursts.

## Affected devices

Huawei S-series switches, including the S5720, S5735, S6720 and S6730 families. The default
counter refresh behavior varies by model and software version, which is why some units on the
same network show the pattern and others do not.

## Fix

Tell the switch to update IF-MIB counters on request instead of on the delayed schedule. On
the switch CLI:

```txt
system-view
set if-mib sample-interval 0
save
```

Graphs settle within 10 to 15 minutes; no reboot and no polling change on the NetSense side
is needed.

:::note
Remember the `save`. The setting is lost on reboot otherwise, and the spikes come back after
the next power event.
:::

Apply the same command to every Huawei switch that shows the pattern. It is safe to roll out
fleet-wide on the affected families.

## If the command is rejected

- Some models and software versions do not accept the `set` prefix. Try the same command
  without it:

  ```txt
  if-mib sample-interval 0
  ```

- Older models on old software (for example S5720-36C-EI on V200R011) may not support the
  command at all. Collect the output of `display version` and contact NetSense support; we
  track workarounds per model and firmware.

:::caution
If a switch keeps showing spikes after the change, or only one unit of a model misbehaves
while identical peers read correctly, the cause is likely that device's firmware rather than
the sampling interval. Share the model and firmware version with support instead of re-applying
the command.
:::

## Verify

After 10 to 15 minutes the graph should show a steady curve that matches the real load, with
the comb pattern gone and Max no longer sitting at double the typical value.

Source: https://netsense-nms.com/docs/troubleshooting/huawei-traffic-spikes/index.mdx
