Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Configuring Icecasts TCP-Packet Size

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
kai4711



Joined: 21 Nov 2007
Posts: 30

PostPosted: Wed Nov 21, 2007 9:58 pm    Post subject: Configuring Icecasts TCP-Packet Size Reply with quote

Hi Guys,

i am using a dedicated Rootserver streaming an audio programme.

When we started the stream I first used shoutcast and it worked fine, with full load of the server. Up to 1000 listeners, about 70Mbit/s...

Then I wanted to switch to Icecast and it worked fine until the provider cutted of the line when we reached about 50 Mbits/s and told us we are making a DDos out of our server. That happend sometimes, so I switched back to shoutcast and it works fine with heavy load... Smile

So I checked the difference and noticed about the TCP-Packet size, and the Shoutcast sizes seems to be twice the shoutcasts... so shoutcast has twice the packets per second at the same bitrate... so our provider thinks we are DDos-ing.....

I didnt find any solutions or information how to configure it...
Can anybody help me?

best regards,
Kai
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Nov 21, 2007 10:30 pm    Post subject: Reply with quote

Can you be clearer on the issue in question. Is this an ogg stream or not, and are we to assume this is 2.3.1?

If it were a direct comparison to shoutcast then it's probably a non-ogg stream and for that we try to collect the incoming stream into blocks of 1400 bytes (just under the commonly used 1500 MTU). The blocking prevents small writes by the source client causing large protocol overhead waste.

I'm not sure on what your are seeing but if shoutcast is generating smaller packets then surely that increases overhead.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kai4711



Joined: 21 Nov 2007
Posts: 30

PostPosted: Thu Nov 22, 2007 8:47 am    Post subject: Reply with quote

Yes its 2.3.1 and its MP3.

I think Shoutcast uses larger packets, so it has less packets per Second.
So I am searching for something making the Icecast-Packets larger... (or another solution that my provider will not detect icecast-load as outgoing DDos.. Smile )

Thank you in advance,
Kai

Edit: Damn, its 2.2.0...


Last edited by kai4711 on Fri Nov 23, 2007 5:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 22, 2007 3:54 pm    Post subject: Reply with quote

The packets should be a little over 1400 bytes, how much bigger do you want them?

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kai4711



Joined: 21 Nov 2007
Posts: 30

PostPosted: Fri Nov 23, 2007 8:26 am    Post subject: Reply with quote

twice? Very Happy

I know that my provider doesnt detect the shooutcast stream as Outgoing-DDos.
When we can say Icecast to have the same packet-structure I hope I can use IC on the server, which is the better streamingserver I think.

Thank you!
Kai

PS: I benchmarked Shoutcast and Icecast at 64kbit/s with 500 listeners ~ 30Mbit/s
Shoutcast: 3.8k packets per second
Icecast: 8K packets per second
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Nov 23, 2007 2:04 pm    Post subject: Reply with quote

Can you provide a tcpdump capture of both sessions, 1 listener should suffice. We would need to know exactly what is going on.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kai4711



Joined: 21 Nov 2007
Posts: 30

PostPosted: Fri Nov 23, 2007 2:57 pm    Post subject: Reply with quote

Can you tell me how to filter the relevant information or do you want the whole echo of tcpdump?

Can you say me how to use? Echo to file?
I am a novice to tcpdump...

Edit:
So I created 2 Dumps filtered by the ports of icecast/shoutcast...
I sent it to you via email...


Thank you,
Kai
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Nov 23, 2007 4:45 pm    Post subject: Reply with quote

Just to follow up on this for others. The actual installation was icecast 2.2.0 which did have an issue of small packet writes, 2.3.1 does not.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber