Hello.
I was wondering if anyone knows if it is possible to shape an internet connection like ISPs(?) do.
What i mean is having for example a 100/100mbit connection and share it evenly by queueing and increasing the latency of the packets into a reasonable margin of a max 100ms.
So for example if 1 user is downloading from a host at full 100mbps and ping is 50ms(from internet), then a 2nd user starts downloading, should get also 100mbps but increasing both users latency like a round robin pattern.
Is this some sort of TDMA thing? Do Queues do that already?
I’m afraid you may have misunderstood the relationship between speed (bandwidth) and latency.
If you have a link with a physical throughput of 100 Mbps, the sum of all flows on it cannot be higher than 100 Mbps. So it is not possible that both users got 100 Mbps at the same time on the same 100 Mbps link as you want.
ISPs use shaping to limit users’ traffic well below the physical throughput of the link. To do that, they use packet queues, and the speed limitation consists in releasing the packets from the queue in a controlled way. So if the user downloads less than the limit, the queue stays empty and doesn’t delay the packets; if the total of the flows towards the user exceeds the limit, the queue starts filling up, and thus the packets at the tail of the queue must wait until the previous ones get delivered. So the increase of the delay is not a means to limit the speed but an inevitable side effect of the speed limitation method.