V
V
Volodymyr Palamar2020-03-24 15:59:54
linux
Volodymyr Palamar, 2020-03-24 15:59:54

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

3 answer(s)
V
Volodymyr Palamar, 2020-04-04
@GORNOSTAY25

Squit proxy

K
Karpion, 2020-03-24
@Karpion

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.

M
mayton2019, 2020-03-24
@mayton2019

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 question

Ask a Question

731 491 924 answers to any question