• MOVED: Limited speed per User (CaptivePortal with Radius server)

    Locked
    1
    0 Votes
    1 Posts
    582 Views
    No one has replied
  • Limited Speed On Lan Interface + Captive Portal

    2
    0 Votes
    2 Posts
    624 Views
    D

    You can set up shaping for CP in the CP configuration. As for the rest, absolutely no information here.

  • Traffic Shaping broke my LAN - topic has deviated

    35
    0 Votes
    35 Posts
    6k Views
    N

    @Harvy66:

    I'm not disagreeing with them, I'm just saying math proofs don't tell you how to use HFSC practically, only that it works "as expected" assuming you understand it. 99% of well experienced and educated people in networking will not understand how network traffic works in sub 1ms time scales, so don't even think about time scales that small. I do agree that my "evidence" is anecdotal, I have limited tools. Another term for "anecdotes" is "data points",  albeit with high uncertainty, there is some truth to anecdotes.

    In order to property configure HFSC the way you you've been giving examples, you would need to know these and how these interact:

    Packet Size PPS(Packets per Second) during transmission Average Bandwidth Number of flows Distribution of packets within a flow Distribution of packets among all flows

    The examples the HFSC links use are simple to prove a point, but do not reflect the complications of a real network. To take the example at face value is to over-simplify the issue, in other words, don't think about individual packets unless that's exactly what happens at the bandwidths you're working with.

    **Up to this point I've been arguing an almost laissez faire sort of configuration while you've been arguing an extremely precise. I know I was mostly playing devil's advocate to give an alternative view, but I think the middle ground is best. In this paper(http://www.cs.cmu.edu/~hzhang/papers/SIGCOM97.pdf) that you linked at one point in another thread, it talks about 160byte VoIP packets with an average of 64Kb/s. The way they configured and talked about the burst duration is as a target latency. They set the duration to 5ms as they wanted a 5ms target. m1 was set to the packet size, 160 bytes(not bandwidth like you've mentioned), then spread over the 5ms, they gave the example of 256Kb/s. Because 160bytes/5ms=256Kb.

    What I was able to gain from this example is you set the m1 bandwidth equal to the size you wish to "burst", and the duration to the time in which you wish the extra bytes to be transferred.

    I feel fairly confident that the d(duration), for the purpose of latency sensitive traffic, should be set to your target worst latency. m1 should be thought of not as bandwidth, but the size in bits of the total number of packets relieved during that duration. m2 would be set as the average amount of bandwidth consumed.**

    Incorrect. m1 and m2 define bandwidth.

    @Nullity:

    This quote from the HFSC paper is useful because it clarifies differences between the parameters used in the paper (u-max, d-max, r), and the parameters that pfSense uses (m1, d, m2).

    Each session i is characterized by three parameters: the largest unit of work, denoted u-max, for which the session requires delay guarantee, the guaranteed delay d-max, and the session's average rate r. As an example, if a session requires per packet delay guarantee, then u-max represents the maximum size of a packet. Similarly, a video or an audio session can require per frame delay guarantee, by setting u-max to the maximum size of a frame. The session's requirements are mapped onto a two-piece linear service curve, which for computation efficiency is defined by the following three parameters: the slope of the first segment m1, the slope of the second segment m2, and the x-coordinate of the intersection between the two segments x. The mapping (u-max, d-max, r) -> (m1, x, m2) for both concave and convex curves is illustrated in Figure 8.

    The paper uses u-max (packet/frame size) in it's examples, but pfSense uses m1 (bandwidth).
    When glancing at a configuration using m1, d, and m2, it is obvious whether the parameters are meant to decrease delay (m1 > m2) or increase delay (m1 < m2).
    The u-max/d-max notation is not as intuitive.

    I pulled the quote from the HFSC thread, if you would like to move this HFSC-related conversation there.
    https://forum.pfsense.org/index.php?topic=89367.0

    Edit: Fixed typo in quote from HFSC paper.

  • Time allocation for internet surfing

    2
    0 Votes
    2 Posts
    662 Views
    M

    You can create a time schedule in pfsense in  –> firewall --> schedules then apply this schedule to some rule.

    This rule will be disabled if out of time range (8am 9am)

  • Limiter / NAT reflection

    3
    0 Votes
    3 Posts
    1k Views
    S

    Ok, but in earlier versions that doesn't happen

  • Traffic logged on two default queues

    1
    0 Votes
    1 Posts
    700 Views
    No one has replied
  • Limiting Guest VLAN only

    3
    0 Votes
    3 Posts
    1k Views
    ?

    Ahh, thanks, I had been under the impression Limiters applied globally, but I missed the In/Out options when I was looking at it.

    Regards,
    Rob.

  • How to increase to more than 8 limiter schedules per limiter

    1
    0 Votes
    1 Posts
    676 Views
    No one has replied
  • Limit Download for one member of Multi-WAN

    6
    0 Votes
    6 Posts
    2k Views
    DerelictD

    Create a queue on the WAN you want to limit.  Put an upperlimit of 5Mbit/s  Call it qWANLimit or something
    Create a queue on LAN with an upperlimit of 50Mbit/s  Name it the same thing.

    Create a floating rule on the WAN interface you want to limit, direction out, match all traffic, and set the queue to qWANLimit.

    If you have inbound NAT translations or connections, you have to set the queues on those rules too.

    If you can, test your queues with upperlimits of, say, 10% of your capacity so you know they're working, then bump them back up.

    Sorry, but my test network is on Xen and I haven't rebuilt it with 2.1.5 so I have no altq to test it with.

    This is also imperfect in that you should separate TCP from UDP and set an ACK queue on TCP, etc.  This is just a general idea of how to get traffic for one WAN into the proper queue.

  • Layer 7 rule not working

    5
    0 Votes
    5 Posts
    1k Views
    S

    Layer7 is broke in the latest release afaik.

  • VOIP Server Bandwidth Monitoring

    2
    0 Votes
    2 Posts
    714 Views
    N

    Have you browsed the available packages?

    Have you considered SNMP?

    You could send your VOIP traffic through a queue then monitor the queue's bandwidth through the GUI or SSH/command-line.

  • No use for TS - Sorry the Moaning

    12
    0 Votes
    12 Posts
    2k Views
    L

    Yeah, the lack of a shared download queue is preventing us from setting up multiple LANs in our office.

    As Harvy66 has suggested a virtual interface of sorts would solve this issue, but I don't think there is a way to do this even with stock FreeBSD.

  • Bandwidth Capping

    1
    0 Votes
    1 Posts
    759 Views
    No one has replied
  • How do I put Route traffic from one Program

    4
    0 Votes
    4 Posts
    945 Views
    N

    @Ryu945:

    I am not entirely sure what to search for and my current search results aren't giving me anything fruitful.  My current thought is to look how traffic prioritization works and see if I can find an answer in there.  What kind of information did you mean.

    Look up firewall rules first. You need to have a firewall rule that catches the traffic before you can begin shaping/policing the traffic. The traffic must differ from other traffic in some way that the firewall can catch.

    For example, if your "certain program" connects to arbitrary hosts/IPs on common ports and uses encryption, it may not be possible to isolate it's traffic.

    Regarding what information you/we could find useful; protocol (UDP/TCP), source IP/port, destination IP/port, name of application, whether encryption is used.

  • QoS: Classify connections per total data transferred

    3
    0 Votes
    3 Posts
    848 Views
    R

    Alright, thanks for the info. I take it there are long-term plans to add it? In the mean time I can probably just use the burst functionality to give new connections a brief speed boost.

    ~repne

  • 2.2 shaper wizard bug? VOIP / PRIQ

    3
    0 Votes
    3 Posts
    1k Views
    N

    Forget the wizard.

    Just create 2 PRIQ queues on the WAN. A default queue for all unclassified traffic, and another queue for exclusively VOIP.

    Then setup a floating rule in the firewall that directs all VOIP traffic into the proper, prioritized queue.

  • Traffic Shaping /w Squid proxy problem

    3
    0 Votes
    3 Posts
    1k Views
    KOMK

    I don't think you can fix this.  From what I understand, you can only shape traffic leaving an interface.  When Squid makes an HTTP request on your behalf, the requested data enters the WAN interface at whatever rate your ISP provides you.  Squid will download via WAN at full link speed to its cache and then dribble the data out to you on LAN based on whatever shaping rules you may have.

  • Diagram of how interfaces, rules, and queues interact?

    10
    0 Votes
    10 Posts
    3k Views
    DerelictD

    @dpa:

    where does Squid reside on that diagram above?

    Who cares?  :P

  • View traffic in queues

    6
    0 Votes
    6 Posts
    2k Views
    C

    So we are still seeing these random traffic spikes and high queues but are unable to track down the source.

    Can anyone suggest a way to track the source of traffic in the queues?

    My RRD graphs are attached if it helps.

    status_rrd_graph_lan.php.png
    status_rrd_graph_lan.php.png_thumb
    status_rrd_graph_wan.php.png
    status_rrd_graph_wan.php.png_thumb
    status_rrd_graph_admin.php.png
    status_rrd_graph_admin.php.png_thumb

  • Pf2.2 run0_wlan0: driver does not support altq

    1
    0 Votes
    1 Posts
    738 Views
    No one has replied
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.