Project

General

Profile

Actions

Support #2476

closed

Eve-log output data

Added by Ron Smith about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Affected Versions:
Label:

Description

I have compiled suricata with netmap as well as pf_ring. When i tried both capture mode surprisingly with same other configurations their eve-log output is lot different. PF_Ring eve-log output is appx 10x than netmap.
RSS value in both case is 1.
eve-log output to redis list.
eve-log output stats.capture.kernel_drop value is zero in case of netmap while in case of pf_ring value is greater than 1.
After engine stopped, PF_Ring stats says drop percentage is appx. 40% with data rate 5-10gbps, while in case of netmap i got an error
ERRCODE: S_ERROR_FATAL(171) Engine unable to disable to detect thread - 'w#02-ens192' killing engine

Can anybody help me what i am doing wrong?


Files

eve_output.png (12.2 KB) eve_output.png Number of output json(PF_Ring Vs Netmap) Ron Smith, 04/08/2018 07:32 AM
netmap_capture_stats.png (56.9 KB) netmap_capture_stats.png Netmap stats.capture Ron Smith, 04/08/2018 07:32 AM
netmap_exit.png (46.2 KB) netmap_exit.png Netmap exit error Ron Smith, 04/08/2018 07:32 AM
pf_ring_capture_stats.png (11.9 KB) pf_ring_capture_stats.png PF_RING stats.capture Ron Smith, 04/08/2018 07:32 AM
netmap_cpu.png (361 KB) netmap_cpu.png Netmap cpu usage Ron Smith, 04/08/2018 07:32 AM
pf_ring_exit.png (47.2 KB) pf_ring_exit.png Netmap exit stats Ron Smith, 04/08/2018 07:32 AM
pf_ring_cpu.png (273 KB) pf_ring_cpu.png PF_RING cpu usage Ron Smith, 04/08/2018 07:32 AM
suricata.yaml (66.5 KB) suricata.yaml Suricata YAML file for both Netmap & PF_RING Ron Smith, 04/08/2018 07:32 AM
suricata_build_info.txt (3.05 KB) suricata_build_info.txt 'suricata --build-info' cmd output Ron Smith, 04/08/2018 07:54 AM
Actions #1

Updated by Victor Julien about 6 years ago

  • Target version deleted (4.0.4)
Actions #2

Updated by Andreas Herz about 6 years ago

  • Assignee set to Anonymous
  • Target version set to Support

Can you add more details about your setup, just with those informations it will be just a wild guessing.

Updated by Ron Smith about 6 years ago

I am putting 10min screenshots/observations of pf_ring and netmap capture modes.

PF_RING cmd -> suricata --pfring-int=ens192 --pfring-cluster-id=99 --pfring-cluster-type=cluster_flow --runmod=autofp -l /root/alpha/logs/
Netmap cmd -> suricata --netmap=ens192 --runmode=autofp -l /root/alpha/logs

PF_RING Vs Netmap

                    PF_RING        Netmap
CPU                 High           Low
pkt_loss            High           Zero
Suricata Exit       Success        Error
Eve Output docs     6606322        487132
Actions #4

Updated by Ron Smith about 6 years ago

Can anybody help me on this

1. First i like to resolve this error throw by suricata while exit when runmode is netmap

cmd -> suricata --netmap=ens192 --runmode=autofp -l /root/alpha/logs
error -> ERRCODE: S_ERROR_FATAL(171) Engine unable to disable to detect thread - 'w#02-ens192' killing engine

Actions #5

Updated by Peter Manev about 6 years ago

How do you run those tests with the different methods (pfring/netmap) - is it a tcpreplay/breakingpoint/live traffic etc..
What OS do you use?
In the case of netmap you mention your eve.json is 10x bigger - what makes the difference? (aka 10x more alerts or HTTP reqs or something else?)

Actions #6

Updated by Ron Smith about 6 years ago

Peter Manev wrote:

How do you run those tests with the different methods (pfring/netmap) - is it a tcpreplay/breakingpoint/live traffic etc..
What OS do you use?
In the case of netmap you mention your eve.json is 10x bigger - what makes the difference? (aka 10x more alerts or HTTP reqs or something else?)

1. Traffic - I perform both test on live traffic(span port) with packet rate 1Mpps(appx).
2. OS - Centos 7, Linux kernel - 3.10.0.693.11.6
3. pfring eve.json is 10x bigger than netmap.(i have enabled everything alert, http, tls, dns(request only),flow, etc - check yaml file). In both case yaml file and traffic rate is same, still every time eve.json of pfring is 10x-15x bigger.

Actions #7

Updated by Peter Manev almost 6 years ago

Looking at the CPU screenshots - it seems the netmap run is pegging the first cpu while the rest are not so busy ?
I didnt understand (sorry) - what makes up for the difference of the logs - in the log. If you break it down is it more of everything or just more (for example) http/dns logs? Then you can potentially compare the results/stats to a pcap read of the same traffic pcaps you replayed - it may give you a better hint.

I think one possibility that you are getting the err below when doing live replay

Engine unable to disable to detect thread - 'w#02-ens192' killing engine

since there is no more traffic replayed when you stop the engine - if you keep replaying it should behave differently I believe (since potentially there a lot of flows that need to timeout/be shutdown etc..).

Actions #8

Updated by Victor Julien over 5 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF