Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,25 @@
The release notes on GitHub are taken from this file: the section whose
heading is the version number.

## 1.0.4
## 1.2.2

NetFlow and IPFIX sampling
- Sampling rates are found in more of the ways devices declare them:
samplingProbability (IPFIX 311); a rate per interface that is set on the
egress interface of a flow; a single sampler whose id the flow records do
not name; a rate declared under another observation domain of the same
device (line cards export under their own ids); a samplingInterval of 0
next to samplerRandomInterval.
- A rate can be given by hand for a device that does not declare one:
sampling=N on its device line in Names (Settings). A rate the device
declares still wins; flows waiting for a rate go on with it at once.
- Settings shows the templates a device sent (template and field ids) when
its sampling rate is not declared, to see what it does send.
- Export sessions silent for an hour while the same device sends in another
way (a changed version or domain) are listed apart as stopped, not as
faults.

## 1.2.1

Pages
- Overview: **Total**, **Inbound** and **Outbound** above the bandwidth
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,11 @@ directly (see `inventory.txt.example`). Every line is optional.
net 10.10.0.0/16 Office LAN
net 203.0.113.0/24 Public servers country=JP

# device names; "unsampled" if it exports every packet (1:1)
# device names; "unsampled" if it exports every packet (1:1),
# sampling=N if it samples 1:N but does not say so in its export
device 192.0.2.1 Core router
device 192.0.2.9 Branch firewall unsampled
device 192.0.2.20 Edge router sampling=1000

# interface names, by device address and ifIndex; speed in bits per second
iface 192.0.2.1 3 ISP uplink speed=1000000000
Expand Down Expand Up @@ -1091,7 +1093,7 @@ traffic66 then restarts instead of the machine running out of memory.
| Symptom | Cause and fix |
|---|---|
| Device missing from **Settings** | Packets do not arrive: see [Check that flows arrive](#5-check-that-flows-arrive) |
| "waiting for the sampling rate" | The device has not sent its sampler options yet; most resend within minutes. If it never does, export them (`option sampler-table` on Cisco) or mark it `unsampled` in Names if it really is 1:1 |
| "waiting for the sampling rate" | The device has not sent its sampler options yet; most resend within minutes. If it never does, export them (`option sampler-table` on Cisco) or mark it `unsampled` in Names if it really is 1:1, or give its rate with `sampling=N` on its `device` line. **Settings** then lists the templates the device sent, to see what it declares |
| Numbers lower than the interface counters | See **Interface check**: loss on the way, interfaces not sampled, or flows still in the device cache (active timeout longer than 60 s) |
| Numbers higher than the interface counters | The same traffic sampled on two interfaces or two devices |
| No countries or networks ("Unknown") | No database loaded: upload one on **Settings**, see [Countries](#8-countries-networks-and-threat-lists) |
Expand Down
2 changes: 1 addition & 1 deletion cmd/traffic66/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func serve(args []string, demo bool) {
pipe := pipeline.New(pipeline.Config{L2Overhead: f.l2}, st, inv, asn, thr)
col := collector.New(pipe)
col.NF.HoldFor = f.hold
col.NF.SetUnsampled(inv.Unsampled())
col.SetSampling(inv.Unsampled(), inv.Sampling())

ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
Expand Down
6 changes: 4 additions & 2 deletions docs/README.ar.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,11 @@ NetFlow/IPFIX (عدّادات الواجهات تتضمنه، وعدّ التد
net 10.10.0.0/16 Office LAN
net 203.0.113.0/24 Public servers country=JP

# device names; "unsampled" if it exports every packet (1:1)
# device names; "unsampled" if it exports every packet (1:1),
# sampling=N if it samples 1:N but does not say so in its export
device 192.0.2.1 Core router
device 192.0.2.9 Branch firewall unsampled
device 192.0.2.20 Edge router sampling=1000

# interface names, by device address and ifIndex; speed in bits per second
iface 192.0.2.1 3 ISP uplink speed=1000000000
Expand Down Expand Up @@ -1109,7 +1111,7 @@ traffic66 الملف `license.json` في دليل البيانات مع رقم
| العَرَض | السبب والحل |
|---|---|
| الجهاز غير ظاهر في **الإعدادات** | الحزم لا تصل: انظر [التحقق من وصول التدفقات](#5-check-that-flows-arrive) |
| "waiting for the sampling rate" | لم يرسل الجهاز خيارات أخذ العينات بعد؛ ومعظم الأجهزة تعيد إرسالها خلال دقائق. إن لم يفعل أبدًا، فصدّرها (`option sampler-table` على Cisco) أو علّم الجهاز بـ `unsampled` في الأسماء إن كان يصدّر فعلًا بنسبة 1:1 |
| "waiting for the sampling rate" | لم يرسل الجهاز خيارات أخذ العينات بعد؛ ومعظم الأجهزة تعيد إرسالها خلال دقائق. إن لم يفعل أبدًا، فصدّرها (`option sampler-table` على Cisco) أو علّم الجهاز بـ `unsampled` في الأسماء إن كان يصدّر فعلًا بنسبة 1:1، أو حدّد نسبته بـ `sampling=N` في سطر `device` الخاص به. بعد ذلك تعرض **الإعدادات** القوالب التي أرسلها الجهاز، لمعرفة ما يصرّح به |
| الأرقام أقل من عدّادات الواجهات | انظر **مطابقة الواجهات**: فقد في الطريق، أو واجهات لا تؤخذ منها عينات، أو تدفقات ما زالت في ذاكرة الجهاز المؤقتة (مهلة التدفق النشط أطول من 60 ثانية) |
| الأرقام أعلى من عدّادات الواجهات | تؤخذ عينات الحركة نفسها على واجهتين أو جهازين |
| لا توجد دول أو شبكات ("غير معروف") | لم تُحمَّل أي قاعدة بيانات: ارفع واحدة في **الإعدادات**، وانظر [الدول](#8-countries-networks-and-threat-lists) |
Expand Down
6 changes: 4 additions & 2 deletions docs/README.bn.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,11 @@ entry। **টেক্সট হিসেবে সম্পাদনা (উ
net 10.10.0.0/16 Office LAN
net 203.0.113.0/24 Public servers country=JP

# device names; "unsampled" if it exports every packet (1:1)
# device names; "unsampled" if it exports every packet (1:1),
# sampling=N if it samples 1:N but does not say so in its export
device 192.0.2.1 Core router
device 192.0.2.9 Branch firewall unsampled
device 192.0.2.20 Edge router sampling=1000

# interface names, by device address and ifIndex; speed in bits per second
iface 192.0.2.1 3 ISP uplink speed=1000000000
Expand Down Expand Up @@ -1123,7 +1125,7 @@ container-এর memory limit। `-memory`-র ভাগের প্রায
| লক্ষণ | কারণ ও সমাধান |
|---|---|
| ডিভাইস **সেটিংস**-এ নেই | packet পৌঁছাচ্ছে না: [flow পৌঁছাচ্ছে কি না দেখুন](#5-check-that-flows-arrive) দেখুন |
| "waiting for the sampling rate" | ডিভাইস এখনও sampler options পাঠায়নি; বেশিরভাগই কয়েক মিনিটের মধ্যে আবার পাঠায়। কখনো না পাঠালে সেগুলো export করান (Cisco-তে `option sampler-table`) অথবা সত্যিই 1:1 হলে নাম-এ সেটিকে `unsampled` চিহ্নিত করুন |
| "waiting for the sampling rate" | ডিভাইস এখনও sampler options পাঠায়নি; বেশিরভাগই কয়েক মিনিটের মধ্যে আবার পাঠায়। কখনো না পাঠালে সেগুলো export করান (Cisco-তে `option sampler-table`) অথবা সত্যিই 1:1 হলে নাম-এ সেটিকে `unsampled` চিহ্নিত করুন, অথবা তার `device` লাইনে `sampling=N` দিয়ে rate দিন। তারপর **সেটিংস**-এ ডিভাইসের পাঠানো template-গুলো দেখা যায়, যাতে বোঝা যায় সেটি কী ঘোষণা করছে |
| সংখ্যা interface counter-এর চেয়ে কম | **ইন্টারফেস মিলানো** দেখুন: পথে loss, interface sample হচ্ছে না, অথবা flow এখনও ডিভাইসের cache-এ (active timeout 60 s-এর বেশি) |
| সংখ্যা interface counter-এর চেয়ে বেশি | একই ট্রাফিক দুটি interface বা দুটি ডিভাইসে sample হচ্ছে |
| কোনো দেশ বা নেটওয়ার্ক নেই ("অজানা") | কোনো database লোড করা নেই: **সেটিংস**-এ একটি আপলোড করুন, [দেশ](#8-countries-networks-and-threat-lists) দেখুন |
Expand Down
6 changes: 4 additions & 2 deletions docs/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,11 @@ las líneas son opcionales.
net 10.10.0.0/16 Office LAN
net 203.0.113.0/24 Public servers country=JP

# device names; "unsampled" if it exports every packet (1:1)
# device names; "unsampled" if it exports every packet (1:1),
# sampling=N if it samples 1:N but does not say so in its export
device 192.0.2.1 Core router
device 192.0.2.9 Branch firewall unsampled
device 192.0.2.20 Edge router sampling=1000

# interface names, by device address and ifIndex; speed in bits per second
iface 192.0.2.1 3 ISP uplink speed=1000000000
Expand Down Expand Up @@ -1166,7 +1168,7 @@ máquina sin memoria.
| Síntoma | Causa y solución |
|---|---|
| El equipo no aparece en **Configuración** | Los paquetes no llegan: vea [Comprobar que llegan los flujos](#5-check-that-flows-arrive) |
| "waiting for the sampling rate" | El equipo aún no ha enviado sus opciones de sampler; la mayoría las reenvía en pocos minutos. Si no lo hace nunca, expórtelas (`option sampler-table` en Cisco) o márquelo como `unsampled` en Nombres si de verdad es 1:1 |
| "waiting for the sampling rate" | El equipo aún no ha enviado sus opciones de sampler; la mayoría las reenvía en pocos minutos. Si no lo hace nunca, expórtelas (`option sampler-table` en Cisco) o márquelo como `unsampled` en Nombres si de verdad es 1:1, o indique su tasa con `sampling=N` en su línea `device`. **Configuración** muestra entonces las plantillas que envió el equipo, para ver qué declara |
| Cifras por debajo de los contadores de interfaz | Vea **Verificación de interfaces**: pérdidas por el camino, interfaces sin muestrear o flujos aún en la caché del equipo (timeout activo superior a 60 s) |
| Cifras por encima de los contadores de interfaz | El mismo tráfico se muestrea en dos interfaces o en dos equipos |
| No hay países ni redes ("Desconocido") | No hay ninguna base de datos cargada: suba una en **Configuración**; vea [Países](#8-countries-networks-and-threat-lists) |
Expand Down
6 changes: 4 additions & 2 deletions docs/README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,11 @@ fichier, et vous pouvez aussi l'éditer directement (voir
net 10.10.0.0/16 Office LAN
net 203.0.113.0/24 Public servers country=JP

# device names; "unsampled" if it exports every packet (1:1)
# device names; "unsampled" if it exports every packet (1:1),
# sampling=N if it samples 1:N but does not say so in its export
device 192.0.2.1 Core router
device 192.0.2.9 Branch firewall unsampled
device 192.0.2.20 Edge router sampling=1000

# interface names, by device address and ifIndex; speed in bits per second
iface 192.0.2.1 3 ISP uplink speed=1000000000
Expand Down Expand Up @@ -1202,7 +1204,7 @@ lieu que la machine manque de mémoire.
| Symptôme | Cause et solution |
|---|---|
| Équipement absent de **Paramètres** | Les paquets n'arrivent pas : voir [Vérifier que les flux arrivent](#5-check-that-flows-arrive) |
| "waiting for the sampling rate" | L'équipement n'a pas encore envoyé ses options de sampler ; la plupart les renvoient en quelques minutes. S'il ne le fait jamais, exportez-les (`option sampler-table` sur Cisco) ou marquez-le `unsampled` dans Noms s'il est réellement en 1:1 |
| "waiting for the sampling rate" | L'équipement n'a pas encore envoyé ses options de sampler ; la plupart les renvoient en quelques minutes. S'il ne le fait jamais, exportez-les (`option sampler-table` sur Cisco) ou marquez-le `unsampled` dans Noms s'il est réellement en 1:1, ou indiquez son taux avec `sampling=N` sur sa ligne `device`. **Paramètres** liste alors les templates envoyés par l'équipement, pour voir ce qu'il déclare |
| Chiffres inférieurs aux compteurs d'interface | Voir **Contrôle des interfaces** : pertes en route, interfaces non échantillonnées, ou flux encore dans le cache de l'équipement (timeout actif supérieur à 60 s) |
| Chiffres supérieurs aux compteurs d'interface | Le même trafic est échantillonné sur deux interfaces ou deux équipements |
| Pas de pays ni de réseaux ("Inconnu") | Aucune base de données chargée : importez-en une dans **Paramètres**, voir [Pays](#8-countries-networks-and-threat-lists) |
Expand Down
6 changes: 4 additions & 2 deletions docs/README.hi.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,11 @@ edit कर सकते हैं (`inventory.txt.example` देखें)।
net 10.10.0.0/16 Office LAN
net 203.0.113.0/24 Public servers country=JP

# device names; "unsampled" if it exports every packet (1:1)
# device names; "unsampled" if it exports every packet (1:1),
# sampling=N if it samples 1:N but does not say so in its export
device 192.0.2.1 Core router
device 192.0.2.9 Branch firewall unsampled
device 192.0.2.20 Edge router sampling=1000

# interface names, by device address and ifIndex; speed in bits per second
iface 192.0.2.1 3 ISP uplink speed=1000000000
Expand Down Expand Up @@ -1128,7 +1130,7 @@ restart हो जाता है।
| लक्षण | कारण और समाधान |
|---|---|
| डिवाइस **सेटिंग्स** में नहीं है | Packets नहीं पहुँच रहे: [जाँचें कि flows पहुँच रहे हैं](#5-check-that-flows-arrive) देखें |
| "waiting for the sampling rate" | डिवाइस ने अभी तक अपने sampler options नहीं भेजे; ज़्यादातर कुछ मिनटों में दोबारा भेज देते हैं। अगर कभी न भेजे, तो उन्हें export करवाएँ (Cisco पर `option sampler-table`) या अगर वह सच में 1:1 है तो नाम में उसे `unsampled` लिखें |
| "waiting for the sampling rate" | डिवाइस ने अभी तक अपने sampler options नहीं भेजे; ज़्यादातर कुछ मिनटों में दोबारा भेज देते हैं। अगर कभी न भेजे, तो उन्हें export करवाएँ (Cisco पर `option sampler-table`) या अगर वह सच में 1:1 है तो नाम में उसे `unsampled` लिखें, या उसकी `device` line पर `sampling=N` से rate दें। फिर **सेटिंग्स** में डिवाइस द्वारा भेजे गए templates दिखते हैं, जिससे पता चलता है कि वह क्या घोषित करता है |
| आँकड़े interface counters से कम | **इंटरफ़ेस मिलान** देखें: रास्ते में loss, interfaces sample नहीं हो रहे, या flows अभी डिवाइस के cache में हैं (active timeout 60 s से लंबा) |
| आँकड़े interface counters से ज़्यादा | वही ट्रैफ़िक दो interfaces या दो डिवाइसों पर sample हो रहा है |
| कोई देश या नेटवर्क नहीं ("अज्ञात") | कोई database लोड नहीं है: **सेटिंग्स** पर एक अपलोड करें, [देश](#8-countries-networks-and-threat-lists) देखें |
Expand Down
6 changes: 4 additions & 2 deletions docs/README.id.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,11 @@ bersifat opsional.
net 10.10.0.0/16 Office LAN
net 203.0.113.0/24 Public servers country=JP

# device names; "unsampled" if it exports every packet (1:1)
# device names; "unsampled" if it exports every packet (1:1),
# sampling=N if it samples 1:N but does not say so in its export
device 192.0.2.1 Core router
device 192.0.2.9 Branch firewall unsampled
device 192.0.2.20 Edge router sampling=1000

# interface names, by device address and ifIndex; speed in bits per second
iface 192.0.2.1 3 ISP uplink speed=1000000000
Expand Down Expand Up @@ -1159,7 +1161,7 @@ kehabisan memori.
| Gejala | Penyebab dan solusi |
|---|---|
| Perangkat tidak muncul di **Pengaturan** | Paket tidak sampai: lihat [Pastikan flow masuk](#5-check-that-flows-arrive) |
| "waiting for the sampling rate" | Perangkat belum mengirim sampler options; kebanyakan mengirim ulang dalam beberapa menit. Jika tidak pernah, ekspor opsi itu (`option sampler-table` di Cisco) atau tandai perangkat sebagai `unsampled` di Nama jika memang 1:1 |
| "waiting for the sampling rate" | Perangkat belum mengirim sampler options; kebanyakan mengirim ulang dalam beberapa menit. Jika tidak pernah, ekspor opsi itu (`option sampler-table` di Cisco) atau tandai perangkat sebagai `unsampled` di Nama jika memang 1:1, atau beri rasionya dengan `sampling=N` di baris `device`-nya. **Pengaturan** lalu menampilkan template yang dikirim perangkat, untuk melihat apa yang dideklarasikannya |
| Angka lebih rendah dari counter interface | Lihat **Pencocokan antarmuka**: loss di jalan, interface tidak di-sampling, atau flow masih di cache perangkat (active timeout lebih dari 60 detik) |
| Angka lebih tinggi dari counter interface | Trafik yang sama di-sampling di dua interface atau dua perangkat |
| Tidak ada negara atau jaringan ("Tidak diketahui") | Tidak ada basis data yang dimuat: unggah di **Pengaturan**, lihat [Negara](#8-countries-networks-and-threat-lists) |
Expand Down
Loading
Loading