From owner-freebsd-net Fri Feb 1 5:55:12 2002 Delivered-To: freebsd-net@freebsd.org Received: from inje.iskon.hr (inje.iskon.hr [213.191.128.16]) by hub.freebsd.org (Postfix) with ESMTP id ACFE737B419 for ; Fri, 1 Feb 2002 05:55:06 -0800 (PST) Received: from tel.fer.hr (zg07-029.dialin.iskon.hr [213.191.150.30]) by mail.iskon.hr (8.11.4/8.11.4/Iskon 8.11.3-1) with ESMTP id g11DsuR09917 for ; Fri, 1 Feb 2002 14:54:59 +0100 (MET) Message-ID: <3C5A9E1E.400F9772@tel.fer.hr> Date: Fri, 01 Feb 2002 14:54:38 +0100 From: Marko Zec X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: ng_dummy - netgraph traffic shaping node Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The result of an innocent netgraph programming exercise can be found at: http://www.tel.fer.hr/zec/BSD/ng_dummy/ "ng_dummy" is a simple traffic shaper node that implements control of traffic flow in both upstream and downstream direction. In each direction, the traffic flows through the sequence of two FIFO-type queues, which implement different queuing policies. The "inbound" queue is rate limited, and emulates an interface output buffer. On "outbound" queue, frames are dequeued based on preconfigured delay, thus emulating propagation effects on a transmission link. Additional features include random frame discarding based on BER; and emulation of phantom traffic, which competes for available bandwidth, and thereby introduces inbound queue congestions and delay jitter. Have fun! Marko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message