Results 1 to 8 of 8

Thread: Question about : SendBufferSize / ReceiveBufferSize

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2013
    Posts
    15

    Default Question about : SendBufferSize / ReceiveBufferSize

    Hi .
    My website is movie website (my server use FTTH 1GB), How can i set SendBufferSize / ReceiveBufferSize to client watch movie HD (Resolution:1280* 720 ,Bit Rate:1499 kbps ,Frame Rate:24) fastest . If client use Adsl speed 3MB how can i set SendBufferSize / ReceiveBufferSize . Thanks and sorry my english is bad.
    Last edited by maivietanh2000; 11-26-2013 at 11:05 AM.

  2. #2

    Default

    You can find these settings in [install-dir]/conf/VHost.xml /HostPort (/Port 1935) /SocketConfiguration

    For VOD applications the defaults should be sufficient.

    Salvadore

  3. #3
    Join Date
    Nov 2013
    Posts
    15

    Default

    Quote Originally Posted by salvadore View Post
    You can find these settings in [install-dir]/conf/VHost.xml /HostPort (/Port 1935) /SocketConfiguration

    For VOD applications the defaults should be sufficient.

    Salvadore
    Thank you for answer . Your answer mean :
    <ReceiveBufferSize>65000</ReceiveBufferSize>
    <SendBufferSize>65000</SendBufferSize>

  4. #4

    Default

    Yes, those are the defaults for VOD applications.

    There are multiple sets of these settings in VHost.xml so be sure to edit the set in /HostPort (/Port 1935) if you do modify them.

    Salvadore

  5. #5
    Join Date
    Nov 2013
    Posts
    15

    Default

    Quote Originally Posted by salvadore View Post
    Yes, those are the defaults for VOD applications.

    There are multiple sets of these settings in VHost.xml so be sure to edit the set in /HostPort (/Port 1935) if you do modify them.

    Salvadore
    If i want cilent watch faster not delay . should i increase or Decrease SendBufferSize / ReceiveBufferSize .

    Example :

    <ReceiveBufferSize>120000</ReceiveBufferSize>
    <SendBufferSize>120000</SendBufferSize>

    or

    <ReceiveBufferSize>16000</ReceiveBufferSize>
    <SendBufferSize>16000</SendBufferSize>

    Thanks

  6. #6

    Default

    Hi,

    Larger SendBufferSize and ReceiveBufferSize will give better throughput on connections where there is a lot of latency (high ping times). The amount of throughput possible in bytes per second must be lower than the buffer size / rtt (round trip time). The size of the buffers determine how much data can be sent before the sending end must stop and wait for a reply from the receiving end. The size used for the connection will be the smaller of the senders send buffer or the receivers receive buffer.

    Generally most modern clients will use automatic settings so the send buffer on Wowza may limit the connection speed for high latency connections. Wowza by default uses 65000 for the send buffer because it is a good average value. This will give you the following performance figures:

    65000bytes / 50ms rtt = 1300000 bytes / sec = 10.4mbps
    
    65000 / 100ms = 5.2mbps
    
    65000 / 200ms = 2.6mbps
    As you can see, the further away the client player is, the less throughput it will have streaming from your server. Unless your player is a very long way away, the default settings should be fine for the stream and player you have described.

    You can severely restrict the throughput if you set it too low. The low latency settings are for when the players are very close to the server or the stream bitrates are very low.

    16000bytes / 50ms rtt = 320000 bytes / sec = 2.56mbps
    
    16000 / 100ms = 1.28mbps
    
    16000 / 200ms = 640kbps
    The receive buffer sizes on Wowza generally only affect publishing of live streams so these should be set to allow your publishing encoders plenty of bandwidth.

    If you set the sizes too big then you can run into problems when congestion occurs as it will take longer for the server to detect and make adjustments to overcome it. For this reason, you should not set these values too large.

    If you know roughly how far away your players and publishers are then you will be fine using manual settings.

    If you have Wowza 3.5.0 or later then you can use automatic settings. When this is enabled, Wowza lets the operating system determine the best settings for each connection and it will adjust them to suit the current network conditions.

    To set wowza to use the automatic settings, set the ReceiveBufferSize and SendBufferSize to 0.
    <ReceiveBufferSize>0</ReceiveBufferSize>
    <ReadBufferSize>65000</ReadBufferSize>
    <SendBufferSize>0</SendBufferSize>
    NOTE: The ReadBufferSize is an internal Wowza buffer and must not be set to 0. Leave this at the default value.
    If your VHost.xml does not list ReadBufferSize then it is most likely an old version and should be updated to the current version which is available when you update Wowza 3.x.x to the current version.

    For MediaCaster connections, you can make the same adjustments in the NetConnections section in the VHost.xml file.

    Roger.
    Last edited by roger_l; 11-26-2013 at 10:27 PM.

Similar Threads

  1. [Rant] SendBufferSize recommendations
    By Mantriur in forum Performance Tuning Discussion
    Replies: 4
    Last Post: 10-08-2012, 11:27 AM
  2. RTMP HD SendBufferSize
    By Guille in forum General Forum
    Replies: 1
    Last Post: 07-08-2012, 06:42 AM
  3. ReceiveBufferSize and SendBufferSize in VHost.xml
    By jiwan2004 in forum Server Administration Discussion
    Replies: 2
    Last Post: 05-26-2012, 08:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •