I am wondering why tc command does not work as expected. I set the command like the following
tc qdisc add dev eno0 root handle 1:0 tbf rate 50mbit burst 25kb limit 250kb
where I'm expecting outbound communication is simulated over 50Mbps bandwidth. Now, I'm trying to let two processes communicate with each other on a same machine using local ip address (say, 192.168.0.4) associated with eno0
.
In order to know the affect of the tc
command.
I used iperf
command on two processes A
and B
.
At process A
, I ran iperf -s
.
At process B
, I ran iperf -c 192.168.0.4
.
However, the observed bandwidth rate is approximately 300Mbit/sec
. (Not around 50Mbit/sec
!).
The machine is located under the router that can process 1Gbps at most.
And, the LAN cable is capable to deal with enough bandwidth rate.
When I tried to do the same thing using two different machines under the same router where the role of process A is on another machine while the role of process B is on the machine having IP address 192.168.0.4
, observed bandwidth is around 50Mbit/s
.
How can I get 50Mbps
simulation on the same machine??
Is it impossible to do that?
Thank you very much!