# Google Compute Engine - Asia to USA - could not send 4Mbps stream

**URL:** <https://community.wowza.com/t/google-compute-engine-asia-to-usa-could-not-send-4mbps-stream/43574>\
**Category:** Wowza Streaming Engine\
**Created:** [August 5, 2014, 9:17pm UTC](https://community.wowza.com/t/google-compute-engine-asia-to-usa-could-not-send-4mbps-stream/43574 "2014-08-05T21:17:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prem\_Anand](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@Prem\_Anand](https://community.wowza.com/u/Prem_Anand)\
**Post date:** [August 5, 2014, 9:17pm UTC](https://community.wowza.com/t/google-compute-engine-asia-to-usa-could-not-send-4mbps-stream/43574/1 "2014-08-05T21:17:09Z")

</div>

Hi,

I am transcoding a 4Mbps stream to 2 additional bitrates in a Google compute engine(GCE) asia-eastb instance(WowzaSE 4.0.4-Debian Image). I am able to pull all the streams properly to a server in Singapore & India, but the source stream(4Mbps) is not reaching another GCE instance in us-central region properly. The lower quality streams work fine. I tried this with both public IP and internal IP of the GCE instances.

Generally, I am not able to pull a live stream with a bitrate higher than 2Mbps properly between asia and usa. I signed up for GCE just because this issue happens between two ad-hoc servers between India & USA, but the situation is the same even with GCE. Is this an RTMP issue or am I missing something? Is there any other mode of origin-edge configuration which can work properly ? Has anyone faced such issues and resolved it?

Thanks,

Prem

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [August 5, 2014, 8:51pm UTC](https://community.wowza.com/t/google-compute-engine-asia-to-usa-could-not-send-4mbps-stream/43574/2 "2014-08-05T20:51:24Z")

</div>

Hi,

Are you able to conduct any bandwidth tests between the two nodes? It would be useful if you could confirm that you can sustain a 4+ Mbit/sec throughput outside of Wowza. Something simple like [netcat](http://deice.daug.net/netcat_speed.html) may help.

It may also be useful to examine your logs at the time you’re seeing issues with the stream failing. Post them here if they show anything of interest.

Kind regards,

Paul

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [August 7, 2014, 10:54am UTC](https://community.wowza.com/t/google-compute-engine-asia-to-usa-could-not-send-4mbps-stream/43574/3 "2014-08-07T10:54:49Z")

</div>

Hi,

Also, the high latency (ping time) between the two locations combined with the default network settings for Wowza may be causing the issue. There are some adjustments that you can make which may improve things.

The default settings use a fixed size for the TCP send and receive buffers which normally works fine for low to medium latencies but can cause issues for high latency connections when streaming high bitrate streams.

By setting the Wowza servers use the OS automatic settings for the buffer sizes, you will allow the OS to adjust them to suit the individual streams which should improve things.

To do this, set the **sendBufferSize** and **receiveBufferSize** to **0** for the streaming HostPort and NetConnections. **Don’t change the readBufferSize setting form the default value**.

The streaming HostPort setting can be changed in the Manager from **Server** \> **Performance Tuning** \> **Virtual Host Ports** \> **Properties**.

The NetConnection setting can be changed from **Server** \> **Virtual Host Setup** \> **Properties**

Roger.

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [August 11, 2014, 12:19pm UTC](https://community.wowza.com/t/google-compute-engine-asia-to-usa-could-not-send-4mbps-stream/43574/4 "2014-08-11T12:19:18Z")

</div>

Hi,

Good to hear that these settings worked for you.

Roger.

---

<div class="post-metadata">

**Author:** ![Prem\_Anand](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@Prem\_Anand](https://community.wowza.com/u/Prem_Anand)\
**Post date:** [August 9, 2014, 1:32am UTC](https://community.wowza.com/t/google-compute-engine-asia-to-usa-could-not-send-4mbps-stream/43574/5 "2014-08-09T01:32:54Z")

</div>

Thanks Paul & Roger for your support.

I could get 30-40Mbps throughput between the GCE instances using netcat. I’ll set the buffersizes to zero and test. Will post the results here.

Warm Regards,

Prem

---

<div class="post-metadata">

**Author:** ![Prem\_Anand](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@Prem\_Anand](https://community.wowza.com/u/Prem_Anand)\
**Post date:** [August 11, 2014, 12:02am UTC](https://community.wowza.com/t/google-compute-engine-asia-to-usa-could-not-send-4mbps-stream/43574/6 "2014-08-11T00:02:55Z")

</div>

Hi,

After setting the sendBufferSize and receiveBufferSize to 0 for the streaming HostPort and NetConnections in conf/VHost.xml file, I am able to stream 4Mbps without issues. I did the changes in both the instances. Thanks for your support. If there are any additional setting which would help to improve the throughput, pls let me know.

Thanks & Warm Regards,

Prem
