Re: Broken TCP/IP packets




So your reciveing end simply must be written so as it keeps on reading
from the TCP stream up until you have 20 bytes, and store excess bytes
it may have read for the next call. This can easily be implemented
with a ring buffer structure and as many calls to recv() as needed.

If you try to circumvent this, you are fighting against TCP and
potential oddities/requierements of the unterlaying network along the
comunication path.

No converter will break up a 20 byte burst into multiple packets. If this is
happeneing its the worst converter I have ever seen. If the packets were
2,000 bytes then maybe, but I have never seen a converter send while data is
still being recieved. I suspect the user has set a setting wrong on the
device to only allow 10 byte buffer or something. We have 300byte packets
and have NEVER seen on brocken out of hundreds of thousands (I programmed it
to log these and it has never happened).


.



Relevant Pages

  • Re: Broken TCP/IP packets
    ... with a ring buffer structure and as many calls to recvas needed. ... No converter will break up a 20 byte burst into multiple packets. ... happeneing its the worst converter I have ever seen. ...
    (comp.arch.embedded)
  • Re: Broken TCP/IP packets
    ... with a ring buffer structure and as many calls to recvas needed. ... No converter will break up a 20 byte burst into multiple packets. ... i think it should be Ok as TCP/IP is never meant for real time anyway. ...
    (comp.arch.embedded)
  • RE: [fw-wiz] Stateful inspect on return web traffic - eek!
    ... BR> That looks like the last packets of a TCP stream that are being rejected ... BR> because your firewall is taking down the connection after your outgoing fin ... BR> unreachable, so the clients must be getting their traffic somehow, but ...
    (Firewall-Wizards)
  • Re: Parsing packets
    ... Arkady ... In TCP stream I want to discriminate between tcp control packets ...
    (microsoft.public.win32.programmer.networks)
  • Parsing packets
    ... In TCP stream I want to discriminate between tcp control packets ...
    (microsoft.public.win32.programmer.networks)