RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Papers & Presentations Archive
Adaptive Bitrate (ABR) Manager
Configuration/defaults:
abr-cache-life=<x in sec> lifetime value for abr cache for network bandwidth calculation(default 5 sec)
abr-cache-length=<x> length of abr cache for network bandwidth calculation (default 3)
abr-cache-outlier=<x in bytes> Outlier difference which will be ignored from network bandwidth calculation(default 5MB)
abr-nw-consistency=<x> Number of checks before profile incr/decr by 1.This is to avoid frequent profile switching with network change(default 2)
abr-skip-duration=<x> minimum duration of fragment to be downloaded before triggering abr (default 6 sec).
with VBN build we can create/use /opt/aamp.cfg to force a specific profile. The relevant configuration options are:
abr | disable abr mode (defaults on) |
default-bitrate | specify initial bitrate while tuning, or target bitrate while abr disabled (defaults to 2500000) |
default-bitrate-4k | specify initial bitrate while tuning 4K contents, or target bitrate while abr disabled for 4K contents (defaults to 13000000) |
For example:
```abr
default-bitrate=1200000```
Will disable abr and use the explicitly specified bitrate.
Bandwidth Throttling
To throttle the bandwidth, enable linux traffic control in the kernel using the tc utility. (This means one can change the bandwidth throttling fair easily from a terminal / script.)
In a terminal, initialize traffic control with a bandwidth of 15000kbit:
modprobe ifb
ifconfig ifb0 up
tc qdisc add dev eth0 ingress
tc filter add dev eth0 parent ffff: protocol all u32 match u32 0 0 action mirred egress redirect dev ifb0
tc qdisc add dev ifb0 root handle 1: htb default 1
tc class add dev ifb0 parent 1: classid 1:1 htb rate 15000kbit
(Here it is connected via ethernet but if its connected on wifi replace eth0 with wlan0, change it according to the interface in the device)
To drop the bandwidth to 5000kbit:
tc class change dev ifb0 parent 1: classid 1:1 htb rate 5000kbit
Review to refer => RDKAAMP-371
DISCLAIMER: Please note that the use of the RDK Wiki is subject to its Privacy Policy & Terms of Use. In addition, this Wiki may be accessed by all RDK licensees and their contractors.
Powered by a free Atlassian Confluence Open Source Project License granted to RDKCentral. Evaluate Confluence today.