---
title: "Flow export from Nokia routers"
description: "Nokia 7750 SR and 7250 IXR on SR OS - cflowd NetFlow v9 with the basic template set, in MD-CLI and classic CLI, interface sampling, sampling rate and traffic volume, and how to make the export leave from the address NetSense polls."
---

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

# Flow export from Nokia routers

This page covers the Nokia side of flow export. Read the
[overview](https://netsense-nms.com/docs/guides/flow-export/) first: it explains where to send the export
([Before you start](https://netsense-nms.com/docs/guides/flow-export/#before-you-start)), the
[rules for every device](https://netsense-nms.com/docs/guides/flow-export/#rules-for-every-device) and how
[sampling changes the traffic volume](https://netsense-nms.com/docs/guides/flow-export/#sampling-and-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](#7750-sr-and-7250-ixr-md-cli) or
[classic CLI](#7750-sr-and-7250-ixr-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.

```txt
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
commit
```

```txt
edit-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](#which-address-the-export-leaves-from).
- **Routing instance:** `router-instance` chooses 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 basic` carries 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 60` shortens 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 1` gives 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-only` on the
  border interfaces (upstreams, IX, PNIs, CDN caches) and on the interfaces toward your
  customers or BNGs, or set `direction both` on the border interfaces only. Never sample the
  links between your own routers.
- **Interface names:** keep the default interface index for cflowd (`use-vrtr-if-index`
  off). 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-parameters` there.
- **Check:** `show cflowd status`, `show cflowd collector` (the sent counters keep increasing)
  and `show cflowd interface`.
- **Remove:** `delete configure router "Base" interface "<edge port>" cflowd-parameters`,
  `delete configure cflowd collector <agent-ip> port 2055`, then
  `configure cflowd admin-state disable` and `commit`.

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

```txt
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
exit
```

```txt
configure router interface "<edge port>" cflowd-parameters sampling unicast type interface direction ingress-only sample-profile 1
```

- The bullets for [MD-CLI](#7750-sr-and-7250-ixr-md-cli) apply here too: source address,
  sampling, interfaces and interface names.
- `active-timeout 1` is one minute. `inactive-timeout` and `template-retransmit` are 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 collector` and `show cflowd interface`.
- **Remove:** `configure router interface "<edge port>" cflowd-parameters no sampling unicast`,
  then under `configure cflowd`: `collector <agent-ip>:2055 shutdown`,
  `no collector <agent-ip>:2055` and `shutdown`.

## 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:

1. Wait a few minutes after the commit, open **Flows** and open the **Device** picker.
2. The router listed under its type with its hostname: the address is right.
3. The router listed under **Unknown** by an IP address: that is the address the export
   leaves from. Either change the collector's `router-instance` so the export leaves from the
   address NetSense polls, or change the router's IP in
   [your inventory](https://netsense-nms.com/docs/guides/adding-devices/) to the address that arrives.

## When flows do not arrive

Follow [Check that flows arrive](https://netsense-nms.com/docs/guides/flow-export/#check-that-flows-arrive) and
[Troubleshooting](https://netsense-nms.com/docs/guides/flow-export/#troubleshooting) on the overview page. On Nokia, check
these first:

- cflowd is enabled globally (`admin-state enable` or `no shutdown` under `cflowd`) 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-parameters` with `type interface`. A collector alone exports
  nothing.
- The agent is reachable from the routing instance the collector uses.

Source: https://netsense-nms.com/docs/guides/flow-export/nokia/index.mdx
