This is my NIC eth2 info, it has probably about 5G/s traffic.
# I have executed PF_RING `./load_driver.sh. The eth2 NIC zero-copy mode is normal.
[root@sec-audit-lljx-027093 ~]# cat /proc/net/pf_ring/dev/eth2/info
Name: eth2
Index: 13
Address: B4:96:91:B2:A9:E8
Polling Mode: NAPI/ZC
Promisc: Enabled
Type: Ethernet
Family: Intel ice
TX Queues: 10
RX Queues: 10
Num RX Slots: 4096
Num TX Slots: 4096
RX Slot Size: 3072
TX Slot Size: 3072
[root@sec-audit-lljx-027093 ~]# ethtool -S eth2
NIC statistics:
rx_unicast: 32676664
tx_unicast: 0
rx_multicast: 0
tx_multicast: 0
rx_broadcast: 0
tx_broadcast: 0
rx_bytes: 15342755273
tx_bytes: 0
rx_dropped: 29371142
rx_unknown_protocol: 0
rx_alloc_fail: 0
rx_pg_alloc_fail: 0
tx_errors: 3
tx_linearized: 0
tx_busy: 0
tx_restart: 0
tx_queue_0_packets: 0
tx_queue_0_bytes: 0
tx_queue_1_packets: 0
tx_queue_1_bytes: 0
tx_queue_2_packets: 0
tx_queue_2_bytes: 0
tx_queue_3_packets: 0
tx_queue_3_bytes: 0
tx_queue_4_packets: 0
tx_queue_4_bytes: 0
tx_queue_5_packets: 0
tx_queue_5_bytes: 0
tx_queue_6_packets: 0
tx_queue_6_bytes: 0
tx_queue_7_packets: 0
tx_queue_7_bytes: 0
tx_queue_8_packets: 3
tx_queue_8_bytes: 735
tx_queue_9_packets: 0
tx_queue_9_bytes: 0
rx_queue_0_packets: 0
rx_queue_0_bytes: 0
rx_queue_1_packets: 0
rx_queue_1_bytes: 0
rx_queue_2_packets: 0
rx_queue_2_bytes: 0
rx_queue_3_packets: 0
rx_queue_3_bytes: 0
rx_queue_4_packets: 0
rx_queue_4_bytes: 0
rx_queue_5_packets: 0
rx_queue_5_bytes: 0
rx_queue_6_packets: 0
rx_queue_6_bytes: 0
rx_queue_7_packets: 0
rx_queue_7_bytes: 0
rx_queue_8_packets: 0
rx_queue_8_bytes: 0
rx_queue_9_packets: 0
rx_queue_9_bytes: 0
rx_bytes.nic: 71196867757
tx_bytes.nic: 0
rx_unicast.nic: 147547917
tx_unicast.nic: 0
rx_multicast.nic: 0
tx_multicast.nic: 0
rx_broadcast.nic: 0
tx_broadcast.nic: 0
tx_errors.nic: 0
tx_timeout.nic: 0
rx_size_64.nic: 0
tx_size_64.nic: 0
rx_size_127.nic: 83903501
tx_size_127.nic: 0
rx_size_255.nic: 9129792
tx_size_255.nic: 0
rx_size_511.nic: 5136782
tx_size_511.nic: 0
rx_size_1023.nic: 14885476
tx_size_1023.nic: 0
rx_size_1522.nic: 34492377
tx_size_1522.nic: 0
rx_size_big.nic: 0
tx_size_big.nic: 0
link_xon_rx.nic: 0
link_xon_tx.nic: 0
link_xoff_rx.nic: 0
link_xoff_tx.nic: 0
tx_dropped_link_down.nic: 0
rx_undersize.nic: 0
rx_fragments.nic: 0
rx_oversize.nic: 0
rx_jabber.nic: 0
rx_csum_bad.nic: 0
rx_length_errors.nic: 0
rx_dropped.nic: 0
rx_crc_errors.nic: 0
illegal_bytes.nic: 0
mac_local_faults.nic: 0
mac_remote_faults.nic: 0
fdir_sb_match.nic: 0
fdir_sb_status.nic: 0
chnl_inline_fd_match: 0
tx_priority_0_xon.nic: 0
tx_priority_0_xoff.nic: 0
tx_priority_1_xon.nic: 0
tx_priority_1_xoff.nic: 0
tx_priority_2_xon.nic: 0
tx_priority_2_xoff.nic: 0
tx_priority_3_xon.nic: 0
tx_priority_3_xoff.nic: 0
tx_priority_4_xon.nic: 0
tx_priority_4_xoff.nic: 0
tx_priority_5_xon.nic: 0
tx_priority_5_xoff.nic: 0
tx_priority_6_xon.nic: 0
tx_priority_6_xoff.nic: 0
tx_priority_7_xon.nic: 0
tx_priority_7_xoff.nic: 0
rx_priority_0_xon.nic: 0
rx_priority_0_xoff.nic: 0
rx_priority_1_xon.nic: 0
rx_priority_1_xoff.nic: 0
rx_priority_2_xon.nic: 0
rx_priority_2_xoff.nic: 0
rx_priority_3_xon.nic: 0
rx_priority_3_xoff.nic: 0
rx_priority_4_xon.nic: 0
rx_priority_4_xoff.nic: 0
rx_priority_5_xon.nic: 0
rx_priority_5_xoff.nic: 0
rx_priority_6_xon.nic: 0
rx_priority_6_xoff.nic: 0
rx_priority_7_xon.nic: 0
rx_priority_7_xoff.nic: 0
suricata always gets a lots of kernel_droped packets when I running suricata --pfring -c /etc/suricata/suricata.yaml -vvv
command.
[root@sec-audit-lljx-027093 ~]# suricata --build-info
This is Suricata version 6.0.2 RELEASE
Features: PCAP_SET_BUFF PF_RING AF_PACKET HAVE_PACKET_FANOUT LIBCAP_NG LIBNET1.1 HAVE_HTP_URI_NORMALIZE_HOOK PCRE_JIT HAVE_NSS HAVE_LUA HAVE_LUAJIT HAVE_LIBJANSSON PROFILING TLS TLS_GNU MAGIC RUST
SIMD support: SSE_4_2 SSE_4_1 SSE_3
Atomic intrinsics: 1 2 4 8 16 byte(s)
64-bits, Little-endian architecture
GCC version 4.8.5 20150623 (Red Hat 4.8.5-28), C version 199901
compiled with _FORTIFY_SOURCE=0
L1 cache line size (CLS)=64
thread local storage method: __thread
compiled with LibHTP v0.5.37, linked against LibHTP v0.5.37
Suricata Configuration:
AF_PACKET support: yes
eBPF support: no
XDP support: no
PF_RING support: yes
NFQueue support: no
NFLOG support: no
IPFW support: no
Netmap support: no
DAG enabled: no
Napatech enabled: no
WinDivert enabled: no
Unix socket enabled: yes
Detection enabled: yes
Libmagic support: yes
libnss support: yes
libnspr support: yes
libjansson support: yes
hiredis support: no
hiredis async with libevent: no
Prelude support: no
PCRE jit: yes
LUA support: yes, through luajit
libluajit: yes
GeoIP2 support: yes
Non-bundled htp: no
Hyperscan support: yes
Libnet support: yes
liblz4 support: no
Rust support: yes
Rust strict mode: no
Rust compiler path: /root/.cargo/bin/rustc
Rust compiler version: rustc 1.52.0 (88f19c6da 2021-05-03)
Cargo path: /root/.cargo/bin/cargo
Cargo version: cargo 1.52.0 (69767412a 2021-04-21)
Cargo vendor: yes
Python support: yes
Python path: /bin/python2.7
Python distutils yes
Python yaml yes
Install suricatactl: yes
Install suricatasc: yes
Install suricata-update: yes
Profiling enabled: yes
Profiling locks enabled: no
Plugin support (experimental): yes
Development settings:
Coccinelle / spatch: no
Unit tests enabled: no
Debug output enabled: no
Debug validation enabled: no
Generic build parameters:
Installation prefix: /usr
Configuration directory: /etc/suricata/
Log directory: /var/log/suricata/
--prefix /usr
--sysconfdir /etc
--localstatedir /var
--datarootdir /usr/share
Host: x86_64-pc-linux-gnu
Compiler: gcc (exec name) / g++ (real)
GCC Protect enabled: no
GCC march native enabled: yes
GCC Profile enabled: no
Position Independent Executable enabled: no
CFLAGS -g -O2 -std=gnu99 -march=native -I${srcdir}/../rust/gen -I${srcdir}/../rust/dist
PCAP_CFLAGS
SECCFLAGS
There are some statistics.
Date: 8/31/2022 -- 11:12:25 (uptime: 0d, 00h 07m 41s)
------------------------------------------------------------------------------------
Counter | TM Name | Value
------------------------------------------------------------------------------------
capture.kernel_packets | Total | 192741316
capture.kernel_drops | Total | 447129395
decoder.pkts | Total | 193214619
decoder.bytes | Total | 89468210279
decoder.invalid | Total | 28384561
decoder.ipv4 | Total | 193214619
decoder.ethernet | Total | 193214619
decoder.tcp | Total | 164076264
decoder.udp | Total | 3229
decoder.icmpv4 | Total | 750565
decoder.vlan | Total | 193214619
decoder.vlan_qinq | Total | 803
decoder.avg_pkt_size | Total | 463
decoder.max_pkt_size | Total | 1514
flow.tcp | Total | 22981615
flow.udp | Total | 2326
flow.icmpv4 | Total | 434926
flow.tcp_reuse | Total | 952626
flow.wrk.spare_sync_avg | Total | 100
flow.wrk.spare_sync | Total | 201857
decoder.event.ipv4.trunc_pkt | Total | 28384561
flow.wrk.flows_evicted_needs_work | Total | 11630626
flow.wrk.flows_evicted_pkt_inject | Total | 23236225
flow.wrk.flows_evicted | Total | 2609824
flow.wrk.flows_injected | Total | 10455348
tcp.sessions | Total | 15815102
tcp.syn | Total | 11109650
tcp.synack | Total | 11053848
tcp.rst | Total | 105159
tcp.midstream_pickups | Total | 7232899
tcp.pkt_on_wrong_thread | Total | 26118156
tcp.segment_memcap_drop | Total | 19167
tcp.reassembly_gap | Total | 954952
tcp.overlap | Total | 644
tcp.insert_data_normal_fail | Total | 13997720
detect.alert | Total | 305
app_layer.flow.http | Total | 255298
app_layer.tx.http | Total | 2553701
app_layer.flow.ntp | Total | 69
app_layer.tx.ntp | Total | 96
app_layer.flow.failed_tcp | Total | 18792
app_layer.flow.failed_udp | Total | 2257
flow.mgr.full_hash_pass | Total | 56
flow.spare | Total | 1343379
flow.mgr.rows_maxlen | Total | 66
flow.mgr.flows_checked | Total | 2213294
flow.mgr.flows_notimeout | Total | 2009630
flow.mgr.flows_timeout | Total | 203664
flow.mgr.flows_evicted | Total | 19040798
flow.mgr.flows_evicted_needs_work | Total | 10457152
tcp.memuse | Total | 502942240
tcp.reassembly_memuse | Total | 42937695396
http.memuse | Total | 4169660227
flow.memuse | Total | 1008572224
The CPU and memory resources are sufficient. I really want to get your help, and how it happens. Looking forward to your reply. Thank you very much.
suricata_backup.yaml (75.4 KB)