[ale] Weird behavior when simulating network latency

Chris Fowler cfowler at outpostsentinel.com
Thu Mar 5 11:34:48 EST 2020


I ran into this weird issue in debian running kernel 4.19.0 while simulating packet loss an latency. My SSH session to the fw after I enable the tc rules act as if it is also degraded. Response to my typing is sporadic. Network traffic between my fw and my desktop does not seem to be affected. Traffic between the fw and the target is degraded and the rules seem to work. What baffles me is the affect it has on a SSH connection to the fw and to fix that I have to disable the rules. Possibly, the tc config is wrong? 

----- [ cut here ] ------------ 

#!/bin/bash 

NIC=br0 
TARGET=192.168.1.6 

if [[ ! -z ${1+x} ]]; then 
if [[ "${1}" == "stop" ]]; then 
tc qdisc del dev ${NIC} root 
exit 0 
else 
echo "$0 <stop>" 
exit 1 
fi 
fi 


tc qdisc del dev ${NIC} root &>/dev/null 
tc qdisc add dev ${NIC} root handle 1: prio 
tc qdisc add dev ${NIC} parent 1:1 handle 2: netem delay 150ms loss 30% 30% 
tc filter add dev ${NIC} parent 1:0 protocol ip pref 55 handle ::55 u32 match ip dst ${TARGET} flowid 2:1 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.ale.org/pipermail/ale/attachments/20200305/9476ddf8/attachment.html>


More information about the Ale mailing list