Flow: overview and analysis
Flow is the traffic analysis and anti-DDoS environment of Ravicor: it collects NetFlow/IPFIX/sFlow from your routers, shows the provider traffic in real time, and detects attacks automatically. This page covers the concepts, the dashboard, and all the analysis screens. Exporter setup and mitigation are in Flow: configuration and mitigation.
What Flow is New in 7.2
The provider edge routers (called Exporters) send flow telemetry, in NetFlow v5/v9, IPFIX, or sFlow v5 formats, to a built-in collector that runs on the same server as Ravicor. With this data, Flow lets you:
- See the provider traffic in real time: by exporter, interface, ASN, protocol, country, and customer.
- Detect DDoS attacks automatically, with classification of the exact vector and severity measured by the real impact on the link.
- Analyze an incident in depth: attack anatomy, path across the backbone, forensics, and AI assessment.
- Mitigate with surgical FlowSpec or RTBH blackhole via BGP (details in Mitigation: FlowSpec and RTBH).
- Generate 95th percentile reports for transit billing, comparisons, and post-mortem in PDF.
Access is through the Flow item in the side menu. The item is always visible: it is the way in to enable and configure the environment, even when nothing is registered yet.
Prerequisites
| Requirement | Detail |
|---|---|
| Subscription plan Premium Flow+ | Flow is unlocked according to the contracted plan: Premium Flow allows 1 exporter, Gold Flow up to 4, and Enterprise has no limit. Outside these plans, the Flow area and alerts are not active. See Plans and features. |
| User permission | In the access group setup there are three levels: Do not include Flow, Include Flow (read-only), and Include and manage Flow. Master users see everything. |
| Group scope | A group can be limited to specific exporters through the Select the exporters this group can see field. A scoped user only sees data from those exporters, and the cards that aggregate the whole provider (Network risk, Flow health, Customers, Traffic anomalies, world map, and Peering) are hidden. Details in Group access. |
| Hardware | Flow itself classifies the server (RAM, cores, load, and IO) and blocks heavy features the machine cannot handle, such as ClickHouse, city-level GeoIP, and deep forensics. See Server capacity. |
| Network | Exporters must reach the collector on UDP ports 2055 (NetFlow/IPFIX) and 6343 (sFlow). The Ravi server firewall is opened automatically when you save the exporter. |
Essential concepts
Some terms appear on every Flow screen. It is worth understanding each one before operating the environment.
| Concept | What it means |
|---|---|
| Exporter | The router that sends NetFlow/IPFIX/sFlow to the collector. Each exporter has its own flow version, sampling rate, and interfaces. |
| Sampling | Routers usually export 1 flow every N (for example 1:1000 on core routers). Flow multiplies it back to estimate the real traffic. In addition, the Explorer internally stores an extra sample (1/16 by default), and the screens always warn with the text estimated from 1/{n} sampling. |
| My networks | The provider and customer IP blocks that Flow watches as possible victims. Without registered prefixes, Flow does not know what to protect, and this weighs on the risk score as the No monitored networks factor. Registration in My networks. |
| Attack vector | The exact attack signature, classified by the collector: amplification (DNS, NTP, SSDP, Memcached, Chargen, CLDAP, SNMP, NetBIOS), UDP flood, TCP flood, SYN flood, ACK flood, RST flood, ICMP flood, DNS query flood, fragmentation, carpet bombing, multi-vector, or generic. Detection runs in three scopes (by victim IP, by prefix, and by interface) plus an outbound axis, for when a provider customer is the source of an attack against third parties. |
| Anti-false-positive | Critical detection combines a confidence score from 0 to 100 (vector signature, average packet size, share of web/CDN traffic, number of sources, baseline, and allowlist), requires a few seconds of sustained activity, and discards ICMP backscatter. |
| Severity by impact | "Is it an attack?" and "does it matter?" are separate questions. The effective severity is computed by the impact on the link: an event only becomes critical when the peak consumes 50% or more of the reference capacity, with an absolute floor of 200 Mbps (below that it is never critical). Small or short attacks are reclassified as informational: they stay in the history but do not wake the NOC. The thresholds are adjustable, see Severity by impact. |
| Seasonal baseline | Flow learns the normal traffic by hour of day and by day type (weekday, weekend, or holiday, with the Brazilian national holidays included automatically, movable ones as well). Anomalies compare the current moment with the normal for that hour of that day type. |
| Anomaly | Different from an attack event: it is a statistical deviation from the baseline (4 standard deviations by default, above a 10 Mbps floor). It serves to catch a distributed or small attack that does not trip a fixed threshold, and also unexpected traffic changes. |
| Threat intelligence | Local base of malicious IPs fed by public feeds (FireHOL, Spamhaus DROP, abuse.ch, Tor exit nodes, blocklist.de), updated hourly. The incident console flags the sources that appear on these lists. |
| BGP route collection | BGP collection sessions feed Flow with the real routing table. With it, each flow is enriched with the true next-hop, peer, and AS_PATH, and the cards gain the real routing badge. Configuration in BGP session. |
| 95th percentile | Classic transit billing metric: it discards the top 5% of the period measurements. Flow computes it over 1-minute samples, using the higher value between inbound and outbound in each minute. |
Flow dashboard
The main Flow screen is a real-time NOC panel: it refreshes on its own every 3 seconds, without reloading the page.
Top of the screen
- The Flow title carries a collector status dot: green with Collector online or red with Collector offline. An orange Under maintenance — alerts muted badge appears when a mute window is active.
- Navigation buttons: Explore, Reports, Flow Sankey, and Incident log. The gear opens the Flow settings modal and only appears for users with Flow management level.
- With no exporter registered, the screen shows No flow source configured and guides you to register a router in the gear.
Overview bar
Three indicators always aggregated across all exporters: Forwarded traffic, Flows per second, and Active attacks. Forwarded traffic is the total currently passing through the devices, as a single number; the information icon next to the label explains what it represents and where to follow the real download and upload, interface by interface (the Interfaces card). The attacks card turns red when the number is greater than zero.
Network risk card
The Network risk card answers the question "am I safe today?" with an executive score from 0 to 100 on a ring gauge, classified as Low, Moderate, High, or Critical. Next to it, each factor that weighed on the score appears on its own line, with its weight (+N) and a description of what it means and what to do, for example: Collector down, active critical attacks, unmitigated attacks, High packet drop, Low free RAM, DNS unreachable, open routing alerts, Mitigation has no active BGP session, and No monitored networks. The information icon in the title opens the How the risk is calculated guide, with the ranges of each level. When all is well, the card shows No risk factors right now.
Attack banner
When there is an active event, the Traffic under attack strip appears at the top: pulsing red on a critical event, orange on warning. Each line carries the victim, the vector, the peak, the percentage of link consumed, and the Suggested action, with the Review and approve action button that opens the incident console. With no events, the area shows No ongoing attack.
Exporter strip
One chip per exporter (plus a chip for "all") with name, current rate, mini-chart, and a red attack counter when present. The chip turns red when the exporter is under attack and shows No flow received when the router stopped exporting. Clicking a chip filters all detail cards to that exporter.
Detail cards
| Card | What it shows |
|---|---|
| Real-time traffic | Forwarded traffic chart with 1h, 6h, and 24h windows. |
| Top destinations / Top sources / Top ports | Tabs with the biggest consumers. Each line is clickable for investigation (see the drill-down below). |
| Live world map | Traffic by country and animated country-to-country flows. Details in Sankey and world map. |
| Peering / Transit cost | Classifies traffic by the ASN commercial relationship: Transit, Peering, CDN, or Cache, with the By relationship donut, the Top ASNs list, and the Peering recommendation (Peer and Cache actions), pointing out the biggest ASNs arriving via paid transit and non-optimized CDNs. With BGP collection active, it gains the real routing badge. |
| Interfaces | Interfaces of each exporter with inbound and outbound rate and a Utilization bar against capacity (discovered via SNMP or entered in the Contracted capacity field). |
| Traffic by ASN | Donut with Destination (ASN) and Source (ASN) tabs, with the Others slice for the tail. |
| Protocol | Distribution of TCP, UDP, ICMP, GRE, and other protocols. |
| Customers | Commercial view by customer. Details in Customer view. |
| BGP table | State of the collection sessions, route lookup, and hijack alerts. Details in BGP hijack alerts. |
| Traffic anomalies (baseline) | Interfaces and prefixes outside the learned normal (see below). |
| Port 0 traffic | Dedicated monitor for traffic without a transport port (see below). |
| Saturation forecast | Interfaces and customers trending toward saturation. Details in Saturation forecast. |
| Flow health | The monitor monitoring Flow itself (see below). |
Drill-down
Clicking any IP, ASN, port, protocol, or interface in the tops and donuts opens a modal with the time series and the statistics of that value. It is the quick investigation path without leaving the dashboard. For more elaborate analysis, use the Explorer.
Traffic anomalies (baseline)
The Traffic anomalies (baseline) card lists interfaces and prefixes outside the learned normal: label, direction (inbound or outbound), current value against the Normal, deviation, and since when. When all is correct, it shows All within normal.
The Acknowledge action (with the Acknowledge anomaly? confirmation) removes the anomaly from every user list, stops alerting on any channel, and keeps the record in the history. Whoever acknowledged it still sees it and can use Reopen.
Port 0 traffic
Dedicated monitor for packets without a transport port, typically IP fragments or forged traffic: spikes may indicate a fragmentation attack invisible in the aggregate views. The card shows the percentage of total traffic (it turns red when high), bps and pps, a 6-hour mini-chart, and the Top sources and Top destinations columns. The Open in Explorer link opens the Explorer already filtered for this traffic.
Flow health
The Flow health card monitors the environment itself. The title indicates Active (green) or Collector down (red), with the up for time. The metrics use a green, orange, and red traffic light: Packets/s, Flows/s, Internal drops, Kernel drops, Memory (RSS), RIB routes, Rollup lag (delay of the database write), Flow tables (size on disk), Host free RAM, load per core, IO Wait, and Swap. The External dependencies footer actively tests DNS, IPv4 and IPv6 Internet, the update server, Telegram, and the AI proxy.
Flow also self-alerts: when health degrades (collector stopped, high drop for several minutes, delayed write, or very low host RAM), the system sends a degraded-health warning on the Flow channels and another one when it normalizes. During a maintenance window, these warnings are suppressed.
Incident log
The Incident log button opens the history of attack events and anomalies, with Active and All filters and the When, Type, Target, Severity, Status (Active, Resolved, or Mitigating), Duration, peak, and Alerted via (icons of the channels that received the alert) columns. The list refreshes every 5 seconds while open, and clicking an event opens the incident console.
The Mark false positive action resolves and mutes the event and teaches an exception to the detector, so the same pattern does not alert again. The confirmation explains exactly this before applying.
Traffic Explorer
The Explore button opens a free pivot over the sampled flows. It answers questions like "what are the top destination ASNs on link X between 2pm and 4pm yesterday, UDP only?".
Controls
| Control | Options |
|---|---|
| Dimension | 18 options: Dest ASN, Source ASN, Dest upstream, Source upstream, Dest country, Source country, City (destination), City (source), Dest IP, Source IP, Dest port, Source port, Protocol, Egress interface, Ingress interface, Next-hop, Customer (prefix), and Exporter. The city dimensions only appear with city-level GeoIP enabled. |
| Metric | Traffic (bytes) or Packets. |
| Dimension 2 (column) | Second dimension, used by the matrix visualization. |
| Window | 1h, 6h, 24h, 7d, or Custom with the From and To fields. |
| Top | 10, 15, 25, or 50 results. The Apply button runs the query. |
| Filters | Add filter accepts any allowed field with an exact value; protocol and exporter become selection lists. Links coming from other cards (like the port 0 one) already arrive with filters filled in from the URL. |
Visualizations
- Line (time): stacked time series of the top N.
- Radar: comparison of proportions between the items.
- Scatter (ports): bubble chart relating value, rate, and number of flows.
- Matrix (conversation): 2D heatmap crossing the main dimension with Dimension 2, the "who talks to whom" (for example ASN against ASN).
- Top N table with bps, pps, Share, and Flows. IPs present in threat lists get a red badge.
The Explorer numbers are estimates: they combine the router sampling with the internal sampling, and the screen indicates the applied factor. The default sample retention is 48 hours, so 7-day windows may come out partial. For exact billing numbers use the Reports, which are not sampled. For long, non-sampled retention there is the ClickHouse without sampling (long retention) option in the settings, recommended only for servers with spare capacity.
Users in scoped groups can only pivot over the exporters released to the group.
Customer view
The Customers card turns Flow into a commercial view: it aggregates the My networks prefixes by the Customer field of the registration. It is the screen for support and sales to answer "how much of the contracted bandwidth is this customer using, and is it under attack?".
The list sorts by "attacks first, then highest traffic" and shows, per customer: current inbound and outbound traffic, the Contracted bandwidth (sum of the prefix bandwidth, in Mbps), the usage percentage, the number of Prefixes, and the active attacks.
- Register the prefixes in My networks, filling in the Customer field and the contracted bandwidth of each block.
- On the dashboard, open the Customers card and click a customer.
- The drill shows the Customer traffic chart with a window selector, the prefix list with the rate of each CIDR, and the ongoing attacks against it.
Without prefixes that have a customer filled in, the card guides: No customers. Add prefixes with the "customer" field in settings. This card aggregates the whole provider and is therefore hidden for users in groups scoped by exporter.
Sankey and world map
Flow Sankey
The Flow Sankey button tells the traffic story at a glance, in chained stages:
- Download: Source ASN → Upstream → Interface → Customer.
- Upload: Customer → Interface → Upstream → Destination ASN.
Controls: Direction, Window (1h, 6h, 24h, 7d, or custom), Router (default All), and Stages per column (top 5 to 15 per stage; the tail becomes Others). Special nodes indicate data that Flow could not attribute: No BGP upstream, No customer, No interface, and Unknown. Each link shows the bps in the tooltip and the header carries the Total traffic.
The Sankey uses the same sample base as the Explorer. If the screen shows No sampled flows in this window. Enable Explorer sampling in Settings., turn on sampling in the Flow settings. With BGP route collection active, the upstream and peer stages use the real routing.
Live world map
The dashboard map card has four modes, selected by buttons in the title:
- Flows: country-to-country pairs with animated arcs (particles in the traffic direction), a bps label, and pins with a flag, considering the last 5 minutes.
- Download, Upload, and Total: bubbles per country with the live aggregate.
The side list is clickable and syncs the highlight with the map. During an incident, the victim gets its own pin. The same map component appears in the incident console and as a widget in the Dashboards environment.
The map opens locked, so scrolling the page does not change the zoom or position by accident. The Unlock button, in the top-right corner of the map, enables zooming and repositioning and turns into Lock to lock it again.
- By default the map uses online tiles; the Offline map (local tiles) option draws local country outlines, ideal for servers without internet access.
- Country geolocation uses a local base, at no cost. City granularity is optional (City-level GeoIP (.mmdb)) and depends on the server capacity.
Incident console
The DDoS incident console is the response center for an attack. It opens through the Review and approve action button of the attack banner or by clicking an event in the Incident log. The header summarizes the attack type and vector, the Victim (IP, port, and reverse name), and the Peak, Duration, Start, severity, and link percentage indicators.
The blocks, in the order they appear:
- Action: the Suggested action carries an instant recommendation (FlowSpec or RTBH, depending on the vector and the equipment) and the Mitigate by vector and Blackhole (RTBH) buttons, the latter with the Drops ALL of the target traffic: warning. Before executing, the system runs a feasibility Diagnostics (is the BGP session active? does the peer accept FlowSpec?) and may warn Could not mitigate right now, with the Mitigate anyway option. The mitigation walkthrough is in Mitigation: FlowSpec and RTBH.
- DDoS Analyst (AI): AI assessment of the event (detailed in the next section).
- Victim traffic during the attack: chart of the victim within the event window.
- Attack path: a Sankey scoped to the event, showing Source (ASN) → Ingress (ingress interface) → Egress (egress interface) → victim. Below, Interface saturation compares the real peak with the capacity of each interface involved, classifying it as Critical (85% or more), Warning (60% or more), and Healthy.
- Light forensics (when data is available): Packet size distribution with automatic interpretation (small packet suggests flood or amplification, large packet suggests volumetric/content traffic or fragmentation); Source metrics with Distinct IPs, /24 subnets, ASNs, Top-10 concentration, and Packets/source (signs of a botnet against few sources); TCP flags with the dominant combination; amplification analysis with the estimated factor; header fingerprint (probable operating system, TTL, TCP window, spoofing hint) when deep forensics is on; source reputation; and Compare with normal, with the peak against the baseline, Attacks on the victim (7d), and Simultaneous anomalies on the network.
- Capture forensics: the On-demand forensic capture modal generates the ready command for TZSP mirroring (Mikrotik) or capture via SSH/SFTP (Huawei, using the credential vault) pointing to the collector. The packet content is never stored. The feature depends on the server capacity.
- Anatomy: Top attack sources lists up to 20 IPs with ASN, country, and packet percentage, with a per-source Threat badge (Blocklist, Tor, or Scanner) and the summary of how many sources are in threat lists. The block is completed by Top source ASNs, Geographic origin of the attack (map with arcs from the sources to the victim), and Breakdown by country. Right at the start of the attack it may show No sources recorded yet.: the anatomy fills in as the event evolves.
- Reports: PDF report and Post-mortem (PDF) buttons (see Automatic post-mortem).
Incident AI analyst
The console DDoS Analyst (AI) block requests a natural-language assessment of the event. When you click Analyze with AI, the system gathers all the available evidence (detector signals, dominant ports, forensics, attack path, threat intelligence) and sends it to the AI engine; while it processes, it shows Analyzing the attack….
The result comes structured:
| Field | Possible values |
|---|---|
| Classification | Real attack, Suspicious, or Likely false positive. |
| Vector | The vector confirmed by the analysis. |
| Botnet | Yes, No, or Maybe. |
| Recommended mitigation | Surgical FlowSpec, Blackhole (RTBH), or Monitor, with the filter suggestion when applicable. |
| Recurrence risk | Low, Medium, or High. |
| Recommended actions and Confidence | List of next steps and the confidence level of the assessment. |
The analysis is trained to avoid false positives: it considers ICMP backscatter, legitimate CDN and web traffic, and the outbound scenario, where a provider customer is the source of the attack.
The feature depends on the Ravi AI proxy configured on the server. Without it, the block shows AI unavailable right now. and the corresponding check appears in the External dependencies of the Flow health card.
Reports and 95th percentile
The Reports button opens the capacity and billing screen. Unlike the Explorer, the reports use complete 1-minute measurements, without sampling: these are the numbers to close a transit invoice.
- Choose the Scope: Interface or Customer, and select the target.
- Choose the Period: Last 7 days, Last 30 days, Current month, or Previous month.
- Optionally check Compare with previous period.
- Click Apply. To export, use Generate PDF.
Indicators shown:
- 95th percentile (billing): the billing value, with an inbound and outbound breakdown. The calculation uses the higher value between inbound and outbound in each minute of the period.
- Peak and Average of the period.
- Utilization: the 95th percentile divided by the Capacity, with a colored bar (green, orange, and red depending on the range). Without known capacity, the screen indicates capacity not set.
- Saturation projection: Saturates in ~ N days (or months) with a confidence range, stable trend, or already saturated.
With comparison checked, each indicator gains the vs previous percentage delta against the immediately previous period of the same duration: a red arrow when it went up, green when it went down. The chart shows the Daily peak bars, the dashed 95th percentile line, and the capacity line.
The 1-minute measurements are retained for 35 days, enough to close full-month reports. The PDF chart is rendered by an online service: on servers without internet access, the PDF comes out without the chart image.
Automatic post-mortem
The post-mortem is the closing report of an attack, ready to archive or forward to the affected customer. It exists in two modes:
- Automatic: when a critical attack ends and the automatic post-mortem option is on in the Flow settings, the system generates the PDF a single time and attaches it to the "attack ended" email.
- On demand: the Post-mortem (PDF) button in the incident console generates and displays the PDF on the spot, for any event.
The document ("DDoS incident report") carries: the victim with reverse name, vector and protocol, exporter, peak in bps and pps, duration, start and end, status and suggested action; the timeline chart; the 20 biggest sources with ASN, country, and percentage, flagging those in threat lists; the top ASNs; the breakdown by country; and the summary of sources in threat lists. The PDF language follows the language of the user who generates it; in the automatic e-mail delivery, the system language.
On servers without internet access, the PDF comes out without the timeline chart and the source geolocation may appear as an unknown country. The rest of the content is generated normally.
Saturation forecast
The Saturation forecast card anticipates link upgrades: it lists the interfaces and customers trending toward saturation, from the nearest to the farthest, with the name, the Saturates in ~ N days estimate, the confidence range (minimum and maximum), and the current utilization of capacity. When there is no trend, it shows No interface or client trending toward saturation right now. Clicking an item leads to the full report of the target.
How the projection works:
- The method is a linear regression over the daily peak of the last 30 days; the confidence range comes from the uncertainty of the trend.
- Only targets with defined capacity are included: speed discovered via SNMP, manual interface Contracted capacity, or the customer contracted bandwidth.
- At least 5 days of history are needed to project.
The same projection appears on the Reports screen as the Saturation projection indicator of the selected target.
BGP hijack alerts
With BGP route collection configured (see Mitigation BGP session), the BGP table card shows the routing state and watches for prefix hijacks. Without the collection, the card indicates BGP route collection is off.
State and lookup
- The card reports the number of routes in the table and the Sessions with state Established or Inactive.
- The Look up IP in the BGP table field with the Look up button does a lookup: it returns Prefix, AS_PATH, Origin (AS), Next-hop, Peer/Upstream, and Communities; when there is no route, it shows No route for the IP.
Routing alerts
The Routing alerts area is the hijack detection. It compares the origin of each prefix against the history of valid origins and opens two types of alert:
| Type | What it means |
|---|---|
| Origin changed | A known prefix started being announced by another origin ASN. It may be a hijack, but also a legitimate change (a change of carrier or upstream). The details modal explains both scenarios. |
| Suspicious sub-prefix | A more specific announcement appeared (for example a /24) with a different origin from the block that covers it, the classic sub-prefix hijack signature. |
In the global BGP table, sub-prefix announcements with a different origin are very common and almost always legitimate. The alert only represents real risk when the prefix belongs to YOUR network. If the prefix is not yours, treat it as noise and acknowledge the alert.
Actions per alert: View details opens the modal with the explanation ("what it is", "what it means", "why we flagged it"); Acknowledge takes the alert off the list; Ignore dims the alert at the bottom of the list, and it disappears on its own when the condition resolves. Open routing alerts weigh on Network risk.
CGNAT Log: lawful retention
With CGNAT, a single public IP is shared by several subscribers. Only the mapping between public IP, port and time identifies who was connected. In Brazil, the Marco Civil da Internet (Law 12.965/2014, art. 13) requires these connection records to be kept for at least 1 year.
The CGNAT Log records the translation events sent by your CGNAT devices and serves three purposes:
- Lawful retention: records are kept in daily files on the server itself, compressed and with an integrity hash, for the retention period you choose.
- Lookup by public IP and port: from the public IP, port and time stated in a court order, the system shows which subscriber (private IP) held that address.
- Report: the lookup result is exported as a PDF with your company's branding, ready to attach to the reply.
Access it through the CGNAT Log tab at the top of Flow, which is always visible. With recording turned off, the screen shows The CGNAT Log is disabled, explains the feature and offers the Open settings button. If the device is already sending events before you turn recording on, the screen tells you so.
Every lookup and every export is recorded in the system audit log. Under art. 22 of the Marco Civil, these records may only be disclosed to third parties by court order.
How to turn it on
- Register the CGNAT device as a Flow exporter (see Register exporter). The system matches events by the packet's source IP, which must be the same IP as in the registration.
- Open the Flow gear, CGNAT Log tab, and turn on Record the CGNAT translation log.
- Under Log which exporters, keep All or select only the devices that perform CGNAT. Each exporter's button shows the detected mode and indicates when events are already arriving.
- Adjust the fields on the tab (table below). Every change is saved immediately.
- In the Router setup guide (per vendor) card, choose the exporter. The recipe follows the vendor of the registration and already has the server IP filled in. Use Copy and apply it on the device, or use Enable with AI so the AI connects to the device, takes a backup and applies the recipe with your approval at each step.
- Go back to the CGNAT Log tab in Flow and check that the exporter card changed to Receiving.
| Field | What it does |
|---|---|
| Retention (years) | How long records are kept, from 1 to 10 years (default 5). The 1-year minimum is the legal floor. Files older than the retention are deleted automatically. |
| Default search tolerance (± minutes) | Margin applied around the searched time, to cover clock differences between devices (default 5 minutes). |
| Minimum free disk space to record (%) | Below this free space, recording is paused to protect the server. Range 2 to 50 (default 10). Details under Disk, below. |
| Per-session mode alert above (events/s) | Warns when an exporter records per session above this rate. Range 50 to 100000 (default 500). |
Turning off Record the CGNAT translation log only stops recording: what has already been stored stays on disk and follows the configured retention.
Recording modes: per session or per port block
The mode appears on each card of the screen and in the Mode column of the settings tab. It depends on how the device performs CGNAT and on what it sends:
| Mode | How it works | Volume |
|---|---|---|
| PBA (port blocks) | The device assigns each subscriber a block of ports and sends only the allocation and release of the block. In deterministic CGNAT (fixed-nat), it sends each subscriber's fixed mapping. The block identifies the subscriber in the period, which is enough for lawful retention. | Low: about a thousand times less than per session; in fixed-nat, a few kilobytes per day. |
| Per session | Every connection of every subscriber becomes a record. | High: thousands of events per second and gigabytes per day. |
In deterministic CGNAT (fixed-nat) the subscriber already has a fixed public IP and port range. Record only that fixed mapping, never per-session logging: it fills the disk and adds nothing to lawful retention. In dynamic CGNAT, prefer enabling block allocation (PBA) on the device. Note: changing port allocation touches CGNAT in production, so do it in a maintenance window.
When an exporter records per session above the configured limit, the CGNAT Log screen and the settings tab show a High-volume per-session logging warning, with the current rate in events per second and the projected disk usage per day. Users with settings permission see the See the device recipe button, which opens the guide on the right exporter.
Recipes per vendor
Each vendor's guide is on the CGNAT Log tab of the settings, with commands ready to copy. In every case the destination is the Ravicor server on UDP port 2055, and the source IP must be the exporter's registered IP. Syntax may vary by firmware version: check your version's documentation before applying.
| Vendor | Recipe summary |
|---|---|
| MikroTik (RouterOS 6.48+ and 7) | Two paths: use one or the other, never both. With the traffic exported to Ravicor (Traffic Flow): turns on NAT events in the Traffic Flow that already sends traffic to Flow. CGNAT Log only, without exporting the traffic (firewall log over syslog): the router sends the firewall log straight to Ravicor, with a rule at the top of mangle that only logs the start of each connection and marks nothing (it does not interfere with PCC, QoS or queues). This log records the start of the connection, not the end. Keep NTP active on the router. |
| Huawei (NE/ME60) | Configured inside the NAT instance. The user log (block/PBA) is the recommended one; the session log is for CGNAT without PBA. The destination must be the same host that already receives Flow traffic. The device only feeds the primary log host: if another log collector already exists, you must decide which one stays primary. |
| Cisco (IOS-XE) | NAT Event Logging sent to Ravicor. Block allocation (PBA) is recommended to reduce the volume. |
| Hillstone (StoneOS) | NAT log over syslog, only the NAT traffic type (the firewall session log does not go to Ravicor). The SNAT rule must end with log. The firewall sends one line per session and the system consolidates it into holdings per subscriber and public IP, and also records the real blocks. Recommended mode: fixed block per subscriber (fixed-block). |
| A10 (ACOS) | Two blocks. Recommended for fixed-nat: only the fixed mapping, over syslog, shown first. Alternative only for dynamic CGNAT (LSN/NAT44): NetFlow v9 events, one per connection. Details below. |
For vendors without a validated recipe, the guide states the requirement: the device must export NAT events over NetFlow v9 or IPFIX to the server on port 2055.
A10 in fixed-nat, step by step
Most ISP A10 units run deterministic CGNAT (fixed-nat). In that case the CGNAT Log is each subscriber's fixed mapping (private IP to public IP and port range), sent over syslog once a day, in a few kilobytes.
- Destination: create the log server pointing to Ravicor on UDP port
2055, and a service-group with that member. The system does not receive this log on port 514 or over TCP. - Logging template: create a template with only the fixed mapping, repeated every day (
log fixed-nat user-ports periodic 1 start-time 03:00), in the default format, with the service-group from the previous step. Thesource-addressmust be the exporter's registered IP, on a data port: the log does not leave through the management port. - Enable: fixed-nat uses the CGNAT default template (
cgnv6 lsn logging default-template). There is only one default template: if one already exists, do not replace it, add the fixed-mapping line to it. Save withwrite memory. - Check: the log is sent on each subscriber's first session and in the periodic send. To see the result the same day, set the start time a few minutes ahead. In the
show cgnv6 log statisticscounters, follow the fixed-mapping sends and whether any log packets are dropped. - Turn off per-session logging: only after the CGNAT Log screen shows the exporter as PBA (port blocks), remove the per-session records from the netflow monitor and save.
- Recommended: generate on the device the file with all mappings, including subscribers who never sent traffic, and keep a copy outside the device.
In fixed-nat, do not enable any per-session logging on the A10, neither in the netflow monitor nor in the logging template. The NetFlow block of the guide is only for dynamic CGNAT (LSN/NAT44): it sends one event per connection, with thousands of events per second and gigabytes of disk per day.
Disk
Records live on the server's local disk, outside the system backup. Size the disk by the projection the settings tab shows in the Log disk usage card:
| Column | What it shows |
|---|---|
| Coverage | Since when there are stored records for the exporter. |
| Mode | PBA (port blocks) or Per session, the latter highlighted in orange. |
| Disk used | How much the exporter's archive takes today, with the Total on the last row. |
| Projection per day | How much the current event rate will take per day, before compression. Shown while the exporter is receiving events. |
| Retention projection | The estimated space to keep the whole configured retention, based on the average of the last days already compressed. |
The same Projection per day appears on each exporter card of the CGNAT Log screen.
Automatic pause for disk space
Free disk space is measured every 30 seconds. When it drops below Minimum free disk space to record (%), the collector pauses CGNAT Log recording so the disk does not fill up and bring the system down. During the pause:
- The CGNAT Log screen shows the Recording paused for disk space banner, with the current free space and the configured minimum, and the Events not recorded for lack of disk space count.
- The pause and the resume are recorded in the system log.
- Events arriving in that interval are not stored. Nothing already recorded is deleted.
- Recording resumes on its own when free space goes above the minimum plus 5 points (for example, with a 10% minimum, it resumes above 15%). The margin keeps recording from switching on and off at the edge.
Every event not recorded is a gap in lawful retention. When you see the pause banner, free up space or grow the disk as soon as possible.
The system disk protection
The system has an automatic disk protection that acts when usage crosses the alert thresholds: it reduces Flow samples and deletes the oldest Syslog messages. Regarding the CGNAT Log, it:
- Does: measures how much the CGNAT Log takes, per exporter, and names the CGNAT Log as the weight in the warning and in the log when it is what is filling the disk.
- Does not: it never deletes CGNAT Log records, at any threshold, because they are lawful retention. What protects the disk from the CGNAT Log is the automatic pause above.
To free space taken by the CGNAT Log, the options are to grow the disk, reduce the Retention (years) or use Manual cleanup by date range. The cleanup deletes the daily files in the chosen range (for one exporter or all) through the Delete files in range button, asks for confirmation twice, cannot be undone and is recorded in the audit log. Deleting records within the retention period is a legal risk for the provider.
For multi-year retention, especially with a device that logs per session, set aside a dedicated disk or volume for CGNAT Log storage, separate from the system disk. That way the archive can grow without competing for space with the database and the other modules. Contact support to mount the volume on the server.
CGNAT Log screen
- Exporter cards: name, IP, state (Receiving, Stopped, No events or Not being logged), rate in events per second, Blocks in use (PBA mode) and Projection per day. Click a card to add or remove the exporter from the selection: the selection decides what the live view and the search show.
- Status banner: the red Collection stopped warning appears, with the exporter name, when a device that was recording has stopped sending events for more than 15 minutes. Just below is the server clock state: NTP synchronized or the NTP not synchronized warning, because an unreliable clock compromises the reply to the court order.
- Blocks in use: in PBA mode, the View blocks in use button lists the blocks allocated right now, with a filter by private or public IP.
- Live: the latest events of the day, refreshed automatically, with a filter and the Pause button. Click a record to open Record details, with Copy summary and Search this mapping ownership.
Lookups and report
- In Advanced search, choose the Search type: Public IP → subscriber (the court order case) or Private IP → sessions (reverse lookup).
- Enter the IP and, in the public IP search, the Public port when the order provides it.
- Enter the Event date/time with the Tolerance (± minutes), or check Exact period and fill in From and To. Optionally, filter by Protocol and VRF (optional).
- Click Search. The lookup runs in the background: you can keep browsing and come back later. It stays under Recent queries, with the Reopen button.
The Results show, per match: Subscriber (private IP), Private port, Public IP, Public ports, Held from, Held until and State. A mapping still in use at the end of the period appears as still active at the end of the scanned period. Very large results are truncated with a warning: in that case, narrow the period.
To export, optionally fill in the Case/warrant number field and use:
- Export report (PDF): a formal document with your company's branding (set in the Company profile, in Settings), with identification, search parameters, result, methodology with the SHA-256 hash of each daily file searched, and legal basis. Files are compressed and receive their hash the following early morning; until then, the current day's file shows as pending in the report.
- Raw data (CSV): the result as a spreadsheet, with the case number in the header.
Frequently asked questions
| Question | Answer |
|---|---|
| The projection per day says "estimate". Why? | Early in the day, the file still has too few records to measure the real size of each event, so the projection uses an estimate of 120 bytes per event. Once there are enough records, the hint says the value was measured on the current day's file. In both cases, the calculation uses the current event rate. |
| Recording paused for disk space appeared. What now? | Free space dropped below the configured minimum and new events are not being stored. Free up space or grow the disk. Recording resumes on its own when free space goes above the minimum plus 5 points. Do not lower the minimum just to resume recording: it exists so the disk does not fill up and bring the system down. |
| Why does per-session mode fill the disk? | Because every connection of every subscriber becomes a record: thousands per second at a mid-sized provider. With port blocks (PBA) or fixed-nat, the system keeps only the block allocation or the fixed mapping, and the volume drops to kilobytes or a few megabytes per day, with the same validity for lawful retention. |
| What happens to old records? | Each daily file is compressed and receives its integrity hash the following early morning, and is kept until the configured retention is reached. After that it is deleted automatically. Neither the disk pause nor the system disk protection deletes records; only the manual cleanup, done by you, removes files before the deadline. |
| The exporter card shows No events. | The device has not sent any events yet. Check the vendor recipe, the destination on UDP port 2055, and whether the source IP of the sends is the exporter's registered IP. |
Attack simulation
The What-if simulator lets you calibrate detection before the first real attack: you describe a hypothetical attack and see whether detection would fire, and why. The simulation runs the real detector engine, exactly the same that runs in production, without recording anything.
The simulator is in Flow settings, the Detection tab, in the What-if simulator card, and requires Flow management level.
- Choose a Preset model or build the scenario manually.
- Set the Attack type (UDP/TCP/SYN/ICMP floods, fragmentation, DNS query flood, the amplifications, or generic), the direction (inbound or outbound), and the scope (global or a prefix).
- Fill in the scenario numbers: Packets/s, Traffic (Mbps), Distinct sources, % served from web (:443/:80), and Distinct destinations (carpet/outbound).
- Click Simulate.
The result shows, rule by rule, whether the threshold would trip, what the confidence score would be, and whether an alert would fire.
Good deployment practice: register the exporters, check interfaces and capacities via SNMP, register My networks with customer and contracted bandwidth, calibrate the sensitivity with the simulator, and only then consider turning on auto-mitigation.