• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

tracking TCP packets?

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..

we have the following setup

to java process communicating by sockets with each other, and another one on an external machine.

from time to time, there seem to be "outages" where one process is unable to communicate with the other, the simply indicate things like "connection refused" exceptions, and while it seems the processes themselves are mis-behaving i'm not sure that is the case.

how can i know for sure the a tcp packet sent from one process (at least in the same machine) was received by another process and vice versa ? that it wasn't blocked by anything else?
i think IPTABLES has this log feature , but not sure how to use it.
 
author
Posts: 23834
140
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Elhanan Maayan wrote:hi..

we have the following setup

to java process communicating by sockets with each other, and another one on an external machine.

from time to time, there seem to be "outages" where one process is unable to communicate with the other, the simply indicate things like "connection refused" exceptions, and while it seems the processes themselves are mis-behaving i'm not sure that is the case.

how can i know for sure the a tcp packet sent from one process (at least in the same machine) was received by another process and vice versa ? that it wasn't blocked by anything else?
i think IPTABLES has this log feature , but not sure how to use it.



The only way to make sure from one application that another application has received a message -- is to have the other application report that it received it. And even then, there are edge conditions, such as the other application received it, acknowledge it, but the machine dies before it can process the message. This is doubly an issue, when TCP sockets are connecting and disconnecting, as there are always a chance of loss when connections are torn down.

Henry
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!