From: Alban Crequy Date: Tue, 07 Jan 2014 18:25:48 +0000 Subject: Traffic shaping on a link with unknown variable bandwidth Message-Id: <20140107182548.39c0d284@rainbow.cbg.collabora.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi, I would like to specify a guaranteed bandwidth on a specific high-priority connection and let other background traffic take the remaining bandwidth, if any. I can identify the high-priority connection with the source/destination ip/port. My problem is that the link has a variable and unknown bandwidth (like wifi or 3G). If I knew the bandwidth of the link, I could just limit the rate of the background traffic with: = (link bandwidth) - (bandwidth required by the connection) But I don't. Is there a way to do that without knowing the link bandwidth? Maybe with a bucket counting the high-priority packets and slowing down the background traffic if the bucket is not "full enough"? But I don't know if it is possible to write that. Best regards, Alban