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.
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.
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.

| Family | IF-MIB object (RFC 2863) | What a rising value means on site |
|---|---|---|
| Utilisation | ifInOctets / ifOutOctets | The link is approaching its rated rate |
| Errors | ifInErrors, CRC-alignment errors | Physical layer trouble: copper run, connector, duplex mismatch |
| Discards | ifInDiscards / ifOutDiscards | Valid frames dropped at a congested queue or buffer |
| Link state | ifOperStatus, link up/down traps | The 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.
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) | Job | Needed on a small site? |
|---|---|---|
| Statistics | Current per-port counters | Yes — the baseline |
| History | Bucketed snapshots over time | Yes — the single most useful group |
| Alarms | Thresholds that raise an event | Yes — turns a number into a ticket |
| Hosts / host TopN | Per-host traffic ranking | Optional |
| Matrix, filters, capture, events | Conversation tracking, packet capture | Only 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.
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.
| Telemetry | Basis | What it is good for | What it is not |
|---|---|---|---|
| v5 sampled-flow export | RFC 3176, UDP 6343, 1:N sampling | Traffic mix, top talkers, rough volumes | Exact billing; precise byte counts |
| NetFlow v9 | RFC 3954, templates | Flow records with flexible fields | A real-time counter substitute |
| IPFIX | RFC 7011, UDP 4739, IANA elements | Vendor-neutral template export | Useful before templates arrive |
| IF-MIB counters | RFC 2863 | Exact octets, errors, discards | Who-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.
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 gap | Likely cause | First check |
|---|---|---|
| No flow records after a collector restart | Templates not yet refreshed (RFC 3954 / RFC 7011) | Wait for the next template refresh; verify UDP 4739 |
| Counters suddenly near zero | Counter clear or device reboot | Compare uptime and sysUpTime, reset the baseline |
| Errors high, utilisation flat | Physical layer, not load | CRC and ifInErrors under RFC 2863 |
| Discards high, utilisation high | Congested queue or buffer | ifInDiscards / ifOutDiscards, then queue depth |
| Live graph blank, history intact | Poller or collector outage | History 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.
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 item | What to write down | Basis |
|---|---|---|
| Objects polled | Four counter families by MIB name | RFC 2863 IF-MIB |
| Cadence | 30 s to 5 min, plus history interval | RFC 3411 / RFC 3416, industry-typical |
| Retention | How many history buckets survive a flap | RFC 2819 / RFC 2021 |
| Thresholds | Error and discard rates that raise an alarm | RFC 2819 alarm group |
| Flow exporter | Template refresh wait, UDP 4739 or 6343 | RFC 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.
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.
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.
About Rayin: Shenzhen Rayin Technology Co., Ltd. — Company Profile