# Suricata 5.0.2 Parsing http exception

**URL:** <https://forum.suricata.io/t/suricata-5-0-2-parsing-http-exception/126>\
**Category:** Help\
**Tags:** aws\
**Created:** [April 1, 2020, 5:37am UTC](https://forum.suricata.io/t/suricata-5-0-2-parsing-http-exception/126 "2020-04-01T05:37:06Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![vjulien](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vjulien/32/4_2.png) [@vjulien](https://forum.suricata.io/u/vjulien)\
**Post date:** [April 4, 2020, 2:06pm UTC](https://forum.suricata.io/t/suricata-5-0-2-parsing-http-exception/126/22 "2020-04-04T14:06:57Z")

</div>

Wireshark doesn’t restore packets. The packets are missing, it can’t “invent” them back. But what it does well is show as much of the HTTP session as possible. In Suricata we’re working on improving this as well.

`AF_PACKET` would have reported drops if it saw any, so I now really believe the packet loss happens before Suricata.

---

<div class="post-metadata">

**Author:** ![shell\_xu](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/shell_xu/32/63_2.png) [@shell\_xu](https://forum.suricata.io/u/shell_xu)\
**Post date:** [April 4, 2020, 2:18pm UTC](https://forum.suricata.io/t/suricata-5-0-2-parsing-http-exception/126/24 "2020-04-04T14:18:26Z")

</div>

> [@vjulien](#):
>
> But what it does well is show as much of the HTTP session as possible.

Yes, if it can show more http sessions, it should be the best way.I also very much expect it to come as soon as possible.  
alert event also be affected by this issue?

---

<div class="post-metadata">

**Author:** ![shell\_xu](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/shell_xu/32/63_2.png) [@shell\_xu](https://forum.suricata.io/u/shell_xu)\
**Post date:** [April 4, 2020, 2:22pm UTC](https://forum.suricata.io/t/suricata-5-0-2-parsing-http-exception/126/25 "2020-04-04T14:22:36Z")

</div>

> [@vjulien](#):
>
> `AF_PACKET` would have reported drops if it saw any, so I now really believe the packet loss happens before Suricata.

This may be related to AWS 'traffic mirroring, but I don’t know how to solve it.AWS’s traffic mirroring function is just a function for users, and it uses VXLAN to send data to Suricata.

---

<div class="post-metadata">

**Author:** ![shell\_xu](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/shell_xu/32/63_2.png) [@shell\_xu](https://forum.suricata.io/u/shell_xu)\
**Post date:** [April 7, 2020, 2:43am UTC](https://forum.suricata.io/t/suricata-5-0-2-parsing-http-exception/126/26 "2020-04-07T02:43:50Z")

</div>

> [@vjulien](#):
>
> So when looking at it in Wireshark, I see lots of:
> 
> - [TCP ACKed unseen segment]
> - [TCP Previous segment not captured]
> - [XX bytes missing in capture file] (in follow TCP stream view)

@vjulien hi, again.  
I found that the packet was lost. Seems to be related to VXLAN 9015 MTU overload.  
VXLAN will add 50 bytes to the original packet. We find `50 bytes missing in capture file` in packet.

\*_For example, if an 8996 byte packet is mirrored, and the traffic mirror target MTU value is 9001 bytes, the mirror encapsulation results in the mirrored packet being greater than the MTU value. In this case, the mirror packet is truncated. To prevent mirror packets from being truncated, set the traffic mirror source interface MTU value to 54 bytes less than the traffic mirror target MTU value. For more information about configuring the network MTU value, see Network Maximum Transmission Unit (MTU) for Your EC2 Instance in the Amazon EC2 User Guide for Linux Instances._

> **[vpc-tm.pdf](https://docs.aws.amazon.com/pdfs/vpc/latest/mirroring/vpc-tm.pdf)**
>
> 749.61 KB

[Previous page](https://forum.suricata.io/t/suricata-5-0-2-parsing-http-exception/126.md?page=1)
