Answer the question
In order to leave comments, you need to log in
Who can explain to me how traffic shaping works using a proxy?
I want to write a proxy that can control the data transfer rate for each of the clients. But I don't know how traffic speed control works(
Who can explain to me?
Answer the question
In order to leave comments, you need to log in
The FreeBSD kernel has a firewall called ipfw (and two more, but we don't need them); it has body kits, incl. shaping and simulated packet loss. The source code is open, you can read it, pull it as is, rewrite it for yourself: there is a BSD-license.
There is Proxy-server Squid , it has its own shaping. The code is also open, you can take it and redo it, but I'm not sure about the license - maybe it's GPL.
Read the documentation for both, paying attention first of all to the shaping theory.
Algorithmically, this is a FIFO type buffer. On the one hand, IP packets come in. On the other hand, they leave with a delay so that the average amount of traffic per unit of time does not exceed the limit.
It was theory. Practically shapers code in C or C++.
It is doubtful that an effective shaper could be made in Python.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question