Issue 03 Date 2018-08-30 HUAWEI TECHNOLOGIES CO., LTD.
Copyright Huawei Technologies Co., Ltd. 2018. All rights reserved. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of Huawei Technologies Co., Ltd. Trademarks and Permissions and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd. All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information, and recommendations in this document are provided "AS IS" without warranties, guarantees or representations of any kind, either express or implied. The information in this document is subject to change without notice. Every effort has been made in the preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute a warranty of any kind, express or implied. Huawei Technologies Co., Ltd. Address: Website: Email: Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China http://www.huawei.com support@huawei.com Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. i
Contents Contents 1 Registering with HUAWEI CLOUD...1 2 Subscribing to Live Streaming Accelerator...2 3 Adding RTMP Live Streaming Domain Names...3 4 Configuring CNAME...7 A Change History... 10 Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. ii
1 Registering with HUAWEI CLOUD 1 Registering with HUAWEI CLOUD Register with HUAWEI CLOUD, and you can enjoy all services provided by HUAWEI CLOUD, including Live Streaming Accelerator. Procedure Step 1 Step 2 Log in to HUAWEI CLOUD. Click Register in the upper right corner of the page displayed. Complete the registration as instructed. After you have successfully registered, the system automatically redirects you to your personal information page. ----End Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 1
2 Subscribing to Live Streaming Accelerator 2 Subscribing to Live Streaming Accelerator Procedure You need to recharge the account before using Live Streaming Accelerator (LSA). Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Log in to HUAWEI CLOUD. Click Console in the upper right corner of the page displayed. Log in to the Console with the account you registered. Click Recharge, and the dialog box for recharging is displayed. Recharge your account as instructed. After recharging, close the dialog box and go back to the Console homepage. Choose Service List > Storage > Live Streaming Accelerator. Select a billing mode on the service subscription page. Read and confirm the service agreement, and then click But Now to subscribe to and access LSA. After subscription, you can change the billing mode based on your own requirements. For details about how to change the billing mode, see Live Streaming Acceleration Purchase Guide. ----End Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 2
3 Adding RTMP Live Streaming Domain Names 3 Adding RTMP Live Streaming Domain Names Currently, online Live Streaming Accelerator (LSA) configuration is available only for live content using RTMP. When accessing LSA, you can choose either push-pull streaming or retrieval pull streaming based on your requirements. Configuration Description You can submit service orders for accelerating live contents using other protocol such as HDL (HTTP- FLV), HLS, and HDS. Add a domain name to LSA for acceleration. After that, a CNAME domain name will be assigned to it. RTMP live streaming has two modes: retrieval pull and push-pull. In retrieval pull mode, only the stream pulling process of the audience is accelerated. In push-pull mode, you need to add a push-stream domain name and a pull-stream domain name. The stream pushing process of the anchor and the stream pulling process of the audience are both accelerated. NOTICE During peak hours from 20:00 to 02:00 on the next day (GMT+08:00), the domain name configuration may not take effect when you add a live acceleration domain name. Deploy the domain name in off-peak hours. Table 3-1 Configuration Description Retrieval pull mode Pull-stream domain name: A pull-stream domain name is the domain name used by the audience to pull stream data from your origin server (live content source). Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 3
3 Adding RTMP Live Streaming Domain Names Origin server type: The origin server that accesses LSA can be expressed by a domain name or IP addresses. When retrieving content, the origin IP addresses or domain name can direct a node to the origin server. A domain name can be mapped to multiple origin servers, namely multiple IP addresses. Domain name: The DNS server will select an optimal resolution record of the domain name and direct the node to retrieve and pull content from the nearest host. IP address/addresses: If the origin server is in the form of one IP address, the HUAWEI CLOUD live stream media center directly accesses it when retrieving and pulling content from the origin server. If the origin server is in the form of multiple IP addresses, the HUAWEI CLOUD live stream media center employs the polling policy to randomly select an IP address to retrieve and pull content. If the origin server has multiple IP addresses and these addresses frequently change, you are advised to use a domain name rather than IP addresses for content retrieval and pulling, which retains your original configurations even if some IP addresses of the origin server change. If your origin server has no domain name, apply for one at the domain name service supplier. Push-pull mode Push-stream domain name: A push-stream domain name is the domain name used by the anchor to push stream data. Pull-stream domain name: A pull-stream domain name is the domain name used by the audience to pull stream data. Procedure Step 1 Step 2 Step 3 Log in to the Console and choose Live Streaming Accelerator. In the navigation pane on the left, choose Domain Name Management > RTMP Live Streaming. On the RTMP Live Streaming page, click Add Domain Name. A dialog box is displayed as Figure 3-1. You can add a maximum of 100 domain names to each account. In push-pull mode, the push-stream domain name and pull-stream domain name each occupy one domain name of the quota. Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 4
3 Adding RTMP Live Streaming Domain Names Figure 3-1 Adding a domain name Step 4 Step 5 Select a live streaming mode based on your service requirements. Configure the acceleration domain name. Table 3-2 describes related parameters. Table 3-2 Parameter description Live Streaming Mode Parameter Description Retrieval pull streaming Pull-Stream Domain Name Origin Server Type Pull-stream domain names must get registered with MIIT. A pull-stream domain name contains a maximum of 51 characters. Select either IP addresses or domain name for the origin server, and enter the corresponding access address in the text box. IP address: The access address is in the form of IP addresses. Enter a maximum of 10 IP addresses and use commas (,) to separate them. Only public IPv4 addresses are allowed. Domain name: The access address is a domain name. This domain name cannot be the same as the acceleration domain name. An origin server domain name contains a maximum of 250 characters. Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 5
3 Adding RTMP Live Streaming Domain Names Live Streaming Mode Parameter Description Push-pull streaming Push-Stream Domain Name Pull-Stream Domain Name The push-stream domain name must get registered with MIIT. A push-stream domain name contains a maximum of 51 characters. The push-stream domain name and the pull-stream domain name cannot be the same. The pull-stream domain name must get registered with MIIT. A pull-stream domain name contains a maximum of 51 characters. The push-stream domain name and the pull-stream domain name cannot be the same. Step 6 Click OK to complete the configuration. ----End HUAWEI CLOUD LSA supports the configuration of transcoding, anti-leeching, and retrieval authentication by submitting service orders. Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 6
4 Configuring CNAME 4 Configuring CNAME By configuring the CNAME record at the DNS service provider, you can direct your domain name to its corresponding CNAME domain name in Live Streaming Accelerator (LSA). After the domain name resolution takes effect, all requests for the acceleration domain name will be directed to LSA nodes. In push-pull streaming mode, CNAME must be configured for both the push-stream domain name and pull-stream domain name. Obtaining a CNAME Domain Name Step 1 Step 2 Step 3 Log in to the Console and choose Live Streaming Accelerator. In the navigation pane on the left, choose Domain Name Management > RTMP Live Streaming. In the acceleration domain name management list, obtain the CNAME information. Figure 4-1 highlights this column in the list. Figure 4-1 Acceleration domain name management list By default, the domain name list displays the status and CNAME of the pull-stream domain name. To obtain the CNAME information of the push-stream domain name in push-pull streaming mode, you need to click on the left of the corresponding pull-stream domain name and unfold the push-stream domain name list. Step 4 When the status of the domain name is Enabled, perform Configuring a CNAME Record for an Acceleration Domain Name. Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 7
4 Configuring CNAME For a new acceleration domain name or a modified acceleration domain name, it takes approximately 15 minutes to deliver the domain name's configuration information to all nodes. ----End Configuring a CNAME Record for an Acceleration Domain Name Configure the CNAME record at your DNS service provider, such as HUAWEI CLOUD DNS, www.net.cn, DNSPod, and Xinnet. For details about the operations, consult your DNS service provider. The following describes how to configure CNAME records on HUAWEI CLOUD DNS. Configuring CNAME records on HUAWEI CLOUD DNS If your DNS service is provided by HUAWEI CLOUD, perform the following steps to configure CNAME records: Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Log in to the HUAWEI CLOUD management console. Choose Network > Domain Name Service and go to the DNS service page. In the navigation tree on the left, choose DNS Resolution > Public Zones. The domain name list of the public zones is displayed. Click the domain name to which you want to add a record set. Click Add Record Set. Configure the parameters as instructed. Table 4-1 shows the parameter description. Table 4-1 Parameter description Parameter Description Example Value Name Specifies the prefix of the domain name. www Type Line TTL(s) Value Specifies the type of the record set, which should be CNAME-Canonical name here. Used when the DNS server is resolving a domain name. It returns the IP address of the server according to the visitor source. For details, see Resolution Line. You must add a Default line to ensure that the website is accessible to all users. Specifies the caching period of the record set (in seconds) Specifies the domain name to be pointed to, that is, the CNAME domain name allocated to you by LSA. CNAME-Map one domain to another Default The default value is 5 min, namely 300s. www.test.com.c.cdnhwc3.c om Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 8
4 Configuring CNAME Parameter Description Example Value Description (Optional) Specifies the description of the domain name. The description cannot contain more than 255 characters. - Step 7 Click OK. ----End The CNAME record takes effect immediately after being added. Verifying Whether the CNAME Has Been Successfully Configured Start the cmd program in Windows, and ping the acceleration domain name. If the command output is not the acceleration domain name, the CNAME configuration is successful. Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 9
A Change History A Change History Release Date What's New 2018-08-30 This issue is the third official release. Updated the following content: Optimized section "Configuring CNAME." 2018-07-30 This issue is the second official release. The issue incorporates the following changes: Replaced "Applying for OBT" in chapter 2 with "Subscribing to SLA." 2018-06-14 This issue is the first official release. Issue 03 (2018-08-30) Copyright Huawei Technologies Co., Ltd. 10