• How to address network congestion by using a stream source

    The Wowza Streaming Cloud™ service typically receives incoming live video streams into a broadcast location near the encoder. Sending encoded live streams directly to servers at these regional hubs is usually the fastest way to start transcoding in Wowza Streaming Cloud.

    An alternative, however, is to send your encoded live stream to a Wowza Streaming Cloud stream source. Stream sources provide different entry points to Wowza Streaming Cloud transcoders. When stream sources are based on your encoder's IP address, they potentially give your encoder an even closer entry to Wowza Streaming Cloud than the nearest broadcast location. If you experience network congestion or packet loss when you send live streams to a broadcast location in Wowza Streaming Cloud, try routing your encoded stream through a stream source, instead.

    Contents


    Determine latency up to Wowza Streaming Cloud
    Create a stream source based on your encoder's IP address
    Send your live stream through the stream source
    Test the connection to the stream source

    Determine latency up to Wowza Streaming Cloud


    All live streams travelling from an encoder to the Wowza Streaming Cloud transcoder encounter some amount of network traffic. However, it shouldn't take more than 50 ms for an encoded stream to reach a Wowza Streaming Cloud transcoder. Start by determining if your stream is taking longer than that or experiencing packet loss by pinging the transcoder from your computer or encoder, or by running a traceroute.

    Notes:
    • You can ping or traceroute streams being pushed to Wowza Streaming Cloud, not streams being pulled into Wowza Streaming Cloud. Streams that are pulled include RTMP and RTSP streams from IP cameras.

    • Stream sources receive streams over RTMP only. If you're trying to troubleshoot an RTSP connection to Wowza Streaming Cloud, you'll have to switch to an RTMP connection in order to use a stream source.
    First, identify the domain name of the transcoder you want to ping or traceroute.

    1. In Wowza Streaming Cloud, click Live Streams on the menu bar and select the stream you're working with from the Live Streams panel on the left side of the page.

    2. On the Overview tab of the stream's detail page, look for the Primary Server in the Source Connection Information.



      If there's no Source Connection Information for the live stream on the Overview tab of the stream's detail page, go to its transcoder detail page (click Advanced > Transcoders and select the stream from the Transcoders panel on the left side of the page). Then, look for the Host Server on the Transcoder Setup tab of the transcoder detail page.



    3. Copy or make note of the domain name of the Primary Server or Host Server. The domain name is the part after the protocol and before the application name. For example, if the Primary Server is rtmp://1ab2cd.entrypoint.cloud.wowza.com/app-612a then the domain name is 1ab2cd.entrypoint.cloud.wowza.com.

    4. Ping the domain name from the computer running your encoder by doing one of the following:

      • (Windows) In a Command Prompt window, enter the command tracert domainname. For example:

        tracert  1ab2cd.entrypoint.cloud.wowza.com
      • (OS X) Open Network Utility, located in the /System/Library/CoreServices/Applications folder. Then, click the Ping or Traceroute tab, enter the Wowza Streaming Cloud domain name in the field provided, and click Ping or Trace.

      • (Linux) In a Terminal window, enter the command traceroute domainname. For example:

        traceroute  1ab2cd.entrypoint.cloud.wowza.com
    Note: Consult with your network admin or ISP if you need help pinging or running a traceroute to Wowza Streaming Cloud.
    If the result is over 50 ms or shows packet loss, create an RTMP stream source based on your encoder's IP location.

    Create a stream source based on your encoder's IP address


    Wowza Streaming Cloud can create a resource (a stream source) to receive your encoded stream based on your encoder's IP address, offering you the closest possible entry to the service. After you've determined that there's too much network congestion or your encoded streams are experiencing packet loss on their way to to a Wowza Streaming Cloud broadcast location, create an RTMP stream source to receive the stream instead.

    1. Click Advanced on the menu bar, and then click Stream Sources.

    2. Click Add Source.

    3. Enter a short, descriptive Stream Source Name.

    4. For Stream Source Location, choose Create a location based on my source encoder's IP address.

    5. Enter the Primary IP Address of your source encoder and, if you have it, the Backup IP Address of the source encoder.

      Consult your camera or encoder's documentation if you need help determining its IP address.

    6. Click Add.

      Wowza Streaming Cloud creates a custom stream source based on your encoder's IP address. Custom stream sources typically take under 15 minutes to prepare but they may take up to 45 minutes. When the source is ready, Wowza Streaming Cloud tells you the stream source has been successfully created.

    7. Refresh the browser page to see the primary and backup URLs for the stream source.

    Send your live stream through the stream source


    Now, edit your live steam's transcoder to use the stream source you just created.

    Reminder: Stream sources receive streams over RTMP only. If you're trying to troubleshoot an RTSP connection to Wowza Streaming Cloud, you'll have to reconfigure the live stream to use RTMP in order to send it to a stream source. The easiest way to do that is to choose Other RTMP as the camera or encoder you're using to connect to Wowza Streaming Cloud.
    1. In Wowza Streaming Cloud, click Advanced on the menu bar and then click Transcoders.

    2. Select the stream you're working with from the Transcoders panel on the left side of the page.

    3. Click the Transcoder Setup tab and then click Edit.

    4. Under Source Protocol, select RTMP.

    5. Under Source Delivery Method, choose Push to an existing stream source.

    6. Choose the source you just created from the pop-up list.



    7. Click Save.

    Wowza Streaming Cloud updates the transcoder. The Transcoder Setup tab of the transcoder detail page shows that the Source Delivery Method is Push to an existing stream source, and the Primary Server and Backup Server use the domain name of the stream source.


    Test the connection to the stream source


    Ping or traceroute the new Primary Server of the stream source to see if the connection has improved. If it has, start the live stream using with the newly edited transcoder settings.

    Originally Published: 01-22-2016.
    Updated: 12-09-2016.

    If you're having problems or want to discuss this article, post in our forum.