I am running client and server on the same maching. And I want to shape the communication bandwidth between them to an accurate value. I used a command like this:
tc qdisc add dev lo root tbf rate 220bit latency 50ms burst 1540
After running the command, I am not sure whether I have shaped the bandwidth successfully. How should I test it?
And my codes report a sending error after it runs a function about sending data. What kind of these errors should be?(If I do not shape the bandwidth, there are no errors.)
PLEASE GIVE ME SOME POSSIBLE GUIDANCE. Thank you very much. My version is SUSE 10.1