Network problem with TCP packets



Hi,
I'm using VxWorks 5.5, with a pc104 board of Ampro, and a Intel 82559
Network Interface.

I'm developing an application that sends packet at 5Hz over a TCP
socket.
I'm using two type of messages, their size are 296 and 100 bytes.
The destination is a Java application, but now I'm trying to use a C++
application too.

The message arrive correctly, I can see the values inside every struct
are ok.

But after a while(10 seconds, or 1 minutes, or 5 minutes), the system
freezes and it doesn't send any more packet.

When I send the smallest message (100 bytes), the application seems
more stable, and with a 8bytes message, it IS stable, and goes on
whitout problems.

I tried to increase the SOL_SNDBUF, until 52428 bytes (=0xcccc; I've
read that in a 20/10/1998 post), but the beheaviour remains the same.

There is no priority problem, I think: I have 98% IDLE time (I can see
that with Spy Chart). And no stack problem too...

I've checked the network memory pool: I've noticed that after a while,
the free clusters begin to running out, at first the 512-size ones,
then the 256, and so on until there are no more free clusters, and the
socket closes itself.

So, any idea or suggestion, please ?
Help!

.



Relevant Pages

  • Re: Network problem with TCP packets
    ... > I'm developing an application that sends packet at 5Hz over a TCP ... > I've checked the network memory pool: I've noticed that after a while, ... > then the 256, and so on until there are no more free clusters, and the ... > socket closes itself. ...
    (comp.os.vxworks)
  • Re: question of udp and select()
    ... > I know that selectmust be used to send data via various tcp sockets. ... > selecton this socket must be used? ... has no idea which network interface the packet is going to be sent on. ...
    (comp.unix.programmer)
  • Re: How to terminate a socket in CLOSE_WAIT state
    ... FTP Server fixed for certain FTP clients who use both passive ... This was causing a PASSIVE opened socket to be left ... but instead expect the "half close" from the receiver. ... this sends a TCP/IP FIN packet to the ...
    (microsoft.public.win32.programmer.kernel)
  • [PATCH 2.6.15.4 1/1][RFC] ipt_owner: inode match supporting both incoming and outgoing packets
    ... I am not familiar with kernel internals, so please correct me where I am ... filter packets by the program who is going to receive the packet ... when multiple programs share a socket, ... struct vfsmount **mnt) ...
    (Linux-Kernel)
  • [PATCH 2.6.15.4 1/1][RFC] ipt_owner: inode match supporting both incoming and outgoing packets
    ... I am not familiar with kernel internals, so please correct me where I am ... filter packets by the program who is going to receive the packet ... when multiple programs share a socket, ... struct vfsmount **mnt) ...
    (Linux-Kernel)