SlideShare a Scribd company logo
1 of 20
Download to read offline
Traffic Shaping Basics with PRIQ
February 2016 Hangout
Jim Pingle
Traffic Shaping Basics with PRIQ
● Project News
● What is Traffic Shaping?
● How does Traffic
Shaping work?
● Types of Traffic Shaping
● Limitations
● Why use PRIQ?
● Traffic Shaping Wizard
● PRIQ Queue Structure
● Matching & Queuing
with Floating Rules
● Testing and
Troubleshooting
● Q&A
Project News
● 2.2.7? Possible, depending on OpenSSL announcement
● 2.3 is nearing RC
– Release timing will roughly parallel FreeBSD 10.3-RELEASE
– No more new features, focus now completely on bug fixes (Less than 25 open new bugs now!)
– Snapshots at https://snapshots.pfsense.org/
● New hardware!
– XG-2758 replaces C2758
● 8 core, 16GB RAM
● 2x 10G SFP and 4x 1G ports (1 shared 1G RJ45/SFP)
● European pfSense Training Tour!
– April 7-8 in Bournemouth (UK, Amica Partner)
– April 12-13 in London (UK, Amica Partner)
– May 17-18 in Frankfurt (DE, Voletech Partner)
– http://netgate.com/training/ – All are 9am-6pm local time
– Online training March 22-23, sign up now!
● Keep an eye on the blog
What is Traffic Shaping?
● A means to assure Quality of Service (QoS) by queuing traffic and
using criteria to control when it is delivered
● Different from traffic policing, which drops all frames above a
committed rate
● Passes important traffic (e.g. ACKs, VoIP) first at the expense of
lesser traffic (e.g. SMTP)
● Ensures that traffic is passed efficiently
– Queuing and delaying packets is less harsh to TCP than dropping, but
packets can be dropped from queues when full
● Can prevent traffic from over-filling circuits (peak smoothing)
● Shares bandwidth more effectively across many clients
● Discourages unwanted services by degrading their traffic flow
How does Traffic Shaping work?
● A queue structure is defined to specify how types of traffic will be shaped
– Exact structure varies by shaper type
– For example, queues might define a priority (PRIQ) or a bandwidth allocation
(HFSC)
● Traffic is identified by firewall rules and placed into appropriate queues
– Typically Floating rules are used with the Match action
● Traffic is queued OUTBOUND on interfaces
– That is the only place the firewall can limit the rate of packets
● Rough idea of how processing works (PRIQ):
– Packets match rules and are placed into separate queues
– Packets are held momentarily before transmission in each queue
– Packets in higher priority queues are always processed before lower priority queues
Types of Traffic Shaping
● ALTQ
– PRIQ – Priority Queuing (only one covered today)
● Very simple/easy to work with
● Only concerned with priority, priorities of 0-15, highest number queues are processed first
● Flat list of queues, no nesting/children/trees/etc
– HFSC – Hierarchical Fair Service Curve
● Powerful but complex/confusing
● Primarily concerned with bandwidth (throughput), not priority
● Tree of queues for each interface
– CBQ – Class Based Queuing
● Similar to HFSC but not as accurate, has both bandwidth and priority options
● Partitions and shares link bandwidth among queues, child can borrow from parent, etc
– Others: FAIRQ, CODELQ, supported but not covered today
● Limiters
– “Buckets” with defined upper limits of traffic can be shared/common for all or be masked to
have per-address or per-subnet limits
– Currently has known issues with pfsync (HA) and some NAT scenarios
Limitations
● ALTQ is inefficient and has a notable usage penalty
– ~10% but exact throughput loss depends on system, traffic, etc
– If the system is fast or not running near wire speed, loss may not
be noticeable
● ALTQ does not work with all NICs, only supported NICs
– VLANs are OK, LAGG+VLANs OK, but not LAGG on its own
– Support varies by NIC driver, see list in the altq(4) FreeBSD man
page
● Shaping will add some (usually minor) latency
● Tricky to shape traffic inside VPNs
Why use PRIQ?
● Easiest ALTQ shaper type
● Flexible enough for most use cases
– Great for putting VoIP or games above other traffic
● No concern for bandwidth means it is less likely to
have issues with WANs of varying speeds or with
NICs that fail to properly report bandwidth (e.g.
Realtek)
● Priority only, so no bandwidth limits/caps or
reservations to calculate or design
Traffic Shaping Wizard - Start
● Wizard is the easiest way to get the shaper setup
● Even if you don't want to use the wizard rules, let it create the
queues for you.
● Firewall > Traffic Shaper, Wizards tab
● Pick “Multiple LAN/WAN” / multi-all for most uses
● “Dedicated Links” is for cases where single WANs and LANs are
linked with no cross-usage (e.g. LAN1→WAN1, LAN2→WAN2)
● Enter # of WANs and LANs
– WAN = interface with gateway on INTERFACE settings
– LAN = no gateway
Traffic Shaping Wizard - Config
● Pick appropriate interfaces for each LAN/WAN
● Select PRIQ as the scheduler for each interface
● For WAN, enter values for Upload and
Download bandwidth
– They are not used by PRIQ, but the wizard requires
they be set
Traffic Shaping Wizard - VoIP
● Check enable if VoIP shaping is desired
● Choose provider type to help craft better VoIP
matching rules
– “Generic” will match all UDP
● Enter the Upstream SIP server
– Difficult to match on local IP addresses, matching
remote server address is much more accurate
● Leave bandwidths blank
Traffic Shaping Wizard – Penalty Box
● Not used with PRIQ
● Sets up a queue for known bad hosts to limit
their usage
Traffic Shaping Wizard - P2P
● Attempts to match P2P traffic
– Not all that accurate since it can only match by ports, which clients
can randomize.
● Catchall changes the default queue to be the P2P queue
– The “catchall” option sounds tempting until you realize you have to
identify all good traffic and classify it into other queues
– OK to use, but a management headache! Be prepared to work for
it
– Used for lowering priority of “everything else” which could be P2P
on random ports or good but unclassified traffic
● Check boxes for the protocols to match
Traffic Shaping Wizard - Games
● Presets for many popular games, consoles, and
platforms
● Check the boxes for games to match
● If the game you want is not listed, check any
other game so the queues are created and then
manually adjust rules later
Traffic Shaping Wizard –
Raise/Lower
● Classifies other common traffic to raise or lower its
priority
● Choices are entirely subjective – set however the
needs of the network require
● Frequently things like screen-sharing protocols are
raised, bulk traffic like chat and SMTP are lowered
● Best to set at least one high and one low so the
queues will be created for later use
Traffic Shaping Wizard – Finish Up
● Click Finish on the last screen and the wizard
will finish creating all the queues and rules
● The filter will reload and its status displayed
– If there is an error with the queues, it may be due to
a lack of support in the NIC or an improper
bandwidth value
● The wizard retains the values entered, so if you
need to change something, re-run the wizard
and adjust as needed
PRIQ Queue Structure
● Firewall > Traffic Shaper, By Interface tab
● Each interface has a similar set of queues
– LANs have a qLink to ensure LAN-to-LAN traffic is not shaped
● Priorities:
qVoIP: 7 – Highest Priority, delivered first
qACK: 6
qGames: 5
qOthersHigh: 4
qDefault (WANs): 3 – Unclassified traffic lands here
qOthersLow: 3 on LANs, 2 on WANs
qLink (LANs): 2
qP2P: 1 – Lowest Priority, delivered last
● When crafting custom rules or other queues, keep these in mind
Matching/Queuing w/Floating Rules
● Firewall > Rules, Floating tab
● Rules from the wizard are here and good for examples/duplication if custom
rules are needed
● Rules use the Match action which does not pass or block, only applies queuing
● Packets can be matched in any way possible in pf
● Choose the queue and ACK queue in Advanced Options
– Queue is for normal traffic with a payload
– ACK queue is for TCP ACKs with no payload or TOS lowdelay to ensure ACKs are not
lost so data is delivered quickly/efficiently
● “Quick” keyword is not usable with match
– Rules are LAST MATCH WINS, so take care when crafting rules
● Beware of using local sources on outbound WAN rules – NAT hides source
Testing and Troubleshooting
● Status > Queues to view how packets are being processed in queues
● Start some traffic, test traffic or otherwise
– Sipp is handy for testing SIP matching: http://sipp.sourceforge.net/index.html
● If traffic is flowing but not showing in a queue:
– 1. Traffic is not matching the expected rule
● Check that rules obey proper order (last match wins)
● Consider the way the rules are processed, and NAT involved, etc.
– 2. States were not reset after shaper setup
● Drops are OK, and how shaping works
– Sometimes lower priority packets must be dropped so that higher priority
packets can pass
– Increase queue length to lower/stop drops if they cause problems
Conclusion
● Questions?
● Ideas for hangout topics? Post on forum,
comment on the blog posts, Reddit, etc

More Related Content

What's hot

Routing fundamentals with mikrotik
Routing fundamentals with mikrotikRouting fundamentals with mikrotik
Routing fundamentals with mikrotikAchmad Mardiansyah
 
FastNetMon Advanced DDoS detection tool
FastNetMon Advanced DDoS detection toolFastNetMon Advanced DDoS detection tool
FastNetMon Advanced DDoS detection toolPavel Odintsov
 
IP Over Satellite
IP Over SatelliteIP Over Satellite
IP Over Satellitennmaurya
 
Bandwidth Monitoring - pfSense Hangout March 2015
Bandwidth Monitoring - pfSense Hangout March 2015Bandwidth Monitoring - pfSense Hangout March 2015
Bandwidth Monitoring - pfSense Hangout March 2015Netgate
 
66 pfsense tutorial
66 pfsense tutorial66 pfsense tutorial
66 pfsense tutorialequinonesr
 
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018Netgate
 
Squid, SquidGuard, and Lightsquid - pfSense Hangout March 2014
Squid, SquidGuard, and Lightsquid - pfSense Hangout March 2014Squid, SquidGuard, and Lightsquid - pfSense Hangout March 2014
Squid, SquidGuard, and Lightsquid - pfSense Hangout March 2014Netgate
 
Bluetooth based smart sensor devices 2
Bluetooth based smart sensor devices 2Bluetooth based smart sensor devices 2
Bluetooth based smart sensor devices 2Vijay Kribpz
 
MikroTik Multicast Routing [www.imxpert.co]
MikroTik Multicast Routing [www.imxpert.co]MikroTik Multicast Routing [www.imxpert.co]
MikroTik Multicast Routing [www.imxpert.co]Faisal Reza
 
Connection load balancing with mikrotik [workshop]
Connection load balancing with mikrotik [workshop]Connection load balancing with mikrotik [workshop]
Connection load balancing with mikrotik [workshop]Achmad Mardiansyah
 
Using MikroTik routers for BGP transit and IX points
Using MikroTik routers for BGP transit and IX points  Using MikroTik routers for BGP transit and IX points
Using MikroTik routers for BGP transit and IX points Pavel Odintsov
 
NETCONF Call Home
NETCONF Call Home NETCONF Call Home
NETCONF Call Home ADVA
 
Segment Routing
Segment RoutingSegment Routing
Segment RoutingAPNIC
 
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Netgate
 
DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016Netgate
 
An Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecAn Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecShortestPathFirst
 
MikroTik & RouterOS
MikroTik & RouterOSMikroTik & RouterOS
MikroTik & RouterOSFaelix Ltd
 

What's hot (20)

Routing fundamentals with mikrotik
Routing fundamentals with mikrotikRouting fundamentals with mikrotik
Routing fundamentals with mikrotik
 
FastNetMon Advanced DDoS detection tool
FastNetMon Advanced DDoS detection toolFastNetMon Advanced DDoS detection tool
FastNetMon Advanced DDoS detection tool
 
IP Over Satellite
IP Over SatelliteIP Over Satellite
IP Over Satellite
 
Bandwidth Monitoring - pfSense Hangout March 2015
Bandwidth Monitoring - pfSense Hangout March 2015Bandwidth Monitoring - pfSense Hangout March 2015
Bandwidth Monitoring - pfSense Hangout March 2015
 
Layer 2 switching
Layer 2 switchingLayer 2 switching
Layer 2 switching
 
66 pfsense tutorial
66 pfsense tutorial66 pfsense tutorial
66 pfsense tutorial
 
MENOG-Segment Routing Introduction
MENOG-Segment Routing IntroductionMENOG-Segment Routing Introduction
MENOG-Segment Routing Introduction
 
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
 
Squid, SquidGuard, and Lightsquid - pfSense Hangout March 2014
Squid, SquidGuard, and Lightsquid - pfSense Hangout March 2014Squid, SquidGuard, and Lightsquid - pfSense Hangout March 2014
Squid, SquidGuard, and Lightsquid - pfSense Hangout March 2014
 
Bluetooth based smart sensor devices 2
Bluetooth based smart sensor devices 2Bluetooth based smart sensor devices 2
Bluetooth based smart sensor devices 2
 
MikroTik Multicast Routing [www.imxpert.co]
MikroTik Multicast Routing [www.imxpert.co]MikroTik Multicast Routing [www.imxpert.co]
MikroTik Multicast Routing [www.imxpert.co]
 
Connection load balancing with mikrotik [workshop]
Connection load balancing with mikrotik [workshop]Connection load balancing with mikrotik [workshop]
Connection load balancing with mikrotik [workshop]
 
Using MikroTik routers for BGP transit and IX points
Using MikroTik routers for BGP transit and IX points  Using MikroTik routers for BGP transit and IX points
Using MikroTik routers for BGP transit and IX points
 
NETCONF Call Home
NETCONF Call Home NETCONF Call Home
NETCONF Call Home
 
Secured Internet Gateway for ISP with pfsense & FRR
Secured Internet Gateway for ISP with pfsense & FRRSecured Internet Gateway for ISP with pfsense & FRR
Secured Internet Gateway for ISP with pfsense & FRR
 
Segment Routing
Segment RoutingSegment Routing
Segment Routing
 
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
 
DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016
 
An Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecAn Introduction to BGP Flow Spec
An Introduction to BGP Flow Spec
 
MikroTik & RouterOS
MikroTik & RouterOSMikroTik & RouterOS
MikroTik & RouterOS
 

Similar to Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016

Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Netgate
 
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Netgate
 
OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016Netgate
 
Aceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfAceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfWifiCren
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017Netgate
 
Site-to-Site VPNs - pfSense Hangout November 2015
Site-to-Site VPNs - pfSense Hangout November 2015Site-to-Site VPNs - pfSense Hangout November 2015
Site-to-Site VPNs - pfSense Hangout November 2015Netgate
 
NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016Netgate
 
There and back again
There and back againThere and back again
There and back againJon Spriggs
 
High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016Netgate
 
ETE405-lec9.pdf
ETE405-lec9.pdfETE405-lec9.pdf
ETE405-lec9.pdfmashiur
 
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017Netgate
 
21 - IDNOG03 - Jimmy Halim (Cloudflare) - Brief Introduction of CloudFlare, t...
21 - IDNOG03 - Jimmy Halim (Cloudflare) - Brief Introduction of CloudFlare, t...21 - IDNOG03 - Jimmy Halim (Cloudflare) - Brief Introduction of CloudFlare, t...
21 - IDNOG03 - Jimmy Halim (Cloudflare) - Brief Introduction of CloudFlare, t...Indonesia Network Operators Group
 
IDNOG3-Jimmy-CloudFlare
IDNOG3-Jimmy-CloudFlareIDNOG3-Jimmy-CloudFlare
IDNOG3-Jimmy-CloudFlareJimmy Lim
 
Performance Evaluation of GTP-U and SRv6 Stateless Translation
Performance Evaluation of GTP-U and SRv6 Stateless TranslationPerformance Evaluation of GTP-U and SRv6 Stateless Translation
Performance Evaluation of GTP-U and SRv6 Stateless TranslationChunghan Lee
 
The Internet of Things ... Babel
The Internet of Things ... BabelThe Internet of Things ... Babel
The Internet of Things ... BabelNaLUG
 
Routing, Network Performance, and Role of Analytics
Routing, Network Performance, and Role of AnalyticsRouting, Network Performance, and Role of Analytics
Routing, Network Performance, and Role of AnalyticsAPNIC
 
Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016Netgate
 
5 g core network and the cloud - A standards perspective
5 g core network and the cloud - A standards perspective5 g core network and the cloud - A standards perspective
5 g core network and the cloud - A standards perspectiveSridhar Bhaskaran
 

Similar to Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016 (20)

Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016
 
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
 
OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016
 
Aceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfAceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdf
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017
 
Site-to-Site VPNs - pfSense Hangout November 2015
Site-to-Site VPNs - pfSense Hangout November 2015Site-to-Site VPNs - pfSense Hangout November 2015
Site-to-Site VPNs - pfSense Hangout November 2015
 
NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016
 
There and back again
There and back againThere and back again
There and back again
 
High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016
 
Java One 2001
Java One 2001Java One 2001
Java One 2001
 
GÉANT TURN pilot
GÉANT TURN pilotGÉANT TURN pilot
GÉANT TURN pilot
 
ETE405-lec9.pdf
ETE405-lec9.pdfETE405-lec9.pdf
ETE405-lec9.pdf
 
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
 
21 - IDNOG03 - Jimmy Halim (Cloudflare) - Brief Introduction of CloudFlare, t...
21 - IDNOG03 - Jimmy Halim (Cloudflare) - Brief Introduction of CloudFlare, t...21 - IDNOG03 - Jimmy Halim (Cloudflare) - Brief Introduction of CloudFlare, t...
21 - IDNOG03 - Jimmy Halim (Cloudflare) - Brief Introduction of CloudFlare, t...
 
IDNOG3-Jimmy-CloudFlare
IDNOG3-Jimmy-CloudFlareIDNOG3-Jimmy-CloudFlare
IDNOG3-Jimmy-CloudFlare
 
Performance Evaluation of GTP-U and SRv6 Stateless Translation
Performance Evaluation of GTP-U and SRv6 Stateless TranslationPerformance Evaluation of GTP-U and SRv6 Stateless Translation
Performance Evaluation of GTP-U and SRv6 Stateless Translation
 
The Internet of Things ... Babel
The Internet of Things ... BabelThe Internet of Things ... Babel
The Internet of Things ... Babel
 
Routing, Network Performance, and Role of Analytics
Routing, Network Performance, and Role of AnalyticsRouting, Network Performance, and Role of Analytics
Routing, Network Performance, and Role of Analytics
 
Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016
 
5 g core network and the cloud - A standards perspective
5 g core network and the cloud - A standards perspective5 g core network and the cloud - A standards perspective
5 g core network and the cloud - A standards perspective
 

More from Netgate

Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...Netgate
 
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018Netgate
 
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018Netgate
 
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018Netgate
 
Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Netgate
 
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Netgate
 
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Netgate
 
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Netgate
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Netgate
 
Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017Netgate
 
Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Netgate
 
Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Netgate
 
pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015Netgate
 
Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015Netgate
 

More from Netgate (14)

Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
 
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
 
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
 
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
 
Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017
 
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
 
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
 
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017
 
Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017
 
Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016
 
Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016
 
pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015
 
Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015
 

Recently uploaded

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Recently uploaded (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016

  • 1. Traffic Shaping Basics with PRIQ February 2016 Hangout Jim Pingle
  • 2. Traffic Shaping Basics with PRIQ ● Project News ● What is Traffic Shaping? ● How does Traffic Shaping work? ● Types of Traffic Shaping ● Limitations ● Why use PRIQ? ● Traffic Shaping Wizard ● PRIQ Queue Structure ● Matching & Queuing with Floating Rules ● Testing and Troubleshooting ● Q&A
  • 3. Project News ● 2.2.7? Possible, depending on OpenSSL announcement ● 2.3 is nearing RC – Release timing will roughly parallel FreeBSD 10.3-RELEASE – No more new features, focus now completely on bug fixes (Less than 25 open new bugs now!) – Snapshots at https://snapshots.pfsense.org/ ● New hardware! – XG-2758 replaces C2758 ● 8 core, 16GB RAM ● 2x 10G SFP and 4x 1G ports (1 shared 1G RJ45/SFP) ● European pfSense Training Tour! – April 7-8 in Bournemouth (UK, Amica Partner) – April 12-13 in London (UK, Amica Partner) – May 17-18 in Frankfurt (DE, Voletech Partner) – http://netgate.com/training/ – All are 9am-6pm local time – Online training March 22-23, sign up now! ● Keep an eye on the blog
  • 4. What is Traffic Shaping? ● A means to assure Quality of Service (QoS) by queuing traffic and using criteria to control when it is delivered ● Different from traffic policing, which drops all frames above a committed rate ● Passes important traffic (e.g. ACKs, VoIP) first at the expense of lesser traffic (e.g. SMTP) ● Ensures that traffic is passed efficiently – Queuing and delaying packets is less harsh to TCP than dropping, but packets can be dropped from queues when full ● Can prevent traffic from over-filling circuits (peak smoothing) ● Shares bandwidth more effectively across many clients ● Discourages unwanted services by degrading their traffic flow
  • 5. How does Traffic Shaping work? ● A queue structure is defined to specify how types of traffic will be shaped – Exact structure varies by shaper type – For example, queues might define a priority (PRIQ) or a bandwidth allocation (HFSC) ● Traffic is identified by firewall rules and placed into appropriate queues – Typically Floating rules are used with the Match action ● Traffic is queued OUTBOUND on interfaces – That is the only place the firewall can limit the rate of packets ● Rough idea of how processing works (PRIQ): – Packets match rules and are placed into separate queues – Packets are held momentarily before transmission in each queue – Packets in higher priority queues are always processed before lower priority queues
  • 6. Types of Traffic Shaping ● ALTQ – PRIQ – Priority Queuing (only one covered today) ● Very simple/easy to work with ● Only concerned with priority, priorities of 0-15, highest number queues are processed first ● Flat list of queues, no nesting/children/trees/etc – HFSC – Hierarchical Fair Service Curve ● Powerful but complex/confusing ● Primarily concerned with bandwidth (throughput), not priority ● Tree of queues for each interface – CBQ – Class Based Queuing ● Similar to HFSC but not as accurate, has both bandwidth and priority options ● Partitions and shares link bandwidth among queues, child can borrow from parent, etc – Others: FAIRQ, CODELQ, supported but not covered today ● Limiters – “Buckets” with defined upper limits of traffic can be shared/common for all or be masked to have per-address or per-subnet limits – Currently has known issues with pfsync (HA) and some NAT scenarios
  • 7. Limitations ● ALTQ is inefficient and has a notable usage penalty – ~10% but exact throughput loss depends on system, traffic, etc – If the system is fast or not running near wire speed, loss may not be noticeable ● ALTQ does not work with all NICs, only supported NICs – VLANs are OK, LAGG+VLANs OK, but not LAGG on its own – Support varies by NIC driver, see list in the altq(4) FreeBSD man page ● Shaping will add some (usually minor) latency ● Tricky to shape traffic inside VPNs
  • 8. Why use PRIQ? ● Easiest ALTQ shaper type ● Flexible enough for most use cases – Great for putting VoIP or games above other traffic ● No concern for bandwidth means it is less likely to have issues with WANs of varying speeds or with NICs that fail to properly report bandwidth (e.g. Realtek) ● Priority only, so no bandwidth limits/caps or reservations to calculate or design
  • 9. Traffic Shaping Wizard - Start ● Wizard is the easiest way to get the shaper setup ● Even if you don't want to use the wizard rules, let it create the queues for you. ● Firewall > Traffic Shaper, Wizards tab ● Pick “Multiple LAN/WAN” / multi-all for most uses ● “Dedicated Links” is for cases where single WANs and LANs are linked with no cross-usage (e.g. LAN1→WAN1, LAN2→WAN2) ● Enter # of WANs and LANs – WAN = interface with gateway on INTERFACE settings – LAN = no gateway
  • 10. Traffic Shaping Wizard - Config ● Pick appropriate interfaces for each LAN/WAN ● Select PRIQ as the scheduler for each interface ● For WAN, enter values for Upload and Download bandwidth – They are not used by PRIQ, but the wizard requires they be set
  • 11. Traffic Shaping Wizard - VoIP ● Check enable if VoIP shaping is desired ● Choose provider type to help craft better VoIP matching rules – “Generic” will match all UDP ● Enter the Upstream SIP server – Difficult to match on local IP addresses, matching remote server address is much more accurate ● Leave bandwidths blank
  • 12. Traffic Shaping Wizard – Penalty Box ● Not used with PRIQ ● Sets up a queue for known bad hosts to limit their usage
  • 13. Traffic Shaping Wizard - P2P ● Attempts to match P2P traffic – Not all that accurate since it can only match by ports, which clients can randomize. ● Catchall changes the default queue to be the P2P queue – The “catchall” option sounds tempting until you realize you have to identify all good traffic and classify it into other queues – OK to use, but a management headache! Be prepared to work for it – Used for lowering priority of “everything else” which could be P2P on random ports or good but unclassified traffic ● Check boxes for the protocols to match
  • 14. Traffic Shaping Wizard - Games ● Presets for many popular games, consoles, and platforms ● Check the boxes for games to match ● If the game you want is not listed, check any other game so the queues are created and then manually adjust rules later
  • 15. Traffic Shaping Wizard – Raise/Lower ● Classifies other common traffic to raise or lower its priority ● Choices are entirely subjective – set however the needs of the network require ● Frequently things like screen-sharing protocols are raised, bulk traffic like chat and SMTP are lowered ● Best to set at least one high and one low so the queues will be created for later use
  • 16. Traffic Shaping Wizard – Finish Up ● Click Finish on the last screen and the wizard will finish creating all the queues and rules ● The filter will reload and its status displayed – If there is an error with the queues, it may be due to a lack of support in the NIC or an improper bandwidth value ● The wizard retains the values entered, so if you need to change something, re-run the wizard and adjust as needed
  • 17. PRIQ Queue Structure ● Firewall > Traffic Shaper, By Interface tab ● Each interface has a similar set of queues – LANs have a qLink to ensure LAN-to-LAN traffic is not shaped ● Priorities: qVoIP: 7 – Highest Priority, delivered first qACK: 6 qGames: 5 qOthersHigh: 4 qDefault (WANs): 3 – Unclassified traffic lands here qOthersLow: 3 on LANs, 2 on WANs qLink (LANs): 2 qP2P: 1 – Lowest Priority, delivered last ● When crafting custom rules or other queues, keep these in mind
  • 18. Matching/Queuing w/Floating Rules ● Firewall > Rules, Floating tab ● Rules from the wizard are here and good for examples/duplication if custom rules are needed ● Rules use the Match action which does not pass or block, only applies queuing ● Packets can be matched in any way possible in pf ● Choose the queue and ACK queue in Advanced Options – Queue is for normal traffic with a payload – ACK queue is for TCP ACKs with no payload or TOS lowdelay to ensure ACKs are not lost so data is delivered quickly/efficiently ● “Quick” keyword is not usable with match – Rules are LAST MATCH WINS, so take care when crafting rules ● Beware of using local sources on outbound WAN rules – NAT hides source
  • 19. Testing and Troubleshooting ● Status > Queues to view how packets are being processed in queues ● Start some traffic, test traffic or otherwise – Sipp is handy for testing SIP matching: http://sipp.sourceforge.net/index.html ● If traffic is flowing but not showing in a queue: – 1. Traffic is not matching the expected rule ● Check that rules obey proper order (last match wins) ● Consider the way the rules are processed, and NAT involved, etc. – 2. States were not reset after shaper setup ● Drops are OK, and how shaping works – Sometimes lower priority packets must be dropped so that higher priority packets can pass – Increase queue length to lower/stop drops if they cause problems
  • 20. Conclusion ● Questions? ● Ideas for hangout topics? Post on forum, comment on the blog posts, Reddit, etc