packet loss

Hi,
Thank you for response, my hardware:
bot: router (OpenWRT) <--> ethernet (enc28j60) <--> Arduino

A notebook is added to the wifi network of the router, then a wii bluetooth joystick pairs with notebook, sending commands to a java-program on the notebook which receives and sends commands to a C++ program on the router via socket, then from there the command is being sent to Arduino.

I actually did this long ago (a year at least) and had this problem of pocket losing, i.e. sometimes I'm pressing buttons of the joystick and the bot is not moving, or I'm trying to stop it and it goes on to hit head to wall.

Now I'm investigating to setup a new implementation using ROSjava (Android), router (spec. for security) and Arduino, where connections on the bot are all on ethernet EJ45 and the bot is teleoperated via wifi. I don't want to have packet losing this time! I'm going to send this one outdoor to meet people, don't want to heart anyone!

I passed the hello world tutorial of ROS between Arduino and Ubuntu (publisher, subscriber, hello world printing) and now opening way toward ROSjava, but first decided to write here to know why I was losing packets (if I'm referring to the problem with the right name), and implement the new design so that not to repeat mistakes.

Will appreciate greatly your suggestions,