I want to add latency to emulated a networking delay, but I am unaware of where to find a list of the SSH commands for gl.inet. Does anyone know the command for adding a delay as well as clearing it when I am done using it?
What instructions do you want to use to simulate network latency,tc?
Hello, I am not very well versed in Linux/terminal commands, but I see tc has controls for simulating network latency through netem. Could you please tell me how to get it installed and add latency, then clear the latency when I am done?
Hi, I'm looking for the same answer, and I already studied and able to find a good way to do this.
So if you can please give here some example of sh script, using tc to add some artificial latency to a particular IP address assigned to our Glinet router.
Thanks a million!!!
opkg update
opkg install tc
# or
# opkg install tc-full
will install the package tc
if available.
Hi, thanks, the tc was already installed in my Gl-Inet.
what I'm not able to do is to add delay using the command and/or iptables.
if someone can help me, for example to delay the connection for the internal ip address: 192.168.8.120
thanks
as workaround I was able to add latency to the guess network, using tc:
tc qdisc add dev rax1 root netem delay 100ms
the problem is that I lost all the other information about that interface and the speed drop from around 700Mbps to not more than 50mbps, but I don't thing that this is for the delay, I also tried after that with a delay of 1ms and the general speed was the same.
the following line is the default entry of qdisc before the tc command:
qdisc fq_codel 0: dev rax1 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
that completely disappear when running the above tc command!
someone know how to add delay and keep the above information for the interface?
thanks