PacketSender icon indicating copy to clipboard operation
PacketSender copied to clipboard

[BUG] 0 and 1 Length ACK UDP packets not showing up in log

Open jalius opened this issue 2 years ago • 3 comments

What OS and Version?

Windows 11 V 8.4.3 Binary

Description of issue

The log isn't receiving any 1 length or 0 length UDP packets. These packets are supposed to be responses like ACK, but they don't show up in the log. Wireshark does show the packets.

jalius avatar Sep 20 '23 22:09 jalius

This is by design. Packet Sender only shows the data because it lets the OS handle TCP session management.

dannagle avatar Sep 24 '23 00:09 dannagle

This is by design. Packet Sender only shows the data because it lets the OS handle TCP session management.

Hi. Do you mind elaborating on this? I'm trying to implement UDP acknowledge but I think I'm missing something fundamental about networking.

jalius avatar Nov 30 '23 17:11 jalius

UDP does not use sessions. There are no acknowledgements unless you send that yourself in your code.

Since every UDP packet is complete, Packet Sender does not apply any filtering to UDP.

Here is a screenshot of a zero-data packet captured by Packet Sender:

image

You may want to set up a loopback test using 2 Packet Senders to help your understanding of what is happening. Take a look at this screenshot as a guide on how you can set that up: https://github.com/dannagle/PacketSender/issues/172#issuecomment-580263514 . For your test, use "UDP" instead of TCP.

dannagle avatar Nov 30 '23 17:11 dannagle