Home Support Blog

Network Traffic Monitoring: Counters That Matter On Site

Release date:2026-11-28

Network traffic monitoring at an unattended site does not need a full observability stack: four counter families and one history bucket answer most on-site questions. As of November 2026, the temptation is to start with flow telemetry and APM dashboards. In practice, the sites that stay up are the ones where plain polling and the IF-MIB counters under RFC 2863 are correct first. This page sets out what to collect, what each number means, and the two gaps that are routinely misread as equipment faults.

Rayin (Shenzhen Rayin Technology) is a manufacturer of GPON OLTs and industrial Ethernet switches.

KEY TAKEAWAYS
  • Four counter families do the heavy lifting: utilisation (ifInOctets / ifOutOctets), errors (ifInErrors and CRC), discards (ifInDiscards / ifOutDiscards) and link state, all defined in RFC 2863 IF-MIB.

  • One history bucket matters more than a wall of live graphs: the nine-group MIB of RFC 2819 and RFC 2021 includes a history group that keeps a trend across a link flap, polled at 30 s to 5 min under SNMPv3 (RFC 3411) or SNMPv2c (RFC 3416).

  • Sampled flow export is a statistical estimate, not a meter, and template-based export (RFC 3954 / RFC 7011) goes dark until templates refresh after a collector restart. Neither is a substitute for exact counters.

Which counters actually answer a call-out?

The interface counters worth collecting fall into four families, and each answers a different question. Utilisation tells you whether the pipe is full. Errors tell you whether frames arrived damaged. Discards tell you whether the switch threw away good frames because a queue was full. Link state tells you whether the port was up at all. All four are standard IF-MIB objects in RFC 2863, so a monitoring system from any vendor reads the same numbers. That is the practical reason to begin with what an OT site should collect and only then add richer telemetry: get the scope right before adding volume.

Train

FamilyIF-MIB object (RFC 2863)What a rising value means on site
UtilisationifInOctets / ifOutOctetsThe link is approaching its rated rate
ErrorsifInErrors, CRC-alignment errorsPhysical layer trouble: copper run, connector, duplex mismatch
DiscardsifInDiscards / ifOutDiscardsValid frames dropped at a congested queue or buffer
Link stateifOperStatus, link up/down trapsThe port flapped or a neighbour went away

The diagnostic value is in the combination. Errors climbing while utilisation stays flat points at the cable, not the load. Discards climbing with utilisation near the ceiling points at congestion, not a bad contact. A speed or duplex mismatch shows up in the error column long before anyone complains. None of this needs a packet capture to start: read the four families, write them down, and the fault usually separates itself.

Why does a history bucket beat a wall of real-time graphs?

Because an unattended site fails when nobody is watching. A live graph only shows the moment you look; a history bucket keeps the minutes before and after the event. The nine MIB groups defined in RFC 2819 and extended in RFC 2021 are statistics, history, alarms, hosts, host TopN, matrix, filters, packet capture and events. Most small sites need only the statistics, history and alarm groups. The history group samples the counters on a fixed interval and stores the series locally on the device, so a technician arriving after a fault can still see the build-up.

MIB group (RFC 2819 / RFC 2021)JobNeeded on a small site?
StatisticsCurrent per-port countersYes — the baseline
HistoryBucketed snapshots over timeYes — the single most useful group
AlarmsThresholds that raise an eventYes — turns a number into a ticket
Hosts / host TopNPer-host traffic rankingOptional
Matrix, filters, capture, eventsConversation tracking, packet captureOnly for a targeted investigation

Polling cadence is the other half of the decision. Under SNMPv3 (RFC 3411) and SNMPv2c (RFC 3416), 30 s to 5 min is the working range (industry-typical): faster adds management load without reliably catching a microburst, slower loses the shape of a transient fault. A 30 s history bucket with 5-minute central polling is a common compromise. The point is that a stored trend survives a link flap or a collector outage, whereas a real-time dashboard goes blank at exactly the wrong moment.

Where do sampled flows and template-based export fit?

They answer a different question: who is talking to whom, and in what mix. The v5 sampled-flow format (RFC 3176 describes an early version; UDP 6343) uses 1:N packet sampling and keeps no flow table, so it is light on the device and gives a statistical picture of traffic rather than an exact byte count. Template-based flow export is the other branch: NetFlow v9 (RFC 3954, informational) and IPFIX (RFC 7011) use templates and IANA information elements, with IPFIX on UDP 4739. Both replaced the older fixed v5 flow format, and both are exact about flows only because they are told what a flow is, not because they count every packet.

TelemetryBasisWhat it is good forWhat it is not
v5 sampled-flow exportRFC 3176, UDP 6343, 1:N samplingTraffic mix, top talkers, rough volumesExact billing; precise byte counts
NetFlow v9RFC 3954, templatesFlow records with flexible fieldsA real-time counter substitute
IPFIXRFC 7011, UDP 4739, IANA elementsVendor-neutral template exportUseful before templates arrive
IF-MIB countersRFC 2863Exact octets, errors, discardsWho-talks-to-whom detail

This is the layer to add after the sFlow, NetFlow and RMON compared decision is made, and it is worth being blunt about the trade: sampled numbers are estimates. Scaling a 1-in-N sample up to a bill is not defensible, whereas ifInOctets read directly from RFC 2863 is. Keep both, but label them differently in the handover document so nobody bills from a sample.

What breaks on an unattended site, and how do you tell a gap from a fault?

Two gaps cause most false alarms. The first is a template refresh. With RFC 3954 and RFC 7011 export, a collector that reboots has no templates until the exporter resends them; during that window there are simply no flow records, and the silence is normal rather than a failed exporter. The second is a counter clear or wrap: a device reboot or a manual reset makes the deltas look like a traffic collapse. On a Rayin industrial Ethernet switch, as on any standards-based device, the IF-MIB counters follow RFC 2863, so the fix is to timestamp every poll and treat a reset as a discontinuity, not as a drop in load.

Observed gapLikely causeFirst check
No flow records after a collector restartTemplates not yet refreshed (RFC 3954 / RFC 7011)Wait for the next template refresh; verify UDP 4739
Counters suddenly near zeroCounter clear or device rebootCompare uptime and sysUpTime, reset the baseline
Errors high, utilisation flatPhysical layer, not loadCRC and ifInErrors under RFC 2863
Discards high, utilisation highCongested queue or bufferifInDiscards / ifOutDiscards, then queue depth
Live graph blank, history intactPoller or collector outageHistory group (RFC 2819) instead of the dashboard

Notice that the interface counters and the flow layer fail in different ways. A counter gap is usually local to the device or the poller; a flow gap is usually the collector or its templates. Writing that distinction into the runbook stops a night-shift engineer from rebooting a healthy switch to "fix" a collector that is simply waiting for a refresh.

How should the polling plan be written into a handover?

A handover should name the objects, the cadence and the retention, not just say "monitoring enabled". List the interface counters by name (ifInOctets, ifInErrors, ifInDiscards, ifOutDiscards, CRC), state the polling interval under SNMPv3 (RFC 3411) or SNMPv2c (RFC 3416), and record how long the RFC 2819 history bucket is kept. Add the alarm thresholds that turn a rising value into a ticket, and note the expected template-refresh wait for any RFC 3954 or RFC 7011 collector.

Handover itemWhat to write downBasis
Objects polledFour counter families by MIB nameRFC 2863 IF-MIB
Cadence30 s to 5 min, plus history intervalRFC 3411 / RFC 3416, industry-typical
RetentionHow many history buckets survive a flapRFC 2819 / RFC 2021
ThresholdsError and discard rates that raise an alarmRFC 2819 alarm group
Flow exporterTemplate refresh wait, UDP 4739 or 6343RFC 3954 / RFC 7011, RFC 3176

That single page is what makes the next call-out answerable. A site with four clean counter families, one history bucket and a documented polling cadence will resolve most incidents without a packet capture; a site with a sophisticated flow dashboard and no baseline will still be guessing. Observability is a ladder, and polling is the bottom rung.

FAQs

Do I need flow telemetry to monitor a small site?

Not usually. Four counter families — utilisation, errors, discards and link state — plus one history bucket answer most call-outs at a small site (RFC 2863, RFC 2819). At Rayin, as on any standards-based switch, those counters are read the same way, so flow export is a second layer rather than a prerequisite.

Which IF-MIB object points at a bad cable?

Look at ifInErrors and the CRC-alignment counters under RFC 2863. Rising errors with flat utilisation usually mean a physical layer fault: a marginal copper run, a dirty connector or a duplex mismatch. Discards, by contrast, mean the port dropped a valid frame because a queue or buffer was full.

How often should I poll an unattended switch?

Between 30 seconds and 5 minutes is the common range under SNMPv3 (RFC 3411) or SNMPv2c (RFC 3416). Poll faster and you add load without catching microbursts; poll slower and you lose the shape of a transient fault. Pair the interval with a history bucket so the trend survives a link flap.

Why did flow records stop after a collector restart?

With template-based export under RFC 3954 (NetFlow v9) or RFC 7011 (IPFIX), a restarted collector has no templates until the exporter resends them. The gap is normal, not a failed exporter. Wait for the next template refresh before raising a ticket, and check UDP 4739 reachability first.

Can sampled flow data be used for billing?

No. Sampled data is a statistical estimate built from 1:N packet sampling, good for who-talks-to-whom and a rough traffic mix, not for exact byte counts or billing. If you need precise volumes, read the RFC 2863 octet counters directly instead of scaling up a sample.

Related Reading


How this article was made

The counter and polling statements above come from public sources: the IETF RFC series — RFC 2819 and RFC 2021 for the nine-group MIB, RFC 2863 for the IF-MIB, RFC 3411 and RFC 3416 for SNMP, RFC 3176 and the v5 sampled-flow format, RFC 3954 for NetFlow v9 and RFC 7011 for IPFIX. Only series names and RFC numbers are cited; no clause numbers are asserted. The worked examples, comparison tables and wording were written and checked by Sara against those sources before publication. Anything presented as industry-typical is labelled as such; nothing here is a measured figure from a Rayin product or a claim of any certification.

About the author: Sara — Sara is a Customer Manager at Rayin with over 10 years of experience in the communications field. In her free time, she enjoys badminton and swimming.

Connect with Sara on LinkedIn


About Rayin: Shenzhen Rayin Technology Co., Ltd. — Company Profile

Get A Quote

You have agreed to this website’s《Privacy Policy》