UDP ethernet lag after 15-20minutes

I'm working on a robotics project that will be using ethernet for communication. For some background, we'll have a laptop running some Processing code with a GUI and libraries to interface with a PS3 controller. Then we'll connect to an Arduino Due (w/ ethernet shield) over a 100ft cat6/7 cable.

For communication we're sending out 12 comma separated, ascii encoded values over UDP (from Processing). After running this code for 15-20 minutes there begins to be a very noticeable lag from when you move a joystick to where you see a motor move. Am I doing something incorrect with the Arduino code? Is this expected? Any suggestions to resolve this issue?

Here's the code running on the arduino: #include <SPI.h>#include <Dhcp.h>#include <Dns.h>#include <Ethernet.h>#i - Pastebin.com

I can't access rubbish bin from work, and I won't access it at home. Why didn't you attach your code, if it's too long to post?

Why is the data in ASCII? I can't be used that way.

I've attached the code as requested.

We're sending the data in ASCII because we had issues sending it as raw data from Processing. When we sent a value from 128-160 the arduino mysteriously received a value of 63. All other values were fine. If we need to use larger values in the future, there will be less code to change and we won't have to worry about endianess.

udp_code.ino (3.49 KB)

Is it slowing up on the processing end or the Arduino end? Put some Serial.println() calls in there to figure it out.

I user raw data with Linux C with UDP and it does fine.

I think I found the issue. I was running it through my Wifi router for testing. Today I tried it with a wired connection, and it's been working flawlessly! Thanks for trying to help!!