Ask Your Question
0

Could someone please help me with a problem I'm having with an RFID reader system that uses TCP/IP communication?

asked 2026-06-24 12:11:10 +0000

Zaamin gravatar image

I have a system where an RFID reader reads some transponders, but I'm experiencing a series of timeouts that occur after the maximum time of 500 ms. I’m not an expert in Wireshark or TCP/IP communication, but based on my analysis, I haven’t seen any concrete evidence that the problem lies in the communication between the CPU and the reader. I’ve noticed some retransmissions and the occasional RST—could this be the cause of the timeouts I’m experiencing when reading these transponders?

I recorded the communication between the CPU (192.168.123.83) and the RFID reader (192.168.123.142), and the only interface between them is an industrial switch with PROFINET communication.

|CPU| <---PROFINET---> |SWITCH| <---ETHERNET---> |RFID (reader)|

I've attached the file to the Drive link below, in case anyone would like to take a look at it

WireShark file: https://1drv.ms/f/c/eff369258839971a/...

edit retag flag offensive close merge delete

Comments

Where/how is the packet capture made? See the CaptureSetup of the Wireshark wiki.
Jasper's blog (https://blog.packet-foo.com/) has articles on packet capture and when to capture in multiple spots.
The goal is to see if the RFID reader is not responding or if it does and the packets are lost before they reach the cpu.

Chuckc gravatar imageChuckc ( 2026-06-24 14:31:19 +0000 )edit

Thank you for the document. I’m capturing the data using a “Switch + Monitor Port” setup, where I’ve mirrored the port to which the RFID is connected to another port, to which I’ve connected Wireshark.

The system is simple: I have a CPU connected directly to the switch via PROFINET and an RFID connected to the same switch via Ethernet.

As I said, I’m no expert, but from what I’ve been able to analyze, the RFID isn’t failing to respond. However, I can’t say whether data is being lost between the two devices due to RSTs or retransmissions. If these alarms aren’t anything to worry about, I’ll know that either the CPU isn’t able to process the amount of data being exchanged or that the physical network path is compromised. Thank you.

Zaamin gravatar imageZaamin ( 2026-06-24 17:05:27 +0000 )edit

Any idea why the source port (2002) on the cpu never changes?

Chuckc gravatar imageChuckc ( 2026-06-24 17:55:00 +0000 )edit

I'll quit here - there are others with more knowledge of TCP.
Current versions of Wireshark support "TCP Conversation Completeness" (see 7.5. TCP Analysis section in the Wireshark User's Guide).
A display filter of tcp.completeness == 1 shows many attempted TCP sessions where the RFID does not respond. Was it too busy to respond or did it ignore the SYN or did it not receive the SYN?

Chuckc gravatar imageChuckc ( 2026-06-24 18:32:17 +0000 )edit

Going on a tangent here: I'm also seeing a lot of ARP broadcast traffic here. I've seen smaller devices (probably like yours) succumb to that amount of traffic. As an experiment you could setup a dedicated network with just the CPU and reader, without other network elements and see if it survives that. It might give a clue.

Jaap gravatar imageJaap ( 2026-06-25 07:01:20 +0000 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2026-07-05 11:19:24 +0000

SYN-bit gravatar image

It looks like the RFID reader is following an IP.ID pattern of incrementing by one. At the time the CPU is retransmitting and the RFID is not responding, the first IP packet from the RFID shows missing IP.ID numbers. So it seems the RFID did respond, but the switch never received it. There are also some other cases where there are IP.ID numbers (i.e. packets) missing from the RFID reader. There could be several causes:

  • The RFID IP stack did send them, but they were never put on the network
  • The packets were put on the network, but got corrupted and were dropped by the switch
  • The switch did receive them, but did not properly process them

I think placing a TAP between the RFID reader and the switch would be the next step in troubleshooting this. Ideally two taps, one directly at the switch between the switch and the patchpanel. Another one between the RFID reader and the patch-panel it is connected to. That would help in finding out where the (assumed) packets got lost.

I used tshark -r RFID3_VC2_16-05-2026.pcapng -Y ip.src==192.168.123.142 -T fields -e frame.number -e ip.id | awk '$2 != l + 1 {print} {l=$2}' to help find places where there is a jump in the IP.ID numbering.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2026-06-24 12:11:10 +0000

Seen: 335 times

Last updated: Jul 05