HLS自适应测试环境搭建
来源:互联网 发布:java aop编程 编辑:程序博客网 时间:2024/06/04 20:01
- 准备需要的设备
- 测试环境的结构
- Ubuntu环境配置
- 路由器的配置
- 设置Ubuntu的NAT连接
- 控制 Bandwidth
- 测试
- Catching logs with Wireshark
- To control the bandwidth for the testing
- Operator Tests Cases description
准备需要的设备
- 1 or 2 Ethernet USB adaptor,如果电脑本身有一个网口,准备一个Ethernet USB adaptor即可。
- 1 Wifi-Ethernet modem Router(路由器)
- 1 linux computer with Ubuntu 14.04 or earlier(本测试环境搭建的时候系统为Ubuntu 14.04)
- 2 network cable(网线2根)
测试环境的结构
Ubuntu环境配置
第一、Wired Network configuration ETH0 and ETH1 (LINUX). Configure the network interfaces
(static or DHCP)
第二、 ETH1 => wired connection from the computer to the Internet network access. Ethernet USB
adaptor can be used but it is optional. Just use the Ethernet port from your computer and
proceed to the following configuration:
这里保证电脑链接到外网,电脑能访问网络
第三、ETH0 : use the Ethernet/USB adaptor and configure as below:
这里设置ETH0,把 USB2.0 to 100Mbps Ethernet Adapter插到电脑的USB接口,另一端链接网线,网线的另一端插入到路由器的WAN口(设置路由器的时候需要插入到LAN口,设置完成后重新插入到WAN口)
路由器的配置
Important Note: wired connection of the this D-LINK model into the computer: IF_IN = ETH0
先将ubuntu设置的第三步中网线连接路由器的LAN口,连接WAN口可能无法访问路由器192.168.0.1,然后打开浏览器输入192.168.0.1访问路由器进行路由器的设置
第一、WAN settings
设置如下图:
注意:设置的Default Gateway也就是默认网关为192.168.99.10,要与Eth0中的ip一致
第二、Network settings
第三、WIRELESS settings
主要是设置供客户端访问的无线网络名称和密码
第四、 设置完成保存后将ubuntu设置的第三步中网线重新连接路由器的WAN口
设置Ubuntu的NAT连接
使用脚本initnetwork.sh进行NAT的配置
#!/bin/bash#sudo initNetwork.sh IF_IN IF_OUT############Enable NATiptables --flushiptables --table nat --flushiptables --delete-chainiptables --table nat --delete-chainiptables --table nat --append POSTROUTING --out-interface $2 -j MASQUERADEiptables --append FORWARD --in-interface $1 -j ACCEPT#Uncomment the line below if facing problems while sharing PPPoE#iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtusysctl -w net.ipv4.ip_forward=1
使用终端输入:#sudo initNetwork.sh IF_IN IF_OUT
查看nm-tool或者route
这里IF_OUT为eth1 IF_IN为eth0
Execute initNetwork script to enable routing/NAT from IF_IN to IF_OUT and allow thedevice to access Internet.
使用命令为sudo initNetwork.sh eth0 eth1
Note: This action must be done each time the computer is switched on.MANDATORY!!!
控制 Bandwidth
Use tc_script.sh to control bandwidth. For both scripts, help for usage is provided in the script.
注意脚本中的IF=eth0,一定是要控制的eth0,即 IF_IN
# The network interface we're planning on limiting bandwidth.IF=eth0 # Interface
完整的tc_script.sh请下载:http://download.csdn.net/download/ch853199769/10145908
If you notice “net.ipv4.ip_forward = 1, the routing is successful. Verify that you have access to internet access via Wifi on your DUT. If yes, your test bench is installed successfully.
测试
Catching logs with Wireshark
During the HTTP Live Streaming testing it is necessary to catch HTTP logs to ensure that the
bandwidth is correctly controlled and adapted.
Launch wireshark (no root privilege) like the picture below:
Capture->Interfaces如下:
选中监控的eth0网口,点击start开始
To filter the HTTP event during the logging for analysis and to verify step by step the tests cases.
To control the bandwidth for the testing
Note:测试前注意eth0和eth1是打开的
To configure: (dans le fichier texte)# The network interface we're planning on limiting bandwidth.IF=eth0# Interface# Download and Upload limit for startLIMIT=400kbit# IP address of the machine we are controllingIP=192.168.99.1# Device IP or Wifi Access Point IPCommand to use for the testing:tc_script.sh {start|stop|change [limit_in_kbps]|restart|show}sudo ./tc_script.sh change 200 //limiter 200kbitsudo ./tc_script.sh show //vérifier la BP actuelle
Operator Tests Cases description
Orange France
www.ftgroup-devices.com
Test Set: 4.adaptation to bandwidth
Test: 4.03 - Significant changes of bandwidth
Run: Run_4-19_16-56-15
Test Parameters:
Step: Test server - Bandwidtch decreaseDescription:
1. Activate the network trace
2. Go to http://hls.ftgroup-devices.com
3. Select 1-19.0。
4. Play the stream for 5min5. Limit the bandwidth to 500kbps
Expected:
The player shall adapt to bandwidth selecting a bitrate adapted to the available bandwidth.The playback shall not be interrupted with buffering phases.
- HLS自适应测试环境搭建
- 搭建HLS直播测试环境
- Android HLS 介绍及自适应测试
- HLS流媒体直播搭建测试
- nginx hls rtmp 环境搭建
- HLS 基本知识及环境搭建
- 搭建简单hls直播测试服务
- 搭建jprofiler测试环境
- 搭建jprofiler测试环境
- DTM测试环境搭建
- 搭建LAMP测试环境
- sysbench测试环境搭建
- trace测试环境搭建
- Selenium测试环境搭建
- TestNG测试环境搭建
- Selenium测试环境搭建
- Android测试环境搭建
- 搭建NAT测试环境
- jQuery点击小图展示大图
- 有用的链接
- 如何获取taskflow的id值,用于控制当前页面的控件显示或隐藏
- git的使用
- 自己python实现mysql2hive 的表结构功能,在脚本后输入mysql_db,mysql_table,hive_db,hive_table和任意字符
- HLS自适应测试环境搭建
- RecyclerView
- JDBC技术
- 使用静态busybox 性能提升, 确一直coredump 的问题
- nginx统计访问量最高的ip
- cmd命令详情
- Okhttp 需要的依赖
- 移植openssl到32位的mips核心板上的详细步骤及遇到的问题解决
- 乌镇互联网大会:大佬们都爱AI