Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:dpi:opt_cgnat:cgnat_diagnostics [2024/09/26 15:29] – created - external edit 127.0.0.1 | en:dpi:opt_cgnat:cgnat_diagnostics [2026/03/24 15:16] (current) – [Output of public addresses statistics] elena.krasnobryzh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Description of NAT statistics ====== | ====== Description of NAT statistics ====== | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | The output of statistics | + | NAT statistics |
| + | To view queue information, | ||
| + | |||
| + | ===== Logging statistics to fastdpi_stat.log | ||
| + | This is configured using the '' | ||
| + | A service reload is required for the changes to take effect: '' | ||
| + | **Example: | ||
| + | dbg_log_mask=0x2000000 | ||
| 0x40000 | 0x40000 | ||
| Line 7: | Line 15: | ||
| 0x2000000 - NAT statistics output. | 0x2000000 - NAT statistics output. | ||
| - | **Example: | + | |
| - | dbg_log_mask=0x2000000 | + | |
| ==== Common for all profiles ==== | ==== Common for all profiles ==== | ||
| Line 49: | Line 56: | ||
| **Four groups группы: | **Four groups группы: | ||
| - | 1 group -- operations with public address ports | + | 1 group — operations with public address ports |
| < | < | ||
| 30/ | 30/ | ||
| Line 60: | Line 67: | ||
| </ | </ | ||
| - | 2 group -- general statistics | + | 2 group — general statistics |
| < | < | ||
| 0/0/0: | 0/0/0: | ||
| Line 69: | Line 76: | ||
| </ | </ | ||
| - | 3 group -- cache statistics // | + | 3 group — cache statistics // |
| < | < | ||
| 50/ | 50/ | ||
| Line 80: | Line 87: | ||
| </ | </ | ||
| - | 4 group -- conversion statistics // | + | 4 group — conversion statistics // |
| < | < | ||
| 5516/ | 5516/ | ||
| - | 5516 - successful translation public | + | 5516 - successful translation public |
| 8 - port is not in the allocated range of public ports | 8 - port is not in the allocated range of public ports | ||
| - | 121 - translation public | + | 121 - translation public |
| </ | </ | ||
| Line 167: | Line 174: | ||
| thr=0, ublock=1, uport=0 | thr=0, ublock=1, uport=0 | ||
| thr=0 - worker thread number | thr=0 - worker thread number | ||
| - | ublock=1 - public | + | ublock=1 - public |
| - | uport=0 - public | + | uport=0 - public |
| </ | </ | ||
| < | < | ||
| Line 188: | Line 195: | ||
| ================================ | ================================ | ||
| - | 192.168.4.20 | + | 192.168.4.20 |
| </ | </ | ||
| Line 201: | Line 208: | ||
| whiteip=94.140.198.86 - public address | whiteip=94.140.198.86 - public address | ||
| sess_tcp=127 | sess_tcp=127 | ||
| + | active_sess_tcp=0 - Number of active NAT translations for TCP | ||
| sess_udp=108 | sess_udp=108 | ||
| + | active_sess_udp=1 - Number of active NAT translations for UDP | ||
| indmtd=4 | indmtd=4 | ||
| Line 212: | Line 221: | ||
| The format is the same. | The format is the same. | ||
| - | === Key to command to view NAT profile statistics via fdpi_ctrl === | + | |
| + | ====List of NAT Translations==== | ||
| + | Tracking translation lifetime. Displays a list of all NAT translations for the specified internal IP address.\\ | ||
| + | The status of a translation is determined by the time of its last use and the lifetime parameter specified in the cluster options. If < | ||
| + | |||
| + | Command format: | ||
| + | < | ||
| + | |||
| + | Sample output: | ||
| + | < | ||
| + | fdpi_cli nat show 172.16.120.35 | ||
| + | nat_type | ||
| + | CGNAT TCP 172.16.120.35 | ||
| + | CGNAT TCP 172.16.120.35 | ||
| + | CGNAT TCP 172.16.120.35 | ||
| + | CGNAT TCP 172.16.120.35 | ||
| + | CGNAT TCP 172.16.120.35 | ||
| + | CGNAT TCP 172.16.120.35 | ||
| + | </ | ||
| + | |||
| + | Legend: | ||
| + | < | ||
| + | nat_type | ||
| + | protocol | ||
| + | internal_ip | ||
| + | internal_port - internal port, | ||
| + | dest_ip | ||
| + | dest_port | ||
| + | external_ip | ||
| + | external_port | ||
| + | active | ||
| + | </ | ||
| + | ===== Key to command to view NAT profile statistics via fdpi_ctrl | ||
| Command: | Command: | ||
| < | < | ||
| Line 259: | Line 300: | ||
| < | < | ||
| - | === Key to command to view the dump NAT profile statistics === | + | ===== Key to command to view the dump NAT profile statistics |
| Command: | Command: | ||
| < | < | ||
| Line 331: | Line 372: | ||
| igcache | igcache | ||
| </ | </ | ||
| + | |||
| + | ===== Monitoring Free/Busy Ports on Whitelisted Addresses ===== | ||
| + | |||
| + | Proactive monitoring helps avoid issues with a shortage of free ports and the resulting inability to create new sessions, | ||
| + | by allocating additional blocks of whitelisted addresses or reducing port allocation limits when resources in the current pool are exhausted. | ||
| + | |||
| + | **Free ports on a white address** = whpf (unallocated) + whp_ruse (ready for reuse)\\ | ||
| + | **Busy ports on a white address** = whpb (allocated) - whp_ruse (ready for reuse) | ||