This page covers the Nokia side of flow export. Read the overview first: it explains where to send the export (Before you start), the rules for every device and how sampling changes the traffic volume you see.
In every block, <agent-ip> is your NetSense agent and "<edge port>" is the name of the
router interface on a port that carries the traffic you want to see.
Which Nokia models, which protocol
Nokia SR OS exports flows with cflowd. SR OS has no sFlow, so cflowd is the only option.
| Model | OS | Use | Status |
|---|---|---|---|
| 7750 SR (incl. SR-1 and BNG roles) | SR OS | cflowd NetFlow v9, template-set basic |
Not yet verified |
| 7250 IXR-s | SR OS | cflowd NetFlow v9, template-set basic |
Not yet verified |
| 7250 IXR-6, IXR-10 | SR OS | cflowd NetFlow v9, template-set basic |
Not yet verified |
| 7250 IXR-e, IXR-e2 | SR OS | cflowd NetFlow v9, template-set basic |
Not yet verified |
| 7250 IXR-X (IXR-X1, IXR-Xs, IXR-X3) | SR OS | cflowd NetFlow v9, template-set basic |
Not yet verified |
- Nokia lists cflowd for the whole 7250 IXR family in its datasheets. How low a sampling rate
each IXR model accepts depends on the model and release: check with
?help. - cflowd offers versions 5, 8, 9 and 10 (IPFIX). NetSense does not accept version 5 or 8. Use version 9: where a device offers both, NetSense recommends NetFlow v9 over IPFIX.
- SR Linux (a different Nokia OS) has sFlow. This page covers SR OS only.
SR OS has two command line interfaces. Use the block that matches the configuration mode of your router: MD-CLI or classic CLI.
7750 SR and 7250 IXR (MD-CLI)
Not yet verified. The vendor’s documented configuration. Check it against your release
with ? help and tell Extreme Labs how it went.
cflowd NetFlow v9 with the basic template set.
edit-config private
configure cflowd admin-state enable
configure cflowd active-flow-timeout 60
configure cflowd inactive-flow-timeout 15
configure cflowd template-retransmit 60
configure cflowd sample-profile 1 sample-rate 1
configure cflowd collector <agent-ip> port 2055 version 9
configure cflowd collector <agent-ip> port 2055 template-set basic
configure cflowd collector <agent-ip> port 2055 description "NetSense"
configure cflowd collector <agent-ip> port 2055 router-instance "Base"
configure cflowd collector <agent-ip> port 2055 admin-state enable
commitedit-config private
configure router "Base" interface "<edge port>" cflowd-parameters sampling unicast type interface
configure router "Base" interface "<edge port>" cflowd-parameters sampling unicast direction ingress-only
configure router "Base" interface "<edge port>" cflowd-parameters sampling unicast sample-profile 1
commit- Source address: SR OS has no setting for the source address of the export. The router sends from the address of the interface it uses to reach the agent. That address must be the IP NetSense polls the router on, or the flows arrive without interface names. See Which address the export leaves from.
- Routing instance:
router-instancechooses how the router reaches the agent. Use"Base"when NetSense polls the system or a loopback address. When NetSense polls the out-of-band management address, use the management instance instead (router-instance ?lists the options on your release). - Template:
template-set basiccarries the byte and packet counters, interfaces, ports and TCP flags that NetSense needs, for IPv4 and IPv6. - Timeouts: active 60 s and inactive 15 s keep long sessions updated every minute. The default active timeout is 1800 s, which delays long sessions by up to 30 minutes.
- Template interval: the default resends the template every 600 s, so a new export can
take ten minutes to show anything.
template-retransmit 60shortens that to a minute. - Sampling: NetSense shows the counts as the router sends them and does not multiply
them by the sampling rate.
sample-rate 1gives the real volume. The default is 1 in 1000. If your platform rejects rate 1, or the CPM load is too high with it, use a higher N: NetSense then shows about 1/N of the real traffic. The traffic mix stays right; use the SNMP port graphs for totals. - Which interfaces: each packet must be counted once. Either set
ingress-onlyon the border interfaces (upstreams, IX, PNIs, CDN caches) and on the interfaces toward your customers or BNGs, or setdirection bothon the border interfaces only. Never sample the links between your own routers. - Interface names: keep the default interface index for cflowd (
use-vrtr-if-indexoff). The exported index then matches SNMP, and NetSense shows the interface names. - Services: cflowd sampling also works on IES and VPRN service interfaces. Set the same
cflowd-parametersthere. - Check:
show cflowd status,show cflowd collector(the sent counters keep increasing) andshow cflowd interface. - Remove:
delete configure router "Base" interface "<edge port>" cflowd-parameters,delete configure cflowd collector <agent-ip> port 2055, thenconfigure cflowd admin-state disableandcommit.
7750 SR and 7250 IXR (classic CLI)
Not yet verified. The vendor’s documented configuration. Check it against your release
with ? help and tell Extreme Labs how it went.
The same configuration in classic CLI. Classic CLI sets the active timeout in minutes.
configure cflowd
active-timeout 1
inactive-timeout 15
template-retransmit 60
sample-profile 1 create
sample-rate 1
exit
collector <agent-ip>:2055 version 9 create
description "NetSense"
template-set basic
no shutdown
exit
no shutdown
exitconfigure router interface "<edge port>" cflowd-parameters sampling unicast type interface direction ingress-only sample-profile 1- The bullets for MD-CLI apply here too: source address, sampling, interfaces and interface names.
active-timeout 1is one minute.inactive-timeoutandtemplate-retransmitare in seconds.- On older releases without
sample-profile,configure cflowd ?shows how the sampling rate is set. - The collector’s routing instance: check
collector ?on your release. - Check:
show cflowd status,show cflowd collectorandshow cflowd interface. - Remove:
configure router interface "<edge port>" cflowd-parameters no sampling unicast, then underconfigure cflowd:collector <agent-ip>:2055 shutdown,no collector <agent-ip>:2055andshutdown.
Which address the export leaves from
NetSense matches NetFlow to a router by the source address of the export packets. SR OS does not let you set that address, so check which one arrives:
- Wait a few minutes after the commit, open Flows and open the Device picker.
- The router listed under its type with its hostname: the address is right.
- The router listed under Unknown by an IP address: that is the address the export
leaves from. Either change the collector’s
router-instanceso the export leaves from the address NetSense polls, or change the router’s IP in your inventory to the address that arrives.
When flows do not arrive
Follow Check that flows arrive and Troubleshooting on the overview page. On Nokia, check these first:
- cflowd is enabled globally (
admin-state enableorno shutdownundercflowd) and the collector is enabled. Both are needed. - The collector is set to
version 9. NetSense does not accept version 5 or 8. - The interface has
cflowd-parameterswithtype interface. A collector alone exports nothing. - The agent is reachable from the routing instance the collector uses.