I’m currently in the process to use Traffic Shaping ‘tc’ to apply rule hoping to reduce the bursts. The application use UDP port 49155 (20ms audio packets to other devices) to send audio to other devices and tcpdum on that specific port shows massive burst happening (see Pic1).
Here is the output before applying any tc
I used the following tc code:
tc qdisc add dev eth2 root handle 1:0 htb default 30 tc class add dev eth2 parent 1:0 classid 1:1 htb rate 5000bit tc filter add dev eth2 protocol ip parent 1:0 prio 1 u32 match ip dport 49155 0xffff flowid 1:1
After applying tc the traffic looks like this(see Pic2)
After applying tc
Although the bursts have been reduced now to 5000bit, I feel there are still things missing in the tc class to add like delay maybe? I just don’t want this to affect the quality of the service.