XilNet server data streaming problem from PPC

J

Johan Bernspĺng

Guest
Hi

On a Virtex-II Pro I'm attempting to write a very simple TCP/IP server
application running on the PPC. The goal is that when a client connects
to the server it will wait until the correct command from the client
tells it to send data, so far successful. The problem is that I want the
server to send data streaming until the client tells it to stop, and for
some reason the client won't send the correct ACK to any data packet but
the first one. The acknumber is not updated correctly. I suspect that I
am doing something wrong in my server application. I am able to send
consecutive data packets if (and only if) every packet is acknowledged
by manually sending a packet from the client.

The server only accepts one client at the time, and the connection is
kept alive until the client disconnects it (Yes, I have added that
feature to the TCP state machine of the XilNet library).

Does anyone have similar experience with the XilNet lib? Is it possible
to send streaming data using it?

I will send the source code to anyone interested in giving it a quick look.
--
-----------------------------------------------
Johan Bernspĺng, xjohbex@xfoix.se
Research engineer

Swedish Defence Research Agency - FOI
Division of Command & Control Systems
Department of Electronic Warfare Systems

www.foi.se

Please remove the x's in the email address if
replying to me personally.
-----------------------------------------------
 
Johan Bernspĺng wrote:
Hi

On a Virtex-II Pro I'm attempting to write a very simple TCP/IP server
application running on the PPC. The goal is that when a client connects
to the server it will wait until the correct command from the client
tells it to send data, so far successful. The problem is that I want the
server to send data streaming until the client tells it to stop, and for
some reason the client won't send the correct ACK to any data packet but
the first one. The acknumber is not updated correctly. I suspect that I
am doing something wrong in my server application. I am able to send
consecutive data packets if (and only if) every packet is acknowledged
by manually sending a packet from the client.

The server only accepts one client at the time, and the connection is
kept alive until the client disconnects it (Yes, I have added that
feature to the TCP state machine of the XilNet library).

Does anyone have similar experience with the XilNet lib? Is it possible
to send streaming data using it?

Without knowing the particular package you use, but having
written a fullblown tcp/ip implementation for PPC, I would say
that either your client is messed up (does not send the right
ack segments so you have to manually send them) or, more
likely, some of the segments the server sends after the first
one get lost and thus the client never sends an ACK.
If the IP layer is doing fragmentation/defragmentation, this
could be a place to look at. Also, I have encountered similar
behaviour when I have had simply physical layer problems
(too many lost packets), but in most cases the TCP retransmission
would take care of that.
Hope this is of some help...

Dimiter

------------------------------------------------------
Dimiter Popoff Transgalactic Instruments

http://www.tgi-sci.com
------------------------------------------------------
 
Hi

Yeah had the same problem with that library. I dont think they have
any interest in fixing it either. So I use lwip now. That had bugs
too, Xilinx bugs, but they have sorted it out now.


--
----------------------------------------------
Posted with NewsLeecher v3.5 Beta 2
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------
 

Welcome to EDABoard.com

Sponsor

Back
Top