X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by lists.alpinelinux.org (Postfix) with ESMTP id 76C1417005F2C for ; Mon, 9 Feb 2009 10:26:14 +0000 (UTC) Received: by ewy3 with SMTP id 3so2460278ewy.1 for ; Mon, 09 Feb 2009 02:26:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=p6q77dZC9XVauSkAn1pk011t7uPQwSSuKfA0LJRvHX4=; b=DvCvwdMY9dDMvIXZgHys3myXfGd+2ee8kSLVk/KkGk56wPbxiHJNE5Gh3CLqrAr13I 9wQij2q1CkaTJaCTdDUxCLYwsB5POAWJ65Z3M2gW4t96+KMmF8I5p08a8MJKO1YmNQug z0p+T7Qi+Z8cgoDDdgSvCl6yZUO+mvs1v2Zx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=YjBEvWYs67EKHPaR0fyiVoTH2iEAFcK09t1TIrwiV4yiHACYlrvFHFoI8KKstB47Yg kHiSwhCXayRHakOiFvyUIlUsx//QL4KnrRIsCuHMn9W4j4PKkORgjpy9TuhMNE7WMLBk tuzCyoEIwzZWEu1DMSdm8Bm3oqBibFepeAZ/Q= Received: by 10.210.18.8 with SMTP id 8mr3709979ebr.198.1234175173781; Mon, 09 Feb 2009 02:26:13 -0800 (PST) Received: from ?10.65.65.1? (149-182-13.oke2-bras2.adsl.tele2.no [90.149.182.13]) by mx.google.com with ESMTPS id 7sm2508eyg.57.2009.02.09.02.26.12 (version=SSLv3 cipher=RC4-MD5); Mon, 09 Feb 2009 02:26:13 -0800 (PST) Subject: Re: [alpine-devel] Quality of Service From: Natanael Copa To: Ilya Strelkin Cc: alpine-devel@lists.alpinelinux.org In-Reply-To: References: Content-Type: text/plain Date: Mon, 09 Feb 2009 11:26:11 +0100 Message-Id: <1234175171.11678.37.camel@nc> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 Content-Transfer-Encoding: 7bit On Mon, 2009-02-09 at 12:48 +0300, Ilya Strelkin wrote: > Hi ! > > I am posting the alpha version of startup script to run the QoS at > Alpine router. way cool! > This script uses iproute2 tc (traffic control) tool and has the > separate configuration file. > The detailed documentation that discusses Quality of Service > mechanisms will be posted soon to the Documentation section of > wiki.alpinelinux.org. > > Technical Details: > > 1. Installation: > > - The attached file init-d-qos is the startup script, should be > placed as /etc/init.d/qos. > - The attached file conf-d-qos is the configuration file; should be > placed as /etc/conf.d/qos > > 2. Startup: > > - Check which traffic control actions will be taken with > '/etc/init.d/qos compile' > - Start QoS with '/etc/init.d/qos start' > - Check status with '/etc/init.d/qos status' > - If ok then make startup link with 'rc_add qos' or add appropriate > "up" references into /etc/network/interfaces file > > 3. Main Idea: > > The iproute2 tc tool is used. Setting rate about 5-10% less than > real we try to control queue at the Router side. > A data stream is being controlled by means EGRESS shaping or/and > INGRESS policing > > 4. Supported Queuing Disciplines: > > At root level HTB, HFSC, PRIO queuing disciplines are supported, > for leafs PFIFO, SFQ, RED queuing disciplines are supported > > 5. Supported QoS Schemes: > > EGRESS - HFSC or HTB # HFSC is good with latency control, HTB is > good with bursts control > | > \ Interactive (guarantee: 20%) PFIFO # no packet reordering > due to VoIP RTP > | > \ Privileged (guarantee: 50%, sharing up to 100%) PFIFO # no > packet reordering due to RTP and IPSEC > | > \ Best-Effort (guarantee: 30%, sharing up to 100% if not used > by Privileged) SFQ or RED # Fair Queuing or Random Early Detection > (>10mbit/sec links) > > EGRESS - PRIO # for variable or unknown rates > | > \ Interactive (guarantee: 20%) TBF # ultimate priority for > interactive traffic > | > \ HTB > | > \ Privileged (guarantee: 50%, sharing up to 100%) PFIFO # > no packet reordering due to VoIP RTP and IPSEC > | > \ Best-Effort (guarantee: 30%, sharing up to 100% if not > used by Privileged) SFQ or RED # Fair Queuing or Random Early > Detection (>10mbit/sec links) > > INGRESS > | > \ Interactive traffic policing (20%) then CONTINUE action > | > \ Privileged traffic policing (50%) then CONTINUE action > | > \ Best-Effort traffic policing (30%) then DROP action > > 6. Default Schema and Traffic Classification (may be changed according > to custom needs): > > up-link - HFSC, down-link - HTB, > > Interactive (PFIFO): ACK, payload <64 bytes; ICMP, UDP, TOS: 0x10, > 0x18, 0xb8 > Privileged (PFIFO): SSH, BGP, RDP, AH, ESP, TOS: 0x88 > Best-Effort (SFQ): Any other unclassified traffic > > > 7. To do list: > > 1. multiple WAN interface support > 2. code optimizations/refinements, bug fixes > 3. monitoring tools > 4. ...Any suggestions are very welcome... the config looks very complicated (and even includes functions) Would it be possible to simplify so its posible to be used by deadly people too? ;) I think I will add them as is to the iproute2 package for now. > > Ilya S. > Thanks alot! -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---