# Suricata packet seen on wrong thread

**URL:** https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386
**Category:** Help
**Created:** [May 24, 2021, 2:16pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386 "2021-05-24T14:16:49Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Nuno\_Santos](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@Nuno\_Santos](https://forum.suricata.io/u/Nuno_Santos)
#### Post date: [May 24, 2021, 2:16pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/1 "2021-05-24T14:16:49Z")

</div>

Hi!

The field tcp packet seen on wrong thread is critical for the correct functioning of the tool?

---

<div class="post-metadata">

### Author: ![Andreas\_Herz](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/andreas_herz/32/52_2.png) [@Andreas\_Herz](https://forum.suricata.io/u/Andreas_Herz)
#### Post date: [May 26, 2021, 9:23pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/2 "2021-05-26T21:23:19Z")

</div>

This can be an issue, yes. I would recommend the following discussion: [Support #2725: stream/packet on wrong thread - Suricata - Open Information Security Foundation](https://redmine.openinfosecfoundation.org/issues/2725)

tl;dr packets might not be inspected in such a case

---

<div class="post-metadata">

### Author: ![Nuno\_Santos](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@Nuno\_Santos](https://forum.suricata.io/u/Nuno_Santos)
#### Post date: [May 27, 2021, 10:51am UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/3 "2021-05-27T10:51:28Z")

</div>

The problem is that I have a low-end network card (NetXtreme II BCM5709 Gigabit Ethernet). I can´t make all that optimization.

---

<div class="post-metadata">

### Author: ![Andreas\_Herz](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/andreas_herz/32/52_2.png) [@Andreas\_Herz](https://forum.suricata.io/u/Andreas_Herz)
#### Post date: [May 27, 2021, 7:36pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/4 "2021-05-27T19:36:27Z")

</div>

You could try autofp mode. How does your configuration look like currently?

---

<div class="post-metadata">

### Author: ![Nuno\_Santos](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@Nuno\_Santos](https://forum.suricata.io/u/Nuno_Santos)
#### Post date: [May 27, 2021, 7:46pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/5 "2021-05-27T19:46:56Z")

</div>

This is my config.

[suricata copy.yaml](https://forum.suricata.io/uploads/short-url/rB6XXgjsDtmIzG6GPLvBXF4yc96.yaml) (74.5 KB)

Autofp mode gives my a lot bigger number of kernel drops.

Some stats…

 ![Screenshot 2021-05-27 at 20.52.17](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/1X/e5b872438049d4bad8c8345de539c184d98c5f2e.png)

---

<div class="post-metadata">

### Author: ![Andreas\_Herz](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/andreas_herz/32/52_2.png) [@Andreas\_Herz](https://forum.suricata.io/u/Andreas_Herz)
#### Post date: [May 27, 2021, 8:29pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/6 "2021-05-27T20:29:06Z")

</div>

So you use 3 interfaces, can you check if the issue is gone if you use only one interface? and afterwards enable just specific ones?

Overall we have no perfect solution to this issue yet.

---

<div class="post-metadata">

### Author: ![Nuno\_Santos](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@Nuno\_Santos](https://forum.suricata.io/u/Nuno_Santos)
#### Post date: [May 27, 2021, 8:41pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/7 "2021-05-27T20:41:24Z")

</div>

I can confirm that using only one interface, the issue is gone. Autofp mode resolves the issue aswell but gives me a larger number of drops

---

<div class="post-metadata">

### Author: ![Andreas\_Herz](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/andreas_herz/32/52_2.png) [@Andreas\_Herz](https://forum.suricata.io/u/Andreas_Herz)
#### Post date: [May 27, 2021, 9:22pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/8 "2021-05-27T21:22:14Z")

</div>

You could try to check what options the NIC offers via ethtool.

Also worth a try to check if there is a NIC combination that would work, could be also worth to check different order in the configuration settings.

---

<div class="post-metadata">

### Author: ![syoc](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@syoc](https://forum.suricata.io/u/syoc)
#### Post date: [May 28, 2021, 9:01am UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/9 "2021-05-28T09:01:40Z")

</div>

Could packets in a single flow be split among the interfaces? What are the traffic sources for your 3 interfaces?

---

<div class="post-metadata">

### Author: ![Nuno\_Santos](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@Nuno\_Santos](https://forum.suricata.io/u/Nuno_Santos)
#### Post date: [May 28, 2021, 1:07pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/10 "2021-05-28T13:07:25Z")

</div>

One of the interfaces is mirroring internet traffic (outside). The other two are mirroring inside traffic, some special networks and VRF traffic

---

<div class="post-metadata">

### Author: ![syoc](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@syoc](https://forum.suricata.io/u/syoc)
#### Post date: [May 31, 2021, 1:16pm UTC](https://forum.suricata.io/t/suricata-packet-seen-on-wrong-thread/1386/11 "2021-05-31T13:16:46Z")

</div>

Is the mirroring done using for example switch span ports or physical fiber taps?  
You could try to run 3 tcpdump sessions, one on each interface, and look at the pcaps in wireshark. Out of order packets or sessions being split between interfaces might be highlighted as broken sessions in wireshark.
