DaemonForums  

Go Back   DaemonForums > DaemonForums.org > News

News News regarding BSD and related.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th October 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default New queueing system (pf) now in -current

From http://www.undeadly.org/cgi?action=a...20131017073054

Quote:
Long thought to be a mythical beast by many, the new queueing system (aka traffic shaping, also hinted at here) has now finally been committed to the official OpenBSD source tree.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #2   (View Single Post)  
Old 20th October 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I just made the transition today. So far, it seems to be working. You have to use pfctl(8) to monitor; systat(1) only shows altq for now.
Reply With Quote
  #3   (View Single Post)  
Old 21st October 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Here's the simple configuration I'm using at home. We have two queues -- my son's workstation gets 50% of the network if there is contention. Everything/everybody else gets the other 50% when there is contention.

The ISP is serving 25Mb/5Mb with 20MB/10MB bursts on a 100BaseT interface.

In this asymmetrical configuration, I use the same queue names for outbound traffic to the ISP and outbound to the local network, so that the same state uses the appropriate bandwidth in contention, regardless of which direction created the state.

Only my son's pass rules have a queue name assigned. All other pass/block rules use the default "std" queue.
Code:
#bursts for ISPs 20MB down 10MB up:

queue up on $external_nic bandwidth 5M burst 100M for 800ms
    queue son parent up bandwidth 2500K
    queue std parent up bandwidth 2500K default
queue down on $internal_nic bandwidth 25M burst 100M for 1600ms
    queue son parent down bandwidth 12500K
    queue std parent down bandwidth 12500K default
Reply With Quote
  #4   (View Single Post)  
Old 21st October 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I think I will add a "local" queue, so that any locally generated traffic from the firewalls are not held to 25Mbit. There isn't a great deal of it, but when it happens I'd like it to be able to go at LAN speed.

I'll have to test this, where I set the queue to "local" on pass/block rules for local traffic from and to the firewalls.
Code:
queue internal on $internal_nic bandwidth 100M
    queue local parent internal bandwidth 75M 
    queue down parent internal bandwidth 25M burst 100M for 1600ms
        queue son parent down bandwidth 12500K
        queue std parent down bandwidth 12500K default
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hplip system tray bug in current - best option to fix? shep OpenBSD Packages and Ports 0 29th February 2012 12:53 AM
Create MS/XP file system so it will be recognized on a XP system. FBSD Guides 0 1st May 2010 06:49 AM
OpenBSD4.5 current to current... valorisa OpenBSD Installation and Upgrading 7 6th June 2009 09:26 AM
Which file system use to share data on Bsd system? aleunix Other BSD and UNIX/UNIX-like 2 1st June 2008 04:14 PM


All times are GMT. The time now is 09:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick