# Introducing per-Second Measurements in nProbe Flow Exports | ntop

[Blog](https://www.ntop.org/blog/)[nProbe](https://www.ntop.org/category/nprobe/)

# Introducing per-Second Measurements in nProbe Flow Exports

August 3, 20183 min read

The need to perform on-time and per-second traffic measurements clashes with protocols such as NetFlow where all counters are cumulative with respect to the flow lifetime. So if you have a flow that lasted 2 minutes and moved X bytes, you have no clue what was the throughput of this flow across the 2 minutes. For this reason people started to shorten flow duration with the drawback of putting a lot of pressure on probes as well to increase the disk space and flow records cardinality on collectors. In essence it was not a solution nor a workaround.

In order to address requests coming from our user community, nProbe (Pro) has been extended to provide per-second byte flow counters using two new information elements

\[NFv9 57944\]\[IPFIX 35632.472\] %SRC\_TO\_DST\_SECOND\_BYTES   	Bytes/sec (src->dst)
\[NFv9 57945\]\[IPFIX 35632.473\] %DST\_TO\_SRC\_SECOND\_BYTES   	Bytes/sec2 (dst->src)

As flow can potentially last a while, whereas IPFIX/NetFlow space is limited in packets, we have decided to export per-second counters only on disk/JSON while exporting only the numeric byte counters on the wire.

Example:

nprobe -P /data -T "%IPV4\_SRC\_ADDR %IPV4\_DST\_ADDR %INPUT\_SNMP %OUTPUT\_SNMP %IN\_PKTS %IN\_BYTES %FIRST\_SWITCHED %LAST\_SWITCHED %L4\_SRC\_PORT %L4\_DST\_PORT %TCP\_FLAGS %PROTOCOL  %SRC\_TO\_DST\_SECOND\_BYTES  %DST\_TO\_SRC\_SECOND\_BYTES" -i eth0

will export text files containing lines like

131.114.21.22|114.79.1.15|0|0|3|156|1380114078|1380114095|80|18151|17|6|52,,,,,,52,,,,,,,,,,,52|,,,,,,,,,,,,,,,,,,|HTTP
131.114.21.22|114.79.1.15|0|0|3|156|1380114078|1380114095|80|18144|17|6|52,,,,,,52,,,,,,,,,,,52|,,,,,,,,,,,,,,,,,,|HTTP
131.114.21.22|114.79.1.15|0|0|3|156|1380114079|1380114100|80|18156|17|6|52,,,,,,,52,,,,,,,,,,,,,,52|,,,,,,,,,,,,,,,,,,,,,,|HTTP
213.121.168.130|131.114.21.22|0|0|5|224|1380114081|1380114099|54306|80|19|6|92,,52,,,,,,,,,,,,,,,,80|52,52,,,,,,,,,,,,,,,,,40|HTTP

Let’s consider the first flow. You need to read values as follows:

The element “52,,,,,,52,,,,,,,,,,,52” means that during the first flow second (so that started at 1380114078) 52 bytes have been sent, on the following second no traffic (to shorten flow format nProbe omits the 0), …

Per-second counters are useful to troubleshoot multimedia applications such as VoIP where the codec is expecting to send the same amount of data every second. See for instance this call below to see how it works:

IPV4\_SRC\_ADDR|IPV4\_DST\_ADDR|INPUT\_SNMP|OUTPUT\_SNMP|IN\_PKTS|IN\_BYTES|FIRST\_SWITCHED|LAST\_SWITCHED|L4\_SRC\_PORT|L4\_DST\_PORT|TCP\_FLAGS|PROTOCOL|SRC\_TO\_DST\_SECOND\_BYTES|DST\_TO\_SRC\_SECOND\_BYTES|L7\_PROTO\_NAME
212.97.59.76|10.6.4.71|0|0|5|3466|1187006259|1187006295|5061|5060|0|17|1055,,,,,,,,582,,,,,,,,,,,,,,603,,,,,,,,,,,,,,1226|1006,,,,,,,,876,,,,,,,,,,,,,,395,,,,,,,,,,,,,,940|SIP
10.6.4.71|212.97.59.80|0|0|933|261240|1187006267|1187006295|16418|52542|0|17|3920,9520,9240,9240,9520,9240,9240,9520,9240,9240,9520,9240,9240,9520,9240,9240,9520,9240,9240,9520,9240,9240,9520,9240,9240,9520,9240,9240,5320|4200,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,10000,6400|RTP

This will enable you to understand if from the network standpoint everything worked as planned.

In addition to this if you use “-b 1” nProbe will print also application protocol counters at every interval by dumping the total and partial layer-7 protocol counter.

03/Aug/2018 11:11:10 \[nprobe.c:3228\] L7 Proto                   Diff      Total
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	Unknown/0             164.12 KB  164.12 KB
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	POP3/2                 30.36 KB   30.36 KB
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	SMTP/3                  2.29 KB    2.29 KB
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	DNS/5                   2.95 KB    2.95 KB
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	HTTP/7                912.20 KB  912.20 KB
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	ICMP/81                   964 B      964 B
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	RTP/87                424.13 KB  424.13 KB
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	SIP/100                77.95 KB   77.95 KB
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	Google/126             85.39 KB   85.39 KB
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	Radius/146                622 B      622 B
03/Aug/2018 11:11:10 \[nprobe.c:3242\] 	H323/158                  160 B      160 B

This feature is currently implemented in nProbe 8.5.x and it will be included in the next stable release due late this summer.

Enjoy!

## Keep reading

AnnounceSep 9, 2026

### [nProbe 11.2: BGP/BMP Support, OT Protocols, Faster Flow Collection](https://www.ntop.org/nprobe-11-2-bgp-bmp-support-ot-protocols-faster-flow-collection/)

We are pleased to announce the release of nProbe 11.2, bringing major new capabilities for network visibility, routing intelligence, flow analysis, and OT monitoring. This release significantly expands nProbe beyond traditional flow…

nProbeAug 12, 2026

### [HowTo Collect Flows: the Case of Palo Alto and Fortinet](https://www.ntop.org/howto-collect-flows-the-case-of-palo-alto-and-fortigate/)

Network devices export flow data in many flavors. Some vendors stick closely to the NetFlow/IPFIX standard, so collecting their flows is essentially plug-and-play. Others extend the standard with proprietary Information Elements (IEs)…

nProbeJun 4, 2026

### [Observability: Enabling High-Resolution Timeseries in ntopng](https://www.ntop.org/observability-enabling-high-resolution-timeseries-in-ntopng/)

Modern observability platforms are expected to answer questions that traditional monitoring systems were never designed to handle: What exactly happened during that 20-second congestion spike? Which application caused the transient burst? Why…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/introducing-per-second-measurements-in-nprobe-flow-exports/