From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Thu, 13 Apr 2006 00:36:21 +0000 Subject: [LARTC] Re: packet marking: only a ratio, not all Message-Id: <443D9D05.6050203@dsl.pipex.com> List-Id: References: <20060410134848.17949.qmail@web54305.mail.yahoo.com> In-Reply-To: <20060410134848.17949.qmail@web54305.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org pfer wrote: > Hello! > > Well I won't go into protocol details, but > I do not care if an intra-domain node will be > congested via packets on ingress. I will drop them, > but check with "tc .. show .." how much I get on > byte-level. Based on this, and maximum egress > transmission rate of this congested node, I calculate > Overload%, and remark leaving packets at that ratio. OK I guess you know what you want - just thinking there wouldn't be much overload% if tcp was about and you were dropping. > > Anyway this setup will serve as a demo, having > reservations thoughout the domain for UDP video packet > streams only. > > I wrote to netdev-linux mailing list about how to hack > in the sources of tc something like: > > for every packet > if(rand()<(percent/100)) > do_action > > ,where rand() gives a float of 0..1 If that's userspace tc it may be OK - no floats in kernel code AFAIK. > > Could you point me to someone who will probably help > me with this? I think netdev is the right place. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc