Description of NAT statistics [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:dpi:opt_cgnat:cgnat_diagnostics [2026/03/25 13:46] – [Output of public addresses statistics] elena.krasnobryzhen:dpi:opt_cgnat:cgnat_diagnostics [2026/03/25 13:50] (current) – [List of NAT Translations] elena.krasnobryzh
Line 217: Line 217:
 external_port   - external port, external_port   - external port,
 active          - translation activity flag (true if active) active          - translation activity flag (true if active)
 +</code>
 +
 +=====Legend for the NAT statistics view by subscriber=====
 +
 +Command:
 +<code>fdpi_ctrl list status --service 11 --login UserName (--ip IP)</code>
 +
 +Sample output:
 +<code>
 +fdpi_ctrl list status --service 11 --ip 192.168.4.20
 +Autodetected fastdpi params : dev='em1', port=29001
 +connecting 94.140.198.68:29001 ...
 +
 +================================
 +192.168.4.20    crcip=0xd649d853        nttype=0        profile='cgnat' itrnsl=0 itrnsld=0       whiteip=94.140.198.86   sess_tcp=127     active_sess_tcp=0       sess_udp=108     active_sess_udp=1       indmtd=4
 +</code>
 +
 +Legend:
 +<code>
 +192.168.4.20 - private IP
 +crcip=0xd649d853 - CRC of the private IP
 +nttype=0        - NAT type: 0 - cgnat, 1 - 1:1
 +profile='cgnat' - profile name
 +itrnsl=0 - internal index of the converter private<-->public profile.
 +itrnsld=0        - internal converter data index 
 +whiteip=94.140.198.86 - public address
 +sess_tcp=127    - number of TCP sessions
 +active_sess_tcp=0 - Number of active NAT translations for TCP
 +sess_udp=108    - number of UDP sessions
 +active_sess_udp=1 - Number of active NAT translations for UDP
 +indmtd=4              - internal index of subscriber data (subscriber metadata)
 +
 +fdpi_ctrl list status --service 11 --ip 192.168.4.20 --outformat=json
 +fdpi_ctrl list status --service 11 --ip 192.168.4.20 --outformat=json  | jq .
 +
 +fdpi_ctrl list all status --service 11
 +fdpi_ctrl list all status --service 11 --outformat=json
 </code> </code>
 ===== Key to command to view NAT profile statistics via fdpi_ctrl ===== ===== Key to command to view NAT profile statistics via fdpi_ctrl =====