9.5 C
New York
Tuesday, March 11, 2025

Excessive packet loss when dealing with a number of high-bandwidth UDP streams on account of router MTU fragmentation


I’ve a number of sensor boards which can be streaming 3856 byte packets at 1 kHz. Every of those are streaming to a router, which is performing as an area AP related to Ethernet to my pc the place I course of the information in actual time. I’ve 4 boards so I am dealing with about ~138 Mb/s of knowledge transmision. Every sensor board acts as a UDP server, it simply blasts the information till my host pc subscribes to the UDP stream. The sensors and the WiFi chip are capable of deal with the bandwidth and throughput, I am not observing any dropped packets from the sender facet. Nonetheless, I observed that once I obtained the information on my pc, there was about 20-30% packet drop. After wanting extra into the difficulty, I slowly realized that the packets have been being fragmented by the router’s succesful MTU measurement (1500 bytes), and with 4 UDP streams coming in, all of the packet fragmentation and reassembly was creating large packet loss by overwhelming the router’s CPU. I did a fast check to substantiate the place I created simulated transmission line with senders splitting up the packets on the sender facet into the MTU max measurement (1500 bytes) after which reassembling on the receiving facet, and this lifted the bandwidth restrict and considerably lowered packet loss, and the packets have been reassembled on the receiver facet.

Sadly I can not change the sender facet (the 3856 byte packets coming in), so I am questioning what makes essentially the most sense.

  1. Have a Ethernet change and a number of routers. Every sensor board can be subscribed to its personal router, and every router would deal with the “jumbo frames” individually. The router is ready to deal with as much as 2 sensor boards on the required sampling price with out important packet loss.
  2. I wasn’t positive if there have been any inexpensive routers that might deal with a.) bigger MTU sizes to stop fragmentation and reassembly, thus stopping bottleneck on the router’s CPU. I am at present utilizing a TP Hyperlink AXE5400.

What can be essentially the most environment friendly and efficient answer to deal with these a number of high-bandwidth UDP streams whereas minimizing packet loss? Are there particular router suggestions that might deal with this load, or would a multi-router setup be extra sensible?”

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles