Re: Handling severe packet loss (serialization).



jkv wrote:
Hi,

I am developing a application which have to continue working even in a
high packet loss environment, i have attached the serialization and
network transmission parts from both the server and client.
It works when there are no packet loss, but when introducing severe
packet loss (10%) it starts crashing because the ' int size =
br.ReadInt32();' in the server snippets reads some random data. [...]

What protocol are you using? TCP shouldn't have any trouble. If you're using UDP, switch to TCP or don't break your data across datagrams. If you're using TCP, then you've done something wrong, probably by making the incorrect assumption that the data will be delivered in the same groups in which it was sent.

Unfortunately, what little code you did post didn't show any of the actual network-related implementation details. It's not really possible to understand from your post why the "high packet loss environment" is causing trouble. But most likely, the answer will be: "use TCP, and use it correctly".

Pete
.



Relevant Pages

  • Re: Beyond multicore
    ... I have had working TCP connexions with 80% packet loss, ... with tens of seconds of jitter. ... Audio is the hardest real time there is, ...
    (comp.arch)
  • Re: Beyond multicore
    ... the signal is not converted back to analogue. ... |> don't have to do that for G.729, the basic model and representation ... I have had working TCP connexions with 80% packet loss, ...
    (comp.arch)
  • Re: tcp failing to recover from a packet loss under 8.2-RELEASE?
    ... tcp failing to recover from a packet loss under 8.2-RELEASE? ... exhaustion is almost certainly the cause of the stalls we're ... reassembly queue to a standstill. ...
    (freebsd-net)
  • Re: How to Quicken TCP Re-transmission?
    ... used on lossy links with big latency and packet loss (such as ... satellites) and overcomes shortcomings of TCP. ... NetBSD / FreeBSD. ... SCTP share the same congestion control response. ...
    (freebsd-net)
  • Re: How to Quicken TCP Re-transmission?
    ... used on lossy links with big latency and packet loss (such as ... satellites) and overcomes shortcomings of TCP. ... NetBSD / FreeBSD. ... SCTP share the same congestion control response. ...
    (freebsd-net)