LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-29-2013, 08:06 AM   #1
emaayan
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Rep: Reputation: 0
Question tracking TCP packets?


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.
 
Old 04-29-2013, 09:12 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
try LOG target and the matched packets will have traces in syslog (most likely /var/log/syslog)
 
Old 04-29-2013, 09:14 AM   #3
emaayan
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Original Poster
Rep: Reputation: 0
can you be more specific?

i'm sorta of a noob in linux?
 
  


Reply

Tags
java, tcp, trace



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tracking TCP Connections With tcptrack LXer Syndicated Linux News 0 08-01-2007 07:31 PM
Accessing TCP flags in TCP packets on Linux using C !! vishamr2000 Programming 2 10-16-2006 09:46 AM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
tcp packets wedgeworth Linux - Software 7 05-10-2004 04:40 PM
tcp/ip packets lackluster Programming 4 07-07-2002 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration