[En-Nut-Discussion] Streaming over internet

Ralph Mason ralph.mason at telogis.com
Wed Nov 15 23:39:01 CET 2006


The internet is going to be more busty and latent than a local connection so
all you can do is buffer more before you play it, so you have enough
buffered to cover the interruptions.  Looking at your 5 seconds of buffering
I suspect you probably need enough buffered for 15 seconds.

Ralph


-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Lorenzo Lombardo
Sent: Thursday, November 16, 2006 4:09 AM
To: en-nut-discussion at egnite.de
Subject: [En-Nut-Discussion] Streaming over internet

Hi,
I've developed a software that connects to a server daemon I've written and
this one transfers a mp3 stream to the ethernut to play it.
When my server is running in the local network, there's no problem: the
stream is buffered and played correctly, but when I run it on a remote
computer over the internet, the data transfer is very very slow and the
music hops (1 second of music, 5 seconds of buffering). The code is the
same, but the results are different.

I've set the maximum tcp buffer size to 8760 and the maximum segment size
(mss) to 536. To prevent packet fragmentation in addition to set the mss to
536, I make sure that I won't send more the 536 byte with a single "send"
call. However I tried to change these parameters with various values, but
without effects.

So I'm wondering if I'm missing something... if anyone have any ideas,
please let me know.
I'm working with an Ethernut 2 and a medianut on it.

Regards,

Lorenzo Lombardo
Software Developer
SBN SpA
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list